-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from MeasureAuthoringTool/MAT-4516
MAT-4516 include return types for all defines in elm
- Loading branch information
Showing
6 changed files
with
1,618 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
library TestCVPopulations version '0.0.004' | ||
|
||
using FHIR version '4.0.1' | ||
|
||
include FHIRHelpers version '4.0.001' called FHIRHelpers | ||
include SupplementalDataElementsFHIR4 version '2.0.000' called SDE | ||
include MATGlobalCommonFunctionsFHIR4 version '5.0.000' called Global | ||
|
||
codesystem "LOINC": 'http://loinc.org' | ||
|
||
valueset "Competing Conditions for Respiratory Conditions": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.102.12.1017' | ||
valueset "Encounter Inpatient": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307' | ||
valueset "Level of Severity of Retinopathy Findings": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1283' | ||
|
||
code "Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)": '71007-9' from "LOINC" display 'Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)' | ||
|
||
parameter "Measurement Period" Interval<DateTime> | ||
|
||
context Patient | ||
|
||
define "SDE Ethnicity": | ||
SDE."SDE Ethnicity" | ||
|
||
define "SDE Payer": | ||
SDE."SDE Payer" | ||
|
||
define "SDE Race": | ||
SDE."SDE Race" | ||
|
||
define "Initial Population": | ||
["Encounter": "Encounter Inpatient"] Enc | ||
where Enc.period ends during "Measurement Period" | ||
|
||
define "Measure Population": | ||
"Initial Population" | ||
|
||
define "Measure Population Exclusions": | ||
"Initial Population" Pop | ||
where exists ( Pop.diagnosis diag | ||
where diag.rank = 1 | ||
) | ||
|
||
define "Valid Encounter": | ||
["Encounter": "Encounter Inpatient"] Encounter | ||
where Encounter.period during "Measurement Period" | ||
and Encounter.length >= 24 hours | ||
|
||
define function "Measure Observation"(Enc "Encounter" ): | ||
Count("Valid Encounter") | ||
|
||
|
||
define "Unused Boolean Definition": | ||
exists ["Communication": "Level of Severity of Retinopathy Findings"] Communication | ||
where Communication.sent in "Measurement Period" |
Oops, something went wrong.