<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="hg-ReferralComposition" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-category">
    <valueString value="Foundation.Documents" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category">
    <valueCode value="not-classified" />
  </extension>
  <url value="http://nictiz.nl/fhir/StructureDefinition/hg-ReferralComposition" />
  <version value="0.2.0-beta.1" />
  <name value="HgReferralComposition" />
  <title value="hg ReferralComposition" />
  <status value="draft" />
  <publisher value="Nictiz" />
  <contact>
    <name value="Nictiz" />
    <telecom>
      <system value="url" />
      <value value="https://www.nictiz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="A Composition resource as used within the general practitioner referral use case in ELZ." />
  <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="4.0.1" />
  <mapping>
    <identity value="hg-dataset-020-beta1-20230612" />
    <uri value="https://decor.nictiz.nl/pub/eerstelijnszorg/hg-html-20230612T223800/ds-2.16.840.1.113883.2.4.3.11.60.103.1.1-2020-10-19T175239.html" />
    <name value="ART-DECOR dataset ELZ 0.2.0-beta.1 20230612" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Composition" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Composition" />
  <derivation value="constraint" />
  <differential>
    <element id="Composition">
      <path value="Composition" />
      <mapping>
        <identity value="hg-dataset-020-beta1-20230612" />
        <map value="hg-dataelement-1673" />
        <comment value="Envelop" />
      </mapping>
      <mapping>
        <identity value="hg-dataset-020-beta1-20230612" />
        <map value="hg-dataelement-1709" />
        <comment value="Kern" />
      </mapping>
    </element>
    <element id="Composition.status">
      <path value="Composition.status" />
      <fixedCode value="final" />
    </element>
    <element id="Composition.type">
      <path value="Composition.type" />
      <patternCodeableConcept>
        <coding>
          <system value="http://loinc.org" />
          <code value="57133-1" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Composition.subject">
      <path value="Composition.subject" />
      <short value="Patient" />
      <definition value="Geeft de gegevens van de patiënt en de eventuele gegevens over de contactpersonen van de patiënt." />
      <alias value="Patient" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-Patient" />
      </type>
      <mapping>
        <identity value="hg-dataset-020-beta1-20230612" />
        <map value="hg-dataelement-1676" />
        <comment value="Patient" />
      </mapping>
    </element>
    <element id="Composition.author">
      <path value="Composition.author" />
      <short value="Sender" />
      <definition value="Geeft de volledige identificatie- en contactgegevens van de verzender van het bericht.&#xD;&#xA; &#xD;&#xA;In de HASP-richtlijn van de NHG is aangegeven dat de beheerder meestal de verzender is van het bericht." />
      <alias value="Verzender" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/pattern-NlCoreHealthProfessionalReference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-HealthProfessional-PractitionerRole" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-HealthcareProvider-Organization" />
      </type>
      <mapping>
        <identity value="hg-dataset-020-beta1-20230612" />
        <map value="hg-dataelement-1678" />
        <comment value="Verzender" />
      </mapping>
      <mapping>
        <identity value="hg-dataset-020-beta1-20230612" />
        <map value="hg-dataelement-5120" />
        <comment value="Zorgverlener" />
      </mapping>
      <mapping>
        <identity value="hg-dataset-020-beta1-20230612" />
        <map value="hg-dataelement-5090" />
        <comment value="Zorgaanbieder" />
      </mapping>
    </element>
    <element id="Composition.title">
      <path value="Composition.title" />
      <example>
        <label value="Example for referral" />
        <valueString value="Referral note" />
      </example>
    </element>
    <element id="Composition.section">
      <path value="Composition.section" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="code.coding" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Composition.section:envelope">
      <path value="Composition.section" />
      <sliceName value="envelope" />
      <short value="Envelope" />
      <definition value="Geeft alle relevante gegevens in de envelop conform de richtlijn." />
      <alias value="Envelop" />
      <mapping>
        <identity value="hg-dataset-020-beta1-20230612" />
        <map value="hg-dataelement-1673" />
        <comment value="Envelop" />
      </mapping>
    </element>
    <element id="Composition.section:envelope.title">
      <path value="Composition.section.title" />
      <example>
        <label value="Example for referral" />
        <valueString value="Envelop" />
      </example>
    </element>
    <element id="Composition.section:envelope.code">
      <path value="Composition.section.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="405624007" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Composition.section:envelope.section">
      <path value="Composition.section.section" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="code.coding" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Composition.section:envelope.section:carePath">
      <path value="Composition.section.section" />
      <sliceName value="carePath" />
      <max value="1" />
    </element>
    <element id="Composition.section:envelope.section:carePath.extension">
      <path value="Composition.section.section.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Composition.section:envelope.section:carePath.extension:carePathTextValue">
      <path value="Composition.section.section.extension" />
      <sliceName value="carePathTextValue" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-TextValue" />
      </type>
    </element>
    <element id="Composition.section:envelope.section:carePath.extension:carePathTextValue.value[x]">
      <path value="Composition.section.section.extension.value[x]" />
      <short value="CarePath" />
      <definition value="Geeft de inhoud van het zorgpad.&#xD;&#xA;&#xD;&#xA;Voorbeeld in de HASP-richtlijn: Voorstel voor de zorgstraat of het zorgpad dat van toepassing wordt geacht voor deze patiënt of cliënt." />
      <alias value="Zorgpad" />
      <min value="1" />
      <mapping>
        <identity value="hg-dataset-020-beta1-20230612" />
        <map value="hg-dataelement-1696" />
        <comment value="Zorgpad" />
      </mapping>
    </element>
    <element id="Composition.section:envelope.section:carePath.title">
      <path value="Composition.section.section.title" />
      <example>
        <label value="Example for referral" />
        <valueString value="Zorgpad" />
      </example>
    </element>
    <element id="Composition.section:envelope.section:carePath.code">
      <path value="Composition.section.section.code" />
      <min value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="370858005" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Composition.section:envelope.section:requiredConsultationFacilities">
      <path value="Composition.section.section" />
      <sliceName value="requiredConsultationFacilities" />
      <max value="1" />
    </element>
    <element id="Composition.section:envelope.section:requiredConsultationFacilities.extension">
      <path value="Composition.section.section.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Composition.section:envelope.section:requiredConsultationFacilities.extension:requiredConsultationFacilitiesTextValue">
      <path value="Composition.section.section.extension" />
      <sliceName value="requiredConsultationFacilitiesTextValue" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-TextValue" />
      </type>
    </element>
    <element id="Composition.section:envelope.section:requiredConsultationFacilities.extension:requiredConsultationFacilitiesTextValue.value[x]">
      <path value="Composition.section.section.extension.value[x]" />
      <short value="RequiredConsultationFacilities" />
      <definition value="Geeft de extra maatregelen of aandachtspunten die nodig zijn voor een consult met deze patiënt.&#xD;&#xA;&#xD;&#xA;De HASP-richtlijn (NHG) geeft als voorbeeld een tolkentelefoon." />
      <alias value="VoorzieningenNodigBijConsult" />
      <min value="1" />
      <mapping>
        <identity value="hg-dataset-020-beta1-20230612" />
        <map value="hg-dataelement-1708" />
        <comment value="VoorzieningenNodigBijConsult" />
      </mapping>
    </element>
    <element id="Composition.section:envelope.section:requiredConsultationFacilities.title">
      <path value="Composition.section.section.title" />
      <example>
        <label value="Example for referral" />
        <valueString value="Voorzieningen nodig bij consult" />
      </example>
    </element>
    <element id="Composition.section:envelope.section:requiredConsultationFacilities.code">
      <path value="Composition.section.section.code" />
      <min value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="230211000146109" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Composition.section:core">
      <path value="Composition.section" />
      <sliceName value="core" />
      <short value="Core" />
      <definition value="Geeft de zorginhoudelijke kerngegevens van de berichten die genoemd zijn in de verschillende NHG-richtlijnen voor verwijzing, update, ontslag, directe toegang en eindrapportage voor paramedici." />
      <alias value="Kern" />
      <mapping>
        <identity value="hg-dataset-020-beta1-20230612" />
        <map value="hg-dataelement-1709" />
        <comment value="Kern" />
      </mapping>
    </element>
    <element id="Composition.section:core.title">
      <path value="Composition.section.title" />
      <example>
        <label value="Example for referral" />
        <valueString value="Kern" />
      </example>
    </element>
    <element id="Composition.section:core.code">
      <path value="Composition.section.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="406550009" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Composition.section:core.section">
      <path value="Composition.section.section" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="code.coding" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Composition.section:core.section:messageReason">
      <path value="Composition.section.section" />
      <sliceName value="messageReason" />
      <short value="MessageReason" />
      <definition value="Geeft de reden van de verwijzing of de update. Hierbij is de beschrijving als vrije tekst op aangeven van het NHG verplicht. Daarnaast kan er ook een ICPC-code van de episode worden meegestuurd, al dan niet aangevuld met meer details over de vastlegging van de ICPC." />
      <comment value="The ICPC code should be communicated via `Condition.code` in the resource that is referenced in the _problem_ `.entry` below." />
      <alias value="RedenBericht" />
      <min value="1" />
      <max value="1" />
      <mapping>
        <identity value="hg-dataset-020-beta1-20230612" />
        <map value="hg-dataelement-1872" />
        <comment value="RedenBericht" />
      </mapping>
    </element>
    <element id="Composition.section:core.section:messageReason.extension">
      <path value="Composition.section.section.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Composition.section:core.section:messageReason.extension:contextTextValue">
      <path value="Composition.section.section.extension" />
      <sliceName value="contextTextValue" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-TextValue" />
      </type>
    </element>
    <element id="Composition.section:core.section:messageReason.extension:contextTextValue.value[x]">
      <path value="Composition.section.section.extension.value[x]" />
      <short value="Context" />
      <definition value="Geeft aan waarom een zorgverlener (bijv. huisarts, paramedicus, medisch specialist) de patiënt verwijst, en waarom op dit moment.&#xD;&#xA;In de richtlijnen HASP Medisch specialist en Paramedicus wordt dit veld in het updatebericht van huisarts naar medisch specialist/paramedicus 'Reden bericht' genoemd.&#xD;&#xA; &#xD;&#xA;De HASP-richtlijn (NHG) geeft aan:&#xD;&#xA; &#xD;&#xA;De huisarts bedenkt of de geconsulteerde naast de korte verwijsreden nog extra context nodig heeft om het stokje goed te kunnen overnemen.&#xD;&#xA;&#xD;&#xA;Vaak kan de reden van een verwijzing kort zijn: de huisarts verwijst omdat er afspraken zijn om de noodzakelijke zorg in de tweede lijn te geven en het type verwijzing komt vaak voor, zie ook de voorbeelden in het volgende kader. Belangrijk is om concreet aan te geven:&#xD;&#xA;• welk alarmsymptoom de huisarts ziet;&#xD;&#xA;• welk ongewone beloop het ziektebeeld vertoont.&#xD;&#xA;Of er speelt meer mee om deze patiënt op dit moment te verwijzen; de huisarts verwijst omdat:&#xD;&#xA;• de klachten het functioneren van de patiënt te veel in de weg staan;&#xD;&#xA;• de thuissituatie hierom vraagt;&#xD;&#xA;• de huisarts de eigen koers onvoldoende vertrouwt;&#xD;&#xA;• de huisarts een oorzaak wil uitsluiten alvorens een andere weg in te slaan;&#xD;&#xA;• er sprake is van lastig te managen complexiteit.&#xD;&#xA;Juist deze aanvullingen zijn essentieel om de medisch specialist het juiste startpunt te bieden." />
      <alias value="Context" />
      <min value="1" />
      <mapping>
        <identity value="hg-dataset-020-beta1-20230612" />
        <map value="hg-dataelement-1710" />
        <comment value="Context" />
      </mapping>
    </element>
    <element id="Composition.section:core.section:messageReason.title">
      <path value="Composition.section.section.title" />
      <example>
        <label value="Example for referral" />
        <valueString value="Reden bericht" />
      </example>
    </element>
    <element id="Composition.section:core.section:messageReason.code">
      <path value="Composition.section.section.code" />
      <min value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="440378000" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Composition.section:core.section:messageReason.entry">
      <path value="Composition.section.section.entry" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Composition.section:core.section:messageReason.entry:problem">
      <path value="Composition.section.section.entry" />
      <sliceName value="problem" />
      <short value="Problem" />
      <definition value="Een probleem beschrijft een toestand met betrekking tot de gezondheid en/of het welzijn van een individu. Deze toestand kan zijn benoemd door de patiënt zelf (een klacht), of door zijn of haar zorgverlener (onder andere een diagnose)." />
      <alias value="Probleem" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-Problem" />
      </type>
      <mapping>
        <identity value="hg-dataset-020-beta1-20230612" />
        <map value="hg-dataelement-5205" />
        <comment value="Probleem" />
      </mapping>
    </element>
    <element id="Composition.section:core.section:setTreatment">
      <path value="Composition.section.section" />
      <sliceName value="setTreatment" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Composition.section:core.section:setTreatment.extension">
      <path value="Composition.section.section.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Composition.section:core.section:setTreatment.extension:setTreatmentTextValue">
      <path value="Composition.section.section.extension" />
      <sliceName value="setTreatmentTextValue" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-TextValue" />
      </type>
    </element>
    <element id="Composition.section:core.section:setTreatment.extension:setTreatmentTextValue.value[x]">
      <path value="Composition.section.section.extension.value[x]" />
      <short value="SetTreatment" />
      <definition value="Geeft de ingestelde behandeling in het verwijsbericht, de update en het DT-bericht.&#xD;&#xA;In de richtlijn HASP Paramedicus wordt dit veld in de verwijzing, de update door de paramedicus en het DT-bericht 'Beleid, ingestelde behandeling' genoemd.&#xD;&#xA;In de richtlijn HASP Medisch Specialist wordt dit veld in het ontslagbericht 'Beleid' genoemd.&#xD;&#xA; &#xD;&#xA;Zie voor het verwijsbericht en de update de HASP-medische specialist richtlijn en HASP-paramedische richtlijn van het NHG.&#xD;&#xA; &#xD;&#xA;Zie voor het DT-bericht de HASP-paramedische richtlijn van het NHG." />
      <alias value="IngesteldeBehandeling" />
      <min value="1" />
      <mapping>
        <identity value="hg-dataset-020-beta1-20230612" />
        <map value="hg-dataelement-1711" />
        <comment value="IngesteldeBehandeling" />
      </mapping>
    </element>
    <element id="Composition.section:core.section:setTreatment.title">
      <path value="Composition.section.section.title" />
      <example>
        <label value="Example for referral" />
        <valueString value="Ingestelde behandeling" />
      </example>
    </element>
    <element id="Composition.section:core.section:setTreatment.code">
      <path value="Composition.section.section.code" />
      <min value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="108631000146107" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Composition.section:core.section:proposedProcedure">
      <path value="Composition.section.section" />
      <sliceName value="proposedProcedure" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Composition.section:core.section:proposedProcedure.extension">
      <path value="Composition.section.section.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Composition.section:core.section:proposedProcedure.extension:proposedProcedureTextValue">
      <path value="Composition.section.section.extension" />
      <sliceName value="proposedProcedureTextValue" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-TextValue" />
      </type>
    </element>
    <element id="Composition.section:core.section:proposedProcedure.extension:proposedProcedureTextValue.value[x]">
      <path value="Composition.section.section.extension.value[x]" />
      <short value="ProposedProcedure" />
      <definition value="Geeft het voorstel van de procedure in het verwijsbericht van de verwijzer (bijv. huisarts, paramedicus, medisch specialist).&#xD;&#xA; &#xD;&#xA;De HASP-richtlijn (NHG) geeft als voorbeeld een voorstel van de huisarts voor de verdere samenwerking: ‘Graag eenmalig advies’ of ‘Gaarne overname behandeling’." />
      <alias value="ProcedureVoorstel" />
      <min value="1" />
      <mapping>
        <identity value="hg-dataset-020-beta1-20230612" />
        <map value="hg-dataelement-1712" />
        <comment value="ProcedureVoorstel" />
      </mapping>
    </element>
    <element id="Composition.section:core.section:proposedProcedure.title">
      <path value="Composition.section.section.title" />
      <example>
        <label value="Example for referral" />
        <valueString value="Procedurevoorstel" />
      </example>
    </element>
    <element id="Composition.section:core.section:proposedProcedure.code">
      <path value="Composition.section.section.code" />
      <min value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="240471000146100" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Composition.section:core.section:furtherImportant">
      <path value="Composition.section.section" />
      <sliceName value="furtherImportant" />
      <max value="1" />
    </element>
    <element id="Composition.section:core.section:furtherImportant.extension">
      <path value="Composition.section.section.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Composition.section:core.section:furtherImportant.extension:furtherImportantTextValue">
      <path value="Composition.section.section.extension" />
      <sliceName value="furtherImportantTextValue" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-TextValue" />
      </type>
    </element>
    <element id="Composition.section:core.section:furtherImportant.extension:furtherImportantTextValue.value[x]">
      <path value="Composition.section.section.extension.value[x]" />
      <short value="FurtherImportant" />
      <definition value="Geeft aan wat verder van belang is in het verwijsbericht, de updates en de eindrapportage.&#xD;&#xA;&#xD;&#xA;De HASP-richtlijn (NHG) geeft verschillende voorbeelden, zoals:&#xD;&#xA;* Eerder in 2015 speelden er surmenageklachten.&#xD;&#xA;* Lopend traject bij neuroloog vanwege spierklachten.&#xD;&#xA;* Op verzoek moeder." />
      <alias value="VerderVanBelang" />
      <min value="1" />
      <mapping>
        <identity value="hg-dataset-020-beta1-20230612" />
        <map value="hg-dataelement-1713" />
        <comment value="VerderVanBelang" />
      </mapping>
    </element>
    <element id="Composition.section:core.section:furtherImportant.title">
      <path value="Composition.section.section.title" />
      <example>
        <label value="Example for referral" />
        <valueString value="Verder van belang" />
      </example>
    </element>
    <element id="Composition.section:core.section:furtherImportant.code">
      <path value="Composition.section.section.code" />
      <min value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://snomed.info/sct" />
          <code value="159121000146100" />
        </coding>
      </patternCodeableConcept>
    </element>
  </differential>
</StructureDefinition>