{
  "resourceType": "StructureDefinition",
  "id": "ambu-ReferralComposition",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Foundation.Documents"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "not-classified"
    }
  ],
  "url": "http://nictiz.nl/fhir/StructureDefinition/ambu-ReferralComposition",
  "version": "V1.0.0 Alpha.2",
  "name": "AmbuReferralComposition",
  "title": "ambu ReferralComposition",
  "status": "draft",
  "publisher": "Nictiz",
  "contact": [
    {
      "name": "Nictiz",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.nictiz.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "A Composition resource as used within the ambulance referral use case in ELZ.",
  "copyright": "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": "4.0.1",
  "mapping": [
    {
      "identity": "hg-dataset-20260317",
      "uri": "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": "ART-DECOR dataset AMBU-HAP V1.0.0 Alpha.2 20260318"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Composition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Composition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Composition",
        "path": "Composition",
        "mapping": [
          {
            "identity": "hg-dataset-2026",
            "map": "hg-dataelement-1709",
            "comment": "Kern"
          },
          {
            "identity": "hg-dataset-2026",
            "map": "hg-dataelement-1725",
            "comment": "Dossiergegevens"
          }
        ]
      },
      {
        "id": "Composition.type",
        "path": "Composition.type",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "57133-1"
            }
          ]
        }
      },
      {
        "id": "Composition.subject",
        "path": "Composition.subject",
        "short": "Patient",
        "definition": "Geeft de gegevens van de patiënt en de eventuele gegevens over de contactpersonen van de patiënt.",
        "alias": [
          "Patient"
        ],
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource",
              "http://nictiz.nl/fhir/StructureDefinition/nl-core-Patient"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "hg-dataset-20260317",
            "map": "hg-dataelement-1676",
            "comment": "Patient"
          }
        ]
      },
      {
        "id": "Composition.author",
        "path": "Composition.author",
        "short": "Sender",
        "definition": "Geeft de volledige identificatie- en contactgegevens van de verzender van het bericht.\r\n \r\nIn de HASP-richtlijn van de NHG is aangegeven dat de beheerder meestal de verzender is van het bericht.",
        "alias": [
          "Verzender"
        ],
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://nictiz.nl/fhir/StructureDefinition/pattern-NlCoreHealthProfessionalReference"
            ],
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
              "http://hl7.org/fhir/StructureDefinition/Organization",
              "http://nictiz.nl/fhir/StructureDefinition/nl-core-HealthProfessional-PractitionerRole",
              "http://nictiz.nl/fhir/StructureDefinition/nl-core-HealthcareProvider-Organization"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "hg-dataset-20260317",
            "map": "hg-dataelement-5089",
            "comment": "Verzender"
          },
          {
            "identity": "hg-dataset-20260317",
            "map": "hg-dataelement-5398",
            "comment": "Zorgverlener"
          },
          {
            "identity": "hg-dataset-20260317",
            "map": "hg-dataelement-5391",
            "comment": "Zorgaanbieder"
          }
        ]
      },
      {
        "id": "Composition.title",
        "path": "Composition.title",
        "example": [
          {
            "label": "Example for referral",
            "valueString": "Referral note"
          }
        ]
      },
      {
        "id": "Composition.section",
        "path": "Composition.section",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code.coding"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Composition.section:treatmentGiven",
        "path": "Composition.section",
        "sliceName": "treatmentGiven",
        "short": "Treatment given",
        "definition": "In de uitwisseling Ambulance - HAP vanuit de richtlijn NHG - Acute Zorg wordt dit veld gemapt op het veld 'Beleid'.",
        "alias": [
          "IngesteldeBehandeling"
        ]
      },
      {
        "id": "Composition.section:treatmentGiven.extension",
        "path": "Composition.section.extension",
        "min": 1
      },
      {
        "id": "Composition.section:treatmentGiven.extension:treatmentGivenTextValue",
        "path": "Composition.section.extension",
        "sliceName": "treatmentGivenTextValue",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://nictiz.nl/fhir/StructureDefinition/ext-TextValue"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Composition.section:treatmentGiven.extension:treatmentGivenTextValue.value[x]",
        "path": "Composition.section.extension.value[x]",
        "short": "Treatment given",
        "definition": "Geeft de ingestelde behandeling in het verwijsbericht, de update en het DT-bericht.\r\n\r\nIn de richtlijn HASP Paramedicus wordt dit veld in de verwijzing, de update door de paramedicus en het DT-bericht 'Beleid, ingestelde behandeling' genoemd.\r\n\r\nIn de richtlijn HASP Medisch Specialist wordt dit veld in het ontslagbericht 'Beleid' genoemd.\r\n\r\nIn de richtlijn NHG - Acute Zorg wordt dit veld gemapt op het veld 'Beleid'\r\n\r\nZie voor het verwijsbericht en de update de HASP-medische specialist richtlijn en HASP-paramedische richtlijn van het NHG.\r\nZie voor het DT-bericht de HASP-paramedische richtlijn van het NHG.",
        "alias": [
          "IngesteldeBehandeling"
        ],
        "min": 1,
        "mapping": [
          {
            "identity": "hg-dataset-20260317",
            "map": "hg-dataelement-1711",
            "comment": "IngesteldeBehandeling"
          }
        ]
      },
      {
        "id": "Composition.section:treatmentGiven.title",
        "path": "Composition.section.title",
        "example": [
          {
            "label": "Example for referral",
            "valueString": "Kern"
          }
        ]
      },
      {
        "id": "Composition.section:treatmentGiven.code",
        "path": "Composition.section.code",
        "min": 1,
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "182991002"
            }
          ]
        }
      },
      {
        "id": "Composition.section:DiagnosisConclusion",
        "path": "Composition.section",
        "sliceName": "DiagnosisConclusion",
        "definition": "In de uitwisseling Ambulance - HAP vanuit de richtlijn NHG - Acute Zorg wordt dit veld gemapt op de opsommingen van de titels van de toestandsbeelden in de Ambulance."
      },
      {
        "id": "Composition.section:DiagnosisConclusion.extension",
        "path": "Composition.section.extension",
        "min": 1
      },
      {
        "id": "Composition.section:DiagnosisConclusion.extension:diagnosisConclusionTextValue",
        "path": "Composition.section.extension",
        "sliceName": "diagnosisConclusionTextValue",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://nictiz.nl/fhir/StructureDefinition/ext-TextValue"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Composition.section:DiagnosisConclusion.extension:diagnosisConclusionTextValue.value[x]",
        "path": "Composition.section.extension.value[x]",
        "short": "Diagnosis / Conclusions",
        "definition": "Geeft de diagnose en/of conclusie.\r\n\r\nIn de HASP-paramedicus richtlijn (NHG) is aangegeven:\r\n\r\nIn het bericht 'DT' van de paramedicus komt de diagnose of conclusie.\r\n\r\nIn het bericht 'eindrapportage van de paramedicus komt de conclusie.\r\n\r\n \r\nIn de HASP-medische specialist richtlijn (NHG) is aangegeven:\r\n\r\nIn het bericht 'ontslag' van de medische specialist komt de diagnose en/of conclusie.\r\n\r\nIn de HASP-GGZ richtlijn (NHG) is aangegeven:\r\n\r\nIn het bericht 'na intake' van de GGZ komt de diagnose en/of conclusie.\r\n\r\nIn het bericht 'kennisgeving overdracht behandeling' van de GGZ komt de diagnose en/of conclusie.\r\n\r\nIn het bericht 'einde behandeling / voortgang' ontslagbericht van de GGZ komt de diagnose en/of conclusie.\r\n\r\nIn de richtlijn NHG - Acute Zorg wordt dit veld gemapt op de opsommingen van de titels van de toestandsbeelden in de Ambulance.",
        "alias": [
          "Diagnose / Conclusie"
        ],
        "min": 1,
        "mapping": [
          {
            "identity": "hg-dataset-20260317",
            "map": "hg-dataelement-1749",
            "comment": "Diagnose / Conclusie"
          }
        ]
      },
      {
        "id": "Composition.section:DiagnosisConclusion.code",
        "path": "Composition.section.code",
        "min": 1,
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "60022001"
            }
          ]
        }
      }
    ]
  }
}