From d61312d21768b2fbefae2c07f254e67dad468ef9 Mon Sep 17 00:00:00 2001 From: Patrick Skowronek Date: Tue, 20 Aug 2024 15:22:01 +0200 Subject: [PATCH 1/3] Modify DKTK_Strat_SPECIMEN to improve the search more sample centric --- resources/cql/DKTK_STRAT_SPECIMEN_STRATIFIER | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/cql/DKTK_STRAT_SPECIMEN_STRATIFIER b/resources/cql/DKTK_STRAT_SPECIMEN_STRATIFIER index 6dd2216..28c3080 100644 --- a/resources/cql/DKTK_STRAT_SPECIMEN_STRATIFIER +++ b/resources/cql/DKTK_STRAT_SPECIMEN_STRATIFIER @@ -1,5 +1,4 @@ -define Specimen: -if InInitialPopulation then [Specimen] else {} as List - define function SampleType(specimen FHIR.Specimen): specimen.type.coding.where(system = 'https://fhir.bbmri.de/CodeSystem/SampleMaterialType').code.first() + +define Specimen: From 3ac288d87e6644846dfe1f7e66e72ea04ab9af64 Mon Sep 17 00:00:00 2001 From: Patrick Skowronek Date: Wed, 13 Nov 2024 16:56:27 +0100 Subject: [PATCH 2/3] feat: add dktk specific stratifier for a sample centric search --- resources/cql/DKTK_REPLACE_SPECIMEN_STRATIFIER | 4 ++++ resources/cql/DKTK_STRAT_SPECIMEN_STRATIFIER | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 resources/cql/DKTK_REPLACE_SPECIMEN_STRATIFIER diff --git a/resources/cql/DKTK_REPLACE_SPECIMEN_STRATIFIER b/resources/cql/DKTK_REPLACE_SPECIMEN_STRATIFIER new file mode 100644 index 0000000..28c3080 --- /dev/null +++ b/resources/cql/DKTK_REPLACE_SPECIMEN_STRATIFIER @@ -0,0 +1,4 @@ +define function SampleType(specimen FHIR.Specimen): +specimen.type.coding.where(system = 'https://fhir.bbmri.de/CodeSystem/SampleMaterialType').code.first() + +define Specimen: diff --git a/resources/cql/DKTK_STRAT_SPECIMEN_STRATIFIER b/resources/cql/DKTK_STRAT_SPECIMEN_STRATIFIER index 28c3080..31100c1 100644 --- a/resources/cql/DKTK_STRAT_SPECIMEN_STRATIFIER +++ b/resources/cql/DKTK_STRAT_SPECIMEN_STRATIFIER @@ -1,4 +1,5 @@ -define function SampleType(specimen FHIR.Specimen): -specimen.type.coding.where(system = 'https://fhir.bbmri.de/CodeSystem/SampleMaterialType').code.first() - define Specimen: +if InInitialPopulation then [Specimen] else {} as List + +define function SampleType(specimen FHIR.Specimen): +specimen.type.coding.where(system = 'https://fhir.bbmri.de/CodeSystem/SampleMaterialType').code.first() \ No newline at end of file From 828134fc3863cb1c4b0ce591bc6cfc2b4177435f Mon Sep 17 00:00:00 2001 From: Patrick Skowronek Date: Mon, 20 Jan 2025 11:10:04 +0100 Subject: [PATCH 3/3] Added DKTK_REPLACE_HISTOLOGY_STRATIFIER for FFPE sample counting --- resources/cql/DKTK_REPLACE_HISTOLOGY_STRATIFIER | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 resources/cql/DKTK_REPLACE_HISTOLOGY_STRATIFIER diff --git a/resources/cql/DKTK_REPLACE_HISTOLOGY_STRATIFIER b/resources/cql/DKTK_REPLACE_HISTOLOGY_STRATIFIER new file mode 100644 index 0000000..b7b70d3 --- /dev/null +++ b/resources/cql/DKTK_REPLACE_HISTOLOGY_STRATIFIER @@ -0,0 +1,4 @@ +define Histo: +if InInitialPopulation then [Observation] else {} as List + +define function Histology(histo FHIR.Observation):