2nd DSTU Draft For Comment

This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Profile: DAFDiagnosticOrder

Profile for Defines constraints and extensions on the DiagnosticOrder resource for use in querying and retrieving DiagnosticOrder information. : U.S. Data Access Framework (DAF) DiagnosticOrder Profile

{
  "resourceType": "Profile",
  "id": "diagnosticorder-daf-dafdiagnosticorder",
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "url": "http://hl7.org/fhir/Profile/diagnosticorder-daf-dafdiagnosticorder",
  "name": "U.S. Data Access Framework (DAF) DiagnosticOrder Profile",
  "publisher": "U.S. Office of the National Coordinator (ONC)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.healthit.gov"
        }
      ]
    }
  ],
  "description": "Defines constraints and extensions on the DiagnosticOrder resource for use in querying and retrieving DiagnosticOrder information. : U.S. Data Access Framework (DAF) DiagnosticOrder Profile",
  "status": "draft",
  "date": "2014-08-21",
  "type": "DiagnosticOrder",
  "base": "http://hl7.org/fhir/Profile/DiagnosticOrder",
  "snapshot": {
    "element": [
      {
        "path": "DiagnosticOrder",
        "name": "DAFDiagnosticOrder",
        "short": "A request for a diagnostic service",
        "definition": "A record of a request for a diagnostic investigation service to be performed.",
        "synonym": [
          "DO"
        ],
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "rim",
            "map": "Observation[classCode=OBS, moodCode=RQO, code<\"diagnostic order\"]"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.id",
        "short": "Logical id of this artefact",
        "definition": "The logical id of the resource, as used in the url for the resoure. Once assigned, this value never changes.",
        "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.meta",
        "short": "Metadata about the resource",
        "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Meta"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.implicitRules",
        "short": "A set of rules under which this content was created",
        "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.",
        "comments": "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 as much as possible.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "isModifier": true
      },
      {
        "path": "DiagnosticOrder.language",
        "short": "Language of the resource content",
        "definition": "The base language in which the resource is written.",
        "comments": "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\n\nNot 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).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "name": "Language",
          "isExtensible": false,
          "conformance": "required",
          "description": "A human language",
          "referenceUri": "http://tools.ietf.org/html/bcp47"
        }
      },
      {
        "path": "DiagnosticOrder.text",
        "short": "Text summary of the resource, for human interpretation",
        "definition": "A human-readable narrative that contains a summary of the resource, and may 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.",
        "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
        "synonym": [
          "narrative",
          "html",
          "xhtml",
          "display"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "dom-1"
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "Act.text?"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.text.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.text.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.",
        "comments": "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.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.text.status",
        "short": "generated | extensions | additional",
        "definition": "The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedCode": "generated",
        "mustSupport": true,
        "binding": {
          "name": "NarrativeStatus",
          "isExtensible": false,
          "conformance": "required",
          "description": "The status of a resource narrative",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/narrative-status"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.text.div",
        "short": "Limited xhtml content",
        "definition": "The actual narrative content, a stripped down version of XHTML.",
        "comments": "The contents of the html element are an XHTML fragment containing only the basic html formatting elements described in chapters 7-11 and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained stylesheets. The XHTML content may not contain a head, a body, external stylesheet references, scripts, forms, base/link/xlink, frames, iframes and objects.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "xhtml"
          }
        ],
        "constraint": [
          {
            "key": "txt-2",
            "severity": "error",
            "human": "The narrative SHALL have some non-whitespace content",
            "xpath": "descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]"
          },
          {
            "key": "txt-1",
            "severity": "error",
            "human": "The narrative SHALL contain only the basic html formatting elements described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes",
            "xpath": "not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))])"
          },
          {
            "key": "txt-3",
            "severity": "error",
            "human": "The narrative SHALL contain only the basic html formatting attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes",
            "xpath": "not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.contained",
        "short": "Contained, inline Resources",
        "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
        "comments": "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.",
        "synonym": [
          "inline resources",
          "anonymous resources",
          "contained resources"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Resource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, 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.",
        "comments": "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.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "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. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, 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.",
        "comments": "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.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.subject",
        "short": "Who and/or what test is about",
        "definition": "Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).",
        "synonym": [
          "Patient"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/patient-daf-dafpatient"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=SBJ].role"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.orderer",
        "short": "Who ordered the test",
        "definition": "The practitioner that holds legal responsibility for ordering the investigation.",
        "synonym": [
          "Ordering Provider",
          "OP",
          "Submitter",
          "Placer"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/Practitioner"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=AUT].role"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.identifier",
        "slicing": {
          "discriminator": [
            "identifier.label"
          ],
          "ordered": true,
          "rules": "closed"
        },
        "short": "Identifiers assigned to this order",
        "definition": "Identifiers assigned to this order by the order or by the receiver.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".id"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.identifier",
        "name": "USLabDOPlacerID",
        "short": "Identifiers assigned to this order",
        "definition": "Identifiers assigned to this order by the order or by the receiver.",
        "synonym": [
          "Placer ID"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".id"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.identifier.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.identifier.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.",
        "comments": "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.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.identifier.use",
        "short": "usual | official | temp | secondary (If known)",
        "definition": "The purpose of this identifier.",
        "comments": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
        "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedCode": "official",
        "mustSupport": true,
        "isModifier": true,
        "binding": {
          "name": "IdentifierUse",
          "isExtensible": false,
          "conformance": "required",
          "description": "Identifies the purpose for this identifier, if known",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/identifier-use"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "N/A"
          },
          {
            "identity": "rim",
            "map": "Role.code or implied by context"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.identifier.label",
        "short": "Description of identifier",
        "definition": "A text string for the identifier that can be displayed to a human so they can recognize the identifier.",
        "requirements": "Allows humans to make use of identifiers when the identifier system is not known.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "fixedString": "Placer Order Number",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.5"
          },
          {
            "identity": "rim",
            "map": "Role.title or implied by context"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.identifier.system",
        "short": "Placer URI",
        "definition": "Placer URI.",
        "requirements": "There are many sequences of identifiers.  To perform matching, we need to know what sequence we're dealing with. The system identifies a particular sequence or set of unique identifiers.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "exampleUri": "http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the id itself is a full uri",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.4 / EI-2-4"
          },
          {
            "identity": "rim",
            "map": "II.root or Role.id.root"
          },
          {
            "identity": "servd",
            "map": "./IdentifierType"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.identifier.value",
        "short": "Placer Identifier",
        "definition": "Placer Identifier.",
        "comments": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "exampleString": "123456",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.1 / EI.1"
          },
          {
            "identity": "rim",
            "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
          },
          {
            "identity": "servd",
            "map": "./Value"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.identifier.period",
        "short": "Time period when id is/was valid for use",
        "definition": "Time period during which identifier is/was valid for use.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.7 + CX.8"
          },
          {
            "identity": "rim",
            "map": "Role.effectiveTime or implied by context"
          },
          {
            "identity": "servd",
            "map": "./StartDate and ./EndDate"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.identifier.assigner",
        "short": "Organization that issued id (may be just text)",
        "definition": "Organization that issued/manages the identifier.",
        "comments": "The reference may be just a text description of the assigner.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/Organization"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.4 / (CX.4,CX.9,CX.10)"
          },
          {
            "identity": "rim",
            "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field.  Also Role.scoper"
          },
          {
            "identity": "servd",
            "map": "./IdentifierIssuingAuthority"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.identifier",
        "name": "USLabDOFillerID",
        "short": "Identifiers assigned to this order",
        "definition": "Identifiers assigned to this order by the order or by the receiver.",
        "synonym": [
          "Filler ID"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".id"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.identifier.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.identifier.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.",
        "comments": "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.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.identifier.use",
        "short": "usual | official | temp | secondary (If known)",
        "definition": "The purpose of this identifier.",
        "comments": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
        "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedCode": "official",
        "mustSupport": true,
        "isModifier": true,
        "binding": {
          "name": "IdentifierUse",
          "isExtensible": false,
          "conformance": "required",
          "description": "Identifies the purpose for this identifier, if known",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/identifier-use"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "N/A"
          },
          {
            "identity": "rim",
            "map": "Role.code or implied by context"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.identifier.label",
        "short": "Description of identifier",
        "definition": "A text string for the identifier that can be displayed to a human so they can recognize the identifier.",
        "requirements": "Allows humans to make use of identifiers when the identifier system is not known.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "fixedString": "Filler Order Number",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.5"
          },
          {
            "identity": "rim",
            "map": "Role.title or implied by context"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.identifier.system",
        "short": "Filler URI",
        "definition": "Filler URI.",
        "requirements": "There are many sequences of identifiers.  To perform matching, we need to know what sequence we're dealing with. The system identifies a particular sequence or set of unique identifiers.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "exampleUri": "http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the id itself is a full uri",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.4 / EI-2-4"
          },
          {
            "identity": "rim",
            "map": "II.root or Role.id.root"
          },
          {
            "identity": "servd",
            "map": "./IdentifierType"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.identifier.value",
        "short": "Filler Identifier",
        "definition": "Filler Identifier.",
        "comments": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "exampleString": "123456",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.1 / EI.1"
          },
          {
            "identity": "rim",
            "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
          },
          {
            "identity": "servd",
            "map": "./Value"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.identifier.period",
        "short": "Time period when id is/was valid for use",
        "definition": "Time period during which identifier is/was valid for use.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.7 + CX.8"
          },
          {
            "identity": "rim",
            "map": "Role.effectiveTime or implied by context"
          },
          {
            "identity": "servd",
            "map": "./StartDate and ./EndDate"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.identifier.assigner",
        "short": "Organization that issued id (may be just text)",
        "definition": "Organization that issued/manages the identifier.",
        "comments": "The reference may be just a text description of the assigner.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/Organization"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "CX.4 / (CX.4,CX.9,CX.10)"
          },
          {
            "identity": "rim",
            "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field.  Also Role.scoper"
          },
          {
            "identity": "servd",
            "map": "./IdentifierIssuingAuthority"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.encounter",
        "short": "The encounter that this diagnostic order is associated with",
        "definition": "An encounter that provides additional information about the healthcare context in which this request is made.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/encounter-daf-dafencounter"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.clinicalNotes",
        "short": "Explanation/Justification for test",
        "definition": "An explanation or justification for why this diagnostic investigation is being requested.",
        "comments": "This may be used to decide how the diagnostic investigation will be performed, or even if it will be performed at all.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".reasonCode.originalText"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.supportingInformation",
        "short": "Additional clinical information",
        "definition": "Additional clinical information about the patient or specimen that may influence test interpretations.",
        "comments": "This information includes diagnosis, clinical findings and other observations.  Examples include reporting the amount of inspired carbon dioxide for blood gasses, the point in the menstrual cycle for cervical pap tests, and other conditions that influence test interpretations.",
        "synonym": [
          "Reason for Study"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/observation-daf-results-dafresultobservationcode"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/observation-daf-results-dafresultobsquantity"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/observation-daf-results-dafresultobsratio"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/observation-daf-results-dafresultobsother"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "OBR-13"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.specimen",
        "short": "If the whole order relates to specific specimens",
        "definition": "One or more specimens that the diagnostic investigation is about.",
        "comments": "Many investigation requests will create a need for specimens, but the request itself is not actually about the specimens. This is provided for when the diagnostic investigation is requested on already existing specimens.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/Specimen"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=SPC].role"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.status",
        "short": "proposed | planned | requested | received | accepted | in-progress | review | completed | suspended | rejected | failed",
        "definition": "The status of the order.",
        "comments": "Typically the system placing the order sets the status to requested. Thereafter, the order is maintained by the receiver that updates the status as the request is handled.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mustSupport": true,
        "binding": {
          "name": "DiagnosticOrderStatus",
          "isExtensible": false,
          "conformance": "required",
          "description": "The status of a diagnostic order",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/diagnostic-order-status"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".statusCode\nalso influenced by whether a ControlAct fulfillment requeste exists, whether a promise exists, status of the review component, whether a fulfilling observation exists, whether a refusal exists"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.priority",
        "short": "routine | urgent | stat | asap",
        "definition": "The clinical priority associated with this order.",
        "comments": "The Order resource also has a priority. Generally, these should be the same, but they can be different, for instance in the case where the clinician indicates that the order is urgent, but the subsequent workflow process overrule this priority for some reason. The effective default value is \"normal\".",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mustSupport": true,
        "binding": {
          "name": "DiagnosticOrderPriority",
          "isExtensible": false,
          "conformance": "required",
          "description": "The clinical priority of a diagnostic order",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/diagnostic-order-priority"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".priorityCode"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event",
        "short": "A list of events of interest in the lifecycle",
        "definition": "A summary of the events of interest that have occurred as the request is processed. E.g. when the order was made, various processing steps (specimens received), when it was completed.",
        "comments": "This is not the same as an audit trail - it is a view of the important things that happened in the past. Typically, there would only be one entry for any given status, and systems may not record all the status events.",
        "min": 1,
        "max": "*",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=FLFS].source"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.",
        "comments": "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.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, 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.",
        "comments": "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.",
        "synonym": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event.status",
        "short": "proposed | planned | requested | received | accepted | in-progress | review | completed | suspended | rejected | failed",
        "definition": "The status for the event.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "name": "DiagnosticOrderStatus",
          "isExtensible": false,
          "conformance": "required",
          "description": "The status of a diagnostic order",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/diagnostic-order-status"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".statusCode\nalso influenced by whether a ControlAct fulfillment requeste exists, whether a promise exists, status of the review component, whether a fulfilling observation exists, whether a refusal exists"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event.description",
        "short": "More information about the event and its context",
        "definition": "Additional information about the event that occurred - e.g. if the status remained unchanged.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true,
        "binding": {
          "name": "USLABDOEvent",
          "isExtensible": true,
          "conformance": "required",
          "description": "Information about an event that occurred to a diagnostic order that corresponds to the USLabOrder Use Cases",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/do-uslab-event"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event.description.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event.description.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.",
        "comments": "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.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event.description.coding",
        "short": "Code defined by a terminology system",
        "definition": "A reference to a code defined by a terminology system.",
        "comments": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the V3 Core Principles for more information.  Ordering of codings is undefined and SHALL not be used to infer meaning.",
        "requirements": "Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.1-8, C*E.10-22"
          },
          {
            "identity": "rim",
            "map": "union(., ./translation)"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event.description.coding.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event.description.coding.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.",
        "comments": "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.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event.description.coding.system",
        "short": "Identity of the terminology system",
        "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
        "comments": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should de-reference to some definition that establish the system clearly and unambiguously.",
        "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.3"
          },
          {
            "identity": "rim",
            "map": "./codeSystem"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event.description.coding.version",
        "short": "Version of the system - if relevant",
        "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
        "comments": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.7"
          },
          {
            "identity": "rim",
            "map": "./codeSystemVersion"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event.description.coding.code",
        "short": "Symbol in syntax defined by the system",
        "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
        "requirements": "Need to refer to a particular code in the system.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.1"
          },
          {
            "identity": "rim",
            "map": "./code"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event.description.coding.display",
        "short": "Representation defined by the system",
        "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
        "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.2 - but note this is not well followed"
          },
          {
            "identity": "rim",
            "map": "CV.displayName"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event.description.coding.primary",
        "short": "If this code was chosen directly by the user",
        "definition": "Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays).",
        "comments": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations.",
        "requirements": "This has been identified as a clinical safety criterium - that this exact code was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "Sometimes implied by being first"
          },
          {
            "identity": "rim",
            "map": "CD.codingRationale"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event.description.coding.valueSet",
        "short": "Set this coding was chosen from",
        "definition": "The set of possible coded values this coding was chosen from or constrained by.",
        "requirements": "The value set may influence the codes that the user can select. Also, referencing the value set directly makes it easier to share ad-hoc code systems used across healthcare.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/ValueSet"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.16 - .19"
          },
          {
            "identity": "rim",
            "map": "CD.valueSet / CD.valueSetVersion"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event.description.text",
        "short": "Plain text representation of the concept",
        "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
        "comments": "Very often the text is the same as a displayName of one of the codings.",
        "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity": "rim",
            "map": "./originalText[mediaType/code=\"text/plain\"]/data"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event.dateTime",
        "short": "The date at which the event happened",
        "definition": "The date/time at which the event occurred.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.event.actor",
        "short": "Who recorded or did this",
        "definition": "The person who was responsible for performing or recording the action.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/Practitioner"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/Device"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[AUT or PFM]"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item",
        "short": "The items the orderer requested",
        "definition": "The specific diagnostic investigations that are requested as part of this request. Sometimes, there can only be one item per request, but in most contexts, more than one investigation can be requested.",
        "comments": "There would always be at least one item in normal usage, but this is optional so that a workflow can quote order details without having to list the items.",
        "min": 1,
        "max": "*",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=OBS]"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.",
        "comments": "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.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, 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.",
        "comments": "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.",
        "synonym": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code",
        "short": "US Realm Laboratory Report Order Code",
        "definition": "The laboratory test, panel or battery that was ordered.",
        "comments": "Many laboratory tests and radiology tests embed the specimen/organ system in the test name, for example,  serum or serum/plasma glucose, or a chest xray. The specimen may not be recorded separately from the test code.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "inv-1",
            "name": "LOINC or Local",
            "severity": "error",
            "human": "Must have a LOINC or a Local code or both.",
            "xpath": "exists(f:coding)"
          }
        ],
        "mustSupport": true,
        "binding": {
          "name": "DiagnosticRequests",
          "isExtensible": true,
          "conformance": "preferred",
          "description": "Codes for tests/services that can be performed by diagnostic services",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/diagnostic-requests"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "OBX-4"
          },
          {
            "identity": "rim",
            "map": ".code"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.",
        "comments": "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.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.coding",
        "slicing": {
          "discriminator": [
            "system"
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Code defined by a terminology system",
        "definition": "A reference to a code defined by a terminology system.",
        "comments": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the V3 Core Principles for more information.  Ordering of codings is undefined and SHALL not be used to infer meaning.",
        "requirements": "Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.1-8, C*E.10-22"
          },
          {
            "identity": "rim",
            "map": "union(., ./translation)"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.coding",
        "name": "USLabLOINCCoding",
        "short": "LOINC coding if available",
        "definition": "LOINC coding if available.",
        "comments": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the V3 Core Principles for more information.  Ordering of codings is undefined and SHALL not be used to infer meaning.",
        "requirements": "Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings.",
        "synonym": [
          "LOINC code"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.1-8, C*E.10-22"
          },
          {
            "identity": "rim",
            "map": "union(., ./translation)"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.coding.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.coding.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.",
        "comments": "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.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.coding.system",
        "short": "LOINC Coding System",
        "definition": "LOINC Coding System.",
        "comments": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should de-reference to some definition that establish the system clearly and unambiguously.",
        "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "http://loinc.org",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.3"
          },
          {
            "identity": "rim",
            "map": "./codeSystem"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.coding.version",
        "short": "Version of the system - if relevant",
        "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
        "comments": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.7"
          },
          {
            "identity": "rim",
            "map": "./codeSystemVersion"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.coding.code",
        "short": "LOINC",
        "definition": "Logical Observation Identifiers Names and Codes (LOINC) is a database and universal standard for identifying medical laboratory observations.",
        "requirements": "Need to refer to a particular code in the system.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.1"
          },
          {
            "identity": "rim",
            "map": "./code"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.coding.display",
        "short": "LOINC Display Name",
        "definition": "The LOINC  'long common name' is preferred although the LOINC 'short name' or the LOINC 'fully-specified name can also be used.  ( http://lionc.org.terms-of-use).",
        "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.2 - but note this is not well followed"
          },
          {
            "identity": "rim",
            "map": "CV.displayName"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.coding.primary",
        "short": "If this code was chosen directly by the user",
        "definition": "Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays).",
        "comments": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations.",
        "requirements": "This has been identified as a clinical safety criterium - that this exact code was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "Sometimes implied by being first"
          },
          {
            "identity": "rim",
            "map": "CD.codingRationale"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.coding.valueSet",
        "short": "Set this coding was chosen from",
        "definition": "The set of possible coded values this coding was chosen from or constrained by.",
        "requirements": "The value set may influence the codes that the user can select. Also, referencing the value set directly makes it easier to share ad-hoc code systems used across healthcare.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/ValueSet"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.16 - .19"
          },
          {
            "identity": "rim",
            "map": "CD.valueSet / CD.valueSetVersion"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.coding",
        "name": "USLabLocalCoding",
        "short": "Code defined by a terminology system",
        "definition": "A reference to a code defined by a terminology system.",
        "comments": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the V3 Core Principles for more information.  Ordering of codings is undefined and SHALL not be used to infer meaning.",
        "requirements": "Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings.",
        "synonym": [
          "Local"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.1-8, C*E.10-22"
          },
          {
            "identity": "rim",
            "map": "union(., ./translation)"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.coding.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.coding.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.",
        "comments": "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.",
        "synonym": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.coding.system",
        "short": "Local Coding System",
        "definition": "This is defined locally.",
        "comments": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should de-reference to some definition that establish the system clearly and unambiguously.",
        "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.3"
          },
          {
            "identity": "rim",
            "map": "./codeSystem"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.coding.version",
        "short": "Version of the system - if relevant",
        "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
        "comments": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.7"
          },
          {
            "identity": "rim",
            "map": "./codeSystemVersion"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.coding.code",
        "short": "Local Code",
        "definition": "Local Code.",
        "requirements": "Need to refer to a particular code in the system.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.1"
          },
          {
            "identity": "rim",
            "map": "./code"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.coding.display",
        "short": "Local Code Display name",
        "definition": "This is defined locally.",
        "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know  the system.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.2 - but note this is not well followed"
          },
          {
            "identity": "rim",
            "map": "CV.displayName"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.coding.primary",
        "short": "If this code was chosen directly by the user",
        "definition": "Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays).",
        "comments": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations.",
        "requirements": "This has been identified as a clinical safety criterium - that this exact code was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "Sometimes implied by being first"
          },
          {
            "identity": "rim",
            "map": "CD.codingRationale"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.coding.valueSet",
        "short": "Set this coding was chosen from",
        "definition": "The set of possible coded values this coding was chosen from or constrained by.",
        "requirements": "The value set may influence the codes that the user can select. Also, referencing the value set directly makes it easier to share ad-hoc code systems used across healthcare.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/ValueSet"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.16 - .19"
          },
          {
            "identity": "rim",
            "map": "CD.valueSet / CD.valueSetVersion"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.code.text",
        "short": "Plain text representation of the concept",
        "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
        "comments": "Very often the text is the same as a displayName of one of the codings.",
        "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "C*E.9. But note many systems use C*E.2 for this"
          },
          {
            "identity": "rim",
            "map": "./originalText[mediaType/code=\"text/plain\"]/data"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.specimen",
        "short": "If this item relates to specific specimens",
        "definition": "If the item is related to a specific specimen.",
        "comments": "A single specimen should not appear in both DiagnosticOrder.specimen and DiagnosticOrder.item.specimen.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/Specimen"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=SPC].role"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.bodySite[x]",
        "short": "Location of requested test (if applicable)",
        "definition": "Anatomical location where the request test should be performed.",
        "synonym": [
          "location"
        ],
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/BodySite"
          }
        ],
        "binding": {
          "name": "BodySite",
          "isExtensible": true,
          "conformance": "example",
          "description": "Codes describing anatomical locations. May include laterality",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/body-site"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "targetSiteCode"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.status",
        "short": "proposed | planned | requested | received | accepted | in-progress | review | completed | suspended | rejected | failed",
        "definition": "The status of this individual item within the order.",
        "comments": "If the request has multiple items that have their own life cycles, then the items will have their own status while the overall diagnostic order is (usually) \"in-progress\".",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mustSupport": true,
        "binding": {
          "name": "DiagnosticOrderStatus",
          "isExtensible": false,
          "conformance": "required",
          "description": "The status of a diagnostic order",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/diagnostic-order-status"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".statusCode\nalso influenced by whether a ControlAct fulfillment requeste exists, whether a promise exists, status of the review component, whether a fulfilling observation exists, whether a refusal exists"
          }
        ]
      },
      {
        "path": "DiagnosticOrder.item.event",
        "short": "Events specific to this item",
        "definition": "A summary of the events of interest that have occurred as this item of the request is processed.",
        "min": 0,
        "max": "*",
        "nameReference": "event",
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=FLFS].source"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "path": "DiagnosticOrder",
        "name": "DAFDiagnosticOrder",
        "synonym": [
          "DO"
        ],
        "min": 1,
        "max": "1"
      },
      {
        "path": "DiagnosticOrder.text",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.text.status",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedCode": "generated",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.subject",
        "synonym": [
          "Patient"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/patient-daf-dafpatient"
          }
        ],
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.orderer",
        "synonym": [
          "Ordering Provider",
          "OP",
          "Submitter",
          "Placer"
        ],
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.identifier",
        "slicing": {
          "discriminator": [
            "identifier.label"
          ],
          "ordered": true,
          "rules": "closed"
        }
      },
      {
        "path": "DiagnosticOrder.identifier",
        "name": "USLabDOPlacerID",
        "synonym": [
          "Placer ID"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.identifier.use",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedCode": "official",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.identifier.label",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "fixedString": "Placer Order Number",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.identifier.system",
        "short": "Placer URI",
        "definition": "Placer URI.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.identifier.value",
        "short": "Placer Identifier",
        "definition": "Placer Identifier.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.identifier",
        "name": "USLabDOFillerID",
        "synonym": [
          "Filler ID"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.identifier.use",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedCode": "official",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.identifier.label",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "fixedString": "Filler Order Number",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.identifier.system",
        "short": "Filler URI",
        "definition": "Filler URI.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.identifier.value",
        "short": "Filler Identifier",
        "definition": "Filler Identifier.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.encounter",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/encounter-daf-dafencounter"
          }
        ],
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.clinicalNotes",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.supportingInformation",
        "synonym": [
          "Reason for Study"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/observation-daf-results-dafresultobservationcode"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/observation-daf-results-dafresultobsquantity"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/observation-daf-results-dafresultobsratio"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/Profile/observation-daf-results-dafresultobsother"
          }
        ],
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.specimen",
        "min": 0,
        "max": "*",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.status",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.priority",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.event",
        "min": 1,
        "max": "*",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.event.description",
        "min": 1,
        "max": "1",
        "mustSupport": true,
        "binding": {
          "name": "USLABDOEvent",
          "isExtensible": true,
          "conformance": "required",
          "description": "Information about an event that occurred to a diagnostic order that corresponds to the USLabOrder Use Cases",
          "referenceReference": {
            "reference": "http://hl7.org/fhir/vs/do-uslab-event"
          }
        }
      },
      {
        "path": "DiagnosticOrder.event.description.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.event.description.coding.code",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.event.dateTime",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.item",
        "min": 1,
        "max": "*",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.item.code",
        "short": "US Realm Laboratory Report Order Code",
        "definition": "The laboratory test, panel or battery that was ordered.",
        "min": 1,
        "max": "1",
        "condition": [
          "inv-1"
        ],
        "constraint": [
          {
            "key": "inv-1",
            "name": "LOINC or Local",
            "severity": "error",
            "human": "Must have a LOINC or a Local code or both.",
            "xpath": "exists(f:coding)"
          }
        ],
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.item.code.coding",
        "slicing": {
          "discriminator": [
            "system"
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "path": "DiagnosticOrder.item.code.coding",
        "name": "USLabLOINCCoding",
        "short": "LOINC coding if available",
        "definition": "LOINC coding if available.",
        "synonym": [
          "LOINC code"
        ],
        "min": 0,
        "max": "1",
        "condition": [
          "inv-1"
        ],
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.item.code.coding.system",
        "short": "LOINC Coding System",
        "definition": "LOINC Coding System.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "http://loinc.org",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.item.code.coding.code",
        "short": "LOINC",
        "definition": "Logical Observation Identifiers Names and Codes (LOINC) is a database and universal standard for identifying medical laboratory observations.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.item.code.coding.display",
        "short": "LOINC Display Name",
        "definition": "The LOINC  'long common name' is preferred although the LOINC 'short name' or the LOINC 'fully-specified name can also be used.  ( http://lionc.org.terms-of-use).",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.item.code.coding",
        "name": "USLabLocalCoding",
        "synonym": [
          "Local"
        ],
        "min": 0,
        "max": "1",
        "condition": [
          "inv-1"
        ],
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.item.code.coding.system",
        "short": "Local Coding System",
        "definition": "This is defined locally.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.item.code.coding.code",
        "short": "Local Code",
        "definition": "Local Code.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.item.code.coding.display",
        "short": "Local Code Display name",
        "definition": "This is defined locally.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.item.specimen",
        "min": 0,
        "max": "*",
        "mustSupport": true
      },
      {
        "path": "DiagnosticOrder.item.bodySite[x]",
        "min": 0,
        "max": "0"
      },
      {
        "path": "DiagnosticOrder.item.status",
        "min": 1,
        "max": "1",
        "mustSupport": true
      }
    ]
  }
}