<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="DeviceUsage" />
  <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/DeviceUsage" />
  <version value="4.6.0" />
  <name value="DeviceUsage" />
  <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="A record of a device being used by a patient where the record is the result of a report from the patient or a clinician." />
  <fhirVersion value="4.6.0" />
  <mapping>
    <identity value="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Pattern" />
  </mapping>
  <mapping>
    <identity value="quick" />
    <uri value="http://siframework.org/cqf" />
    <name value="Quality Improvement and Clinical Knowledge (QUICK)" />
  </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>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="DeviceUsage" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
  <derivation value="specialization" />
  <differential>
    <element id="DeviceUsage">
      <path value="DeviceUsage" />
      <short value="Record of use of a device" />
      <definition value="A record of a device being used by a patient where the record is the result of a report from the patient or a clinician." />
      <min value="0" />
      <max value="*" />
      <mapping>
        <identity value="workflow" />
        <map value="Event" />
      </mapping>
      <mapping>
        <identity value="quick" />
        <map value="DeviceUsePerformanceOccurrence" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="workflow.order" />
      </mapping>
    </element>
    <element id="DeviceUsage.identifier">
      <path value="DeviceUsage.identifier" />
      <short value="External identifier for this record" />
      <definition value="An external identifier for this statement such as an IRI." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Identifier" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.identifier" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.identifier" />
      </mapping>
      <mapping>
        <identity value="quick" />
        <map value="ClinicalStatement.identifier" />
      </mapping>
    </element>
    <element id="DeviceUsage.basedOn">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/committee-notes">
        <valueString value="GF#12800." />
      </extension>
      <path value="DeviceUsage.basedOn" />
      <short value="Fulfills plan, proposal or order" />
      <definition value="A plan, proposal or order that is fulfilled in whole or in part by this DeviceUsage." />
      <requirements value="Allows tracing of authorization for the DeviceUsage and tracking whether proposals/recommendations were acted upon." />
      <alias value="fulfills" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.basedOn" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="ORC in proximity to EVN segment" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".outboundRelationship[typeCode=FLFS].target" />
      </mapping>
    </element>
    <element id="DeviceUsage.status">
      <path value="DeviceUsage.status" />
      <short value="active | completed | not-done | entered-in-error +" />
      <definition value="A code representing the patient or other source's judgment about the state of the device used that this statement is about.  Generally this will be active or completed." />
      <comment value="DeviceUseStatment is a statement at a point in time.  The status is only representative at the point when it was asserted.  The value set for contains codes that assert the status of the use  by the patient (for example, stopped or on hold) as well as codes that assert the status of the resource itself (for example, entered in error).&#xD;&#xD;This element is labeled as a modifier because the status contains the codes that mark the statement as not currently valid." />
      <min value="1" />
      <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="DeviceUsageStatus" />
        </extension>
        <strength value="required" />
        <description value="A coded concept indicating the current status of the Device Usage." />
        <valueSet value="http://hl7.org/fhir/ValueSet/device-usage-status" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Event.status" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.status" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".statusCode" />
      </mapping>
      <mapping>
        <identity value="quick" />
        <map value="…status" />
      </mapping>
    </element>
    <element id="DeviceUsage.category">
      <path value="DeviceUsage.category" />
      <short value="The category of the statement - classifying how the statement is made" />
      <definition value="This attribute indicates a category for the statement - The device statement may be made in an inpatient or outpatient settting (inpatient | outpatient | community | patientspecified)." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="DeviceUsage.patient">
      <path value="DeviceUsage.patient" />
      <short value="Patient using device" />
      <definition value="The patient who used the device." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.subject" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject[x]" />
      </mapping>
      <mapping>
        <identity value="quick" />
        <map value="ClinicalStatement.subject" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.subject" />
      </mapping>
    </element>
    <element id="DeviceUsage.derivedFrom">
      <extension url="http://hl7.org/fhir/build/StructureDefinition/committee-notes">
        <valueString value="GF#128000." />
      </extension>
      <path value="DeviceUsage.derivedFrom" />
      <short value="Supporting information" />
      <definition value="Allows linking the DeviceUsage to the underlying Request, or to other information that supports or is used to derive the DeviceUsage." />
      <comment value="The most common use cases for deriving a DeviceUsage comes from creating it from a request or from an observation or a claim. it should be noted that the amount of information that is available varies from the type resource that you derive the DeviceUsage from." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Claim" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="DeviceUsage.context">
      <path value="DeviceUsage.context" />
      <short value="The encounter or episode of care that establishes the context for this device use statement" />
      <definition value="The encounter or episode of care that establishes the context for this device use statement." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.context" />
      </mapping>
    </element>
    <element id="DeviceUsage.timing[x]">
      <path value="DeviceUsage.timing[x]" />
      <short value="How often  the device was used" />
      <definition value="How often the device was used." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Timing" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <type>
        <code value="dateTime" />
      </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="quick" />
        <map value="DeviceUse.applicationSchedule" />
      </mapping>
    </element>
    <element id="DeviceUsage.dateAsserted">
      <path value="DeviceUsage.dateAsserted" />
      <short value="When the statement was made (and recorded)" />
      <definition value="The time at which the statement was recorded by informationSource." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.recorded" />
      </mapping>
      <mapping>
        <identity value="quick" />
        <map value="ClinicalStatement.statementDateTime" />
      </mapping>
    </element>
    <element id="DeviceUsage.usageStatus">
      <path value="DeviceUsage.usageStatus" />
      <short value="The status of the device usage, for example always, sometimes, never. This is not the same as the status of the statement" />
      <definition value="The status of the device usage, for example always, sometimes, never. This is not the same as the status of the statement." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="DeviceUsageStatus" />
        </extension>
        <strength value="required" />
        <description value="Codes representing the usage status of the device." />
        <valueSet value="http://hl7.org/fhir/ValueSet/device-usage-status" />
      </binding>
    </element>
    <element id="DeviceUsage.usageReason">
      <path value="DeviceUsage.usageReason" />
      <short value="The reason for asserting the usage status - for example forgot, lost, stolen, broken" />
      <definition value="The reason for asserting the usage status - for example forgot, lost, stolen, broken." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="DeviceUsage.informationSource">
      <path value="DeviceUsage.informationSource" />
      <short value="Who made the statement" />
      <definition value="Who reported the device was being used by the patient." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.performer.actor" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.actor" />
      </mapping>
    </element>
    <element id="DeviceUsage.device">
      <path value="DeviceUsage.device" />
      <short value="Code or Reference to device used" />
      <definition value="Code or Reference to device used." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableReference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DeviceDefinition" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.actor" />
      </mapping>
    </element>
    <element id="DeviceUsage.reason">
      <path value="DeviceUsage.reason" />
      <short value="Why device was used" />
      <definition value="Reason or justification for the use of the device. A coded concept, or another resource whose existence justifies this DeviceUsage." />
      <comment value="When the status is not done, the reason code indicates why it was not done." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableReference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
      </type>
      <isSummary value="true" />
      <mapping>
        <identity value="workflow" />
        <map value="Event.reasonCode" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.why[x]" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".outboundRelationship[typeCode=RSON].target" />
      </mapping>
      <mapping>
        <identity value="quick" />
        <map value="Action.indication.reason" />
      </mapping>
    </element>
    <element id="DeviceUsage.bodySite">
      <path value="DeviceUsage.bodySite" />
      <short value="Target body site" />
      <definition value="Indicates the anotomic location on the subject's body where the device was used ( i.e. the target)." />
      <requirements value="Knowing where the device is targeted is important for tracking if multiple sites are possible. If more information than just a code is required, use the extension [[[http://hl7.org/fhir/StructureDefinition/bodySite]]]." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableReference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/BodyStructure" />
      </type>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="BodySite" />
        </extension>
        <extension url="http://hl7.org/fhir/build/StructureDefinition/definition">
          <valueString value="Codes describing anatomical locations. May include laterality." />
        </extension>
        <strength value="example" />
        <description value="SNOMED CT Body site concepts" />
        <valueSet value="http://hl7.org/fhir/ValueSet/body-site" />
      </binding>
      <mapping>
        <identity value="workflow" />
        <map value="Event.note" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="targetSiteCode" />
      </mapping>
    </element>
    <element id="DeviceUsage.note">
      <path value="DeviceUsage.note" />
      <short value="Addition details (comments, instructions)" />
      <definition value="Details about the device statement 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." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Annotation" />
      </type>
      <mapping>
        <identity value="workflow" />
        <map value="Event.note" />
      </mapping>
      <mapping>
        <identity value="quick" />
        <map value="ClinicalStatement.additionalText" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>