diff --git a/resources/cql/DKTK_STRAT_HISTOLOGY_STRATIFIER b/resources/cql/DKTK_STRAT_HISTOLOGY_STRATIFIER index 2a56610..1c5c077 100644 --- a/resources/cql/DKTK_STRAT_HISTOLOGY_STRATIFIER +++ b/resources/cql/DKTK_STRAT_HISTOLOGY_STRATIFIER @@ -1,5 +1,5 @@ define Histo: if InInitialPopulation then [Observation] else {} as List -define function Histlogoy(histo FHIR.Observation): +define function Histology(histo FHIR.Observation): if histo.code.coding.where(code = '59847-4').code.first() is null then 0 else 1 diff --git a/src/util.rs b/src/util.rs index 3edf6cb..09e144a 100644 --- a/src/util.rs +++ b/src/util.rs @@ -486,7 +486,7 @@ mod test { assert_eq!(replace_cql(decoded_library), expected_result); let decoded_library = "DKTK_STRAT_HISTOLOGY_STRATIFIER"; - let expected_result = "define Histo:\nif InInitialPopulation then [Observation] else {} as List \n\ndefine function Histlogoy(histo FHIR.Observation):\n if histo.code.coding.where(code = '59847-4').code.first() is null then 0 else 1\n"; + let expected_result = "define Histo:\nif InInitialPopulation then [Observation] else {} as List \n\ndefine function Histology(histo FHIR.Observation):\n if histo.code.coding.where(code = '59847-4').code.first() is null then 0 else 1\n"; assert_eq!(replace_cql(decoded_library), expected_result); let decoded_library = "INVALID_KEY";