using FHIR version '4.0.0'
include FHIRHelpers version '4.0.0'
codesystem icd10: 'http://fhir.de/CodeSystem/bfarm/icd-10-gm'
codesystem loinc: 'http://loinc.org'
context Patient
define "Histologie 59847-4 1":
[Observation: Code '59847-4' from loinc]
define "Histologie 59847-4 2":
[Observation: Code '59847-4' from loinc]
define "Histologie 59847-4 3":
[Observation: Code '59847-4' from loinc]
define "Histologie 59847-4 4":
[Observation: Code '59847-4' from loinc]
define "Histologie 59847-4 5":
[Observation: Code '59847-4' from loinc]
define "Histologie 59847-4 6":
[Observation: Code '59847-4' from loinc]
define "Histologie 59847-4 7":
[Observation: Code '59847-4' from loinc]
define "Histologie 59847-4 8":
[Observation: Code '59847-4' from loinc]
define "Histologie 59847-4 9":
[Observation: Code '59847-4' from loinc]
define "Histologie 59847-4 10":
[Observation: Code '59847-4' from loinc]
define Criterion:
exists (from [Condition: Code 'C50' from icd10] C
with "Histologie 59847-4" O
such that C.evidence.detail.reference = 'Observation/' + O.id) or
exists (from [Condition: Code 'C50.8' from icd10] C
with "Histologie 59847-4" O
such that C.evidence.detail.reference = 'Observation/' + O.id) or
exists (from [Condition: Code 'C50.9' from icd10] C
with "Histologie 59847-4" O
such that C.evidence.detail.reference = 'Observation/' + O.id) or
exists (from [Condition: Code 'C50.0' from icd10] C
with "Histologie 59847-4" O
such that C.evidence.detail.reference = 'Observation/' + O.id) or
exists (from [Condition: Code 'C50.2' from icd10] C
with "Histologie 59847-4" O
such that C.evidence.detail.reference = 'Observation/' + O.id) or
exists (from [Condition: Code 'C50.4' from icd10] C
with "Histologie 59847-4" O
such that C.evidence.detail.reference = 'Observation/' + O.id) or
exists (from [Condition: Code 'C50.6' from icd10] C
with "Histologie 59847-4" O
such that C.evidence.detail.reference = 'Observation/' + O.id) or
exists (from [Condition: Code 'C50.3' from icd10] C
with "Histologie 59847-4" O
such that C.evidence.detail.reference = 'Observation/' + O.id) or
exists (from [Condition: Code 'C50.5' from icd10] C
with "Histologie 59847-4" O
such that C.evidence.detail.reference = 'Observation/' + O.id) or
exists (from [Condition: Code 'C50.1' from icd10] C
with "Histologie 59847-4" O
such that C.evidence.detail.reference = 'Observation/' + O.id)
define InInitialPopulation:
Criterion
The CQL that is being produced for concepts with children and linked criteria seems to be incorrect.
Example:
leads to the following CQL