<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="StructureDefinition-ACP-QuestionnaireResponse" />
  <url value="https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-QuestionnaireResponse" />
  <name value="ACPQuestionnaireResponse" />
  <title value="ACP QuestionnaireResponse" />
  <status value="draft" />
  <publisher value="IKNL" />
  <contact>
    <name value="IKNL" />
    <telecom>
      <system value="email" />
      <value value="info@iknl.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="[TO-DO]" />
  <copyright value="[TO-DO]" />
  <fhirVersion value="3.0.2" />
  <mapping>
    <identity value="pzp-dataset-100-beta1-2025-TO-DO" />
    <uri value="[TO-DO]" />
    <name value="ART-DECOR Dataset Proactieve Zorgplanning 1.0.0-beta.1 [TO-DO]" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="QuestionnaireResponse" />
  <baseDefinition value="http://nictiz.nl/fhir/StructureDefinition/vl-QuestionnaireResponse" />
  <derivation value="constraint" />
  <differential>
    <element id="QuestionnaireResponse.extension:encounter">
      <path value="QuestionnaireResponse.extension" />
      <sliceName value="encounter" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.iknl.nl/fhir/PZP/StructureDefinition/Extension-ACP-LinkToEncounter" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="QuestionnaireResponse.questionnaire">
      <path value="QuestionnaireResponse.questionnaire" />
      <short value="ACP Form" />
      <comment value="The reference to the Questionnaire SHALL be an absolute URL including a `.version` of the ACP form to specify the correct version." />
      <alias value="Formulier voor vastleggen proactieve zorgplannin" />
    </element>
    <element id="QuestionnaireResponse.subject">
      <path value="QuestionnaireResponse.subject" />
      <definition value="The person to whom the information relates. Often, this will be the patient, but especially in the case of young children, it may concern information about the parent or caregiver. Particularly in nursing handovers, for example, the competence and involvement of informal caregivers can play a role." />
      <alias value="Onderwerp" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://fhir.nl/fhir/StructureDefinition/nl-core-organization" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/zib-MedicalDevice" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://nictiz.nl/fhir/StructureDefinition/zib-Payer" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-Patient" />
      </type>
      <mapping>
        <identity value="pzp-dataset-100-beta1-2025-TO-DO" />
        <map value="pzp-dataelement-299" />
        <comment value="Onderwerp" />
      </mapping>
      <mapping>
        <identity value="pzp-dataset-100-beta1-2025-TO-DO" />
        <map value="pzp-dataelement-301" />
        <comment value="Patient" />
      </mapping>
      <mapping>
        <identity value="pzp-dataset-100-beta1-2025-TO-DO" />
        <map value="pzp-dataelement-303" />
        <comment value="Contactpersoon" />
      </mapping>
    </element>
    <element id="QuestionnaireResponse.authored">
      <path value="QuestionnaireResponse.authored" />
      <definition value="The date and time the ACP form was completed (or when the last item was recorded for incomplete records)" />
      <alias value="Datum van invullen" />
      <mapping>
        <identity value="pzp-dataset-100-beta1-2025-TO-DO" />
        <map value="pzp-dataelement-304" />
        <comment value="Datum van invullen (DatumTijd)" />
      </mapping>
    </element>
    <element id="QuestionnaireResponse.author">
      <path value="QuestionnaireResponse.author" />
      <definition value="The person who recorded the information. Depending on the information system in which the data is recorded, this could be the Patient, the Practitioner, or RelatedPerson." />
      <alias value="Laboratory" />
      <alias value="Service" />
      <alias value="Practitioner" />
      <alias value="Department" />
      <alias value="Company" />
      <alias value="Performer" />
      <alias value="Auteur" />
      <type>
        <code value="Reference" />
        <profile value="ACP Practitioner" />
        <targetProfile value="https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-Practitioner" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".participation[typeCode=AUT].role" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="who.author" />
      </mapping>
      <mapping>
        <identity value="pzp-dataset-100-beta1-2025-TO-DO" />
        <map value="pzp-dataelement-292" />
        <comment value="Auteur" />
      </mapping>
      <mapping>
        <identity value="pzp-dataset-100-beta1-2025-TO-DO" />
        <map value="pzp-dataelement-294" />
        <comment value="Patient" />
      </mapping>
      <mapping>
        <identity value="pzp-dataset-100-beta1-2025-TO-DO" />
        <map value="pzp-dataelement-296" />
        <comment value="Zorgverlener" />
      </mapping>
      <mapping>
        <identity value="pzp-dataset-100-beta1-2025-TO-DO" />
        <map value="pzp-dataelement-298" />
        <comment value="Contactpersoon" />
      </mapping>
    </element>
    <element id="QuestionnaireResponse.source">
      <path value="QuestionnaireResponse.source" />
      <definition value="The person who provided the information and is responsible for its accuracy. This is not always the healthcare provider; it can also be the patient or another party involved, such as a parent, informal caregiver, or guardian. The source of the information does not have to be the author of the information, who in this context is merely instrumental in recording it." />
      <alias value="Informatiebron" />
      <type>
        <code value="Reference" />
        <profile value="ACP Patient" />
        <targetProfile value="https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-Patient" />
      </type>
      <type>
        <code value="Reference" />
        <profile value="ACP RelatedPerson" />
        <targetProfile value="https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-RelatedPerson" />
      </type>
      <mapping>
        <identity value="pzp-dataset-100-beta1-2025-TO-DO" />
        <map value="pzp-dataelement-285" />
        <comment value="Informatiebron" />
      </mapping>
      <mapping>
        <identity value="pzp-dataset-100-beta1-2025-TO-DO" />
        <map value="pzp-dataelement-287" />
        <comment value="Patient" />
      </mapping>
      <mapping>
        <identity value="pzp-dataset-100-beta1-2025-TO-DO" />
        <map value="pzp-dataelement-289" />
        <comment value="Zorgverlener" />
      </mapping>
      <mapping>
        <identity value="pzp-dataset-100-beta1-2025-TO-DO" />
        <map value="pzp-dataelement-291" />
        <comment value="Contactpersoon" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>