{
  "resourceType": "StructureDefinition",
  "id": "QuestionnaireResponse",
  "url": "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/QuestionnaireResponse/v1",
  "version": "1.0",
  "name": "QuestionnaireResponse",
  "status": "active",
  "date": "2024-01-10T14:02:01.1873929+00:00",
  "description": "This resource is used to gather information about the choices made related to the individual ESS Codes that can be completed in relation to triage such as the overall ESS Code on vital parameters as well as ESS Codes.\r\nThe profile is based on the QuestionaireResponse Resource.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "QuestionnaireResponse",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "QuestionnaireResponse.id",
        "path": "QuestionnaireResponse.id",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.meta",
        "path": "QuestionnaireResponse.meta"
      },
      {
        "id": "QuestionnaireResponse.meta.id",
        "path": "QuestionnaireResponse.meta.id",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.meta.versionId",
        "path": "QuestionnaireResponse.meta.versionId",
        "min": 1
      },
      {
        "id": "QuestionnaireResponse.meta.lastUpdated",
        "path": "QuestionnaireResponse.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "QuestionnaireResponse.meta.source",
        "path": "QuestionnaireResponse.meta.source",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.meta.profile",
        "path": "QuestionnaireResponse.meta.profile",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.meta.security",
        "path": "QuestionnaireResponse.meta.security",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.meta.tag",
        "path": "QuestionnaireResponse.meta.tag",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.implicitRules",
        "path": "QuestionnaireResponse.implicitRules",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.language",
        "path": "QuestionnaireResponse.language",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.text",
        "path": "QuestionnaireResponse.text",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.contained",
        "path": "QuestionnaireResponse.contained",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.identifier",
        "path": "QuestionnaireResponse.identifier",
        "definition": "An identifier for this questionnaire response.",
        "min": 1
      },
      {
        "id": "QuestionnaireResponse.identifier.use",
        "path": "QuestionnaireResponse.identifier.use",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.identifier.type",
        "path": "QuestionnaireResponse.identifier.type",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.identifier.system",
        "path": "QuestionnaireResponse.identifier.system",
        "definition": "Namespace for the identifier value.",
        "min": 1,
        "fixedUri": "http://amphisystems.com/amphi/journaldatasystemid"
      },
      {
        "id": "QuestionnaireResponse.identifier.value",
        "path": "QuestionnaireResponse.identifier.value",
        "definition": "Unique value – questionnaire response id.",
        "min": 1
      },
      {
        "id": "QuestionnaireResponse.identifier.period",
        "path": "QuestionnaireResponse.identifier.period",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.identifier.assigner",
        "path": "QuestionnaireResponse.identifier.assigner",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.basedOn",
        "path": "QuestionnaireResponse.basedOn",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.partOf",
        "path": "QuestionnaireResponse.partOf",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.questionnaire",
        "path": "QuestionnaireResponse.questionnaire",
        "definition": "Form being answered. Reference to specific Questionnaire. The canonical reference must include the version of the Questionnaire referenced:  Questionnaire.url}|{version}.",
        "min": 1,
        "type": [
          {
            "code": "canonical",
            "targetProfile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Questionnaire/v1"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "QuestionnaireResponse.status",
        "path": "QuestionnaireResponse.status",
        "definition": "The status of this questionnaire response.\r\n\r\nWhen the QuestionnaireResponse is registered, the status is ‘completed’. If the QuestionnaireResponse is deleted, the status is ‘entered-in-error’."
      },
      {
        "id": "QuestionnaireResponse.subject",
        "path": "QuestionnaireResponse.subject",
        "definition": "The patient of the questions.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Patient/v1"
            ]
          }
        ]
      },
      {
        "id": "QuestionnaireResponse.subject.reference",
        "path": "QuestionnaireResponse.subject.reference",
        "definition": "Literal reference to the Patient resource. Relative URL is being used.",
        "min": 1
      },
      {
        "id": "QuestionnaireResponse.subject.type",
        "path": "QuestionnaireResponse.subject.type",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.subject.identifier",
        "path": "QuestionnaireResponse.subject.identifier",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.subject.display",
        "path": "QuestionnaireResponse.subject.display",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.encounter",
        "path": "QuestionnaireResponse.encounter",
        "definition": "Encounter during which questionnaire was completed. The patient record this questionnaire response belongs to.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Encounter/v1"
            ]
          }
        ]
      },
      {
        "id": "QuestionnaireResponse.encounter.reference",
        "path": "QuestionnaireResponse.encounter.reference",
        "definition": "Literal reference to the Encounter resource. Relative URL is being used.",
        "min": 1
      },
      {
        "id": "QuestionnaireResponse.encounter.type",
        "path": "QuestionnaireResponse.encounter.type",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.encounter.identifier",
        "path": "QuestionnaireResponse.encounter.identifier",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.encounter.display",
        "path": "QuestionnaireResponse.encounter.display",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.authored",
        "path": "QuestionnaireResponse.authored",
        "definition": "Date the answers were gathered.",
        "min": 1
      },
      {
        "id": "QuestionnaireResponse.author",
        "path": "QuestionnaireResponse.author",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.source",
        "path": "QuestionnaireResponse.source",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.item",
        "path": "QuestionnaireResponse.item",
        "definition": "Question item from the original questionnaire for which answers are provided."
      },
      {
        "id": "QuestionnaireResponse.item.linkId",
        "path": "QuestionnaireResponse.item.linkId",
        "definition": "Pointer to specific item from Questionnaire."
      },
      {
        "id": "QuestionnaireResponse.item.definition",
        "path": "QuestionnaireResponse.item.definition",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.item.text",
        "path": "QuestionnaireResponse.item.text",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.item.answer",
        "path": "QuestionnaireResponse.item.answer",
        "definition": "The response to the question.\r\n\r\nThe answer will hold either valueCoding or valueInteger.",
        "min": 1
      },
      {
        "id": "QuestionnaireResponse.item.answer.value[x]",
        "path": "QuestionnaireResponse.item.answer.value[x]",
        "type": [
          {
            "code": "integer"
          },
          {
            "code": "Coding",
            "profile": [
              "http://amphi.eu/fhir/prehospitalsolution/StructureDefinition/Coding/v1"
            ]
          }
        ]
      },
      {
        "id": "QuestionnaireResponse.item.answer.item",
        "path": "QuestionnaireResponse.item.answer.item",
        "max": "0"
      },
      {
        "id": "QuestionnaireResponse.item.item",
        "path": "QuestionnaireResponse.item.item",
        "max": "0"
      }
    ]
  }
}