PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.tools.r5@0.9.0
    http://hl7.org/fhir/StructureDefinition/TestCases
{
  "description": "A plan for executing testing on an artifact or specifications",
  "_filename": "StructureDefinition-TestCases.json",
  "package_name": "hl7.fhir.uv.tools.r5",
  "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": "5.0.0",
  "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
  } ],
  "snapshot": {
    "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/CanonicalResource",
        "severity": "warning",
        "expression": "name.exists() implies name.matches('^[A-Z]([A-Za-z0-9_]){1,254}$')"
      }, {
        "key": "dom-2",
        "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-3",
        "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()"
      }, {
        "key": "dom-4",
        "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-5",
        "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.security.empty()"
      }, {
        "key": "dom-6",
        "human": "A resource should have narrative for robust management",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "warning",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
          "valueBoolean": true
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
          "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
        } ],
        "expression": "text.`div`.exists()"
      } ],
      "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.",
      "isModifier": false,
      "short": "Tests to be executed by a Test Runner that knows the tests",
      "mapping": [ {
        "map": "conformance.misc,conformance.behavior",
        "identity": "w5"
      }, {
        "map": "Entity, Role, or Act",
        "identity": "rim"
      } ],
      "mustSupport": false,
      "extension": [ {
        "url": "http://hl7.org/fhir/build/StructureDefinition/svg",
        "valueCode": "0,0"
      } ],
      "max": "*",
      "id": "TestCases",
      "base": {
        "max": "1",
        "min": 1,
        "path": "CanonicalResource"
      },
      "isSummary": false
    }, {
      "path": "TestCases.id",
      "min": 0,
      "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
      "isModifier": false,
      "short": "Logical id of this artifact",
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "TestCases.id",
      "comment": "Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.id"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "TestCases.meta",
      "min": 0,
      "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
      "isModifier": false,
      "short": "Metadata about the resource",
      "type": [ {
        "code": "Meta"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "TestCases.meta",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "TestCases.implicitRules",
      "min": 0,
      "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
      "isModifier": true,
      "short": "A set of rules under which this content was created",
      "type": [ {
        "code": "uri"
      } ],
      "mustSupport": false,
      "max": "1",
      "id": "TestCases.implicitRules",
      "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of its narrative along with other profiles, value sets, etc.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.implicitRules"
      },
      "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies its meaning or interpretation",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "TestCases.language",
      "min": 0,
      "definition": "The base language in which the resource is written.",
      "isModifier": false,
      "short": "Language of the resource content",
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": false,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/all-languages|5.0.0",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Language"
        } ],
        "additional": [ {
          "purpose": "starter",
          "valueSet": "http://hl7.org/fhir/ValueSet/languages|5.0.0"
        } ],
        "description": "IETF language tag for a human language"
      },
      "max": "1",
      "id": "TestCases.language",
      "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.language"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "TestCases.text",
      "min": 0,
      "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
      "isModifier": false,
      "short": "Text summary of the resource, for human interpretation",
      "mapping": [ {
        "map": "Act.text?",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "mustSupport": false,
      "alias": [ "narrative", "html", "xhtml", "display" ],
      "max": "1",
      "id": "TestCases.text",
      "condition": [ "dom-6" ],
      "comment": "Contained resources do not have a narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DomainResource.text"
      },
      "isSummary": false
    }, {
      "path": "TestCases.contained",
      "min": 0,
      "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning.",
      "isModifier": false,
      "short": "Contained, inline Resources",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "mustSupport": false,
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "*",
      "id": "TestCases.contained",
      "condition": [ "dom-2", "dom-4", "dom-3", "dom-5" ],
      "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags in their meta elements, but SHALL NOT have security labels.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "TestCases.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "mustSupport": false,
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "TestCases.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "TestCases.modifierExtension",
      "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "mustSupport": false,
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "TestCases.modifierExtension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
      "isSummary": true
    }, {
      "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('^[^|# ]+$')"
      }, {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "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.",
      "isModifier": false,
      "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"
      } ],
      "mustSupport": false,
      "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CanonicalResource.url"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "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.",
      "isModifier": false,
      "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"
      } ],
      "mustSupport": false,
      "max": "*",
      "id": "TestCases.identifier",
      "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this {{title}} outside of FHIR, where it is not possible to use the logical URI.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CanonicalResource.identifier"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "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.",
      "isModifier": false,
      "short": "Business version of the test plan",
      "mapping": [ {
        "map": "Definition.version",
        "identity": "workflow"
      }, {
        "map": "FiveWs.version",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": false,
      "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).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CanonicalResource.version"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "TestCases.versionAlgorithm[x]",
      "min": 0,
      "definition": "Indicates the mechanism used to compare versions to determine which is more current.",
      "isModifier": false,
      "short": "How to compare versions",
      "type": [ {
        "code": "string"
      }, {
        "code": "Coding"
      } ],
      "mustSupport": false,
      "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CanonicalResource.versionAlgorithm[x]"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "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.",
      "isModifier": false,
      "short": "Name for this test plan (computer friendly)",
      "mapping": [ {
        "map": "Definition.name",
        "identity": "workflow"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": false,
      "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CanonicalResource.name"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "TestCases.title",
      "min": 0,
      "definition": "A short, descriptive, user-friendly title for the test plan.",
      "isModifier": false,
      "short": "Name for this test plan (human friendly)",
      "mapping": [ {
        "map": "Definition.title",
        "identity": "workflow"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": false,
      "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CanonicalResource.title"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "TestCases.status",
      "requirements": "Enables tracking the life-cycle of the content and filtering of {{title}}s that are appropriate for use versus not.",
      "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"
      } ],
      "mustSupport": false,
      "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).",
      "base": {
        "max": "1",
        "min": 1,
        "path": "CanonicalResource.status"
      },
      "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "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.",
      "isModifier": false,
      "short": "For testing only - never for real usage",
      "mapping": [ {
        "map": "Definition.experimental",
        "identity": "workflow"
      }, {
        "map": "FiveWs.class",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "boolean"
      } ],
      "mustSupport": false,
      "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CanonicalResource.experimental"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "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.",
      "isModifier": false,
      "short": "Date last changed",
      "mapping": [ {
        "map": "Definition.date",
        "identity": "workflow"
      }, {
        "map": "FiveWs.recorded",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "mustSupport": false,
      "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).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CanonicalResource.date"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "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.",
      "isModifier": false,
      "short": "Name of the publisher/steward (organization or individual)",
      "mapping": [ {
        "map": "Definition.publisher",
        "identity": "workflow"
      }, {
        "map": "FiveWs.witness",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": false,
      "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CanonicalResource.publisher"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "TestCases.contact",
      "min": 0,
      "definition": "Contact details to assist a user in finding and communicating with the publisher.",
      "isModifier": false,
      "short": "Contact details for the publisher",
      "mapping": [ {
        "map": "Definition.contact",
        "identity": "workflow"
      } ],
      "type": [ {
        "code": "ContactDetail"
      } ],
      "mustSupport": false,
      "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).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CanonicalResource.contact"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "TestCases.description",
      "min": 0,
      "definition": "A free text natural language description of the test plan from a consumer's perspective.",
      "isModifier": false,
      "short": "Natural language description of the test plan",
      "mapping": [ {
        "map": "Definition.description",
        "identity": "workflow"
      } ],
      "type": [ {
        "code": "markdown"
      } ],
      "mustSupport": false,
      "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).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CanonicalResource.description"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "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.",
      "isModifier": false,
      "short": "The context that the content is intended to support",
      "mapping": [ {
        "map": "Definition.useContext",
        "identity": "workflow"
      } ],
      "type": [ {
        "code": "UsageContext"
      } ],
      "mustSupport": false,
      "max": "*",
      "id": "TestCases.useContext",
      "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CanonicalResource.useContext"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "TestCases.jurisdiction",
      "min": 0,
      "definition": "A legal or geographic region in which the test plan is intended to be used.",
      "isModifier": false,
      "short": "Intended jurisdiction where the test plan applies (if applicable)",
      "mapping": [ {
        "map": "Definition.jurisdiction",
        "identity": "workflow"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": false,
      "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.)",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CanonicalResource.jurisdiction"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "TestCases.purpose",
      "min": 0,
      "definition": "Explanation of why this test plan is needed and why it has been designed as it has.",
      "isModifier": false,
      "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"
      } ],
      "mustSupport": false,
      "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CanonicalResource.purpose"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "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.",
      "isModifier": false,
      "short": "Use and/or publishing restrictions",
      "mapping": [ {
        "map": "Definition.copyright",
        "identity": "workflow"
      }, {
        "map": "no-gen-base",
        "identity": "objimpl"
      } ],
      "type": [ {
        "code": "markdown"
      } ],
      "mustSupport": false,
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "alias": [ "License", "Restrictions" ],
      "max": "1",
      "id": "TestCases.copyright",
      "comment": "The short copyright declaration (e.g. (c) '2015+ xyz organization' should be sent in the copyrightLabel element.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CanonicalResource.copyright"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "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').",
      "isModifier": false,
      "short": "Copyright holder and year(s)",
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": false,
      "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CanonicalResource.copyrightLabel"
      },
      "isSummary": false
    }, {
      "id": "TestCases.scope",
      "max": "*",
      "min": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "TestCases.scope"
      },
      "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,
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.scope.reference"
      },
      "path": "TestCases.scope.reference",
      "type": [ {
        "code": "canonical",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/ActorDefinition", "http://hl7.org/fhir/StructureDefinition/ImplementationGuide", "http://hl7.org/fhir/StructureDefinition/StructureDefinition", "http://hl7.org/fhir/StructureDefinition/CapabilityStatement", "http://hl7.org/fhir/StructureDefinition/Requirements" ]
      } ],
      "short": "A reference to what is being tested",
      "definition": "A reference to what is being tested."
    }, {
      "id": "TestCases.scope.description",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.scope.description"
      },
      "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,
      "base": {
        "max": "*",
        "min": 0,
        "path": "TestCases.dependency"
      },
      "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,
      "base": {
        "max": "1",
        "min": 1,
        "path": "TestCases.dependency.reference"
      },
      "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,
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.dependency.description"
      },
      "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 ."
    }, {
      "path": "TestCases.runner",
      "min": 1,
      "definition": "URL of documentation that explains how a runner would read these tests, and use them to actually test out a tool.",
      "short": "URL Documentation for a runner that executes these tests",
      "type": [ {
        "code": "url"
      } ],
      "max": "1",
      "id": "TestCases.runner",
      "base": {
        "max": "1",
        "min": 1,
        "path": "TestCases.runner"
      },
      "isSummary": true
    }, {
      "id": "TestCases.mode",
      "max": "*",
      "min": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "TestCases.mode"
      },
      "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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "TestCases.mode.code"
      }
    }, {
      "id": "TestCases.mode.description",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.mode.description"
      },
      "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,
      "base": {
        "max": "*",
        "min": 0,
        "path": "TestCases.parameter"
      },
      "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,
      "base": {
        "max": "1",
        "min": 1,
        "path": "TestCases.parameter.name"
      },
      "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,
      "base": {
        "max": "1",
        "min": 1,
        "path": "TestCases.parameter.value[x]"
      },
      "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",
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.parameter.mode"
      }
    }, {
      "id": "TestCases.suite",
      "max": "*",
      "min": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "TestCases.suite"
      },
      "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,
      "base": {
        "max": "1",
        "min": 1,
        "path": "TestCases.suite.name"
      },
      "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,
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.description"
      },
      "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",
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.mode"
      }
    }, {
      "constraint": [ {
        "key": "tp-1",
        "human": "Either a file, or a resource, but not both",
        "severity": "error",
        "expression": "file.exists() xor resource.exists()"
      } ],
      "path": "TestCases.suite.input",
      "min": 0,
      "definition": "The resources used in the tests in this suite. How exactly they are used depends on the definition of the runner .",
      "short": "Resources used in the tests in this suite",
      "type": [ {
        "code": "Base"
      } ],
      "max": "*",
      "id": "TestCases.suite.input",
      "base": {
        "max": "*",
        "min": 0,
        "path": "TestCases.suite.input"
      }
    }, {
      "id": "TestCases.suite.input.name",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.input.name"
      },
      "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."
    }, {
      "path": "TestCases.suite.input.file",
      "min": 0,
      "definition": "A file containing a resource used in the tests.",
      "short": "A file containing a resource used in the tests",
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "TestCases.suite.input.file",
      "comment": "Filename is relative to the folder/directory containing this TestCases",
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.input.file"
      }
    }, {
      "id": "TestCases.suite.input.resource",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.input.resource"
      },
      "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",
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.input.mode"
      }
    }, {
      "id": "TestCases.suite.parameter",
      "max": "*",
      "min": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "TestCases.suite.parameter"
      },
      "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,
      "base": {
        "max": "*",
        "min": 0,
        "path": "TestCases.suite.test"
      },
      "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,
      "base": {
        "max": "1",
        "min": 1,
        "path": "TestCases.suite.test.name"
      },
      "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,
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.test.description"
      },
      "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."
    }, {
      "path": "TestCases.suite.test.operation",
      "min": 0,
      "definition": "A code that identifies the operation executed for this test. One of the codes defined in the definition of the runner.",
      "short": "Operation that is executed during this test (per definition of runner)",
      "type": [ {
        "code": "code"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/build/StructureDefinition/no-binding",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "TestCases.suite.test.operation",
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.test.operation"
      }
    }, {
      "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",
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.test.mode"
      }
    }, {
      "id": "TestCases.suite.test.parameter",
      "max": "*",
      "min": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "TestCases.suite.test.parameter"
      },
      "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,
      "base": {
        "max": "*",
        "min": 0,
        "path": "TestCases.suite.test.input"
      },
      "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,
      "base": {
        "max": "*",
        "min": 0,
        "path": "TestCases.suite.test.expected"
      },
      "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"
    }, {
      "constraint": [ {
        "key": "tp-2",
        "human": "At least an expression or a human readable rule must exist",
        "severity": "error",
        "expression": "expression.exists() or human.exists()"
      } ],
      "path": "TestCases.suite.test.assertion",
      "min": 0,
      "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.",
      "short": "Assertions that can be executed against the output of the tests",
      "type": [ {
        "code": "Base"
      } ],
      "max": "*",
      "id": "TestCases.suite.test.assertion",
      "base": {
        "max": "*",
        "min": 0,
        "path": "TestCases.suite.test.assertion"
      }
    }, {
      "id": "TestCases.suite.test.assertion.focus",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.test.assertion.focus"
      },
      "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."
    }, {
      "path": "TestCases.suite.test.assertion.severity",
      "min": 0,
      "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.",
      "short": "fatal | error | warning | information | success; fatal+error = fail",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/issue-severity|5.0.0",
        "description": "The severity of the assertion"
      },
      "max": "1",
      "id": "TestCases.suite.test.assertion.severity",
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.test.assertion.severity"
      }
    }, {
      "id": "TestCases.suite.test.assertion.expression",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.test.assertion.expression"
      },
      "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,
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.test.assertion.human"
      },
      "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",
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.test.assertion.mode"
      }
    }, {
      "id": "TestCases.suite.suite",
      "max": "*",
      "min": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "TestCases.suite.suite"
      },
      "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"
    }, {
      "path": "TestCases.suite.plan",
      "min": 0,
      "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.",
      "short": "A nested set of test plans",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/TestCases" ]
      } ],
      "max": "*",
      "id": "TestCases.suite.plan",
      "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "TestCases.suite.plan"
      }
    } ],
    "extension": [ {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
      "valueString": "5.0.0"
    } ]
  },
  "status": "draft",
  "id": "0922090b-4532-46e0-8dd3-b06dbc7dc1f0",
  "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/ActorDefinition", "http://hl7.org/fhir/StructureDefinition/ImplementationGuide", "http://hl7.org/fhir/StructureDefinition/StructureDefinition", "http://hl7.org/fhir/StructureDefinition/CapabilityStatement", "http://hl7.org/fhir/StructureDefinition/Requirements" ]
      } ],
      "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"
}