library TestPJM4a version '0.0.000'
using QICore version '4.1.1'
valueset "birth date": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.560.100.4'
valueset "Telephone Visits": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080'
parameter "Measurement Period" default Interval[@2022-01-01T00:00:00.0, @2023-01-01T00:00:00.0)
context Patient
define "Telehealth Services":
[Encounter: "Telephone Visits"] TelehealthEncounter
where TelehealthEncounter.period during "Measurement Period"
and TelehealthEncounter.status = 'finished'
/* add age to result output */
define "Age at start of Measurement Period":
AgeInYearsAt(date from start of "Measurement Period")
define "Initial Population":
"Age at start of Measurement Period" in Interval[65, 74 )
define "Denominator":
"Initial Population" and exists ("Telehealth Services")
define "Numerator 1":
"Denominator" and Patient.gender = 'male'
define "Numerator 2":
"Denominator" and Patient.gender = 'female'
===
{
"resourceType": "Bundle",
"id": "3031",
"meta": {
"versionId": "1",
"lastUpdated": "2022-08-25T14:11:47.752+00:00"
},
"type": "collection",
"entry": [ {
"fullUrl": "http://clinfhir.com/fhir/Patient/numer-EXM190-IPCOnICUStart",
"resource": {
"resourceType": "Patient",
"id": "numer-EXM104-AntithromboticTMeqIPAdmTM",
"text": {
"status": "generated",
"div": "
Identifier | 2a65a26f9f7578ed1148174b365eff5a |
Date of birth | 31 May 1990 |
"
},
"extension": [ {
"url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race",
"extension": [ {
"url": "ombCategory",
"valueCoding": {
"system": "urn:oid:2.16.840.1.113883.6.238",
"code": "1002-5",
"display": "American Indian or Alaska Native",
"userSelected": true
}
}, {
"url": "text",
"valueString": "American Indian or Alaska Native"
} ]
}, {
"url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity",
"extension": [ {
"url": "ombCategory",
"valueCoding": {
"system": "urn:oid:2.16.840.1.113883.6.238",
"code": "2135-2",
"display": "Hispanic or Latino",
"userSelected": true
}
}, {
"url": "text",
"valueString": "Hispanic or Latino"
} ]
} ],
"identifier": [ {
"type": {
"coding": [ {
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "MR"
} ]
},
"value": "2a65a26f9f7578ed1148174b365eff5a"
} ],
"active": true,
"name": [ {
"use": "usual",
"family": "NUMERPass",
"given": [ "numer-EXM104-AntithromboticTMeqIPAdmTM" ]
} ],
"gender": "male",
"birthDate": "1990-05-31"
}
}, {
"fullUrl": "http://clinfhir.com/fhir/Condition/ischemic-stroke-7f36",
"resource": {
"resourceType": "Condition",
"id": "ischemic-stroke-7f36",
"code": {
"coding": [ {
"system": "http://snomed.info/sct",
"version": "2020-09",
"code": "111297002",
"display": "Nonparalytic stroke (disorder)",
"userSelected": true
} ]
},
"subject": {
"reference": "Patient/numer-EXM104-AntithromboticTMeqIPAdmTM"
},
"recordedDate": "2022-07-15T08:00:00.000+00:00"
}
}, {
"fullUrl": "http://clinfhir.com/fhir/Location/numer-EXM104-AntithromboticTMeqIPAdmTM-medReq",
"resource": {
"resourceType": "MedicationRequest",
"id": "numer-EXM104-AntithromboticTMeqIPAdmTM-MedReq",
"status": "active",
"intent": "order",
"category": [ {
"coding": [ {
"system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
"code": "discharge",
"display": "Discharge",
"userSelected": true
} ]
} ],
"subject": {
"reference": "Patient/numer-EXM104-AntithromboticTMeqIPAdmTM"
},
"authoredOn": "2022-06-15T09:30:00.000+00:00"
}
}, {
"fullUrl": "http://clinfhir.com/fhir/Encounter/numer-EXM104-AntithromboticTMeqIPAdmTM-610",
"resource": {
"resourceType": "Encounter",
"id": "numer-EXM104-AntithromboticTMeqIPAdmTM-610",
"status": "finished",
"class": {
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code": "IMP",
"display": "inpatient encounter",
"userSelected": true
},
"type": [ {
"coding": [ {
"system": "http://snomed.info/sct",
"code": "32485007"
} ]
} ],
"subject": {
"reference": "Patient/numer-EXM104-AntithromboticTMeqIPAdmTM"
},
"period": {
"start": "2022-06-15T09:30:00.000+00:00",
"end": "2022-10-12T10:30:00.000+00:00"
},
"length": {
"value": 119,
"unit": "days"
},
"diagnosis": [ {
"condition": {
"reference": "Condition/ischemic-stroke-7f36"
},
"use": {
"coding": [ {
"system": "http://snomed.info/sct",
"code": "111297002",
"display": "Ischemic Stroke"
} ]
},
"rank": 1
} ]
}
} ]
}
==
{
"resourceType": "Bundle",
"id": "3085",
"meta": {
"versionId": "1",
"lastUpdated": "2022-08-26T16:50:25.428+00:00"
},
"type": "collection",
"entry": [ {
"fullUrl": "http://clinfhir.com/fhir/Patient/numer-EXM190-IPCOnICUStart",
"resource": {
"resourceType": "Patient",
"id": "numer-EXM104-AntithromboticTMeqIPAdmTM",
"text": {
"status": "generated",
"div": "Identifier | 2a65a26f9f7578ed1148174b365eff5a |
Date of birth | 31 May 1990 |
"
},
"extension": [ {
"url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race",
"extension": [ {
"url": "ombCategory",
"valueCoding": {
"system": "urn:oid:2.16.840.1.113883.6.238",
"code": "1002-5",
"display": "American Indian or Alaska Native",
"userSelected": true
}
}, {
"url": "text",
"valueString": "American Indian or Alaska Native"
} ]
}, {
"url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity",
"extension": [ {
"url": "ombCategory",
"valueCoding": {
"system": "urn:oid:2.16.840.1.113883.6.238",
"code": "2135-2",
"display": "Hispanic or Latino",
"userSelected": true
}
}, {
"url": "text",
"valueString": "Hispanic or Latino"
} ]
} ],
"identifier": [ {
"type": {
"coding": [ {
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "MR"
} ]
},
"value": "2a65a26f9f7578ed1148174b365eff5a"
} ],
"active": true,
"name": [ {
"use": "usual",
"family": "NUMERPass",
"given": [ "numer-EXM104-AntithromboticTMeqIPAdmTM" ]
} ],
"gender": "male",
"birthDate": "1990-05-31"
}
}, {
"fullUrl": "http://clinfhir.com/fhir/Condition/ischemic-stroke-7f36",
"resource": {
"resourceType": "Condition",
"id": "ischemic-stroke-7f36",
"code": {
"coding": [ {
"system": "http://snomed.info/sct",
"version": "2020-09",
"code": "111297002",
"display": "Nonparalytic stroke (disorder)",
"userSelected": true
} ]
},
"subject": {
"reference": "Patient/numer-EXM104-AntithromboticTMeqIPAdmTM"
},
"recordedDate": "2022-07-15T08:00:00.000+00:00"
}
}, {
"fullUrl": "http://clinfhir.com/fhir/Location/numer-EXM104-AntithromboticTMeqIPAdmTM-medReq",
"resource": {
"resourceType": "MedicationRequest",
"id": "numer-EXM104-AntithromboticTMeqIPAdmTM-MedReq",
"status": "active",
"intent": "order",
"category": [ {
"coding": [ {
"system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
"code": "discharge",
"display": "Discharge",
"userSelected": true
} ]
} ],
"subject": {
"reference": "Patient/numer-EXM104-AntithromboticTMeqIPAdmTM"
},
"authoredOn": "2022-06-15T09:30:00.000+00:00"
}
}, {
"fullUrl": "http://clinfhir.com/fhir/Encounter/numer-EXM104-AntithromboticTMeqIPAdmTM-610",
"resource": {
"resourceType": "Encounter",
"id": "numer-EXM104-AntithromboticTMeqIPAdmTM-610",
"status": "finished",
"class": {
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code": "IMP",
"display": "inpatient encounter",
"userSelected": true
},
"type": [ {
"coding": [ {
"system": "http://snomed.info/sct",
"code": "32485007"
} ]
} ],
"subject": {
"reference": "Patient/numer-EXM104-AntithromboticTMeqIPAdmTM"
},
"period": {
"start": "2022-06-15T09:30:00.000+00:00",
"end": "2022-10-12T10:30:00.000+00:00"
},
"length": {
"value": 119,
"unit": "days"
},
"diagnosis": [ {
"condition": {
"reference": "Condition/ischemic-stroke-7f36"
},
"use": {
"coding": [ {
"system": "http://snomed.info/sct",
"code": "111297002",
"display": "Ischemic Stroke"
} ]
},
"rank": 1
} ]
}
} ]
}