Skip to content

Instantly share code, notes, and snippets.

@taylorqj
Created April 19, 2023 16:07
Show Gist options
  • Select an option

  • Save taylorqj/895fa42ee763def529827373905d8d00 to your computer and use it in GitHub Desktop.

Select an option

Save taylorqj/895fa42ee763def529827373905d8d00 to your computer and use it in GitHub Desktop.
example-healthcareservice-filtered-policy
{
"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