Roles and Permissions - Smile CDR Documentation

Roles and Permissions

The Smile CDR permission model has several key concepts:

Note that in many cases a combination of permissions are required in order to allow the user to perform specific functions. Some examples follow:

System-Defined Roles

The following table lists the roles that are built into Smile CDR and may be assigned to a user.

Role Description
ROLE_ANONYMOUS Anonymous
This role must be granted to any user that will be used for anonymous access requests. See Anonymous Access for more information.
ROLE_FHIR_CLIENT
Implies:

- ACCESS_FHIR_ENDPOINT
FHIR Client
User has permission to access the FHIR services as a client.
ROLE_FHIR_CLIENT_SUPERUSER
Implies:

- ACCESS_CAMEL_HTTP_ENDPOINT
- ACCESS_FHIRWEB
- ACCESS_FHIR_ENDPOINT
- BATCH_JOB_ANALYTICS
- CDA_IMPORT
- DOCREF
- DQM_QPP_BUILD
- FHIR_ACCESS_PARTITION_ALL
- FHIR_ALL_DELETE
- FHIR_ALL_READ
- FHIR_ALL_WRITE
- FHIR_BATCH
- FHIR_CAPABILITIES
- FHIR_DELETE_CASCADE_ALLOWED
- FHIR_DTR_USER
- FHIR_EMPI_ADMIN
- FHIR_EXTENDED_OPERATION_SUPERUSER
- FHIR_GET_RESOURCE_COUNTS
- FHIR_GRAPHQL
- FHIR_LIVEBUNDLE
- FHIR_MANAGE_PARTITIONS
- FHIR_MANUAL_VALIDATION
- FHIR_MDM_ADMIN
- FHIR_META_OPERATIONS_SUPERUSER
- FHIR_MODIFY_SEARCH_PARAMETERS
- FHIR_OP_ADD_AND_REMOVE_CONCEPT_MAPPING
- FHIR_OP_APPLY
- FHIR_OP_BINARY_ACCESS_READ
- FHIR_OP_BINARY_ACCESS_WRITE
- FHIR_OP_BULK_PATCH
- FHIR_OP_BULK_PATCH_REWRITE_HISTORY
- FHIR_OP_CARE_GAPS
- FHIR_OP_COLLECTDATA
- FHIR_OP_CQL
- FHIR_OP_DATAREQUIREMENTS
- FHIR_OP_EMPI_CLEAR
- FHIR_OP_EMPI_DUPLICATE_PERSONS
- FHIR_OP_EMPI_MERGE_PERSONS
- FHIR_OP_EMPI_QUERY_LINKS
- FHIR_OP_EMPI_SUBMIT
- FHIR_OP_EMPI_UPDATE_LINK
- FHIR_OP_ENCOUNTER_EVERYTHING
- FHIR_OP_EVALUATE
- FHIR_OP_EVALUATE_MEASURE
- FHIR_OP_EVALUATE_MEASURES
- FHIR_OP_EXTRACT
- FHIR_OP_INITIATE_BULK_DATA_EXPORT
- FHIR_OP_INITIATE_BULK_DATA_EXPORT_ALL_PATIENTS
- FHIR_OP_INITIATE_BULK_DATA_EXPORT_PATIENT
- FHIR_OP_INITIATE_BULK_DATA_EXPORT_PATIENTS
- FHIR_OP_INITIATE_BULK_DATA_EXPORT_SYSTEM
- FHIR_OP_INITIATE_BULK_DATA_IMPORT
- FHIR_OP_MDM_BUNDLE_MATCH
- FHIR_OP_MDM_CLEAR
- FHIR_OP_MDM_CREATE_LINK
- FHIR_OP_MDM_DUPLICATE_GOLDEN_RESOURCES
- FHIR_OP_MDM_LINK_HISTORY
- FHIR_OP_MDM_MERGE_GOLDEN_RESOURCES
- FHIR_OP_MDM_NOT_DUPLICATE
- FHIR_OP_MDM_QUERY_LINKS
- FHIR_OP_MDM_SUBMIT
- FHIR_OP_MDM_UPDATE_LINK
- FHIR_OP_MEMBER_MATCH
- FHIR_OP_MERGE
- FHIR_OP_PACKAGE
- FHIR_OP_PATIENT_EVERYTHING
- FHIR_OP_PATIENT_MATCH
- FHIR_OP_PATIENT_SUMMARY
- FHIR_OP_POPULATE
- FHIR_OP_PREPOPULATE
- FHIR_OP_REINDEX
- FHIR_OP_REPLACE_REFERENCES
- FHIR_OP_STRUCTUREDEFINITION_SNAPSHOT
- FHIR_OP_SUBMIT_DATA
- FHIR_OP_TERMINOLOGY_INVALIDATE_VALUESET
- FHIR_OP_UPDATE_TOKENIZATION
- FHIR_PATCH
- FHIR_PROCESS_MESSAGE
- FHIR_READ_SEARCH_PARAMETERS
- FHIR_SEMANTIC_UPLIFT
- FHIR_TRANSACTION
- FHIR_TRIGGER_SUBSCRIPTION
- FHIR_UPDATE_REWRITE_HISTORY
- FHIR_UPLOAD_EXTERNAL_TERMINOLOGY
- INVOKE_ANY_CAMEL_HTTP_ENDPOINT
- ROLE_FHIR_TERMINOLOGY_READ_CLIENT
- SDH_CDA_TO_FHIR
- SMILE_GENERATE_CDA
- SUBMIT_ATTACHMENT
FHIR Client (Superuser)
User has permission to perform any standard FHIR client operation. This does not imply superuser status for other parts of the CDR (e.g. user management, FHIR search parameter modification, etc.).
ROLE_FHIR_CLIENT_SUPERUSER_RO
Implies:

- FHIR_ALL_READ
- FHIR_BATCH
- FHIR_CAPABILITIES
- FHIR_GET_RESOURCE_COUNTS
- FHIR_GRAPHQL
- FHIR_OP_BINARY_ACCESS_READ
- FHIR_OP_ENCOUNTER_EVERYTHING
- FHIR_OP_INITIATE_BULK_DATA_EXPORT
- FHIR_OP_PATIENT_EVERYTHING
- FHIR_OP_PATIENT_SUMMARY
- FHIR_TRANSACTION
- ROLE_FHIR_TERMINOLOGY_READ_CLIENT
FHIR Client (Read-Only Superuser)
User has permission to perform any standard FHIR client read/fetch operation. This permission allows the user to perform any read, search, history, etc. operation but does not allow the user to perform create, update, etc. This permission does not imply superuser status for other parts of the CDR (e.g. user management, FHIR search parameter modification, etc.).
ROLE_FHIR_TERMINOLOGY_READ_CLIENT
Implies:

- ROLE_FHIR_CLIENT
FHIR Terminology Service Read-Only Client
User is permitted to invoke any terminology read-only operations. In other words, this role includes various capabilities relating to accessing data in the FHIR terminology services. This includes operations such as $lookup and $validate-code, as well as read and search capabilities on ValueSet, CodeSystem, and ConceptMap resources.
ROLE_MDMUI_ADMIN_FHIR
Implies:

- FHIR_OP_MDM_CLEAR
- FHIR_OP_MDM_SUBMIT
- ROLE_MDMUI_DATASTEWARD_FHIR
Role MDMUI Admin FHIR
This permission grants necessary FHIR permissions to an Admin user inside MDM User Interface application.
ROLE_MDMUI_DATASTEWARD_FHIR
Implies:

- FHIR_ALL_READ
- FHIR_BATCH
- FHIR_OP_MDM_DUPLICATE_GOLDEN_RESOURCES
- FHIR_OP_MDM_LINK_HISTORY
- FHIR_OP_MDM_MERGE_GOLDEN_RESOURCES
- FHIR_OP_MDM_NOT_DUPLICATE
- FHIR_OP_MDM_QUERY_LINKS
- FHIR_OP_MDM_UPDATE_LINK
- FHIR_TRANSACTION
- ROLE_FHIR_TERMINOLOGY_READ_CLIENT
Role MDMUI Data Steward FHIR
This permission grants necessary FHIR permissions to a Data Steward user inside MDM User Interface application.
ROLE_SUPERUSER
Implies:

- ACCESS_ADMIN_JSON
- ACCESS_ADMIN_WEB
- ACCESS_CAMEL_HTTP_ENDPOINT
- ACCESS_EASYSHARE
- ACCESS_FHIRWEB
- ACCESS_FHIR_ENDPOINT
- AG_ADMIN_CONSOLE_READ
- AG_ADMIN_CONSOLE_WRITE
- AG_DEV_PORTAL_READ
- AG_DEV_PORTAL_WRITE
- ARCHIVE_MODULE
- BATCH_JOB_ANALYTICS
- CDA_IMPORT
- CHANGE_OWN_DEFAULT_LAUNCH_CONTEXTS
- CHANGE_OWN_PASSWORD
- CHANGE_OWN_TFA_KEY
- CONTROL_MODULE
- CREATE_ANY_SCHEDULED_JOB
- CREATE_CDA_TEMPLATE
- CREATE_MODULE
- CREATE_USER
- DELETE_ANY_SCHEDULED_JOB
- DELETE_CDA_TEMPLATE
- DOCREF
- DQM_QPP_BUILD
- EASYSHARE_CREATE_SMART_HEALTH_LINK
- EMPI_ADMIN
- EMPI_UPDATE_MATCH_RULES
- EMPI_VIEW_MATCH_RULES
- ETL_IMPORT_PROCESS_FILE
- FHIR_ACCESS_PARTITION_ALL
- FHIR_ALL_DELETE
- FHIR_ALL_READ
- FHIR_ALL_WRITE
- FHIR_AUTO_MDM
- FHIR_BATCH
- FHIR_CAPABILITIES
- FHIR_DELETE_CASCADE_ALLOWED
- FHIR_DTR_USER
- FHIR_EMPI_ADMIN
- FHIR_EXTENDED_OPERATION_SUPERUSER
- FHIR_GET_RESOURCE_COUNTS
- FHIR_GRAPHQL
- FHIR_LIVEBUNDLE
- FHIR_MANAGE_PARTITIONS
- FHIR_MANUAL_VALIDATION
- FHIR_MDM_ADMIN
- FHIR_META_OPERATIONS_SUPERUSER
- FHIR_MODIFY_SEARCH_PARAMETERS
- FHIR_OP_ADD_AND_REMOVE_CONCEPT_MAPPING
- FHIR_OP_APPLY
- FHIR_OP_BINARY_ACCESS_READ
- FHIR_OP_BINARY_ACCESS_WRITE
- FHIR_OP_BULK_PATCH
- FHIR_OP_BULK_PATCH_REWRITE_HISTORY
- FHIR_OP_CARE_GAPS
- FHIR_OP_COLLECTDATA
- FHIR_OP_CQL
- FHIR_OP_DATAREQUIREMENTS
- FHIR_OP_EMPI_CLEAR
- FHIR_OP_EMPI_DUPLICATE_PERSONS
- FHIR_OP_EMPI_MERGE_PERSONS
- FHIR_OP_EMPI_QUERY_LINKS
- FHIR_OP_EMPI_SUBMIT
- FHIR_OP_EMPI_UPDATE_LINK
- FHIR_OP_ENCOUNTER_EVERYTHING
- FHIR_OP_EVALUATE
- FHIR_OP_EVALUATE_MEASURE
- FHIR_OP_EVALUATE_MEASURES
- FHIR_OP_EXTRACT
- FHIR_OP_INITIATE_BULK_DATA_EXPORT
- FHIR_OP_INITIATE_BULK_DATA_EXPORT_ALL_PATIENTS
- FHIR_OP_INITIATE_BULK_DATA_EXPORT_PATIENT
- FHIR_OP_INITIATE_BULK_DATA_EXPORT_PATIENTS
- FHIR_OP_INITIATE_BULK_DATA_EXPORT_SYSTEM
- FHIR_OP_INITIATE_BULK_DATA_IMPORT
- FHIR_OP_MDM_BUNDLE_MATCH
- FHIR_OP_MDM_CLEAR
- FHIR_OP_MDM_CREATE_LINK
- FHIR_OP_MDM_DEDUPLICATE
- FHIR_OP_MDM_DUPLICATE_GOLDEN_RESOURCES
- FHIR_OP_MDM_LINK_HISTORY
- FHIR_OP_MDM_MERGE_GOLDEN_RESOURCES
- FHIR_OP_MDM_NOT_DUPLICATE
- FHIR_OP_MDM_QUERY_LINKS
- FHIR_OP_MDM_SUBMIT
- FHIR_OP_MDM_UPDATE_LINK
- FHIR_OP_MEMBER_MATCH
- FHIR_OP_MERGE
- FHIR_OP_PACKAGE
- FHIR_OP_PATIENT_EVERYTHING
- FHIR_OP_PATIENT_MATCH
- FHIR_OP_PATIENT_SUMMARY
- FHIR_OP_POPULATE
- FHIR_OP_PREPOPULATE
- FHIR_OP_REINDEX
- FHIR_OP_REPLACE_REFERENCES
- FHIR_OP_STRUCTUREDEFINITION_SNAPSHOT
- FHIR_OP_SUBMIT_DATA
- FHIR_OP_TERMINOLOGY_INVALIDATE_VALUESET
- FHIR_OP_UPDATE_TOKENIZATION
- FHIR_PATCH
- FHIR_PROCESS_MESSAGE
- FHIR_READ_SEARCH_PARAMETERS
- FHIR_REPARTITION_BY_REFERENCE
- FHIR_SEMANTIC_UPLIFT
- FHIR_TRANSACTION
- FHIR_TRIGGER_SUBSCRIPTION
- FHIR_UPDATE_REWRITE_HISTORY
- FHIR_UPLOAD_EXTERNAL_TERMINOLOGY
- HFQL_EXECUTE
- INVOKE_ANY_CAMEL_HTTP_ENDPOINT
- INVOKE_CDS_HOOKS
- MANAGE_BATCH_JOBS
- MDM_ADMIN
- MDM_UPDATE_MATCH_RULES
- MDM_VIEW_MATCH_RULES
- MODULE_ADMIN
- OPENID_CONNECT_ADD_CLIENT
- OPENID_CONNECT_ADD_SERVER
- OPENID_CONNECT_EDIT_CLIENT
- OPENID_CONNECT_EDIT_SERVER
- OPENID_CONNECT_MANAGE_GLOBAL_SESSIONS
- OPENID_CONNECT_MANAGE_KEYSTORES
- OPENID_CONNECT_VIEW_CLIENT_LIST
- OPENID_CONNECT_VIEW_SERVER_LIST
- PACKAGE_REGISTRY_READ
- PACKAGE_REGISTRY_WRITE
- READ_ANY_SCHEDULED_JOB
- READ_ANY_SCHEDULED_JOB_HISTORY
- REINSTATE_MODULE
- ROLE_FHIR_TERMINOLOGY_READ_CLIENT
- SAVE_USER
- SDH_CDA_TO_FHIR
- SMILE_GENERATE_CDA
- SMILE_PORTAL_ALL
- START_STOP_MODULE
- SUBMIT_ATTACHMENT
- TRIGGER_ANY_SCHEDULED_JOB
- UPDATE_ANY_SCHEDULED_JOB
- UPDATE_MODULE_CONFIG
- UPDATE_USER
- USE_CDA_TEMPLATE
- VIEW_AUDIT_LOG
- VIEW_BATCH_JOBS
- VIEW_CDA_TEMPLATE
- VIEW_METRICS
- VIEW_MODULE_CONFIG
- VIEW_MODULE_STATUS
- VIEW_TRANSACTION_LOG
- VIEW_TRANSACTION_LOG_EVENT
- VIEW_USERS
Superuser
User has all permissions to do anything. Use this permission with caution since it gives the user access to almost all administrative functions.

System-Defined Permissions

The following table lists the permissions that are built into Smile CDR and may be assigned to a user.

Permission Description
ACCESS_ADMIN_JSON Access JSON Admin API Endpoint
User is allowed to invoke operations on the JSON Admin API endpoint. Note that this permission does not give the user the ability to actually perform any of the functions on the API so this permission is generally granted in combination with at least one other.

This permission does not take any arguments.
ACCESS_ADMIN_WEB
Implies:

- CHANGE_OWN_PASSWORD
Admin
User is allowed to log into the Web Admin Console.

This permission does not take any arguments.
ACCESS_CAMEL_HTTP_ENDPOINT Access Camel HTTP Endpoint
User is allowed to invoke Camel routes via the URLs configured in the Camel HTTP Endpoint module

This permission does not take any arguments.
ACCESS_EASYSHARE Access EasyShare
This permission allows a user to authenticate for EasyShare services and/or web applications. This permission is not typically granted directly, and is instead implied by other specific EasyShare permissions such as EASYSHARE_CREATE_SMART_HEALTH_LINK.

This permission does not take any arguments.
ACCESS_FHIRWEB Access FHIRWeb Console
User is allowed to access the FHIRWeb Console, which can be used for testing, building FHIR queries, and exploring data in the database. Note that this permission only allows access to the FHIRWeb Console; the user still needs to have other appropriate permissions for any desired operations or they will be blocked.

This permission does not take any arguments.
ACCESS_FHIR_ENDPOINT FHIR Client
User is allowed to access FHIR services as a client.

This permission does not take any arguments.
AG_ADMIN_CONSOLE_READ appSphere Admin Console (read)
User is permitted to access application information using appSphere Admin Console

This permission does not take any arguments.
AG_ADMIN_CONSOLE_WRITE appSphere Admin Console (write)
User is permitted to update existing application information using appSphere Admin Console

This permission does not take any arguments.
AG_DEV_PORTAL_READ appSphere Developer Portal (read)
User is permitted to access application information using appSphere Developer Portal

This permission does not take any arguments.
AG_DEV_PORTAL_WRITE appSphere Developer Portal (write)
User is permitted to add new application information using appSphere Developer Portal

This permission does not take any arguments.
APP_ROLE Role permissions.
Use has all permissions indicated in role.

Argument
The argument to this permission takes a list of implied permission names.
ARCHIVE_MODULE
Implies:

- VIEW_MODULE_CONFIG
Archive Modules
User is allowed to archive modules.

This permission does not take any arguments.
BATCH_JOB_ANALYTICS
Implies:

- ROLE_FHIR_CLIENT
Batch Job Analytics
Allows the user to call $job-analytics on a specific batch job. Currently limited to $evaluate-measures batch jobs.

This permission does not take any arguments.
CDA_IMPORT
Implies:

- ROLE_FHIR_CLIENT
Import CDA Documents
User is allowed to use the $sdh.import-cda operation to import CDA documents

This permission does not take any arguments.
CHANGE_OWN_DEFAULT_LAUNCH_CONTEXTS Change Own Launch Contexts
User is allowed to update the SMART launch context(s) associated with their own account.

This permission does not take any arguments.
CHANGE_OWN_PASSWORD Change Own Password
User is allowed to change their own password.

This permission does not take any arguments.
CHANGE_OWN_TFA_KEY Can set own 2FA Key
User is allowed to set up their own 2FA key (as opposed to having one assigned by an administrator).

This permission does not take any arguments.
CONTROL_MODULE
Implies:

- START_STOP_MODULE
- VIEW_MODULE_CONFIG
Control Module
User is allowed to start/stop/restart modules.

This permission does not take any arguments.
CONTROL_MODULE_FOR_MODULE
Implies:

- START_STOP_MODULE_FOR_MODULE
- VIEW_MODULE_CONFIG_FOR_MODULE
Control a specific module in a node.
User is allowed to start/stop/restart a specific module in a node.

Argument
The argument to this permission takes a nodeid and a moduleid separated by /, for which you'd like to grant access to the user. For example: Master/subscription
CREATE_ANY_SCHEDULED_JOB
Implies:

- READ_ANY_SCHEDULED_JOB
- TRIGGER_ANY_SCHEDULED_JOB
Create a custom scheduled job
Allows the user to create and save any kind of custom scheduled job in any module.

This permission does not take any arguments.
CREATE_CDA_TEMPLATE
Implies:

- VIEW_CDA_TEMPLATE
Create CDA templates
User is allowed to create (and update existing) CDA document template scripts. Use this permission with caution, as these scripts, when called upon, have the ability to create, view, and modify data without additional permissions.

This permission does not take any arguments.
CREATE_MODULE
Implies:

- VIEW_MODULE_CONFIG
Create Modules
User is allowed to create new modules.

This permission does not take any arguments.
CREATE_USER Create Users
User is allowed to create other users.

This permission does not take any arguments.
CUSTOM_ROLE Custom Role permissions.
Use has all permissions indicated in custom role.

Argument
The argument to this permission takes a list of implied permission names.
DELETE_ANY_SCHEDULED_JOB
Implies:

- READ_ANY_SCHEDULED_JOB
Delete any custom scheduled job
Allows a user to delete any existing custom scheduled jobs (along with all of its execution history) in any module

This permission does not take any arguments.
DELETE_CDA_TEMPLATE
Implies:

- VIEW_CDA_TEMPLATE
Delete CDA templates
User is allowed to delete CDA document template scripts.

This permission does not take any arguments.
DOCREF
Implies:

- ROLE_FHIR_CLIENT
DOCREF
User is allowed to use $docref operation

This permission does not take any arguments.
DQM_QPP_BUILD
Implies:

- ROLE_FHIR_CLIENT
Dqm QPP Build
Transform MeasureReport into QPP format

This permission does not take any arguments.
EASYSHARE_CREATE_SMART_HEALTH_LINK
Implies:

- ACCESS_EASYSHARE
Create SMART Health Link
User is allowed to create a SMART Health Link using either the EasyShare SHL REST API or the EasyShare SHL Admin Application.

This permission does not take any arguments.
EMPI_ADMIN
Implies:

- EMPI_UPDATE_MATCH_RULES
- EMPI_VIEW_MATCH_RULES
EMPI Admin
User may perform any administrative functions for the EMPI.

This permission does not take any arguments.
EMPI_UPDATE_MATCH_RULES EMPI Update Match Rules
User can set/update matching rules for the EMPI.

This permission does not take any arguments.
EMPI_VIEW_MATCH_RULES EMPI VIEW Match Rules
User can view matching rules for the EMPI.

This permission does not take any arguments.
ETL_IMPORT_PROCESS_FILE ETL Import / Process File
User is allowed to initiate the processing of an ETL import job. Use this permission with caution, as import jobs have a large amount of flexibility to create and modify data and do not require additional permissions.

This permission does not take any arguments.
FHIR_ACCESS_PARTITION_ALL
Implies:

- ROLE_FHIR_CLIENT
Access data in ALL Partitions
User is allowed to access (includes both read and write operations) data in all partitions. Note that this permission does not actually authorize any specific read/write operations, it simply implies access to the partitions.

This permission does not take any arguments.
FHIR_ACCESS_PARTITION_NAME
Implies:

- ROLE_FHIR_CLIENT
Access data in Partition
User is allowed to access (includes both read and write operations) data in the given partition. Note that this permission does not actually authorize any specific read/write operations, it simply implies access to the given partition.

Argument
The argument to this permission is a partition name, or a comma separated collection of partition names
FHIR_ALL_DELETE
Implies:

- ROLE_FHIR_CLIENT
FHIR Delete (All)
User is allowed to perform any FHIR delete operation.

Argument
An optional query filter to restrict the scope.
FHIR_ALL_READ
Implies:

- FHIR_READ_SEARCH_PARAMETERS
- ROLE_FHIR_CLIENT
FHIR Read (All)
User is allowed to perform any FHIR read/access-to-data operation (e.g. read, search, history, etc.).

Argument
An optional query filter to restrict the scope.
FHIR_ALL_WRITE
Implies:

- FHIR_META_OPERATIONS_SUPERUSER
- FHIR_MODIFY_SEARCH_PARAMETERS
- ROLE_FHIR_CLIENT
FHIR Write (All)
User is allowed to perform any FHIR write/modify operation (e.g. create, update, etc.).

Argument
An optional query filter to restrict the scope.
FHIR_AUTO_MDM Automatic MDM Expansion
Perform MDM expansion for all search parameters in the Patient compartment, even if the :mdm qualifier is not explicitly provided in the query

This permission does not take any arguments.
FHIR_BATCH
Implies:

- ROLE_FHIR_CLIENT
FHIR Batch
User is allowed to perform a FHIR Batch. Note that this permission only allows the batch operation to happen; the user still needs to have other appropriate permissions for the operations in the batch or it will be blocked.

This permission does not take any arguments.
FHIR_CAPABILITIES
Implies:

- ROLE_FHIR_CLIENT
FHIR Access Server Capability Statement (metadata)
User is allowed to access the server's capability statement. This permission is often granted to anonymous users.

This permission does not take any arguments.
FHIR_DELETE_ALL_IN_COMPARTMENT
Implies:

- ROLE_FHIR_CLIENT
FHIR Delete (All in Compartment)
User is permitted to delete any resource in the given compartment.

Argument
The argument to this permission is the name of the compartment to which access is being granted, and an optional query filter to restrict the scope.
FHIR_DELETE_ALL_OF_TYPE
Implies:

- ROLE_FHIR_CLIENT
FHIR Delete (All of Type)
User is allowed to delete any resource of the type specified in the argument (e.g. Patient).

Argument
The argument to this permission is the resource type, and an optional query filter to restrict the scope.
FHIR_DELETE_CASCADE_ALLOWED
Implies:

- ROLE_FHIR_CLIENT
FHIR Delete - Cascading Allowed
User is permitted to perform cascading deletes. See Cascading Deletes for more information.

This permission does not take any arguments.
FHIR_DELETE_EXPUNGE
Implies:

- ROLE_FHIR_CLIENT
FHIR Delete and Expunge ($delete-expunge) All Data
User is permitted to invoke the $delete-expunge operation to permanently delete ALL data on the server. This is a dangerous operation, as it causes data to be permanently deleted. Use caution when granting this permission. See deleting data for information on this operation. Note that the ROLE_FHIR_CLIENT_SUPERUSER role does not grant this permission, it must be explicitly enabled.

This permission does not take any arguments.
FHIR_DELETE_TYPE_IN_COMPARTMENT
Implies:

- ROLE_FHIR_CLIENT
FHIR Delete (Specific Type in Compartment)
User is permitted to delete any resource of the given type in the given compartment.

Argument
The argument to this permission is the name of the type to allow deletion on, followed by a colon, followed by the name of the compartment to which access is being granted, and an optional query filter to restrict the scope. For example, the argument Observation:Patient/123?date=2025 means that the user is permitted to delete any Observation resource in the Patient/123 compartment with clinical date in 2025.
FHIR_DTR_USER
Implies:

- FHIR_OP_PACKAGE
- FHIR_OP_POPULATE
DTR User privileges
Can execute any DTR operation

This permission does not take any arguments.
FHIR_EMPI_ADMIN
Implies:

- FHIR_OP_EMPI_CLEAR
- FHIR_OP_EMPI_DUPLICATE_PERSONS
- FHIR_OP_EMPI_MERGE_PERSONS
- FHIR_OP_EMPI_QUERY_LINKS
- FHIR_OP_EMPI_SUBMIT
- FHIR_OP_EMPI_UPDATE_LINK
EMPI Administrative privileges
Can execute any EMPI operation.

This permission does not take any arguments.
FHIR_EXPUNGE_DELETED
Implies:

- ROLE_FHIR_CLIENT
FHIR Expunge ($expunge) Deleted Resources
User is permitted to invoke the $expunge operation to permanently delete logically deleted resources. This is a dangerous operation, as it causes data to be permanently deleted. Use caution when granting this permission. See [/docs/fhir_repository/deleting_data.html](deleting data) for information on this operation. Note that the ROLE_FHIR_CLIENT_SUPERUSER role does not grant this permission, it must be explicitly enabled.

This permission does not take any arguments.
FHIR_EXPUNGE_EVERYTHING
Implies:

- ROLE_FHIR_CLIENT
FHIR Expunge ($expunge) All Data
User is permitted to invoke the $expunge operation to permanently delete ALL data on the server. This is a dangerous operation, as it causes data to be permanently deleted. Use caution when granting this permission. See [/docs/fhir_repository/deleting_data.html](deleting data) for information on this operation. Note that the ROLE_FHIR_CLIENT_SUPERUSER role does not grant this permission, it must be explicitly enabled.

This permission does not take any arguments.
FHIR_EXPUNGE_PREVIOUS_VERSIONS
Implies:

- ROLE_FHIR_CLIENT
FHIR Expunge ($expunge) Previous Versions
User is permitted to invoke the $expunge operation. This is a dangerous operation, as it causes data to be permanently deleted. Use caution when granting this permission. See [/docs/fhir_repository/deleting_data.html](deleting data) for information on this operation. Note that the ROLE_FHIR_CLIENT_SUPERUSER role does not grant this permission, it must be explicitly enabled.

This permission does not take any arguments.
FHIR_EXTENDED_OPERATION_ON_ANY_INSTANCE
Implies:

- ROLE_FHIR_CLIENT
Extended Operation (Instance Level / Unchecked Response)
User may invoke operation at the instance level on any operation name specified by argument in the form: $fooOperation. When using this permission, the operation response is not validated/authorized in any way, so this authority should only be granted for operations that are known to be appropriate for the user.

Argument
The argument to this permission is the operation name.
FHIR_EXTENDED_OPERATION_ON_ANY_INSTANCE_OF_TYPE
Implies:

- ROLE_FHIR_CLIENT
Extended Operation (Instance Level / Unchecked Response)
User may invoke operation at the instance level with type and operation name specified by argument in the form: Patient/$fooOperation. When using this permission, the operation response is not validated/authorized in any way, so this authority should only be granted for operations that are known to be appropriate for the user.

Argument
The argument to this permission is the resource type and operation name.
FHIR_EXTENDED_OPERATION_ON_SERVER
Implies:

- ROLE_FHIR_CLIENT
Extended Operation (Server Level / Unchecked Response)
User may invoke operation with name specified by argument (e.g. $fooOperation). When using this permission, the operation response is not validated/authorized in any way, so this authority should only be granted for operations that are known to be appropriate for the user.

Argument
The argument to this permission is the resource type and operation name.
FHIR_EXTENDED_OPERATION_ON_TYPE
Implies:

- ROLE_FHIR_CLIENT
Extended Operation (Type Level / Unchecked Response)
User may invoke operation at the type level with type and name specified by argument in the form: Patient/$fooOperation. When using this permission, the operation response is not validated/authorized in any way, so this authority should only be granted for operations that are known to be appropriate for the user.

Argument
The argument to this permission is the resource type and operation name.
FHIR_EXTENDED_OPERATION_SUPERUSER
Implies:

- ROLE_FHIR_CLIENT
Extended Operation (Server Level / Unchecked Response)
User may invoke any operation except for $expunge and $delete-expunge. When using this permission, the operation response is not validated/authorized in any way, so this authority should only be granted for operations that are known to be appropriate for the user.

This permission does not take any arguments.
FHIR_GET_RESOURCE_COUNTS
Implies:

- ROLE_FHIR_CLIENT
FHIR Get Server Resource Counts
User is permitted to call the $get-resource-counts operation, requesting the total counts of resources on the server.

This permission does not take any arguments.
FHIR_GRAPHQL
Implies:

- ROLE_FHIR_CLIENT
FHIR GraphQL Operation
User may invoke the GraphQL Operation. Note that user must still have additional permissions to see the resources being requested via GraphQL.

This permission does not take any arguments.
FHIR_LIVEBUNDLE
Implies:

- ROLE_FHIR_CLIENT
FHIR LiveBundle Operations
User is allowed to invoke the $livebundle-watchlist-add, $livebundle-watchlist-delete, $livebundle-watchlist, and $livebundle operations

This permission does not take any arguments.
FHIR_MANAGE_PARTITIONS
Implies:

- ROLE_FHIR_CLIENT
Manage Partitions
User is allowed to manage (add/update/delete) partition definitions in the system. Note that this permission is not automatically granted via the ROLE_FHIR_CLIENT_SUPERUSER permission and must be granted explicitly.

This permission does not take any arguments.
FHIR_MANUAL_VALIDATION
Implies:

- ROLE_FHIR_CLIENT
FHIR Manual Validation
User is allowed to invoke the $validate operation to validate resources.

This permission does not take any arguments.
FHIR_MDM_ADMIN
Implies:

- FHIR_OP_MDM_CLEAR
- FHIR_OP_MDM_CREATE_LINK
- FHIR_OP_MDM_DUPLICATE_GOLDEN_RESOURCES
- FHIR_OP_MDM_LINK_HISTORY
- FHIR_OP_MDM_MERGE_GOLDEN_RESOURCES
- FHIR_OP_MDM_NOT_DUPLICATE
- FHIR_OP_MDM_QUERY_LINKS
- FHIR_OP_MDM_SUBMIT
- FHIR_OP_MDM_UPDATE_LINK
MDM Administrative privileges
Can execute any MDM operation

This permission does not take any arguments.
FHIR_META_OPERATIONS_SUPERUSER
Implies:

- ROLE_FHIR_CLIENT
Resource Metadata Operations: Superuser
User is allowed to invoke the resource metadata operations ($meta, $meta-add, and $meta-delete) on any resource.

This permission does not take any arguments.
FHIR_MODIFY_SEARCH_PARAMETERS Modify Search Parameters
User is allowed to create, update, and delete search parameters.

This permission does not take any arguments.
FHIR_OP_ADD_AND_REMOVE_CONCEPT_MAPPING
Implies:

- ROLE_FHIR_CLIENT
Add/Remove ConceptMapping Entries
Invoke the ConceptMap/$hapi.fhir.add-mapping and ConceptMap/$hapi.fhir.remove-mapping operations

This permission does not take any arguments.
FHIR_OP_APPLY
Implies:

- ROLE_FHIR_CLIENT
Apply
Execute the Apply Operation

This permission does not take any arguments.
FHIR_OP_BINARY_ACCESS_READ
Implies:

- ROLE_FHIR_CLIENT
FHIR Binary Access Operations (read)
User is allowed to invoke the $binary-access-read operation (note that the user will also need permission to read/write the individual resource that is actually being accessed)

This permission does not take any arguments.
FHIR_OP_BINARY_ACCESS_WRITE
Implies:

- ROLE_FHIR_CLIENT
FHIR Binary Access Operations (write)
User is allowed to invoke the $binary-access-write operation (note that the user will also need permission to read/write the individual resource that is actually being accessed)

This permission does not take any arguments.
FHIR_OP_BULK_PATCH
Implies:

- ROLE_FHIR_CLIENT
Bulk Patch ($hapi.fhir.bulk-patch)
User is allowed to initiate a Bulk Patch operation. This permission grants the user authority to modify any resource in the repository, and should only be granted to administrative users. Consider revoking this permission when it is no longer needed.

This permission does not take any arguments.
FHIR_OP_BULK_PATCH_REWRITE_HISTORY
Implies:

- ROLE_FHIR_CLIENT
Bulk Patch with History Rewrite ($hapi.fhir.bulk-patch-rewrite-history)
User is allowed to initiate a Bulk Patch with History Rewrite operation. This permission grants the user authority to destructively modify any resource in the repository, and should only be granted to administrative users. Consider revoking this permission when it is no longer needed.

This permission does not take any arguments.
FHIR_OP_CARE_GAPS
Implies:

- ROLE_FHIR_CLIENT
CR Care Gaps
The care-gaps operation is used to determine gaps-in-care based on the results of quality measures.

This permission does not take any arguments.
FHIR_OP_COLLECTDATA
Implies:

- ROLE_FHIR_CLIENT
CR Collect Data
The effect of invoking this operation is to gather the data required to perform an evaluation of the measure.

This permission does not take any arguments.
FHIR_OP_CQL
Implies:

- ROLE_FHIR_CLIENT
CR CQL
Evaluates a CQL expression and returns the results as a Parameters resource.

This permission does not take any arguments.
FHIR_OP_DATAREQUIREMENTS
Implies:

- ROLE_FHIR_CLIENT
CR Data Requirements
The effect of invoking this operation is to determine the aggregate set of data requirements and dependencies for the measure.

This permission does not take any arguments.
FHIR_OP_EMPI_CLEAR
Implies:

- ROLE_FHIR_CLIENT
EMPI Clear Links
Delete all EMPI links, and remove all related Persons

This permission does not take any arguments.
FHIR_OP_EMPI_DUPLICATE_PERSONS
Implies:

- ROLE_FHIR_CLIENT
EMPI Duplicate Persons
Request all EMPI Duplicate Persons

This permission does not take any arguments.
FHIR_OP_EMPI_MERGE_PERSONS
Implies:

- ROLE_FHIR_CLIENT
Merge to EMPI Person resources
Merge one Person resource into another, copying over fields that are empty in the target, and copying over links that are missing in the target. MANUAL links will overwrite AUTO links. The original Person resource is deleted.

This permission does not take any arguments.
FHIR_OP_EMPI_QUERY_LINKS
Implies:

- ROLE_FHIR_CLIENT
EMPI Query Links
Request matching EMPI Links

This permission does not take any arguments.
FHIR_OP_EMPI_SUBMIT
Implies:

- ROLE_FHIR_CLIENT
EMPI Batch Processing.
Submit Patients/Practitioners for EMPI processing.

This permission does not take any arguments.
FHIR_OP_EMPI_UPDATE_LINK
Implies:

- ROLE_FHIR_CLIENT
EMPI Update Link
Update an EMPI Link

This permission does not take any arguments.
FHIR_OP_ENCOUNTER_EVERYTHING
Implies:

- ROLE_FHIR_CLIENT
Encounter Fetch ($everything)
User is allowed to search/fetch across the entire encounter (all resources belonging to that patient's compartment).

This permission does not take any arguments.
FHIR_OP_EVALUATE
Implies:

- ROLE_FHIR_CLIENT
CR Evaluate
The evaluate operation is used to evaluate cql expressions from a specified library resource and returns it as a Parameters resource.

This permission does not take any arguments.
FHIR_OP_EVALUATE_MEASURE
Implies:

- ROLE_FHIR_CLIENT
Evaluate Measure
Execute the CQL Evaluate Measure Operation

This permission does not take any arguments.
FHIR_OP_EVALUATE_MEASURES
Implies:

- ROLE_FHIR_CLIENT
Evaluate Measures
Execute the $evaluate-measures Operation, that allows for processing multiple Measure resources to create multiple MeasureReports with the same subject population

This permission does not take any arguments.
FHIR_OP_EXTRACT
Implies:

- ROLE_FHIR_CLIENT
Extract
Execute the Extract Operation

This permission does not take any arguments.
FHIR_OP_INITIATE_BULK_DATA_EXPORT
Implies:

- ROLE_FHIR_CLIENT
Initiate Bulk Export ($export) - All Permissions
User may invoke the $export operation to initiate a FHIR Bulk Export Operation. This permission grants the user permission to initiate any kind of bulk export, so it may be more appropriate to use a more nuanced kind.

Argument
The argument to this permission is an optional space-separated list of allowed resource types, or an empty string to allow all resource types. E.g. 'Patient Encounter Observation'.
FHIR_OP_INITIATE_BULK_DATA_EXPORT_ALL_PATIENTS
Implies:

- ROLE_FHIR_CLIENT
Initiate Bulk Export ($export) - Patient Export with no restrictions
User may invoke the $export operation to initiate a FHIR Bulk Export Operation. This permission grants the user permission to initiate a patient-level export with NO restrictions
Argument
There are no arguments for this permission
FHIR_OP_INITIATE_BULK_DATA_EXPORT_GROUP
Implies:

- ROLE_FHIR_CLIENT
Initiate Bulk Export ($export) - Group Export
User may invoke the $export operation to initiate a FHIR Bulk Export Operation. This permission grants the user permission to initiate a group-level export.

Argument
The argument to this permission is the ID of the group that the user is authorized to export, optionally followed by a space-separated list of allowed resource types. E.g. 'Group/123' or 'Group/123 Patient Encounter Observation'.
FHIR_OP_INITIATE_BULK_DATA_EXPORT_GROUPS_MATCHING
Implies:

- ROLE_FHIR_CLIENT
Initiate Bulk Export ($export) - Group Export with Group restrictions by FHIR query filter
User may invoke the $export operation to initiate a FHIR Bulk Export Operation. This permission grants the user permission to initiate a group-level export on Groups that match the FHIR query filter provided in the permission argument.

Argument
The argument to this permission is a FHIR query that matches the Group(s) that the user is authorized to export, optionally followed by a space-separated list of allowed resource types. E.g. '?identifier=foo|bar' or '?identifier=foo|bar Patient Observation'. Note that the Group [resource type] part of the URL is left out, as the resource type is implied.
FHIR_OP_INITIATE_BULK_DATA_EXPORT_PATIENT
Implies:

- ROLE_FHIR_CLIENT
DEPRECATED: Initiate Bulk Export ($export) - Patient Export
Note: Since 2024.05, this permission has been DEPRECATED in favour of FHIR_OP_INITIATE_BULK_DATA_EXPORT_PATIENTS and FHIR_OP_INITIATE_BULK_DATA_EXPORT_ALL_PATIENTS: User may invoke the $export operation to initiate a FHIR Bulk Export Operation. This permission grants the user permission to initiate a patient-level export.

Argument
DEPRECATED: The argument to this permission is the ID of the patient that the user is authorized to export, optionally followed by a space-separated list of allowed resource types. E.g. 'Patient/123' or 'Patient/123 Patient Encounter Observation'.
FHIR_OP_INITIATE_BULK_DATA_EXPORT_PATIENTS
Implies:

- ROLE_FHIR_CLIENT
Initiate Bulk Export ($export) - Patient Export with restrictions on patient IDs and resources
User may invoke the $export operation to initiate a FHIR Bulk Export Operation. This permission grants the user permission to initiate a patient-level export with restrictions on patient IDs and resources.

Argument
The argument to this permission is the comma-separated IDs of the patient that the user is authorized to export, followed either by a * to indicate all resources or a space-separated list of allowed resource types. E.g. 'Patient/123,Patient/456 *' or 'Patient/123,Patient/465 Patient Encounter Observation'.
FHIR_OP_INITIATE_BULK_DATA_EXPORT_PATIENTS_MATCHING
Implies:

- ROLE_FHIR_CLIENT
Initiate Bulk Export ($export) - Patient Export with Patient restrictions by FHIR query filter
User may invoke the $export operation to initiate a FHIR Bulk Export Operation. This permission grants the user permission to initiate a patient-level export on Patients that match the FHIR query filter provided in the permission argument.

Argument
The argument to this permission is a FHIR query that matches the Patient(s) that the user is authorized to export, optionally followed by a space-separated list of allowed resource types. E.g. '?identifier=foo|bar' or '?identifier=foo|bar Patient Observation'. Note that the Patient [resource type] part of the URL is left out, as the resource type is implied.
FHIR_OP_INITIATE_BULK_DATA_EXPORT_SYSTEM
Implies:

- ROLE_FHIR_CLIENT
Initiate Bulk Export ($export) - System Export
User may invoke the $export operation to initiate a FHIR Bulk Export Operation. This permission grants the user permission to initiate a system-level export.

Argument
The argument to this permission is an optional space-separated list of allowed resource types, or an empty string to allow all resource types. E.g. 'Patient Encounter Observation'.
FHIR_OP_INITIATE_BULK_DATA_IMPORT
Implies:

- ROLE_FHIR_CLIENT
Initiate Bulk Import ($import)
User may invoke the FHIR Bulk Import operation. Note that data being bulk imported is not subjected to any additional authorization checks, so this permission should only be granted to fully trusted users.

This permission does not take any arguments.
FHIR_OP_MDM_BUNDLE_MATCH
Implies:

- ROLE_FHIR_CLIENT
FHIR MDM Bundle Match
User may invoke the $sdh.mdm-bundle-match operation either on a server level or on a Bundle type

This permission does not take any arguments.
FHIR_OP_MDM_CLEAR
Implies:

- ROLE_FHIR_CLIENT
MDM Clear Links
Delete all MDM links and remove all related Golden Resources

This permission does not take any arguments.
FHIR_OP_MDM_CREATE_LINK
Implies:

- ROLE_FHIR_CLIENT
MDM Create Link
Create an MDM Link

This permission does not take any arguments.
FHIR_OP_MDM_DEDUPLICATE Deduplicate Operation
Allow users to run the mdm deduplicate operation and view the results

This permission does not take any arguments.
FHIR_OP_MDM_DUPLICATE_GOLDEN_RESOURCES
Implies:

- ROLE_FHIR_CLIENT
MDM Duplicate Golden Resources
Request all MDM Duplicate Golden Resources

This permission does not take any arguments.
FHIR_OP_MDM_LINK_HISTORY
Implies:

- ROLE_FHIR_CLIENT
MDM Link History
Request matching Historical MDM Links

This permission does not take any arguments.
FHIR_OP_MDM_MERGE_GOLDEN_RESOURCES
Implies:

- ROLE_FHIR_CLIENT
Merge two MDM Golden Resources
Merge one Golden Resource into another, copying over fields as determined by the survivorship rules, and copying updating MDM links according to the rules. MANUAL links will overwrite AUTO links. The original Golden Resource is deactivated.

This permission does not take any arguments.
FHIR_OP_MDM_NOT_DUPLICATE
Implies:

- ROLE_FHIR_CLIENT
MDM Not Duplicate
Unduplicate MDM Golden Resources

This permission does not take any arguments.
FHIR_OP_MDM_QUERY_LINKS
Implies:

- ROLE_FHIR_CLIENT
MDM Query Links
Request matching MDM Links

This permission does not take any arguments.
FHIR_OP_MDM_SUBMIT
Implies:

- ROLE_FHIR_CLIENT
MDM Batch Processing.
Submit target resources for MDM processing

This permission does not take any arguments.
FHIR_OP_MDM_UPDATE_LINK
Implies:

- ROLE_FHIR_CLIENT
MDM Update Link
Update an MDM Link

This permission does not take any arguments.
FHIR_OP_MEMBER_MATCH
Implies:

- ROLE_FHIR_CLIENT
Member match
Operation to find a member by patient and coverage information

This permission does not take any arguments.
FHIR_OP_MERGE
Implies:

- ROLE_FHIR_CLIENT
Merge.
Can call the $merge operation.

This permission does not take any arguments.
FHIR_OP_PACKAGE
Implies:

- ROLE_FHIR_CLIENT
Package
Execute the Package Operation

This permission does not take any arguments.
FHIR_OP_PATIENT_EVERYTHING
Implies:

- ROLE_FHIR_CLIENT
Patient Search Chart ($everything)
User is allowed to search/fetch across the entire patient's record (all resources belonging to that patient's compartment).

This permission does not take any arguments.
FHIR_OP_PATIENT_EVERYTHING_ACCESS_ALL
Implies:

- ROLE_FHIR_CLIENT
Patient Fetch ($everything) - Access All
User is allowed to search/fetch across the entire patient's record (all resources that references input Patient, including those outside of patient's compartment).

Argument
The argument to this permission is the ID of the Patient for which user is authorized to execute $everything operation. E.g. 'Patient/123'.
FHIR_OP_PATIENT_MATCH
Implies:

- ROLE_FHIR_CLIENT
FHIR MDM Match
User may invoke the MDM $match operation either on a server level or on a Patient type

This permission does not take any arguments.
FHIR_OP_PATIENT_SUMMARY
Implies:

- ROLE_FHIR_CLIENT
Generate IPS ($summary)
User is allowed to invoke the $summary operation to generate an International Patient Summary document.

This permission does not take any arguments.
FHIR_OP_POPULATE
Implies:

- ROLE_FHIR_CLIENT
Populate
Execute the Populate Operation

This permission does not take any arguments.
FHIR_OP_PREPOPULATE
Implies:

- ROLE_FHIR_CLIENT
Prepopulate
Execute the Prepopulate Operation

This permission does not take any arguments.
FHIR_OP_REINDEX
Implies:

- ROLE_FHIR_CLIENT
Reindex Resources ($reindex)
User is permitted to initiate a Resource Reindex job by invoking the $reindex operation

This permission does not take any arguments.
FHIR_OP_REPLACE_REFERENCES
Implies:

- ROLE_FHIR_CLIENT
Replace References.
Can call the $hapi.fhir.replace-references operation.

This permission does not take any arguments.
FHIR_OP_STRUCTUREDEFINITION_SNAPSHOT
Implies:

- ROLE_FHIR_CLIENT
FHIR StructureDefinition Snapshot
User may invoke the StructureDefinition $snapshot operation

This permission does not take any arguments.
FHIR_OP_SUBMIT_DATA
Implies:

- ROLE_FHIR_CLIENT
CR Submit Data
The submit-data operation is used to submit data-of-interest for a measure. There is no expectation that the submitted data represents all the data-of-interest, only that all the data submitted is relevant to the calculation of the measure for a particular subject or population.

This permission does not take any arguments.
FHIR_OP_TERMINOLOGY_INVALIDATE_VALUESET
Implies:

- ROLE_FHIR_CLIENT
Invalidate ValueSet Expansion
Invoke the ValueSet/$invalidate-expansion operation to request a fresh pre-calculation of a ValueSet expansion.

This permission does not take any arguments.
FHIR_OP_UPDATE_TOKENIZATION
Implies:

- ROLE_FHIR_CLIENT
Update Tokenization
Can update tokenization on existing stored data by invoking the $sdh.update-tokenization operation

This permission does not take any arguments.
FHIR_PATCH
Implies:

- ROLE_FHIR_CLIENT
FHIR Patch
Note: Since 2024.05, this permission has been DEPRECATED in favour of various WRITE permissions (create, update, patch, etc.). User is allowed to perform a FHIR patch operation. Note that this permission allows a patch to be performed, but the user may need additional permissions in order to be able to write to specific resources.

This permission does not take any arguments.
FHIR_PROCESS_MESSAGE
Implies:

- ROLE_FHIR_CLIENT
FHIR Process Message ($process-message)
User is allowed to invoke the $process-message operation on a server that supports it.

This permission does not take any arguments.
FHIR_READ_ALL_IN_COMPARTMENT
Implies:

- ROLE_FHIR_CLIENT
FHIR Read ANY in Compartment X
User is allowed to read resources of any type in the given compartment. This permission takes an argument that should take the form of the name of the compartment (e.g. Patient/123).

Argument
The argument to this permission is the name of the compartment to which access is being granted, and an optional query filter to restrict the scope.
FHIR_READ_ALL_OF_TYPE
Implies:

- ROLE_FHIR_CLIENT
FHIR Read ANY of Type
User is allowed to fetch resources (read, search, history, etc.) of the specified type. This permission takes an argument that should be the name of the resource type (e.g. Patient).

Argument
The argument to this permission is the name of the resource type, and an optional query filter to restrict the scope..
FHIR_READ_INSTANCE
Implies:

- ROLE_FHIR_CLIENT
FHIR Read Specific Instance
User is allowed to fetch (read, search, history, etc.) the specified instance. This permission takes an argument that should be the ID of the resource instance (e.g. Patient/123).

Argument
The argument to this permission is the ID of the resource instance (e.g. Patient/123).
FHIR_READ_SEARCH_PARAMETERS Read Search Parameters
User is allowed to read/search for search parameters.

This permission does not take any arguments.
FHIR_READ_TYPE_IN_COMPARTMENT
Implies:

- ROLE_FHIR_CLIENT
FHIR Read (Specific Type in Compartment)
User is permitted to read any resource of the given type in the given compartment.

Argument
The argument to this permission is the name of the type to allow reading from, followed by a colon, followed by the owner of the compartment to which access is being granted, and an optional query filter to restrict the scope. For example, the argument Observation:Patient/123 means that the user is permitted to read any Observation resource in the Patient/123 compartment.
FHIR_REPARTITION_BY_REFERENCE Repartition by Reference
User is allowed to repartition resources by Reference

This permission does not take any arguments.
FHIR_SEMANTIC_UPLIFT
Implies:

- ROLE_FHIR_CLIENT
FHIR Semantic Uplift
User is allowed to invoke the $semantic-uplift operation. See Semantic Standardization for more information.

This permission does not take any arguments.
FHIR_TRANSACTION
Implies:

- ROLE_FHIR_CLIENT
FHIR Transaction
User is allowed to perform a FHIR transaction. Note that this permission only allows the transaction operation to happen; the user still needs to have other appropriate permissions for the operations in the transaction or it will be blocked.

This permission does not take any arguments.
FHIR_TRIGGER_SUBSCRIPTION
Implies:

- ROLE_FHIR_CLIENT
FHIR Trigger Subscription
User is permitted to call the $trigger-subscription operation. See Manually Triggering Subscriptions for information on this function.

This permission does not take any arguments.
FHIR_UPDATE_REWRITE_HISTORY
Implies:

- ROLE_FHIR_CLIENT
History Rewrite
User is allowed to update historical versions of a resource without creating new versions. See Rewrite Resource History for more information.

This permission does not take any arguments.
FHIR_UPLOAD_EXTERNAL_TERMINOLOGY
Implies:

- FHIR_OP_TERMINOLOGY_INVALIDATE_VALUESET
- ROLE_FHIR_CLIENT
Upload External Terminology
User is permitted to upload external CodeSystems using the $upload-external-code-system operation, as well as by using the Apply Delta operations. See Uploading External Terminologies for more information on this function.

This permission does not take any arguments.
FHIR_WRITE_ALL_IN_COMPARTMENT
Implies:

- ROLE_FHIR_CLIENT
FHIR Write ANY in Compartment X
User is allowed to write (create, update, patch, etc.) resources of any type in the given compartment. This permission takes an argument that should take the form of the name of the compartment (e.g. Patient/123).

Argument
The argument to this permission is the owner of the compartment to which access is being granted, and an optional query filter to restrict the scope.
FHIR_WRITE_ALL_OF_TYPE
Implies:

- ROLE_FHIR_CLIENT
FHIR Write ANY of Type
User is allowed to write resources (create, update, patch, etc.) of the specified type. This permission takes an argument that should be the name of the resource type (e.g. Patient).

Argument
The argument to this permission is the name of the resource, and an optional query filter to restrict the scope.
FHIR_WRITE_INSTANCE
Implies:

- ROLE_FHIR_CLIENT
FHIR Write Specific Instance
User is allowed to write (create, update, patch, etc.) the specified instance. This permission takes an argument that should be the ID of the resource instance (e.g. Patient/123).

Argument
The argument to this permission is the ID of the resource instance (e.g. Patient/123).
FHIR_WRITE_TYPE_IN_COMPARTMENT
Implies:

- ROLE_FHIR_CLIENT
FHIR Write (Specific Type in Compartment)
User is permitted to write (create, update, patch, etc.) any resource of the given type in the given compartment.

Argument
The argument to this permission is the name of the type to allow writing to, followed by a colon, followed by the owner of the compartment to which access is being granted, and an optional query filter to restrict the scope. For example, the argument Observation:Patient/123 means that the user is permitted to write any Observation resource in the Patient/123 compartment.
HFQL_EXECUTE Execute HFQL Query
User is allowed to execute HFQL/SQL statements.

This permission does not take any arguments.
INVOKE_ALL_CAMEL_HTTP_ENDPOINTS_ON_MODULE
Implies:

- ACCESS_CAMEL_HTTP_ENDPOINT
Invoke Camel HTTP Endpoints by Module
User is allowed to invoke Camel routes configured on a particular instance of the Camel HTTP Endpoint module

Argument
The argument to this permission is the name of the Camel HTTP Endpoint module
INVOKE_ANY_CAMEL_HTTP_ENDPOINT
Implies:

- ACCESS_CAMEL_HTTP_ENDPOINT
Invoke Any Camel HTTP Endpoint
User is allowed to invoke any Camel route configured on any instance of the Camel HTTP Endpoint module

This permission does not take any arguments.
INVOKE_CAMEL_HTTP_ENDPOINT
Implies:

- ACCESS_CAMEL_HTTP_ENDPOINT
Invoke Camel HTTP Endpoints by Mapping Name
User is allowed to invoke Camel routes via a particular named mapping on a particular instance of the Camel HTTP Endpoint module

Argument
The argument to this permission is the name of the Camel HTTP Endpoint module, followed by the name of the allowed mapping, separated by a '/' delimiter. E.g., endpoint_camel/my_mapping
INVOKE_CDS_HOOKS CDS Hooks
User can call CDS Hooks

This permission does not take any arguments.
MANAGE_BATCH_JOBS Manage Batch Jobs
User has permission to manage (i.e. modify and control) batch jobs

This permission does not take any arguments.
MDM_ADMIN
Implies:

- MDM_UPDATE_MATCH_RULES
- MDM_VIEW_MATCH_RULES
MDM Admin
User may perform any administrative functions for the MDM.

This permission does not take any arguments.
MDM_UPDATE_MATCH_RULES MDM Update Match Rules
User can set/update matching rules for the MDM.

This permission does not take any arguments.
MDM_VIEW_MATCH_RULES MDM VIEW Match Rules
User can view matching rules for the MDM.

This permission does not take any arguments.
MODULE_ADMIN
Implies:

- ARCHIVE_MODULE
- CONTROL_MODULE
- CREATE_MODULE
- REINSTATE_MODULE
- START_STOP_MODULE
- UPDATE_MODULE_CONFIG
- VIEW_MODULE_CONFIG
Module Admin
User is allowed to create, reconfigure, and start/stop modules.

This permission does not take any arguments.
MODULE_ADMIN_FOR_MODULE
Implies:

- CONTROL_MODULE_FOR_MODULE
- START_STOP_MODULE_FOR_MODULE
- UPDATE_MODULE_CONFIG_FOR_MODULE
- VIEW_MODULE_CONFIG_FOR_MODULE
Module Admin for a specific module in a node.
User is allowed to reconfigure and start/stop a specific module in a node.

Argument
The argument to this permission takes a nodeid and a moduleid separated by /, for which you'd like to grant access to the user. For example: Master/subscription
OIDC_CLIENT_PRESET_PERMISSION
Implies:

- OPENID_CONNECT_ADD_CLIENT
Add OpenID Connect Client with pre-set permissions.
User is allowed to create OpenID Connect clients with pre-set permissions.

Argument
The argument to this permission is the name of permissions (e.g. ACCESS_FHIRWEB).
OPENID_CONNECT_ADD_CLIENT Add OpenID Connect Client
User is allowed to create OpenID Connect clients.

This permission does not take any arguments.
OPENID_CONNECT_ADD_SERVER Add OpenID Connect Server
User is allowed to create OpenID Connect servers.

This permission does not take any arguments.
OPENID_CONNECT_EDIT_CLIENT Edit OpenID Connect Client
User is allowed to edit existing OpenID Connect clients.

This permission does not take any arguments.
OPENID_CONNECT_EDIT_SERVER Edit OpenID Connect Server
User is allowed to edit existing OpenID Connect servers.

This permission does not take any arguments.
OPENID_CONNECT_MANAGE_GLOBAL_SESSIONS Manage Sessions (Global/All Users)
User is allowed to list and revoke SMART/OIDC sessions for any users in the system. This is an administrative privilege that should only be granted to admin and system users.

This permission does not take any arguments.
OPENID_CONNECT_MANAGE_KEYSTORES Manage OIDC Keystores
User is allowed to manage (view/create/update/delete) OIDC Keystore definitions.

This permission does not take any arguments.
OPENID_CONNECT_VIEW_CLIENT_LIST View OpenID Connect Client List
User is allowed to view the list of registered OpenID Connect clients. This permission does not give the user the ability to create/edit clients.

This permission does not take any arguments.
OPENID_CONNECT_VIEW_SERVER_LIST View OpenID Connect Server List
User is allowed to view the list of registered OpenID Connect servers. This permission does not give the user the ability to create/edit servers.

This permission does not take any arguments.
PACKAGE_REGISTRY_READ Package Registry: Read Operations
User can access data from the package registry.

This permission does not take any arguments.
PACKAGE_REGISTRY_WRITE Package Registry: Write Operations
User can write data to the package registry.

This permission does not take any arguments.
READ_ANY_SCHEDULED_JOB
Implies:

- READ_ANY_SCHEDULED_JOB_HISTORY
View existing custom scheduled job definitions
Allows the user to view any existing scheduled job definitions in any module.

This permission does not take any arguments.
READ_ANY_SCHEDULED_JOB_HISTORY Read the execution histories of any custom scheduled jobs
Allow the user to be able to read the execution history of a custom scheduled jobs, regardless of which module they are in.

This permission does not take any arguments.
REINSTATE_MODULE
Implies:

- VIEW_MODULE_CONFIG
Reinstate Modules
User is allowed to reinstate modules.

This permission does not take any arguments.
SAVE_USER
Implies:

- CREATE_USER
- UPDATE_USER
- VIEW_USERS
Save Users
User is allowed to create/update users.

This permission does not take any arguments.
SDH_CDA_TO_FHIR
Implies:

- ROLE_FHIR_CLIENT
User can use the $sdh.cda-to-fhir operation
User is allowed is allowed to use the $sdh.cda-to-fhir operation to convert a CDA document to a FHIR Bundle

This permission does not take any arguments.
SMILE_GENERATE_CDA
Implies:

- ROLE_FHIR_CLIENT
User can use the $sdh.generate-cda operation
User is allowed is allowed to use the $sdh.generate-cda operation to convert a FHIR Composition to a CDA document

This permission does not take any arguments.
SMILE_PORTAL_ALL Smile Portal (all)
User is permitted to access all Smile Portal applications

This permission does not take any arguments.
SMILE_PORTAL_OF_TYPE Smile Portal (by type)
User is permitted to access specific Smile Portal application types

Argument
The argument to this permission is the application type. Valid values include: APPSPHERE_CONSOLE, APPSPHERE_GALLERY, APPSPHERE_PORTAL, AUDIT_LOG, BATCH_JOBS, CONFIG_DIAGNOSTICS, FHIR_ENDPOINT, FHIR_WEB, HEALTH_CHECKS, HELP, INGESTION_DASHBOARD,MDMUI, MODULE_CONFIG, OIDC_CLIENTS, OIDC_KEYSTORES, OIDC_SERVERS, PATIENT_MANAGEMENT, PAYER_TO_PAYER, PRIOR_AUTH, PROVIDER_ACCESS_API, TERMINOLOGY, TERMINOLOGY_MAPPING, TRANSACTION_LOG, USER_MANAGEMENT, EXTERNAL.
START_STOP_MODULE Start/Stop Modules
User is allowed to start/stop modules and nodes.

This permission does not take any arguments.
START_STOP_MODULE_FOR_MODULE Start/Stop a specific module in a node
User is allowed to start/stop a specific module in a node.

Argument
The argument to this permission takes a nodeid and a moduleid separated by /, for which you'd like to grant access to the user. For example: Master/subscription
SUBMIT_ATTACHMENT
Implies:

- ROLE_FHIR_CLIENT
Submit Attachment
User is allowed to use the $submit-attachment operation.

This permission does not take any arguments.
TRIGGER_ANY_SCHEDULED_JOB
Implies:

- READ_ANY_SCHEDULED_JOB
Run any custom scheduled job immediately.
Allows the user to run any custom scheduled jobs (without waiting for the scheduled job's scheduled setting to elapse), regardless of the module in which they reside.

This permission does not take any arguments.
UPDATE_ANY_SCHEDULED_JOB
Implies:

- READ_ANY_SCHEDULED_JOB
- TRIGGER_ANY_SCHEDULED_JOB
Update a custom scheduled job
Allows the user to update any existing saved custom scheduled job in any module.

This permission does not take any arguments.
UPDATE_MODULE_CONFIG
Implies:

- VIEW_MODULE_CONFIG
Update Module Configuration
User is allowed to modify a module's configuration.

This permission does not take any arguments.
UPDATE_MODULE_CONFIG_FOR_MODULE
Implies:

- VIEW_MODULE_CONFIG_FOR_MODULE
Update Module Configuration for a specific module in a node
User is allowed to modify a specific module in a node.

Argument
The argument to this permission takes a nodeid and a moduleid separated by /, for which you'd like to grant access to the user. For example: Master/subscription
UPDATE_USER Update Users
User is allowed to update other users.

This permission does not take any arguments.
USE_CDA_TEMPLATE
Implies:

- VIEW_CDA_TEMPLATE
Generate CDA documents via the templates
User is allowed to create Compositions / Fhir Documents / CDA Documents via the cda template store. Use caution with this permission with severity relative to how much access the scripts themselves allow.

This permission does not take any arguments.
VIEW_AUDIT_LOG View Audit Log
User is allowed to view the audit log.

This permission does not take any arguments.
VIEW_BATCH_JOBS View Batch Jobs
User has permission to view batch jobs

This permission does not take any arguments.
VIEW_CDA_TEMPLATE View CDA templates
User is allowed to view all CDA templates (including script contents and expected parameters list).

This permission does not take any arguments.
VIEW_METRICS View Metrics
User can access internal metrics API, including thread dump API

This permission does not take any arguments.
VIEW_MODULE_CONFIG
Implies:

- VIEW_MODULE_STATUS
View Module Configuration
User is allowed to view (but not change) module configuration information. This does not include database passwords.

This permission does not take any arguments.
VIEW_MODULE_CONFIG_FOR_MODULE
Implies:

- VIEW_MODULE_STATUS
View Module Configuration for a specific module in a node
User is allowed to view (but not change) configuration for a specific module in a node configuration information. This does not include database passwords.

Argument
The argument to this permission takes a nodeid and a moduleid separated by /, for which you'd like to grant access to the user. For example: Master/subscription
VIEW_MODULE_STATUS View Module Status
User is allowed to view (but not change) status information about modules. This includes running/stopped status, health checks, etc. but does not give access to more sensitive details such as logs.

This permission does not take any arguments.
VIEW_TRANSACTION_LOG View Transaction Log
User is allowed to view the overall transaction log.

This permission does not take any arguments.
VIEW_TRANSACTION_LOG_EVENT View Transaction Log Entries
User is allowed to view individual transaction log entries.

This permission does not take any arguments.
VIEW_USERS View Users
User is allowed to view list of users and individual user details.

This permission does not take any arguments.

System-Defined Negative Permissions

The following table lists the negative permissions that are built into Smile CDR and may be assigned to a user. Negative permissions prevent actions from occurring, and take precedence over positive permissions. In other words, if a user has a normal permission indicating the ability to perform an action, but also has a negative permission that contradicts the given permission, the action will not be permitted.

Negative Permission Description
BLOCK_FHIR_READ_UNLESS_CODE_IN_VS
Implies:

- ROLE_FHIR_CLIENT
Block FHIR Read Unless Code is in ValueSet
When present, this permission indicates that resources of the given type can not be read unless they have a coded field (indicated by a SearchParameter name) is found in the specified ValueSet (indicated by URL). See Block Unless Code in ValueSet for more information.

Argument
The argument for this permission is in the form [resourceType]/[param name]/[ValueSet URL], e.g. "Observation/code/http://hl7.org/fhir/ValueSet/observation-vitalsignresult"
BLOCK_FHIR_READ_UNLESS_CODE_NOT_IN_VS
Implies:

- ROLE_FHIR_CLIENT
Block FHIR Read Unless Code is not in ValueSet
When present, this permission indicates that resources of the given type can not be read unless they have a coded field (indicated by a SearchParameter name) is not found in the specified ValueSet (indicated by URL). See Block Unless Code in ValueSet for more information.

Argument
The argument for this permission is in the form [resourceType]/[param name]/[ValueSet URL], e.g. "Observation/code/http://hl7.org/fhir/ValueSet/observation-vitalsignresult"

Block Unless Code in ValueSet

A pair of permissions can be used to authorize access to data by checking if a coded field contains a code that is matched by a ValueSet. This functionality can be an allow-list (only allow access to resources matched by the ValueSet) or a block-list (only allow access to resources that are not matched by the ValueSet).

To specify an allow-list, the BLOCK_FHIR_READ_UNLESS_CODE_IN_VS permission should be used. To specify a block-list, the BLOCK_FHIR_READ_UNLESS_CODE_NOT_IN_VS permission should be used. Both of these permissions take an argument in the form: [resourceType]/[param name]/[ValueSet URL].

Because these permissions are negative, they must be combined with a normal permission that actually grants access to resources. In other words, if only a negative permission is present, it will not be possible to access data.

For example, to enforce that a user can only access Observations belonging to Patient/123 where the Observation.code value is in the Vital Signs Result ValueSet, use the following permissions:

FHIR_READ_ALL_IN_COMPARTMENT/Patient/123
BLOCK_FHIR_READ_UNLESS_CODE_IN_VS/Observation/code/http://hl7.org/fhir/ValueSet/observation-vitalsignresult

Copy

To enforce that a user can only access Observations belonging to Patient/123 where the Observation.code value is not in the Vital Signs Result ValueSet, use the following permissions:

FHIR_READ_ALL_IN_COMPARTMENT/Patient/123
BLOCK_FHIR_READ_UNLESS_CODE_NOT_IN_VS/Observation/code/http://hl7.org/fhir/ValueSet/observation-vitalsignresult

Copy

Automatic Search Narrowing

When these permissions are used, it can be helpful to also enable Automatically Narrow Search Scope on your FHIR Endpoint module. This will automatically add appropriate search parameters to searches in order to ensure that they are excluded from search results.

Automatic Search Narrowing Limitations

When the Automatically Narrow Search Scope configuration has been enabled on your FHIR Endpoint module, the calculation of search result totals will not be available to preserve the privacy of possibly-filtered records. This includes the use of the _total=accurate and _summary=count query string parameters.

Note that when using search narrowing with these permissions, the search will have a token:in or token:not-in search parameter added to the search.

These operations are currently not suitable for large ValueSets (containing over 500 codes) and may not perform well at that scale.

User-Defined Roles

User-defined roles are added by including their definitions in a json file pointed by the LOCAL_SECURITY module property seed.custom_roles.file, as shown in the following example.

See Pre-Seeding CustomRoles for details.

{
  "roles":
  [\
    {\
      "name": "ROLE_FRONT_DESK",\
      "description": "Role for users who perform Front Desk duties",\
      "permissions": [\
        {\
          "permission": "FHIR_DELETE_ALL_OF_TYPE",\
          "argument": "Patient"\
        },\
        {\
          "permission": "FHIR_ALL_READ"\
        }\
      ]\
    },\
    {\
      "name": "ROLE_SALES",\
      "description": "Role to allow Sales department employees access to ...",\
      "permissions": [\
        {\
          "permission": "ROLE_FHIR_CLIENT_SUPERUSER"\
        }\
      ]\
    }\
  ]
}

Copy

Trusted Client Mode

Roles and Permissions

Security

Authentication Protocols Authorization and Consent Inbound Security Module Local Inbound Security Module LDAP Inbound Security Module Scripted Inbound Security Module SAML Inbound Security Module Trusted Client Mode Roles and Permissions Callback Scripts Anonymous Access Consent Service Consent Service: JavaScript API Consent Service: Java API Security Recipes Two Factor Authentication Password Hashing Algorithms JWT Signature Algorithms Troubleshooting Security

Callback Scripts