QI-Core Implementation Guide
4.1.0 - release

Publication Build: This will be filled in by the publication tooling

## Resource Profile: QICoreDeviceNotRequested - TTL Profile

TTL representation of the qicore-devicenotrequested resource profile.

Raw ttl | Download

    @prefix fhir: <http://hl7.org/fhir/> .
    @prefix owl: <http://www.w3.org/2002/07/owl#> .
    @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

    # - resource -------------------------------------------------------------------

     a fhir:StructureDefinition;
      fhir:nodeRole fhir:treeRoot;
      fhir:Resource.id [ fhir:value "qicore-devicenotrequested"];
      fhir:DomainResource.text [
         fhir:Narrative.status [ fhir:value "extensions" ];
         fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;\"><tr style=\"border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top\"><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"The logical name of the element\">Name</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"Information about the use of the element\">Flags</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"Minimum and Maximum # of times the the element can appear in the instance\">Card.</a></th><th style=\"width: 100px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"Reference to the type of the element\">Type</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"Additional information about the element\">Description &amp; Constraints</a><span style=\"float: right\"><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"Legend for this format\"><img src=\"http://hl7.org/fhir/R4/help16.png\" alt=\"doco\" style=\"background-color: inherit\"/></a></span></th></tr><tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_resource.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-qicore-devicenotrequested-definitions.html#DeviceRequest\">DeviceRequest</a><a name=\"DeviceRequest\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: black; null\" title=\"This element has or is affected by some invariants (dnr-1)\">I</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/devicerequest.html\">DeviceRequest</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Medical device request</span><br/><span style=\"font-weight:bold\">dnr-1: </span>to indicate what device was not requested, either at least one coding in the code or a notDoneValueSet extension shall be provided</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck14.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Slice Item\" class=\"hierarchy\"/> <a href=\"StructureDefinition-qicore-devicenotrequested-definitions.html#DeviceRequest.extension:doNotPerformReason\" title=\"Extension URL = http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-doNotPerformReason\">qicore-doNotPerformReason</a><a name=\"DeviceRequest.extension\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#CodeableConcept\">CodeableConcept</a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Extension</span><br/><span style=\"font-weight:bold\">URL: </span><a href=\"http://hl7.org/fhir/R4/StructureDefinition-qicore-doNotPerformReason.html\">http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-doNotPerformReason</a><br/><span style=\"font-weight:bold\">Binding: </span><a href=\"ValueSet-qicore-negation-reason.html\">Negation Reason Codes</a> (<a href=\"http://hl7.org/fhir/R4/terminologies.html#extensible\" title=\"To be conformant, the concept in this element SHALL be from the specified value set if any of the codes within the value set can apply to the concept being communicated.  If the value set does not cover the concept (based on human review), alternate codings (or, data type allowing, text) may be included instead.\">extensible</a>): The reason the event did not occur or was not performed<br/><br/></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck15.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Slice Item\" class=\"hierarchy\"/> <a href=\"StructureDefinition-qicore-devicenotrequested-definitions.html#DeviceRequest.modifierExtension:doNotPerform\" title=\"Slice doNotPerform\">modifierExtension:doNotPerform</a><a name=\"DeviceRequest.modifierExtension\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: black; null\" title=\"This element is a modifier element\">?!</span><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://hl7.org/fhir/versions.html#extensions\" title=\"Extension\">Extension-4.6-DeviceRequest.doNotPerform</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Extension</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck140.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end_slice.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_primitive.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Primitive Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-qicore-devicenotrequested-definitions.html#DeviceRequest.modifierExtension:doNotPerform.value[x]\">value[x]</a><a name=\"DeviceRequest.modifierExtension.value_x_\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#boolean\">boolean</a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Value of extension</span><br/><span style=\"font-weight:bold\">Fixed Value: </span><span style=\"color: darkgreen\">true</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_primitive.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Primitive Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-qicore-devicenotrequested-definitions.html#DeviceRequest.status\">status</a><a name=\"DeviceRequest.status\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">draft | active | on-hold | revoked | completed | entered-in-error | unknown</span><br/><span style=\"font-weight:bold\">Fixed Value: </span><span style=\"color: darkgreen\">completed</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-qicore-devicenotrequested-definitions.html#DeviceRequest.intent\">intent</a><a name=\"DeviceRequest.intent\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">1</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-qicore-devicenotrequested-definitions.html#DeviceRequest.code[x]\">code[x]</a><a name=\"DeviceRequest.code_x_\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span><span style=\"padding-left: 3px; padding-right: 3px; color: black; null\" title=\"This element has or is affected by some invariants (dnr-1)\">I</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/datatypes.html#CodeableConcept\">CodeableConcept</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Device requested</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck104.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_slice_item.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Slice Item\" class=\"hierarchy\"/> <a href=\"StructureDefinition-qicore-devicenotrequested-definitions.html#DeviceRequest.code[x].extension:doNotPerformValueSet\" title=\"Extension URL = http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet\">qicore-notDoneValueSet</a><a name=\"DeviceRequest.code_x_.extension\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span><span style=\"padding-left: 3px; padding-right: 3px; color: black; null\" title=\"This element has or is affected by some invariants (dnr-1)\">I</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..1</td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/references.html\">canonical</a>(<a href=\"http://hl7.org/fhir/R4/valueset.html\">ValueSet</a>)</td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">What was not done<br/><span style=\"font-weight:bold\">URL: </span><a href=\"http://hl7.org/fhir/R4/StructureDefinition-qicore-notDoneValueSet.html\">http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet</a></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-qicore-devicenotrequested-definitions.html#DeviceRequest.subject\">subject</a><a name=\"DeviceRequest.subject\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">1</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a href=\"StructureDefinition-qicore-patient.html\">QICorePatient</a>)</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Focus of request</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-qicore-devicenotrequested-definitions.html#DeviceRequest.encounter\">encounter</a><a name=\"DeviceRequest.encounter\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R4/references.html\">Reference</a>(<a href=\"StructureDefinition-qicore-encounter.html\">QICoreEncounter</a>)</td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Encounter motivating request</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-qicore-devicenotrequested-definitions.html#DeviceRequest.authoredOn\">authoredOn</a><a name=\"DeviceRequest.authoredOn\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#dateTime\">dateTime</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">When recorded</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-qicore-devicenotrequested-definitions.html#DeviceRequest.note\">note</a><a name=\"DeviceRequest.note\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"padding-left: 3px; padding-right: 3px; color: white; background-color: red\" title=\"This element must be supported\">S</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a style=\"opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#Annotation\">Annotation</a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">Notes or comments</span></td></tr>\r\n<tr><td colspan=\"5\" class=\"hierarchy\"><br/><a href=\"http://hl7.org/fhir/R4/formats.html#table\" title=\"Legend for this format\"><img src=\"http://hl7.org/fhir/R4/help16.png\" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></div>"
      ];
      fhir:StructureDefinition.url [ fhir:value "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicenotrequested"];
      fhir:StructureDefinition.version [ fhir:value "4.1.0"];
      fhir:StructureDefinition.name [ fhir:value "QICoreDeviceNotRequested"];
      fhir:StructureDefinition.status [ fhir:value "draft"];
      fhir:StructureDefinition.experimental [ fhir:value "false"^^xsd:boolean];
      fhir:StructureDefinition.date [ fhir:value "2019-07-11"^^xsd:date];
      fhir:StructureDefinition.publisher [ fhir:value "http://www.hl7.org/Special/committees/cqi/index.cfm"];
      fhir:StructureDefinition.contact [
         fhir:index 0;
         fhir:ContactDetail.name [ fhir:value "Clinical Quality Information WG" ];
         fhir:ContactDetail.telecom [
           fhir:index 0;
           fhir:ContactPoint.system [ fhir:value "url" ];
           fhir:ContactPoint.value [ fhir:value "http://www.hl7.org/Special/committees/cqi" ]     ]
      ];
      fhir:StructureDefinition.description [ fhir:value "Profile of DeviceRequest for decision support/quality metrics. Defines the core set of elements and extensions for quality rule and measure authors."];
      fhir:StructureDefinition.jurisdiction [
         fhir:index 0;
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ];
           fhir:Coding.code [ fhir:value "US" ]     ]
      ];
      fhir:StructureDefinition.fhirVersion [ fhir:value "4.0.1"];
      fhir:StructureDefinition.mapping [
         fhir:index 0;
         fhir:StructureDefinition.mapping.identity [ fhir:value "workflow" ];
         fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/fhir/workflow" ];
         fhir:StructureDefinition.mapping.name [ fhir:value "Workflow Pattern" ]
      ], [
         fhir:index 1;
         fhir:StructureDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/v2" ];
         fhir:StructureDefinition.mapping.name [ fhir:value "HL7 v2 Mapping" ]
      ], [
         fhir:index 2;
         fhir:StructureDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/v3" ];
         fhir:StructureDefinition.mapping.name [ fhir:value "RIM Mapping" ]
      ], [
         fhir:index 3;
         fhir:StructureDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/fhir/fivews" ];
         fhir:StructureDefinition.mapping.name [ fhir:value "FiveWs Pattern Mapping" ]
      ], [
         fhir:index 4;
         fhir:StructureDefinition.mapping.identity [ fhir:value "quick" ];
         fhir:StructureDefinition.mapping.uri [ fhir:value "http://siframework.org/cqf" ];
         fhir:StructureDefinition.mapping.name [ fhir:value "Quality Improvement and Clinical Knowledge (QUICK)" ]
      ];
      fhir:StructureDefinition.kind [ fhir:value "resource"];
      fhir:StructureDefinition.abstract [ fhir:value "false"^^xsd:boolean];
      fhir:StructureDefinition.type [ fhir:value "DeviceRequest"];
      fhir:StructureDefinition.baseDefinition [
         fhir:value "http://hl7.org/fhir/StructureDefinition/DeviceRequest";
         fhir:link <http://hl7.org/fhir/StructureDefinition/DeviceRequest>
      ];
      fhir:StructureDefinition.derivation [ fhir:value "constraint"];
      fhir:StructureDefinition.snapshot [
         fhir:StructureDefinition.snapshot.element [
           fhir:index 0;
           fhir:Element.id [ fhir:value "DeviceRequest" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest" ];
           fhir:ElementDefinition.short [ fhir:value "Medical device request" ];
           fhir:ElementDefinition.definition [ fhir:value "Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "dom-2" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "If the resource is contained in another resource, it SHALL NOT contain nested Resources" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "contained.contained.empty()" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(parent::f:contained and f:contained)" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource";
               fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.constraint.key [ fhir:value "dom-3" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource";
               fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.constraint.key [ fhir:value "dom-4" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource";
               fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.constraint.key [ fhir:value "dom-5" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "If a resource is contained in another resource, it SHALL NOT have a security label" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "contained.meta.security.empty()" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "not(exists(f:contained/*/f:meta/f:security))" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource";
               fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ], [
             fhir:index 4;
             fhir:Element.extension [
               fhir:index 0;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice" ];
               fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]         ], [
               fhir:index 1;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation" ];
               fhir:Extension.valueMarkdown [ fhir:value "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." ]         ];
             fhir:ElementDefinition.constraint.key [ fhir:value "dom-6" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "warning" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "A resource should have narrative for robust management" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "text.`div`.exists()" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:text/h:div)" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource";
               fhir:link <http://hl7.org/fhir/StructureDefinition/DomainResource>         ]       ], [
             fhir:index 5;
             fhir:ElementDefinition.constraint.key [ fhir:value "dnr-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "to indicate what device was not requested, either at least one coding in the code or a notDoneValueSet extension shall be provided" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "code.extension('http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet').exists() xor code.coding.exists()" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)" ]       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Entity. Role, or Act" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "ORC" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Act[moodCode<=INT]" ]       ]     ], [
           fhir:index 1;
           fhir:Element.id [ fhir:value "DeviceRequest.id" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.id" ];
           fhir:ElementDefinition.short [ fhir:value "Logical id of this artifact" ];
           fhir:ElementDefinition.definition [ fhir:value "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." ];
           fhir:ElementDefinition.comment [ fhir:value "The only time that a resource does not have an id is when it is being submitted to the server using a create operation." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Resource.id" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:Element.extension [
               fhir:index 0;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
               fhir:Extension.valueUrl [ fhir:value "string" ]         ];
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]     ], [
           fhir:index 2;
           fhir:Element.id [ fhir:value "DeviceRequest.meta" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.meta" ];
           fhir:ElementDefinition.short [ fhir:value "Metadata about the resource" ];
           fhir:ElementDefinition.definition [ fhir:value "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Resource.meta" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Meta" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]     ], [
           fhir:index 3;
           fhir:Element.id [ fhir:value "DeviceRequest.implicitRules" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.implicitRules" ];
           fhir:ElementDefinition.short [ fhir:value "A set of rules under which this content was created" ];
           fhir:ElementDefinition.definition [ fhir:value "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc." ];
           fhir:ElementDefinition.comment [ fhir:value "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Resource.implicitRules" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "uri" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifierReason [ fhir:value "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation" ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]     ], [
           fhir:index 4;
           fhir:Element.id [ fhir:value "DeviceRequest.language" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.language" ];
           fhir:ElementDefinition.short [ fhir:value "Language of the resource content" ];
           fhir:ElementDefinition.definition [ fhir:value "The base language in which the resource is written." ];
           fhir:ElementDefinition.comment [ fhir:value "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Resource.language" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet" ];
               fhir:Extension.valueCanonical [
                 fhir:value "http://hl7.org/fhir/ValueSet/all-languages";
                 fhir:link <http://hl7.org/fhir/ValueSet/all-languages>           ]         ], [
               fhir:index 1;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
               fhir:Extension.valueString [ fhir:value "Language" ]         ], [
               fhir:index 2;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding" ];
               fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]         ];
             fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
             fhir:ElementDefinition.binding.description [ fhir:value "A human language." ];
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/languages";
               fhir:link <http://hl7.org/fhir/ValueSet/languages>         ]       ]     ], [
           fhir:index 5;
           fhir:Element.id [ fhir:value "DeviceRequest.text" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.text" ];
           fhir:ElementDefinition.short [ fhir:value "Text summary of the resource, for human interpretation" ];
           fhir:ElementDefinition.definition [ fhir:value "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety." ];
           fhir:ElementDefinition.comment [ fhir:value "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later." ];
           fhir:ElementDefinition.alias [
             fhir:value "narrative";
             fhir:index 0       ], [
             fhir:value "html";
             fhir:index 1       ], [
             fhir:value "xhtml";
             fhir:index 2       ], [
             fhir:value "display";
             fhir:index 3       ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DomainResource.text" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Narrative" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Act.text?" ]       ]     ], [
           fhir:index 6;
           fhir:Element.id [ fhir:value "DeviceRequest.contained" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.contained" ];
           fhir:ElementDefinition.short [ fhir:value "Contained, inline Resources" ];
           fhir:ElementDefinition.definition [ fhir:value "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." ];
           fhir:ElementDefinition.comment [ fhir:value "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels." ];
           fhir:ElementDefinition.alias [
             fhir:value "inline resources";
             fhir:index 0       ], [
             fhir:value "anonymous resources";
             fhir:index 1       ], [
             fhir:value "contained resources";
             fhir:index 2       ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DomainResource.contained" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Resource" ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
           fhir:index 7;
           fhir:Element.id [ fhir:value "DeviceRequest.extension" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.extension" ];
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ];
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]         ];
             fhir:ElementDefinition.slicing.ordered [ fhir:value "false"^^xsd:boolean ];
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]       ];
           fhir:ElementDefinition.short [ fhir:value "Extension" ];
           fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DomainResource.extension" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
           fhir:index 8;
           fhir:Element.id [ fhir:value "DeviceRequest.extension:doNotPerformReason" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.extension" ];
           fhir:ElementDefinition.sliceName [ fhir:value "doNotPerformReason" ];
           fhir:ElementDefinition.short [ fhir:value "Extension" ];
           fhir:ElementDefinition.definition [ fhir:value "Indicates the reason the event was not performed." ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DomainResource.extension" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
             fhir:ElementDefinition.type.profile [
               fhir:value "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-doNotPerformReason";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-doNotPerformReason>         ]       ];
           fhir:ElementDefinition.condition [
             fhir:value "ele-1";
             fhir:index 0       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ]     ], [
           fhir:index 9;
           fhir:Element.id [ fhir:value "DeviceRequest.modifierExtension" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.modifierExtension" ];
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ];
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]         ];
             fhir:ElementDefinition.slicing.ordered [ fhir:value "false"^^xsd:boolean ];
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]       ];
           fhir:ElementDefinition.short [ fhir:value "Extension" ];
           fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DomainResource.modifierExtension" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them" ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
           fhir:index 10;
           fhir:Element.id [ fhir:value "DeviceRequest.modifierExtension:doNotPerform" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.modifierExtension" ];
           fhir:ElementDefinition.sliceName [ fhir:value "doNotPerform" ];
           fhir:ElementDefinition.short [ fhir:value "Extension" ];
           fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DomainResource.modifierExtension" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
             fhir:ElementDefinition.type.profile [
               fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform>         ]       ];
           fhir:ElementDefinition.condition [
             fhir:value "ele-1";
             fhir:index 0       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ]     ], [
           fhir:index 11;
           fhir:Element.id [ fhir:value "DeviceRequest.modifierExtension:doNotPerform.id" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.modifierExtension.id" ];
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr";
             fhir:index 0       ];
           fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ];
           fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.id" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:Element.extension [
               fhir:index 0;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
               fhir:Extension.valueUrl [ fhir:value "string" ]         ];
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
           fhir:index 12;
           fhir:Element.id [ fhir:value "DeviceRequest.modifierExtension:doNotPerform.extension" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.modifierExtension.extension" ];
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ];
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]         ];
             fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ];
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]       ];
           fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
           fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
           fhir:ElementDefinition.comment [ fhir:value "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." ];
           fhir:ElementDefinition.alias [
             fhir:value "extensions";
             fhir:index 0       ], [
             fhir:value "user content";
             fhir:index 1       ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
           fhir:index 13;
           fhir:Element.id [ fhir:value "DeviceRequest.modifierExtension:doNotPerform.url" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.modifierExtension.url" ];
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr";
             fhir:index 0       ];
           fhir:ElementDefinition.short [ fhir:value "identifies the meaning of the extension" ];
           fhir:ElementDefinition.definition [ fhir:value "Source of the definition for the extension code - a logical name or a URL." ];
           fhir:ElementDefinition.comment [ fhir:value "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension." ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Extension.url" ];
             fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:Element.extension [
               fhir:index 0;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
               fhir:Extension.valueUrl [ fhir:value "uri" ]         ];
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
           fhir:index 14;
           fhir:Element.id [ fhir:value "DeviceRequest.modifierExtension:doNotPerform.value[x]" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.modifierExtension.value[x]" ];
           fhir:ElementDefinition.short [ fhir:value "Value of extension" ];
           fhir:ElementDefinition.definition [ fhir:value "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)." ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Extension.value[x]" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "boolean" ]       ];
           fhir:ElementDefinition.fixedBoolean [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
           fhir:index 15;
           fhir:Element.id [ fhir:value "DeviceRequest.identifier" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.identifier" ];
           fhir:ElementDefinition.short [ fhir:value "External Request identifier" ];
           fhir:ElementDefinition.definition [ fhir:value "Identifiers assigned to this order by the orderer or by the receiver." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.identifier" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.identifier" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.identifier" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "ORC.2, ORC.3" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".identifier" ]       ], [
             fhir:index 4;
             fhir:ElementDefinition.mapping.identity [ fhir:value "quick" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "ClinicalStatement.identifier" ]       ]     ], [
           fhir:index 16;
           fhir:Element.id [ fhir:value "DeviceRequest.instantiatesCanonical" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.instantiatesCanonical" ];
           fhir:ElementDefinition.short [ fhir:value "Instantiates FHIR protocol or definition" ];
           fhir:ElementDefinition.definition [ fhir:value "The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this DeviceRequest." ];
           fhir:ElementDefinition.comment [ fhir:value "Note: This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.instantiatesCanonical" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "canonical" ];
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/ActivityDefinition";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/StructureDefinition/ActivityDefinition>         ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/PlanDefinition";
               fhir:index 1;
               fhir:link <http://hl7.org/fhir/StructureDefinition/PlanDefinition>         ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.instantiatesCanonical" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Varies by domain" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".outboundRelationship[typeCode=DEFN].target" ]       ]     ], [
           fhir:index 17;
           fhir:Element.id [ fhir:value "DeviceRequest.instantiatesUri" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.instantiatesUri" ];
           fhir:ElementDefinition.short [ fhir:value "Instantiates external protocol or definition" ];
           fhir:ElementDefinition.definition [ fhir:value "The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this DeviceRequest." ];
           fhir:ElementDefinition.comment [ fhir:value "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.instantiatesUri" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "uri" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.instantiatesUri" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Varies by domain" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".outboundRelationship[typeCode=DEFN].target" ]       ]     ], [
           fhir:index 18;
           fhir:Element.id [ fhir:value "DeviceRequest.basedOn" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.basedOn" ];
           fhir:ElementDefinition.short [ fhir:value "What request fulfills" ];
           fhir:ElementDefinition.definition [ fhir:value "Plan/proposal/order fulfilled by this request." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.basedOn" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Resource";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Resource>         ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.basedOn" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "ORC.8 (plus others)" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".outboundRelationship[typeCode=FLFS].target" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "quick" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Proposal.prnReason.reason" ]       ]     ], [
           fhir:index 19;
           fhir:Element.id [ fhir:value "DeviceRequest.priorRequest" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.priorRequest" ];
           fhir:ElementDefinition.short [ fhir:value "What request replaces" ];
           fhir:ElementDefinition.definition [ fhir:value "The request takes the place of the referenced completed or terminated request(s)." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.priorRequest" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Resource";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Resource>         ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.replaces" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Handled by message location of ORC (ORC.1=RO or RU)" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".outboundRelationship[typeCode=RPLC].target" ]       ]     ], [
           fhir:index 20;
           fhir:Element.id [ fhir:value "DeviceRequest.groupIdentifier" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.groupIdentifier" ];
           fhir:ElementDefinition.short [ fhir:value "Identifier of composite request" ];
           fhir:ElementDefinition.definition [ fhir:value "Composite request this is part of." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.groupIdentifier" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.groupIdentifier" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "ORC.4" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".inboundRelationship(typeCode=COMP].source[moodCode=INT].identifier" ]       ]     ], [
           fhir:index 21;
           fhir:Element.id [ fhir:value "DeviceRequest.status" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.status" ];
           fhir:ElementDefinition.short [ fhir:value "draft | active | on-hold | revoked | completed | entered-in-error | unknown" ];
           fhir:ElementDefinition.definition [ fhir:value "The status of the request." ];
           fhir:ElementDefinition.comment [ fhir:value "This element is labeled as a modifier because the status contains the codes cancelled and entered-in-error that mark the request as not currently valid." ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.status" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
           fhir:ElementDefinition.fixedCode [ fhir:value "completed" ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifierReason [ fhir:value "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid" ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
               fhir:Extension.valueString [ fhir:value "DeviceRequestStatus" ]         ];
             fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
             fhir:ElementDefinition.binding.description [ fhir:value "Codes representing the status of the request." ];
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/request-status|4.0.1";
               fhir:link <http://hl7.org/fhir/ValueSet/request-status|4.0.1>         ]       ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.status" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.status" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "ORC.5" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".status" ]       ], [
             fhir:index 4;
             fhir:ElementDefinition.mapping.identity [ fhir:value "quick" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Action.currentStatus" ]       ]     ], [
           fhir:index 22;
           fhir:Element.id [ fhir:value "DeviceRequest.intent" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.intent" ];
           fhir:ElementDefinition.short [ fhir:value "proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option" ];
           fhir:ElementDefinition.definition [ fhir:value "Whether the request is a proposal, plan, an original order or a reflex order." ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.intent" ];
             fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifierReason [ fhir:value "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request" ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
               fhir:Extension.valueString [ fhir:value "RequestIntent" ]         ];
             fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
             fhir:ElementDefinition.binding.description [ fhir:value "The kind of diagnostic request." ];
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/request-intent|4.0.1";
               fhir:link <http://hl7.org/fhir/ValueSet/request-intent|4.0.1>         ]       ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.intent" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.class" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)" ]       ]     ], [
           fhir:index 23;
           fhir:Element.id [ fhir:value "DeviceRequest.priority" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.priority" ];
           fhir:ElementDefinition.short [ fhir:value "routine | urgent | asap | stat" ];
           fhir:ElementDefinition.definition [ fhir:value "Indicates how quickly the {{title}} should be addressed with respect to other requests." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.priority" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
           fhir:ElementDefinition.meaningWhenMissing [ fhir:value "If missing, normal priority" ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
               fhir:Extension.valueString [ fhir:value "RequestPriority" ]         ];
             fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
             fhir:ElementDefinition.binding.description [ fhir:value "Identifies the level of importance to be assigned to actioning the request." ];
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/request-priority|4.0.1";
               fhir:link <http://hl7.org/fhir/ValueSet/request-priority|4.0.1>         ]       ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.priority" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.grade" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "TQ1.9" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".priorityCode" ]       ]     ], [
           fhir:index 24;
           fhir:Element.id [ fhir:value "DeviceRequest.code[x]" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.code[x]" ];
           fhir:ElementDefinition.short [ fhir:value "Device requested" ];
           fhir:ElementDefinition.definition [ fhir:value "The details of the device to be used." ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.code[x]" ];
             fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
           fhir:ElementDefinition.condition [
             fhir:value "dnr-1";
             fhir:index 0       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
               fhir:Extension.valueString [ fhir:value "DeviceRequestCode" ]         ];
             fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
             fhir:ElementDefinition.binding.description [ fhir:value "Codes for devices that can be requested." ];
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/device-kind";
               fhir:link <http://hl7.org/fhir/ValueSet/device-kind>         ]       ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.code" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.what[x]" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Varies by domain" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".code" ]       ], [
             fhir:index 4;
             fhir:ElementDefinition.mapping.identity [ fhir:value "quick" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "DeviceUse.device" ]       ]     ], [
           fhir:index 25;
           fhir:Element.id [ fhir:value "DeviceRequest.code[x].id" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.code[x].id" ];
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr";
             fhir:index 0       ];
           fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ];
           fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.id" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:Element.extension [
               fhir:index 0;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
               fhir:Extension.valueUrl [ fhir:value "string" ]         ];
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
           fhir:index 26;
           fhir:Element.id [ fhir:value "DeviceRequest.code[x].extension" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.code[x].extension" ];
           fhir:ElementDefinition.slicing [
             fhir:ElementDefinition.slicing.discriminator [
               fhir:index 0;
               fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ];
               fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]         ];
             fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ];
             fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]       ];
           fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
           fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
           fhir:ElementDefinition.comment [ fhir:value "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." ];
           fhir:ElementDefinition.alias [
             fhir:value "extensions";
             fhir:index 0       ], [
             fhir:value "user content";
             fhir:index 1       ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
           fhir:index 27;
           fhir:Element.id [ fhir:value "DeviceRequest.code[x].extension:doNotPerformValueSet" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.code[x].extension" ];
           fhir:ElementDefinition.sliceName [ fhir:value "doNotPerformValueSet" ];
           fhir:ElementDefinition.short [ fhir:value "What was not done" ];
           fhir:ElementDefinition.definition [ fhir:value "Specifies the value set that characterizes the events or activities that did not occur or were not performed." ];
           fhir:ElementDefinition.requirements [ fhir:value "Must be able to indicate the value set from which the expected event would be drawn, had it occurred." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
             fhir:ElementDefinition.type.profile [
               fhir:value "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet>         ]       ];
           fhir:ElementDefinition.condition [
             fhir:value "dnr-1";
             fhir:index 0       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "CWE." ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "CD.valueSet/CD.valueSetVersion" ]       ]     ], [
           fhir:index 28;
           fhir:Element.id [ fhir:value "DeviceRequest.code[x].coding" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.code[x].coding" ];
           fhir:ElementDefinition.short [ fhir:value "Code defined by a terminology system" ];
           fhir:ElementDefinition.definition [ fhir:value "A reference to a code defined by a terminology system." ];
           fhir:ElementDefinition.comment [ fhir:value "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true." ];
           fhir:ElementDefinition.requirements [ fhir:value "Allows for alternative encodings within a code system, and translations to other code systems." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "CodeableConcept.coding" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Coding" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "C*E.1-8, C*E.10-22" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "union(., ./translation)" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" ]       ]     ], [
           fhir:index 29;
           fhir:Element.id [ fhir:value "DeviceRequest.code[x].text" ];
           fhir:Element.extension [
             fhir:index 0;
             fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable" ];
             fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]       ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.code[x].text" ];
           fhir:ElementDefinition.short [ fhir:value "Plain text representation of the concept" ];
           fhir:ElementDefinition.definition [ fhir:value "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." ];
           fhir:ElementDefinition.comment [ fhir:value "Very often the text is the same as a displayName of one of the codings." ];
           fhir:ElementDefinition.requirements [ fhir:value "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." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "CodeableConcept.text" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "string" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "C*E.9. But note many systems use C*E.2 for this" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "./originalText[mediaType/code=\"text/plain\"]/data" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" ]       ]     ], [
           fhir:index 30;
           fhir:Element.id [ fhir:value "DeviceRequest.parameter" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.parameter" ];
           fhir:ElementDefinition.short [ fhir:value "Device details" ];
           fhir:ElementDefinition.definition [ fhir:value "Specific parameters for the ordered item.  For example, the prism value for lenses." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.parameter" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.what[x]" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Varies by domain" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".code" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "quick" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "DeviceUse.device" ]       ]     ], [
           fhir:index 31;
           fhir:Element.id [ fhir:value "DeviceRequest.parameter.id" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.parameter.id" ];
           fhir:ElementDefinition.representation [
             fhir:value "xmlAttr";
             fhir:index 0       ];
           fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ];
           fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.id" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:Element.extension [
               fhir:index 0;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
               fhir:Extension.valueUrl [ fhir:value "string" ]         ];
             fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
           fhir:index 32;
           fhir:Element.id [ fhir:value "DeviceRequest.parameter.extension" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.parameter.extension" ];
           fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
           fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
           fhir:ElementDefinition.comment [ fhir:value "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." ];
           fhir:ElementDefinition.alias [
             fhir:value "extensions";
             fhir:index 0       ], [
             fhir:value "user content";
             fhir:index 1       ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
           fhir:index 33;
           fhir:Element.id [ fhir:value "DeviceRequest.parameter.modifierExtension" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.parameter.modifierExtension" ];
           fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored even if unrecognized" ];
           fhir:ElementDefinition.definition [ fhir:value "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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ];
           fhir:ElementDefinition.comment [ fhir:value "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." ];
           fhir:ElementDefinition.requirements [ fhir:value "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)." ];
           fhir:ElementDefinition.alias [
             fhir:value "extensions";
             fhir:index 0       ], [
             fhir:value "user content";
             fhir:index 1       ], [
             fhir:value "modifiers";
             fhir:index 2       ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "BackboneElement.modifierExtension" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Extension";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
           fhir:index 34;
           fhir:Element.id [ fhir:value "DeviceRequest.parameter.code" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.parameter.code" ];
           fhir:ElementDefinition.short [ fhir:value "Device detail" ];
           fhir:ElementDefinition.definition [ fhir:value "A code or string that identifies the device detail being asserted." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.parameter.code" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
               fhir:Extension.valueString [ fhir:value "ParameterCode" ]         ];
             fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
             fhir:ElementDefinition.binding.description [ fhir:value "A code that identifies the device detail." ]       ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.what[x]" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Varies by domain" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".code" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "quick" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "DeviceUse.device" ]       ]     ], [
           fhir:index 35;
           fhir:Element.id [ fhir:value "DeviceRequest.parameter.value[x]" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.parameter.value[x]" ];
           fhir:ElementDefinition.short [ fhir:value "Value of detail" ];
           fhir:ElementDefinition.definition [ fhir:value "The value of the device detail." ];
           fhir:ElementDefinition.comment [ fhir:value "Range means device should have a value that falls somewhere within the specified range." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.parameter.value[x]" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.type.code [ fhir:value "Quantity" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.type.code [ fhir:value "Range" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.type.code [ fhir:value "boolean" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.what[x]" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Varies by domain" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".code" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "quick" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "DeviceUse.device" ]       ]     ], [
           fhir:index 36;
           fhir:Element.id [ fhir:value "DeviceRequest.subject" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.subject" ];
           fhir:ElementDefinition.short [ fhir:value "Focus of request" ];
           fhir:ElementDefinition.definition [ fhir:value "The patient who will use the device." ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.subject" ];
             fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient>         ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.subject" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.subject[x]" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Accompanying PID segment" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".participation[typeCode=SBJ].role" ]       ], [
             fhir:index 4;
             fhir:ElementDefinition.mapping.identity [ fhir:value "quick" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "ClinicalStatement.subject" ]       ], [
             fhir:index 5;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.subject" ]       ]     ], [
           fhir:index 37;
           fhir:Element.id [ fhir:value "DeviceRequest.encounter" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.encounter" ];
           fhir:ElementDefinition.short [ fhir:value "Encounter motivating request" ];
           fhir:ElementDefinition.definition [ fhir:value "An encounter that provides additional context in which this request is made." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.encounter" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter>         ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.encounter" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.context" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Accompanying PV1" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]" ]       ], [
             fhir:index 4;
             fhir:ElementDefinition.mapping.identity [ fhir:value "quick" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "ClinicalStatement.encounter" ]       ]     ], [
           fhir:index 38;
           fhir:Element.id [ fhir:value "DeviceRequest.occurrence[x]" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.occurrence[x]" ];
           fhir:ElementDefinition.short [ fhir:value "Desired time or schedule for use" ];
           fhir:ElementDefinition.definition [ fhir:value "The timing schedule for the use of the device. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\"." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.occurrence[x]" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "dateTime" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.type.code [ fhir:value "Period" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.type.code [ fhir:value "Timing" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.occurrence[x]" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.planned" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Accompanying TQ1/TQ2 segments" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".effectiveTime" ]       ], [
             fhir:index 4;
             fhir:ElementDefinition.mapping.identity [ fhir:value "quick" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "DeviceUse.applicationSchedule" ]       ]     ], [
           fhir:index 39;
           fhir:Element.id [ fhir:value "DeviceRequest.authoredOn" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.authoredOn" ];
           fhir:ElementDefinition.short [ fhir:value "When recorded" ];
           fhir:ElementDefinition.definition [ fhir:value "When the request transitioned to being actionable." ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.authoredOn" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "dateTime" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.authoredOn" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.recorded" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "ORC.9" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".participation[typeCode=AUT].time" ]       ], [
             fhir:index 4;
             fhir:ElementDefinition.mapping.identity [ fhir:value "quick" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "ClinicalStatement.statementDateTime" ]       ]     ], [
           fhir:index 40;
           fhir:Element.id [ fhir:value "DeviceRequest.requester" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.requester" ];
           fhir:ElementDefinition.short [ fhir:value "Who/what is requesting diagnostics" ];
           fhir:ElementDefinition.definition [ fhir:value "The individual who initiated the request and has responsibility for its activation." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.requester" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Device";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Device>         ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner";
               fhir:index 1;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Practitioner>         ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole";
               fhir:index 2;
               fhir:link <http://hl7.org/fhir/StructureDefinition/PractitionerRole>         ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Organization";
               fhir:index 3;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Organization>         ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.requester" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.author" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "ORC.12" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".participation[typeCode=AUT].role" ]       ]     ], [
           fhir:index 41;
           fhir:Element.id [ fhir:value "DeviceRequest.performerType" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.performerType" ];
           fhir:ElementDefinition.short [ fhir:value "Filler role" ];
           fhir:ElementDefinition.definition [ fhir:value "Desired type of performer for doing the diagnostic testing." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.performerType" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
               fhir:Extension.valueString [ fhir:value "DeviceRequestParticipantRole" ]         ];
             fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
             fhir:ElementDefinition.binding.description [ fhir:value "Indicates specific responsibility of an individual within the care team, such as \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc." ];
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/participant-role";
               fhir:link <http://hl7.org/fhir/ValueSet/participant-role>         ]       ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.performerType" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.actor" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "PRT" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".participation[typeCode=PRF].role[scoper.determinerCode=KIND].code" ]       ]     ], [
           fhir:index 42;
           fhir:Element.id [ fhir:value "DeviceRequest.performer" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.performer" ];
           fhir:ElementDefinition.short [ fhir:value "Requested Filler" ];
           fhir:ElementDefinition.definition [ fhir:value "The desired performer for doing the diagnostic testing." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.performer" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Practitioner>         ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole";
               fhir:index 1;
               fhir:link <http://hl7.org/fhir/StructureDefinition/PractitionerRole>         ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Organization";
               fhir:index 2;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Organization>         ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/CareTeam";
               fhir:index 3;
               fhir:link <http://hl7.org/fhir/StructureDefinition/CareTeam>         ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/HealthcareService";
               fhir:index 4;
               fhir:link <http://hl7.org/fhir/StructureDefinition/HealthcareService>         ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Patient";
               fhir:index 5;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Patient>         ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Device";
               fhir:index 6;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Device>         ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/RelatedPerson";
               fhir:index 7;
               fhir:link <http://hl7.org/fhir/StructureDefinition/RelatedPerson>         ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.performer" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.actor" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "PRT" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]" ]       ]     ], [
           fhir:index 43;
           fhir:Element.id [ fhir:value "DeviceRequest.reasonCode" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.reasonCode" ];
           fhir:ElementDefinition.short [ fhir:value "Coded Reason for request" ];
           fhir:ElementDefinition.definition [ fhir:value "Reason or justification for the use of this device." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.reasonCode" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.binding [
             fhir:Element.extension [
               fhir:index 0;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
               fhir:Extension.valueString [ fhir:value "DeviceRequestReason" ]         ];
             fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
             fhir:ElementDefinition.binding.description [ fhir:value "Diagnosis or problem codes justifying the reason for requesting the device." ];
             fhir:ElementDefinition.binding.valueSet [
               fhir:value "http://hl7.org/fhir/ValueSet/condition-code";
               fhir:link <http://hl7.org/fhir/ValueSet/condition-code>         ]       ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.reasonCode" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.why[x]" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "ORC.16" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".reasonCode" ]       ], [
             fhir:index 4;
             fhir:ElementDefinition.mapping.identity [ fhir:value "quick" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Action.indication.reason" ]       ]     ], [
           fhir:index 44;
           fhir:Element.id [ fhir:value "DeviceRequest.reasonReference" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.reasonReference" ];
           fhir:ElementDefinition.short [ fhir:value "Linked Reason for request" ];
           fhir:ElementDefinition.definition [ fhir:value "Reason or justification for the use of this device." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.reasonReference" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Condition";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Condition>         ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Observation";
               fhir:index 1;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>         ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/DiagnosticReport";
               fhir:index 2;
               fhir:link <http://hl7.org/fhir/StructureDefinition/DiagnosticReport>         ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/DocumentReference";
               fhir:index 3;
               fhir:link <http://hl7.org/fhir/StructureDefinition/DocumentReference>         ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.reasonReference" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "FiveWs.why[x]" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "ORC.16" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".outboundRelationship[typeCode=RSON].target" ]       ]     ], [
           fhir:index 45;
           fhir:Element.id [ fhir:value "DeviceRequest.insurance" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.insurance" ];
           fhir:ElementDefinition.short [ fhir:value "Associated insurance coverage" ];
           fhir:ElementDefinition.definition [ fhir:value "Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.insurance" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Coverage";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Coverage>         ], [
               fhir:value "http://hl7.org/fhir/StructureDefinition/ClaimResponse";
               fhir:index 1;
               fhir:link <http://hl7.org/fhir/StructureDefinition/ClaimResponse>         ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.insurance" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "IN1/IN2" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".outboundRelationship[typeCode=COVBY].target" ]       ]     ], [
           fhir:index 46;
           fhir:Element.id [ fhir:value "DeviceRequest.supportingInfo" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.supportingInfo" ];
           fhir:ElementDefinition.short [ fhir:value "Additional clinical information" ];
           fhir:ElementDefinition.definition [ fhir:value "Additional clinical information about the patient that may influence the request fulfilment.  For example, this may include where on the subject's body the device will be used (i.e. the target site)." ];
           fhir:ElementDefinition.requirements [ fhir:value "Knowing where the device is targeted is important for tracking if multiple sites are possible." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.supportingInfo" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Resource";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Resource>         ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.supportingInfo" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Accompanying segments" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".outboundRelationship[typeCode=PERT].target" ]       ]     ], [
           fhir:index 47;
           fhir:Element.id [ fhir:value "DeviceRequest.note" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.note" ];
           fhir:ElementDefinition.short [ fhir:value "Notes or comments" ];
           fhir:ElementDefinition.definition [ fhir:value "Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.note" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Annotation" ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.note" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "NTE" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]" ]       ], [
             fhir:index 3;
             fhir:ElementDefinition.mapping.identity [ fhir:value "quick" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "ClinicalStatement.additionalText" ]       ]     ], [
           fhir:index 48;
           fhir:Element.id [ fhir:value "DeviceRequest.relevantHistory" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.relevantHistory" ];
           fhir:ElementDefinition.short [ fhir:value "Request provenance" ];
           fhir:ElementDefinition.definition [ fhir:value "Key events in the history of the request." ];
           fhir:ElementDefinition.comment [ fhir:value "This might not include provenances for all versions of the request - only those deemed \"relevant\" or important.\rThis SHALL NOT include the Provenance associated with this current version of the resource.  (If that provenance is deemed to be a \"relevant\" change, it will need to be added as part of a later update.  Until then, it can be queried directly as the Provenance that points to this version using _revinclude\rAll Provenances should have some historical version of this Request as their subject." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "*" ];
           fhir:ElementDefinition.base [
             fhir:ElementDefinition.base.path [ fhir:value "DeviceRequest.relevantHistory" ];
             fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
             fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Provenance";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/StructureDefinition/Provenance>         ]       ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
             fhir:ElementDefinition.constraint.source [
               fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
               fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
           fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
           fhir:ElementDefinition.mapping [
             fhir:index 0;
             fhir:ElementDefinition.mapping.identity [ fhir:value "workflow" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "Request.relevantHistory" ]       ], [
             fhir:index 1;
             fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
             fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ], [
             fhir:index 2;
             fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
             fhir:ElementDefinition.mapping.map [ fhir:value ".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]" ]       ]     ]
      ];
      fhir:StructureDefinition.differential [
         fhir:StructureDefinition.differential.element [
           fhir:index 0;
           fhir:Element.id [ fhir:value "DeviceRequest" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest" ];
           fhir:ElementDefinition.constraint [
             fhir:index 0;
             fhir:ElementDefinition.constraint.key [ fhir:value "dnr-1" ];
             fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
             fhir:ElementDefinition.constraint.human [ fhir:value "to indicate what device was not requested, either at least one coding in the code or a notDoneValueSet extension shall be provided" ];
             fhir:ElementDefinition.constraint.expression [ fhir:value "code.extension('http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet').exists() xor code.coding.exists()" ];
             fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)" ]       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ]     ], [
           fhir:index 1;
           fhir:Element.id [ fhir:value "DeviceRequest.extension:doNotPerformReason" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.extension" ];
           fhir:ElementDefinition.sliceName [ fhir:value "doNotPerformReason" ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
             fhir:ElementDefinition.type.profile [
               fhir:value "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-doNotPerformReason";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-doNotPerformReason>         ]       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]     ], [
           fhir:index 2;
           fhir:Element.id [ fhir:value "DeviceRequest.modifierExtension:doNotPerform" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.modifierExtension" ];
           fhir:ElementDefinition.sliceName [ fhir:value "doNotPerform" ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
             fhir:ElementDefinition.type.profile [
               fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform>         ]       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ]     ], [
           fhir:index 3;
           fhir:Element.id [ fhir:value "DeviceRequest.modifierExtension:doNotPerform.value[x]" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.modifierExtension.value[x]" ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "boolean" ]       ];
           fhir:ElementDefinition.fixedBoolean [ fhir:value "true"^^xsd:boolean ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]     ], [
           fhir:index 4;
           fhir:Element.id [ fhir:value "DeviceRequest.status" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.status" ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
           fhir:ElementDefinition.fixedCode [ fhir:value "completed" ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]     ], [
           fhir:index 5;
           fhir:Element.id [ fhir:value "DeviceRequest.intent" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.intent" ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]     ], [
           fhir:index 6;
           fhir:Element.id [ fhir:value "DeviceRequest.code[x]" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.code[x]" ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
           fhir:ElementDefinition.condition [
             fhir:value "dnr-1";
             fhir:index 0       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]     ], [
           fhir:index 7;
           fhir:Element.id [ fhir:value "DeviceRequest.code[x].extension:doNotPerformValueSet" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.code[x].extension" ];
           fhir:ElementDefinition.sliceName [ fhir:value "doNotPerformValueSet" ];
           fhir:ElementDefinition.short [ fhir:value "What was not done" ];
           fhir:ElementDefinition.definition [ fhir:value "Specifies the value set that characterizes the events or activities that did not occur or were not performed." ];
           fhir:ElementDefinition.requirements [ fhir:value "Must be able to indicate the value set from which the expected event would be drawn, had it occurred." ];
           fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
             fhir:ElementDefinition.type.profile [
               fhir:value "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet>         ]       ];
           fhir:ElementDefinition.condition [
             fhir:value "dnr-1";
             fhir:index 0       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]     ], [
           fhir:index 8;
           fhir:Element.id [ fhir:value "DeviceRequest.subject" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.subject" ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient>         ]       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]     ], [
           fhir:index 9;
           fhir:Element.id [ fhir:value "DeviceRequest.encounter" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.encounter" ];
           fhir:ElementDefinition.type [
             fhir:index 0;
             fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
             fhir:ElementDefinition.type.targetProfile [
               fhir:value "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter";
               fhir:index 0;
               fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter>         ]       ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]     ], [
           fhir:index 10;
           fhir:Element.id [ fhir:value "DeviceRequest.authoredOn" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.authoredOn" ];
           fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
           fhir:ElementDefinition.max [ fhir:value "1" ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]     ], [
           fhir:index 11;
           fhir:Element.id [ fhir:value "DeviceRequest.note" ];
           fhir:ElementDefinition.path [ fhir:value "DeviceRequest.note" ];
           fhir:ElementDefinition.mustSupport [ fhir:value "true"^^xsd:boolean ]     ]
      ].

    # - ontology header ------------------------------------------------------------

     a owl:Ontology;
      owl:imports fhir:fhir.ttl.