Skip to main content

TestScript

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

These interaction paths describe standard FHIR R4 patterns. Availability can depend on the API capabilities enabled for your Ovok project.

InteractionMethodPath
ReadGET/fhir/R4/TestScript/[id]
VreadGET/fhir/R4/TestScript/[id]/_history/[vid]
UpdatePUT/fhir/R4/TestScript/[id]
PatchPATCH/fhir/R4/TestScript/[id]
DeleteDELETE/fhir/R4/TestScript/[id]
CreatePOST/fhir/R4/TestScript
SearchGET/fhir/R4/TestScript
HistoryGET/fhir/R4/TestScript/[id]/_history

Top-level elements​

ElementTypeCardinalityDescription
idstring0..1Logical id of this artifact
metaMeta0..1Metadata about the resource
implicitRulesuri0..1A set of rules under which this content was created
languagecode0..1Language of the resource content
textNarrative0..1Text summary of the resource, for human interpretation
containedResource0..*Contained, inline Resources
extensionExtension0..*Additional content defined by implementations
modifierExtensionExtension0..*Extensions that cannot be ignored
urluri1..1Canonical identifier for this test script, represented as a URI (globally unique)
identifierIdentifier0..1Additional identifier for the test script
versionstring0..1Business version of the test script
namestring1..1Name for this test script (computer friendly)
titlestring0..1Name for this test script (human friendly)
statuscode1..1draft | active | retired | unknown
experimentalboolean0..1For testing purposes, not real usage
datedateTime0..1Date last changed
publisherstring0..1Name of the publisher (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
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
fixtureBackboneElement0..*Fixture in the test script - by reference (uri)
profileReference0..*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 test script
context-quantityquantityA quantity- or range-valued use context assigned to the test script
context-typetokenA type of use context assigned to the test script
context-type-quantitycompositeA use context type and quantity- or range-based value assigned to the test script
context-type-valuecompositeA use context type and value assigned to the test script
datedateThe test script publication date
descriptionstringThe description of the test script
identifiertokenExternal identifier for the test script
jurisdictiontokenIntended jurisdiction for the test script
namestringComputationally friendly name of the test script
publisherstringName of the publisher of the test script
statustokenThe current status of the test script
testscript-capabilitystringTestScript required and validated capability
titlestringThe human-friendly name of the test script
urluriThe uri that identifies the test script
versiontokenThe business version of the test script

Reference​

Official FHIR R4 spec: TestScript.
Maturity: Trial Use 2 (FMM 2).