eCQM QICore Content Implementation Guide
2023.0.0 - CI Build

eCQM QICore Content Implementation Guide, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2023.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/ecqm-content-qicore-2023/ and changes regularly. See the Directory of published versions

## Library: AttributionModel (Experimental)

Official URL: http://ecqi.healthit.gov/ecqms/Library/AttributionModel | Version: 0.1.0
Draft as of 2026-05-13 | Computable Name: AttributionModel

Id: | AttributionModel
Version: | 0.1.0
Url: | AttributionModel
Name: | AttributionModel
Status: | draft
Experimental: | true
Type: | system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library
Date: | 2026-05-13 23:09:13+0000
Related Artifacts: | Dependencies `http://hl7.org/fhir/Library/QICore-ModelInfo` FHIRHelpers version: 4.3.000
Parameters: |
Name | Type | Min | Max | In/Out
--- | --- | --- | --- | ---
Measurement Period | Period | 0 | 1 | In
Provider | string | 0 | 1 | In
Patient | Resource | 0 | 1 | Out
Data Requirements: |
Type | Profile | MS | Code Filter
--- | --- | --- | ---
Patient | http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient |  |
Content: text/cql
    library AttributionModel version '0.1.0'

    using QICore version '4.1.1'

    include FHIRHelpers version '4.3.000'

    parameter "Measurement Period" Interval<DateTime> default Interval[@2023-01-01T00:00:00.0Z, @2023-12-31T23:59:59.999Z]
    parameter "Provider" String

    context Patient

    define fluent function isAttributable(patient Patient):
      "Provider" is not null implies Patient.managingOrganization.reference.endsWith("Provider")

    define fluent function isAttributable(encounter Encounter):
      encounter.period during "Measurement Period"
        and "Provider" is not null implies encounter.serviceProvider.reference.endsWith("Provider")
Content: application/elm+xml
    Encoded data (17168 characters)