<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Transport" />
  <meta>
    <lastUpdated value="2021-01-02T08:58:31.578+11:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-category">
    <valueString value="Clinical.Request &amp;amp; Response" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category">
    <valueCode value="patient" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="oo" />
  </extension>
  <extension url="http://hl7.org/fhir/build/StructureDefinition/entered-in-error-status">
    <valueCode value=".status = entered-in-error" />
  </extension>
  <url value="http://hl7.org/fhir/StructureDefinition/Transport" />
  <version value="4.6.0" />
  <name value="Transport" />
  <status value="draft" />
  <date value="2021-01-02T08:58:31+11:00" />
  <publisher value="Health Level Seven International (Orders and Observations)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/fhir" />
    </telecom>
  </contact>
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://www.hl7.org/Special/committees/orders/index.cfm" />
    </telecom>
  </contact>
  <description value="Record of transport." />
  <fhirVersion value="4.6.0" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Transport" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
  <derivation value="specialization" />
  <differential>
    <element id="Transport">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/svg">
        <valueCode value="0,0" />
      </extension>
      <path value="Transport" />
      <short value="Delivery of item" />
      <definition value="Record of transport of item." />
      <min value="0" />
      <max value="*" />
      <mapping>
        <identity value="workflow" />
        <map value="Event" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Supply[moodCode=RQO]" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="workflow.order" />
      </mapping>
    </element>
    <element id="Transport.identifier">
      <path value="Transport.identifier" />
      <short value="External identifier" />
      <definition value="Identifier for the transport event that is used to identify it across multiple disparate systems." />
      <comment value="This identifier is typically assigned by the dispenser, and may be used to reference the delivery when exchanging information about it with other systems." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Identifier" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Event.identifier" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".id" />
      </mapping>
    </element>
    <element id="Transport.basedOn">
      <path value="Transport.basedOn" />
      <short value="Request fulfilled by this transport" />
      <definition value="BasedOn refers to a higher-level authorization that triggered the creation of the transport.  It references a &quot;request&quot; resource such as a ServiceRequest or Task, which is distinct from the &quot;request&quot; resource the Transport is seeking to fulfill.  This latter resource is referenced by FocusOn.  For example, based on a ServiceRequest (= BasedOn), a transport is created to fulfill a procedureRequest ( = FocusOn ) to transport a specimen to the lab." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Request.basedOn, Event.basedOn" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".outboundRelationship[typeCode=FLFS].target[moodCode=INT]" />
      </mapping>
    </element>
    <element id="Transport.partOf">
      <path value="Transport.partOf" />
      <short value="Part of referenced event" />
      <definition value="A larger event of which this particular event is a component or step." />
      <comment value="Not to be used to link an event to an Encounter - use Event.context for that.&#xD;&#xD;[The allowed reference resources may be adjusted as appropriate for the event resource]." />
      <requirements value="E.g. Drug administration as part of a procedure, procedure as part of observation, etc." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Transport" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Contract" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.partOf" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="Varies by domain" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".inboundRelationship[typeCode=COMP].source[moodCode=EVN]" />
      </mapping>
    </element>
    <element id="Transport.status">
      <path value="Transport.status" />
      <short value="in-progress | completed | abandoned | entered-in-error" />
      <definition value="A code specifying the state of the dispense event." />
      <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <isModifier value="true" />
      <isModifierReason value="This element is labelled 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" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="TransportStatus" />
        </extension>
        <strength value="required" />
        <description value="Status of the transport." />
        <valueSet value="http://hl7.org/fhir/ValueSet/transport-status" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Event.status" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".statusCode, also existence of fulfillment events" />
      </mapping>
    </element>
    <element id="Transport.patient">
      <path value="Transport.patient" />
      <short value="Patient for whom the item is supplied" />
      <definition value="A link to a resource representing the person whom the delivered item is for." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Event.subject" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=SBJ].role" />
      </mapping>
    </element>
    <element id="Transport.type">
      <path value="Transport.type" />
      <short value="Category of dispense event" />
      <definition value="Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="TransportType" />
        </extension>
        <strength value="required" />
        <description value="The type of transport." />
        <valueSet value="http://hl7.org/fhir/ValueSet/transport-type" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Event.code" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".code" />
      </mapping>
    </element>
    <element id="Transport.suppliedItem">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/svg">
        <valueCode value="360,50" />
      </extension>
      <path value="Transport.suppliedItem" />
      <short value="The item that is delivered or supplied" />
      <definition value="The item that is being delivered or has been supplied." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=PRD].role" />
      </mapping>
    </element>
    <element id="Transport.suppliedItem.quantity">
      <path value="Transport.suppliedItem.quantity" />
      <short value="Amount dispensed" />
      <definition value="The amount of supply that has been dispensed. Includes unit of measure." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Quantity" />
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".quantity" />
      </mapping>
    </element>
    <element id="Transport.suppliedItem.item[x]">
      <path value="Transport.suppliedItem.item[x]" />
      <short value="Medication, Substance, or Device supplied" />
      <definition value="Identifies the medication, substance or device being dispensed. This is either a link to a resource representing the details of the item or a code that identifies the item from a known list." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="TransportItem" />
        </extension>
        <strength value="example" />
        <description value="The item that was delivered." />
        <valueSet value="http://hl7.org/fhir/ValueSet/supply-item" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=PRD].role" />
      </mapping>
    </element>
    <element id="Transport.occurrence[x]">
      <path value="Transport.occurrence[x]" />
      <short value="When event occurred" />
      <definition value="The date or time(s) the activity occurred." />
      <comment value="[The list of types may be constrained as appropriate for the type of event]." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <type>
        <code value="Timing" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.occurrence[x]" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.done[x]" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="Varies by domain" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".effectiveTime" />
      </mapping>
    </element>
    <element id="Transport.supplier">
      <path value="Transport.supplier" />
      <short value="Dispenser" />
      <definition value="The individual responsible for dispensing the medication, supplier or device." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Event.performer" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=PFM].role" />
      </mapping>
    </element>
    <element id="Transport.destination">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/committee-notes">
        <valueString value="[#3415]." />
      </extension>
      <path value="Transport.destination" />
      <short value="Where the Supply was sent" />
      <definition value="Identification of the facility/location where the Supply was shipped to, as part of the dispense event." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=DST].role" />
      </mapping>
    </element>
    <element id="Transport.receiver">
      <path value="Transport.receiver" />
      <short value="Who collected the Supply" />
      <definition value="Identifies the person who picked up the Supply." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=RCV].role" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>