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

Add ability to persist custom medication codes #243

Merged
merged 24 commits into from
Jan 25, 2025
Merged

Conversation

ashleybot
Copy link
Member

@ashleybot ashleybot commented Jan 13, 2025

Fixes #239

This feature allows end-users to search RxNorm API and add more drug codes to the local lookup (there is a foreign key requirement for A4 RxNormIds to the look up).

It additionally implements several scenarios which could be possible, but does not stretch to encompass all potentially polishes for UX. This will be iterated upon as we learn more.

It implements:

  • User adding custom medications to an existing form with already selected medications. RxNormIds are not allowed to duplicate.
  • User adding custom medication to an unsaved form. It includes if they skip the first question ANYMEDS.
  • User adding custom medications in consecutive order. After successfully finding the custom medication it is added to the A4 and persisted in between redirects.
  • If the user attempts to add a custom medication that already exists it will search and use the local medication first.
  • Saves any changes along the way to adding custom medications.

It does not implement:

  • Polish such as system feedback during slow response times (relies on user not rage clicking)

A4 flow with custom medications

Screenshot 2025-01-25 at 10 23 12 AM Screenshot 2025-01-25 at 10 23 57 AM Screenshot 2025-01-25 at 10 24 14 AM Screenshot 2025-01-25 at 10 24 23 AM Screenshot 2025-01-25 at 10 24 30 AM

@ashleybot ashleybot marked this pull request as ready for review January 25, 2025 15:08
@ashleybot ashleybot merged commit 60fb099 into main Jan 25, 2025
1 check passed
@ashleybot ashleybot deleted the A4-custom-medications branch January 25, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A4 Custom Medications
1 participant