Stream: implementers
Topic: Saving Questionnaires
Georgi Cholakov (Mar 25 2021 at 12:01):
Hello, I am new to FHIR and i have a beginner question.
I want to create a test for an app that creates a data in "QuestionnaireResponse" and i want to check if that data is saved properly.
I can get and save the data from the "QuestionnaireResponse" like json or XML, but i dont know how to check if the data is saved properly.
Lloyd McKenzie (Mar 25 2021 at 13:18):
@Георги Чолаков Do you mean you want to validate it against the Questionnaire, or you just want to check if it's saved? The easiest way to check if something is stored is to execute a 'read' on it afterward.
Georgi Cholakov (Mar 25 2021 at 14:48):
So i want to check if all the information is saved properly to the server.
I have made an Automated test that writes some text in Textboxes and saves it to the server. I want to get or read the information from the server and check if it saved what was in the textboxes.
Lloyd McKenzie (Mar 25 2021 at 15:03):
Then perform a 'read' on the server
Georgi Cholakov (Mar 25 2021 at 15:30):
I can read the information ,but i dont know how to Assert that the information i correct.
Lloyd McKenzie (Mar 25 2021 at 15:34):
By "Assert that the information is correct" you mean "unchanged from what was submitted"? If you know how to do the read, the assert comparison isn't really a FHIR issue?
Greg A (Mar 26 2021 at 12:25):
Георги Чолаков said:
I can read the information ,but i dont know how to Assert that the information i correct.
Is this a question about automated testing? From a manual perspective, you create a resource, then read the resource and validate that the contents are correct. Are you trying to script that behavior?
Last updated: Apr 12 2022 at 19:14 UTC