-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
620a6ee
commit 7440f95
Showing
3 changed files
with
309 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...ation-measure-evaluate-measure/test/blaze/fhir/operation/evaluate_measure/q62-consent.cql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
library "q62-consent" | ||
using FHIR version '4.0.0' | ||
include FHIRHelpers version '4.0.0' | ||
|
||
codesystem consent_policy: 'urn:oid:2.16.840.1.113883.3.1937.777.24.5.3' | ||
|
||
context Patient | ||
|
||
define InInitialPopulation: | ||
exists | ||
from [Consent] C | ||
where exists from C.provision.provision.code C where C ~ Code '2.16.840.1.113883.3.1937.777.24.5.3.8' from consent_policy |
294 changes: 294 additions & 0 deletions
294
...tion-measure-evaluate-measure/test/blaze/fhir/operation/evaluate_measure/q62-consent.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,294 @@ | ||
{ | ||
"resourceType": "Bundle", | ||
"type": "transaction", | ||
"entry": [ | ||
{ | ||
"resource": { | ||
"resourceType": "Patient", | ||
"id": "0" | ||
}, | ||
"request": { | ||
"method": "PUT", | ||
"url": "Patient/0" | ||
} | ||
}, | ||
{ | ||
"resource": { | ||
"resourceType": "Patient", | ||
"id": "1" | ||
}, | ||
"request": { | ||
"method": "PUT", | ||
"url": "Patient/1" | ||
} | ||
}, | ||
{ | ||
"resource": { | ||
"resourceType": "Patient", | ||
"id": "2" | ||
}, | ||
"request": { | ||
"method": "PUT", | ||
"url": "Patient/2" | ||
} | ||
}, | ||
{ | ||
"resource": { | ||
"resourceType": "Patient", | ||
"id": "3" | ||
}, | ||
"request": { | ||
"method": "PUT", | ||
"url": "Patient/3" | ||
} | ||
}, | ||
{ | ||
"resource": { | ||
"resourceType": "Patient", | ||
"id": "4" | ||
}, | ||
"request": { | ||
"method": "PUT", | ||
"url": "Patient/4" | ||
} | ||
}, | ||
{ | ||
"resource": { | ||
"resourceType": "Patient", | ||
"id": "5" | ||
}, | ||
"request": { | ||
"method": "PUT", | ||
"url": "Patient/5" | ||
} | ||
}, | ||
{ | ||
"resource": { | ||
"resourceType": "Consent", | ||
"id": "0", | ||
"patient": { | ||
"reference": "Patient/0" | ||
}, | ||
"provision": { | ||
"provision": [ | ||
{ | ||
"code": [ | ||
{ | ||
"coding": [ | ||
{ | ||
"system": "urn:oid:2.16.840.1.113883.3.1937.777.24.5.3", | ||
"code": "2.16.840.1.113883.3.1937.777.24.5.3.8", | ||
"display": "MDAT wissenschaftlich nutzen EU DSGVO NIVEAU" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"request": { | ||
"method": "PUT", | ||
"url": "Consent/0" | ||
} | ||
}, | ||
{ | ||
"resource": { | ||
"resourceType": "Consent", | ||
"id": "1", | ||
"patient": { | ||
"reference": "Patient/1" | ||
}, | ||
"provision": { | ||
"provision": [ | ||
{ | ||
"code": [ | ||
{ | ||
"coding": [ | ||
{ | ||
"system": "urn:oid:2.16.840.1.113883.3.1937.777.24.5.3", | ||
"code": "2.16.840.1.113883.3.1937.777.24.5.3.8", | ||
"display": "MDAT wissenschaftlich nutzen EU DSGVO NIVEAU" | ||
}, | ||
{ | ||
"system": "urn:oid:2.16.840.1.113883.3.1937.777.24.5.3", | ||
"code": "2.16.840.1.113883.3.1937.777.24.5.3.3", | ||
"display": "IDAT speichern, verarbeiten" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"request": { | ||
"method": "PUT", | ||
"url": "Consent/1" | ||
} | ||
}, | ||
{ | ||
"resource": { | ||
"resourceType": "Consent", | ||
"id": "2", | ||
"patient": { | ||
"reference": "Patient/2" | ||
}, | ||
"provision": { | ||
"provision": [ | ||
{ | ||
"code": [ | ||
{ | ||
"coding": [ | ||
{ | ||
"system": "urn:oid:2.16.840.1.113883.3.1937.777.24.5.3", | ||
"code": "2.16.840.1.113883.3.1937.777.24.5.3.3", | ||
"display": "IDAT speichern, verarbeiten" | ||
} | ||
] | ||
}, | ||
{ | ||
"coding": [ | ||
{ | ||
"system": "urn:oid:2.16.840.1.113883.3.1937.777.24.5.3", | ||
"code": "2.16.840.1.113883.3.1937.777.24.5.3.8", | ||
"display": "MDAT wissenschaftlich nutzen EU DSGVO NIVEAU" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"request": { | ||
"method": "PUT", | ||
"url": "Consent/2" | ||
} | ||
}, | ||
{ | ||
"resource": { | ||
"resourceType": "Consent", | ||
"id": "3", | ||
"patient": { | ||
"reference": "Patient/3" | ||
}, | ||
"provision": { | ||
"provision": [ | ||
{ | ||
"code": [ | ||
{ | ||
"coding": [ | ||
{ | ||
"system": "urn:oid:2.16.840.1.113883.3.1937.777.24.5.3", | ||
"code": "2.16.840.1.113883.3.1937.777.24.5.3.3", | ||
"display": "IDAT speichern, verarbeiten" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"code": [ | ||
{ | ||
"coding": [ | ||
{ | ||
"system": "urn:oid:2.16.840.1.113883.3.1937.777.24.5.3", | ||
"code": "2.16.840.1.113883.3.1937.777.24.5.3.8", | ||
"display": "MDAT wissenschaftlich nutzen EU DSGVO NIVEAU" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"request": { | ||
"method": "PUT", | ||
"url": "Consent/3" | ||
} | ||
}, | ||
{ | ||
"resource": { | ||
"resourceType": "Consent", | ||
"id": "4", | ||
"patient": { | ||
"reference": "Patient/4" | ||
}, | ||
"provision": { | ||
"provision": [ | ||
{ | ||
"code": [ | ||
{ | ||
"coding": [ | ||
{ | ||
"system": "urn:oid:2.16.840.1.113883.3.1937.777.24.5.3", | ||
"code": "2.16.840.1.113883.3.1937.777.24.5.3.3", | ||
"display": "IDAT speichern, verarbeiten" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"request": { | ||
"method": "PUT", | ||
"url": "Consent/4" | ||
} | ||
}, | ||
{ | ||
"resource": { | ||
"resourceType": "Measure", | ||
"id": "0", | ||
"url": "0", | ||
"status": "active", | ||
"subjectCodeableConcept": { | ||
"coding": [ | ||
{ | ||
"system": "http://hl7.org/fhir/resource-types", | ||
"code": "Patient" | ||
} | ||
] | ||
}, | ||
"library": [ | ||
"0" | ||
], | ||
"scoring": { | ||
"coding": [ | ||
{ | ||
"system": "http://terminology.hl7.org/CodeSystem/measure-scoring", | ||
"code": "cohort" | ||
} | ||
] | ||
}, | ||
"group": [ | ||
{ | ||
"population": [ | ||
{ | ||
"code": { | ||
"coding": [ | ||
{ | ||
"system": "http://terminology.hl7.org/CodeSystem/measure-population", | ||
"code": "initial-population" | ||
} | ||
] | ||
}, | ||
"criteria": { | ||
"language": "text/cql-identifier", | ||
"expression": "InInitialPopulation" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"request": { | ||
"method": "PUT", | ||
"url": "Measure/0" | ||
} | ||
} | ||
] | ||
} |