<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="MedicationRequest" />
  <url value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/MedicationRequest/v1" />
  <version value="1.0" />
  <name value="MedicationRequest" />
  <status value="active" />
  <date value="2024-05-02T12:08:33.5385973+00:00" />
  <description value="This resource is used for the medication request done by a clinician in the ER while treatment of the patient is ongoing in the prehospital area.&#xD;&#xA;The profile is based on the MedicationRequest Resource." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="MedicationRequest" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
  <derivation value="constraint" />
  <differential>
    <element id="MedicationRequest.id">
      <path value="MedicationRequest.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.meta">
      <path value="MedicationRequest.meta" />
    </element>
    <element id="MedicationRequest.meta.id">
      <path value="MedicationRequest.meta.id" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.meta.versionId">
      <path value="MedicationRequest.meta.versionId" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.meta.lastUpdated">
      <path value="MedicationRequest.meta.lastUpdated" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.meta.source">
      <path value="MedicationRequest.meta.source" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.meta.profile">
      <path value="MedicationRequest.meta.profile" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.meta.security">
      <path value="MedicationRequest.meta.security" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.meta.tag">
      <path value="MedicationRequest.meta.tag" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.implicitRules">
      <path value="MedicationRequest.implicitRules" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.language">
      <path value="MedicationRequest.language" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.text">
      <path value="MedicationRequest.text" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.contained">
      <path value="MedicationRequest.contained" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.identifier">
      <path value="MedicationRequest.identifier" />
      <definition value="An identifier for this medication request." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="MedicationRequest.identifier.use">
      <path value="MedicationRequest.identifier.use" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.identifier.type">
      <path value="MedicationRequest.identifier.type" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.identifier.system">
      <path value="MedicationRequest.identifier.system" />
      <definition value="The namespace for the identifier value." />
      <min value="1" />
    </element>
    <element id="MedicationRequest.identifier.value">
      <path value="MedicationRequest.identifier.value" />
      <definition value="The value that is unique." />
      <min value="1" />
    </element>
    <element id="MedicationRequest.identifier.period">
      <path value="MedicationRequest.identifier.period" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.identifier.assigner">
      <path value="MedicationRequest.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.status">
      <path value="MedicationRequest.status" />
      <definition value="A code specifying the state of the medication request.&#xD;&#xA;&#xD;&#xA;When the administration is registered and successfully send, the status is 'completed'. If the request awaits connection to the mobile client the status is ‘On-hold’. Lastly if the request is failed in the sending, the status is ‘cancelled’." />
    </element>
    <element id="MedicationRequest.statusReason">
      <path value="MedicationRequest.statusReason" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.intent">
      <path value="MedicationRequest.intent" />
      <definition value="The intent of the medication request." />
      <fixedCode value="plan" />
    </element>
    <element id="MedicationRequest.category">
      <path value="MedicationRequest.category" />
      <definition value="Type of medication." />
      <max value="1" />
    </element>
    <element id="MedicationRequest.category.coding">
      <path value="MedicationRequest.category.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="MedicationRequest.category.coding.system">
      <path value="MedicationRequest.category.coding.system" />
      <definition value="Identity of the terminology system." />
      <min value="1" />
      <fixedUri value="http://hl7.org/fhir/ValueSet/medicationrequest-category" />
    </element>
    <element id="MedicationRequest.category.coding.version">
      <path value="MedicationRequest.category.coding.version" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.category.coding.code">
      <path value="MedicationRequest.category.coding.code" />
      <definition value="Symbol in syntax defined by the system." />
      <min value="1" />
      <fixedCode value="inpatient" />
    </element>
    <element id="MedicationRequest.category.coding.display">
      <path value="MedicationRequest.category.coding.display" />
      <definition value="Representation defined by the system." />
    </element>
    <element id="MedicationRequest.category.coding.userSelected">
      <path value="MedicationRequest.category.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.category.text">
      <path value="MedicationRequest.category.text" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.priority">
      <path value="MedicationRequest.priority" />
      <fixedCode value="asap" />
    </element>
    <element id="MedicationRequest.doNotPerform">
      <path value="MedicationRequest.doNotPerform" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.reported[x]">
      <path value="MedicationRequest.reported[x]" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.medication[x]">
      <path value="MedicationRequest.medication[x]" />
      <definition value="Medication to be taken." />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/CodeableConcept/v1" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Medication/v1" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="MedicationRequest.subject">
      <path value="MedicationRequest.subject" />
      <definition value="Who the medication request is for." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Patient/v1" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="MedicationRequest.subject.reference">
      <path value="MedicationRequest.subject.reference" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.subject.type">
      <path value="MedicationRequest.subject.type" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.subject.identifier">
      <path value="MedicationRequest.subject.identifier" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.subject.display">
      <path value="MedicationRequest.subject.display" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.encounter">
      <path value="MedicationRequest.encounter" />
      <definition value="The Encounter during which this medication request was created or to which the creation of this record is tightly associated." />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Encounter/v1" />
      </type>
    </element>
    <element id="MedicationRequest.encounter.reference">
      <path value="MedicationRequest.encounter.reference" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.encounter.type">
      <path value="MedicationRequest.encounter.type" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.encounter.identifier">
      <path value="MedicationRequest.encounter.identifier" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.encounter.display">
      <path value="MedicationRequest.encounter.display" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.supportingInformation">
      <path value="MedicationRequest.supportingInformation" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.authoredOn">
      <path value="MedicationRequest.authoredOn" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.requester">
      <path value="MedicationRequest.requester" />
      <definition value="The clinician initiated the request and has responsibility for its activation. If the administration of the medication is done without a requester it must be set as auto." />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Practitioner/v1" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="MedicationRequest.requester.reference">
      <path value="MedicationRequest.requester.reference" />
      <definition value="Literal reference to the practitioner resource. Relative URL is being used." />
      <min value="1" />
    </element>
    <element id="MedicationRequest.requester.type">
      <path value="MedicationRequest.requester.type" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.requester.identifier">
      <path value="MedicationRequest.requester.identifier" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.requester.display">
      <path value="MedicationRequest.requester.display" />
      <definition value="Plain text narrative that identifies the resource in addition to the resource reference. If no requester is associated with the medication administration, the text shall be set as automatic requester." />
      <fixedString value="automatic" />
    </element>
    <element id="MedicationRequest.performer">
      <path value="MedicationRequest.performer" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.performerType">
      <path value="MedicationRequest.performerType" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.recorder">
      <path value="MedicationRequest.recorder" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.reasonCode">
      <path value="MedicationRequest.reasonCode" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.reasonReference">
      <path value="MedicationRequest.reasonReference" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.instantiatesCanonical">
      <path value="MedicationRequest.instantiatesCanonical" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.instantiatesUri">
      <path value="MedicationRequest.instantiatesUri" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.basedOn">
      <path value="MedicationRequest.basedOn" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.groupIdentifier">
      <path value="MedicationRequest.groupIdentifier" />
      <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.dosageInstruction">
      <path value="MedicationRequest.dosageInstruction" />
      <max value="0" />
    </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.priorPrescription">
      <path value="MedicationRequest.priorPrescription" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.detectedIssue">
      <path value="MedicationRequest.detectedIssue" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.eventHistory">
      <path value="MedicationRequest.eventHistory" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>