This page is part of the FHIR Specification v6.0.0-ballot1: Release 6 Ballot (1st Draft) (see Ballot Notes). The current version is 5.0.0. For a full list of available versions, see the Directory of published versions
FHIR Infrastructure Work Group | Maturity Level: 0 | Trial Use | Use Context: Any |
The canonical URL for this profile is:
http://hl7.org/fhir/StructureDefinition/shareabletestscript
Enforces the minimum information set for the test script metadata required by HL7 and other organizations that share and publish test scripts
Note to Implementers: All of the shareable, publishable, computable, and executable profiles will be migrating to the new Canonical Resource Management implementation guide as part of the next FHIR release. Implementers are encouraged to look there for updates, corrections and clarifications.
This profile was published on Thu, Jan 1, 1970 00:00+1000 as a draft by HL7.
Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.
This indicates the differences between this profile and the base TestScript structure.
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
TestScript | 1..1 | TestScript | Describes a set of tests | |
url | 1..1 | uri | Canonical identifier for this test script, represented as a URI (globally unique) | |
version | 1..1 | string | Business version of the test script | |
experimental | 1..1 | boolean | For testing purposes, not real usage | |
publisher | 1..1 | string | Name of the publisher/steward (organization or individual) | |
description | 1..1 | markdown | Natural language description of the test script | |
Documentation for this format |
This provides the consolidated view (aka snapshot) of the profile after applying the changes in this profile to the base TestScript structure.
Name | Flags | Card. | Type | Description & Constraints | ||||
---|---|---|---|---|---|---|---|---|
TestScript | C | 1..1 | TestScript | Describes a set of tests | ||||
id | Σ | 0..1 | id | Logical id of this artifact | ||||
meta | Σ | 0..1 | Meta | Metadata about the resource | ||||
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
language | 0..1 | code | Language of the resource content Binding: All Languages (required): IETF language tag for a human language
| |||||
text | 0..1 | Narrative | Text summary of the resource, for human interpretation | |||||
contained | 0..* | Resource | Contained, inline Resources | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored | ||||
url | ΣC | 1..1 | uri | Canonical identifier for this test script, represented as a URI (globally unique) | ||||
identifier | Σ | 0..* | Identifier | Additional identifier for the test script | ||||
version | Σ | 1..1 | string | Business version of the test script | ||||
versionAlgorithm[x] | Σ | 0..1 | How to compare versions Binding: Version Algorithm (extensible) | |||||
versionAlgorithmString | string | |||||||
versionAlgorithmCoding | Coding | |||||||
name | ΣC | 1..1 | string | Name for this test script (computer friendly) | ||||
title | Σ | 0..1 | string | Name for this test script (human friendly) | ||||
status | ?!Σ | 1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of an artifact. | ||||
experimental | Σ | 1..1 | boolean | For testing purposes, not real usage | ||||
date | Σ | 0..1 | dateTime | Date last changed | ||||
publisher | Σ | 1..1 | string | Name of the publisher/steward (organization or individual) | ||||
contact | Σ | 0..* | ContactDetail | Contact details for the publisher | ||||
description | 1..1 | markdown | Natural language description of the test script | |||||
useContext | Σ | 0..* | UsageContext | The context that the content is intended to support | ||||
jurisdiction | Σ | 0..* | CodeableConcept | Intended jurisdiction for test script (if applicable) Binding: Jurisdiction ValueSet (extensible): Countries and regions within which this artifact is targeted for use. | ||||
purpose | 0..1 | markdown | Why this test script is defined | |||||
copyright | 0..1 | markdown | Use and/or publishing restrictions | |||||
copyrightLabel | 0..1 | string | Copyright holder and year(s) | |||||
origin | 0..* | BackboneElement | An abstract server representing a client or sender in a message exchange | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
index | 1..1 | integer | The index of the abstract origin server starting at 1 | |||||
profile | 1..1 | Coding | FHIR-Client | FHIR-SDC-FormFiller Binding: Test Script Profile Origin Type (extensible): The type of origin profile the test system supports. | |||||
url | 0..1 | url | The url path of the origin server | |||||
destination | 0..* | BackboneElement | An abstract server representing a destination or receiver in a message exchange | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
index | 1..1 | integer | The index of the abstract destination server starting at 1 | |||||
profile | 1..1 | Coding | FHIR-Server | FHIR-SDC-FormManager | FHIR-SDC-FormReceiver | FHIR-SDC-FormProcessor Binding: Test Script Profile Destination Type (extensible): The type of destination profile the test system supports. | |||||
url | 0..1 | url | The url path of the destination server | |||||
metadata | C | 0..1 | BackboneElement | Required capability that is assumed to function correctly on the FHIR server being tested | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
link | 0..* | BackboneElement | Links to the FHIR specification | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
url | 1..1 | uri | URL to the specification | |||||
description | 0..1 | string | Short description | |||||
capability | C | 1..* | BackboneElement | Capabilities that are assumed to function correctly on the FHIR server being tested | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
required | C | 1..1 | boolean | Are the capabilities required? | ||||
validated | C | 1..1 | boolean | Are the capabilities validated? | ||||
description | 0..1 | string | The expected capabilities of the server | |||||
origin | 0..* | integer | Which origin server these requirements apply to | |||||
destination | 0..1 | integer | Which server these requirements apply to | |||||
link | 0..* | uri | Links to the FHIR specification | |||||
capabilities | 1..1 | canonical(CapabilityStatement) | Required Capability Statement | |||||
scope | 0..* | BackboneElement | Indication of the artifact(s) that are tested by this test case | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
artifact | 1..1 | canonical(Resource) | The specific conformance artifact being tested | |||||
conformance | 0..1 | CodeableConcept | required | optional | strict Binding: Test Script Scope Conformance Type (extensible): The expectation of whether the test must pass for the system to be considered conformant with the artifact. | |||||
phase | 0..1 | CodeableConcept | unit | integration | production Binding: Test Script Scope Phase Type (extensible): The phase of testing for this artifact. | |||||
fixture | 0..* | BackboneElement | Fixture in the test script - by reference (uri) | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
autocreate | 1..1 | boolean | Whether or not to implicitly create the fixture during setup | |||||
autodelete | 1..1 | boolean | Whether or not to implicitly delete the fixture during teardown | |||||
resource | 0..1 | Reference(Resource) | Reference of the resource | |||||
profile | 0..* | canonical(StructureDefinition) | Reference of the validation profile | |||||
variable | C | 0..* | BackboneElement | Placeholder for evaluated elements | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
name | 1..1 | string | Descriptive name for this variable | |||||
defaultValue | 0..1 | string | Default, hard-coded, or user-defined value for this variable | |||||
description | 0..1 | string | Natural language description of the variable | |||||
expression | C | 0..1 | string | The FHIRPath expression against the fixture body | ||||
headerField | C | 0..1 | string | HTTP header field name for source | ||||
hint | 0..1 | string | Hint help text for default value to enter | |||||
path | C | 0..1 | string | XPath or JSONPath against the fixture body | ||||
sourceId | 0..1 | id | Fixture Id of source expression or headerField within this variable | |||||
setup | 0..1 | BackboneElement | A series of required setup operations before tests are executed | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
action | C | 1..* | BackboneElement | A setup operation or assert to perform | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
operation | C | 0..1 | BackboneElement | The setup operation to perform | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
type | C | 0..1 | Coding | The operation code type that will be executed Binding: Test Script Operation Code (extensible): FHIR Operation Code Types | ||||
resource | 0..1 | uri | Resource type Binding: Concrete FHIR Types (extensible): A list of all the concrete types defined in this version of the FHIR specification - Data Types and Resource Types. | |||||
label | 0..1 | string | Tracking/logging operation label | |||||
description | 0..1 | string | Tracking/reporting operation description | |||||
accept | 0..1 | code | Mime type to accept in the payload of the response, with charset etc Binding: Mime Types (required): BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049) Example General: application/fhir+xml | |||||
contentType | 0..1 | code | Mime type of the request payload contents, with charset etc Binding: Mime Types (required): BCP 13 (RFCs 2045, 2046, 2047, 4288, 4289 and 2049) Example General: application/fhir+xml | |||||
destination | 0..1 | integer | Server responding to the request | |||||
encodeRequestUrl | 1..1 | boolean | Whether or not to send the request url in encoded format | |||||
method | 0..1 | code | delete | get | options | patch | post | put | head Binding: Test Script Request Method Code (required): The allowable request method or HTTP operation codes. | |||||
origin | 0..1 | integer | Server initiating the request | |||||
params | C | 0..1 | string | Explicitly defined path parameters | ||||
requestHeader | 0..* | BackboneElement | Each operation can have one or more header elements | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
field | 1..1 | string | HTTP header field name | |||||