{
  "resourceType" : "Bundle",
  "id" : "DaType3HospBundleExample",
  "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" : "DaType3HospVitalSignsExample",
      "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" : "Condition",
      "id" : "DaType3HospPrimaryCondition",
      "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" : "J17.1",
          "display" : "Other primary gonarthrosis"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "encounter" : {
        "reference" : "Encounter/DaType3HospProcedureEncounter"
      },
      "recordedDate" : "2026-04-10T09:00:00+09:00"
    }
  },
  {
    "resource" : {
      "resourceType" : "Condition",
      "id" : "DaType3HospSecondaryCondition",
      "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" : "J00",
          "display" : "Acute nasopharyngitis [common cold]"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "encounter" : {
        "reference" : "Encounter/DaType3HospProcedureEncounter"
      },
      "recordedDate" : "2026-04-10T09:00:00+09:00"
    }
  },
  {
    "resource" : {
      "resourceType" : "Encounter",
      "id" : "DaType3HospProcedureEncounter",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-associated-care-encounter"]
      },
      "status" : "finished",
      "class" : {
        "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code" : "IMP",
        "display" : "inpatient encounter"
      },
      "type" : [{
        "coding" : [{
          "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-encounter-type",
          "code" : "procedure"
        }]
      }],
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "participant" : [{
        "individual" : {
          "reference" : "PractitionerRole/janusync-medicaldoctor-practitionerrole-example"
        }
      }],
      "period" : {
        "start" : "2026-04-10T09:00:00+09:00",
        "end" : "2026-04-12T17:00:00+09:00"
      },
      "diagnosis" : [{
        "condition" : {
          "reference" : "Condition/DaType3HospPrimaryCondition"
        },
        "rank" : 1
      },
      {
        "condition" : {
          "reference" : "Condition/DaType3HospSecondaryCondition"
        },
        "rank" : 2
      }],
      "serviceProvider" : {
        "reference" : "Organization/janusync-organization-example"
      }
    }
  },
  {
    "resource" : {
      "resourceType" : "Procedure",
      "id" : "DaType3HospKneeReplacementProcedure",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-procedure"]
      },
      "status" : "completed",
      "code" : {
        "coding" : [{
          "system" : "http://www.hl7korea.or.kr/CodeSystem/hira-edi-procedure",
          "code" : "N2072",
          "display" : "슬관절 전치환술 (Total Knee Arthroplasty, TKA)"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-deidentified-patient-example"
      },
      "encounter" : {
        "reference" : "Encounter/DaType3HospProcedureEncounter"
      },
      "performedDateTime" : "2026-04-11T10:30:00+09:00"
    }
  }]
}