Skip to main content

TestScript

Trial Use 4 Specialized — Quality & Testing

A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification.

Endpoints

devhttps://api.sandbox.ovok.com/fhir/R5/TestScript
InteractionMethodPath
ReadGET/fhir/R5/TestScript/[id]
VreadGET/fhir/R5/TestScript/[id]/_history/[vid]
UpdatePUT/fhir/R5/TestScript/[id]
PatchPATCH/fhir/R5/TestScript/[id]
DeleteDELETE/fhir/R5/TestScript/[id]
CreatePOST/fhir/R5/TestScript
SearchGET/fhir/R5/TestScript?...
HistoryGET/fhir/R5/TestScript/[id]/_history
Type-historyGET/fhir/R5/TestScript/_history

Top-level elements

ElementType(s)CardinalityDescription
urluri0..1Canonical identifier for this test script, represented as a URI (globally unique)
identifierIdentifier0..*Additional identifier for the test script
versionstring0..1Business version of the test script
versionAlgorithm[x]string / Coding0..1How to compare versions
namestring1..1Name for this test script (computer friendly)
titlestring0..1Name for this test script (human friendly)
statuscode1..1draft
experimentalboolean0..1For testing purposes, not real usage
datedateTime0..1Date last changed
publisherstring0..1Name of the publisher/steward (organization or individual)
contactContactDetail0..*Contact details for the publisher
descriptionmarkdown0..1Natural language description of the test script
useContextUsageContext0..*The context that the content is intended to support
jurisdictionCodeableConcept0..*Intended jurisdiction for test script (if applicable)
purposemarkdown0..1Why this test script is defined
copyrightmarkdown0..1Use and/or publishing restrictions
copyrightLabelstring0..1Copyright holder and year(s)
originBackboneElement0..*An abstract server representing a client or sender in a message exchange
destinationBackboneElement0..*An abstract server representing a destination or receiver in a message exchange
metadataBackboneElement0..1Required capability that is assumed to function correctly on the FHIR server being tested
scopeBackboneElement0..*Indication of the artifact(s) that are tested by this test case
fixtureBackboneElement0..*Fixture in the test script - by reference (uri)
profilecanonical0..*Reference of the validation profile
variableBackboneElement0..*Placeholder for evaluated elements
setupBackboneElement0..1A series of required setup operations before tests are executed
testBackboneElement0..*A test in this script
teardownBackboneElement0..1A series of required clean up steps

Resource-specific search parameters

ParameterTypeDescription
contexttokenA use context assigned to the activity definition
context-quantityquantityA quantity- or range-valued use context assigned to the activity definition
context-typetokenA type of use context assigned to the activity definition
context-type-quantitycompositeA use context type and quantity- or range-based value assigned to the activity definition
context-type-valuecompositeA use context type and value assigned to the activity definition
datedateThe activity definition publication date
descriptionstringThe description of the activity definition
identifiertokenExternal identifier for the activity definition
jurisdictiontokenIntended jurisdiction for the activity definition
namestringComputationally friendly name of the activity definition
publisherstringName of the publisher of the activity definition
scope-artifactreferenceThe artifact under test
scope-artifact-conformancecompositeThe artifact under test and conformance testing expectation
scope-artifact-phasecompositeThe artifact under test and phase of testing
statustokenThe current status of the activity definition
testscript-capabilitystringTestScript required and validated capability
titlestringThe human-friendly name of the activity definition
urluriThe uri that identifies the activity definition
versiontokenThe business version of the activity definition

Reference

  • Official FHIR R5 spec: TestScript
  • Maturity: Trial Use 4 (FMM 4).