Skip to content

Commit

Permalink
Merge pull request #131 from samply/fix/histo_typo
Browse files Browse the repository at this point in the history
Fix/histo typo
  • Loading branch information
enola-dkfz authored Apr 12, 2024
2 parents c177fc1 + 6648cdf commit 843e8c0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ jobs:
# build-platforms: "linux/amd64"
# If your actions generate an artifact in a previous build step, you can tell this workflow to download it
artifact-name: '*'
push-to: dockerhub
# This passes the secrets from calling workflow to the called workflow
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down
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
4 changes: 4 additions & 0 deletions resources/cql/DKTK_STRAT_PRIMARY_DIAGNOSIS_NO_SORT_STRATIFIER
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
define PrimaryDiagnosis:
First(
from [Condition] C
where C.extension.where(url='http://hl7.org/fhir/StructureDefinition/condition-related').empty())
2 changes: 1 addition & 1 deletion resources/test/measure_report_dktk.json
Original file line number Diff line number Diff line change
Expand Up @@ -5363,7 +5363,7 @@
{
"code": [
{
"text": "Histlogoies"
"text": "Histologies"
}
],
"stratum": [
Expand Down
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,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 843e8c0

Please sign in to comment.