{
  "resourceType": "StructureDefinition",
  "id": "SHCQuestionnaireResponse",
  "url": "https://electronichealth.se/fhir/shc/StructureDefinition/SHCQuestionnaireResponse",
  "version": "0.1",
  "name": "SHCQuestionnaireResponse",
  "status": "draft",
  "description": "This profile structures information of a issued health certificate.",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "SHCQuestionnaireResponseToSHCIntygLogical",
      "uri": "SHCIntygLogical"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "QuestionnaireResponse",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "QuestionnaireResponse.extension",
        "path": "QuestionnaireResponse.extension",
        "slicing": {
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "QuestionnaireResponse.identifier",
        "path": "QuestionnaireResponse.identifier",
        "short": "An identifier assigned to the certificate by the issuer or other systems. Remains constant when the resource is updated and distributed.",
        "min": 1,
        "max": "1",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "SHCQuestionnaireResponseToSHCIntygLogical",
            "map": "id"
          }
        ]
      },
      {
        "id": "QuestionnaireResponse.questionnaire",
        "path": "QuestionnaireResponse.questionnaire",
        "mustSupport": true
      },
      {
        "id": "QuestionnaireResponse.status",
        "path": "QuestionnaireResponse.status",
        "short": "The status of the certificate (e.g., started, completed, stopped)",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "SHCQuestionnaireResponseToSHCIntygLogical",
            "map": "status"
          }
        ]
      },
      {
        "id": "QuestionnaireResponse.subject",
        "path": "QuestionnaireResponse.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://electronichealth.se/fhir/shc/StructureDefinition/SHCHealthCertificateSubject"
            ]
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "SHCQuestionnaireResponseToSHCIntygLogical",
            "map": "harRollenIntygsperson(PersonLogical)"
          }
        ]
      },
      {
        "id": "QuestionnaireResponse.authored",
        "path": "QuestionnaireResponse.authored",
        "short": "The time when the certificate is issued",
        "min": 1,
        "mustSupport": true,
        "mapping": [
          {
            "identity": "SHCQuestionnaireResponseToSHCIntygLogical",
            "map": "utfardandetidpunkt"
          }
        ]
      },
      {
        "id": "QuestionnaireResponse.author",
        "path": "QuestionnaireResponse.author",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://electronichealth.se/fhir/shc/StructureDefinition/SHCPractitioner",
              "https://electronichealth.se/fhir/shc/StructureDefinition/SHCPractitionerRole"
            ]
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "SHCQuestionnaireResponseToSHCIntygLogical",
            "map": "harIntygsutfardare(HalsoOchSjukvardspersonalLogical)"
          }
        ]
      },
      {
        "id": "QuestionnaireResponse.item",
        "path": "QuestionnaireResponse.item",
        "mustSupport": true
      },
      {
        "id": "QuestionnaireResponse.item.linkId",
        "path": "QuestionnaireResponse.item.linkId",
        "mustSupport": true
      },
      {
        "id": "QuestionnaireResponse.item.text",
        "path": "QuestionnaireResponse.item.text",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "QuestionnaireResponse.item.answer",
        "path": "QuestionnaireResponse.item.answer",
        "mustSupport": true
      },
      {
        "id": "QuestionnaireResponse.item.answer.value[x]",
        "path": "QuestionnaireResponse.item.answer.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "QuestionnaireResponse.item.answer.value[x]:valueBoolean",
        "path": "QuestionnaireResponse.item.answer.value[x]",
        "sliceName": "valueBoolean",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "QuestionnaireResponse.item.answer.value[x]:valueDecimal",
        "path": "QuestionnaireResponse.item.answer.value[x]",
        "sliceName": "valueDecimal",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "QuestionnaireResponse.item.answer.value[x]:valueInteger",
        "path": "QuestionnaireResponse.item.answer.value[x]",
        "sliceName": "valueInteger",
        "type": [
          {
            "code": "integer"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "QuestionnaireResponse.item.answer.value[x]:valueQuantity",
        "path": "QuestionnaireResponse.item.answer.value[x]",
        "sliceName": "valueQuantity",
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "QuestionnaireResponse.item.answer.value[x]:valueDate",
        "path": "QuestionnaireResponse.item.answer.value[x]",
        "sliceName": "valueDate",
        "type": [
          {
            "code": "date"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "QuestionnaireResponse.item.answer.value[x]:valueDateTime",
        "path": "QuestionnaireResponse.item.answer.value[x]",
        "sliceName": "valueDateTime",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "QuestionnaireResponse.item.answer.value[x]:valueTime",
        "path": "QuestionnaireResponse.item.answer.value[x]",
        "sliceName": "valueTime",
        "type": [
          {
            "code": "time"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "QuestionnaireResponse.item.answer.value[x]:valueString",
        "path": "QuestionnaireResponse.item.answer.value[x]",
        "sliceName": "valueString",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "QuestionnaireResponse.item.answer.value[x]:valueUri",
        "path": "QuestionnaireResponse.item.answer.value[x]",
        "sliceName": "valueUri",
        "type": [
          {
            "code": "uri"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "QuestionnaireResponse.item.answer.value[x]:valueCoding",
        "path": "QuestionnaireResponse.item.answer.value[x]",
        "sliceName": "valueCoding",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "QuestionnaireResponse.item.answer.item",
        "path": "QuestionnaireResponse.item.answer.item",
        "mustSupport": true
      }
    ]
  }
}