Skip to content

Commit

Permalink
Use Equivalent Instead of Contains for Code Comparison
Browse files Browse the repository at this point in the history
Using equivalent works since #1872 and has the advantage that version
and display doesn't influence the equality.
  • Loading branch information
alexanderkiel committed Dec 2, 2024
1 parent b33a364 commit d2c3b03
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ define InInitialPopulation:
exists
from S.extension E
where E.url = 'https://fhir.bbmri.de/StructureDefinition/StorageTemperature'
and E.value.coding contains Code 'temperatureRoom' from StorageTemperature
and E.value as CodeableConcept ~ Code 'temperatureRoom' from StorageTemperature
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ codesystem FastingStatus: 'http://terminology.hl7.org/CodeSystem/v2-0916'
context Specimen

define InInitialPopulation:
Specimen.collection.fastingStatus.coding contains Code 'NF' from FastingStatus
Specimen.collection.fastingStatus as CodeableConcept ~ Code 'NF' from FastingStatus
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ define EwingSarkomMitStrahlentherapie:
from [Condition: Code 'C41.9' from icd10] C
with Strahlentherapien P
such that P.reasonReference.reference = 'Condition/' + C.id
where exists from C.bodySite BS where BS.coding contains Code 'C44.6' from idco3
where exists from C.bodySite BS where BS as CodeableConcept ~ Code 'C44.6' from idco3

define InInitialPopulation:
EwingSarkomMitStrahlentherapie
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ codesystem SampleMaterialType: 'https://fhir.bbmri.de/CodeSystem/SampleMaterialT
context Specimen

define InInitialPopulation:
Specimen.type.coding contains Code 'whole-blood' from SampleMaterialType
Specimen.type ~ Code 'whole-blood' from SampleMaterialType
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ context Patient
define InInitialPopulation:
exists
from [Observation: Code '59847-4' from loinc] O
where O.value.coding contains Code '8140/3' from icdo3
where O.value as CodeableConcept ~ Code '8140/3' from icdo3
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ codesystem icd_o: 'urn:oid:2.16.840.1.113883.6.43.1'
define InInitialPopulation:
exists
from [Specimen: Code 'whole-blood' from SampleMaterialType] S
where S.collection.bodySite.coding contains Code 'C26.1' from icd_o
where S.collection.bodySite as CodeableConcept ~ Code 'C26.1' from icd_o
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ define InInitialPopulation:
exists
from Specimen.extension E
where E.url = 'https://fhir.bbmri.de/StructureDefinition/StorageTemperature'
and E.value.coding contains Code 'temperatureRoom' from StorageTemperature
and E.value as CodeableConcept ~ Code 'temperatureRoom' from StorageTemperature

0 comments on commit d2c3b03

Please sign in to comment.