From a95fc4bd198ac3710cba29cb62509a945d83ad9e Mon Sep 17 00:00:00 2001 From: Oliver Egger Date: Mon, 28 Dec 2020 15:53:43 +0100 Subject: [PATCH] #39 EPR consent examples --- input/ch.fhir.ig.ch-core.xml | 17 ++++++ .../consent/EncounterExcludedForEpr.json | 58 +++++++++++++++++++ input/examples/consent/PatientHasEpr.json | 47 +++++++++++++++ 3 files changed, 122 insertions(+) create mode 100644 input/examples/consent/EncounterExcludedForEpr.json create mode 100644 input/examples/consent/PatientHasEpr.json diff --git a/input/ch.fhir.ig.ch-core.xml b/input/ch.fhir.ig.ch-core.xml index 755be93..8f2f852 100644 --- a/input/ch.fhir.ig.ch-core.xml +++ b/input/ch.fhir.ig.ch-core.xml @@ -316,6 +316,23 @@ + + + + + + + + + + + + + + + + + diff --git a/input/examples/consent/EncounterExcludedForEpr.json b/input/examples/consent/EncounterExcludedForEpr.json new file mode 100644 index 0000000..b3f55e3 --- /dev/null +++ b/input/examples/consent/EncounterExcludedForEpr.json @@ -0,0 +1,58 @@ +{ + "resourceType": "Consent", + "id": "EncounterExcludedForEpr", + "status": "active", + "scope": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/consentscope", + "code": "patient-privacy" + } + ] + }, + "category": [ + { + "coding": [ + { + "system": "http://loinc.org", + "code": "59284-0", + "display": "Patient Consent" + } + ] + } + ], + "patient": { + "reference": "Patient/ElisabethBroennimannByBFH", + "display": "Elisabeth Broennimann" + }, + "dateTime": "2020-12-28", + "organization": [ + { + "display": "Stammgemeinschaft XYZ" + } + ], + "policy": [ + { + "authority": "https://www.admin.ch/opc/de/classified-compilation/20111795/index.html" + } + ], + "policyRule": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "OPTIN" + } + ] + }, + "provision": { + "type": "deny", + "data": [ + { + "meaning": "instance", + "reference": { + "reference": "Encounter/EncounterAccidentBroennimann" + } + } + ] + } +} \ No newline at end of file diff --git a/input/examples/consent/PatientHasEpr.json b/input/examples/consent/PatientHasEpr.json new file mode 100644 index 0000000..c32c73b --- /dev/null +++ b/input/examples/consent/PatientHasEpr.json @@ -0,0 +1,47 @@ +{ + "resourceType": "Consent", + "id": "PatientHasEpr", + "status": "active", + "scope": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/consentscope", + "code": "patient-privacy" + } + ] + }, + "category": [ + { + "coding": [ + { + "system": "http://loinc.org", + "code": "59284-0", + "display": "Patient Consent" + } + ] + } + ], + "patient": { + "reference": "Patient/FranzMuster", + "display": "Franz Muster" + }, + "dateTime": "2020-12-28", + "organization": [ + { + "display": "Stammgemeinschaft XYZ" + } + ], + "policy": [ + { + "authority": "https://www.admin.ch/opc/de/classified-compilation/20111795/index.html" + } + ], + "policyRule": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "OPTIN" + } + ] + } +} \ No newline at end of file