A RolePermission resource type is a collection of permissions.
A RolePermission is assigned to a GroupPolicy as needed to reflect the granular access rights and then the GroupPolicy is assigned to a user or user groups. The user is granted with all the permissions defined in the RolePermission.
The RolePermission resource type has the following elements:
url - The mandatory element url indicates the canonical identifier for the RolePermission resource, represented as a URI.
version - The mandatory element version indicates the version of the RolePermission resource.
name - The mandatory element name indicates the name of the RolePermission resource.
status - The mandatory element status is of type Coding and consists of the following:
system - The CodeSystem is http://hl7.org/fhir/resource-status and the ValueSet binding is http://hl7.org/fhir/ValueSet/resource-status|4.0.1.
code - The code indicates the status of the resource. The code value is maintained as active.
display - The display indicates the text for the status code.
HTTP Request
You can use an HTTP POST request to create a RolePermission resource:
POST [base]/RolePermission
Path Parameters
base: Service endpoint to interact with FHIR resources. For more information, see Service Endpoint.
Example
The RolePermission resource is created with the name Example-Role-Permission to provide access to the developer to perform the following:
Configure the BusinessConfiguration, CompartmentDefinition, and StructureDefinition resources, and to perform the validate FHIR path operation.
Providing access to the terminology resources and operations.
HTTP Status Response Codes
The following HTTP status response codes are returned for the create request:
HTTP Code
Scenario
Description
201
Successful creation
The RolePermission resource is successfully created.
400
Bad Request
Client error
422
Unprocessable Entity
Validation error. Returns 422 with corresponding error message in response body.
404
No Data Found
Authorization error. Returns 404 with no response body.