This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions
Example of simple directory admin allowing HR and IT
{
"resourceType" : "Permission",
"id" : "ex-permission-directory-admin",
"meta" : {
"security" : [{
"system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
"code" : "HTEST"
}]
},
"status" : "active",
"asserter" : {
"reference" : "Organization/example"
},
"date" : ["2023-11-22"],
"combining" : "deny-unless-permit",
"rule" : [{
"type" : "permit",
"activity" : [{
"action" : [{
"coding" : [{
"system" : "http://hl7.org/fhir/audit-event-action",
"code" : "C"
}]
},
{
"coding" : [{
"system" : "http://hl7.org/fhir/audit-event-action",
"code" : "R"
}]
},
{
"coding" : [{
"system" : "http://hl7.org/fhir/audit-event-action",
"code" : "U"
}]
},
{
"coding" : [{
"system" : "http://hl7.org/fhir/audit-event-action",
"code" : "D"
}]
},
{
"coding" : [{
"system" : "http://hl7.org/fhir/audit-event-action",
"code" : "E"
}]
}],
"purpose" : [{
"coding" : [{
"system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
"code" : "HDIRECT"
}]
}]
}]
},
{
"type" : "permit",
"activity" : [{
"action" : [{
"coding" : [{
"system" : "http://hl7.org/fhir/audit-event-action",
"code" : "C"
}]
},
{
"coding" : [{
"system" : "http://hl7.org/fhir/audit-event-action",
"code" : "R"
}]
},
{
"coding" : [{
"system" : "http://hl7.org/fhir/audit-event-action",
"code" : "U"
}]
},
{
"coding" : [{
"system" : "http://hl7.org/fhir/audit-event-action",
"code" : "D"
}]
},
{
"coding" : [{
"system" : "http://hl7.org/fhir/audit-event-action",
"code" : "E"
}]
}],
"purpose" : [{
"coding" : [{
"system" : "http://terminology.hl7.org/CodeSystem/v3-ActReason",
"code" : "HSYSADMIN"
}]
}]
}]
}]
}
Usage note: every effort has been made to ensure that the
examples are correct and useful, but they are not a normative part
of the specification.