Skip to content

Commit

Permalink
Merge pull request #163 from samply/feat/specimen_improved_search
Browse files Browse the repository at this point in the history
Modify DKTK_Strat_SPECIMEN to improve the search more sample centric
  • Loading branch information
patrickskowronekdkfz authored Jan 22, 2025
2 parents 2972b61 + 9645dcd commit ed0b9ac
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions resources/cql/DKTK_REPLACE_HISTOLOGY_STRATIFIER
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
define Histo:
if InInitialPopulation then [Observation] else {} as List <Observation>

define function Histology(histo FHIR.Observation):
4 changes: 4 additions & 0 deletions resources/cql/DKTK_REPLACE_SPECIMEN_STRATIFIER
Original file line number Diff line number Diff line change
@@ -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:
2 changes: 1 addition & 1 deletion resources/cql/DKTK_STRAT_SPECIMEN_STRATIFIER
Original file line number Diff line number Diff line change
@@ -2,4 +2,4 @@ define Specimen:
if InInitialPopulation then [Specimen] else {} as List<Specimen>

define function SampleType(specimen FHIR.Specimen):
specimen.type.coding.where(system = 'https://fhir.bbmri.de/CodeSystem/SampleMaterialType').code.first()
specimen.type.coding.where(system = 'https://fhir.bbmri.de/CodeSystem/SampleMaterialType').code.first()

0 comments on commit ed0b9ac

Please sign in to comment.