From 2ef655a519c5d93054920f516ecf552e152ac72c Mon Sep 17 00:00:00 2001 From: Alexander Kiel Date: Mon, 9 Dec 2024 12:29:36 +0100 Subject: [PATCH] Fix Problem with Fixed Criteria in Consent Closes: #165 --- pom.xml | 4 ++-- .../sq2cql/returningOnePatient/Consent.json | 23 +++++++++++++++++++ .../de/numcodex/sq2cql/testData.json | 17 ++++++++++++-- 3 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 src/test/resources/de/numcodex/sq2cql/returningOnePatient/Consent.json diff --git a/pom.xml b/pom.xml index 10279bc..10454e8 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ 7.6.0 1.20.4 2.0.16 - 3.0.0 + 3.0.1 @@ -177,7 +177,7 @@ download-single - https://github.com/medizininformatik-initiative/fhir-ontology-generator/raw/v${ontology.version}/example/fdpg-ontology/mapping.zip + https://github.com/medizininformatik-initiative/fhir-ontology-generator/releases/download/v${ontology.version}/mapping.zip ${project.build.directory} diff --git a/src/test/resources/de/numcodex/sq2cql/returningOnePatient/Consent.json b/src/test/resources/de/numcodex/sq2cql/returningOnePatient/Consent.json new file mode 100644 index 0000000..caa4d41 --- /dev/null +++ b/src/test/resources/de/numcodex/sq2cql/returningOnePatient/Consent.json @@ -0,0 +1,23 @@ +{ + "version": "http://to_be_decided.com/draft-1/schema#", + "display": "Ausgewählte Merkmale", + "inclusionCriteria": [ + [ + { + "termCodes": [ + { + "code": "yes-yes-no-no", + "display": "Verteilte, EU-DSGVO konforme Analyse, ohne Krankenkassendaten, und ohne Rekontaktierung", + "system": "fdpg.consent.combined" + } + ], + "context": { + "code": "Einwilligung", + "display": "Einwilligung", + "system": "fdpg.mii.cds", + "version": "1.0.0" + } + } + ] + ] +} diff --git a/src/test/resources/de/numcodex/sq2cql/testData.json b/src/test/resources/de/numcodex/sq2cql/testData.json index 5bcbf45..6874384 100644 --- a/src/test/resources/de/numcodex/sq2cql/testData.json +++ b/src/test/resources/de/numcodex/sq2cql/testData.json @@ -308,8 +308,8 @@ }, "category": [ { "coding": [ { - "system": "https://www.medizininformatik-initiative.de/fhir/modul-consent/CodeSystem/mii-cs-consent-consent_category", - "code": "2.16.840.1.113883.3.1937.777.24.2.184" + "system": "http://loinc.org", + "code": "57016-8" } ] } ], "patient": { @@ -430,6 +430,19 @@ "display": "MDAT_wissenschaftlich_nutzen_EU_DSGVO_NIVEAU" } ] } ] + },{ + "type": "permit", + "period": { + "start": "2016-01-15T07:39:20+01:00", + "end": "2016-06-23T07:39:20+01:00" + }, + "code": [ { + "coding": [ { + "code": "2.16.840.1.113883.3.1937.777.24.5.3.46", + "display": "MDAT retrospektiv wissenschaftlich nutzen EU DSGVO NIVEAU", + "system": "urn:oid:2.16.840.1.113883.3.1937.777.24.5.3" + } ] + } ] }, { "type": "permit", "period": {