Skip to content

Commit

Permalink
Histology typo
Browse files Browse the repository at this point in the history
  • Loading branch information
enola-dkfz committed Apr 11, 2024
1 parent 48e3580 commit 58ceea5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/cql/DKTK_STRAT_HISTOLOGY_STRATIFIER
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
define Histo:
if InInitialPopulation then [Observation] else {} as List <Observation>

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
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Observation>\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 <Observation>\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";
Expand Down

0 comments on commit 58ceea5

Please sign in to comment.