<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="nxh-medicationrequest" />
  <url value="https://fhir.nexuzhealth.com/standards/fhir/StructureDefinition/NxhMedicationRequest" />
  <name value="NxhMedicationRequest" />
  <status value="active" />
  <date value="2022-10-26T13:39:53.1398154+00:00" />
  <description value="Nexuzhealth profile for medication requests." />
  <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.extension">
      <path value="MedicationRequest.extension" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.extension:hospitalCode">
      <path value="MedicationRequest.extension" />
      <sliceName value="hospitalCode" />
      <definition value="A reference to a hospital (an organization) the resource is related to." />
      <min value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.nexuzhealth.com/standards/fhir/StructureDefinition/nxh-ext-hospitalCode" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="MedicationRequest.extension:hospitalCode.value[x]">
      <path value="MedicationRequest.extension.value[x]" />
      <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)" />
    </element>
    <element id="MedicationRequest.identifier">
      <path value="MedicationRequest.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="MedicationRequest.identifier:medicatieVoorschriftId">
      <path value="MedicationRequest.identifier" />
      <sliceName value="medicatieVoorschriftId" />
      <definition value="The medicatieVoorschriftId identifier of the medication request.&#xD;&#xA;&#xD;&#xA;MedicatieVoorschriftId is an identifier assigned internally by Nexuzhealth in the KWS database." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="MedicationRequest.identifier:medicatieVoorschriftId.system">
      <path value="MedicationRequest.identifier.system" />
      <fixedUri value="https://fhir.nexuzhealth.com/standards/fhir/NamingSystem/kws/apotheek/medicatieVoorschriftNew/id" />
    </element>
    <element id="MedicationRequest.dosageInstruction.extension">
      <path value="MedicationRequest.dosageInstruction.extension" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dosageInstruction.extension:voorschriftNr">
      <path value="MedicationRequest.dosageInstruction.extension" />
      <sliceName value="voorschriftNr" />
      <short value="voorschriftNr" />
      <definition value="The voorschriftNr identifier of the dosage instruction&#xD;&#xA;&#xD;&#xA;VoorschriftNr is an identifier assigned internally by Nexuzhealth in the KWS database." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.nexuzhealth.com/standards/fhir/StructureDefinition/nxh-ext-identifier" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="MedicationRequest.dosageInstruction.extension:voorschriftNr.value[x].system">
      <path value="MedicationRequest.dosageInstruction.extension.value[x].system" />
      <fixedUri value="https://fhir.nexuzhealth.com/standards/fhir/NamingSystem/kws/apotheek/medischVoorschrift/voorschriftNr" />
    </element>
    <element id="MedicationRequest.dosageInstruction.extension:voorschriftNr.value[x].value">
      <path value="MedicationRequest.dosageInstruction.extension.value[x].value" />
      <definition value="The portion of the identifier typically relevant to the user and which is unique within the context of the system" />
    </element>
    <element id="MedicationRequest.dosageInstruction.route">
      <path value="MedicationRequest.dosageInstruction.route" />
      <binding>
        <strength value="extensible" />
        <valueSet value="https://fhir.nexuzhealth.com/standards/fhir/ValueSet/nxh-vs-toedieningsweg" />
      </binding>
    </element>
  </differential>
</StructureDefinition>