Audit
Audit timeline and human approvals.
/dashboard/platform/audit needs canViewAuditLogs.
Audit timeline
pharmacyAuditTimeline lists AuditEvent rows: event type, resource, actor, location, and time. Each consequential command also stores a HumanApproval with the action type, reason, attestation, and evidence. The 17 action kinds cover prescription review, dispensing, inventory, recall, payment, transfer, and credential decisions.
The AuditEvent is written in the same transaction as the state change and is idempotent: replaying a command with the same idempotency key returns the original result instead of writing again.