BIP Profile View and Update
1. What does this feature do? (High-Level Overview)
Section titled “1. What does this feature do? (High-Level Overview)”This feature provides the parent BIP experience in two connected flows: a full-profile extended read-only view for complete clinical review and a tabbed workflow for structured editing. Clinically, it keeps the treatment narrative, goals, risk/safety, recommendations, school statements, consent, and supporting data in one longitudinal plan while enforcing role-based edit access.
2. Who is this for? (Roles & Permissions)
Section titled “2. Who is this for? (Roles & Permissions)”- Superadmin/Admin/Owner/Manager (or any role granted
manage_bips): Can open BIP, edit BIP fields, save updates, and access edit actions. - RBT/Analyst (or any role granted
view_bipsonly): Can open and review BIP content in read-only mode; cannot save or edit. - Users without
view_bips: Cannot access BIP view actions from the client action menu.
Required permissions used by the feature:
view_bips: Allows opening BIP in view mode.manage_bips: Allows editing/saving BIP and edit-related actions.
3. Business Rules & Enforcements
Section titled “3. Business Rules & Enforcements”- Rule 1: If no client context is resolved, the page shows an empty/no-info state instead of rendering BIP sections.
- Rule 2: If the client has no saved BIP yet, the system builds a default BIP payload so the profile can still be displayed and completed.
- Rule 3: Save/update is blocked when the user does not have
manage_bips; a permission denied message is shown. - Rule 4: Save/update is blocked if in-memory BIP data is missing (
biporold_bipis null) to avoid unsafe writes. - Rule 5: During save, consent signature image fields are reset before persistence, and then the BIP plus linked plan categories are synchronized.
- Rule 6: Weekly report fetch errors do not block the screen; graph data falls back to empty so the feature remains usable.
- Rule 7: Access path is role-sensitive: users with
manage_bipsenter tabbed edit flow, while users without that permission are redirected to read-only full BIP view. - Rule 8: Feature-flagged tabs (
insurance-statements-fields) only appear when enabled (for example, Individual Rationale, School Services, Functional Impairment). - Rule 9:
Report Datedefines the reference date used for report generation and for selecting weekly-report data displayed in chart-backed sections. - Rule 10:
Month Rangedefines how many months of weekly-report history are fetched relative to the selected report date. - Rule 11: If
Report Dateis missing or invalid, the system defaults to current date; if report retrieval fails, the UI still renders with empty chart datasets. - Rule 12:
View Full BIPfrom the tabbed workflow opens the extended read-only profile version of the same plan and carriesReport Date+Month Rangeas query parameters to keep report context aligned. - Rule 13:
Update Current Progressprovides a bulk update flow by selected categories and date range from the tabbed header actions. - Rule 14:
Export PDFis available from header actions (with export permission) to generate a report-style document using current BIP content and chart/report context.
4. UI Placement
Section titled “4. UI Placement”- Medical > client list > client actions >
BIP View / Update(formanage_bips) orBIP View(forview_bips). - Route family:
- Full profile view:
/bip/profile/:patient_idand/bip/show/patient/:id. - Tabbed edit flow:
/bip/:idand/bip/tabbed/:patient_id.
- Full profile view:
- Main screens:
- BIP Profile (comprehensive read/review + PDF/report context).
- BIP Tabbed (section-by-section editing, autosave, and tab validation indicators).
- Header action in BIP Tabbed:
View Full BIP(opens extended read-only profile view).
5. How-To Guide (Step-by-Step)
Section titled “5. How-To Guide (Step-by-Step)”Scenario A: Review a client BIP
Section titled “Scenario A: Review a client BIP”- Go to Medical and open the clients list.
- Open a client action menu.
- Click
BIP VieworBIP View / Update. - Review sections such as background, maladaptive goals, replacement goals, interventions, risk, and consent.
- If needed, use PDF-related actions in the page header to generate/export with chart captures.
Scenario B: Update and save a BIP (users with manage_bips)
Section titled “Scenario B: Update and save a BIP (users with manage_bips)”- Open client action menu and click
BIP View / Update. - System opens the tabbed BIP workflow for structured editing.
- Update target tabs (Case History, Interventions, Recommendations, Safety, Consent, and others as enabled).
- Changes are persisted through tab update flow/autosave and synchronized by parent BIP save logic.
- Return to full profile when you need complete report-style review.
Scenario C: Refresh chart-backed data
Section titled “Scenario C: Refresh chart-backed data”- Open BIP profile for the client.
- Trigger refresh (where available) after recent data updates.
- The page re-fetches BIP and weekly report data for chart sections.
Scenario D: Use Report Date and Month Range
Section titled “Scenario D: Use Report Date and Month Range”- Open BIP profile header filters.
- Set
Report Dateto the clinical cut-off date you want to evaluate. - Set
Month Range(for example, 3, 6, or 12) to control historical depth. - Review updated chart-backed sections and generated report context based on that window.
Scenario E: Open extended read-only version from tabbed workflow
Section titled “Scenario E: Open extended read-only version from tabbed workflow”- Open
BIP View / Updateand work in tabbed mode. - In header actions, click
View Full BIP. - System navigates to the extended profile version (read-only) of the same BIP.
- Confirm that Report Date/Month Range context is preserved in the opened full view.
Scenario F: Run Update Current Progress (quick flow)
Section titled “Scenario F: Run Update Current Progress (quick flow)”- In tabbed BIP header actions, click
Update Current Progress. - Select date range and categories.
- Confirm update to apply bulk progress refresh on selected plan groups.
Scenario G: Export PDF (quick flow)
Section titled “Scenario G: Export PDF (quick flow)”- In BIP header actions, click
Export PDF. - Select/export sections as required in the PDF flow.
- Generate the document using current BIP data and report/chart context.
6. What happens if…? (Edge Cases / FAQ)
Section titled “6. What happens if…? (Edge Cases / FAQ)”-
Q: What if a client has no BIP yet?
-
A: The app generates a default BIP structure so staff can view and start completing it without a hard failure.
-
Q: What if a user can open the BIP but cannot edit it?
-
A: This is expected for
view_bipsusers. They stay in read-only flow; save/edit actions requiremanage_bips. -
Q: What if weekly reports fail to load for graphs?
-
A: The page still renders. Graph datasets are treated as empty, and users can continue reviewing or editing text sections.
-
Q: What is the practical difference between Report Date and Month Range?
-
A: Report Date sets the anchor date for the report, while Month Range controls how far back weekly-report data is pulled from that anchor.
-
Q: What is
View Full BIPand when should it be used? -
A: It opens the extended, report-style, read-only version of the same plan. Use it when you need comprehensive clinical review and PDF/report context after or during tabbed editing.