FHIR Chat · TestScript Resource Execution · hapi

Stream: hapi

Topic: TestScript Resource Execution


view this post on Zulip Vibin_chander (Dec 21 2020 at 09:38):

Hi,

I've used a sample TestScript that's provided in the example of the FHIR page (https://www.hl7.org/fhir/testscript-example-search.json.html). I've imported this TestScript resource for search parameter in my FHIR HAPI server.

Basically one of the thing this TestScript resource validates is that it should test search using the parameter name PatientSearchFamilyName now, i understand that I cannot search using this parameter unless i create Search Parameter Resource and change the SD. So, currently I'm getting error when I try to search using this PatientSearchFamilyName

But, my question is. I have multiple use-cases like this I wanted to know how to run these TestScript resources in my FHIR server?. I tried using Crucible but it seems like its running its predefined TestScripts on my FHIR server.

Any suggestions or help is much appreciated here.

view this post on Zulip Patrick Werner (Dec 21 2020 at 09:46):

hapi can't run Testscripts by itself. But you could add Java classes to enable this (I'm currently implementing such a thing for a customer).
If you want to run TestScripts out of the box, the only solution is to go with touchstone

view this post on Zulip Vibin_chander (Dec 21 2020 at 10:00):

@Patrick Werner thank you Is touchstone paid?

view this post on Zulip Vibin_chander (Dec 21 2020 at 10:31):

ok from here i feel the touchstone is a paid one

view this post on Zulip Vibin_chander (Dec 21 2020 at 10:31):

https://touchstone.aegis.net/touchstone/subscription

view this post on Zulip Vibin_chander (Dec 21 2020 at 10:32):

I cannot upload or add a test script and test.

view this post on Zulip Vibin_chander (Dec 21 2020 at 10:32):

But im curious what kind of testing crucible is doing?. Is it possible to add our own test scripts in crucible and test it against our FHIR server?

view this post on Zulip Vibin_chander (Dec 21 2020 at 12:02):

@Patrick Werner Can you give me any pointers on where should I begin to enable FHIR execute these test scripts?

view this post on Zulip Jens Villadsen (Dec 21 2020 at 12:04):

Patrick Werner said:

hapi can't run Testscripts by itself. But you could add Java classes to enable this (I'm currently implementing such a thing for a customer).
If you want to run TestScripts out of the box, the only solution is to go with touchstone

would that eventually end up as a PR for the starter project?

view this post on Zulip Patrick Werner (Dec 21 2020 at 13:42):

mhhh. Nice idea, but my project only uses hapi client classes and consumes TestScript Resources via a custom REST Interface.

view this post on Zulip Patrick Werner (Dec 21 2020 at 13:43):

Vibin_chander said:

Patrick Werner Can you give me any pointers on where should I begin to enable FHIR execute these test scripts?

Have a look at the inferno project: https://github.com/inferno-community/

view this post on Zulip Patrick Werner (Dec 21 2020 at 13:43):

Not using the TestScript resource, but the best open-source FHIR testing solution atm

view this post on Zulip Vibin_chander (Dec 21 2020 at 17:50):

Im trying to run inferno in docker all depencies are fixed but not running and not throwing any errors too

view this post on Zulip Vibin_chander (Dec 21 2020 at 17:58):

@Patrick Werner if this is what u meant? https://github.com/inferno-community/client-fhir-testing

view this post on Zulip Vibin_chander (Dec 21 2020 at 17:59):

where we can write our TestScript FHIR resource and Inferno can run it externally?

view this post on Zulip Vibin_chander (Dec 22 2020 at 05:45):

I dont think the inferno uses the TestScript resources either

view this post on Zulip Vibin_chander (Dec 22 2020 at 05:45):

I might be wrong. But I think only touchstone is currently using the TestScript resources to validate the FHIR

view this post on Zulip Patrick Werner (Dec 22 2020 at 12:47):

Yes as i stated in my post, the only solution using TestScript Resources is Touchstone. Inferno uses ruby scripts. I'm personally not the biggest fan of the TestScript Resource and can understand why Mitre choose a script language over the TestScript Resource.

view this post on Zulip Vibin_chander (Dec 22 2020 at 14:25):

But does Infero allow us to write our own cases?

view this post on Zulip Vibin_chander (Dec 22 2020 at 14:25):

As far as I checked Crucible, its executing a already defined test catalog

view this post on Zulip Patrick Werner (Dec 22 2020 at 14:40):

Vibin_chander said:

But does Infero allow us to write our own cases?

Yes, not very well documented but possible.

Have a look here: https://github.com/onc-healthit/inferno-program

view this post on Zulip Patrick Werner (Dec 22 2020 at 14:40):

Examples are found in the lib folder: https://github.com/onc-healthit/inferno-program/tree/main/lib/modules/uscore_v3.1.1

view this post on Zulip Vibin_chander (Dec 22 2020 at 14:42):

Thank you for the pointers. Im looking into it.

view this post on Zulip Vibin_chander (Dec 22 2020 at 14:43):

Because We have lot of user-defined use-cases based on who queries our FHIR server.


Last updated: Apr 12 2022 at 19:14 UTC