{
  "resourceType" : "Bundle",
  "id" : "cgmDataSubmissionBundle",
  "type" : "transaction",
  "timestamp" : "2024-05-02T14:30:00Z",
  "entry" : [{
    "fullUrl" : "https://example.org/DiagnosticReport/cgmSummaryPDFExample",
    "resource" : {
      "resourceType" : "DiagnosticReport",
      "id" : "cgmSummaryPDFExample",
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v2-0074",
          "code" : "LAB"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "107931-8"
        }]
      },
      "subject" : {
        "reference" : "Patient/patientExample"
      },
      "effectivePeriod" : {
        "start" : "2024-05-01",
        "end" : "2024-05-14"
      },
      "issued" : "2024-05-15T14:30:00Z",
      "result" : [{
        "reference" : "Observation/cgmSummaryExample"
      }],
      "presentedForm" : [{
        "contentType" : "application/pdf",
        "data" : "JVBERi0xLjAKJcK1wrYKCjEgMCBvYmoKPDwvVHlwZS9DYXRhbG9nL1BhZ2VzIDIgMCBSPj4KZW5kb2JqCgoyIDAgb2JqCjw8L0tpZHNbMyAwIFJdL0NvdW50IDEvVHlwZS9QYWdlcy9NZWRpYUJveFswIDAgNTk1IDc5Ml0+PgplbmRvYmoKCjMgMCBvYmoKPDwvVHlwZS9QYWdlL1BhcmVudCAyIDAgUi9Db250ZW50cyA0IDAgUi9SZXNvdXJjZXM8PD4+Pj4KZW5kb2JqCgo0IDAgb2JqCjw8L0xlbmd0aCA1OD4+CnN0cmVhbQpxCkJUCi8gOTYgVGYKMSAwIDAgMSAzNiA2ODQgVG0KKEZISVIgQ0dNISkgVGoKRVQKUQoKZW5kc3RyZWFtCmVuZG9iagoKeHJlZgowIDUKMDAwMDAwMDAwMCA2NTUzNiBmIAowMDAwMDAwMDE2IDAwMDAwIG4gCjAwMDAwMDAwNjIgMDAwMDAgbiAKMDAwMDAwMDEzNiAwMDAwMCBuIAowMDAwMDAwMjA5IDAwMDAwIG4gCgp0cmFpbGVyCjw8L1NpemUgNS9Sb290IDEgMCBSPj4Kc3RhcnR4cmVmCjMxNgolJUVPRgoK"
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "DiagnosticReport"
    }
  },
  {
    "fullUrl" : "https://example.org/Observation/cgmSummaryExample",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "cgmSummaryExample",
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "laboratory"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "107931-8"
        }]
      },
      "subject" : {
        "reference" : "Patient/patientExample"
      },
      "effectivePeriod" : {
        "start" : "2024-05-01",
        "end" : "2024-05-31"
      },
      "hasMember" : [{
        "reference" : "Observation/cgmSummaryMeanGlucoseMassPerVolumeExample"
      },
      {
        "reference" : "Observation/cgmSummaryTimesInRangesExample"
      },
      {
        "reference" : "Observation/cgmSummaryGMIExample"
      },
      {
        "reference" : "Observation/cgmSummaryCoefficientOfVariationExample"
      },
      {
        "reference" : "Observation/cgmSummaryDaysOfWearExample"
      },
      {
        "reference" : "Observation/cgmSummarySensorActivePercentageExample"
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "Observation"
    }
  },
  {
    "fullUrl" : "https://example.org/Observation/cgmSummaryMeanGlucoseMassPerVolumeExample",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "cgmSummaryMeanGlucoseMassPerVolumeExample",
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "laboratory"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "97507-8"
        }]
      },
      "subject" : {
        "reference" : "Patient/patientExample"
      },
      "effectivePeriod" : {
        "start" : "2024-05-01",
        "end" : "2024-05-31"
      },
      "valueQuantity" : {
        "value" : 145,
        "unit" : "mg/dl",
        "system" : "http://unitsofmeasure.org",
        "code" : "mg/dL"
      }
    },
    "request" : {
      "method" : "POST",
      "url" : "Observation"
    }
  },
  {
    "fullUrl" : "https://example.org/Observation/cgmSummaryTimesInRangesExample",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "cgmSummaryTimesInRangesExample",
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "laboratory"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "106793-3"
        }]
      },
      "subject" : {
        "reference" : "Patient/patientExample"
      },
      "effectivePeriod" : {
        "start" : "2024-05-01",
        "end" : "2024-05-31"
      },
      "component" : [{
        "code" : {
          "coding" : [{
            "system" : "http://loinc.org",
            "code" : "104642-4"
          }]
        },
        "valueQuantity" : {
          "value" : 3,
          "unit" : "%",
          "system" : "http://unitsofmeasure.org",
          "code" : "%"
        }
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://loinc.org",
            "code" : "104641-6"
          }]
        },
        "valueQuantity" : {
          "value" : 8,
          "unit" : "%",
          "system" : "http://unitsofmeasure.org",
          "code" : "%"
        }
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://loinc.org",
            "code" : "97510-2"
          }]
        },
        "valueQuantity" : {
          "value" : 65,
          "unit" : "%",
          "system" : "http://unitsofmeasure.org",
          "code" : "%"
        }
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://loinc.org",
            "code" : "104640-8"
          }]
        },
        "valueQuantity" : {
          "value" : 20,
          "unit" : "%",
          "system" : "http://unitsofmeasure.org",
          "code" : "%"
        }
      },
      {
        "code" : {
          "coding" : [{
            "system" : "http://loinc.org",
            "code" : "104639-0"
          }]
        },
        "valueQuantity" : {
          "value" : 4,
          "unit" : "%",
          "system" : "http://unitsofmeasure.org",
          "code" : "%"
        }
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "Observation"
    }
  },
  {
    "fullUrl" : "https://example.org/Observation/cgmSummaryGMIExample",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "cgmSummaryGMIExample",
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "laboratory"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "97506-0"
        }]
      },
      "subject" : {
        "reference" : "Patient/patientExample"
      },
      "effectivePeriod" : {
        "start" : "2024-05-01",
        "end" : "2024-05-31"
      },
      "valueQuantity" : {
        "value" : 6.8,
        "unit" : "%",
        "system" : "http://unitsofmeasure.org",
        "code" : "%"
      }
    },
    "request" : {
      "method" : "POST",
      "url" : "Observation"
    }
  },
  {
    "fullUrl" : "https://example.org/Observation/cgmSummaryCoefficientOfVariationExample",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "cgmSummaryCoefficientOfVariationExample",
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "laboratory"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "104638-2"
        }]
      },
      "subject" : {
        "reference" : "Patient/patientExample"
      },
      "effectivePeriod" : {
        "start" : "2024-05-01",
        "end" : "2024-05-31"
      },
      "valueQuantity" : {
        "value" : 34,
        "unit" : "%",
        "system" : "http://unitsofmeasure.org",
        "code" : "%"
      }
    },
    "request" : {
      "method" : "POST",
      "url" : "Observation"
    }
  },
  {
    "fullUrl" : "https://example.org/Observation/cgmSummaryDaysOfWearExample",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "cgmSummaryDaysOfWearExample",
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "laboratory"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "104636-6"
        }]
      },
      "subject" : {
        "reference" : "Patient/patientExample"
      },
      "effectivePeriod" : {
        "start" : "2024-05-01",
        "end" : "2024-05-31"
      },
      "valueQuantity" : {
        "value" : 28,
        "unit" : "days",
        "system" : "http://unitsofmeasure.org",
        "code" : "d"
      }
    },
    "request" : {
      "method" : "POST",
      "url" : "Observation"
    }
  },
  {
    "fullUrl" : "https://example.org/Observation/cgmSummarySensorActivePercentageExample",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "cgmSummarySensorActivePercentageExample",
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "laboratory"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "104637-4"
        }]
      },
      "subject" : {
        "reference" : "Patient/patientExample"
      },
      "effectivePeriod" : {
        "start" : "2024-05-01",
        "end" : "2024-05-31"
      },
      "valueQuantity" : {
        "value" : 95,
        "unit" : "%",
        "system" : "http://unitsofmeasure.org",
        "code" : "%"
      }
    },
    "request" : {
      "method" : "POST",
      "url" : "Observation"
    }
  },
  {
    "fullUrl" : "https://example.org/Observation/cgmSensorReadingMassPerVolumeExample",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "cgmSensorReadingMassPerVolumeExample",
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "laboratory"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "99504-3"
        }]
      },
      "subject" : {
        "reference" : "Patient/patientExample"
      },
      "effectiveDateTime" : "2024-05-02T10:15:00Z",
      "valueQuantity" : {
        "value" : 120,
        "unit" : "mg/dl",
        "system" : "http://unitsofmeasure.org",
        "code" : "mg/dL"
      }
    },
    "request" : {
      "method" : "POST",
      "url" : "Observation"
    }
  }]
}