{
  "resourceType" : "Bundle",
  "id" : "janusync-ve-message-bundle-admission-curation-example",
  "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" : "janusync-ve-messageheader-admission-curation-example",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-ve-messageheader"]
      },
      "extension" : [{
        "url" : "http://connectdtx.kr/fhir/StructureDefinition/janusync-hospital-service-identifier",
        "valueIdentifier" : {
          "system" : "urn:oid:1.2.410.100110.10.11100123",
          "value" : "ADM001"
        }
      }],
      "eventCoding" : {
        "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-ve-message-event",
        "code" : "curation",
        "display" : "큐레이션"
      },
      "sender" : {
        "reference" : "Organization/janusync-organization-example"
      },
      "author" : {
        "reference" : "PractitionerRole/janusync-medicaldoctor-practitionerrole-example"
      },
      "source" : {
        "endpoint" : "urn:oid:1.2.410.100110.10.11100123"
      },
      "reason" : {
        "coding" : [{
          "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-ve-message-reason",
          "code" : "admit",
          "display" : "입원"
        }]
      }
    }
  },
  {
    "resource" : {
      "resourceType" : "Encounter",
      "id" : "janusync-encounter-imp-example",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-encounter"]
      },
      "extension" : [{
        "url" : "http://connectdtx.kr/fhir/StructureDefinition/JanuSyncEncounterAuthoredOn",
        "valueDateTime" : "2000-01-01T12:00:00+09:00"
      }],
      "status" : "in-progress",
      "class" : {
        "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
        "code" : "IMP"
      },
      "subject" : {
        "reference" : "Patient/janusync-patient-example"
      },
      "participant" : [{
        "individual" : {
          "reference" : "PractitionerRole/janusync-medicaldoctor-practitionerrole-example"
        }
      }],
      "period" : {
        "start" : "2000-01-01T14:00:00+09:00"
      },
      "serviceProvider" : {
        "reference" : "Organization/janusync-organization-example"
      }
    }
  },
  {
    "resource" : {
      "resourceType" : "Patient",
      "id" : "janusync-patient-example",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-patient"]
      },
      "identifier" : [{
        "type" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
            "code" : "MR"
          }]
        },
        "system" : "urn:oid:1.2.410.100110.10.11100123",
        "value" : "P123"
      }],
      "name" : [{
        "text" : "김환자"
      }],
      "telecom" : [{
        "system" : "phone",
        "value" : "010-1234-5678"
      }],
      "gender" : "male",
      "birthDate" : "1990-01-01"
    }
  },
  {
    "resource" : {
      "resourceType" : "Organization",
      "id" : "janusync-organization-example",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-organization"]
      },
      "extension" : [{
        "url" : "http://connectdtx.kr/fhir/StructureDefinition/janusync-report-type",
        "valueCode" : "application/pdf"
      },
      {
        "url" : "http://connectdtx.kr/fhir/StructureDefinition/janusync-report-type",
        "valueCode" : "image/jpeg"
      },
      {
        "url" : "http://connectdtx.kr/fhir/StructureDefinition/janusync-report-type",
        "valueCode" : "image/png"
      },
      {
        "url" : "http://connectdtx.kr/fhir/StructureDefinition/janusync-business-number",
        "valueString" : "123-12-12345"
      }],
      "identifier" : [{
        "system" : "urn:ietf:rfc:3986",
        "value" : "urn:oid:1.2.410.100110.10.11100123"
      }],
      "type" : [{
        "coding" : [{
          "system" : "http://www.hl7korea.or.kr/CodeSystem/hira-healthcare-organization-types",
          "code" : "01",
          "display" : "상급종합병원 (Tertiary General Hospital)"
        }]
      }],
      "name" : "파이종합병원",
      "telecom" : [{
        "system" : "phone",
        "value" : "02-393-1114"
      }],
      "address" : [{
        "text" : "서울특별시 서대문구 연대동문길 37, 1층",
        "line" : ["서울특별시 서대문구 연대동문길 37",
        "1층"],
        "postalCode" : "03721"
      }]
    }
  },
  {
    "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" : "수면건강센터"
      }]
    }
  }]
}