View and Export BCBA Note
1. What does this feature do? (High-Level Overview)
Section titled “1. What does this feature do? (High-Level Overview)”This feature lets authorized staff open a BCBA note from the patient notes flow and review its full clinical and session details in read mode. It also allows eligible users to export that same note as a PDF for audit, billing, or sharing workflows.
2. Who is this for? (Roles & Permissions)
Section titled “2. Who is this for? (Roles & Permissions)”- BCBA/Analyst and clinical staff with notes access: Can open BCBA notes from the patient note list when they have
view_notesaccess in the location context. - Admin / Owner / Manager / Superadmin (or any role) with
manage_notes: Can see theExport PDFbutton in the BCBA note view screen. - Users with
export_notes: Can successfully call the BCBA PDF export endpoint. - Users with
access_all_locations: Can export notes across locations when the selected note does not match the currentX-Location-Idcontext.
Required permissions and access checks:
view_notes: Needed to expose the View action in the BCBA notes list workflow.manage_notes: Used by the UI to show the BCBA noteExport PDFaction in the note view screen.export_notes: Enforced by backend middleware for/v2/note_bcba/pdf/{id}.- Location scoping: The backend validates the note location against
X-Location-Id, withaccess_all_locationsas override.
3. Business Rules & Enforcements
Section titled “3. Business Rules & Enforcements”- Rule 1: Users open a BCBA note view from the BCBA notes list route (
/note-bcba/listbyclient/:id) into/note-bcba/view/:id. - Rule 2: The view page loads note, patient, specialists, and insurance context before rendering full details.
- Rule 3: The screen renders CPT-specific blocks conditionally (
97155,97156, and97151subtype views) plus common summary/signature sections. - Rule 4:
Export PDFis shown in the UI only when the current user hasmanage_notes. - Rule 5: PDF generation uses the BCBA endpoint
/v2/note_bcba/pdf/{id}and opens the resulting file in a new browser tab. - Rule 6: Backend export is protected by
check.permissions:export_notes; requests without that permission are rejected. - Rule 7: Backend export bypasses tenant scope to find the note, then enforces location access using
X-Location-Id; cross-location export is denied unless the user can performaccess_all_locations.
4. UI Placement
Section titled “4. UI Placement”- Medical > Notes > BCBA notes by client:
/note-bcba/listbyclient/:idshows the patient BCBA notes table. - View action and DOS link: Both navigate to
/note-bcba/view/:id. - BCBA note view page: Displays note details and, when eligible, the
Export PDFbutton.
5. How-To Guide (Step-by-Step)
Section titled “5. How-To Guide (Step-by-Step)”Scenario A: View a BCBA note from a patient profile note flow
- Open the patient BCBA notes list.
- Locate the target note by DOS.
- Click the DOS link or the
Viewaction. - Review session metadata, CPT-specific content, summary note, signatures, and timestamps.
Scenario B: Export a BCBA note as PDF
- Open the BCBA note in view mode.
- Confirm the
Export PDFbutton is visible. - Click
Export PDF. - Wait for the system to request
/v2/note_bcba/pdf/{noteId}. - The PDF opens in a new browser tab.
6. What happens if…? (Edge Cases / FAQ)
Section titled “6. What happens if…? (Edge Cases / FAQ)”-
Q: What happens if I can view the note but cannot export it? A: The UI may still show export only under
manage_notes, but backend export also requiresexport_notes; without it, the request is rejected. -
Q: What happens if the note belongs to another location? A: The backend blocks export when the note location does not match
X-Location-Id, unless the user hasaccess_all_locations. -
Q: What happens if provider or supervisor is no longer in the patient specialist list? A: The view screen fetches the missing user directly and still renders the provider/supervisor name and signature data when available.