Skip to content

Commit

Permalink
Merge pull request #197 from OHSUCMP/max-age-100
Browse files Browse the repository at this point in the history
Change max age to 100 and over.
  • Loading branch information
aeyates authored Nov 22, 2023
2 parents b54a936 + 6e8c997 commit 2367772
Show file tree
Hide file tree
Showing 41 changed files with 1,361 additions and 206 deletions.
4 changes: 2 additions & 2 deletions input/cql/Hypertension.cql
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ define "Meets Inclusion Criteria":

define "Meets Exclusion Criteria":
Common."Patient Under Age 18"
or Common."Patient Over Age 80"
or Common."Patient Over Age 100"
or exists Common."Condition Indicating End Stage Renal Disease"
or exists Common."Condition Indicating Pregnancy"

Expand Down Expand Up @@ -112,7 +112,7 @@ define "Exclusion Reason":
'Patient was excluded from initial diagnosis of hypertension due to '
+ (
if Common."Patient Under Age 18" then 'being under the age of 18.'
else if Common."Patient Over Age 80" then 'being over the age of 80.'
else if Common."Patient Over Age 100" then 'being over the age of 80.'
else if exists Common."Condition Indicating End Stage Renal Disease" then 'having end stage renal disease.'
else if exists Common."Condition Indicating Pregnancy" then 'being pregnant.'
else if Common."HTN Crisis" then 'a recent high blood pressure warning.'
Expand Down
17 changes: 1 addition & 16 deletions input/cql/Monitoring.cql
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ define "Meets Inclusion Criteria":

define "Meets Exclusion Criteria":
Common."Patient Under Age 18"
or Common."Patient Over Age 80"
or Common."Patient Over Age 100"
or exists Common."Condition Indicating End Stage Renal Disease"
or exists Common."Condition Indicating Pregnancy"

Expand Down Expand Up @@ -78,21 +78,6 @@ define "Links":
else if not Common."Has 12 Home BPs" then '[{"label":"Bell 2021: The potential for overdiagnosis and underdiagnosis because of blood pressure variability: a comparison of the 2017 ACC/AHA, 2018 ESC/ESH and 2019 NICE hypertension guidelines", "url":"https://pubmed.ncbi.nlm.nih.gov/32773652/"}]'
else '[]'

define "Exclusion Reason":
if "Meets Exclusion Criteria" then
(
'Patient was excluded from monitoring of hypertension due to '
+ (
if Common."Patient Under Age 18" then 'being under the age of 18.'
else if Common."Patient Over Age 80" then 'being over the age of 80.'
else if exists Common."Condition Indicating End Stage Renal Disease" then 'having end stage renal disease.'
else if exists Common."Condition Indicating Pregnancy" then 'being pregnant.'
else if Common."HTN Crisis" then 'a recent high blood pressure warning.'
else ''
)
)
else ''

define "No Entry into Population":
not "Meets Inclusion Criteria"
and not "Meets Exclusion Criteria"
Expand Down
20 changes: 4 additions & 16 deletions input/cql/NonPharmacologicIntervention.cql
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ define "Meets Inclusion Criteria":

define "Meets Exclusion Criteria":
Common."Patient Under Age 18"
or Common."Patient Over Age 80"
or Common."Patient Over Age 100"
or exists Common."Condition Indicating End Stage Renal Disease"
or exists Common."Condition Indicating Pregnancy"

Expand Down Expand Up @@ -284,21 +284,6 @@ define "Physical Activity Indicator Status":
if exists "Physical Activity Goals Needing Update" then 'warning'
else 'info'

define "Exclusion Reason":
if "Meets Exclusion Criteria" then
(
'Patient was excluded from non-pharmacologic interventions for hypertension due to '
+ (
if Common."Patient Under Age 18" then 'being under the age of 18.'
else if Common."Patient Over Age 80" then 'being over the age of 80.'
else if exists Common."Condition Indicating End Stage Renal Disease" then 'having end stage renal disease.'
else if exists Common."Condition Indicating Pregnancy" then 'being pregnant.'
else if Common."HTN Crisis" then 'a recent high blood pressure warning.'
else ''
)
)
else ''

/* Non-Pharmacologic Interventions Workflow */
define "Goals":
(Common.QualifiedGoal(["Goal"])) Goal where Goal.lifecycleStatus = 'active'
Expand Down Expand Up @@ -473,3 +458,6 @@ define "TEST Get Average All BP Last 2 Years":

define "TEST Get Average Most Recent BP Set":
Common."Avg BP"(Common."Most Recent BP Set")

define "TEST Exclusion":
Common."Patient Under Age 18"
8 changes: 4 additions & 4 deletions input/cql/OHSUHTNCommon.cql
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ define function "Prevalence Period"(condition Condition):
define "Patient Under Age 18":
AgeInYearsAt(Today()) < 18
define "Patient Over Age 80":
AgeInYearsAt(Today()) > 80
define "Patient Over Age 100":
AgeInYearsAt(Today()) >= 100
// Grab all conditions for patients since we can't limit by code in Epic.
define "Conditions":
Expand Down Expand Up @@ -458,10 +458,10 @@ define "Most Recent BP Reading":
Last("All BP Observations" O sort by effective)
define "HTN High Crisis":
"HTN Crisis BP"("Most Recent BP Reading")
"Most Recent BP Reading" is not null and "HTN Crisis BP"("Most Recent BP Reading")
define "HTN Low Crisis":
"HTN Low Crisis BP"("Most Recent BP Reading")
"Most Recent BP Reading" is not null and "HTN Low Crisis BP"("Most Recent BP Reading")
define "HTN Crisis":
"HTN High Crisis" or "HTN Low Crisis"
Expand Down
2 changes: 1 addition & 1 deletion input/cql/Pharma.cql
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ define "Meets Inclusion Criteria":

define "Meets Exclusion Criteria":
Common."Patient Under Age 18"
or Common."Patient Over Age 80"
or Common."Patient Over Age 100"
or exists Common."Condition Indicating End Stage Renal Disease"
or exists Common."Condition Indicating Pregnancy"
or Common."HTN Crisis"
Expand Down
6 changes: 3 additions & 3 deletions input/resources/library/Hypertension.json

Large diffs are not rendered by default.

Loading

0 comments on commit 2367772

Please sign in to comment.