Upgrading a User to Prescriber
A common scenario is creating a user with basic access and later upgrading them to have prescriber capabilities. This workflow shows how to transform anrx_reader into a provider with full prescriber details.
Create User with Basic Access
Start by creating a user with the
rx_reader role for basic prescription reading access.The
rx_reader role allows users to view and read prescriptions but not create them.Add Provider Details
Complete the provider setup by adding professional details and prescriber information.
Required Provider Fields:
hpii_number: Healthcare Provider Identifier Individual numberprescriber_type: Prescriber type (M/N/D/P/T)prescriber_number: Unique prescriber identification numberqualifications: Professional qualifications (MD, RN, etc.)
Other Common Workflows
Creating a Provider from Scratch
If you know the user will be a provider from the beginning:Downgrading Provider Access
To remove provider privileges while keeping basic access:Provider details are retained when downgrading roles and can be reactivated by upgrading the role back to
provider.Disabling a User
To permanently disable a user’s access to the platform:No request body is required. The endpoint is idempotent — disabling an already-disabled user returns a 200 response.
Best Practices
Validation
Always validate HPII and prescriber numbers before creating provider accounts
Role Management
Start with minimal permissions and upgrade as needed for security
Data Consistency
Ensure provider details match official registration records
Audit Trail
Role changes are logged for compliance and audit purposes

