{
  "resourceType" : "Bundle",
  "id" : "DaType6HospBundleExample",
  "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" : "Observation",
      "id" : "DaType6HospTumorPreopClinicalAssessmentObservationExample",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-tumor-preop-clinical-assessment-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" : "tumor-preop-clinical-assessment",
          "display" : "종양 수술전 임상평가"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "effectiveDateTime" : "2026-04-23T09:00:00+09:00",
      "component" : [{
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "exam.asa-class",
            "display" : "ASA 신체 등급"
          }]
        },
        "valueInteger" : 2
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "exam.bmi",
            "display" : "BMI"
          }]
        },
        "valueQuantity" : {
          "value" : 22.7,
          "unit" : "kg/m2",
          "system" : "http://unitsofmeasure.org",
          "code" : "kg/m2"
        }
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "symptom.chief-complaint",
            "display" : "주증상 (CC)"
          }]
        },
        "valueString" : "hematochezia"
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tumor.diagnosis.primary-cancer",
            "display" : "원발암 여부"
          }]
        },
        "valueBoolean" : true
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tumor.diagnosis.associated-polyp",
            "display" : "진단 당시 동반 용종 유무"
          }]
        },
        "valueBoolean" : true
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tumor.diagnosis.synchronous-adenoma.count",
            "display" : "동시성 선종 개수"
          }]
        },
        "valueInteger" : 2
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tumor.diagnosis.synchronous-adenoma.site",
            "display" : "동시성 선종 위치"
          }]
        },
        "valueString" : "sigmoid colon"
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tumor.diagnosis.synchronous-adenoma.histology",
            "display" : "동시성 선종 조직형"
          }]
        },
        "valueString" : "tubular adenoma"
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "condition.bowel-perforation.preop",
            "display" : "수술 전 장천공 동반 여부"
          }]
        },
        "valueBoolean" : false
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "condition.bowel-obstruction.preop",
            "display" : "수술 전 장폐색 동반 여부"
          }]
        },
        "valueBoolean" : false
      }]
    }
  },
  {
    "resource" : {
      "resourceType" : "Observation",
      "id" : "DaType6HospPatientHistoryEncounter",
      "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-23T09: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.pulmonary",
            "display" : "폐질환력"
          }]
        },
        "valueBoolean" : false
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "hx.hepatic",
            "display" : "간질환력"
          }]
        },
        "valueBoolean" : false
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "hx.cardiovascular",
            "display" : "심장질환력"
          }]
        },
        "valueBoolean" : true
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "hx.renal",
            "display" : "신장질환력"
          }]
        },
        "valueBoolean" : false
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "hx.others",
            "display" : "기타 기저질환 내역"
          }]
        },
        "valueString" : "고혈압"
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "hx.smoking-status",
            "display" : "흡연력"
          }]
        },
        "valueCodeableConcept" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-substance-use-status",
            "code" : "former",
            "display" : "사용하였으나 중단함"
          }]
        }
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "hx.other-cancer",
            "display" : "타 암종 병력"
          }]
        },
        "valueBoolean" : true
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "hx.other-cancer-type",
            "display" : "타 암종 종류"
          }]
        },
        "valueString" : "위암"
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "hx.colon",
            "display" : "대장질환 병력"
          }]
        },
        "valueBoolean" : true
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "hx.family.cancer",
            "display" : "암가족력"
          }]
        },
        "valueBoolean" : true
      }]
    }
  },
  {
    "resource" : {
      "resourceType" : "Observation",
      "id" : "DaType6HospPretxTumorAssessmentObservationExample",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-pretx-tumor-assessment-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" : "pretx-tumor-assessment",
          "display" : "치료 전 종양 평가"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "effectiveDateTime" : "2026-04-23T09:00:00+09:00",
      "component" : [{
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tumor.marker.cea.pretx",
            "display" : "치료 전 CEA 수치"
          }]
        },
        "valueQuantity" : {
          "value" : 2.8,
          "unit" : "ng/mL",
          "system" : "http://unitsofmeasure.org",
          "code" : "ng/mL"
        }
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tumor.marker.ca19-9.pretx",
            "display" : "치료 전 CA19-9 수치"
          }]
        },
        "valueQuantity" : {
          "value" : 18.4,
          "unit" : "U/mL",
          "system" : "http://unitsofmeasure.org",
          "code" : "U/mL"
        }
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tumor.stage.clinical.tnm.pretx",
            "display" : "치료 전 임상적 TNM 병기"
          }]
        },
        "valueString" : "T2N1M0"
      }]
    }
  },
  {
    "resource" : {
      "resourceType" : "Observation",
      "id" : "DaType6HospPosttxTumorAssessmentObservationExample",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-posttx-tumor-assessment-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" : "posttx-tumor-assessment",
          "display" : "치료 후 종양평가"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "effectiveDateTime" : "2026-04-24T09:00:00+09:00",
      "component" : [{
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tumor.marker.cea.posttx",
            "display" : "치료 후 CEA 수치"
          }]
        },
        "valueQuantity" : {
          "value" : 2.1,
          "unit" : "ng/mL",
          "system" : "http://unitsofmeasure.org",
          "code" : "ng/mL"
        }
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tumor.stage.clinical.tnm.posttx",
            "display" : "치료 후 임상적 TNM 병기"
          }]
        },
        "valueString" : "T2N1M0"
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tumor.metastasis.synchronous.posttx",
            "display" : "치료 후 동시성 전이 존재 여부"
          }]
        },
        "valueBoolean" : false
      }]
    }
  },
  {
    "resource" : {
      "resourceType" : "Observation",
      "id" : "DaType6HospTumorPathologyObservationExample",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-tumor-pathology-observation"]
      },
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "survey"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "22637-3",
          "display" : "Pathology report final diagnosis Narrative"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "effectiveDateTime" : "2026-04-24T09:00:00+09:00",
      "component" : [{
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tumor.site",
            "display" : "병리학적 종양 위치"
          }]
        },
        "valueCodeableConcept" : {
          "text" : "sigmoid colon"
        }
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tumor.size.greatest",
            "display" : "종양의 크기 (greatest)"
          }]
        },
        "valueQuantity" : {
          "value" : 4.2,
          "unit" : "cm",
          "system" : "http://unitsofmeasure.org",
          "code" : "cm"
        }
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tumor.type",
            "display" : "병리학적 종양 분류"
          }]
        },
        "valueString" : "adenocarcinoma"
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tumor.invasion.lymphovascular",
            "display" : "림프관/혈관 침윤"
          }]
        },
        "valueBoolean" : true
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tumor.invasion.perineural",
            "display" : "신경주위 침윤"
          }]
        },
        "valueBoolean" : false
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tumor.stage.pathologic.t",
            "display" : "병리학적 T 병기"
          }]
        },
        "valueString" : "pT3"
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tumor.stage.pathologic.n",
            "display" : "병리학적 N 병기"
          }]
        },
        "valueString" : "pN1"
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-observation-component",
            "code" : "tumor.stage.pathologic.m",
            "display" : "병리학적 M 병기"
          }]
        },
        "valueString" : "pM0"
      }]
    }
  }]
}