{
  "resourceType": "StructureDefinition",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2020-03-06T11:20:29.53+00:00"
  },
  "url": "http://d4solutions.dedalus.eu/fhir/StructureDefinition/Encounter-COVID19",
  "name": "Encounter-COVID19",
  "status": "active",
  "experimental": false,
  "date": "2020-03-25",
  "fhirVersion": "3.0.2",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Encounter",
  "baseDefinition": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Encounter-Virtual",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Encounter.meta",
        "path": "Encounter.meta",
        "min": 1
      },
      {
        "id": "Encounter.identifier:officialIdentifier",
        "path": "Encounter.identifier",
        "sliceName": "officialIdentifier",
        "min": 1
      },
      {
        "id": "Encounter.identifier:officialIdentifier.system",
        "path": "Encounter.identifier.system",
        "constraint": [
          {
            "key": "identifier-system-starts-with",
            "severity": "warning",
            "human": "Identifier.system shall start with",
            "expression": "value.startsWith('http://dromedian.com/identifiers/encounters/')"
          }
        ]
      },
      {
        "id": "Encounter.status",
        "path": "Encounter.status",
        "fixedCode": "triaged"
      },
      {
        "id": "Encounter.type",
        "path": "Encounter.type",
        "min": 1
      },
      {
        "id": "Encounter.type.coding",
        "path": "Encounter.type.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Encounter.type.coding:self-assessment",
        "path": "Encounter.type.coding",
        "sliceName": "self-assessment",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Encounter.type.coding:self-assessment.system",
        "path": "Encounter.type.coding.system",
        "min": 1,
        "fixedUri": "http://apiframework.dedalus.eu/fhir/CodeSystem/EncounterType"
      },
      {
        "id": "Encounter.type.coding:self-assessment.code",
        "path": "Encounter.type.coding.code",
        "min": 1,
        "fixedCode": "SELF-ASSESSMENT"
      },
      {
        "id": "Encounter.subject",
        "path": "Encounter.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://d4solutions.dedalus.eu/fhir/StructureDefinition/Patient-COVID19"
          }
        ]
      },
      {
        "id": "Encounter.period",
        "path": "Encounter.period",
        "min": 1
      },
      {
        "id": "Encounter.period.start",
        "path": "Encounter.period.start",
        "min": 1
      }
    ]
  }
}