Skip to content

Commit

Permalink
#39 EPR consent examples
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveregger committed Jan 27, 2021
1 parent c855f08 commit db56d91
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 0 deletions.
17 changes: 17 additions & 0 deletions input/ch.fhir.ig.ch-core.xml
Expand Up @@ -317,6 +317,23 @@
<exampleBoolean value="false"/>
</resource>

<resource>
<reference>
<reference value="Consent/PatientHasEpr"/>
</reference>
<name value="Consent for Swiss EPR"/>
<description value="Example for a consent that Patient has a Swiss EPR"/>
<exampleBoolean value="false"/>
</resource>
<resource>
<reference>
<reference value="Consent/EncounterExcludedForEpr"/>
</reference>
<name value="Consent for Swiss EPR with Encounter exclusions"/>
<description value="Example for a consent that Patient has a Swiss EPR but exclude it for a specific encounter"/>
<exampleBoolean value="false"/>
</resource>

<!-- references for naming systems -->
<resource>
<reference>
Expand Down
58 changes: 58 additions & 0 deletions 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"
}
}
]
}
}
47 changes: 47 additions & 0 deletions 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"
}
]
}
}

0 comments on commit db56d91

Please sign in to comment.