# Multi-provider Patient Patient Level Example - eCQM QICore Content Implementation Guide v2023.0.0

* [**Table of Contents**](toc.md)
* [**Artifacts Summary**](artifacts.md)
* **Multi-provider Patient Patient Level Example**

## Measure: Multi-provider Patient Patient Level Example (Experimental) 

| | |
| :--- | :--- |
| *Official URL*:http://ecqi.healthit.gov/ecqms/Measure/MPPPatientLevel | *Version*:0.8.000 |
| Draft as of 2023-10-27 | *Computable Name*:MPPPatientLevel |
| **Usage:**Program: EP/EC | |

 
Example measure supporting testing of the multi-provider patient scenario for patient-based measures 

 
To support testing of approaches to multi-provider patient scenarios with a patient-based measure 

* **Logic Definitions:**: **Id: **
  * * **Group**: 64403d17d4d7050edabb0562
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: MPPPatientLevel
  * **Name**: Has Qualifying Encounter During First 240 Days of Measurement Period
* **Library Name**: 
  * **Name**: ````define "Has Qualifying Encounter During First 240 Days of Measurement Period": exists ( ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Annual Wellness Visit"] union ["Encounter": "Face-to-Face Interaction"] union ["Encounter": "Home Healthcare Services"] union ["Encounter": "Preventive Care Services Established Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services Initial Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services, Initial Office Visit, 0 to 17"] union ["Encounter": "Preventive Care, Established Office Visit, 0 to 17"] union ["Encounter": "Telephone Visits"] ) QualifyingEncounter where QualifyingEncounter.period during day of Interval[start of "Measurement Period", start of "Measurement Period" + 240 days] and QualifyingEncounter.isAttributable() )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: MPPPatientLevel
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Has Qualifying Encounter During First 240 Days of Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: AttributionModel
  * **Name**: isAttributable
* **Library Name**: 
  * **Name**: ````define fluent function isAttributable(encounter Encounter): encounter.period during "Measurement Period" and "Provider" is not null implies encounter.serviceProvider.reference.endsWith("Provider")````: MPPPatientLevel
* **Logic Definitions:**: **Download cql: **
  * * **Group**: 64403d17d4d7050edabb0562
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: MPPPatientLevel
  * **Name**: Has Qualifying Encounter During First 240 Days of Measurement Period
* **Library Name**: 
  * **Name**: ````define "Has Qualifying Encounter During First 240 Days of Measurement Period": exists ( ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Annual Wellness Visit"] union ["Encounter": "Face-to-Face Interaction"] union ["Encounter": "Home Healthcare Services"] union ["Encounter": "Preventive Care Services Established Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services Initial Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services, Initial Office Visit, 0 to 17"] union ["Encounter": "Preventive Care, Established Office Visit, 0 to 17"] union ["Encounter": "Telephone Visits"] ) QualifyingEncounter where QualifyingEncounter.period during day of Interval[start of "Measurement Period", start of "Measurement Period" + 240 days] and QualifyingEncounter.isAttributable() )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: MPPPatientLevel
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Has Qualifying Encounter During First 240 Days of Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: AttributionModel
  * **Name**: isAttributable
* **Library Name**: 
  * **Name**: ````define fluent function isAttributable(encounter Encounter): encounter.period during "Measurement Period" and "Provider" is not null implies encounter.serviceProvider.reference.endsWith("Provider")````: [MPPPatientLevel.cql](Library-MPPPatientLevel.cql)
* **Logic Definitions:**: **Version: **
  * * **Group**: 64403d17d4d7050edabb0562
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: MPPPatientLevel
  * **Name**: Has Qualifying Encounter During First 240 Days of Measurement Period
* **Library Name**: 
  * **Name**: ````define "Has Qualifying Encounter During First 240 Days of Measurement Period": exists ( ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Annual Wellness Visit"] union ["Encounter": "Face-to-Face Interaction"] union ["Encounter": "Home Healthcare Services"] union ["Encounter": "Preventive Care Services Established Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services Initial Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services, Initial Office Visit, 0 to 17"] union ["Encounter": "Preventive Care, Established Office Visit, 0 to 17"] union ["Encounter": "Telephone Visits"] ) QualifyingEncounter where QualifyingEncounter.period during day of Interval[start of "Measurement Period", start of "Measurement Period" + 240 days] and QualifyingEncounter.isAttributable() )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: MPPPatientLevel
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Has Qualifying Encounter During First 240 Days of Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: AttributionModel
  * **Name**: isAttributable
* **Library Name**: 
  * **Name**: ````define fluent function isAttributable(encounter Encounter): encounter.period during "Measurement Period" and "Provider" is not null implies encounter.serviceProvider.reference.endsWith("Provider")````: 0.8.000
* **Logic Definitions:**: **Url: **
  * * **Group**: 64403d17d4d7050edabb0562
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: MPPPatientLevel
  * **Name**: Has Qualifying Encounter During First 240 Days of Measurement Period
* **Library Name**: 
  * **Name**: ````define "Has Qualifying Encounter During First 240 Days of Measurement Period": exists ( ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Annual Wellness Visit"] union ["Encounter": "Face-to-Face Interaction"] union ["Encounter": "Home Healthcare Services"] union ["Encounter": "Preventive Care Services Established Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services Initial Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services, Initial Office Visit, 0 to 17"] union ["Encounter": "Preventive Care, Established Office Visit, 0 to 17"] union ["Encounter": "Telephone Visits"] ) QualifyingEncounter where QualifyingEncounter.period during day of Interval[start of "Measurement Period", start of "Measurement Period" + 240 days] and QualifyingEncounter.isAttributable() )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: MPPPatientLevel
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Has Qualifying Encounter During First 240 Days of Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: AttributionModel
  * **Name**: isAttributable
* **Library Name**: 
  * **Name**: ````define fluent function isAttributable(encounter Encounter): encounter.period during "Measurement Period" and "Provider" is not null implies encounter.serviceProvider.reference.endsWith("Provider")````: [Multi-provider Patient Patient Level Example](Measure-MPPPatientLevel.md)
* **Logic Definitions:**: **Effective Period: **
  * * **Group**: 64403d17d4d7050edabb0562
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: MPPPatientLevel
  * **Name**: Has Qualifying Encounter During First 240 Days of Measurement Period
* **Library Name**: 
  * **Name**: ````define "Has Qualifying Encounter During First 240 Days of Measurement Period": exists ( ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Annual Wellness Visit"] union ["Encounter": "Face-to-Face Interaction"] union ["Encounter": "Home Healthcare Services"] union ["Encounter": "Preventive Care Services Established Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services Initial Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services, Initial Office Visit, 0 to 17"] union ["Encounter": "Preventive Care, Established Office Visit, 0 to 17"] union ["Encounter": "Telephone Visits"] ) QualifyingEncounter where QualifyingEncounter.period during day of Interval[start of "Measurement Period", start of "Measurement Period" + 240 days] and QualifyingEncounter.isAttributable() )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: MPPPatientLevel
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Has Qualifying Encounter During First 240 Days of Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: AttributionModel
  * **Name**: isAttributable
* **Library Name**: 
  * **Name**: ````define fluent function isAttributable(encounter Encounter): encounter.period during "Measurement Period" and "Provider" is not null implies encounter.serviceProvider.reference.endsWith("Provider")````: 2024-01-01 ..2024-12-31
* **Logic Definitions:**: **Status: **
  * * **Group**: 64403d17d4d7050edabb0562
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: MPPPatientLevel
  * **Name**: Has Qualifying Encounter During First 240 Days of Measurement Period
* **Library Name**: 
  * **Name**: ````define "Has Qualifying Encounter During First 240 Days of Measurement Period": exists ( ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Annual Wellness Visit"] union ["Encounter": "Face-to-Face Interaction"] union ["Encounter": "Home Healthcare Services"] union ["Encounter": "Preventive Care Services Established Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services Initial Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services, Initial Office Visit, 0 to 17"] union ["Encounter": "Preventive Care, Established Office Visit, 0 to 17"] union ["Encounter": "Telephone Visits"] ) QualifyingEncounter where QualifyingEncounter.period during day of Interval[start of "Measurement Period", start of "Measurement Period" + 240 days] and QualifyingEncounter.isAttributable() )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: MPPPatientLevel
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Has Qualifying Encounter During First 240 Days of Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: AttributionModel
  * **Name**: isAttributable
* **Library Name**: 
  * **Name**: ````define fluent function isAttributable(encounter Encounter): encounter.period during "Measurement Period" and "Provider" is not null implies encounter.serviceProvider.reference.endsWith("Provider")````: draft
* **Logic Definitions:**: **Experimental: **
  * * **Group**: 64403d17d4d7050edabb0562
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: MPPPatientLevel
  * **Name**: Has Qualifying Encounter During First 240 Days of Measurement Period
* **Library Name**: 
  * **Name**: ````define "Has Qualifying Encounter During First 240 Days of Measurement Period": exists ( ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Annual Wellness Visit"] union ["Encounter": "Face-to-Face Interaction"] union ["Encounter": "Home Healthcare Services"] union ["Encounter": "Preventive Care Services Established Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services Initial Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services, Initial Office Visit, 0 to 17"] union ["Encounter": "Preventive Care, Established Office Visit, 0 to 17"] union ["Encounter": "Telephone Visits"] ) QualifyingEncounter where QualifyingEncounter.period during day of Interval[start of "Measurement Period", start of "Measurement Period" + 240 days] and QualifyingEncounter.isAttributable() )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: MPPPatientLevel
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Has Qualifying Encounter During First 240 Days of Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: AttributionModel
  * **Name**: isAttributable
* **Library Name**: 
  * **Name**: ````define fluent function isAttributable(encounter Encounter): encounter.period during "Measurement Period" and "Provider" is not null implies encounter.serviceProvider.reference.endsWith("Provider")````: true
* **Logic Definitions:**: **Date: **
  * * **Group**: 64403d17d4d7050edabb0562
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: MPPPatientLevel
  * **Name**: Has Qualifying Encounter During First 240 Days of Measurement Period
* **Library Name**: 
  * **Name**: ````define "Has Qualifying Encounter During First 240 Days of Measurement Period": exists ( ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Annual Wellness Visit"] union ["Encounter": "Face-to-Face Interaction"] union ["Encounter": "Home Healthcare Services"] union ["Encounter": "Preventive Care Services Established Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services Initial Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services, Initial Office Visit, 0 to 17"] union ["Encounter": "Preventive Care, Established Office Visit, 0 to 17"] union ["Encounter": "Telephone Visits"] ) QualifyingEncounter where QualifyingEncounter.period during day of Interval[start of "Measurement Period", start of "Measurement Period" + 240 days] and QualifyingEncounter.isAttributable() )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: MPPPatientLevel
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Has Qualifying Encounter During First 240 Days of Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: AttributionModel
  * **Name**: isAttributable
* **Library Name**: 
  * **Name**: ````define fluent function isAttributable(encounter Encounter): encounter.period during "Measurement Period" and "Provider" is not null implies encounter.serviceProvider.reference.endsWith("Provider")````: 2023-10-27 08:12:32+0000
* **Logic Definitions:**: **Name: **
  * * **Group**: 64403d17d4d7050edabb0562
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: MPPPatientLevel
  * **Name**: Has Qualifying Encounter During First 240 Days of Measurement Period
* **Library Name**: 
  * **Name**: ````define "Has Qualifying Encounter During First 240 Days of Measurement Period": exists ( ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Annual Wellness Visit"] union ["Encounter": "Face-to-Face Interaction"] union ["Encounter": "Home Healthcare Services"] union ["Encounter": "Preventive Care Services Established Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services Initial Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services, Initial Office Visit, 0 to 17"] union ["Encounter": "Preventive Care, Established Office Visit, 0 to 17"] union ["Encounter": "Telephone Visits"] ) QualifyingEncounter where QualifyingEncounter.period during day of Interval[start of "Measurement Period", start of "Measurement Period" + 240 days] and QualifyingEncounter.isAttributable() )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: MPPPatientLevel
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Has Qualifying Encounter During First 240 Days of Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: AttributionModel
  * **Name**: isAttributable
* **Library Name**: 
  * **Name**: ````define fluent function isAttributable(encounter Encounter): encounter.period during "Measurement Period" and "Provider" is not null implies encounter.serviceProvider.reference.endsWith("Provider")````: MPPPatientLevel
* **Logic Definitions:**: **Description: **
  * * **Group**: 64403d17d4d7050edabb0562
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: MPPPatientLevel
  * **Name**: Has Qualifying Encounter During First 240 Days of Measurement Period
* **Library Name**: 
  * **Name**: ````define "Has Qualifying Encounter During First 240 Days of Measurement Period": exists ( ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Annual Wellness Visit"] union ["Encounter": "Face-to-Face Interaction"] union ["Encounter": "Home Healthcare Services"] union ["Encounter": "Preventive Care Services Established Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services Initial Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services, Initial Office Visit, 0 to 17"] union ["Encounter": "Preventive Care, Established Office Visit, 0 to 17"] union ["Encounter": "Telephone Visits"] ) QualifyingEncounter where QualifyingEncounter.period during day of Interval[start of "Measurement Period", start of "Measurement Period" + 240 days] and QualifyingEncounter.isAttributable() )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: MPPPatientLevel
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Has Qualifying Encounter During First 240 Days of Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: AttributionModel
  * **Name**: isAttributable
* **Library Name**: 
  * **Name**: ````define fluent function isAttributable(encounter Encounter): encounter.period during "Measurement Period" and "Provider" is not null implies encounter.serviceProvider.reference.endsWith("Provider")````: Example measure supporting testing of the multi-provider patient scenario for patient-based measures
* **Logic Definitions:**: **Purpose: **
  * * **Group**: 64403d17d4d7050edabb0562
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: MPPPatientLevel
  * **Name**: Has Qualifying Encounter During First 240 Days of Measurement Period
* **Library Name**: 
  * **Name**: ````define "Has Qualifying Encounter During First 240 Days of Measurement Period": exists ( ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Annual Wellness Visit"] union ["Encounter": "Face-to-Face Interaction"] union ["Encounter": "Home Healthcare Services"] union ["Encounter": "Preventive Care Services Established Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services Initial Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services, Initial Office Visit, 0 to 17"] union ["Encounter": "Preventive Care, Established Office Visit, 0 to 17"] union ["Encounter": "Telephone Visits"] ) QualifyingEncounter where QualifyingEncounter.period during day of Interval[start of "Measurement Period", start of "Measurement Period" + 240 days] and QualifyingEncounter.isAttributable() )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: MPPPatientLevel
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Has Qualifying Encounter During First 240 Days of Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: AttributionModel
  * **Name**: isAttributable
* **Library Name**: 
  * **Name**: ````define fluent function isAttributable(encounter Encounter): encounter.period during "Measurement Period" and "Provider" is not null implies encounter.serviceProvider.reference.endsWith("Provider")````: To support testing of approaches to multi-provider patient scenarios with a patient-based measure
* **Logic Definitions:**: **Libraries: **
  * * **Group**: 64403d17d4d7050edabb0562
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: MPPPatientLevel
  * **Name**: Has Qualifying Encounter During First 240 Days of Measurement Period
* **Library Name**: 
  * **Name**: ````define "Has Qualifying Encounter During First 240 Days of Measurement Period": exists ( ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Annual Wellness Visit"] union ["Encounter": "Face-to-Face Interaction"] union ["Encounter": "Home Healthcare Services"] union ["Encounter": "Preventive Care Services Established Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services Initial Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services, Initial Office Visit, 0 to 17"] union ["Encounter": "Preventive Care, Established Office Visit, 0 to 17"] union ["Encounter": "Telephone Visits"] ) QualifyingEncounter where QualifyingEncounter.period during day of Interval[start of "Measurement Period", start of "Measurement Period" + 240 days] and QualifyingEncounter.isAttributable() )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: MPPPatientLevel
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Has Qualifying Encounter During First 240 Days of Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: AttributionModel
  * **Name**: isAttributable
* **Library Name**: 
  * **Name**: ````define fluent function isAttributable(encounter Encounter): encounter.period during "Measurement Period" and "Provider" is not null implies encounter.serviceProvider.reference.endsWith("Provider")````: 
| |
| :--- |
| [MPPPatientLevel](Library-MPPPatientLevel.md) |

* **Logic Definitions:**: **Related Artifact Dependencies: **
  * * **Group**: 64403d17d4d7050edabb0562
  * **Scoring**: **Group scoring:** proportion 

* **Library Name**: MPPPatientLevel
  * **Name**: Has Qualifying Encounter During First 240 Days of Measurement Period
* **Library Name**: 
  * **Name**: ````define "Has Qualifying Encounter During First 240 Days of Measurement Period": exists ( ( ["Encounter": "Office Visit"] union ["Encounter": "Outpatient Consultation"] union ["Encounter": "Annual Wellness Visit"] union ["Encounter": "Face-to-Face Interaction"] union ["Encounter": "Home Healthcare Services"] union ["Encounter": "Preventive Care Services Established Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services Initial Office Visit, 18 and Up"] union ["Encounter": "Preventive Care Services, Initial Office Visit, 0 to 17"] union ["Encounter": "Preventive Care, Established Office Visit, 0 to 17"] union ["Encounter": "Telephone Visits"] ) QualifyingEncounter where QualifyingEncounter.period during day of Interval[start of "Measurement Period", start of "Measurement Period" + 240 days] and QualifyingEncounter.isAttributable() )````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: MPPPatientLevel
  * **Name**: Initial Population
* **Library Name**: 
  * **Name**: ````define "Initial Population": "Has Qualifying Encounter During First 240 Days of Measurement Period"````
* **Library Name**: **Library Name**
  * **Name**: **Name**
* **Library Name**: AttributionModel
  * **Name**: isAttributable
* **Library Name**: 
  * **Name**: ````define fluent function isAttributable(encounter Encounter): encounter.period during "Measurement Period" and "Provider" is not null implies encounter.serviceProvider.reference.endsWith("Provider")````: * [FHIRHelpers](Library-FHIRHelpers.md) version: 4.3.000
* [AttributionModel](Library-AttributionModel.md) version: 0.1.0
* [Office Visit](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1001/expansion)
* [Outpatient Consultation](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1008/expansion)
* [Annual Wellness Visit](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1240/expansion)
* [Face-to-Face Interaction](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1048/expansion)
* [Home Healthcare Services](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1016/expansion)
* [Preventive Care Services - Established Office Visit, 18 and Up](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1025/expansion)
* [Preventive Care Services-Initial Office Visit, 18 and Up](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1023/expansion)
* [Preventive Care Services, Initial Office Visit, 0 to 17](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1022/expansion)
* [Preventive Care, Established Office Visit, 0 to 17](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1024/expansion)
* [Telephone Visits](https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1080/expansion)




## Resource Content

```json
{
  "resourceType" : "Measure",
  "id" : "MPPPatientLevel",
  "meta" : {
    "profile" : ["http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm",
    "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm",
    "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm"]
  },
  "contained" : [{
    "resourceType" : "Library",
    "id" : "effective-data-requirements",
    "extension" : [{
      "extension" : [{
        "url" : "libraryName",
        "valueString" : "MPPPatientLevel"
      },
      {
        "url" : "name",
        "valueString" : "Has Qualifying Encounter During First 240 Days of Measurement Period"
      },
      {
        "url" : "statement",
        "valueString" : "define \"Has Qualifying Encounter During First 240 Days of Measurement Period\":\n  exists ( ( [\"Encounter\": \"Office Visit\"]\n      union [\"Encounter\": \"Outpatient Consultation\"]\n      union [\"Encounter\": \"Annual Wellness Visit\"]\n      union [\"Encounter\": \"Face-to-Face Interaction\"]\n      union [\"Encounter\": \"Home Healthcare Services\"]\n      union [\"Encounter\": \"Preventive Care Services Established Office Visit, 18 and Up\"]\n      union [\"Encounter\": \"Preventive Care Services Initial Office Visit, 18 and Up\"]\n      union [\"Encounter\": \"Preventive Care Services, Initial Office Visit, 0 to 17\"]\n      union [\"Encounter\": \"Preventive Care, Established Office Visit, 0 to 17\"]\n      union [\"Encounter\": \"Telephone Visits\"]\n    ) QualifyingEncounter\n      where QualifyingEncounter.period during day of Interval[start of \"Measurement Period\", start of \"Measurement Period\" + 240 days]\n        and QualifyingEncounter.isAttributable()\n  )"
      },
      {
        "url" : "displaySequence",
        "valueInteger" : 0
      }],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [{
        "url" : "libraryName",
        "valueString" : "MPPPatientLevel"
      },
      {
        "url" : "name",
        "valueString" : "Initial Population"
      },
      {
        "url" : "statement",
        "valueString" : "define \"Initial Population\":\n  \"Has Qualifying Encounter During First 240 Days of Measurement Period\""
      },
      {
        "url" : "displaySequence",
        "valueInteger" : 1
      }],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    },
    {
      "extension" : [{
        "url" : "libraryName",
        "valueString" : "AttributionModel"
      },
      {
        "url" : "name",
        "valueString" : "isAttributable"
      },
      {
        "url" : "statement",
        "valueString" : "define fluent function isAttributable(encounter Encounter):\n  encounter.period during \"Measurement Period\"\n    and \"Provider\" is not null implies encounter.serviceProvider.reference.endsWith(\"Provider\")"
      },
      {
        "url" : "displaySequence",
        "valueInteger" : 2
      }],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"
    }],
    "status" : "active",
    "type" : {
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/library-type",
        "code" : "module-definition"
      }]
    },
    "relatedArtifact" : [{
      "type" : "depends-on",
      "display" : "Library FHIRHelpers",
      "resource" : "http://ecqi.healthit.gov/ecqms/Library/FHIRHelpers|4.3.000"
    },
    {
      "type" : "depends-on",
      "display" : "Library AM",
      "resource" : "http://ecqi.healthit.gov/ecqms/Library/AttributionModel|0.1.0"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Office Visit",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Outpatient Consultation",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1008"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Annual Wellness Visit",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Face-to-Face Interaction",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1048"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Home Healthcare Services",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Preventive Care Services Established Office Visit, 18 and Up",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Preventive Care Services Initial Office Visit, 18 and Up",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Preventive Care Services, Initial Office Visit, 0 to 17",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1022"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Preventive Care, Established Office Visit, 0 to 17",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1024"
    },
    {
      "type" : "depends-on",
      "display" : "Value set Telephone Visits",
      "resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080"
    }],
    "parameter" : [{
      "name" : "Measurement Period",
      "use" : "in",
      "min" : 0,
      "max" : "1",
      "type" : "Period"
    },
    {
      "name" : "Provider",
      "use" : "in",
      "min" : 0,
      "max" : "1",
      "type" : "string"
    },
    {
      "name" : "Initial Population",
      "use" : "out",
      "min" : 0,
      "max" : "1",
      "type" : "boolean"
    }],
    "dataRequirement" : [{
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"],
      "mustSupport" : ["type", "period"],
      "codeFilter" : [{
        "path" : "type",
        "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"
      }]
    },
    {
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"],
      "mustSupport" : ["type", "period"],
      "codeFilter" : [{
        "path" : "type",
        "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1008"
      }]
    },
    {
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"],
      "mustSupport" : ["type", "period"],
      "codeFilter" : [{
        "path" : "type",
        "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240"
      }]
    },
    {
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"],
      "mustSupport" : ["type", "period"],
      "codeFilter" : [{
        "path" : "type",
        "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1048"
      }]
    },
    {
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"],
      "mustSupport" : ["type", "period"],
      "codeFilter" : [{
        "path" : "type",
        "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016"
      }]
    },
    {
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"],
      "mustSupport" : ["type", "period"],
      "codeFilter" : [{
        "path" : "type",
        "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025"
      }]
    },
    {
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"],
      "mustSupport" : ["type", "period"],
      "codeFilter" : [{
        "path" : "type",
        "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023"
      }]
    },
    {
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"],
      "mustSupport" : ["type", "period"],
      "codeFilter" : [{
        "path" : "type",
        "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1022"
      }]
    },
    {
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"],
      "mustSupport" : ["type", "period"],
      "codeFilter" : [{
        "path" : "type",
        "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1024"
      }]
    },
    {
      "type" : "Encounter",
      "profile" : ["http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"],
      "mustSupport" : ["type", "period"],
      "codeFilter" : [{
        "path" : "type",
        "valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080"
      }]
    }]
  }],
  "extension" : [{
    "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem",
    "valueReference" : {
      "reference" : "Device/cqf-tooling"
    }
  },
  {
    "id" : "effective-data-requirements",
    "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-effectiveDataRequirements",
    "valueReference" : {
      "reference" : "#effective-data-requirements"
    }
  }],
  "url" : "http://ecqi.healthit.gov/ecqms/Measure/MPPPatientLevel",
  "version" : "0.8.000",
  "name" : "MPPPatientLevel",
  "title" : "Multi-provider Patient Patient Level Example",
  "status" : "draft",
  "experimental" : true,
  "date" : "2023-10-27T08:12:32+00:00",
  "description" : "Example measure supporting testing of the multi-provider patient scenario for patient-based measures",
  "useContext" : [{
    "code" : {
      "system" : "http://terminology.hl7.org/CodeSystem/usage-context-type",
      "code" : "program"
    },
    "valueCodeableConcept" : {
      "coding" : [{
        "system" : "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/quality-programs",
        "code" : "ep-ec",
        "display" : "EP/EC"
      }]
    }
  }],
  "purpose" : "To support testing of approaches to multi-provider patient scenarios with a patient-based measure",
  "effectivePeriod" : {
    "start" : "2024-01-01",
    "end" : "2024-12-31"
  },
  "library" : ["http://ecqi.healthit.gov/ecqms/Library/MPPPatientLevel"],
  "group" : [{
    "id" : "64403d17d4d7050edabb0562",
    "extension" : [{
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring",
      "valueCodeableConcept" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/measure-scoring",
          "code" : "proportion",
          "display" : "Proportion"
        }]
      }
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis",
      "valueCode" : "boolean"
    },
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type",
      "valueCodeableConcept" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/measure-type",
          "code" : "process",
          "display" : "Process"
        }]
      }
    }],
    "population" : [{
      "id" : "937BAF2A-D36A-4EE5-B2B2-762A0FE04502",
      "code" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
          "code" : "initial-population",
          "display" : "Initial Population"
        }]
      },
      "criteria" : {
        "language" : "text/cql-identifier",
        "expression" : "Initial Population"
      }
    },
    {
      "id" : "302C1DCC-7FE6-41EF-A94E-FDAE24B7BB1B",
      "code" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
          "code" : "denominator",
          "display" : "Denominator"
        }]
      },
      "criteria" : {
        "language" : "text/cql-identifier",
        "expression" : "Denominator"
      }
    },
    {
      "id" : "99961E3A-EFC4-4858-A3EE-F7F1D5B222FB",
      "code" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
          "code" : "numerator",
          "display" : "Numerator"
        }]
      },
      "criteria" : {
        "language" : "text/cql-identifier",
        "expression" : "Numerator"
      }
    }]
  }]
}

```
