{
"description": "A plan for executing testing on an artifact or specifications",
"_filename": "StructureDefinition-TestCases.json",
"package_name": "hl7.fhir.uv.tools.r4",
"date": "2021-01-02T08:58:31+11:00",
"derivation": "specialization",
"meta": {
"lastUpdated": "2021-01-02T08:58:31.578+11:00"
},
"publisher": "HL7 International / FHIR Infrastructure",
"fhirVersion": "4.0.1",
"jurisdiction": [ {
"coding": [ {
"code": "001",
"system": "http://unstats.un.org/unsd/methods/m49/m49.htm"
} ]
} ],
"name": "TestCases",
"mapping": [ {
"uri": "http://hl7.org/fhir/workflow",
"name": "Workflow Pattern",
"identity": "workflow"
}, {
"uri": "http://hl7.org/v3",
"name": "RIM Mapping",
"identity": "rim"
}, {
"uri": "http://hl7.org/fhir/fivews",
"name": "FiveWs Pattern Mapping",
"identity": "w5"
}, {
"uri": "http://hl7.org/fhir/object-implementation",
"name": "Object Implementation Information",
"identity": "objimpl"
} ],
"abstract": false,
"type": "TestCases",
"experimental": null,
"resourceType": "StructureDefinition",
"title": "Test Cases",
"package_version": "0.9.0",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
"valueString": "Clinical.Request & Response"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode": "draft"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger": 1
}, {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
"valueCode": "business"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode": "fhir"
}, {
"url": "http://hl7.org/fhir/build/StructureDefinition/entered-in-error-status",
"valueCode": ".status = entered-in-error"
}, {
"url": "http://hl7.org/fhir/build/StructureDefinition/template",
"valueString": "CanonicalResource"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-interface",
"valueBoolean": true
}, {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status-reason",
"valueCode": "Logical Models that have been modified for R4 are still draft while real-world experience is collected"
} ],
"status": "draft",
"id": "28e52aa4-fbb1-4320-befd-c9d029cdc016",
"kind": "logical",
"url": "http://hl7.org/fhir/StructureDefinition/TestCases",
"identifier": [ {
"value": "urn:oid:2.16.840.1.113883.4.642.40.1.42.64",
"system": "urn:ietf:rfc:3986"
} ],
"version": "0.9.0",
"differential": {
"element": [ {
"constraint": [ {
"key": "cnl-0",
"human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
"source": "http://hl7.org/fhir/StructureDefinition/TestCases",
"severity": "warning",
"expression": "name.exists() implies name.matches('^[A-Z]([A-Za-z0-9_]){1,254}$')"
} ],
"path": "TestCases",
"min": 0,
"definition": "A set of test specifications that are able to be executed by a TestRunner that knows how to interpret the tests and execute them.",
"short": "Tests to be executed by a Test Runner that knows the tests",
"mapping": [ {
"map": "conformance.misc",
"identity": "w5"
} ],
"extension": [ {
"url": "http://hl7.org/fhir/build/StructureDefinition/svg",
"valueCode": "0,0"
} ],
"max": "*",
"id": "TestCases"
}, {
"constraint": [ {
"key": "cnl-1",
"human": "URL should not contain | or # - these characters make processing canonical references problematic",
"source": "http://hl7.org/fhir/StructureDefinition/CanonicalResource",
"severity": "warning",
"expression": "exists() implies matches('^[^|# ]+$')"
} ],
"path": "TestCases.url",
"requirements": "Allows the test plan to be referenced by a single globally unique identifier.",
"min": 0,
"definition": "An absolute URI that is used to identify this test plan when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this test plan is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the test plan is stored on different servers.",
"short": "Canonical identifier for this test plan, represented as a URI (globally unique)",
"mapping": [ {
"map": "Definition.url",
"identity": "workflow"
}, {
"map": "FiveWs.identifier",
"identity": "w5"
} ],
"type": [ {
"code": "uri"
} ],
"alias": [ "url", "authoritative-url", "destination", "identity" ],
"max": "1",
"id": "TestCases.url",
"comment": "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred. Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author. Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.",
"isSummary": true
}, {
"path": "TestCases.identifier",
"requirements": "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
"min": 0,
"definition": "A formal identifier that is used to identify this test plan when it is represented in other formats, or referenced in a specification, model, design or an instance.",
"short": "Business identifier for the test plan",
"mapping": [ {
"map": "Definition.identifier",
"identity": "workflow"
}, {
"map": "FiveWs.identifier",
"identity": "w5"
}, {
"map": "no-gen-base",
"identity": "objimpl"
} ],
"type": [ {
"code": "Identifier"
} ],
"max": "*",
"id": "TestCases.identifier",
"isSummary": true
}, {
"path": "TestCases.version",
"min": 0,
"definition": "The identifier that is used to identify this version of the test plan when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the test plan author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.",
"short": "Business version of the test plan",
"mapping": [ {
"map": "Definition.version",
"identity": "workflow"
}, {
"map": "FiveWs.version",
"identity": "w5"
} ],
"type": [ {
"code": "string"
} ],
"max": "1",
"id": "TestCases.version",
"comment": "There may be different test plan instances that have the same identifier but different versions. The version can be appended to the url in a reference to allow a reference to a particular business version of the test plan with the format [url]|[version]. The version SHOULD NOT contain a '#' - see [Business Version](resource.html#bv-format).",
"isSummary": true
}, {
"path": "TestCases.versionAlgorithm[x]",
"min": 0,
"definition": "Indicates the mechanism used to compare versions to determine which is more current.",
"short": "How to compare versions",
"type": [ {
"code": "string"
}, {
"code": "Coding"
} ],
"binding": {
"strength": "extensible",
"valueSet": "http://hl7.org/fhir/ValueSet/version-algorithm"
},
"max": "1",
"id": "TestCases.versionAlgorithm[x]",
"comment": "If set as a string, this is a FHIRPath expression that has two additional context variables passed in - %version1 and %version2 and will return a negative number if version1 is newer, a positive number if version2 and a 0 if the version ordering can't be successfully be determined.",
"isSummary": true
}, {
"path": "TestCases.name",
"requirements": "Support code generation.",
"min": 0,
"definition": "A natural language name identifying the test plan. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
"short": "Name for this test plan (computer friendly)",
"mapping": [ {
"map": "Definition.name",
"identity": "workflow"
} ],
"type": [ {
"code": "string"
} ],
"max": "1",
"id": "TestCases.name",
"condition": [ "cnl-0" ],
"comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
"isSummary": true
}, {
"path": "TestCases.title",
"min": 0,
"definition": "A short, descriptive, user-friendly title for the test plan.",
"short": "Name for this test plan (human friendly)",
"mapping": [ {
"map": "Definition.title",
"identity": "workflow"
} ],
"type": [ {
"code": "string"
} ],
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
"valueBoolean": true
} ],
"max": "1",
"id": "TestCases.title",
"comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc."
}, {
"path": "TestCases.status",
"min": 1,
"definition": "The status of this test plan. Enables tracking the life-cycle of the content.",
"isModifier": true,
"short": "draft | active | retired | unknown",
"mapping": [ {
"map": "Definition.status",
"identity": "workflow"
}, {
"map": "FiveWs.status",
"identity": "w5"
} ],
"type": [ {
"code": "code"
} ],
"binding": {
"strength": "required",
"valueSet": "http://hl7.org/fhir/ValueSet/publication-status",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "PublicationStatus"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
"valueBoolean": true
} ],
"description": "The lifecycle status of an artifact."
},
"max": "1",
"id": "TestCases.status",
"comment": "Allows filtering of test plans that are appropriate for use versus not.\n\nSee guidance around (not) making local changes to elements [here](canonicalresource.html#localization).",
"isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
"isSummary": true
}, {
"path": "TestCases.experimental",
"requirements": "Enables experimental content to be developed following the same lifecycle that would be used for a production-level test plan.",
"min": 0,
"definition": "A Boolean value to indicate that this test plan is authored for testing purposes (or education/evaluation/marketing) and no version of this resource will ever be intended for genuine usage.",
"short": "For testing only - never for real usage",
"mapping": [ {
"map": "Definition.experimental",
"identity": "workflow"
}, {
"map": "FiveWs.class",
"identity": "w5"
} ],
"type": [ {
"code": "boolean"
} ],
"meaningWhenMissing": "If absent, this resource is treated as though it is not experimental.",
"max": "1",
"id": "TestCases.experimental",
"comment": "Allows filtering of test plans that are appropriate for use versus not. Experimental resources might include example instances in implementation guides, instances created solely for testing purposes, etc. If experimental is 'true' for any version of a resource, it should be true for all versions of the resource. (If experimental changes, then it is being misused or a resource that was never intended for real-world use has unexpectedly changed its purpose.).\n\nExperimental resources are not expected to be stable and may well have breaking changes without a corresponding change to the 'version' element.",
"isSummary": true
}, {
"path": "TestCases.date",
"min": 0,
"definition": "The date (and optionally time) when the test plan was last significantly changed. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the test plan changes.",
"short": "Date last changed",
"mapping": [ {
"map": "Definition.date",
"identity": "workflow"
}, {
"map": "FiveWs.recorded",
"identity": "w5"
} ],
"type": [ {
"code": "dateTime"
} ],
"alias": [ "Revision Date" ],
"max": "1",
"id": "TestCases.date",
"comment": "The date is often not tracked until the resource is published, but may be present on draft content. Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the test plan. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.\n\nSee guidance around (not) making local changes to elements [here](canonicalresource.html#localization).",
"isSummary": true
}, {
"path": "TestCases.publisher",
"requirements": "Helps establish the \"authority/credibility\" of the test plan. May also allow for contact.",
"min": 0,
"definition": "The name of the organization or individual responsible for the release and ongoing maintenance of the test plan.",
"short": "Name of the publisher/steward (organization or individual)",
"mapping": [ {
"map": "Definition.publisher",
"identity": "workflow"
}, {
"map": "FiveWs.witness",
"identity": "w5"
} ],
"type": [ {
"code": "string"
} ],
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
"valueBoolean": true
} ],
"max": "1",
"id": "TestCases.publisher",
"comment": "Usually an organization but may be an individual. The publisher (or steward) of the test plan is the organization or individual primarily responsible for the maintenance and upkeep of the test plan. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the test plan. This item SHOULD be populated unless the information is available from context.",
"isSummary": true
}, {
"path": "TestCases.contact",
"min": 0,
"definition": "Contact details to assist a user in finding and communicating with the publisher.",
"short": "Contact details for the publisher",
"mapping": [ {
"map": "Definition.contact",
"identity": "workflow"
} ],
"type": [ {
"code": "ContactDetail"
} ],
"max": "*",
"id": "TestCases.contact",
"comment": "May be a web site, an email address, a telephone number, etc.\n\nSee guidance around (not) making local changes to elements [here](canonicalresource.html#localization).",
"isSummary": true
}, {
"path": "TestCases.description",
"min": 0,
"definition": "A free text natural language description of the test plan from a consumer's perspective.",
"short": "Natural language description of the test plan",
"mapping": [ {
"map": "Definition.description",
"identity": "workflow"
} ],
"type": [ {
"code": "markdown"
} ],
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
"valueBoolean": true
} ],
"max": "1",
"id": "TestCases.description",
"comment": "This description can be used to capture details such as comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the test plan as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the test plan is presumed to be the predominant language in the place the test plan was created)."
}, {
"path": "TestCases.useContext",
"requirements": "Assist in searching for appropriate content.",
"min": 0,
"definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate test plan instances.",
"short": "The context that the content is intended to support",
"mapping": [ {
"map": "Definition.useContext",
"identity": "workflow"
} ],
"type": [ {
"code": "UsageContext"
} ],
"max": "*",
"id": "TestCases.useContext",
"comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
"isSummary": true
}, {
"path": "TestCases.jurisdiction",
"min": 0,
"definition": "A legal or geographic region in which the test plan is intended to be used.",
"short": "Intended jurisdiction where the test plan applies (if applicable)",
"mapping": [ {
"map": "Definition.jurisdiction",
"identity": "workflow"
} ],
"type": [ {
"code": "CodeableConcept"
} ],
"binding": {
"strength": "extensible",
"valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "Jurisdiction"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
"valueBoolean": true
} ],
"description": "Countries and regions within which this artifact is targeted for use."
},
"max": "*",
"id": "TestCases.jurisdiction",
"comment": "It may be possible for the test plan to be used in jurisdictions other than those for which it was originally designed or intended.\n\nDEPRECATION NOTE: For consistency, implementations are encouraged to migrate to using the new 'jurisdiction' code in the useContext element. (I.e. useContext.code indicating http://terminology.hl7.org/CodeSystem/usage-context-type#jurisdiction and useContext.valueCodeableConcept indicating the jurisdiction.)",
"isSummary": true
}, {
"path": "TestCases.purpose",
"min": 0,
"definition": "Explanation of why this test plan is needed and why it has been designed as it has.",
"short": "Why this test plan is defined",
"mapping": [ {
"map": "Definition.purpose",
"identity": "workflow"
}, {
"map": "FiveWs.why[x]",
"identity": "w5"
}, {
"map": "no-gen-base",
"identity": "objimpl"
} ],
"type": [ {
"code": "markdown"
} ],
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
"valueBoolean": true
} ],
"max": "1",
"id": "TestCases.purpose",
"comment": "This element does not describe the usage of the test plan Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is. This may be used to point to source materials or specifications that drove the structure of this test plan."
}, {
"path": "TestCases.copyright",
"requirements": "Consumers must be able to determine any legal restrictions on the use of the test plan and/or its content.",
"min": 0,
"definition": "A copyright statement relating to the test plan and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the test plan. The short copyright declaration (e.g. (c) '2015+ xyz organization' should be sent in the copyrightLabel element.",
"short": "Use and/or publishing restrictions",
"mapping": [ {
"map": "Definition.copyright",
"identity": "workflow"
}, {
"map": "no-gen-base",
"identity": "objimpl"
} ],
"type": [ {
"code": "markdown"
} ],
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
"valueBoolean": true
} ],
"alias": [ "License", "Restrictions" ],
"max": "1",
"id": "TestCases.copyright"
}, {
"path": "TestCases.copyrightLabel",
"requirements": "Defines the content expected to be rendered in all representations of the artifact.",
"min": 0,
"definition": "A short string (<50 characters), suitable for inclusion in a page footer that identifies the copyright holder, effective period, and optionally whether rights are resctricted. (e.g. 'All rights reserved', 'Some rights reserved').",
"short": "Copyright holder and year(s)",
"type": [ {
"code": "string"
} ],
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
"valueBoolean": true
} ],
"max": "1",
"id": "TestCases.copyrightLabel",
"comment": "The (c) symbol should NOT be included in this string. It will be added by software when rendering the notation. Full details about licensing, restrictions, warrantees, etc. goes in the more general 'copyright' element."
}, {
"id": "TestCases.scope",
"max": "*",
"min": 0,
"path": "TestCases.scope",
"type": [ {
"code": "Base"
} ],
"short": "The scope - what these test cases are testing",
"definition": "The scope indicates what kind of systems these test cases are intended to test."
}, {
"id": "TestCases.scope.reference",
"max": "1",
"min": 0,
"path": "TestCases.scope.reference",
"type": [ {
"code": "canonical",
"targetProfile": [ "http://hl7.org/fhir/StructureDefinition/ImplementationGuide", "http://hl7.org/fhir/StructureDefinition/StructureDefinition", "http://hl7.org/fhir/StructureDefinition/CapabilityStatement" ]
} ],
"short": "A reference to what is being tested",
"definition": "A reference to what is being tested."
}, {
"id": "TestCases.scope.description",
"max": "1",
"min": 0,
"path": "TestCases.scope.description",
"type": [ {
"code": "string"
} ],
"short": "Description of what the scope is exists / what is being tested",
"definition": "Description of what the scope is does / what is being tested."
}, {
"id": "TestCases.dependency",
"max": "*",
"min": 0,
"path": "TestCases.dependency",
"type": [ {
"code": "Base"
} ],
"short": "Test cases that must be passed before these test cases are meaningful to execute",
"definition": "Another set of test cases that must be passed before these test cases are meaningful to execute. These test cases prove functionality that these tests require to execute."
}, {
"id": "TestCases.dependency.reference",
"max": "1",
"min": 1,
"path": "TestCases.dependency.reference",
"type": [ {
"code": "canonical",
"targetProfile": [ "http://hl7.org/fhir/StructureDefinition/TestCases" ]
} ],
"short": "The Test Cases",
"definition": "The test cases."
}, {
"id": "TestCases.dependency.description",
"max": "1",
"min": 0,
"path": "TestCases.dependency.description",
"type": [ {
"code": "string"
} ],
"short": "Description of what the dependency exists / why it was defined",
"definition": "Description of what this mode does / why it was defined. This should explain to a tester why the ."
}, {
"id": "TestCases.runner",
"max": "1",
"min": 1,
"path": "TestCases.runner",
"type": [ {
"code": "url"
} ],
"short": "URL Documentation for a runner that executes these tests",
"isSummary": true,
"definition": "URL of documentation that explains how a runner would read these tests, and use them to actually test out a tool."
}, {
"id": "TestCases.mode",
"max": "*",
"min": 0,
"path": "TestCases.mode",
"type": [ {
"code": "Base"
} ],
"short": "A mode that can be passed to runner - affects test content",
"definition": "A mode that can be passed to a runner running these these tests, that affects test content and influences how the tests are executed or evaulated (or even if they run)."
}, {
"path": "TestCases.mode.code",
"requirements": "Allows the runner to select which tests and parameters are relevant for this mode.",
"min": 1,
"definition": "The code by which the mode is identified when passed to runner. This code is used to select which suite and tests are run, and which parameters and inputs are used. Codes are entirely at the descretion of the TestCases, but typically 'advanced' or 'general' are the kind of codes that could be used.",
"short": "The code that identifies the mode",
"type": [ {
"code": "string"
} ],
"extension": [ {
"url": "http://hl7.org/fhir/build/StructureDefinition/no-binding",
"valueBoolean": true
} ],
"max": "1",
"id": "TestCases.mode.code",
"comment": "The code should be a simple alphanumeric type name to ensure that it is machine-processing friendly."
}, {
"id": "TestCases.mode.description",
"max": "1",
"min": 0,
"path": "TestCases.mode.description",
"type": [ {
"code": "string"
} ],
"short": "Description of what this mode exists / why it was defined",
"definition": "Description of what this mode does / why it was defined. This should explain to a tester when they should use the mode."
}, {
"id": "TestCases.parameter",
"max": "*",
"min": 0,
"path": "TestCases.parameter",
"type": [ {
"code": "Base"
} ],
"short": "Parameter defined for all tests",
"definition": "A parameter passed to the runner when executing tests. Which parameters are valid, and how exactly the parameter is used are used depends on the definition of the runner."
}, {
"id": "TestCases.parameter.name",
"max": "1",
"min": 1,
"path": "TestCases.parameter.name",
"type": [ {
"code": "string"
} ],
"short": "Name per Runner Definition",
"definition": "Name for the parameter as defined by the runner definition."
}, {
"id": "TestCases.parameter.value[x]",
"max": "1",
"min": 1,
"path": "TestCases.parameter.value[x]",
"type": [ {
"code": "string"
}, {
"code": "boolean"
}, {
"code": "integer"
}, {
"code": "decimal"
}, {
"code": "dateTime"
}, {
"code": "uri"
}, {
"code": "Coding"
}, {
"code": "Quantity"
}, {
"code": "Expression"
} ],
"short": "Value of this parameter",
"definition": "The value of the parameter. If the value is an Expression, the definition of the runner describes what kind of expressions are allowed and the features/capabilities that they can make use of."
}, {
"path": "TestCases.parameter.mode",
"min": 0,
"definition": "If this mode is not passed to the runner, then this parameter will not be used.",
"short": "A mode that must be true for this parameter to be used",
"type": [ {
"code": "code"
} ],
"meaningWhenMissing": "If no modes are listed, the parameter is always used, unless there is a parameter with the same name that is selected by mode",
"extension": [ {
"url": "http://hl7.org/fhir/build/StructureDefinition/no-binding",
"valueBoolean": true
} ],
"max": "1",
"id": "TestCases.parameter.mode"
}, {
"id": "TestCases.suite",
"max": "*",
"min": 0,
"path": "TestCases.suite",
"type": [ {
"code": "Base"
} ],
"short": "A suite of tests that share a common set up",
"definition": "A suite of tests that all share a common set up, and can be executed as a group."
}, {
"id": "TestCases.suite.name",
"max": "1",
"min": 1,
"path": "TestCases.suite.name",
"type": [ {
"code": "string"
} ],
"short": "The name of this suite - unique in the TestCases resource",
"definition": "The name by which this suite is known by in the test system. The name must be unique in the amongst the suites."
}, {
"id": "TestCases.suite.description",
"max": "1",
"min": 0,
"path": "TestCases.suite.description",
"type": [ {
"code": "string"
} ],
"short": "Description of what this suite does / why it was defined",
"definition": "Description of what this suite does / why it was defined. This should explain to a tester what they should know when deciding which tests to run."
}, {
"path": "TestCases.suite.mode",
"min": 0,
"definition": "If this mode is not passed to the runner, then this suite will not be run.",
"short": "Mode required to run this suite",
"type": [ {
"code": "code"
} ],
"meaningWhenMissing": "If no modes are listed, the suite is always executed",
"extension": [ {
"url": "http://hl7.org/fhir/build/StructureDefinition/no-binding",
"valueBoolean": true
} ],
"max": "1",
"id": "TestCases.suite.mode"
}, {
"id": "TestCases.suite.input",
"max": "*",
"min": 0,
"path": "TestCases.suite.input",
"type": [ {
"code": "Base"
} ],
"short": "Resources used in the tests in this suite",
"constraint": [ {
"key": "tp-1",
"human": "Either a file, or a resource, but not both",
"severity": "error",
"expression": "file.exists() xor resource.exists()"
} ],
"definition": "The resources used in the tests in this suite. How exactly they are used depends on the definition of the runner ."
}, {
"id": "TestCases.suite.input.name",
"max": "1",
"min": 0,
"path": "TestCases.suite.input.name",
"type": [ {
"code": "string"
} ],
"short": "A name for this resource (per runner definition)",
"definition": "A name that identifies this resource. The runner definition defines whether there must be a name, and what names there are."
}, {
"id": "TestCases.suite.input.file",
"max": "1",
"min": 0,
"path": "TestCases.suite.input.file",
"type": [ {
"code": "string"
} ],
"short": "A file containing a resource used in the tests",
"comment": "Filename is relative to the folder/directory containing this TestCases",
"definition": "A file containing a resource used in the tests."
}, {
"id": "TestCases.suite.input.resource",
"max": "1",
"min": 0,
"path": "TestCases.suite.input.resource",
"type": [ {
"code": "Resource"
} ],
"short": "An inline resource used in the tests",
"definition": "An inline resource used in the tests. How exactly it is used depends on the definition of the runner."
}, {
"path": "TestCases.suite.input.mode",
"min": 0,
"definition": "If this mode is not passed to the runner, then this resource will not be used.",
"short": "A mode that must be true for this resource to be used",
"type": [ {
"code": "code"
} ],
"meaningWhenMissing": "If no modes are listed, the resource is always used, unless there is another entry with the same name that is selected by mode",
"extension": [ {
"url": "http://hl7.org/fhir/build/StructureDefinition/no-binding",
"valueBoolean": true
} ],
"max": "1",
"id": "TestCases.suite.input.mode"
}, {
"id": "TestCases.suite.parameter",
"max": "*",
"min": 0,
"path": "TestCases.suite.parameter",
"short": "Parameter defined by the suite",
"definition": "A parameter passed to the runner when executing tests. Which parameters are valid, and how exactly the parameter is used are used depends on the definition of the runner.",
"contentReference": "http://hl7.org/fhir/StructureDefinition/TestCases#TestCases.parameter"
}, {
"id": "TestCases.suite.test",
"max": "*",
"min": 0,
"path": "TestCases.suite.test",
"type": [ {
"code": "Base"
} ],
"short": "A test in the test suite",
"definition": "An actual test in the test suite."
}, {
"id": "TestCases.suite.test.name",
"max": "1",
"min": 1,
"path": "TestCases.suite.test.name",
"type": [ {
"code": "string"
} ],
"short": "The name of this test - unique in the suite",
"definition": "The name by which this test is known by in the test system. The name must be unique in the suite."
}, {
"id": "TestCases.suite.test.description",
"max": "1",
"min": 0,
"path": "TestCases.suite.test.description",
"type": [ {
"code": "string"
} ],
"short": "Description of what this test does / why it was defined",
"definition": "Description of what this test does / why it was defined. This should explain to a tester what they should know when looking at failing test results."
}, {
"id": "TestCases.suite.test.operation",
"max": "1",
"min": 0,
"path": "TestCases.suite.test.operation",
"type": [ {
"code": "code"
} ],
"short": "Operation that is executed during this test (per definition of runner)",
"extension": [ {
"url": "http://hl7.org/fhir/build/StructureDefinition/no-binding",
"valueBoolean": true
} ],
"definition": "A code that identifies the operation executed for this test. One of the codes defined in the definition of the runner."
}, {
"path": "TestCases.suite.test.mode",
"min": 0,
"definition": "If this mode is not passed to the runner, then this test will not be run.",
"short": "Mode required to run this test",
"type": [ {
"code": "code"
} ],
"meaningWhenMissing": "If no modes are listed, the test is always executed",
"extension": [ {
"url": "http://hl7.org/fhir/build/StructureDefinition/no-binding",
"valueBoolean": true
} ],
"max": "1",
"id": "TestCases.suite.test.mode"
}, {
"id": "TestCases.suite.test.parameter",
"max": "*",
"min": 0,
"path": "TestCases.suite.test.parameter",
"short": "Parameter defined by the test",
"definition": "A parameter passed to the runner when executing tests. Which parameters are valid, and how exactly the parameter is used are used depends on the definition of the runner.",
"contentReference": "http://hl7.org/fhir/StructureDefinition/TestCases#TestCases.parameter"
}, {
"id": "TestCases.suite.test.input",
"max": "*",
"min": 0,
"path": "TestCases.suite.test.input",
"short": "Resources used when executing this test (per runner definition)",
"definition": "The resources used when executing this test. How exactly they are used depends on the definition of the runner.",
"contentReference": "http://hl7.org/fhir/StructureDefinition/TestCases#TestCases.suite.input"
}, {
"id": "TestCases.suite.test.expected",
"max": "*",
"min": 0,
"path": "TestCases.suite.test.expected",
"short": "Resources expected as output from this test (per runner definition, often Matchetypes)",
"definition": "Resources expected as output from this test. Often, but not always, these resources are Matchetype resources. How exactly it is used depends on the definition of the runner. How exactly it is used depends on the definition of the runner, but the expectation is that these are the expected output, to which the actual output is compared.",
"contentReference": "http://hl7.org/fhir/StructureDefinition/TestCases#TestCases.suite.input"
}, {
"id": "TestCases.suite.test.assertion",
"max": "*",
"min": 0,
"path": "TestCases.suite.test.assertion",
"type": [ {
"code": "Base"
} ],
"short": "Assertions that can be executed against the output of the tests",
"constraint": [ {
"key": "tp-2",
"human": "At least an expression or a human readable rule must exist",
"severity": "error",
"expression": "expression.exists() or human.exists()"
} ],
"definition": "One or more assertions that can be executed against the output of the tests. These may be used with matchetypes to make rules about content the matchetypes leave open."
}, {
"id": "TestCases.suite.test.assertion.focus",
"max": "1",
"min": 0,
"path": "TestCases.suite.test.assertion.focus",
"type": [ {
"code": "string"
} ],
"short": "Which output the assertion is tested on (by name, if there is more than one)",
"definition": "Resources expected as output from this test. Often, but not always, these resources are Matchetype resources."
}, {
"id": "TestCases.suite.test.assertion.severity",
"max": "1",
"min": 0,
"path": "TestCases.suite.test.assertion.severity",
"type": [ {
"code": "code"
} ],
"short": "fatal | error | warning | information | success; fatal+error = fail",
"binding": {
"strength": "required",
"valueSet": "http://hl7.org/fhir/ValueSet/issue-severity|5.0.0",
"description": "The severity of the assertion"
},
"definition": "Resources expected as output from this test. Only error and fatal assertions are considered to cause a test to fail. Often, but not always, these resources are Matchetype resources. How exactly it is used depends on the definition of the runner."
}, {
"id": "TestCases.suite.test.assertion.expression",
"max": "1",
"min": 0,
"path": "TestCases.suite.test.assertion.expression",
"type": [ {
"code": "Expression"
} ],
"short": "Technical Expression of the assertion",
"definition": "Resources expected as output from this test. Often, but not always, these resources are Matchetype resources. How exactly it is used depends on the definition of the runner."
}, {
"id": "TestCases.suite.test.assertion.human",
"max": "1",
"min": 0,
"path": "TestCases.suite.test.assertion.human",
"type": [ {
"code": "string"
} ],
"short": "Human readable description of the assertion",
"definition": "A human readable description of the assertion."
}, {
"path": "TestCases.suite.test.assertion.mode",
"min": 0,
"definition": "If this mode is not passed to the runner, then this assertion will not be used.",
"short": "A mode that must be true for this assertion to apply",
"type": [ {
"code": "code"
} ],
"meaningWhenMissing": "If no modes are listed, the assertion is always used, unless there is another assertion with the same name that is selected by mode",
"extension": [ {
"url": "http://hl7.org/fhir/build/StructureDefinition/no-binding",
"valueBoolean": true
} ],
"max": "1",
"id": "TestCases.suite.test.assertion.mode"
}, {
"id": "TestCases.suite.suite",
"max": "*",
"min": 0,
"path": "TestCases.suite.suite",
"short": "A nested suite of tests",
"definition": "A nested set of tests.",
"contentReference": "http://hl7.org/fhir/StructureDefinition/TestCases#TestCases.suite"
}, {
"id": "TestCases.suite.plan",
"max": "*",
"min": 0,
"path": "TestCases.suite.plan",
"type": [ {
"code": "Reference",
"targetProfile": [ "http://hl7.org/fhir/StructureDefinition/TestCases" ]
} ],
"short": "A nested set of test plans",
"comment": "This is a reference to allow for direct local file references etc, but since TestCases is a CanonicalResource, it can also be resolved as a canonical reference.",
"definition": "A nested set of test plans that run within the context of this suite. Typically, the runner must be the same in the nested test plans."
} ]
},
"contact": [ {
"telecom": [ {
"value": "http://www.hl7.org/Special/committees/fiwg",
"system": "url"
} ]
} ],
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/CanonicalResource"
}