<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="rdc-MedicationRequest" />
  <url value="https://roche.com/fhir/iop/StructureDefinition/rdc-MedicationRequest" />
  <name value="RdcMedicationRequest" />
  <title value="RDC MedicationRequest" />
  <status value="draft" />
  <publisher value="F. Hoffmann-La Roche AG" />
  <description value="Describes an order or request for both supply of the medication and the instructions for administration of a medication to a patient." />
  <copyright value="Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise." />
  <fhirVersion value="5.0.0" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="MedicationRequest" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
  <derivation value="constraint" />
  <differential>
    <element id="MedicationRequest.identifier">
      <path value="MedicationRequest.identifier" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.basedOn">
      <path value="MedicationRequest.basedOn" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.priorPrescription">
      <path value="MedicationRequest.priorPrescription" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.groupIdentifier">
      <path value="MedicationRequest.groupIdentifier" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.statusReason">
      <path value="MedicationRequest.statusReason" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.statusChanged">
      <path value="MedicationRequest.statusChanged" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.category">
      <path value="MedicationRequest.category" />
      <binding>
        <strength value="required" />
        <valueSet value="https://roche.com/fhir/iop/ValueSet/insulin-codes" />
      </binding>
    </element>
    <element id="MedicationRequest.priority">
      <path value="MedicationRequest.priority" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.doNotPerform">
      <path value="MedicationRequest.doNotPerform" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.medication">
      <path value="MedicationRequest.medication" />
      <type>
        <code value="CodeableReference" />
        <targetProfile value="https://roche.com/fhir/iop/StructureDefinition/rdc-Medication" />
      </type>
    </element>
    <element id="MedicationRequest.medication.concept">
      <path value="MedicationRequest.medication.concept" />
      <definition value="Informs the type of administration conducted (ex. Basal or Bolus)." />
      <binding>
        <strength value="required" />
        <valueSet value="https://roche.com/fhir/iop/ValueSet/insulin-codes" />
      </binding>
    </element>
    <element id="MedicationRequest.subject">
      <path value="MedicationRequest.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://roche.com/fhir/iop/StructureDefinition/rdc-Patient" />
      </type>
    </element>
    <element id="MedicationRequest.informationSource">
      <path value="MedicationRequest.informationSource" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.encounter">
      <path value="MedicationRequest.encounter" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.supportingInformation">
      <path value="MedicationRequest.supportingInformation" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.requester">
      <path value="MedicationRequest.requester" />
      <definition value="Reference to the device instance that generated the request, such as a bolus calculator pump or other automated medication management system" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://roche.com/fhir/iop/StructureDefinition/rdc-Device-Instance" />
      </type>
    </element>
    <element id="MedicationRequest.reported">
      <path value="MedicationRequest.reported" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.performerType">
      <path value="MedicationRequest.performerType" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.performer">
      <path value="MedicationRequest.performer" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.device">
      <path value="MedicationRequest.device" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.recorder">
      <path value="MedicationRequest.recorder" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.reason">
      <path value="MedicationRequest.reason" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.courseOfTherapyType">
      <path value="MedicationRequest.courseOfTherapyType" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.insurance">
      <path value="MedicationRequest.insurance" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.note">
      <path value="MedicationRequest.note" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.renderedDosageInstruction">
      <path value="MedicationRequest.renderedDosageInstruction" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.effectiveDosePeriod">
      <path value="MedicationRequest.effectiveDosePeriod" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dosageInstruction.additionalInstruction">
      <path value="MedicationRequest.dosageInstruction.additionalInstruction" />
      <binding>
        <strength value="required" />
        <valueSet value="https://roche.com/fhir/iop/ValueSet/insulin-codes" />
      </binding>
    </element>
    <element id="MedicationRequest.dosageInstruction.method">
      <path value="MedicationRequest.dosageInstruction.method" />
      <binding>
        <strength value="required" />
        <valueSet value="https://roche.com/fhir/iop/ValueSet/insulin-codes" />
      </binding>
    </element>
    <element id="MedicationRequest.dosageInstruction.doseAndRate.type">
      <path value="MedicationRequest.dosageInstruction.doseAndRate.type" />
      <binding>
        <strength value="required" />
        <valueSet value="https://roche.com/fhir/iop/ValueSet/insulin-codes" />
      </binding>
    </element>
    <element id="MedicationRequest.dispenseRequest">
      <path value="MedicationRequest.dispenseRequest" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.substitution">
      <path value="MedicationRequest.substitution" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.eventHistory">
      <path value="MedicationRequest.eventHistory" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>