Skip to content

Consent

1. What does this feature do? (High-Level Overview)

Section titled “1. What does this feature do? (High-Level Overview)”

This feature manages treatment consent evidence for the BIP, including consent language, role-based signatures, signature dates, and placeholders. It supports legal-clinical traceability by capturing who approved implementation and when.

  • Superadmin/Admin/Owner/Manager (or any role granted manage_bips): Primary users of editable tabbed BIP flow; can manage consent fields and signature assets.
  • RBT/Analyst without manage_bips: Usually redirected to full BIP read-only flow (/bip/show/patient/:id) instead of tabbed editing flow.
  • Users without BIP access permissions (view_bips/manage_bips): Cannot access BIP actions from normal client workflows.

Required permissions used by this feature path:

  • manage_bips: Required to remain in editable tabbed BIP route.
  • view_bips: Used in non-tabbed BIP viewing entry points.
  • Rule 1: This tab is defined as consent with title Consent.
  • Rule 2: If no BIP exists yet, tab interaction is blocked globally and users must first create a BIP.
  • Rule 3: On tab init with valid BIP ID, system loads consent signature assets from backend.
  • Rule 4: Signature image upload has size validation; files above 2MB are rejected with warning.
  • Rule 5: Clearing a signature requires confirmation dialog before removal.
  • Rule 6: Updating consent fields emits bipUpdated for parent autosave flow.
  • Rule 7: Parent/guardian signature placeholder is forced true and parent date reset on consent field updates in this implementation path.
  • Rule 8: Tab completion state requires all four signature fields present in parent logic: analyst 1, analyst 2, physician, and parent/guardian.
  • Rule 9: Tab warning/error state is raised when consent object exists but one or more required signature fields are missing.
  • Medical > Clients list > client actions > BIP View / Update.
  • Inside BIP tabbed view: Consent tab (id consent).
  • Route family used for tabbed BIP: /bip/tabbed/:patient_id and /:id route variant under BIP module.
Section titled “Scenario A: Register signatures for consent”
  1. Go to Medical and open the clients list.
  2. Open client actions and click BIP View / Update.
  3. Open Consent tab.
  4. Upload signature images for Analyst 1, Analyst 2, Physician, and Parent/Guardian.
  5. Set signature dates for each role.
  6. Confirm data is saved and reflected in tab state.
  1. In Consent tab, locate the signature block.
  2. Click delete/clear button.
  3. Confirm deletion in warning dialog.
  4. Signature and linked date are cleared.

Scenario C: Use placeholders instead of signature image

Section titled “Scenario C: Use placeholders instead of signature image”
  1. In each signature block, toggle Add placeholder as needed.
  2. Keep date fields aligned with documentation policy.
  3. Verify final consent completeness according to workflow requirements.
  • Q: What happens if I upload a signature image larger than 2MB?

  • A: Upload is blocked and a warning message is displayed.

  • Q: What if consent data cannot be loaded from backend?

  • A: Error is logged and tab remains usable with current local state.

  • Q: Why can Consent tab still show warning?

  • A: Parent validation marks warning when one or more required signature fields are missing.