{
  "resourceType": "StructureDefinition",
  "url": "https://example.org/fhir/StructureDefinition/ICUEncounter",
  "name": "ICUEncounter",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Encounter",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Encounter",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Encounter.identifier",
        "path": "Encounter.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "住院號",
        "min": 1
      },
      {
        "id": "Encounter.identifier.system",
        "path": "Encounter.identifier.system",
        "short": "https://www.vghtpe.gov.tw/iccadb/encounterNumber"
      },
      {
        "id": "Encounter.identifier:encounterNumber",
        "path": "Encounter.identifier",
        "sliceName": "encounterNumber",
        "short": "住院號"
      },
      {
        "id": "Encounter.identifier:encounterNumber.system",
        "path": "Encounter.identifier.system",
        "short": "https://www.vghtpe.gov.tw/iccadb/encounterNumber",
        "min": 1
      },
      {
        "id": "Encounter.identifier:encounterId",
        "path": "Encounter.identifier",
        "sliceName": "encounterId",
        "short": "病人住院資料庫ID"
      },
      {
        "id": "Encounter.identifier:encounterId.system",
        "path": "Encounter.identifier.system",
        "short": "https://www.vghtpe.gov.tw/iccadb/encounterId",
        "min": 1
      },
      {
        "id": "Encounter.subject",
        "path": "Encounter.subject",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://example.org/fhir/StructureDefinition/ICUPatient"
            ]
          }
        ]
      }
    ]
  }
}