Extensions for Using Data Elements from FHIR R5 in FHIR STU3 - Downloaded Version null See the Directory of published versions
| Official URL: http://hl7.org/fhir/5.0/StructureDefinition/profile-TestScript | Version: 0.1.0 | |||
| Standards status: Trial-use | Maturity Level: 0 | Computable Name: Profile_R5_TestScript_R3 | ||
This cross-version profile allows R5 TestScript content to be represented via FHIR STU3 TestScript resources.
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | TestScript | Describes a set of tests | |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
0..1 | string, Coding | R5: How to compare versions (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.versionAlgorithm Binding: R5VersionAlgorithmForR3 (0.1.0) (extensible) | |
![]() ![]() ![]() |
0..1 | string | R5: Copyright holder and year(s) (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.copyrightLabel | |
![]() ![]() ![]() |
0..* | (Complex) | R5: Indication of the artifact(s) that are tested by this test case (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.scope | |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
Σ | 1..1 | uri | Logical URI to reference this test script (globally unique) |
![]() ![]() |
Σ | 1..1 | string | Name for this test script (computer friendly) |
![]() ![]() |
?!Σ | 1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of a Value Set or Concept Map. |
![]() ![]() |
?!Σ | 0..1 | boolean | For testing purposes, not real usage |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| TestScript.status | Base | required | PublicationStatus | 📍3.0.2 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-1 | error | TestScript | If the resource is contained in another resource, it SHALL NOT contain any narrative |
contained.text.empty()
|
| dom-2 | error | TestScript | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | TestScript | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource |
contained.where(('#'+id in %resource.descendants().reference).not()).empty()
|
| dom-4 | error | TestScript | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() | (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
This structure is derived from TestScript
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | TestScript | Describes a set of tests | |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
0..1 | string, Coding | R5: How to compare versions (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.versionAlgorithm Binding: R5VersionAlgorithmForR3 (0.1.0) (extensible) | |
![]() ![]() ![]() |
0..1 | string | R5: Copyright holder and year(s) (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.copyrightLabel | |
![]() ![]() ![]() |
0..* | (Complex) | R5: Indication of the artifact(s) that are tested by this test case (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.scope | |
![]() ![]() |
||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
0..* | (Complex) | R5: contact additional types URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.contact | |
![]() ![]() |
||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
0..1 | uri | R5: The url path of the origin server (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.origin.url | |
![]() ![]() |
||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
0..1 | uri | R5: The url path of the destination server (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.destination.url | |
![]() ![]() |
||||
![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | uri | R5: capabilities additional types URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.metadata.capability.capabilities | |
![]() ![]() |
||||
![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() |
0..1 | ?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]] | R5: resource additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference | |
![]() ![]() |
||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
0..* | uri | R5: profile additional types URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.profile | |
![]() ![]() |
||||
![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: delete | get | options | patch | post | put | head (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.operation.method Binding: TestScriptRequestMethodCode (required): The allowable request method or HTTP operation codes. | |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: fail | pass | skip | stop (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.defaultManualCompletion Binding: R5AssertManualCompletionCodesForR3 (0.1.0) (required): The default type of manual completion to use for assertion. | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | boolean | R5: If this assert fails, will the current test execution stop? (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.stopTestOnFail | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | (Complex) | R5: Links or references to the testing requirements (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.requirement | |
![]() ![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: equals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains | eval | manualEval URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.operator Binding: R5AssertOperatorCodesForR3 (0.1.0) (required): The type of operator to use for assertions. | |
![]() ![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: delete | get | options | patch | post | put | head URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.requestMethod Binding: TestScriptRequestMethodCode (required): The allowable request method or HTTP operation codes. | |
![]() ![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: continue | switchingProtocols | okay | created | accepted | nonAuthoritativeInformation | noContent | resetContent | partialContent | multipleChoices | movedPermanently | found | seeOther | notModified | useProxy | temporaryRedirect | permanentRedirect | badRequest | unauthorized | paymentRequired | forbidden | notFound | methodNotAllowed | notAcceptable | proxyAuthenticationRequired | requestTimeout | conflict | gone | lengthRequired | preconditionFailed | contentTooLarge | uriTooLong | unsupportedMediaType | rangeNotSatisfiable | expectationFailed | misdirectedRequest | unprocessableContent | upgradeRequired | internalServerError | notImplemented | badGateway | serviceUnavailable | gatewayTimeout | httpVersionNotSupported additional codes URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.response Binding: R5AssertResponseCodeTypesForR3 (0.1.0) (required): The response code to expect in the response. | |
Documentation for this format | ||||
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | TestScript | Describes a set of tests | |||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: Common Languages (extensible): A human language.
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
0..1 | string, Coding | R5: How to compare versions (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.versionAlgorithm Binding: R5VersionAlgorithmForR3 (0.1.0) (extensible) | |||||
![]() ![]() ![]() |
0..1 | string | R5: Copyright holder and year(s) (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.copyrightLabel | |||||
![]() ![]() ![]() |
0..* | (Complex) | R5: Indication of the artifact(s) that are tested by this test case (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.scope | |||||
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() |
Σ | 1..1 | uri | Logical URI to reference this test script (globally unique) | ||||
![]() ![]() |
Σ | 0..1 | Identifier | Additional identifier for the test script | ||||
![]() ![]() |
Σ | 0..1 | string | Business version of the test script | ||||
![]() ![]() |
Σ | 1..1 | string | Name for this test script (computer friendly) | ||||
![]() ![]() |
Σ | 0..1 | string | Name for this test script (human friendly) | ||||
![]() ![]() |
?!Σ | 1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of a Value Set or Concept Map. | ||||
![]() ![]() |
?!Σ | 0..1 | boolean | For testing purposes, not real usage | ||||
![]() ![]() |
Σ | 0..1 | dateTime | Date this was last changed | ||||
![]() ![]() |
Σ | 0..1 | string | Name of the publisher (organization or individual) | ||||
![]() ![]() |
Σ | 0..* | ContactDetail | Contact details for the publisher | ||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..* | (Complex) | R5: contact additional types URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.contact | |||||
![]() ![]() ![]() |
Σ | 0..1 | string | Name of an individual to contact | ||||
![]() ![]() ![]() |
Σ | 0..* | ContactPoint | Contact details for individual or organization | ||||
![]() ![]() |
0..1 | markdown | Natural language description of the test script | |||||
![]() ![]() |
Σ | 0..* | UsageContext | Context the content is intended to support | ||||
![]() ![]() |
Σ | 0..* | CodeableConcept | Intended jurisdiction for test script (if applicable) Binding: Jurisdiction ValueSet (extensible): Countries and regions within which this artifact is targeted for use | ||||
![]() ![]() |
0..1 | markdown | Why this test script is defined | |||||
![]() ![]() |
0..1 | markdown | Use and/or publishing restrictions | |||||
![]() ![]() |
0..* | BackboneElement | An abstract server representing a client or sender in a message exchange | |||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | uri | R5: The url path of the origin server (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.origin.url | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
1..1 | integer | The index of the abstract origin server starting at 1 | |||||
![]() ![]() ![]() |
1..1 | Coding | FHIR-Client | FHIR-SDC-FormFiller Binding: TestScriptProfileOriginType (extensible): The type of origin profile the test system supports. | |||||
![]() ![]() |
0..* | BackboneElement | An abstract server representing a destination or receiver in a message exchange | |||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | uri | R5: The url path of the destination server (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.destination.url | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
1..1 | integer | The index of the abstract destination server starting at 1 | |||||
![]() ![]() ![]() |
1..1 | Coding | FHIR-Server | FHIR-SDC-FormManager | FHIR-SDC-FormReceiver | FHIR-SDC-FormProcessor Binding: TestScriptProfileDestinationType (extensible): The type of destination profile the test system supports. | |||||
![]() ![]() |
C | 0..1 | BackboneElement | Required capability that is assumed to function correctly on the FHIR server being tested Constraints: inv-4 | ||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
0..* | BackboneElement | Links to the FHIR specification | |||||
![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() |
1..1 | uri | URL to the specification | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Short description | |||||
![]() ![]() ![]() |
1..* | BackboneElement | Capabilities that are assumed to function correctly on the FHIR server being tested | |||||
![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() |
0..1 | boolean | Are the capabilities required? | |||||
![]() ![]() ![]() ![]() |
0..1 | boolean | Are the capabilities validated? | |||||
![]() ![]() ![]() ![]() |
0..1 | string | The expected capabilities of the server | |||||
![]() ![]() ![]() ![]() |
0..* | integer | Which origin server these requirements apply to | |||||
![]() ![]() ![]() ![]() |
0..1 | integer | Which server these requirements apply to | |||||
![]() ![]() ![]() ![]() |
0..* | uri | Links to the FHIR specification | |||||
![]() ![]() ![]() ![]() |
1..1 | Reference(CapabilityStatement) | Required Capability Statement | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | R5: capabilities additional types URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.metadata.capability.capabilities | |||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
0..* | BackboneElement | Fixture in the test script - by reference (uri) | |||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
0..1 | boolean | Whether or not to implicitly create the fixture during setup | |||||
![]() ![]() ![]() |
0..1 | boolean | Whether or not to implicitly delete the fixture during teardown | |||||
![]() ![]() ![]() |
0..1 | Reference(Resource) | Reference of the resource | |||||
![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | ?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]] | R5: resource additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference | |||||
![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
0..* | Reference(Resource) | Reference of the validation profile | |||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..* | uri | R5: profile additional types URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.profile | |||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
C | 0..* | BackboneElement | Placeholder for evaluated elements Constraints: inv-3 | ||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
1..1 | string | Descriptive name for this variable | |||||
![]() ![]() ![]() |
0..1 | string | Default, hard-coded, or user-defined value for this variable | |||||
![]() ![]() ![]() |
0..1 | string | Natural language description of the variable | |||||
![]() ![]() ![]() |
0..1 | string | The fluentpath expression against the fixture body | |||||
![]() ![]() ![]() |
0..1 | string | HTTP header field name for source | |||||
![]() ![]() ![]() |
0..1 | string | Hint help text for default value to enter | |||||
![]() ![]() ![]() |
0..1 | string | XPath or JSONPath against the fixture body | |||||
![]() ![]() ![]() |
0..1 | id | Fixture Id of source expression or headerField within this variable | |||||
![]() ![]() |
0..* | BackboneElement | Assert rule used within the test script | |||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
1..1 | Reference(Resource) | Assert rule resource reference | |||||
![]() ![]() ![]() |
0..* | BackboneElement | Rule parameter template | |||||
![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() |
1..1 | string | Parameter name matching external assert rule parameter | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Parameter value defined either explicitly or dynamically | |||||
![]() ![]() |
0..* | BackboneElement | Assert ruleset used within the test script | |||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
1..1 | Reference(Resource) | Assert ruleset resource reference | |||||
![]() ![]() ![]() |
1..* | BackboneElement | The referenced rule within the ruleset | |||||
![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() |
1..1 | id | Id of referenced rule within the ruleset | |||||
![]() ![]() ![]() ![]() |
0..* | BackboneElement | Ruleset rule parameter template | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() ![]() |
1..1 | string | Parameter name matching external assert ruleset rule parameter | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Parameter value defined either explicitly or dynamically | |||||
![]() ![]() |
0..1 | BackboneElement | A series of required setup operations before tests are executed | |||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
C | 1..* | BackboneElement | A setup operation or assert to perform Constraints: inv-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() |
C | 0..1 | BackboneElement | The setup operation to perform Constraints: inv-7 | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: delete | get | options | patch | post | put | head (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.operation.method Binding: TestScriptRequestMethodCode (required): The allowable request method or HTTP operation codes. | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | Coding | The operation code type that will be executed Binding: TestScriptOperationCode (extensible): The allowable operation code types. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | Resource type Binding: FHIRDefinedType (required): Either a resource or a data type. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Tracking/logging operation label | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Tracking/reporting operation description | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | xml | json | ttl | none Binding: ContentType (required): The content or mime type. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | xml | json | ttl | none Binding: ContentType (required): The content or mime type. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | integer | Server responding to the request | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | boolean | Whether or not to send the request url in encoded format | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | integer | Server initiating the request | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Explicitly defined path parameters | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | BackboneElement | Each operation can have one or more header elements | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | string | HTTP header field name | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | string | HTTP headerfield value | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Fixture Id of mapped request | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Fixture Id of mapped response | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Fixture Id of body for PUT and POST requests | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Id of fixture used for extracting the [id], [type], and [vid] for GET requests | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Request URL | |||||
![]() ![]() ![]() ![]() |
C | 0..1 | BackboneElement | The assertion to perform Constraints: inv-5, inv-10, inv-12 | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: fail | pass | skip | stop (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.defaultManualCompletion Binding: R5AssertManualCompletionCodesForR3 (0.1.0) (required): The default type of manual completion to use for assertion. | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | boolean | R5: If this assert fails, will the current test execution stop? (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.stopTestOnFail | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | (Complex) | R5: Links or references to the testing requirements (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.requirement | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Tracking/logging assertion label | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Tracking/reporting assertion description | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | response | request Binding: AssertionDirectionType (required): The type of direction to use for assertion. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Id of the source fixture to be evaluated | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | The fluentpath expression to evaluate against the source fixture | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | XPath or JSONPath expression to evaluate against the source fixture | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | xml | json | ttl | none Binding: ContentType (required): The content or mime type. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | The fluentpath expression to be evaluated | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | HTTP header field name | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Fixture Id of minimum content resource | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | boolean | Perform validation on navigation links? | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | equals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains | eval Binding: AssertionOperatorType (required): The type of operator to use for assertion. | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: equals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains | eval | manualEval URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.operator Binding: R5AssertOperatorCodesForR3 (0.1.0) (required): The type of operator to use for assertions. | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | Primitive value for code | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | XPath or JSONPath expression | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | delete | get | options | patch | post | put Binding: TestScriptRequestMethodCode (required): The allowable request method or HTTP operation codes. | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: delete | get | options | patch | post | put | head URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.requestMethod Binding: TestScriptRequestMethodCode (required): The allowable request method or HTTP operation codes. | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | Primitive value for code | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Request URL comparison value | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | Resource type Binding: FHIRDefinedType (required): Either a resource or a data type. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable Binding: AssertionResponseTypes (required): The type of response code to use for assertion. | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: continue | switchingProtocols | okay | created | accepted | nonAuthoritativeInformation | noContent | resetContent | partialContent | multipleChoices | movedPermanently | found | seeOther | notModified | useProxy | temporaryRedirect | permanentRedirect | badRequest | unauthorized | paymentRequired | forbidden | notFound | methodNotAllowed | notAcceptable | proxyAuthenticationRequired | requestTimeout | conflict | gone | lengthRequired | preconditionFailed | contentTooLarge | uriTooLong | unsupportedMediaType | rangeNotSatisfiable | expectationFailed | misdirectedRequest | unprocessableContent | upgradeRequired | internalServerError | notImplemented | badGateway | serviceUnavailable | gatewayTimeout | httpVersionNotSupported additional codes URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.response Binding: R5AssertResponseCodeTypesForR3 (0.1.0) (required): The response code to expect in the response. | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | Primitive value for code | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | HTTP response code to test | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | BackboneElement | The reference to a TestScript.rule | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | id | Id of the TestScript.rule | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | BackboneElement | Rule parameter template | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | string | Parameter name matching external assert rule parameter | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | string | Parameter value defined either explicitly or dynamically | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | BackboneElement | The reference to a TestScript.ruleset | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | id | Id of the TestScript.ruleset | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | BackboneElement | The referenced rule within the ruleset | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | id | Id of referenced rule within the ruleset | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..* | BackboneElement | Rule parameter template | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | string | Parameter name matching external assert ruleset rule parameter | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | string | Parameter value defined either explicitly or dynamically | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Fixture Id of source expression or headerField | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Profile Id of validation profile reference | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | The value to compare to | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | boolean | Will this assert produce a warning only on error? | |||||
![]() ![]() |
0..* | BackboneElement | A test in this script | |||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
0..1 | string | Tracking/logging name of this test | |||||
![]() ![]() ![]() |
0..1 | string | Tracking/reporting short description of the test | |||||
![]() ![]() ![]() |
C | 1..* | BackboneElement | A test operation or assert to perform Constraints: inv-2 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() |
C | 0..1 | See operation (TestScript) | The setup operation to perform Constraints: inv-8 | ||||
![]() ![]() ![]() ![]() |
C | 0..1 | See assert (TestScript) | The setup assertion to perform Constraints: inv-6, inv-11, inv-13 | ||||
![]() ![]() |
0..1 | BackboneElement | A series of required clean up steps | |||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
1..* | BackboneElement | One or more teardown operations to perform | |||||
![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() |
C | 1..1 | See operation (TestScript) | The teardown operation to perform Constraints: inv-9 | ||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| TestScript.language | Base | extensible |
Common Languages
|
📍3.0.2 | tx.fhir.org |
| TestScript.status | Base | required | PublicationStatus | 📍3.0.2 | FHIR Std. |
| TestScript.jurisdiction | Base | extensible | Jurisdiction ValueSet | 📍3.0.2 | FHIR Std. |
| TestScript.origin.profile | Base | extensible | TestScriptProfileOriginType | 📍3.0.2 | FHIR Std. |
| TestScript.destination.profile | Base | extensible | TestScriptProfileDestinationType | 📍3.0.2 | FHIR Std. |
| TestScript.setup.action.operation.type | Base | extensible |
TestScriptOperationCode
|
📍3.0.2 | tx.fhir.org |
| TestScript.setup.action.operation.resource | Base | required | FHIRDefinedType | 📍3.0.2 | FHIR Std. |
| TestScript.setup.action.operation.accept | Base | required | ContentType | 📍3.0.2 | FHIR Std. |
| TestScript.setup.action.operation.contentType | Base | required | ContentType | 📍3.0.2 | FHIR Std. |
| TestScript.setup.action.assert.direction | Base | required | AssertionDirectionType | 📍3.0.2 | FHIR Std. |
| TestScript.setup.action.assert.contentType | Base | required | ContentType | 📍3.0.2 | FHIR Std. |
| TestScript.setup.action.assert.operator | Base | required |
AssertionOperatorType
|
📍3.0.2 | tx.fhir.org |
| TestScript.setup.action.assert.requestMethod | Base | required | TestScriptRequestMethodCode | 📍3.0.2 | FHIR Std. |
| TestScript.setup.action.assert.resource | Base | required | FHIRDefinedType | 📍3.0.2 | FHIR Std. |
| TestScript.setup.action.assert.response | Base | required |
AssertionResponseTypes
|
📍3.0.2 | tx.fhir.org |
| Id | Grade | Path(s) | Description | Expression |
| dom-1 | error | TestScript | If the resource is contained in another resource, it SHALL NOT contain any narrative |
contained.text.empty()
|
| dom-2 | error | TestScript | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | TestScript | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource |
contained.where(('#'+id in %resource.descendants().reference).not()).empty()
|
| dom-4 | error | TestScript | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() | (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| inv-1 | error | TestScript.setup.action | Setup action SHALL contain either an operation or assert but not both. |
operation.exists() xor assert.exists()
|
| inv-2 | error | TestScript.test.action | Test action SHALL contain either an operation or assert but not both. |
operation.exists() xor assert.exists()
|
| inv-3 | error | TestScript.variable | Variable can only contain one of expression, headerField or path. |
expression.empty() or headerField.empty() or path.empty()
|
| inv-4 | error | TestScript.metadata | TestScript metadata capability SHALL contain required or validated or both. |
capability.required.exists() or capability.validated.exists()
|
| inv-5 | error | TestScript.setup.action.assert | Only a single assertion SHALL be present within setup action assert element. |
contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + resource.count() + responseCode.count() + response.count() + rule.count() + ruleset.count() + validateProfileId.count() <=1
|
| inv-6 | error | TestScript.test.action.assert | Only a single assertion SHALL be present within test action assert element. |
contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + resource.count() + responseCode.count() + response.count() + rule.count() + ruleset.count() + validateProfileId.count() <=1
|
| inv-7 | error | TestScript.setup.action.operation | Setup operation SHALL contain either sourceId or targetId or params or url. |
sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' |'search' | 'transaction' | 'history'))
|
| inv-8 | error | TestScript.test.action.operation | Test operation SHALL contain either sourceId or targetId or params or url. |
sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))
|
| inv-9 | error | TestScript.teardown.action.operation | Teardown operation SHALL contain either sourceId or targetId or params or url. |
sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))
|
| inv-10 | error | TestScript.setup.action.assert | Setup action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither. |
compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists())
|
| inv-11 | error | TestScript.test.action.assert | Test action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither. |
compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists())
|
| inv-12 | error | TestScript.setup.action.assert | Setup action assert response and responseCode SHALL be empty when direction equals request |
(response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response'
|
| inv-13 | error | TestScript.test.action.assert | Test action assert response and response and responseCode SHALL be empty when direction equals request |
(response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response'
|
This structure is derived from TestScript
Summary
Mandatory: 0 element(2 nested mandatory elements)
Extensions
This structure refers to these extensions:
Maturity: 0
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | TestScript | Describes a set of tests | |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
0..1 | string, Coding | R5: How to compare versions (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.versionAlgorithm Binding: R5VersionAlgorithmForR3 (0.1.0) (extensible) | |
![]() ![]() ![]() |
0..1 | string | R5: Copyright holder and year(s) (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.copyrightLabel | |
![]() ![]() ![]() |
0..* | (Complex) | R5: Indication of the artifact(s) that are tested by this test case (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.scope | |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
Σ | 1..1 | uri | Logical URI to reference this test script (globally unique) |
![]() ![]() |
Σ | 1..1 | string | Name for this test script (computer friendly) |
![]() ![]() |
?!Σ | 1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of a Value Set or Concept Map. |
![]() ![]() |
?!Σ | 0..1 | boolean | For testing purposes, not real usage |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| TestScript.status | Base | required | PublicationStatus | 📍3.0.2 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-1 | error | TestScript | If the resource is contained in another resource, it SHALL NOT contain any narrative |
contained.text.empty()
|
| dom-2 | error | TestScript | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | TestScript | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource |
contained.where(('#'+id in %resource.descendants().reference).not()).empty()
|
| dom-4 | error | TestScript | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() | (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Differential View
This structure is derived from TestScript
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | TestScript | Describes a set of tests | |
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
0..1 | string, Coding | R5: How to compare versions (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.versionAlgorithm Binding: R5VersionAlgorithmForR3 (0.1.0) (extensible) | |
![]() ![]() ![]() |
0..1 | string | R5: Copyright holder and year(s) (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.copyrightLabel | |
![]() ![]() ![]() |
0..* | (Complex) | R5: Indication of the artifact(s) that are tested by this test case (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.scope | |
![]() ![]() |
||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
0..* | (Complex) | R5: contact additional types URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.contact | |
![]() ![]() |
||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
0..1 | uri | R5: The url path of the origin server (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.origin.url | |
![]() ![]() |
||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
0..1 | uri | R5: The url path of the destination server (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.destination.url | |
![]() ![]() |
||||
![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | uri | R5: capabilities additional types URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.metadata.capability.capabilities | |
![]() ![]() |
||||
![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() |
0..1 | ?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]] | R5: resource additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference | |
![]() ![]() |
||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
0..* | uri | R5: profile additional types URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.profile | |
![]() ![]() |
||||
![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: delete | get | options | patch | post | put | head (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.operation.method Binding: TestScriptRequestMethodCode (required): The allowable request method or HTTP operation codes. | |
![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: fail | pass | skip | stop (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.defaultManualCompletion Binding: R5AssertManualCompletionCodesForR3 (0.1.0) (required): The default type of manual completion to use for assertion. | |
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | boolean | R5: If this assert fails, will the current test execution stop? (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.stopTestOnFail | |
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | (Complex) | R5: Links or references to the testing requirements (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.requirement | |
![]() ![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: equals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains | eval | manualEval URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.operator Binding: R5AssertOperatorCodesForR3 (0.1.0) (required): The type of operator to use for assertions. | |
![]() ![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: delete | get | options | patch | post | put | head URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.requestMethod Binding: TestScriptRequestMethodCode (required): The allowable request method or HTTP operation codes. | |
![]() ![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: continue | switchingProtocols | okay | created | accepted | nonAuthoritativeInformation | noContent | resetContent | partialContent | multipleChoices | movedPermanently | found | seeOther | notModified | useProxy | temporaryRedirect | permanentRedirect | badRequest | unauthorized | paymentRequired | forbidden | notFound | methodNotAllowed | notAcceptable | proxyAuthenticationRequired | requestTimeout | conflict | gone | lengthRequired | preconditionFailed | contentTooLarge | uriTooLong | unsupportedMediaType | rangeNotSatisfiable | expectationFailed | misdirectedRequest | unprocessableContent | upgradeRequired | internalServerError | notImplemented | badGateway | serviceUnavailable | gatewayTimeout | httpVersionNotSupported additional codes URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.response Binding: R5AssertResponseCodeTypesForR3 (0.1.0) (required): The response code to expect in the response. | |
Documentation for this format | ||||
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | TestScript | Describes a set of tests | |||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: Common Languages (extensible): A human language.
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
0..1 | string, Coding | R5: How to compare versions (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.versionAlgorithm Binding: R5VersionAlgorithmForR3 (0.1.0) (extensible) | |||||
![]() ![]() ![]() |
0..1 | string | R5: Copyright holder and year(s) (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.copyrightLabel | |||||
![]() ![]() ![]() |
0..* | (Complex) | R5: Indication of the artifact(s) that are tested by this test case (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.scope | |||||
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() |
Σ | 1..1 | uri | Logical URI to reference this test script (globally unique) | ||||
![]() ![]() |
Σ | 0..1 | Identifier | Additional identifier for the test script | ||||
![]() ![]() |
Σ | 0..1 | string | Business version of the test script | ||||
![]() ![]() |
Σ | 1..1 | string | Name for this test script (computer friendly) | ||||
![]() ![]() |
Σ | 0..1 | string | Name for this test script (human friendly) | ||||
![]() ![]() |
?!Σ | 1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of a Value Set or Concept Map. | ||||
![]() ![]() |
?!Σ | 0..1 | boolean | For testing purposes, not real usage | ||||
![]() ![]() |
Σ | 0..1 | dateTime | Date this was last changed | ||||
![]() ![]() |
Σ | 0..1 | string | Name of the publisher (organization or individual) | ||||
![]() ![]() |
Σ | 0..* | ContactDetail | Contact details for the publisher | ||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..* | (Complex) | R5: contact additional types URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.contact | |||||
![]() ![]() ![]() |
Σ | 0..1 | string | Name of an individual to contact | ||||
![]() ![]() ![]() |
Σ | 0..* | ContactPoint | Contact details for individual or organization | ||||
![]() ![]() |
0..1 | markdown | Natural language description of the test script | |||||
![]() ![]() |
Σ | 0..* | UsageContext | Context the content is intended to support | ||||
![]() ![]() |
Σ | 0..* | CodeableConcept | Intended jurisdiction for test script (if applicable) Binding: Jurisdiction ValueSet (extensible): Countries and regions within which this artifact is targeted for use | ||||
![]() ![]() |
0..1 | markdown | Why this test script is defined | |||||
![]() ![]() |
0..1 | markdown | Use and/or publishing restrictions | |||||
![]() ![]() |
0..* | BackboneElement | An abstract server representing a client or sender in a message exchange | |||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | uri | R5: The url path of the origin server (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.origin.url | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
1..1 | integer | The index of the abstract origin server starting at 1 | |||||
![]() ![]() ![]() |
1..1 | Coding | FHIR-Client | FHIR-SDC-FormFiller Binding: TestScriptProfileOriginType (extensible): The type of origin profile the test system supports. | |||||
![]() ![]() |
0..* | BackboneElement | An abstract server representing a destination or receiver in a message exchange | |||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | uri | R5: The url path of the destination server (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.destination.url | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
1..1 | integer | The index of the abstract destination server starting at 1 | |||||
![]() ![]() ![]() |
1..1 | Coding | FHIR-Server | FHIR-SDC-FormManager | FHIR-SDC-FormReceiver | FHIR-SDC-FormProcessor Binding: TestScriptProfileDestinationType (extensible): The type of destination profile the test system supports. | |||||
![]() ![]() |
C | 0..1 | BackboneElement | Required capability that is assumed to function correctly on the FHIR server being tested Constraints: inv-4 | ||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
0..* | BackboneElement | Links to the FHIR specification | |||||
![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() |
1..1 | uri | URL to the specification | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Short description | |||||
![]() ![]() ![]() |
1..* | BackboneElement | Capabilities that are assumed to function correctly on the FHIR server being tested | |||||
![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() |
0..1 | boolean | Are the capabilities required? | |||||
![]() ![]() ![]() ![]() |
0..1 | boolean | Are the capabilities validated? | |||||
![]() ![]() ![]() ![]() |
0..1 | string | The expected capabilities of the server | |||||
![]() ![]() ![]() ![]() |
0..* | integer | Which origin server these requirements apply to | |||||
![]() ![]() ![]() ![]() |
0..1 | integer | Which server these requirements apply to | |||||
![]() ![]() ![]() ![]() |
0..* | uri | Links to the FHIR specification | |||||
![]() ![]() ![]() ![]() |
1..1 | Reference(CapabilityStatement) | Required Capability Statement | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | uri | R5: capabilities additional types URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.metadata.capability.capabilities | |||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
0..* | BackboneElement | Fixture in the test script - by reference (uri) | |||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
0..1 | boolean | Whether or not to implicitly create the fixture during setup | |||||
![]() ![]() ![]() |
0..1 | boolean | Whether or not to implicitly delete the fixture during teardown | |||||
![]() ![]() ![]() |
0..1 | Reference(Resource) | Reference of the resource | |||||
![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | ?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]] | R5: resource additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference | |||||
![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
0..* | Reference(Resource) | Reference of the validation profile | |||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..* | uri | R5: profile additional types URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.profile | |||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
C | 0..* | BackboneElement | Placeholder for evaluated elements Constraints: inv-3 | ||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
1..1 | string | Descriptive name for this variable | |||||
![]() ![]() ![]() |
0..1 | string | Default, hard-coded, or user-defined value for this variable | |||||
![]() ![]() ![]() |
0..1 | string | Natural language description of the variable | |||||
![]() ![]() ![]() |
0..1 | string | The fluentpath expression against the fixture body | |||||
![]() ![]() ![]() |
0..1 | string | HTTP header field name for source | |||||
![]() ![]() ![]() |
0..1 | string | Hint help text for default value to enter | |||||
![]() ![]() ![]() |
0..1 | string | XPath or JSONPath against the fixture body | |||||
![]() ![]() ![]() |
0..1 | id | Fixture Id of source expression or headerField within this variable | |||||
![]() ![]() |
0..* | BackboneElement | Assert rule used within the test script | |||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
1..1 | Reference(Resource) | Assert rule resource reference | |||||
![]() ![]() ![]() |
0..* | BackboneElement | Rule parameter template | |||||
![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() |
1..1 | string | Parameter name matching external assert rule parameter | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Parameter value defined either explicitly or dynamically | |||||
![]() ![]() |
0..* | BackboneElement | Assert ruleset used within the test script | |||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
1..1 | Reference(Resource) | Assert ruleset resource reference | |||||
![]() ![]() ![]() |
1..* | BackboneElement | The referenced rule within the ruleset | |||||
![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() |
1..1 | id | Id of referenced rule within the ruleset | |||||
![]() ![]() ![]() ![]() |
0..* | BackboneElement | Ruleset rule parameter template | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() ![]() |
1..1 | string | Parameter name matching external assert ruleset rule parameter | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Parameter value defined either explicitly or dynamically | |||||
![]() ![]() |
0..1 | BackboneElement | A series of required setup operations before tests are executed | |||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
C | 1..* | BackboneElement | A setup operation or assert to perform Constraints: inv-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() |
C | 0..1 | BackboneElement | The setup operation to perform Constraints: inv-7 | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: delete | get | options | patch | post | put | head (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.operation.method Binding: TestScriptRequestMethodCode (required): The allowable request method or HTTP operation codes. | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | Coding | The operation code type that will be executed Binding: TestScriptOperationCode (extensible): The allowable operation code types. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | Resource type Binding: FHIRDefinedType (required): Either a resource or a data type. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Tracking/logging operation label | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Tracking/reporting operation description | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | xml | json | ttl | none Binding: ContentType (required): The content or mime type. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | xml | json | ttl | none Binding: ContentType (required): The content or mime type. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | integer | Server responding to the request | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | boolean | Whether or not to send the request url in encoded format | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | integer | Server initiating the request | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Explicitly defined path parameters | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | BackboneElement | Each operation can have one or more header elements | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | string | HTTP header field name | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | string | HTTP headerfield value | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Fixture Id of mapped request | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Fixture Id of mapped response | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Fixture Id of body for PUT and POST requests | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Id of fixture used for extracting the [id], [type], and [vid] for GET requests | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Request URL | |||||
![]() ![]() ![]() ![]() |
C | 0..1 | BackboneElement | The assertion to perform Constraints: inv-5, inv-10, inv-12 | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: fail | pass | skip | stop (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.defaultManualCompletion Binding: R5AssertManualCompletionCodesForR3 (0.1.0) (required): The default type of manual completion to use for assertion. | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | boolean | R5: If this assert fails, will the current test execution stop? (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.stopTestOnFail | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | (Complex) | R5: Links or references to the testing requirements (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.requirement | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Tracking/logging assertion label | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Tracking/reporting assertion description | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | response | request Binding: AssertionDirectionType (required): The type of direction to use for assertion. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Id of the source fixture to be evaluated | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | The fluentpath expression to evaluate against the source fixture | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | XPath or JSONPath expression to evaluate against the source fixture | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | xml | json | ttl | none Binding: ContentType (required): The content or mime type. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | The fluentpath expression to be evaluated | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | HTTP header field name | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Fixture Id of minimum content resource | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | boolean | Perform validation on navigation links? | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | equals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains | eval Binding: AssertionOperatorType (required): The type of operator to use for assertion. | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: equals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains | eval | manualEval URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.operator Binding: R5AssertOperatorCodesForR3 (0.1.0) (required): The type of operator to use for assertions. | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | Primitive value for code | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | XPath or JSONPath expression | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | delete | get | options | patch | post | put Binding: TestScriptRequestMethodCode (required): The allowable request method or HTTP operation codes. | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: delete | get | options | patch | post | put | head URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.requestMethod Binding: TestScriptRequestMethodCode (required): The allowable request method or HTTP operation codes. | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | Primitive value for code | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Request URL comparison value | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | Resource type Binding: FHIRDefinedType (required): Either a resource or a data type. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable Binding: AssertionResponseTypes (required): The type of response code to use for assertion. | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | R5: continue | switchingProtocols | okay | created | accepted | nonAuthoritativeInformation | noContent | resetContent | partialContent | multipleChoices | movedPermanently | found | seeOther | notModified | useProxy | temporaryRedirect | permanentRedirect | badRequest | unauthorized | paymentRequired | forbidden | notFound | methodNotAllowed | notAcceptable | proxyAuthenticationRequired | requestTimeout | conflict | gone | lengthRequired | preconditionFailed | contentTooLarge | uriTooLong | unsupportedMediaType | rangeNotSatisfiable | expectationFailed | misdirectedRequest | unprocessableContent | upgradeRequired | internalServerError | notImplemented | badGateway | serviceUnavailable | gatewayTimeout | httpVersionNotSupported additional codes URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-TestScript.setup.action.assert.response Binding: R5AssertResponseCodeTypesForR3 (0.1.0) (required): The response code to expect in the response. | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | code | Primitive value for code | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | HTTP response code to test | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | BackboneElement | The reference to a TestScript.rule | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | id | Id of the TestScript.rule | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | BackboneElement | Rule parameter template | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | string | Parameter name matching external assert rule parameter | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | string | Parameter value defined either explicitly or dynamically | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | BackboneElement | The reference to a TestScript.ruleset | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | id | Id of the TestScript.ruleset | |||||
![]() ![]() ![]() ![]() ![]() ![]() |
0..* | BackboneElement | The referenced rule within the ruleset | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | id | Id of referenced rule within the ruleset | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..* | BackboneElement | Rule parameter template | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | string | Parameter name matching external assert ruleset rule parameter | |||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
1..1 | string | Parameter value defined either explicitly or dynamically | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Fixture Id of source expression or headerField | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Profile Id of validation profile reference | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | The value to compare to | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | boolean | Will this assert produce a warning only on error? | |||||
![]() ![]() |
0..* | BackboneElement | A test in this script | |||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
0..1 | string | Tracking/logging name of this test | |||||
![]() ![]() ![]() |
0..1 | string | Tracking/reporting short description of the test | |||||
![]() ![]() ![]() |
C | 1..* | BackboneElement | A test operation or assert to perform Constraints: inv-2 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() |
C | 0..1 | See operation (TestScript) | The setup operation to perform Constraints: inv-8 | ||||
![]() ![]() ![]() ![]() |
C | 0..1 | See assert (TestScript) | The setup assertion to perform Constraints: inv-6, inv-11, inv-13 | ||||
![]() ![]() |
0..1 | BackboneElement | A series of required clean up steps | |||||
![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() |
1..* | BackboneElement | One or more teardown operations to perform | |||||
![]() ![]() ![]() ![]() |
0..1 | string | xml:id (or equivalent in JSON) | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional Content defined by implementations | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() ![]() ![]() |
C | 1..1 | See operation (TestScript) | The teardown operation to perform Constraints: inv-9 | ||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| TestScript.language | Base | extensible |
Common Languages
|
📍3.0.2 | tx.fhir.org |
| TestScript.status | Base | required | PublicationStatus | 📍3.0.2 | FHIR Std. |
| TestScript.jurisdiction | Base | extensible | Jurisdiction ValueSet | 📍3.0.2 | FHIR Std. |
| TestScript.origin.profile | Base | extensible | TestScriptProfileOriginType | 📍3.0.2 | FHIR Std. |
| TestScript.destination.profile | Base | extensible | TestScriptProfileDestinationType | 📍3.0.2 | FHIR Std. |
| TestScript.setup.action.operation.type | Base | extensible |
TestScriptOperationCode
|
📍3.0.2 | tx.fhir.org |
| TestScript.setup.action.operation.resource | Base | required | FHIRDefinedType | 📍3.0.2 | FHIR Std. |
| TestScript.setup.action.operation.accept | Base | required | ContentType | 📍3.0.2 | FHIR Std. |
| TestScript.setup.action.operation.contentType | Base | required | ContentType | 📍3.0.2 | FHIR Std. |
| TestScript.setup.action.assert.direction | Base | required | AssertionDirectionType | 📍3.0.2 | FHIR Std. |
| TestScript.setup.action.assert.contentType | Base | required | ContentType | 📍3.0.2 | FHIR Std. |
| TestScript.setup.action.assert.operator | Base | required |
AssertionOperatorType
|
📍3.0.2 | tx.fhir.org |
| TestScript.setup.action.assert.requestMethod | Base | required | TestScriptRequestMethodCode | 📍3.0.2 | FHIR Std. |
| TestScript.setup.action.assert.resource | Base | required | FHIRDefinedType | 📍3.0.2 | FHIR Std. |
| TestScript.setup.action.assert.response | Base | required |
AssertionResponseTypes
|
📍3.0.2 | tx.fhir.org |
| Id | Grade | Path(s) | Description | Expression |
| dom-1 | error | TestScript | If the resource is contained in another resource, it SHALL NOT contain any narrative |
contained.text.empty()
|
| dom-2 | error | TestScript | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | TestScript | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource |
contained.where(('#'+id in %resource.descendants().reference).not()).empty()
|
| dom-4 | error | TestScript | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() | (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| inv-1 | error | TestScript.setup.action | Setup action SHALL contain either an operation or assert but not both. |
operation.exists() xor assert.exists()
|
| inv-2 | error | TestScript.test.action | Test action SHALL contain either an operation or assert but not both. |
operation.exists() xor assert.exists()
|
| inv-3 | error | TestScript.variable | Variable can only contain one of expression, headerField or path. |
expression.empty() or headerField.empty() or path.empty()
|
| inv-4 | error | TestScript.metadata | TestScript metadata capability SHALL contain required or validated or both. |
capability.required.exists() or capability.validated.exists()
|
| inv-5 | error | TestScript.setup.action.assert | Only a single assertion SHALL be present within setup action assert element. |
contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + resource.count() + responseCode.count() + response.count() + rule.count() + ruleset.count() + validateProfileId.count() <=1
|
| inv-6 | error | TestScript.test.action.assert | Only a single assertion SHALL be present within test action assert element. |
contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + resource.count() + responseCode.count() + response.count() + rule.count() + ruleset.count() + validateProfileId.count() <=1
|
| inv-7 | error | TestScript.setup.action.operation | Setup operation SHALL contain either sourceId or targetId or params or url. |
sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' |'search' | 'transaction' | 'history'))
|
| inv-8 | error | TestScript.test.action.operation | Test operation SHALL contain either sourceId or targetId or params or url. |
sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))
|
| inv-9 | error | TestScript.teardown.action.operation | Teardown operation SHALL contain either sourceId or targetId or params or url. |
sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))
|
| inv-10 | error | TestScript.setup.action.assert | Setup action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither. |
compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists())
|
| inv-11 | error | TestScript.test.action.assert | Test action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither. |
compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists())
|
| inv-12 | error | TestScript.setup.action.assert | Setup action assert response and responseCode SHALL be empty when direction equals request |
(response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response'
|
| inv-13 | error | TestScript.test.action.assert | Test action assert response and response and responseCode SHALL be empty when direction equals request |
(response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response'
|
This structure is derived from TestScript
Summary
Mandatory: 0 element(2 nested mandatory elements)
Extensions
This structure refers to these extensions:
Maturity: 0
Other representations of profile: CSV, Excel, Schematron