<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="NICE-MedicationAgreement" />
  <meta>
    <lastUpdated value="2023-10-04T15:03:46.2060862+00:00" />
  </meta>
  <url value="https://fhir.stichting-nice.nl/STU3/StructureDefinition/NICE-MedicationAgreement-2022Q1" />
  <version value="0.0.1" />
  <name value="NICE-MedicationAgreement" />
  <title value="NICE-MedicationAgreement" />
  <status value="active" />
  <date value="2023-10-04T15:33:14.3221484+00:00" />
  <publisher value="NICE" />
  <contact>
    <name value="NICE" />
    <telecom>
      <system value="email" />
      <value value="vragen@stichting-nice.nl" />
    </telecom>
  </contact>
  <description value="This profile is for submitting data to the NICE related to periods in which medication was agreed upon and ordered for a patient." />
  <purpose value="This profile is used to submit medication order related information to the Dutch National Intensive Care Evaluation (NICE). It was derived from the Nictiz Health and Care Information Model (HCIM; Dutch: Zorginformatiebouwsteen or ZIB) MedicationRequest, 2017 release version 3.1" />
  <copyright value="CC0" />
  <fhirVersion value="3.0.2" />
  <mapping>
    <identity value="NICE-Datadictionary-MDS" />
    <uri value="https://www.stichting-nice.nl/dd/#528" />
    <name value="NICE-Datadictionary-MDS" />
    <comment value="The Minimal Data Set (MDS)" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="MedicationRequest" />
  <baseDefinition value="http://nictiz.nl/fhir/StructureDefinition/zib-MedicationAgreement" />
  <derivation value="constraint" />
  <differential>
    <element id="MedicationRequest.extension">
      <path value="MedicationRequest.extension" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.extension:Verified">
      <path value="MedicationRequest.extension" />
      <sliceName value="Verified" />
      <short value="Is the instance validated by a medical professional?" />
      <definition value="Extension that is used to indicate whether the entire instance has been validated.&#xD;&#xA;&#xD;&#xA;Every instance shall be validated by a hospital member / datamanager. However, this is not always feasible in case of automated submission of NICE data elements. This extensions shall be used to indicate the validation status of the instance." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.stichting-nice.nl/STU3/StructureDefinition/NICE-Verified-2022Q1" />
      </type>
    </element>
    <element id="MedicationRequest.extension:periodOfUse">
      <path value="MedicationRequest.extension" />
      <sliceName value="periodOfUse" />
      <mustSupport value="true" />
      <mapping>
        <identity value="NICE-Datadictionary-MDS" />
        <map value="https://www.stichting-nice.nl/dd/#57" />
        <comment value="Chronic Obstructive Pulmonary Disease" />
      </mapping>
      <mapping>
        <identity value="NICE-Datadictionary-MDS" />
        <map value="https://www.stichting-nice.nl/dd/#78" />
        <comment value="Diabetes" />
      </mapping>
      <mapping>
        <identity value="NICE-Datadictionary-MDS" />
        <map value="https://www.stichting-nice.nl/dd/#159" />
        <comment value="Immunological insufficiency" />
      </mapping>
      <mapping>
        <identity value="NICE-Datadictionary-MDS" />
        <map value="https://www.stichting-nice.nl/dd/#411" />
        <comment value="Thrombolytic therapy following acute myocardial infarction" />
      </mapping>
      <mapping>
        <identity value="NICE-Datadictionary-MDS" />
        <map value="https://www.stichting-nice.nl/dd/#432" />
        <comment value="Vasoactive medication" />
      </mapping>
    </element>
    <element id="MedicationRequest.status">
      <path value="MedicationRequest.status" />
      <mustSupport value="false" />
    </element>
    <element id="MedicationRequest.intent">
      <path value="MedicationRequest.intent" />
      <short value="order" />
      <definition value="Whether the request is a proposal, plan, or an original order. Only medication requests that are actually ordered should be sent to NICE." />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.medicationReference:medicationReference">
      <path value="MedicationRequest.medicationReference" />
      <sliceName value="medicationReference" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.stichting-nice.nl/STU3/StructureDefinition/NICE-PharmaceuticalProduct-2022Q1" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.subject">
      <path value="MedicationRequest.subject" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.stichting-nice.nl/STU3/StructureDefinition/NICE-Patient-2022Q1" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.context">
      <path value="MedicationRequest.context" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/zib-Encounter" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-episodeofcare" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.stichting-nice.nl/STU3/StructureDefinition/NICE-Encounter-2022Q1" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>