Skip to main content
These recipes demonstrate HIPAA-compliant approval workflows designed for healthcare operations, with built-in audit trails and access controls.
  • Patient Data Access
  • Treatment Plans
  • Medication Changes
  • Remote Care

Patient Data Access

Secure patient record access with role-based approvals and automatic logging.
const accessPatientRecords = needsHumanApproval({
  type: 'sync',
  title: 'Patient Record Access',
  ask: (args) => `Approve access to records for patient #${args.patientId}?`,
  // Auto-approve for attending physicians
  autoApprove: async (args) => args.requestorRole === 'ATTENDING_PHYSICIAN'
})
  • Third-party provider requests
  • Research data access
  • Insurance company requests
  • Emergency access situations
  • Always document access reason
  • Set appropriate time limits
  • Maintain detailed audit logs
  • Consider emergency protocols

Next Steps