Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prescription: Item Edit : Directions Section #5648

Open
13 tasks
Tracked by #6023
jmbrunskill opened this issue Nov 28, 2024 · 3 comments · May be fixed by #6362
Open
13 tasks
Tracked by #6023

Prescription: Item Edit : Directions Section #5648

jmbrunskill opened this issue Nov 28, 2024 · 3 comments · May be fixed by #6362
Assignees

Comments

@jmbrunskill
Copy link
Contributor

jmbrunskill commented Nov 28, 2024

image

A new section in the item edit page, which allows the user to enter or select directions for use of an prescription item.

If configured, a drop down is shown of the available directions, and a single direction can be selected - this will add to the prescription
An abbreviation can be typed into an input, if a match is found the directions field is populated with the match
The note field on trans_line is populated with the text of the direction

The item_direction table holds default directions for an item
If configured, a drop down is shown of the available directions, and a single direction can be selected - this will add to the prescription
An abbreviation can be typed into an input, if a match is found the directions field is populated with the match
The note field on trans_line is populated with the text of the direction

The tab order needs to be defined and implemented

Item
Quantity
Abbreviation
Default directions
Directions

Acceptance Criteria

  • Add an accordian style section divider to prescriptions page
  • A new section appears in the Prescription Item Edit page called Directions
  • Adds a directions input (textarea)
  • Adds an abbreviation input (text)
  • If a valid abbreviation is entered the directions are automatically filled in or replaced with the abbreviation
  • If multiple abbreviations are entered with spaces separating them, they're all replaced with their abbreviation
  • Any non-matched strings are copied down from the abbreviation section, so if you have 6ml => SIX mills and bm => by mouth and you enter Take 6ml bm the resulting directions should be Take SIX mills by mouth.
  • Add a drop down allowing selection of the default directions (Autocomplete?)
  • If a default direction is selected, the Directions are filled in with the default direction text (or abbreviation expansion)
  • Directions are saved, and visible when re-visiting the
  • tab order is defined as above
  • Directions are saved so are still visible after syncing and re-initialising.
  • Default directions should appear in the dropdown in priority order as defined in mSupply
@jmbrunskill jmbrunskill added the Team Piwakawaka James, Carl, John, Zachariah label Nov 29, 2024
@jmbrunskill jmbrunskill added this to the v2.5.0 milestone Nov 29, 2024
@jmbrunskill jmbrunskill changed the title Directions Modal Prescription: Item Edit : Directions Section Nov 29, 2024
@jmbrunskill
Copy link
Contributor Author

@mark-prins Can you clarify the functionality you want with abbreviations & default directions when directions have already been filled in. Are you happy with the confirmation modal and replacing the entire text? Or do you want to enable adding on abbreviations & or default directions?

Also I wondered if there's only 1 default direction, should it autopopulate?

@jmbrunskill
Copy link
Contributor Author

@mark-prins as far as I'm aware we have no plans to show the list of abbreviations in open-mSupply anywhere. Do we need to consider adding that somewhere???

@mark-prins
Copy link
Collaborator

Are you happy with the confirmation modal and replacing the entire text?

Replacing the text is fine - that's the current behaviour and no one has requested any changes.

Also I wondered if there's only 1 default direction, should it autopopulate?

No, I think not. I'm reluctant to default medical directions - they need to be explicitly selected / entered by the pharmacist.

..the list of abbreviations in open-mSupply anywhere. Do we need to consider adding that somewhere?

good thought! Could be useful, like a glossary of options which are available. That could go in as another lower priority

@CarlosNZ CarlosNZ assigned CarlosNZ and unassigned CarlosNZ Dec 17, 2024
@jmbrunskill jmbrunskill removed this from the v2.5.0 milestone Jan 7, 2025
@Chris-Petty Chris-Petty added Team: Kororā 🐧 Chris, Laché, Aimee and removed Team Piwakawaka James, Carl, John, Zachariah labels Jan 28, 2025
@aimee-mcneil-melville aimee-mcneil-melville self-assigned this Jan 28, 2025
@aimee-mcneil-melville aimee-mcneil-melville linked a pull request Jan 30, 2025 that will close this issue
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants