Skip to content

Conversation

jhenderson
Copy link
Contributor

@jhenderson jhenderson commented Aug 22, 2025

Context

This PR implements a new feature that allows prescribers (nurses, pharmacists) to bulk create Patient Specific Directions (PSDs) for patients who have given consent and don't require individual triage assessment. This significantly reduces manual work by enabling batch processing of PSDs instead of creating them one by one.

What's changed?

  • New (basic) controller and page for the PSDs tab (no filters yet)
    • PSDs tab only appears if delegation feature is enabled
    • Manages the bulk add PSDs

Screenshots

New PSDs tab page (without filters) After PSDs added
Screenshot 2025-08-22 at 15 32 52 Screenshot 2025-08-22 at 15 38 10
Bulk add PSDs page
Screenshot 2025-08-22 at 15 41 00

@jhenderson jhenderson force-pushed the prescribers-can-create-psd-instructions-in-bulk branch 5 times, most recently from d20a8b6 to af6fb79 Compare August 22, 2025 16:45
@jhenderson jhenderson added the feature New functionality label Aug 22, 2025
@jhenderson jhenderson added this to the v3.4.0 milestone Aug 22, 2025
@jhenderson jhenderson force-pushed the prescribers-can-create-psd-instructions-in-bulk branch from af6fb79 to 1ea785e Compare August 22, 2025 16:52
@jhenderson jhenderson marked this pull request as ready for review August 22, 2025 17:15
@jhenderson jhenderson requested a review from a team as a code owner August 22, 2025 17:15
@jhenderson jhenderson force-pushed the prescribers-can-create-psd-instructions-in-bulk branch from 1ea785e to 8f7487e Compare August 26, 2025 14:57
@jhenderson jhenderson force-pushed the prescribers-can-create-psd-instructions-in-bulk branch 2 times, most recently from 881cdc5 to 92192d2 Compare August 27, 2025 11:04
@thomasleese thomasleese changed the base branch from next to v3.4.0-delegation August 27, 2025 11:06
This allows historic records, and records received from the API to leave `protocol = nil`.

Also set imported records' protocol to `nil`, unless it's an offline recording, in which case default to `"pgd"`.
The upcoming PSDs tab page will need to render the PSD status for each
patient. The html markup will be the same as what this component renders
for the register status.
This PR implements a new feature that allows prescribers (nurses,
pharmacists) to bulk create Patient Specific Directions (PSDs) for
patients who have given consent and don't require individual triage
assessment. This significantly reduces manual work by enabling batch
processing of PSDs instead of creating them one by one.

What's changed?
- New (basic) controller and page for the PSDs tab (no filters yet)
  - PSDs tab only appears if delegation feature is enabled
- New controller to manage the bulk add PSDs
@jhenderson jhenderson force-pushed the prescribers-can-create-psd-instructions-in-bulk branch from 92192d2 to 398271f Compare August 27, 2025 11:16
Copy link

@jhenderson jhenderson merged commit fad13a7 into v3.4.0-delegation Aug 27, 2025
9 checks passed
@jhenderson jhenderson deleted the prescribers-can-create-psd-instructions-in-bulk branch August 27, 2025 11:40
thomasleese pushed a commit that referenced this pull request Aug 27, 2025
…ctions-in-bulk

Prescribers can create PSD instructions in bulk
thomasleese pushed a commit that referenced this pull request Aug 27, 2025
…ctions-in-bulk

Prescribers can create PSD instructions in bulk
thomasleese pushed a commit that referenced this pull request Aug 27, 2025
…ctions-in-bulk

Prescribers can create PSD instructions in bulk
thomasleese pushed a commit that referenced this pull request Aug 29, 2025
…ctions-in-bulk

Prescribers can create PSD instructions in bulk
thomasleese pushed a commit that referenced this pull request Aug 29, 2025
…ctions-in-bulk

Prescribers can create PSD instructions in bulk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants