{
  "resourceType" : "Bundle",
  "id" : "dtx-result-bundle-example",
  "type" : "transaction",
  "entry" : [{
    "resource" : {
      "resourceType" : "Device",
      "id" : "janusync-dtx-device-example",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-dtx-device"]
      },
      "identifier" : [{
        "system" : "https://connectdtx.net/phicode",
        "value" : "sMbAFvHPH1rS58kTHAkbZ82Xq8kjxVZQYjvN-_-InRU"
      }],
      "manufacturer" : "파이DTx",
      "deviceName" : [{
        "name" : "Hypnus",
        "type" : "model-name"
      }],
      "type" : {
        "coding" : [{
          "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-dtx-device-type",
          "code" : "dtx"
        }]
      },
      "version" : [{
        "type" : {
          "coding" : [{
            "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-dtx-version-type",
            "code" : "prod"
          }]
        },
        "value" : "1.0.1"
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "Device"
    }
  },
  {
    "resource" : {
      "resourceType" : "DocumentReference",
      "id" : "janusync-dtx-result-report-example",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-dtx-result-report"]
      },
      "identifier" : [{
        "system" : "https://connectdtx.net/phicode",
        "value" : "sMbAFvHPH1rS58kTHAkbZ82Xq8kjxVZQYjvN-_-InRU"
      }],
      "status" : "current",
      "type" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "55112-7",
          "display" : "Document summary"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-patient-example"
      },
      "date" : "2000-01-01T17:00:00+09:00",
      "author" : [{
        "reference" : "Device/janusync-dtx-device-example"
      }],
      "content" : [{
        "attachment" : {
          "contentType" : "application/pdf",
          "data" : "AA=="
        }
      }],
      "context" : {
        "period" : {
          "start" : "2000-01-01T14:05:00+09:00"
        },
        "related" : [{
          "reference" : "ServiceRequest/dtx-servicerequest-example"
        }]
      }
    },
    "request" : {
      "method" : "POST",
      "url" : "DocumentReference"
    }
  },
  {
    "resource" : {
      "resourceType" : "Observation",
      "id" : "janusync-dtx-result-observation-example",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-dtx-result-observation"]
      },
      "identifier" : [{
        "system" : "https://connectdtx.net/phicode",
        "value" : "sMbAFvHPH1rS58kTHAkbZ82Xq8kjxVZQYjvN-_-InRU"
      }],
      "basedOn" : [{
        "reference" : "ServiceRequest/dtx-servicerequest-example"
      }],
      "status" : "preliminary",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "activity",
          "display" : "Activity"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://connectdtx.kr/fhir/CodeSystem/janusync-dtx-code",
          "code" : "service-code-001",
          "display" : "수면 DTx (Sleep DTx)"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-patient-example"
      },
      "effectivePeriod" : {
        "start" : "2000-01-01T17:05:00+09:00"
      },
      "performer" : [{
        "reference" : "Patient/janusync-patient-example"
      }],
      "device" : {
        "reference" : "Device/janusync-dtx-device-example"
      },
      "component" : [{
        "code" : {
          "coding" : [{
            "system" : "http://loinc.org",
            "code" : "LP33126-1"
          }]
        },
        "valueQuantity" : {
          "value" : 73,
          "system" : "http://unitsofmeasure.org",
          "code" : "%"
        },
        "interpretation" : [{
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
            "code" : "L",
            "display" : "Low"
          }]
        }]
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://loinc.org",
            "code" : "LP173213-2",
            "display" : "Progress"
          }]
        },
        "valueRatio" : {
          "numerator" : {
            "value" : 1
          },
          "denominator" : {
            "value" : 42
          }
        }
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "Observation"
    }
  },
  {
    "resource" : {
      "resourceType" : "Observation",
      "id" : "janusync-observation-dtx-example",
      "meta" : {
        "profile" : ["http://connectdtx.kr/fhir/StructureDefinition/janusync-dtx-observation"]
      },
      "basedOn" : [{
        "reference" : "ServiceRequest/dtx-servicerequest-example"
      }],
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "activity",
          "display" : "Activity"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "51848-0",
          "display" : "Evaluation note"
        }]
      },
      "subject" : {
        "reference" : "Patient/janusync-patient-example"
      },
      "effectiveDateTime" : "2000-01-01",
      "device" : {
        "reference" : "Device/janusync-dtx-device-example"
      },
      "component" : [{
        "code" : {
          "coding" : [{
            "system" : "http://loinc.org",
            "code" : "93832-4",
            "display" : "Sleep duration"
          }]
        },
        "valueQuantity" : {
          "value" : 6.7,
          "system" : "http://unitsofmeasure.org",
          "code" : "h"
        }
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://loinc.org",
            "code" : "95607-8",
            "display" : "Sleep quality - 1-5 numeric rating [Score] 24 hour"
          }]
        },
        "valueQuantity" : {
          "value" : 3
        }
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://loinc.org",
            "code" : "74015-9",
            "display" : "Date recorded"
          }]
        },
        "valueDateTime" : "2000-01-02T14:20:00+09:00"
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "Observation"
    }
  }]
}