General editorial guide prepared with AI assistance. Examples are hypothetical; implementation depends on project requirements and qualified review.
Decision and problem
Hiding a button does not protect a clinical record. The server must check identity, role and access scope on each operation, including export. The organization should review local privacy requirements.
Designing the solution
Classify information by sensitivity. Record access and changes as required by policy without copying sensitive clinical content into unprotected error logs. Use encrypted transport and protected backups; define offboarding and revocation.
Practical acceptance test
Create synthetic clinician, reception and accounting users; attempt direct API access and exports for a patient outside each role's scope. Unauthorized access must fail even if the record URL is known.
