PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.tools@0.4.1
    http://hl7.org/fhir/tools/StructureDefinition/TestCases
{
  "description": "A standard format for test cases used throughout the FHIR ecosystem",
  "_filename": "StructureDefinition-TestCases.json",
  "package_name": "hl7.fhir.uv.tools",
  "date": "2025-03-11T14:21:51+11:00",
  "derivation": "specialization",
  "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/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  } ],
  "abstract": false,
  "type": "http://hl7.org/fhir/tools/StructureDefinition/TestCases",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "Test Cases",
  "package_version": "0.4.1",
  "extension": [ {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode": "fhir"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger": 3,
    "_valueInteger": {
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical": "http://hl7.org/fhir/tools/ImplementationGuide/hl7.fhir.uv.tools"
      } ]
    }
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode": "informative",
    "_valueCode": {
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical": "http://hl7.org/fhir/tools/ImplementationGuide/hl7.fhir.uv.tools"
      } ]
    }
  } ],
  "snapshot": {
    "element": [ {
      "path": "TestCases",
      "min": 0,
      "definition": "A set of tests that are executed by some runner to test the functionality of a tool in the FHIR ecosystem",
      "isModifier": false,
      "short": "Test Suite - set of tests executed by a runner",
      "mapping": [ {
        "map": "n/a,Entity. Role, or Act",
        "identity": "rim"
      } ],
      "mustSupport": false,
      "max": "*",
      "id": "TestCases",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Resource"
      },
      "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"
        } ],
        "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": "cnl-1",
        "human": "URL should not contain | or # - these characters make processing canonical references problematic",
        "severity": "warning",
        "expression": "exists() implies matches('^[^|# ]+$')"
      } ],
      "path": "TestCases.url",
      "min": 0,
      "definition": "An absolute URI that is used to identify test tests.",
      "isModifier": false,
      "short": "Canonical identifier for these tests, represented as a URI (globally unique)",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "TestCases.url",
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.url"
      },
      "isSummary": true
    }, {
      "path": "TestCases.version",
      "min": 0,
      "definition": "The identifier that is used to identify this version of these tests. Version must use SemVer",
      "isModifier": false,
      "short": "Business version of the test set (semver)",
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "TestCases.version",
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.version"
      },
      "isSummary": true
    }, {
      "path": "TestCases.name",
      "min": 0,
      "definition": "A natural language name identifying the tests. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
      "isModifier": false,
      "short": "Name for these tests",
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "TestCases.name",
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.name"
      },
      "isSummary": true
    }, {
      "path": "TestCases.description",
      "min": 0,
      "definition": "General description of these teats.",
      "isModifier": false,
      "short": "General Description of these tests",
      "type": [ {
        "code": "markdown"
      } ],
      "max": "1",
      "id": "TestCases.description",
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.description"
      },
      "isSummary": true
    }, {
      "id": "TestCases.runner",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "TestCases.runner"
      },
      "path": "TestCases.runner",
      "type": [ {
        "code": "url"
      } ],
      "short": "URL Documentation for a runner that executes these tests",
      "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,
      "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)"
    }, {
      "id": "TestCases.mode.code",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "TestCases.mode.code"
      },
      "path": "TestCases.mode.code",
      "type": [ {
        "code": "string"
      } ],
      "short": "The code that identifies the mode",
      "definition": "The code by which the mode is identified when passed to runner"
    }, {
      "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.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",
      "max": "1",
      "id": "TestCases.suite.mode",
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.mode"
      }
    }, {
      "constraint": [ {
        "key": "ts-2",
        "human": "Either a file, or a resource, but not both",
        "severity": "error",
        "expression": "file xor resource"
      } ],
      "path": "TestCases.suite.setup",
      "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.setup",
      "base": {
        "max": "*",
        "min": 0,
        "path": "TestCases.suite.setup"
      }
    }, {
      "id": "TestCases.suite.setup.name",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.setup.name"
      },
      "path": "TestCases.suite.setup.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.setup.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.setup.file",
      "comment": "Filename is relative to the folder/directory containing this TestCases",
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.setup.file"
      }
    }, {
      "id": "TestCases.suite.setup.resource",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.setup.resource"
      },
      "path": "TestCases.suite.setup.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.setup.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",
      "max": "1",
      "id": "TestCases.suite.setup.mode",
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.setup.mode"
      }
    }, {
      "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"
    }, {
      "id": "TestCases.suite.test.operation",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.test.operation"
      },
      "path": "TestCases.suite.test.operation",
      "type": [ {
        "code": "code"
      } ],
      "short": "Operation that is executed during this test (per definition of runner)",
      "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": "string"
      } ],
      "meaningWhenMissing": "If no modes are listed, the test is always executed",
      "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",
      "type": [ {
        "code": "Base"
      } ],
      "short": "Parameter passed to the runner",
      "definition": "A parameter passed to the runner when executing this test. Which parameters are valid, and how exactly the parameter is used are used depends on the definition of the runner"
    }, {
      "id": "TestCases.suite.test.parameter.name",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "TestCases.suite.test.parameter.name"
      },
      "path": "TestCases.suite.test.parameter.name",
      "type": [ {
        "code": "string"
      } ],
      "short": "Name of parameter",
      "definition": "Name of parameter"
    }, {
      "id": "TestCases.suite.test.parameter.value[x]",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "TestCases.suite.test.parameter.value[x]"
      },
      "path": "TestCases.suite.test.parameter.value[x]",
      "type": [ {
        "code": "string"
      }, {
        "code": "boolean"
      }, {
        "code": "integer"
      }, {
        "code": "decimal"
      }, {
        "code": "dateTime"
      }, {
        "code": "uri"
      }, {
        "code": "Coding"
      }, {
        "code": "Quantity"
      } ],
      "short": "Value of this parameter",
      "definition": "The value of the parameter"
    }, {
      "path": "TestCases.suite.test.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",
      "max": "1",
      "id": "TestCases.suite.test.parameter.mode",
      "base": {
        "max": "1",
        "min": 0,
        "path": "TestCases.suite.test.parameter.mode"
      }
    }, {
      "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/tools/StructureDefinition/TestCases#TestCases.suite.setup"
    }, {
      "id": "TestCases.suite.test.output",
      "max": "*",
      "min": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "TestCases.suite.test.output"
      },
      "path": "TestCases.suite.test.output",
      "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",
      "contentReference": "http://hl7.org/fhir/tools/StructureDefinition/TestCases#TestCases.suite.setup"
    } ],
    "extension": [ {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
      "valueString": "5.0.0"
    } ]
  },
  "status": "active",
  "id": "24d865f1-22e1-4e1a-b622-5803075648eb",
  "kind": "logical",
  "url": "http://hl7.org/fhir/tools/StructureDefinition/TestCases",
  "identifier": [ {
    "value": "urn:oid:2.16.840.1.113883.4.642.40.1.42.64",
    "system": "urn:ietf:rfc:3986"
  } ],
  "version": "0.4.1",
  "differential": {
    "element": [ {
      "id": "TestCases",
      "path": "TestCases",
      "short": "Test Suite - set of tests executed by a runner",
      "definition": "A set of tests that are executed by some runner to test the functionality of a tool in the FHIR ecosystem"
    }, {
      "constraint": [ {
        "key": "cnl-1",
        "human": "URL should not contain | or # - these characters make processing canonical references problematic",
        "severity": "warning",
        "expression": "exists() implies matches('^[^|# ]+$')"
      } ],
      "path": "TestCases.url",
      "min": 0,
      "definition": "An absolute URI that is used to identify test tests.",
      "isModifier": false,
      "short": "Canonical identifier for these tests, represented as a URI (globally unique)",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "TestCases.url",
      "isSummary": true
    }, {
      "path": "TestCases.version",
      "min": 0,
      "definition": "The identifier that is used to identify this version of these tests. Version must use SemVer",
      "isModifier": false,
      "short": "Business version of the test set (semver)",
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "TestCases.version",
      "isSummary": true
    }, {
      "path": "TestCases.name",
      "min": 0,
      "definition": "A natural language name identifying the tests. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
      "isModifier": false,
      "short": "Name for these tests",
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "TestCases.name",
      "isSummary": true
    }, {
      "path": "TestCases.description",
      "min": 0,
      "definition": "General description of these teats.",
      "isModifier": false,
      "short": "General Description of these tests",
      "type": [ {
        "code": "markdown"
      } ],
      "max": "1",
      "id": "TestCases.description",
      "isSummary": true
    }, {
      "id": "TestCases.runner",
      "max": "1",
      "min": 1,
      "path": "TestCases.runner",
      "type": [ {
        "code": "url"
      } ],
      "short": "URL Documentation for a runner that executes these tests",
      "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)"
    }, {
      "id": "TestCases.mode.code",
      "max": "1",
      "min": 1,
      "path": "TestCases.mode.code",
      "type": [ {
        "code": "string"
      } ],
      "short": "The code that identifies the mode",
      "definition": "The code by which the mode is identified when passed to runner"
    }, {
      "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.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"
    }, {
      "id": "TestCases.suite.mode",
      "max": "1",
      "min": 0,
      "path": "TestCases.suite.mode",
      "type": [ {
        "code": "code"
      } ],
      "short": "mode required to run this suite",
      "definition": "If this mode is not passed to the runner, then this suite will not be run",
      "meaningWhenMissing": "If no modes are listed, the suite is always executed"
    }, {
      "id": "TestCases.suite.setup",
      "max": "*",
      "min": 0,
      "path": "TestCases.suite.setup",
      "type": [ {
        "code": "Base"
      } ],
      "short": "Resources used in the tests in this suite",
      "constraint": [ {
        "key": "ts-2",
        "human": "Either a file, or a resource, but not both",
        "severity": "error",
        "expression": "file xor resource"
      } ],
      "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.setup.name",
      "max": "1",
      "min": 0,
      "path": "TestCases.suite.setup.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.setup.file",
      "max": "1",
      "min": 0,
      "path": "TestCases.suite.setup.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.setup.resource",
      "max": "1",
      "min": 0,
      "path": "TestCases.suite.setup.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."
    }, {
      "id": "TestCases.suite.setup.mode",
      "max": "1",
      "min": 0,
      "path": "TestCases.suite.setup.mode",
      "type": [ {
        "code": "code"
      } ],
      "short": "A mode that must be true for this resource to be used",
      "definition": "If this mode is not passed to the runner, then this resource will not be used",
      "meaningWhenMissing": "If no modes are listed, the resource is always used"
    }, {
      "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)",
      "definition": "A code that identifies the operation executed for this test. One of the codes defined in the definition of the runner"
    }, {
      "id": "TestCases.suite.test.mode",
      "max": "1",
      "min": 0,
      "path": "TestCases.suite.test.mode",
      "type": [ {
        "code": "string"
      } ],
      "short": "mode required to run this test",
      "definition": "If this mode is not passed to the runner, then this test will not be run",
      "meaningWhenMissing": "If no modes are listed, the test is always executed"
    }, {
      "id": "TestCases.suite.test.parameter",
      "max": "*",
      "min": 0,
      "path": "TestCases.suite.test.parameter",
      "type": [ {
        "code": "Base"
      } ],
      "short": "Parameter passed to the runner",
      "definition": "A parameter passed to the runner when executing this test. Which parameters are valid, and how exactly the parameter is used are used depends on the definition of the runner"
    }, {
      "id": "TestCases.suite.test.parameter.name",
      "max": "1",
      "min": 1,
      "path": "TestCases.suite.test.parameter.name",
      "type": [ {
        "code": "string"
      } ],
      "short": "Name of parameter",
      "definition": "Name of parameter"
    }, {
      "id": "TestCases.suite.test.parameter.value[x]",
      "max": "1",
      "min": 1,
      "path": "TestCases.suite.test.parameter.value[x]",
      "type": [ {
        "code": "string"
      }, {
        "code": "boolean"
      }, {
        "code": "integer"
      }, {
        "code": "decimal"
      }, {
        "code": "dateTime"
      }, {
        "code": "uri"
      }, {
        "code": "Coding"
      }, {
        "code": "Quantity"
      } ],
      "short": "Value of this parameter",
      "definition": "The value of the parameter"
    }, {
      "id": "TestCases.suite.test.parameter.mode",
      "max": "1",
      "min": 0,
      "path": "TestCases.suite.test.parameter.mode",
      "type": [ {
        "code": "code"
      } ],
      "short": "A mode that must be true for this parameter to be used",
      "definition": "If this mode is not passed to the runner, then this parameter will not be used",
      "meaningWhenMissing": "If no modes are listed, the parameter is always used"
    }, {
      "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/tools/StructureDefinition/TestCases#TestCases.suite.setup"
    }, {
      "id": "TestCases.suite.test.output",
      "max": "*",
      "min": 0,
      "path": "TestCases.suite.test.output",
      "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",
      "contentReference": "http://hl7.org/fhir/tools/StructureDefinition/TestCases#TestCases.suite.setup"
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/fiwg",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Resource"
}