{
  "resourceType" : "Bundle",
  "id" : "DaType2HospBundleExample",
  "meta" : {
    "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-message-bundle"]
  },
  "identifier" : {
    "system" : "urn:janusync:medical-record",
    "value" : "message-id"
  },
  "type" : "message",
  "entry" : [{
    "resource" : {
      "resourceType" : "MessageHeader",
      "id" : "JanuSyncMessageHeaderExample",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-message-header"]
      },
      "extension" : [{
        "url" : "http://connectdtx.kr/fhir/StructureDefinition/janusync-hospital-service-identifier",
        "valueIdentifier" : {
          "system" : "urn:oid:1.2.840.10004.1.1.1.0.0.1.0.0.1.2345",
          "value" : "DTX-SERVICE-001"
        }
      }],
      "eventCoding" : {
        "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-message-event",
        "code" : "message"
      },
      "sender" : {
        "reference" : "Organization/janusync-organization-example"
      },
      "source" : {
        "name" : "A병원 HIS",
        "software" : "MediSys",
        "version" : "3.1.2",
        "endpoint" : "urn:janusync:message-source"
      }
    }
  },
  {
    "resource" : {
      "resourceType" : "Patient",
      "id" : "janusync-deidentified-patient-example",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-deidentified-patient"]
      },
      "identifier" : [{
        "type" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-identifier-type",
            "code" : "patient"
          }]
        },
        "system" : "urn:janusync:patient-id",
        "value" : "janusync-member-00001"
      },
      {
        "type" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-identifier-type",
            "code" : "healthcare-patient"
          }]
        },
        "system" : "urn:oid:1.2.410.100110.10.11100123",
        "value" : "P123"
      }],
      "name" : [{
        "text" : "unknown"
      }],
      "gender" : "unknown",
      "birthDate" : "1970-01-01"
    }
  },
  {
    "resource" : {
      "resourceType" : "PractitionerRole",
      "id" : "janusync-medicaldoctor-practitionerrole-example",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-medicaldoctor-practitionerrole"]
      },
      "identifier" : [{
        "system" : "urn:oid:1.2.410.100110.10.11100123",
        "value" : "ba10699d84a3164ac40ce0b83e566be50aa437e28df5110993ec81f87ee3c969"
      }],
      "organization" : {
        "reference" : "Organization/janusync-organization-example"
      },
      "code" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/practitioner-role",
          "code" : "doctor",
          "display" : "DOCTOR"
        }]
      }],
      "specialty" : [{
        "coding" : [{
          "system" : "http://www.hl7korea.or.kr/CodeSystem/hira-medical-department",
          "code" : "03",
          "display" : "정신건강의학과"
        }],
        "text" : "수면건강센터"
      }]
    }
  },
  {
    "resource" : {
      "resourceType" : "Observation",
      "id" : "DaType2HospVitalSignsExample",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-vitalsigns-observation"]
      },
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "vital-signs",
          "display" : "Vital Signs"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "85353-1",
          "display" : "Vital signs, weight, height, head circumference, oxygen saturation and BMI panel"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "effectiveDateTime" : "2026-04-20T11:00:00+09:00",
      "component" : [{
        "code" : {
          "coding" : [{
            "system" : "http://loinc.org",
            "code" : "8302-2",
            "display" : "Body height"
          }]
        },
        "valueQuantity" : {
          "value" : 160,
          "unit" : "cm",
          "system" : "http://unitsofmeasure.org",
          "code" : "cm"
        }
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://loinc.org",
            "code" : "29463-7",
            "display" : "Body weight"
          }]
        },
        "valueQuantity" : {
          "value" : 58,
          "unit" : "kg",
          "system" : "http://unitsofmeasure.org",
          "code" : "kg"
        }
      }]
    }
  },
  {
    "resource" : {
      "resourceType" : "Encounter",
      "id" : "DaType2HospAmbEncounter",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-encounter"]
      },
      "status" : "finished",
      "class" : {
        "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code" : "AMB",
        "display" : "ambulatory"
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "participant" : [{
        "individual" : {
          "reference" : "PractitionerRole/janusync-medicaldoctor-practitionerrole-example"
        }
      }],
      "period" : {
        "start" : "2026-04-20T10:30:00+09:00",
        "end" : "2026-04-20T11:30:00+09:00"
      },
      "reasonCode" : [{
        "text" : "가정용 인공호흡기 사용 중 정기 외래 추적 및 호흡 상태 평가"
      }],
      "diagnosis" : [{
        "condition" : {
          "reference" : "Condition/DaType2HospPrimaryCondition"
        },
        "use" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/diagnosis-role",
            "code" : "CC",
            "display" : "Chief complaint"
          }]
        }
      },
      {
        "condition" : {
          "reference" : "Condition/DaType2HospSecondaryCondition"
        },
        "use" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/diagnosis-role",
            "code" : "CM",
            "display" : "Comorbidity diagnosis"
          }]
        }
      }],
      "serviceProvider" : {
        "reference" : "Organization/janusync-organization-example"
      }
    }
  },
  {
    "resource" : {
      "resourceType" : "Condition",
      "id" : "DaType2HospPrimaryCondition",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-condition"]
      },
      "clinicalStatus" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
          "code" : "active"
        }]
      },
      "category" : [{
        "coding" : [{
          "system" : "http://www.hl7korea.or.kr/fhir/krcore/CodeSystem/krcore-condition-category-types",
          "code" : "진단",
          "display" : "진단"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://www.hl7korea.or.kr/CodeSystem/kostat-kcd-8",
          "code" : "J96.1",
          "display" : "Chronic respiratory failure"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "encounter" : {
        "reference" : "Encounter/DaType2HospAmbEncounter"
      },
      "recordedDate" : "2026-04-20T11:10:00+09:00"
    }
  },
  {
    "resource" : {
      "resourceType" : "Condition",
      "id" : "DaType2HospSecondaryCondition",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-condition"]
      },
      "clinicalStatus" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
          "code" : "active"
        }]
      },
      "category" : [{
        "coding" : [{
          "system" : "http://www.hl7korea.or.kr/fhir/krcore/CodeSystem/krcore-condition-category-types",
          "code" : "진단",
          "display" : "진단"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://www.hl7korea.or.kr/CodeSystem/kostat-kcd-8",
          "code" : "J44.9",
          "display" : "Chronic obstructive pulmonary disease, unspecified"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "encounter" : {
        "reference" : "Encounter/DaType2HospAmbEncounter"
      },
      "recordedDate" : "2026-04-20T11:10:00+09:00"
    }
  },
  {
    "resource" : {
      "resourceType" : "Observation",
      "id" : "DaType2HospVentilationObservation",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-composite-observation"]
      },
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "survey"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-group",
          "code" : "respiratory-ventilation-assessment",
          "display" : "호흡기 환자 환기 상태 평가"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "encounter" : {
        "reference" : "Encounter/DaType2HospAmbEncounter"
      },
      "effectiveDateTime" : "2026-04-20T11:15:00+09:00",
      "component" : [{
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "symptom.clinical",
            "display" : "주요 임상 증상"
          }]
        },
        "valueString" : "운동 시 호흡곤란이 있으며 야간에는 가정용 인공호흡기를 사용함."
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "exam.physical",
            "display" : "신체검진 특이사항"
          }]
        },
        "valueString" : "양측 폐야 호흡음 감소, 청색증은 관찰되지 않음."
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tracheostomy.status",
            "display" : "기관절개 여부"
          }]
        },
        "valueBoolean" : true
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tracheostomy.date",
            "display" : "기관절개 수술일자"
          }]
        },
        "valueDateTime" : "2025-12-10"
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tracheostomy.tube-last-change",
            "display" : "가장 최근 기관절개관 교체일"
          }]
        },
        "valueDateTime" : "2026-04-05"
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "device-list-in-use",
            "display" : "사용중인 의료장비 목록"
          }]
        },
        "valueString" : "가정용 인공호흡기"
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "device-list-in-use",
            "display" : "사용중인 의료장비 목록"
          }]
        },
        "valueString" : "산소발생기"
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "device-list-in-use",
            "display" : "사용중인 의료장비 목록"
          }]
        },
        "valueString" : "산소포화도 측정기"
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ventilator-type",
            "display" : "가정용 인공호흡기 기종"
          }]
        },
        "valueString" : "Trilogy 100"
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ventilator-mode",
            "display" : "인공호흡기 모드"
          }]
        },
        "valueString" : "S/T mode, IPAP 16 cmH2O, EPAP 6 cmH2O"
      }]
    }
  },
  {
    "resource" : {
      "resourceType" : "Observation",
      "id" : "DaType2CareSummaryObservation",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-composite-observation"]
      },
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "survey"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-group",
          "code" : "outpatient-care-summary",
          "display" : "외래 진료 요약"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "encounter" : {
        "reference" : "Encounter/DaType2HospAmbEncounter"
      },
      "effectiveDateTime" : "2026-04-20T11:25:00+09:00",
      "component" : [{
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "outpatient.assessment",
            "display" : "외래 진료 평가 요약"
          }]
        },
        "valueString" : "활력징후 안정적이며 최근 악화 소견은 없고 기관절개관 관리 상태도 양호함."
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "outpatient.plan",
            "display" : "외래 진료 계획"
          }]
        },
        "valueString" : "현 인공호흡기 설정을 유지하고 4주 후 외래 추적, 호흡곤란 악화 시 조기 내원하도록 교육함."
      }]
    }
  },
  {
    "resource" : {
      "resourceType" : "ClinicalImpression",
      "id" : "DaType2HospHomeNursingClinicalImpressionExample",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-home-nursing-clinical-impression"]
      },
      "status" : "completed",
      "code" : {
        "coding" : [{
          "system" : "http://example.org/fhir/CodeSystem/clinical-impression-type",
          "code" : "home-nursing-assessment",
          "display" : "Home nursing assessment"
        }],
        "text" : "가정간호 평가"
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "encounter" : {
        "reference" : "Encounter/home-nursing-encounter-example"
      },
      "effectiveDateTime" : "2026-04-14T14:30:00+09:00",
      "date" : "2026-04-14T14:45:00+09:00",
      "assessor" : {
        "reference" : "PractitionerRole/janusync-medicaldoctor-practitionerrole-example"
      },
      "finding" : [{
        "itemCodeableConcept" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "home-visit.vital",
            "display" : "방문 시 활력징후 요약"
          }],
          "text" : "방문 시 활력징후 요약"
        },
        "basis" : "혈압 118/76 mmHg, 맥박 78회/분, 체온 36.7도, 산소포화도 96%로 전반적으로 안정적임."
      },
      {
        "itemCodeableConcept" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "home-visit.assessment",
            "display" : "방문 평가 내용"
          }],
          "text" : "방문 평가 내용"
        },
        "basis" : "호흡 상태 및 전반적 컨디션이 안정적이며 보호자 보고상 최근 분비물 증가 등 특이사항 없음."
      },
      {
        "itemCodeableConcept" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "home-visit.intervention",
            "display" : "방문 중재 내용"
          }],
          "text" : "방문 중재 내용"
        },
        "basis" : "기도흡인 수행법과 튜브 연결 상태를 재교육하고 체위 변경 및 분비물 관리 방법을 안내함."
      },
      {
        "itemCodeableConcept" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "home-visit.outcome",
            "display" : "방문 후 경과"
          }],
          "text" : "방문 후 경과"
        },
        "basis" : "방문 후 호흡곤란 악화 소견 없으며 보호자도 이해도 양호하여 다음 방문 전까지 현재 관리 유지 예정."
      }],
      "supportingInfo" : [{
        "reference" : "Observation/DaType2HospVentilatorCheckObservationExample"
      }]
    }
  },
  {
    "resource" : {
      "resourceType" : "Observation",
      "id" : "DaType2HospVentilatorCheckObservationExample",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-home-ventilator-check-observation"]
      },
      "status" : "final",
      "code" : {
        "coding" : [{
          "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-group",
          "code" : "home-ventilator-check",
          "display" : "가정용 인공호흡기 점검"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "encounter" : {
        "reference" : "Encounter/home-nursing-encounter-example"
      },
      "effectiveDateTime" : "2026-04-14T14:30:00+09:00",
      "performer" : [{
        "reference" : "Practitioner/nurse-example"
      }],
      "component" : [{
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "home-vent-check.status",
            "display" : "기기 작동 상태"
          }]
        },
        "valueString" : "전원, 배터리, 튜브 연결 상태 정상이며 설정값도 이상 없음."
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "home-vent-check.alarm-events",
            "display" : "알람 발생 보고 내용"
          }]
        },
        "valueString" : "최근 일주일간 고압 알람 1회 있었으나 체위 변경 후 해소되었고 보호자가 진술함."
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "home-vent-check.caregiver-education",
            "display" : "보호자 교육 시행 여부"
          }]
        },
        "valueBoolean" : true
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "home-vent-check.follow-up-req",
            "display" : "추적 관찰 필요 여부"
          }]
        },
        "valueBoolean" : true
      }]
    }
  }]
}