Created
April 19, 2023 16:07
-
-
Save taylorqj/895fa42ee763def529827373905d8d00 to your computer and use it in GitHub Desktop.
example-healthcareservice-filtered-policy
This file contains hidden or 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
| { | |
| "id": "example-policy", | |
| "resourceType": "AccessPolicy", | |
| "name": "Example HealthcareService Access Policy", | |
| "description": "This access policy allows any Practitioner within a Healthcare Service to create, view, and update all patients and all practitioners.", | |
| "subject": [ | |
| { | |
| "code": "PATIENT" | |
| }, | |
| { | |
| "code": "PRACTITIONER" | |
| } | |
| ], | |
| "content": [ | |
| { | |
| "type": "resource", | |
| "code": "Patient", | |
| "read": true, | |
| "write": true, | |
| "create": true, | |
| "update": true | |
| }, | |
| { | |
| "type": "resource", | |
| "code": "Practitioner", | |
| "read": true, | |
| "write": true, | |
| "create": true, | |
| "update": true | |
| } | |
| ], | |
| "rule": [ | |
| { | |
| "type": "permit", | |
| "source": { | |
| "type": "any", | |
| "conditions": [ | |
| { | |
| "type": "in", | |
| "path": "HealthcareService.id", | |
| "values": [ | |
| "<insert Healthcare Service ID here>" | |
| ] | |
| }, | |
| { | |
| "type": "in", | |
| "path": "PractitionerRole.healthcareService", | |
| "values": [ | |
| "<insert Healthcare Service ID here>" | |
| ] | |
| } | |
| ] | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment