View RBT Note and Export PDF
1. What does this feature do? (High-Level Overview)
Section titled “1. What does this feature do? (High-Level Overview)”This feature lets users open a completed RBT note in read-only profile format and, when authorized, export it as a PDF. It helps teams review session details quickly and share a formal record for operational or billing workflows.
2. Who is this for? (Roles & Permissions)
Section titled “2. Who is this for? (Roles & Permissions)”- RBT/Analyst, Manager, Owner, Admin, Superadmin with access to the Notes flow: Can open and review RBT note profiles.
- Users with
manage_notes(UI visibility): See theExport PDFaction in the RBT note profile view. - Users with
export_notes(backend enforcement): Can successfully generate the PDF file from the export endpoint. - Users with
access_all_locations(cross-location exception): Can export a note outside the currently selected location when authorized.
3. Business Rules & Enforcements
Section titled “3. Business Rules & Enforcements”- Rule 1: The note profile page loads note details by note ID and shows the full session summary in read-only mode.
- Rule 2: The
Editbutton is shown using ownership/status logic:- Users with
manage_notescan edit regardless of note status. - Without
manage_notes, only the provider assigned to the note can edit, and only when status ispendingorno.
- Users with
- Rule 3: The
Export PDFbutton is shown in the UI only when the user hasmanage_notes. - Rule 4: PDF generation is protected by backend permission
export_notes. - Rule 5: Export validates location scope using the current
X-Location-Idcontext. If the note belongs to another location, export is rejected unless the user hasaccess_all_locations. - Rule 6: Exported file is generated as an RBT note PDF and returned with a filename format
rbt-note-<note-id>.pdf.
4. UI Placement
Section titled “4. UI Placement”- Notes > Notes List (
/notes-list): Open a note by clicking the DOS link in the table. - RBT Note Profile (
/note-rbt/view/:id): Read-only note detail page. - Action area in profile header:
BackEdit(permission and status dependent)Export PDF(shown formanage_notesusers)
5. How-To Guide (Step-by-Step)
Section titled “5. How-To Guide (Step-by-Step)”Scenario A: View an RBT note profile from the Notes list
- Open
Notesfrom the sidebar. - Use filters (date range, provider, patient, note type) to find the target note.
- Click the note DOS link.
- Review the profile sections: patient/session info, maladaptives, replacements, interventions, summary, and signatures.
Scenario B: Export the viewed RBT note as PDF
- Open the RBT note profile (
/note-rbt/view/:id). - Click
Export PDF. - Wait for the PDF response; the document opens in a new browser tab.
- Save or print the PDF from the browser if needed.
Scenario C: Open from Logs Report context
- Open a note from Logs Report.
- The profile opens with
from=logcontext and displays the breadcrumb path for Logs. - Review or export the note using the same actions.
6. What happens if…? (Edge Cases / FAQ)
Section titled “6. What happens if…? (Edge Cases / FAQ)”-
Q: What happens if the user can see the profile but does not have
export_notes? A: Export request is rejected by backend authorization, even if the profile itself is visible. -
Q: What happens if the note belongs to another location than the selected
X-Location-Id? A: Export is blocked unless the user hasaccess_all_locations. -
Q: What happens if the note is in
okstatus and the provider does not havemanage_notes? A:Editis not shown/allowed for that provider in the profile view.