US Situational Awareness Framework for Reporting (US SAFR) Implementation Guide
1.0.0-ballot - STU 1 ballot United States of America flag

This page is part of the US Situational Awareness Framework for Reporting (US SAFR) Implementation Guide (v1.0.0-ballot: STU 1 Ballot 1) based on FHIR (HL7® FHIR® Standard) R4. No current official version has been published yet. For a full list of available versions, see the Directory of published versions

: Library - HRD Measure Example - JSON Representation

Page standards status: Informative

Raw json | Download

{
  "resourceType" : "Library",
  "id" : "HRDMeasureLibrary",
  "meta" : {
    "profile" : [
      🔗 "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-computablelibrary|1.0.0"
    ]
  },
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n<div>\n    <table class=\"grid dict\">\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Title: </b></th>\n            <td style=\"padding-left: 4px;\">Library - HRD Measure Example</td>\n        </tr>\n        \n\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Id: </b></th>\n            <td style=\"padding-left: 4px;\">HRDMeasureLibrary</td>\n        </tr>\n        \n\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Version: </b></th>\n            <td style=\"padding-left: 4px;\">1.0.0-ballot</td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Url: </b></th>\n            <td style=\"padding-left: 4px;\"><code>http://example.org/fhir/Library/HRDMeasureLibrary</code></td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\">\n                <b>\n                    \n                        \n                    \n                </b>\n            </th>\n            <td style=\"padding-left: 4px;\">\n                \n                <p style=\"margin-bottom: 5px;\">\n                    <span>urn:oid:2.16.840.1.113883.4.642.40.53.28.3</span>\n                </p>\n                \n            </td>\n        </tr>\n        \n\n        \n\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Type: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                    \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>system: </b> <span><a href=\"http://terminology.hl7.org/6.2.0/CodeSystem-library-type.html\">http://terminology.hl7.org/CodeSystem/library-type</a></span>\n                        </p>\n                        \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>code: </b> <span>logic-library</span>\n                        </p>\n                        \n                        \n                    \n                \n                \n            </td>\n        </tr>\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Date: </b></th>\n            <td style=\"padding-left: 4px;\">2025-03-13</td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Publisher: </b></th>\n            <td style=\"padding-left: 4px;\">HL7 International / Public Health</td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Description: </b></th>\n            <td style=\"padding-left: 4px;\"><div><p>This library contains CQL logic for evaluating structural measures related to hospital respiratory disease reporting capabilities</p>\n</div></td>\n        </tr>\n        \n\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Use Context: </b></th>\n            <td style=\"padding-left: 4px;\">\n                <table class=\"grid-dict\">\n                    <tr>\n                        <th><b>code</b></th>\n                        <th><b>value</b></th>\n                    </tr>\n                    \n                        <tr>\n                            <td>focus</td>\n                            <td/>\n                        </tr>\n                    \n                </table>\n            </td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Jurisdiction: </b></th>\n            <td style=\"padding-left: 4px;\">US</td>\n        </tr>\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Related Artifacts: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                \n                \n                <p><b>Dependencies</b></p>\n                <ul>\n                  \n                    <li><a href=\"http://fhir.org/guides/cqf/common/4.0.1/Library-FHIRHelpers.html\">http://fhir.org/guides/cqf/common/Library/FHIRHelpers</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1146.1123/expansion\">COVID_19 (Disorders) (ICD10CM)</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.102.12.1012/expansion\">Acute Tonsillitis</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1146.1124/expansion\">COVID_19 (Disorders) (SNOMED)version: null20240123)</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1146.1125/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1125</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.87/expansion\">Discharge To Acute Care Facility</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.5.1001/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.5.1001</a></li>\n                  \n                    <li><code>http://loinc.org|11516-2</code></li>\n                  \n                    <li><a href=\"http://hl7.org/fhir/R4/valueset-communication-category.html\">CommunicationCategory</a></li>\n                  \n                </ul>\n                \n                \n                \n                \n                \n            </td>\n        </tr>\n        \n\n        \n        <tr>\n          <th scope=\"row\"><b>Parameters: </b></th>\n          <td style=\"padding-left: 4px;\">\n            <table class=\"grid-dict\">\n              <tr><th><b>Name</b></th><th><b>Type</b></th><th><b>Min</b></th><th><b>Max</b></th><th><b>In/Out</b></th></tr>\n              \n                <tr><th>Measurement Period</th><th>Period</th><th>1</th><th>1</th><th>In</th></tr>\n              \n            </table>\n          </td>\n        </tr>\n        \n\n        \n        <tr>\n          <th scope=\"row\"><b>Data Requirements:</b></th>\n          <td style=\"padding-left: 4px;\">\n            <table class=\"grid-dict\">\n              <tr><th><b>Type</b></th><th><b>Profile</b></th><th><b>Must Support</b></th><th><b>Code Filter</b></th></tr>\n              \n                <tr>\n                  <th>Device</th>\n                  <th><a href=\"http://hl7.org/fhir/R4/device.html\">Device</a></th>\n                  <th/>\n                  <th>\n                    \n                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>type</span>\n                      </span>\n                      \n                      <br/>\n                      \n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1123</span>\n                      </span>\n                      \n                      \n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Device</th>\n                  <th><a href=\"http://hl7.org/fhir/R4/device.html\">Device</a></th>\n                  <th/>\n                  <th>\n                    \n                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>type</span>\n                      </span>\n                      \n                      <br/>\n                      \n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.102.12.1012</span>\n                      </span>\n                      \n                      \n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Device</th>\n                  <th><a href=\"http://hl7.org/fhir/R4/device.html\">Device</a></th>\n                  <th/>\n                  <th>\n                    \n                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>type</span>\n                      </span>\n                      \n                      <br/>\n                      \n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1124|20240123</span>\n                      </span>\n                      \n                      \n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Device</th>\n                  <th><a href=\"http://hl7.org/fhir/R4/device.html\">Device</a></th>\n                  <th/>\n                  <th>\n                    \n                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>type</span>\n                      </span>\n                      \n                      <br/>\n                      \n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1125</span>\n                      </span>\n                      \n                      \n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Device</th>\n                  <th><a href=\"http://hl7.org/fhir/R4/device.html\">Device</a></th>\n                  <th/>\n                  <th>\n                    \n                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>type</span>\n                      </span>\n                      \n                      <br/>\n                      \n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.5.1001</span>\n                      </span>\n                      \n                      \n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Location</th>\n                  <th><a href=\"http://hl7.org/fhir/R4/location.html\">Location</a></th>\n                  <th/>\n                  <th>\n                    \n                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>type</span>\n                      </span>\n                      \n                      <br/>\n                      \n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.87</span>\n                      </span>\n                      \n                      \n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Location</th>\n                  <th><a href=\"http://hl7.org/fhir/R4/location.html\">Location</a></th>\n                  <th/>\n                  <th>\n                    \n                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>physicalType.coding.code</span>\n                      </span>\n                      \n                      <br/>\n                      \n                      \n                      \n                      \n                          \n                          <p style=\"margin-bottom: 5px;\">\n                              <b>system: </b> <span><a href=\"http://terminology.hl7.org/6.2.0/CodeSystem-location-physical-type.html\">http://terminology.hl7.org/CodeSystem/location-physical-type</a></span>\n                          </p>\n                          \n                          \n                          <p style=\"margin-bottom: 5px;\">\n                              <b>code: </b> <span>bd</span>\n                          </p>\n                          \n                          \n                      \n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>DocumentReference</th>\n                  <th><a href=\"http://hl7.org/fhir/R4/documentreference.html\">DocumentReference</a></th>\n                  <th/>\n                  <th>\n                    \n                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>type.coding.code</span>\n                      </span>\n                      \n                      <br/>\n                      \n                      \n                      \n                      \n                          \n                          <p style=\"margin-bottom: 5px;\">\n                              <b>system: </b> <span><a href=\"https://loinc.org/\">http://loinc.org</a></span>\n                          </p>\n                          \n                          \n                          <p style=\"margin-bottom: 5px;\">\n                              <b>code: </b> <span>11516-2</span>\n                          </p>\n                          \n                          \n                      \n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Communication</th>\n                  <th><a href=\"http://hl7.org/fhir/R4/communication.html\">Communication</a></th>\n                  <th/>\n                  <th>\n                    \n                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>category.coding.code</span>\n                      </span>\n                      \n                      <br/>\n                      \n                      \n                      \n                      \n                          \n                          <p style=\"margin-bottom: 5px;\">\n                              <b>system: </b> <span><a href=\"http://terminology.hl7.org/6.2.0/CodeSystem-communication-category.html\">http://terminology.hl7.org/CodeSystem/communication-category</a></span>\n                          </p>\n                          \n                          \n                          <p style=\"margin-bottom: 5px;\">\n                              <b>code: </b> <span>notification</span>\n                          </p>\n                          \n                          \n                      \n                    \n                  </th>\n                </tr>\n              \n            </table>\n          </td>\n        </tr>\n        \n\n        \n        \n        <tr>\n          <td colspan=\"2\">\n            <table>\n              <tr><th><a id=\"cql-content\"><b>Content: </b></a> text/cql</th></tr>\n              <tr><td><pre><code class=\"language-cql\">library HRDMeasureStructureLibrary version '1.0.0'\n\nusing FHIR version '4.0.1'\n\ninclude FHIRHelpers version '4.0.1' called FHIRHelpers\n\n// Terminology definitions\ncodesystem &quot;LOINC&quot;: 'http://loinc.org'\ncodesystem &quot;SNOMED CT&quot;: 'http://snomed.info/sct&amp;\ncodesystem &quot;ICD-10-CM&quot;: 'http://hl7.org/fhir/sid/icd-10-cm'\n\n// Value sets\nvalueset &quot;Respiratory Specimen Collection Devices&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1125'\nvalueset &quot;COVID-19 Tests&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1123'\nvalueset &quot;Influenza Tests&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.102.12.1012'\nvalueset &quot;RSV Tests&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1124'\nvalueset &quot;ICU Location Types&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.87'\nvalueset &quot;Ventilator Device Types&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.5.1001'\n\n// Parameter for measurement period\nparameter &quot;Measurement Period&quot; Interval&lt;Date&gt;\n  default Interval[@2025-03-01, @2025-03-07]\n\ncontext Patient\n\n// STRUCTURE MEASURE COMPONENTS\n// For a structure measure, we assess capabilities, resources and organizational structures\n\n// 1. Test for the presence of respiratory testing capabilities\ndefine &quot;Has COVID-19 Testing Capability&quot;:\n  exists (\n    [Device] Device\n      where Device.type.coding in &quot;COVID-19 Tests&quot;\n        and Device.status = 'active'\n  )\n\ndefine &quot;Has Influenza Testing Capability&quot;:\n  exists (\n    [Device] Device\n      where Device.type.coding in &quot;Influenza Tests&quot;\n        and Device.status = 'active'\n  )\n\ndefine &quot;Has RSV Testing Capability&quot;:\n  exists (\n    [Device] Device\n      where Device.type.coding in &quot;RSV Tests&quot;\n        and Device.status = 'active'\n  )\n\ndefine &quot;Has Specimen Collection Capabilities&quot;:\n  exists (\n    [Device] Device\n      where Device.type.coding in &quot;Respiratory Specimen Collection Devices&quot;\n        and Device.status = 'active'\n  )\n\ndefine &quot;Has ICU Locations&quot;:\n  exists (\n    [Location] Location\n      where Location.type.coding in &quot;ICU Location Types&quot;\n        and Location.status = 'active'\n  )\n\ndefine &quot;Has Ventilator Resources&quot;:\n  exists (\n    [Device] Device\n      where Device.type.coding in &quot;Ventilator Device Types&quot;\n        and Device.status = 'active'\n  )\n\ndefine &quot;Has HRD Reporting Protocol&quot;:\n  exists (\n    [DocumentReference] D\n      where D.type.coding.code in {'11516-2'} // LOINC for infection control protocol\n        and D.status = 'current'\n        and D.description contains 'NHSN'\n        and D.description contains 'HRD'\n  )\n\n// CONTINUOUS VARIABLE CALCULATIONS\n\n// Hospital capacity metrics\ndefine &quot;Total Bed Capacity&quot;:\n  Sum(\n    [Location] Location\n      where Location.status = 'active'\n        and Location.physicalType.coding.code = 'bd'\n      return (\n        Location.extension E\n          where E.url = 'http://hl7.org/fhir/StructureDefinition/location-bed-count'\n          return E.valueInteger\n      ).valueInteger\n  )\n\ndefine &quot;ICU Bed Capacity&quot;:\n  Sum(\n    [Location] Location\n      where Location.status = 'active'\n        and Location.type.coding in &quot;ICU Location Types&quot;\n        and Location.physicalType.coding.code = 'bd'\n      return (\n        Location.extension E\n          where E.url = 'http://hl7.org/fhir/StructureDefinition/location-bed-count'\n          return E.valueInteger\n      ).valueInteger\n  )\n\ndefine &quot;Ventilator Count&quot;:\n  Count(\n    [Device] Device\n      where Device.type.coding in &quot;Ventilator Device Types&quot;\n        and Device.status = 'active'\n  )\n\n// Weekly reporting compliance and metrics\ndefine &quot;Reporting Weeks in Measurement Period&quot;:\n  Count(\n    expand{2025-03-01, @2025-03-07, week}\n  )\n\ndefine &quot;HRD Reports Submitted During Period&quot;:\n  Count(\n    [Communication] C\n      where C.category.coding.code in {'notification'}\n        and C.topic.text contains 'NHSN'\n        and C.topic.text contains 'HRD'\n        and C.sent during &quot;Measurement Period&quot;\n  )\n\ndefine &quot;Weekly Reporting Compliance&quot;:\n  &quot;HRD Reports Submitted During Period&quot; / &quot;Reporting Weeks in Measurement Period&quot;\n\n// Structural readiness scores\ndefine &quot;Has All Testing Capabilities&quot;:\n  if (&quot;Has COVID-19 Testing Capability&quot; and &quot;Has Influenza Testing Capability&quot; and &quot;Has RSV Testing Capability&quot;)\n    then 1\n    else 0\n\ndefine &quot;Has Required Reporting Structure&quot;:\n  if (&quot;Has HRD Reporting Protocol&quot;) \n    then 1\n    else 0\n\n// Continuous variable for structural measure assessment\ndefine &quot;Structural Readiness Score&quot;:\n  (&quot;Has COVID-19 Testing Capability&quot; as Integer +\n   &quot;Has Influenza Testing Capability&quot; as Integer +\n   &quot;Has RSV Testing Capability&quot; as Integer +\n   &quot;Has Specimen Collection Capabilities&quot; as Integer +\n   &quot;Has ICU Locations&quot; as Integer +\n   &quot;Has Ventilator Resources&quot; as Integer +\n    &quot;Has HRD Reporting Protocol&quot; as Integer) / 7.0 * 100.0\n\n// Main measure calculation - now focusing on structural components and their ratings\ndefine &quot;Measure Population&quot;:\n  true\n\ndefine &quot;Measure Observation&quot;:\n  &quot;Structural Readiness Score&quot;</code></pre></td></tr>\n            </table>\n          </td>\n        </tr>\n        \n        \n        \n    </table>\n</div>\n</div>"
  },
  "url" : "http://example.org/fhir/Library/HRDMeasureLibrary",
  "identifier" : [
    {
      "system" : "urn:ietf:rfc:3986",
      "value" : "urn:oid:2.16.840.1.113883.4.642.40.53.28.3"
    }
  ],
  "version" : "1.0.0-ballot",
  "name" : "HRDMeasureLibrary",
  "title" : "Library - HRD Measure Example",
  "status" : "active",
  "experimental" : false,
  "type" : {
    "coding" : [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/library-type",
        "code" : "logic-library"
      }
    ]
  },
  "date" : "2025-03-13",
  "publisher" : "HL7 International / Public Health",
  "contact" : [
    {
      "name" : "HL7 International / Public Health",
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/pher"
        }
      ]
    }
  ],
  "description" : "This library contains CQL logic for evaluating structural measures related to hospital respiratory disease reporting capabilities",
  "useContext" : [
    {
      "code" : {
        "system" : "http://terminology.hl7.org/CodeSystem/usage-context-type",
        "code" : "focus"
      },
      "valueCodeableConcept" : {
        "coding" : [
          {
            "system" : "http://snomed.info/sct",
            "code" : "64572001",
            "display" : "Disease"
          }
        ]
      }
    }
  ],
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "urn:iso:std:iso:3166",
          "code" : "US",
          "display" : "United States of America"
        }
      ]
    }
  ],
  "relatedArtifact" : [
    {
      "type" : "depends-on",
      "display" : "FHIR Helpers",
      "resource" : "http://fhir.org/guides/cqf/common/Library/FHIRHelpers"
    },
    {
      "type" : "depends-on",
      "display" : "COVID-19 Tests ValueSet",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1123"
    },
    {
      "type" : "depends-on",
      "display" : "Influenza Tests ValueSet",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.102.12.1012"
    },
    {
      "type" : "depends-on",
      "display" : "RSV Tests ValueSet",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1124|20240123"
    },
    {
      "type" : "depends-on",
      "display" : "Respiratory Specimen Collection Devices ValueSet",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1125"
    },
    {
      "type" : "depends-on",
      "display" : "ICU Location Types ValueSet",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.87"
    },
    {
      "type" : "depends-on",
      "display" : "Ventilator Device Types ValueSet",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.5.1001"
    },
    {
      "type" : "depends-on",
      "display" : "DocumentReference Type ValueSet",
      "resource" : "http://loinc.org|11516-2"
    },
    {
      "type" : "depends-on",
      "display" : "Notification Communication Category",
      "resource" : "http://hl7.org/fhir/ValueSet/communication-category"
    }
  ],
  "parameter" : [
    {
      "name" : "Measurement Period",
      "use" : "in",
      "min" : 1,
      "max" : "1",
      "type" : "Period"
    }
  ],
  "dataRequirement" : [
    {
      "type" : "Device",
      "profile" : [
        🔗 "http://hl7.org/fhir/StructureDefinition/Device"
      ],
      "codeFilter" : [
        {
          "path" : "type",
          "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1123"
        }
      ]
    },
    {
      "type" : "Device",
      "profile" : [
        🔗 "http://hl7.org/fhir/StructureDefinition/Device"
      ],
      "codeFilter" : [
        {
          "path" : "type",
          "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.102.12.1012"
        }
      ]
    },
    {
      "type" : "Device",
      "profile" : [
        🔗 "http://hl7.org/fhir/StructureDefinition/Device"
      ],
      "codeFilter" : [
        {
          "path" : "type",
          "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1124|20240123"
        }
      ]
    },
    {
      "type" : "Device",
      "profile" : [
        🔗 "http://hl7.org/fhir/StructureDefinition/Device"
      ],
      "codeFilter" : [
        {
          "path" : "type",
          "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1125"
        }
      ]
    },
    {
      "type" : "Device",
      "profile" : [
        🔗 "http://hl7.org/fhir/StructureDefinition/Device"
      ],
      "codeFilter" : [
        {
          "path" : "type",
          "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.5.1001"
        }
      ]
    },
    {
      "type" : "Location",
      "profile" : [
        🔗 "http://hl7.org/fhir/StructureDefinition/Location"
      ],
      "codeFilter" : [
        {
          "path" : "type",
          "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.87"
        }
      ]
    },
    {
      "type" : "Location",
      "profile" : [
        🔗 "http://hl7.org/fhir/StructureDefinition/Location"
      ],
      "codeFilter" : [
        {
          "path" : "physicalType.coding.code",
          "code" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/location-physical-type",
              "version" : "2.0.1",
              "code" : "bd"
            }
          ]
        }
      ]
    },
    {
      "type" : "DocumentReference",
      "profile" : [
        🔗 "http://hl7.org/fhir/StructureDefinition/DocumentReference"
      ],
      "codeFilter" : [
        {
          "path" : "type.coding.code",
          "code" : [
            {
              "system" : "http://loinc.org",
              "code" : "11516-2"
            }
          ]
        }
      ]
    },
    {
      "type" : "Communication",
      "profile" : [
        🔗 "http://hl7.org/fhir/StructureDefinition/Communication"
      ],
      "codeFilter" : [
        {
          "path" : "category.coding.code",
          "code" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/communication-category",
              "code" : "notification"
            }
          ]
        }
      ],
      "dateFilter" : [
        {
          "searchParam" : "date"
        }
      ]
    }
  ],
  "content" : [
    {
      "contentType" : "text/cql",
      "data" : "bGlicmFyeSBIUkRNZWFzdXJlU3RydWN0dXJlTGlicmFyeSB2ZXJzaW9uICcxLjAuMCcKCnVzaW5nIEZISVIgdmVyc2lvbiAnNC4wLjEnCgppbmNsdWRlIEZISVJIZWxwZXJzIHZlcnNpb24gJzQuMC4xJyBjYWxsZWQgRkhJUkhlbHBlcnMKCi8vIFRlcm1pbm9sb2d5IGRlZmluaXRpb25zCmNvZGVzeXN0ZW0gIkxPSU5DIjogJ2h0dHA6Ly9sb2luYy5vcmcnCmNvZGVzeXN0ZW0gIlNOT01FRCBDVCI6ICdodHRwOi8vc25vbWVkLmluZm8vc2N0Jgpjb2Rlc3lzdGVtICJJQ0QtMTAtQ00iOiAnaHR0cDovL2hsNy5vcmcvZmhpci9zaWQvaWNkLTEwLWNtJwoKLy8gVmFsdWUgc2V0cwp2YWx1ZXNldCAiUmVzcGlyYXRvcnkgU3BlY2ltZW4gQ29sbGVjdGlvbiBEZXZpY2VzIjogJ2h0dHA6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