{
  "resourceType": "StructureDefinition",
  "id": "StructureDefinition-ACP-QuestionnaireResponse",
  "url": "https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-QuestionnaireResponse",
  "name": "ACPQuestionnaireResponse",
  "title": "ACP QuestionnaireResponse",
  "status": "draft",
  "publisher": "IKNL",
  "contact": [
    {
      "name": "IKNL",
      "telecom": [
        {
          "system": "email",
          "value": "info@iknl.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "[TO-DO]",
  "copyright": "[TO-DO]",
  "fhirVersion": "3.0.2",
  "mapping": [
    {
      "identity": "pzp-dataset-100-beta1-2025-TO-DO",
      "uri": "[TO-DO]",
      "name": "ART-DECOR Dataset Proactieve Zorgplanning 1.0.0-beta.1 [TO-DO]"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "QuestionnaireResponse",
  "baseDefinition": "http://nictiz.nl/fhir/StructureDefinition/vl-QuestionnaireResponse",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "QuestionnaireResponse.extension:encounter",
        "path": "QuestionnaireResponse.extension",
        "sliceName": "encounter",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.iknl.nl/fhir/PZP/StructureDefinition/Extension-ACP-LinkToEncounter"
          }
        ],
        "isModifier": false
      },
      {
        "id": "QuestionnaireResponse.questionnaire",
        "path": "QuestionnaireResponse.questionnaire",
        "short": "ACP Form",
        "comment": "The reference to the Questionnaire SHALL be an absolute URL including a `.version` of the ACP form to specify the correct version.",
        "alias": [
          "Formulier voor vastleggen proactieve zorgplannin"
        ]
      },
      {
        "id": "QuestionnaireResponse.subject",
        "path": "QuestionnaireResponse.subject",
        "definition": "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": [
          "Onderwerp"
        ],
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-MedicalDevice"
          },
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-Payer"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-Patient"
          }
        ],
        "mapping": [
          {
            "identity": "pzp-dataset-100-beta1-2025-TO-DO",
            "map": "pzp-dataelement-299",
            "comment": "Onderwerp"
          },
          {
            "identity": "pzp-dataset-100-beta1-2025-TO-DO",
            "map": "pzp-dataelement-301",
            "comment": "Patient"
          },
          {
            "identity": "pzp-dataset-100-beta1-2025-TO-DO",
            "map": "pzp-dataelement-303",
            "comment": "Contactpersoon"
          }
        ]
      },
      {
        "id": "QuestionnaireResponse.authored",
        "path": "QuestionnaireResponse.authored",
        "definition": "The date and time the ACP form was completed (or when the last item was recorded for incomplete records)",
        "alias": [
          "Datum van invullen"
        ],
        "mapping": [
          {
            "identity": "pzp-dataset-100-beta1-2025-TO-DO",
            "map": "pzp-dataelement-304",
            "comment": "Datum van invullen (DatumTijd)"
          }
        ]
      },
      {
        "id": "QuestionnaireResponse.author",
        "path": "QuestionnaireResponse.author",
        "definition": "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": [
          "Laboratory",
          "Service",
          "Practitioner",
          "Department",
          "Company",
          "Performer",
          "Auteur"
        ],
        "type": [
          {
            "code": "Reference",
            "profile": "ACP Practitioner",
            "targetProfile": "https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-Practitioner"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=AUT].role"
          },
          {
            "identity": "w5",
            "map": "who.author"
          },
          {
            "identity": "pzp-dataset-100-beta1-2025-TO-DO",
            "map": "pzp-dataelement-292",
            "comment": "Auteur"
          },
          {
            "identity": "pzp-dataset-100-beta1-2025-TO-DO",
            "map": "pzp-dataelement-294",
            "comment": "Patient"
          },
          {
            "identity": "pzp-dataset-100-beta1-2025-TO-DO",
            "map": "pzp-dataelement-296",
            "comment": "Zorgverlener"
          },
          {
            "identity": "pzp-dataset-100-beta1-2025-TO-DO",
            "map": "pzp-dataelement-298",
            "comment": "Contactpersoon"
          }
        ]
      },
      {
        "id": "QuestionnaireResponse.source",
        "path": "QuestionnaireResponse.source",
        "definition": "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": [
          "Informatiebron"
        ],
        "type": [
          {
            "code": "Reference",
            "profile": "ACP Patient",
            "targetProfile": "https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-Patient"
          },
          {
            "code": "Reference",
            "profile": "ACP RelatedPerson",
            "targetProfile": "https://fhir.iknl.nl/fhir/PZP/StructureDefinition/StructureDefinition-ACP-RelatedPerson"
          }
        ],
        "mapping": [
          {
            "identity": "pzp-dataset-100-beta1-2025-TO-DO",
            "map": "pzp-dataelement-285",
            "comment": "Informatiebron"
          },
          {
            "identity": "pzp-dataset-100-beta1-2025-TO-DO",
            "map": "pzp-dataelement-287",
            "comment": "Patient"
          },
          {
            "identity": "pzp-dataset-100-beta1-2025-TO-DO",
            "map": "pzp-dataelement-289",
            "comment": "Zorgverlener"
          },
          {
            "identity": "pzp-dataset-100-beta1-2025-TO-DO",
            "map": "pzp-dataelement-291",
            "comment": "Contactpersoon"
          }
        ]
      }
    ]
  }
}