{
  "resourceType": "StructureDefinition",
  "id": "pghd-cdm-encounter",
  "url": "https://simplifier.net/pghd-cdmtofhir/pghdcdmencounterprofile",
  "version": "0.1",
  "name": "PGHDCDMEncounterProfile",
  "title": "PGHD CDM Encounter Profile",
  "status": "active",
  "experimental": false,
  "date": "2022-03-29",
  "publisher": "SNUBH-HIRC",
  "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"
      },
      {
        "id": "Encounter.id",
        "path": "Encounter.id",
        "short": "수진 ID",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Encounter.extension:visit-type",
        "path": "Encounter.extension",
        "sliceName": "visit-type",
        "short": "일반 수진 | 임상시험",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://simplifier.net/pghd-cdmtofhir/pghdcdmvisittypeextension"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Encounter.status",
        "path": "Encounter.status",
        "short": "수진 상태 : in-progress | finished +",
        "mustSupport": true
      },
      {
        "id": "Encounter.class",
        "path": "Encounter.class",
        "short": "수진 분류",
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "description": "IMP(inpatient encounter) | AMB(ambulatory) | EMER(emergency)",
          "valueSet": "https://simplifier.net/pghd-cdmtofhir/pghd-cdm-actencountercode"
        }
      },
      {
        "id": "Encounter.subject",
        "path": "Encounter.subject",
        "short": "환자",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/pghd-cdmtofhir/pghdcdmpatientprofile"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Encounter.period",
        "path": "Encounter.period",
        "short": "수진 기간",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.hospitalization",
        "path": "Encounter.hospitalization",
        "short": "수진에 대한 세부 정보",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Encounter.hospitalization.admitSource",
        "path": "Encounter.hospitalization.admitSource",
        "short": "입원 경로",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "https://simplifier.net/pghd-cdmtofhir/pghd-cdm-admitsource"
        }
      },
      {
        "id": "Encounter.hospitalization.dischargeDisposition",
        "path": "Encounter.hospitalization.dischargeDisposition",
        "short": "퇴원 경로",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "https://simplifier.net/pghd-cdmtofhir/pghd-cdm-dischargedisposition"
        }
      },
      {
        "id": "Encounter.serviceProvider",
        "path": "Encounter.serviceProvider",
        "short": "수진 기관",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/pghd-cdmtofhir/pghdcdmorganizationprofile"
            ]
          }
        ],
        "mustSupport": false
      }
    ]
  }
}