Stream: hapi
Topic: Purpose of creating testscript resources
Vibin_chander (Apr 19 2021 at 15:27):
When the FHIR resources are persisted in the FHIR server. I need to validate the resources persisted to check if it belongs to a profile properly. Although HAPI FHIR server itself validates it, I wanted to understand what better tools like Inferno, touchstone and crucible do by running the tesscript resources in FHIR server?
Vibin_chander (Apr 19 2021 at 15:32):
Another way of asking this is what is the exact purpose of having testscript resource?. I can see if the FHIR format is not adhered properly then the HAPI FHIR server itself will throw error. Then in which exact usecase we can use the testscript resources?
James Agnew (Apr 19 2021 at 18:14):
TestScripts go way beyond validation. They are about checking for interactions, e.g. "place these fixtures on a server, then with a user that has this specific type of access verify that a given REST operation produces appropriate results."
If you just need to check "is my data compliant with a given profile" you don't need testscript, that question can be answered with validation. If you need to verify that an entire sequence of steps executes and produces the right outcome, testscript is a great mechanism
Vibin_chander (Apr 20 2021 at 03:52):
If my understanding is right, we cannot test a resource already sent to the FHIR server. So, testscript tests the sequence of steps using a list of predefined resources ?
Last updated: Apr 12 2022 at 19:14 UTC