description: null package_name: hl7.fhir.r4b.core derivation: specialization name: TestScript type: TestScript elements: description: {isModifier: false, short: Natural language description of the test script, type: markdown, mustSupport: false, isSummary: false, index: 10} date: {isModifier: false, short: Date last changed, type: dateTime, mustSupport: false, isSummary: true, index: 7} variable: constraint: tst-3: {human: 'Variable can only contain one of expression, headerField or path.', source: 'http://hl7.org/fhir/StructureDefinition/TestScript', severity: error, expression: expression.empty() or headerField.empty() or path.empty()} isModifier: false short: Placeholder for evaluated elements index: 38 type: BackboneElement mustSupport: false array: true elements: name: {isModifier: false, short: Descriptive name for this variable, type: string, mustSupport: false, isSummary: false, index: 39} defaultValue: {isModifier: false, short: 'Default, hard-coded, or user-defined value for this variable', type: string, mustSupport: false, isSummary: false, index: 40} description: {isModifier: false, short: Natural language description of the variable, type: string, mustSupport: false, isSummary: false, index: 41} expression: {isModifier: false, short: The FHIRPath expression against the fixture body, type: string, mustSupport: false, isSummary: false, index: 42} headerField: {isModifier: false, short: HTTP header field name for source, type: string, mustSupport: false, isSummary: false, index: 43} hint: {isModifier: false, short: Hint help text for default value to enter, type: string, mustSupport: false, isSummary: false, index: 44} path: {isModifier: false, short: XPath or JSONPath against the fixture body, type: string, mustSupport: false, isSummary: false, index: 45} sourceId: {isModifier: false, short: Fixture Id of source expression or headerField within this variable, type: id, mustSupport: false, isSummary: false, index: 46} required: [name] isSummary: false publisher: {isModifier: false, short: Name of the publisher (organization or individual), type: string, mustSupport: false, isSummary: true, index: 8} jurisdiction: isModifier: false short: Intended jurisdiction for test script (if applicable) type: CodeableConcept mustSupport: false array: true binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/ValueSet/jurisdiction'} isSummary: true index: 12 purpose: {isModifier: false, short: Why this test script is defined, type: markdown, mustSupport: false, isSummary: false, index: 13} name: {isModifier: false, short: Name for this test script (computer friendly), type: string, mustSupport: false, isSummary: true, index: 3} useContext: {isModifier: false, short: The context that the content is intended to support, type: UsageContext, mustSupport: false, array: true, isSummary: true, index: 11} copyright: {isModifier: false, short: Use and/or publishing restrictions, type: markdown, mustSupport: false, isSummary: false, index: 14} experimental: {isModifier: false, short: 'For testing purposes, not real usage', type: boolean, mustSupport: false, isSummary: true, index: 6} title: {isModifier: false, short: Name for this test script (human friendly), type: string, mustSupport: false, isSummary: true, index: 4} setup: isModifier: false short: A series of required setup operations before tests are executed type: BackboneElement mustSupport: false isSummary: false index: 47 elements: action: constraint: tst-1: {human: Setup action SHALL contain either an operation or assert but not both., source: 'http://hl7.org/fhir/StructureDefinition/TestScript', severity: error, expression: operation.exists() xor assert.exists()} min: 1 isModifier: false short: A setup operation or assert to perform index: 48 type: BackboneElement mustSupport: false array: true elements: operation: constraint: tst-7: {human: Setup operation SHALL contain either sourceId or targetId or params or url., source: 'http://hl7.org/fhir/StructureDefinition/TestScript', severity: error, expression: sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' |'search' | 'transaction' | 'history'))} isModifier: false short: The setup operation to perform index: 49 type: BackboneElement mustSupport: false elements: description: {isModifier: false, short: Tracking/reporting operation description, type: string, mustSupport: false, isSummary: false, index: 53} method: isModifier: false short: delete | get | options | patch | post | put | head type: code mustSupport: false binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/http-operations|4.1.0'} isSummary: false index: 58 targetId: {isModifier: false, short: 'Id of fixture used for extracting the [id], [type], and [vid] for GET requests', type: id, mustSupport: false, isSummary: false, index: 67} requestHeader: isModifier: false short: Each operation can have one or more header elements index: 61 type: BackboneElement mustSupport: false array: true elements: field: {isModifier: false, short: HTTP header field name, type: string, mustSupport: false, isSummary: false, index: 62} value: {isModifier: false, short: HTTP headerfield value, type: string, mustSupport: false, isSummary: false, index: 63} required: [value, field] isSummary: false params: {isModifier: false, short: Explicitly defined path parameters, type: string, mustSupport: false, isSummary: false, index: 60} type: isModifier: false short: The operation code type that will be executed type: Coding mustSupport: false binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/ValueSet/testscript-operation-codes'} isSummary: false index: 50 requestId: {isModifier: false, short: Fixture Id of mapped request, type: id, mustSupport: false, isSummary: false, index: 64} encodeRequestUrl: {isModifier: false, short: Whether or not to send the request url in encoded format, type: boolean, mustSupport: false, isSummary: false, index: 57} label: {isModifier: false, short: Tracking/logging operation label, type: string, mustSupport: false, isSummary: false, index: 52} resource: isModifier: false short: Resource type type: code mustSupport: false binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/defined-types|4.1.0'} isSummary: false index: 51 url: {isModifier: false, short: Request URL, type: string, mustSupport: false, isSummary: false, index: 68} origin: {isModifier: false, short: Server initiating the request, type: integer, mustSupport: false, isSummary: false, index: 59} contentType: isModifier: false short: Mime type of the request payload contents, with charset etc. type: code mustSupport: false binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/mimetypes|4.1.0'} isSummary: false index: 55 sourceId: {isModifier: false, short: Fixture Id of body for PUT and POST requests, type: id, mustSupport: false, isSummary: false, index: 66} responseId: {isModifier: false, short: Fixture Id of mapped response, type: id, mustSupport: false, isSummary: false, index: 65} destination: {isModifier: false, short: Server responding to the request, type: integer, mustSupport: false, isSummary: false, index: 56} accept: isModifier: false short: Mime type to accept in the payload of the response, with charset etc. type: code mustSupport: false binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/mimetypes|4.1.0'} isSummary: false index: 54 required: [encodeRequestUrl] isSummary: false assert: constraint: tst-12: {human: Setup action assert response and responseCode SHALL be empty when direction equals request, source: 'http://hl7.org/fhir/StructureDefinition/TestScript', severity: error, expression: (response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response'} tst-5: {human: Only a single assertion SHALL be present within setup action assert element., source: 'http://hl7.org/fhir/StructureDefinition/TestScript', severity: error, expression: extension.exists() or (contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + resource.count() + responseCode.count() + response.count() + validateProfileId.count() <=1)} tst-10: {human: 'Setup action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither.', source: 'http://hl7.org/fhir/StructureDefinition/TestScript', severity: error, expression: compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists())} isModifier: false short: The assertion to perform index: 69 type: BackboneElement mustSupport: false elements: response: isModifier: false short: okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable type: code mustSupport: false binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/assert-response-code-types|4.1.0'} isSummary: false index: 86 description: {isModifier: false, short: Tracking/reporting assertion description, type: string, mustSupport: false, isSummary: false, index: 71} path: {isModifier: false, short: XPath or JSONPath expression, type: string, mustSupport: false, isSummary: false, index: 82} headerField: {isModifier: false, short: HTTP header field name, type: string, mustSupport: false, isSummary: false, index: 78} compareToSourceId: {isModifier: false, short: Id of the source fixture to be evaluated, type: string, mustSupport: false, isSummary: false, index: 73} expression: {isModifier: false, short: The FHIRPath expression to be evaluated, type: string, mustSupport: false, isSummary: false, index: 77} value: {isModifier: false, short: The value to compare to, type: string, mustSupport: false, isSummary: false, index: 90} warningOnly: {isModifier: false, short: 'Will this assert produce a warning only on error?', type: boolean, mustSupport: false, isSummary: false, index: 91} compareToSourceExpression: {isModifier: false, short: The FHIRPath expression to evaluate against the source fixture, type: string, mustSupport: false, isSummary: false, index: 74} label: {isModifier: false, short: Tracking/logging assertion label, type: string, mustSupport: false, isSummary: false, index: 70} resource: isModifier: false short: Resource type type: code mustSupport: false binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/defined-types|4.1.0'} isSummary: false index: 85 responseCode: {isModifier: false, short: HTTP response code to test, type: string, mustSupport: false, isSummary: false, index: 87} minimumId: {isModifier: false, short: Fixture Id of minimum content resource, type: string, mustSupport: false, isSummary: false, index: 79} operator: isModifier: false short: equals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains | eval type: code mustSupport: false binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/assert-operator-codes|4.1.0'} isSummary: false index: 81 contentType: isModifier: false short: Mime type to compare against the 'Content-Type' header type: code mustSupport: false binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/mimetypes|4.1.0'} isSummary: false index: 76 compareToSourcePath: {isModifier: false, short: XPath or JSONPath expression to evaluate against the source fixture, type: string, mustSupport: false, isSummary: false, index: 75} validateProfileId: {isModifier: false, short: Profile Id of validation profile reference, type: id, mustSupport: false, isSummary: false, index: 89} sourceId: {isModifier: false, short: Fixture Id of source expression or headerField, type: id, mustSupport: false, isSummary: false, index: 88} requestMethod: isModifier: false short: delete | get | options | patch | post | put | head type: code mustSupport: false binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/http-operations|4.1.0'} isSummary: false index: 83 requestURL: {isModifier: false, short: Request URL comparison value, type: string, mustSupport: false, isSummary: false, index: 84} direction: isModifier: false short: response | request type: code mustSupport: false binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/assert-direction-codes|4.1.0'} isSummary: false index: 72 navigationLinks: {isModifier: false, short: 'Perform validation on navigation links?', type: boolean, mustSupport: false, isSummary: false, index: 80} required: [warningOnly] isSummary: false isSummary: false required: [action] status: isModifier: true short: draft | active | retired | unknown index: 5 type: code mustSupport: false binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/publication-status|4.1.0'} isModifierReason: This is labeled as "Is Modifier" because applications should not use a retired {{title}} without due consideration isSummary: true url: {isModifier: false, short: 'Canonical identifier for this test script, represented as a URI (globally unique)', type: uri, mustSupport: false, isSummary: true, index: 0} identifier: {isModifier: false, short: Additional identifier for the test script, type: Identifier, mustSupport: false, isSummary: true, index: 1} origin: isModifier: false short: An abstract server representing a client or sender in a message exchange index: 15 type: BackboneElement mustSupport: false array: true elements: index: {isModifier: false, short: The index of the abstract origin server starting at 1, type: integer, mustSupport: false, isSummary: false, index: 16} profile: isModifier: false short: FHIR-Client | FHIR-SDC-FormFiller index: 17 type: Coding mustSupport: false meaningWhenMissing: FHIR-Client binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/ValueSet/testscript-profile-origin-types'} isSummary: false required: [index, profile] isSummary: false fixture: isModifier: false short: Fixture in the test script - by reference (uri) index: 33 type: BackboneElement mustSupport: false array: true elements: autocreate: {isModifier: false, short: Whether or not to implicitly create the fixture during setup, type: boolean, mustSupport: false, isSummary: false, index: 34} autodelete: {isModifier: false, short: Whether or not to implicitly delete the fixture during teardown, type: boolean, mustSupport: false, isSummary: false, index: 35} resource: isModifier: false short: Reference of the resource refers: ['http://hl7.org/fhir/StructureDefinition/Resource'] type: Reference mustSupport: false isSummary: false index: 36 required: [autodelete, autocreate] isSummary: false version: {isModifier: false, short: Business version of the test script, type: string, mustSupport: false, isSummary: true, index: 2} teardown: isModifier: false short: A series of required clean up steps type: BackboneElement mustSupport: false isSummary: false index: 98 elements: action: min: 1 isModifier: false short: One or more teardown operations to perform index: 99 type: BackboneElement mustSupport: false array: true elements: operation: constraint: tst-9: {human: Teardown operation SHALL contain either sourceId or targetId or params or url., source: 'http://hl7.org/fhir/StructureDefinition/TestScript', severity: error, expression: sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))} elementReference: ['http://hl7.org/fhir/StructureDefinition/TestScript', elements, setup, elements, action, elements, operation] isModifier: false short: The teardown operation to perform mustSupport: false isSummary: false index: 100 required: [operation] isSummary: false required: [action] contact: {isModifier: false, short: Contact details for the publisher, type: ContactDetail, mustSupport: false, array: true, isSummary: true, index: 9} metadata: constraint: tst-4: {human: TestScript metadata capability SHALL contain required or validated or both., source: 'http://hl7.org/fhir/StructureDefinition/TestScript', severity: error, expression: capability.required.exists() or capability.validated.exists()} isModifier: false short: Required capability that is assumed to function correctly on the FHIR server being tested index: 21 type: BackboneElement mustSupport: false elements: link: isModifier: false short: Links to the FHIR specification index: 22 type: BackboneElement mustSupport: false array: true elements: url: {isModifier: false, short: URL to the specification, type: uri, mustSupport: false, isSummary: false, index: 23} description: {isModifier: false, short: Short description, type: string, mustSupport: false, isSummary: false, index: 24} required: [url] isSummary: false capability: min: 1 isModifier: false short: Capabilities that are assumed to function correctly on the FHIR server being tested index: 25 type: BackboneElement mustSupport: false array: true elements: required: {isModifier: false, short: 'Are the capabilities required?', type: boolean, mustSupport: false, isSummary: false, index: 26} validated: {isModifier: false, short: 'Are the capabilities validated?', type: boolean, mustSupport: false, isSummary: false, index: 27} description: {isModifier: false, short: The expected capabilities of the server, type: string, mustSupport: false, isSummary: false, index: 28} origin: {isModifier: false, short: Which origin server these requirements apply to, type: integer, mustSupport: false, array: true, isSummary: false, index: 29} destination: {isModifier: false, short: Which server these requirements apply to, type: integer, mustSupport: false, isSummary: false, index: 30} link: {isModifier: false, short: Links to the FHIR specification, type: uri, mustSupport: false, array: true, isSummary: false, index: 31} capabilities: {isModifier: false, short: Required Capability Statement, type: canonical, mustSupport: false, isSummary: false, index: 32} required: [capabilities, required, validated] isSummary: false required: [capability] isSummary: false destination: isModifier: false short: An abstract server representing a destination or receiver in a message exchange index: 18 type: BackboneElement mustSupport: false array: true elements: index: {isModifier: false, short: The index of the abstract destination server starting at 1, type: integer, mustSupport: false, isSummary: false, index: 19} profile: isModifier: false short: FHIR-Server | FHIR-SDC-FormManager | FHIR-SDC-FormReceiver | FHIR-SDC-FormProcessor index: 20 type: Coding mustSupport: false meaningWhenMissing: FHIR-Server binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/ValueSet/testscript-profile-destination-types'} isSummary: false required: [index, profile] isSummary: false test: isModifier: false short: A test in this script index: 92 type: BackboneElement mustSupport: false array: true elements: name: {isModifier: false, short: Tracking/logging name of this test, type: string, mustSupport: false, isSummary: false, index: 93} description: {isModifier: false, short: Tracking/reporting short description of the test, type: string, mustSupport: false, isSummary: false, index: 94} action: constraint: tst-2: {human: Test action SHALL contain either an operation or assert but not both., source: 'http://hl7.org/fhir/StructureDefinition/TestScript', severity: error, expression: operation.exists() xor assert.exists()} min: 1 isModifier: false short: A test operation or assert to perform index: 95 type: BackboneElement mustSupport: false array: true elements: operation: constraint: tst-8: {human: Test operation SHALL contain either sourceId or targetId or params or url., source: 'http://hl7.org/fhir/StructureDefinition/TestScript', severity: error, expression: sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))} elementReference: ['http://hl7.org/fhir/StructureDefinition/TestScript', elements, setup, elements, action, elements, operation] isModifier: false short: The setup operation to perform mustSupport: false isSummary: false index: 96 assert: constraint: tst-11: {human: 'Test action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither.', source: 'http://hl7.org/fhir/StructureDefinition/TestScript', severity: error, expression: compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists())} tst-13: {human: Test action assert response and response and responseCode SHALL be empty when direction equals request, source: 'http://hl7.org/fhir/StructureDefinition/TestScript', severity: error, expression: (response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response'} tst-6: {human: Only a single assertion SHALL be present within test action assert element., source: 'http://hl7.org/fhir/StructureDefinition/TestScript', severity: error, expression: extension.exists() or (contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + resource.count() + responseCode.count() + response.count() + validateProfileId.count() <=1)} elementReference: ['http://hl7.org/fhir/StructureDefinition/TestScript', elements, setup, elements, action, elements, assert] isModifier: false short: The setup assertion to perform mustSupport: false isSummary: false index: 97 isSummary: false required: [action] isSummary: false profile: isModifier: false short: Reference of the validation profile refers: ['http://hl7.org/fhir/StructureDefinition/Resource'] type: Reference mustSupport: false array: true isSummary: false index: 37 package_version: 4.1.0 class: resource kind: resource url: http://hl7.org/fhir/StructureDefinition/TestScript base: http://hl7.org/fhir/StructureDefinition/DomainResource version: 4.1.0 required: [url, name, status]