{
  "resourceType": "StructureDefinition",
  "id": "vkp-digital-Encounter-v090",
  "url": "http://ehelse.no/fhir/StructureDefinition/vkp-digital-Encounter-v090",
  "version": "0.9.0",
  "name": "VkpDigitalEncounter",
  "status": "draft",
  "date": "2020-01-20",
  "description": "The digital (virtual) Encounter is caracterized as an encounter that uses some technological mean to perform the encounter instead of a face-to-face meeting.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Encounter",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Encounter",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Encounter",
        "path": "Encounter",
        "short": "An digital/virtual interaction during which services are provided to the patient",
        "definition": "The digital (virtual) Encounter is caracterized as an encounter that uses some technological mean to perform the encounter instead of a face-to-face meeting.\r\n\r\nAn interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient.",
        "comment": "The use-case in question is performing a virtual encounter using a camera device to perform the encounter.",
        "alias": [
          "digitalt tilsyn"
        ]
      },
      {
        "id": "Encounter.identifier",
        "path": "Encounter.identifier",
        "definition": "Unique code or number identifying the Encounter\r\n\r\nVKP project uses UUID. \r\n\r\nExample:\r\n~~~\r\n\"identifier\": [\r\n     {\r\n         \"system\":\"urn:ietf:rfc:3986\",\r\n         \"value\":\"urn:uuid:a76d9bbf-f293-4fb7-ad4c-2851cac77162\"\r\n     }\r\n]\r\n~~~",
        "mustSupport": true
      },
      {
        "id": "Encounter.identifier.system",
        "path": "Encounter.identifier.system",
        "fixedUri": "urn:ietf:rfc:3986"
      },
      {
        "id": "Encounter.identifier.value",
        "path": "Encounter.identifier.value",
        "definition": "The actual uniqe identifier (UUID)\r\n\r\nThe portion of the identifier typically relevant to the user and which is unique within the context of the system."
      },
      {
        "id": "Encounter.class",
        "path": "Encounter.class",
        "short": "Encounter class for digital Encounter",
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/CodeSystem/v3-ActCode"
        }
      },
      {
        "id": "Encounter.class.system",
        "path": "Encounter.class.system",
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ActCode"
      },
      {
        "id": "Encounter.class.code",
        "path": "Encounter.class.code",
        "fixedCode": "VR"
      },
      {
        "id": "Encounter.class.display",
        "path": "Encounter.class.display",
        "fixedString": "virtual"
      },
      {
        "id": "Encounter.classHistory",
        "path": "Encounter.classHistory",
        "mustSupport": true
      },
      {
        "id": "Encounter.classHistory.class",
        "path": "Encounter.classHistory.class",
        "short": "Encounter class for digital Encounter",
        "mustSupport": true,
        "binding": {
          "strength": "required"
        }
      },
      {
        "id": "Encounter.classHistory.class.system",
        "path": "Encounter.classHistory.class.system",
        "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "mustSupport": true
      },
      {
        "id": "Encounter.classHistory.class.code",
        "path": "Encounter.classHistory.class.code",
        "fixedCode": "VR",
        "mustSupport": true
      },
      {
        "id": "Encounter.classHistory.class.display",
        "path": "Encounter.classHistory.class.display",
        "fixedString": "virtual"
      },
      {
        "id": "Encounter.classHistory.period",
        "path": "Encounter.classHistory.period",
        "definition": "Time period for the digital encounter, the system should provide both start and end times.\r\nIf the start-time is not known a single end time can be provided as a timestamp for the Encounter.\r\n\r\nExample code: \r\n~~~\r\n\"period\":{\r\n   \"start\":\"2018-06-25T09:56:23.945+02:00\",\r\n   \"end\":\"2018-06-25T10:01:03.936+02:00\"\r\n}\r\n~~~",
        "mustSupport": true
      },
      {
        "id": "Encounter.classHistory.period.start",
        "path": "Encounter.classHistory.period.start",
        "mustSupport": true
      },
      {
        "id": "Encounter.classHistory.period.end",
        "path": "Encounter.classHistory.period.end",
        "mustSupport": true
      },
      {
        "id": "Encounter.type",
        "path": "Encounter.type",
        "short": "Event type",
        "mustSupport": true
      },
      {
        "id": "Encounter.subject",
        "path": "Encounter.subject",
        "definition": "Reference to the patient that is subject to the encounter, identified by Norwegian national id number (Fødselsnummer or DNR).\r\n\r\nA link to a resource representing the person or the group to whom the medication will be given.\r\n\r\nVKP always references a Patient Resource using a norwegian national id number (Fødselsnummer or DNR) in a logical identifier in the subject.identifier element.\r\nThe Name of the patient should be given in the subject.display element.\r\n\r\nExample:\r\n~~~~\r\n\"subject\":{\r\n   \"identifier\":{\r\n      \"system\":\"urn:oid:2.16.578.1.12.4.1.4.1\",\r\n      \"value\":\"05073500186\"\r\n     },\r\n     \"display\":\"Ærlend Sørgård\"\r\n}\r\n~~~~",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://hl7.org/fhir/StructureDefinition/Group",
              "http://hl7.no/fhir/StructureDefinition/no-basis-Patient",
              "http://ehelse.no/fhir/StructureDefinition/vkp-Patient-v090"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Encounter.subject.identifier",
        "path": "Encounter.subject.identifier",
        "mustSupport": true
      },
      {
        "id": "Encounter.subject.identifier.system",
        "path": "Encounter.subject.identifier.system",
        "mustSupport": true
      },
      {
        "id": "Encounter.subject.identifier.value",
        "path": "Encounter.subject.identifier.value",
        "mustSupport": true
      },
      {
        "id": "Encounter.subject.display",
        "path": "Encounter.subject.display",
        "mustSupport": true
      },
      {
        "id": "Encounter.participant",
        "path": "Encounter.participant",
        "definition": "Refernce to the individual that participated in the encounter, usually health care provider. Identified using Norwegian national id number (fødselsnummer).\r\nThe Name of the participant should be given in the subject.display element.\r\n\r\nExample: \r\n~~~~\r\n\"participant\": [\r\n   {\r\n      \"individual\":{\r\n         \"identifier\":{\r\n            \"system\":\"urn:oid:2.16.578.1.12.4.1.4.1\",\r\n            \"value\":\"04056600324\"\r\n         },\r\n         \"display\":\"Magnar Koman\"\r\n      }\r\n   }\r\n]\r\n~~~~",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.participant.type",
        "path": "Encounter.participant.type",
        "code": [
          {
            "system": "http://ehelse.no/fhir/ValueSet/vkp-encounter-type-v090"
          }
        ],
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSet": "http://ehelse.no/fhir/ValueSet/vkp-encounter-type-v090"
        }
      },
      {
        "id": "Encounter.participant.individual",
        "path": "Encounter.participant.individual",
        "short": "Refernce to the individual that participated in the encounter",
        "definition": "Refernce to the individual that participated in the encounter, usually health care provider. Identified using Norwegian national id number (fødselsnummer).\r\nThe Name of the participant should be given in the subject.display element.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
              "http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner",
              "http://hl7.org/fhir/StructureDefinition/Device"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Encounter.period",
        "path": "Encounter.period",
        "short": "The start and end time of the digital encounter",
        "definition": "Time period for the digital encounter, the system should provide both start and end times.\r\nIf the start-time is not known a single end time can be provided as a timestamp for the Encounter.\r\n\r\nExample code: \r\n~~~\r\n\"period\":{\r\n   \"start\":\"2018-06-25T09:56:23.945+02:00\",\r\n   \"end\":\"2018-06-25T10:01:03.936+02:00\"\r\n}\r\n~~~",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.period.start",
        "path": "Encounter.period.start",
        "mustSupport": true
      },
      {
        "id": "Encounter.period.end",
        "path": "Encounter.period.end",
        "mustSupport": true
      },
      {
        "id": "Encounter.reasonCode",
        "path": "Encounter.reasonCode",
        "definition": "Reason the encounter takes place, coded according to http://ehelse.no/fhir/ValueSet/vkp-encounter-reason-v090",
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "description": "vkp-encounter-reason-v090",
          "valueSet": "http://ehelse.no/fhir/ValueSet/vkp-encounter-reason-v090"
        }
      },
      {
        "id": "Encounter.location",
        "path": "Encounter.location",
        "definition": "VKP uses this refererence to name location where the digital-Encounter takes place. Typically includes only location.location.display element with a textual description of the location.\r\n\r\nList of locations where  the patient has been during this encounter.",
        "comment": "Virtual encounters can be recorded in the Encounter by specifying a location reference to a location of type \"kind\" such as \"client's home\" and an encounter.class = \"virtual\".\r\n\r\nVKP Example:\r\n~~~\r\n \"location\": [\r\n        {\r\n            \"location\":{\r\n                \"display\":\"rom24 @ sykehjem\"\r\n            }\r\n        }\r\n    ]\r\n~~~",
        "mustSupport": true
      },
      {
        "id": "Encounter.location.location",
        "path": "Encounter.location.location",
        "definition": "A location reference. Only display value is supported by the VKP.\r\n\r\nThe location where the encounter takes place.",
        "mustSupport": true
      },
      {
        "id": "Encounter.location.location.display",
        "path": "Encounter.location.location.display",
        "definition": "The Display value for the location. In vkp the format is usually \"[room or room-number] @ [location name]\".\r\n\r\nPlain text narrative that identifies the resource in addition to the resource reference.",
        "example": [
          {
            "label": "display",
            "valueString": "\"rom24 @ sykehjem\""
          }
        ],
        "mustSupport": true
      }
    ]
  }
}