{
  "resourceType": "Bundle",
  "id": "tests-denom-EXM104-FHIR3-bundle",
  "type": "transaction",
  "entry": [
    {
      "resource": {
        "resourceType": "Condition",
        "id": "denom-EXM104-FHIR3-1",
        "meta": {
          "profile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition"
          ]
        },
        "verificationStatus": "confirmed",
        "category": [
          {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/condition-category",
                "code": "encounter-diagnosis",
                "display": "Encounter Diagnosis"
              }
            ]
          }
        ],
        "code": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "116288000",
              "display": "Paralytic stroke (disorder)"
            }
          ]
        },
        "subject": {
          "reference": "Patient/denom-EXM104-FHIR3"
        }
      },
      "request": {
        "method": "PUT",
        "url": "Condition/denom-EXM104-FHIR3-1"
      }
    },
    {
      "resource": {
        "resourceType": "Encounter",
        "id": "denom-EXM104-FHIR3-2",
        "meta": {
          "profile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter"
          ]
        },
        "status": "finished",
        "class": {
          "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
          "code": "IMP",
          "display": "inpatient encounter"
        },
        "type": [
          {
            "coding": [
              {
                "system": "http://snomed.info/sct",
                "code": "32485007",
                "display": "Hospital admission (procedure)"
              }
            ]
          }
        ],
        "subject": {
          "reference": "Patient/denom-EXM104-FHIR3"
        },
        "period": {
          "start": "2019-08-21T00:00:00-06:00",
          "end": "2019-12-19T08:15:00-07:00"
        },
        "diagnosis": [
          {
            "condition": {
              "reference": "Condition/denom-EXM104-FHIR3-1"
            },
            "role": {
              "coding": [
                {
                  "system": "http://hl7.org/fhir/diagnosis-role",
                  "code": "billing",
                  "display": "Billing"
                }
              ]
            },
            "rank": 1
          }
        ]
      },
      "request": {
        "method": "PUT",
        "url": "Encounter/denom-EXM104-FHIR3-2"
      }
    },
    {
      "resource": {
        "resourceType": "MeasureReport",
        "id": "measurereport-denom-EXM104-FHIR3",
        "contained": [
          {
            "resourceType": "Bundle",
            "id": "b20ba55e-a72e-493d-868d-e9f6c007d11a",
            "type": "collection",
            "entry": [
              {
                "fullUrl": "Condition/denom-EXM104-FHIR3-1",
                "resource": {
                  "resourceType": "Condition",
                  "id": "denom-EXM104-FHIR3-1",
                  "meta": {
                    "versionId": "1",
                    "lastUpdated": "2019-12-18T22:42:17.748-07:00",
                    "profile": [
                      "http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition"
                    ]
                  },
                  "verificationStatus": "confirmed",
                  "category": [
                    {
                      "coding": [
                        {
                          "system": "http://terminology.hl7.org/CodeSystem/condition-category",
                          "code": "encounter-diagnosis",
                          "display": "Encounter Diagnosis"
                        }
                      ]
                    }
                  ],
                  "code": {
                    "coding": [
                      {
                        "system": "http://snomed.info/sct",
                        "code": "116288000",
                        "display": "Paralytic stroke (disorder)"
                      }
                    ]
                  },
                  "subject": {
                    "reference": "Patient/denom-EXM104-FHIR3"
                  }
                }
              },
              {
                "fullUrl": "Encounter/denom-EXM104-FHIR3-2",
                "resource": {
                  "resourceType": "Encounter",
                  "id": "denom-EXM104-FHIR3-2",
                  "meta": {
                    "versionId": "1",
                    "lastUpdated": "2019-12-18T22:42:17.748-07:00",
                    "profile": [
                      "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter"
                    ]
                  },
                  "status": "finished",
                  "class": {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
                    "code": "IMP",
                    "display": "inpatient encounter"
                  },
                  "type": [
                    {
                      "coding": [
                        {
                          "system": "http://snomed.info/sct",
                          "code": "32485007",
                          "display": "Hospital admission (procedure)"
                        }
                      ]
                    }
                  ],
                  "subject": {
                    "reference": "Patient/denom-EXM104-FHIR3"
                  },
                  "period": {
                    "start": "2019-08-21T00:00:00-06:00",
                    "end": "2019-12-19T08:15:00-07:00"
                  },
                  "diagnosis": [
                    {
                      "condition": {
                        "reference": "Condition/denom-EXM104-FHIR3-1"
                      },
                      "role": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/diagnosis-role",
                            "code": "billing",
                            "display": "Billing"
                          }
                        ]
                      },
                      "rank": 1
                    }
                  ]
                }
              },
              {
                "fullUrl": "Patient/denom-EXM104-FHIR3",
                "resource": {
                  "resourceType": "Patient",
                  "id": "denom-EXM104-FHIR3",
                  "meta": {
                    "versionId": "1",
                    "lastUpdated": "2019-12-18T22:42:17.748-07:00",
                    "profile": [
                      "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"
                    ]
                  },
                  "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><div class=\"hapiHeaderText\">Rick <b>JONES </b></div><table class=\"hapiPropertyTable\"><tbody><tr><td>Identifier</td><td>9999999910</td></tr><tr><td>Date of birth</td><td><span>05 November 1955</span></td></tr></tbody></table></div>"
                  },
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race",
                      "extension": [
                        {
                          "url": "ombCategory",
                          "valueCoding": {
                            "system": "urn:oid:2.16.840.1.113883.6.238",
                            "code": "2054-5",
                            "display": "Black or African American"
                          }
                        }
                      ]
                    },
                    {
                      "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity",
                      "extension": [
                        {
                          "url": "ombCategory",
                          "valueCoding": {
                            "system": "urn:oid:2.16.840.1.113883.6.238",
                            "code": "2135-2",
                            "display": "Hispanic or Latino"
                          }
                        }
                      ]
                    }
                  ],
                  "identifier": [
                    {
                      "use": "usual",
                      "type": {
                        "coding": [
                          {
                            "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                            "code": "MR",
                            "display": "Medical Record Number"
                          }
                        ]
                      },
                      "system": "http://hospital.smarthealthit.org",
                      "value": "9999999910"
                    }
                  ],
                  "name": [
                    {
                      "family": "Jones",
                      "given": [
                        "Rick"
                      ]
                    }
                  ],
                  "gender": "male",
                  "birthDate": "1955-11-05"
                }
              },
              {
                "fullUrl": "a6811e61-b875-43ac-960d-de15dab68184",
                "resource": {
                  "resourceType": "List",
                  "id": "a6811e61-b875-43ac-960d-de15dab68184",
                  "title": "initial-population",
                  "entry": [
                    {
                      "item": {
                        "reference": "denom-EXM104-FHIR3-1"
                      }
                    },
                    {
                      "item": {
                        "reference": "denom-EXM104-FHIR3-2"
                      }
                    },
                    {
                      "item": {
                        "reference": "denom-EXM104-FHIR3"
                      }
                    }
                  ]
                }
              },
              {
                "fullUrl": "f8cb86c0-faf5-433d-bb60-d1bbbaf67abc",
                "resource": {
                  "resourceType": "List",
                  "id": "f8cb86c0-faf5-433d-bb60-d1bbbaf67abc",
                  "title": "denominator",
                  "entry": [
                    {
                      "item": {
                        "reference": "denom-EXM104-FHIR3-1"
                      }
                    }
                  ]
                }
              }
            ]
          }
        ],
        "status": "complete",
        "type": "individual",
        "measure": {
          "reference": "Measure/measure-EXM104-FHIR3-8.1.000"
        },
        "patient": {
          "reference": "Patient/denom-EXM104-FHIR3"
        },
        "period": {
          "start": "2019-01-01T00:00:00-07:00",
          "end": "2019-12-31T00:00:00-07:00"
        },
        "group": [
          {
            "identifier": {
              "value": "group-1"
            },
            "population": [
              {
                "identifier": {
                  "value": "initial-population-identifier"
                },
                "code": {
                  "coding": [
                    {
                      "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                      "code": "initial-population",
                      "display": "Initial Population"
                    }
                  ]
                },
                "count": 1
              },
              {
                "identifier": {
                  "value": "numerator-identifier"
                },
                "code": {
                  "coding": [
                    {
                      "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                      "code": "numerator",
                      "display": "Numerator"
                    }
                  ]
                },
                "count": 0
              },
              {
                "identifier": {
                  "value": "denominator-identifier"
                },
                "code": {
                  "coding": [
                    {
                      "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                      "code": "denominator",
                      "display": "Denominator"
                    }
                  ]
                },
                "count": 1
              },
              {
                "identifier": {
                  "value": "denominator-exclusions-identifier"
                },
                "code": {
                  "coding": [
                    {
                      "system": "http://terminology.hl7.org/CodeSystem/measure-population",
                      "code": "denominator-exclusion",
                      "display": "Denominator Exclusion"
                    }
                  ]
                },
                "count": 0
              }
            ],
            "measureScore": 0.0
          }
        ],
        "evaluatedResources": {
          "reference": "#b20ba55e-a72e-493d-868d-e9f6c007d11a"
        }
      },
      "request": {
        "method": "PUT",
        "url": "MeasureReport/measurereport-denom-EXM104-FHIR3"
      }
    },
    {
      "resource": {
        "resourceType": "Patient",
        "id": "denom-EXM104-FHIR3",
        "meta": {
          "profile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"
          ]
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race",
            "extension": [
              {
                "url": "ombCategory",
                "valueCoding": {
                  "system": "urn:oid:2.16.840.1.113883.6.238",
                  "code": "2054-5",
                  "display": "Black or African American"
                }
              }
            ]
          },
          {
            "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity",
            "extension": [
              {
                "url": "ombCategory",
                "valueCoding": {
                  "system": "urn:oid:2.16.840.1.113883.6.238",
                  "code": "2135-2",
                  "display": "Hispanic or Latino"
                }
              }
            ]
          }
        ],
        "identifier": [
          {
            "use": "usual",
            "type": {
              "coding": [
                {
                  "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                  "code": "MR",
                  "display": "Medical Record Number"
                }
              ]
            },
            "system": "http://hospital.smarthealthit.org",
            "value": "9999999910"
          }
        ],
        "name": [
          {
            "family": "Jones",
            "given": [
              "Rick"
            ]
          }
        ],
        "gender": "male",
        "birthDate": "1955-11-05"
      },
      "request": {
        "method": "PUT",
        "url": "Patient/denom-EXM104-FHIR3"
      }
    }
  ]
}