FHIR Chat · Refining Touchstone TestScripts · Touchstone

Stream: Touchstone

Topic: Refining Touchstone TestScripts


view this post on Zulip Richard Ettema (Mar 24 2017 at 12:27):

From @Abigail Watson
I've been going through one of the Touchstone test scripts /FHIR1-6-0-Basic/P-R/Practitioner/Client Assigned Id/Practitioner-client-id-json, and it expects a 200 code(OK) code for a query for a _history; but the spec states that a 404(NotFound) should be sent if the server doesn't support versioning. https://www.hl7.org/fhir/http.html#versioning

I'm fine with implementing versioning over the long run; but it may be 6 or 12 months yet before we get it all in place. In the meantime, I'd like to get the test to have a Warning for a missing 200(OK) code instead of an Error.

view this post on Zulip Richard Ettema (Mar 24 2017 at 12:36):

We (the Touchstone Team) are currently working on implementing conditional asserts to help refine the behavior of the test engine's processing of the TestScript. In this particular case the assert would first check the test system's CapabilityStatement.rest.resource.versioning value for the particular resource type under test to determine the level of versioning support. If the level indicates support; i.e. 'versioned' or 'versioned-update', then the check for 200(OK) would be executed. If 'no-support' was found, then that assert would be skipped.

view this post on Zulip Richard Ettema (Mar 24 2017 at 12:37):

I'll be working to implement this functionality on the FHIR 3.0.0 tests over the next couple of weeks.

view this post on Zulip Abbie Watson (Mar 30 2017 at 18:25):

Hi @Richard Ettema - Thanks for the response. Having the test scripts check the CapabilityStatement would be brilliant. We have a workaround for now; and what you're suggesting would be a perfect refactor path. Thank you much!


Last updated: Apr 12 2022 at 19:14 UTC