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

US Situational Awareness Framework for Reporting (US SAFR) Implementation Guide, published by HL7 International / Public Health. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/us-safr/ and changes regularly. See the Directory of published versions

: Library - HRD Measure Example - XML Representation

Page standards status: Informative

Raw xml | Download


<Library xmlns="http://hl7.org/fhir">
  <id value="HRDMeasureLibrary"/>
  <meta>
    <profile
             value="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-computablelibrary|1.0.0"/>
  </meta>
  <text>
    <status value="extensions"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
  <table class="narrative-table">
    <tbody>
<tr>


<th colspan="2" scope="row" class="row-header">Metadata</th>


</tr>

<tr>


<th scope="row" class="row-header">Title</th>



<td class="content-container">Library - HRD Measure Example</td>


</tr>



<tr>


<th scope="row" class="row-header">Version</th>



<td class="content-container">1.0.0</td>


</tr>







  
<tr>


<th scope="row" class="row-header">Identifier</th>



<td class="content-container">urn:oid:2.16.840.1.113883.4.642.40.53.28.3</td>


</tr>









<tr>


<th scope="row" class="row-header">Use Context</th>



<td class="content-container">
    focus from <a href="http://terminology.hl7.org/6.5.0/CodeSystem-usage-context-type.html">http://terminology.hl7.org/CodeSystem/usage-context-type</a> 

 = 
    Disease


</td>


</tr>


<tr>


<th scope="row" class="row-header">Jurisdiction</th>



<td class="content-container">
    United States of America


</td>


</tr>








<tr>


<th scope="row" class="row-header">Steward (Publisher)</th>



<td class="content-container">HL7 International / Public Health</td>


</tr>



<tr>


<th scope="row" class="row-header">Steward Contact</th>



<td class="content-container">HL7 International / Public Health</td>


</tr>







<tr>


<th scope="row" class="row-header">Description</th>



<td class="content-container"><div><p>This library contains CQL logic for evaluating structural measures related to hospital respiratory disease reporting capabilities</p>
</div></td>


</tr>






<tr>


<th scope="row" class="row-header">Type</th>



<td class="content-container">
    logic-library from <a href="http://terminology.hl7.org/6.5.0/CodeSystem-library-type.html">http://terminology.hl7.org/CodeSystem/library-type</a> 


</td>


</tr>


<tr>
  

<th scope="row" class="row-header">Parameter</th>


  <td class="content-container">
    
    <em>Name</em>: Measurement Period
    
    
    <br/>
    
    
    <em>Use</em>: In
    
    
    <br/>
    
    
    <em>Min Cardinality</em>: 1
    
    
    <br/>
    
    
    <em>Max Cardinality</em>: 1
    
    
    <br/>
    
    
    <em>Type</em>: Period
    
  </td>
</tr>


<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Device
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/R4/device.html">Device</a>
    <br/>        
  
   
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: type</span>
    <br/>
  
  
  
    <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1146.1123/expansion">COVID_19 (Disorders) (ICD10CM)</a>
    <br/> 
  
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Device
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/R4/device.html">Device</a>
    <br/>        
  
   
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: type</span>
    <br/>
  
  
  
    <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.102.12.1012/expansion">Acute Tonsillitis</a>
    <br/> 
  
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Device
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/R4/device.html">Device</a>
    <br/>        
  
   
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: type</span>
    <br/>
  
  
  
    <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1146.1124|20240123/expansion">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1124|20240123</a>
    <br/> 
  
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Device
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/R4/device.html">Device</a>
    <br/>        
  
   
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: type</span>
    <br/>
  
  
  
    <span class="tab-one"><em>ValueSet</em>:</span> <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>
    <br/> 
  
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Device
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/R4/device.html">Device</a>
    <br/>        
  
   
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: type</span>
    <br/>
  
  
  
    <span class="tab-one"><em>ValueSet</em>:</span> <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>
    <br/> 
  
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Location
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/R4/location.html">Location</a>
    <br/>        
  
   
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: type</span>
    <br/>
  
  
  
    <span class="tab-one"><em>ValueSet</em>:</span> <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>
    <br/> 
  
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Location
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/R4/location.html">Location</a>
    <br/>        
  
   
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: physicalType.coding.code</span>
    <br/>
  
  
  
  
    <span class="tab-one"><em>Code(s)</em>: 
    
      
      <a href="http://terminology.hl7.org/6.5.0/CodeSystem-location-physical-type.html#location-physical-type-bd">Location type bd</a>: Bed (version = 2.0.1 )
      
    
    </span>
    <br/>
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: DocumentReference
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/R4/documentreference.html">DocumentReference</a>
    <br/>        
  
   
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: type.coding.code</span>
    <br/>
  
  
  
  
    <span class="tab-one"><em>Code(s)</em>: 
    
      
      <a href="https://loinc.org/11516-2">LOINC 11516-2</a>: Physician Episode of care medical records
      
    
    </span>
    <br/>
  
  
   
  </td>
</tr>

<tr>
  <th scope="row" class="row-header">Data Requirement</th>
  <td class="content-container">
    <em>Type</em>: Communication
    <br/>
  
    <em>Profile(s)</em>: 
  
    <a href="http://hl7.org/fhir/R4/communication.html">Communication</a>
    <br/>        
  
   
   
  
    <em>Code Filter(s)</em>: 
    <br/>
  
  
    <span class="tab-one"><em>Path</em>: category.coding.code</span>
    <br/>
  
  
  
  
    <span class="tab-one"><em>Code(s)</em>: 
    
      
      <a href="http://terminology.hl7.org/6.5.0/CodeSystem-communication-category.html#communication-category-notification">CommunicationCategory notification</a>: Notification
      
    
    </span>
    <br/>
  
  
   
  </td>
</tr>


  <tr>


<th colspan="2" scope="row" class="row-header">Library Content</th>


</tr>
  
    
    <tr>
      <th scope="row" class="row-header">CQL Content</th>
      <td>
        <a name="cql-content"> </a>
        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">library HRDMeasureStructureLibrary version '1.0.0'

using FHIR version '4.0.1'

include FHIRHelpers version '4.0.1' called FHIRHelpers

// Terminology definitions
codesystem &quot;LOINC&quot;: 'http://loinc.org'
codesystem &quot;SNOMED CT&quot;: 'http://snomed.info/sct&amp;
codesystem &quot;ICD-10-CM&quot;: 'http://hl7.org/fhir/sid/icd-10-cm'

// Value sets
valueset &quot;Respiratory Specimen Collection Devices&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1125'
valueset &quot;COVID-19 Tests&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1123'
valueset &quot;Influenza Tests&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.102.12.1012'
valueset &quot;RSV Tests&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1124'
valueset &quot;ICU Location Types&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.87'
valueset &quot;Ventilator Device Types&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.5.1001'

// Parameter for measurement period
parameter &quot;Measurement Period&quot; Interval&lt;Date&gt;
  default Interval[@2025-03-01, @2025-03-07]

context Patient

// STRUCTURE MEASURE COMPONENTS
// For a structure measure, we assess capabilities, resources and organizational structures

// 1. Test for the presence of respiratory testing capabilities
define &quot;Has COVID-19 Testing Capability&quot;:
  exists (
    [Device] Device
      where Device.type.coding in &quot;COVID-19 Tests&quot;
        and Device.status = 'active'
  )

define &quot;Has Influenza Testing Capability&quot;:
  exists (
    [Device] Device
      where Device.type.coding in &quot;Influenza Tests&quot;
        and Device.status = 'active'
  )

define &quot;Has RSV Testing Capability&quot;:
  exists (
    [Device] Device
      where Device.type.coding in &quot;RSV Tests&quot;
        and Device.status = 'active'
  )

define &quot;Has Specimen Collection Capabilities&quot;:
  exists (
    [Device] Device
      where Device.type.coding in &quot;Respiratory Specimen Collection Devices&quot;
        and Device.status = 'active'
  )

define &quot;Has ICU Locations&quot;:
  exists (
    [Location] Location
      where Location.type.coding in &quot;ICU Location Types&quot;
        and Location.status = 'active'
  )

define &quot;Has Ventilator Resources&quot;:
  exists (
    [Device] Device
      where Device.type.coding in &quot;Ventilator Device Types&quot;
        and Device.status = 'active'
  )

define &quot;Has HRD Reporting Protocol&quot;:
  exists (
    [DocumentReference] D
      where D.type.coding.code in {'11516-2'} // LOINC for infection control protocol
        and D.status = 'current'
        and D.description contains 'NHSN'
        and D.description contains 'HRD'
  )

// CONTINUOUS VARIABLE CALCULATIONS

// Hospital capacity metrics
define &quot;Total Bed Capacity&quot;:
  Sum(
    [Location] Location
      where Location.status = 'active'
        and Location.physicalType.coding.code = 'bd'
      return (
        Location.extension E
          where E.url = 'http://hl7.org/fhir/StructureDefinition/location-bed-count'
          return E.valueInteger
      ).valueInteger
  )

define &quot;ICU Bed Capacity&quot;:
  Sum(
    [Location] Location
      where Location.status = 'active'
        and Location.type.coding in &quot;ICU Location Types&quot;
        and Location.physicalType.coding.code = 'bd'
      return (
        Location.extension E
          where E.url = 'http://hl7.org/fhir/StructureDefinition/location-bed-count'
          return E.valueInteger
      ).valueInteger
  )

define &quot;Ventilator Count&quot;:
  Count(
    [Device] Device
      where Device.type.coding in &quot;Ventilator Device Types&quot;
        and Device.status = 'active'
  )

// Weekly reporting compliance and metrics
define &quot;Reporting Weeks in Measurement Period&quot;:
  Count(
    expand{2025-03-01, @2025-03-07, week}
  )

define &quot;HRD Reports Submitted During Period&quot;:
  Count(
    [Communication] C
      where C.category.coding.code in {'notification'}
        and C.topic.text contains 'NHSN'
        and C.topic.text contains 'HRD'
        and C.sent during &quot;Measurement Period&quot;
  )

define &quot;Weekly Reporting Compliance&quot;:
  &quot;HRD Reports Submitted During Period&quot; / &quot;Reporting Weeks in Measurement Period&quot;

// Structural readiness scores
define &quot;Has All Testing Capabilities&quot;:
  if (&quot;Has COVID-19 Testing Capability&quot; and &quot;Has Influenza Testing Capability&quot; and &quot;Has RSV Testing Capability&quot;)
    then 1
    else 0

define &quot;Has Required Reporting Structure&quot;:
  if (&quot;Has HRD Reporting Protocol&quot;) 
    then 1
    else 0

// Continuous variable for structural measure assessment
define &quot;Structural Readiness Score&quot;:
  (&quot;Has COVID-19 Testing Capability&quot; as Integer +
   &quot;Has Influenza Testing Capability&quot; as Integer +
   &quot;Has RSV Testing Capability&quot; as Integer +
   &quot;Has Specimen Collection Capabilities&quot; as Integer +
   &quot;Has ICU Locations&quot; as Integer +
   &quot;Has Ventilator Resources&quot; as Integer +
    &quot;Has HRD Reporting Protocol&quot; as Integer) / 7.0 * 100.0

// Main measure calculation - now focusing on structural components and their ratings
define &quot;Measure Population&quot;:
  true

define &quot;Measure Observation&quot;:
  &quot;Structural Readiness Score&quot;</code></pre>
      </td>
    </tr>
    
    
    
  

<tr>
  <th colspan="2" scope="row" class="row-header">Generated using version 0.5.1-cibuild of the sample-content-ig Liquid templates</th>
</tr>

    </tbody>
  </table>
</div>
  </text>
  <url value="http://hl7.org/fhir/us-safr/Library/HRDMeasureLibrary"/>
  <identifier>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:2.16.840.1.113883.4.642.40.53.28.3"/>
  </identifier>
  <version value="1.0.0"/>
  <name value="HRDMeasureLibrary"/>
  <title value="Library - HRD Measure Example"/>
  <status value="active"/>
  <experimental value="false"/>
  <type>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/library-type"/>
      <code value="logic-library"/>
    </coding>
  </type>
  <date value="2025-03-13"/>
  <publisher value="HL7 International / Public Health"/>
  <contact>
    <name value="HL7 International / Public Health"/>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/pher"/>
    </telecom>
  </contact>
  <description
               value="This library contains CQL logic for evaluating structural measures related to hospital respiratory disease reporting capabilities"/>
  <useContext>
    <code>
      <system
              value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
      <code value="focus"/>
    </code>
    <valueCodeableConcept>
      <coding>
        <system value="http://snomed.info/sct"/>
        <code value="64572001"/>
        <display value="Disease"/>
      </coding>
    </valueCodeableConcept>
  </useContext>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="US"/>
      <display value="United States of America"/>
    </coding>
  </jurisdiction>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="FHIR Helpers"/>
    <resource value="http://fhir.org/guides/cqf/common/Library/FHIRHelpers"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="COVID-19 Tests ValueSet"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1123"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Influenza Tests ValueSet"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.102.12.1012"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="RSV Tests ValueSet"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1124|20240123"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Respiratory Specimen Collection Devices ValueSet"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1125"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="ICU Location Types ValueSet"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.87"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Ventilator Device Types ValueSet"/>
    <resource
              value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.5.1001"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="DocumentReference Type ValueSet"/>
    <resource value="http://loinc.org|11516-2"/>
  </relatedArtifact>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="Notification Communication Category"/>
    <resource value="http://hl7.org/fhir/ValueSet/communication-category"/>
  </relatedArtifact>
  <parameter>
    <name value="Measurement Period"/>
    <use value="in"/>
    <min value="1"/>
    <max value="1"/>
    <type value="Period"/>
  </parameter>
  <dataRequirement>
    <type value="Device"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Device"/>
    <codeFilter>
      <path value="type"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1123"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Device"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Device"/>
    <codeFilter>
      <path value="type"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.102.12.1012"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Device"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Device"/>
    <codeFilter>
      <path value="type"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1124|20240123"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Device"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Device"/>
    <codeFilter>
      <path value="type"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1125"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Device"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Device"/>
    <codeFilter>
      <path value="type"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.5.1001"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Location"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Location"/>
    <codeFilter>
      <path value="type"/>
      <valueSet
                value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.87"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Location"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Location"/>
    <codeFilter>
      <path value="physicalType.coding.code"/>
      <code>
        <system
                value="http://terminology.hl7.org/CodeSystem/location-physical-type"/>
        <version value="2.0.1"/>
        <code value="bd"/>
      </code>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="DocumentReference"/>
    <profile
             value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/>
    <codeFilter>
      <path value="type.coding.code"/>
      <code>
        <system value="http://loinc.org"/>
        <code value="11516-2"/>
      </code>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Communication"/>
    <profile value="http://hl7.org/fhir/StructureDefinition/Communication"/>
    <codeFilter>
      <path value="category.coding.code"/>
      <code>
        <system
                value="http://terminology.hl7.org/CodeSystem/communication-category"/>
        <code value="notification"/>
      </code>
    </codeFilter>
    <dateFilter>
      <searchParam value="date"/>
    </dateFilter>
  </dataRequirement>
  <content>
    <contentType value="text/cql"/>
    <data
          value="bGlicmFyeSBIUkRNZWFzdXJlU3RydWN0dXJlTGlicmFyeSB2ZXJzaW9uICcxLjAuMCcKCnVzaW5nIEZISVIgdmVyc2lvbiAnNC4wLjEnCgppbmNsdWRlIEZISVJIZWxwZXJzIHZlcnNpb24gJzQuMC4xJyBjYWxsZWQgRkhJUkhlbHBlcnMKCi8vIFRlcm1pbm9sb2d5IGRlZmluaXRpb25zCmNvZGVzeXN0ZW0gIkxPSU5DIjogJ2h0dHA6Ly9sb2lu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