Library Name | Name | sequence |
EXMLogic |
SDE Sex |
define "SDE Sex":
case
when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }
when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }
else null
end
Library Name | Name | sequence |
EXMLogic |
Stratifier 3 |
define "Stratifier 3" :
"Inpatient Encounter" Encounter
where PrincipalDiagnosis(Encounter) is null
Library Name | Name | sequence |
EXMLogic |
Inpatient Encounter |
define "Inpatient Encounter" :
["Encounter"] Encounter
where LengthInDays(Encounter.period) <= 120
and Encounter.period ends during "Measurement Period"
Library Name | Name | sequence |
EXMLogic |
Stratifier 4 |
define "Stratifier 4" :
"Inpatient Encounter" Encounter
where PrincipalDiagnosis(Encounter) is null
Library Name | Name | sequence |
EXMLogic |
SDE Payer |
define "SDE Payer":
[Coverage: type in "Payer"] Payer
return {
code: Payer.type,
period: Payer.period
}
Library Name | Name | sequence |
EXMLogic |
Initial Population |
define "Initial Population" :
"Inpatient Encounter" Encounter
Library Name | Name | sequence |
EXMLogic |
SDE Ethnicity |
define "SDE Ethnicity":
(flatten (
Patient.extension Extension
where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'
return Extension.extension
)) E
where E.url = 'ombCategory'
or E.url = 'detailed'
return E.value as Coding
Library Name | Name | sequence |
EXMLogic |
SDE Race |
define "SDE Race":
(flatten (
Patient.extension Extension
where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'
return Extension.extension
)) E
where E.url = 'ombCategory'
or E.url = 'detailed'
return E.value as Coding
Library Name | Name | sequence |
EXMLogic |
Stratifier 1 |
define "Stratifier 1" :
"Inpatient Encounter" Encounter
where not (PrincipalDiagnosis(Encounter).code in "Psychiatric/Mental Health Patient")
Library Name | Name | sequence |
EXMLogic |
Stratifier 2 |
define "Stratifier 2" :
"Inpatient Encounter" Encounter
where PrincipalDiagnosis(Encounter).code in "Psychiatric/Mental Health Patient"
|