True Care SystemTrue Care SystemDocumentation
Return to Website

PHI PROTECTION

HIPAA Coding Rules

Implement PHI access controls, purpose of use, minimum necessary, and audit evidence consistently.

Production stability and security notice

Development changes must preserve working functionality, Provider isolation, role-based access, HIPAA auditability, released Mobile compatibility, and integration stability. Never deploy AI-generated or unreviewed code directly to production.

HIPAA Framework

HIPAA functionality should remain as isolated as possible under a dedicated src/hipaa framework with its own services, middleware, decorators, guards, interceptors, constants, types, configuration, database access layer, and tests.

Required Audit Context

TopicStandard
Provider IDIdentifies the tenant that owns the PHI.
ActorIdentifies the real user performing the action.
TargetIdentifies the Individual, employee, user, or record affected.
Module and actionDescribes the business workflow.
Purpose of useExamples include Treatment, Payment, and Health Care Operations.
Access decisionAllowed, denied, or review required.
Minimum necessaryCompliant, potential excess, or review required.
Technical contextIP, device, browser, operating system, route, and request ID.

Minimum Necessary

  • Select only required database fields.
  • Mask information in public documentation and non-production demonstrations.
  • Restrict exports and printed output.
  • Use role-specific views rather than universal PHI access.
  • Do not include PHI in general application logs.