{
  "resourceType" : "Bundle",
  "id" : "DaType1HospBundleExample",
  "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" : "Encounter",
      "id" : "DaType1HospInitialEncounterExample",
      "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"
      },
      "diagnosis" : [{
        "condition" : {
          "reference" : "Condition/DaType1HospPrimaryCondition"
        },
        "rank" : 1
      },
      {
        "condition" : {
          "reference" : "Condition/DaType1HospSecondaryCondition"
        },
        "rank" : 2
      },
      {
        "condition" : {
          "reference" : "Condition/DaType1HospThirdCondition"
        },
        "rank" : 2
      }],
      "serviceProvider" : {
        "reference" : "Organization/janusync-organization-example"
      }
    }
  },
  {
    "resource" : {
      "resourceType" : "Condition",
      "id" : "DaType1HospPrimaryCondition",
      "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" : "O62.8",
          "display" : "Other abnormalities of forces of labor"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "encounter" : {
        "reference" : "Encounter/DaType1HospInitialEncounterExample"
      },
      "recordedDate" : "2026-04-10T09:00:00+09:00"
    }
  },
  {
    "resource" : {
      "resourceType" : "Condition",
      "id" : "DaType1HospSecondaryCondition",
      "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" : "O82.1",
          "display" : "Delivery by emergency caesarean section"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "encounter" : {
        "reference" : "Encounter/DaType1HospInitialEncounterExample"
      },
      "recordedDate" : "2026-04-10T09:00:00+09:00"
    }
  },
  {
    "resource" : {
      "resourceType" : "Condition",
      "id" : "DaType1HospThirdCondition",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-condition"]
      },
      "clinicalStatus" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
          "code" : "active"
        }]
      },
      "verificationStatus" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/condition-ver-status",
          "code" : "provisional"
        }]
      },
      "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" : "O36.6",
          "display" : "Maternal care for excessive fetal growth"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "encounter" : {
        "reference" : "Encounter/DaType1HospInitialEncounterExample"
      },
      "recordedDate" : "2026-04-10T09:00:00+09:00"
    }
  },
  {
    "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" : "DaType1HospVitalSignsExample",
      "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"
        }
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://loinc.org",
            "code" : "8480-6",
            "display" : "Systolic blood pressure"
          }]
        },
        "valueQuantity" : {
          "value" : 118,
          "unit" : "mmHg",
          "system" : "http://unitsofmeasure.org",
          "code" : "mm[Hg]"
        }
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://loinc.org",
            "code" : "8462-4",
            "display" : "Diastolic blood pressure"
          }]
        },
        "valueQuantity" : {
          "value" : 62,
          "unit" : "mmHg",
          "system" : "http://unitsofmeasure.org",
          "code" : "mm[Hg]"
        }
      }]
    }
  },
  {
    "resource" : {
      "resourceType" : "Observation",
      "id" : "DaType1HospPregnancySummaryObservationExample",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-pregnancy-summary-observation"]
      },
      "status" : "final",
      "code" : {
        "coding" : [{
          "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-group",
          "code" : "pregnancy-summary",
          "display" : "임신 요약"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "encounter" : {
        "reference" : "Encounter/DaType1HospInitialEncounterExample"
      },
      "effectiveDateTime" : "2026-04-20T11:05:00+09:00",
      "interpretation" : [{
        "coding" : [{
          "code" : "summary"
        }]
      }],
      "component" : [{
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.edd"
          }],
          "text" : "예정분만일"
        },
        "valueDateTime" : "2026-08-20"
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.pre-pregnancy-weight"
          }],
          "text" : "임신 전 체중"
        },
        "valueQuantity" : {
          "value" : 54.2,
          "unit" : "kg",
          "system" : "http://unitsofmeasure.org",
          "code" : "kg"
        }
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.gravidity"
          }],
          "text" : "임신횟수"
        },
        "valueInteger" : 3
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.parity"
          }],
          "text" : "출산횟수"
        },
        "valueInteger" : 1
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.living"
          }],
          "text" : "생존 자녀 수"
        },
        "valueInteger" : 1
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.abortion"
          }],
          "text" : "유산횟수"
        },
        "valueInteger" : 1
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.fetus-count"
          }],
          "text" : "태아수"
        },
        "valueInteger" : 1
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.hx.preterm"
          }],
          "text" : "조산(37주 미만 분만) 병력 여부"
        },
        "valueBoolean" : false
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.hx.cerclage"
          }],
          "text" : "자궁경부봉축술 병력(S/P cerclage) 여부"
        },
        "valueBoolean" : false
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.hx.myomectomy"
          }],
          "text" : "자궁근종절제술 병력 여부"
        },
        "valueBoolean" : false
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.hx.c-section"
          }],
          "text" : "제왕절개 분만 병력 여부"
        },
        "valueBoolean" : false
      }]
    }
  },
  {
    "resource" : {
      "resourceType" : "Observation",
      "id" : "DaType1HospPregnancyEventExample",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-pregnancy-event-observation"]
      },
      "status" : "final",
      "code" : {
        "coding" : [{
          "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-group",
          "code" : "pregnancy-event",
          "display" : "임신 및 분만 정보"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "effectiveDateTime" : "2026-04-20T11:00:00+09:00",
      "component" : [{
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.preg.onset-date"
          }]
        },
        "valueDateTime" : "2025"
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.preg.duration-of-gestation"
          }]
        },
        "valueString" : "20+4wks"
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.preg.other-complication"
          }]
        },
        "valueString" : "current preg"
      }]
    }
  },
  {
    "resource" : {
      "resourceType" : "Observation",
      "id" : "DaType1HospPatientHistoryObservationExample",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-patient-history-observation"]
      },
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "survey"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "35090-0",
          "display" : "Patient history"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "effectiveDateTime" : "2026-04-20T11:00:00+09:00",
      "component" : [{
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "hx.diabetes",
            "display" : "당뇨 병력"
          }]
        },
        "valueBoolean" : false
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "hx.hypertension",
            "display" : "고혈압 병력"
          }]
        },
        "valueBoolean" : false
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "hx.hepatic.hepatitis",
            "display" : "간염 병력"
          }]
        },
        "valueBoolean" : false
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "hx.tuberculosis",
            "display" : "결핵 병력"
          }]
        },
        "valueBoolean" : false
      }]
    }
  },
  {
    "resource" : {
      "resourceType" : "Encounter",
      "id" : "DaType1HospFollowUpEncounterExample",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-associated-care-encounter"]
      },
      "status" : "finished",
      "class" : {
        "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code" : "AMB",
        "display" : "ambulatory"
      },
      "type" : [{
        "coding" : [{
          "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-encounter-type",
          "code" : "follow-up",
          "display" : "추적관찰"
        }]
      }],
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "participant" : [{
        "individual" : {
          "reference" : "PractitionerRole/janusync-medicaldoctor-practitionerrole-example"
        }
      }],
      "period" : {
        "start" : "2026-05-20T10:00:00+09:00",
        "end" : "2026-05-20T10:40:00+09:00"
      },
      "serviceProvider" : {
        "reference" : "Organization/janusync-organization-example"
      }
    }
  },
  {
    "resource" : {
      "resourceType" : "Observation",
      "id" : "DaType1HospPregnancyFollowUpObservationExample",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-pregnancy-follow-up-observation"]
      },
      "status" : "final",
      "code" : {
        "coding" : [{
          "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-group",
          "code" : "pregnancy-followup",
          "display" : "임신 경과 관찰"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "encounter" : {
        "reference" : "Encounter/DaType1HospFollowUpEncounterExample"
      },
      "effectiveDateTime" : "2026-05-20T10:20:00+09:00",
      "component" : [{
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.hx.hypertension",
            "display" : "Hypertension during pregnancy"
          }],
          "text" : "임신 중 고혈압"
        },
        "valueBoolean" : true
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.hx.diabetes",
            "display" : "Diabetes during pregnancy"
          }],
          "text" : "임신 중(type 1/2) 당뇨"
        },
        "valueBoolean" : false
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.hx.anemia",
            "display" : "Anemia during pregnancy"
          }],
          "text" : "임신 중 빈혈"
        },
        "valueBoolean" : true
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.hx.hepatitis",
            "display" : "Hepatitis during pregnancy"
          }],
          "text" : "임신 중 간염"
        },
        "valueBoolean" : false
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.hx.hypothyroidism",
            "display" : "Hypothyroidism during pregnancy"
          }],
          "text" : "임신 중 갑상선저하증"
        },
        "valueBoolean" : false
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.hx.hyperthyroidism",
            "display" : "Hyperthyroidism during pregnancy"
          }],
          "text" : "임신 중 갑상선항진증"
        },
        "valueBoolean" : false
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.hx.tuberculosis",
            "display" : "Tuberculosis"
          }],
          "text" : "결핵"
        },
        "valueBoolean" : false
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.hx.gestational-diabetes-mellitus"
          }],
          "text" : "임신성 당뇨"
        },
        "valueBoolean" : true
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.hx.gestational-hypertension"
          }],
          "text" : "20주 이후 새로 발생한 고혈압"
        },
        "valueBoolean" : true
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.hx.placenta-previa"
          }],
          "text" : "전치태반"
        },
        "valueBoolean" : false
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.hx.preeclampsia"
          }],
          "text" : "전자간증"
        },
        "valueBoolean" : false
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "ob.visit.next-opd-date"
          }],
          "text" : "다음 외래 예약일시"
        },
        "valueDateTime" : "2026-06-17T10:00:00+09:00"
      }]
    }
  }]
}