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 Logic change #471

Open
1 task
AnnieMungai opened this issue Dec 6, 2021 · 3 comments
Open
1 task

Prescription Logic change #471

AnnieMungai opened this issue Dec 6, 2021 · 3 comments
Assignees
Labels
7 - 10 days LOE required is 7-10 days Requires discussion

Comments

@AnnieMungai
Copy link

AnnieMungai commented Dec 6, 2021

  • The system not to allow you to dispense the treatment you haven't prescribed. When a user wants to dispense a list of prescribed drugs to appear from which a user will select to dispense.

The ask
On the prescription form, have a list of medications prepopulated when prescribed. Name to be Medication Prescribed.
Tapping on any of the medications will open the question; Medication dispensed? Users should be able to select yes or no.
If yes is selected, the prescription details form opens up. If no is selected, the reason why the medication was not prescribed pops open.

Question for discussion

  • What happens if the prescriptions have not gotten to the pharmacy? Or data from the clinician is not yet synced and so the pharmacy form cannot be prepopulated? Leave the add medication option still intact?
  • Currently, selecting the medication is used to tally the reports. How will this work if we take this implementation?

Linked to issue #464.

@AnnieMungai AnnieMungai self-assigned this Dec 6, 2021
@dubdabasoduba dubdabasoduba added the 7 - 10 days LOE required is 7-10 days label Dec 14, 2021
@dubdabasoduba
Copy link
Member

dubdabasoduba commented Dec 14, 2021

Technical scoping
Technical implementation.

  • Create a repeating group on the pharmacy form. This repeating group should have the following.
    • The repeating group number of groups will be determined by the number of medications prescribed in the previous form.
    • A medication multi-select widget. This widget should be auto-populated by each medication from the prescribed medication.
    • A radio button question asking whether the medication is available
  • The pharmacy form should also have an Add medication button which will help in the following
    • In case the form is not prepopulated (for any reason) the pharmacist should be able to add the medication manually.
    • On clicking the Add Medication button then a new repeating group entry should be created. This entry should assume the same behaviour described in the first point.
  • The special instructions & referral questions will still remain on the final form.
  • The referral question will be on the main form. The relevance for this question will be determined as follows:
    • This question should be shown only if any of the medication available questions in the repeating group is answered as no.

Concerns

  • Can the Multi-Select widget be used in a repeating group?
  • Can the answers of a question in a repeating group affect the relevance of a question outside the repeating groups.

Next Steps

  • Communicate this option to the client then get sign off for the POC (Proof Of Concept)
  • Create a POC (Proof Of Concept) of the above suggested technical implementation. The LOE for this implementation is added above. It's a bit large due to the R&D and potential Native Forms work in case the concerns above need to be implemented

Questions

  • Does the special instructions question get answered for each medication in the prescription?

@AnnieMungai @roywanyaga @hamza-vd Please review this.

@AnnieMungai
Copy link
Author

@dubdabasoduba no, it is one question for the whole prescription.

Question: If for example someone has a prescription for 5 medications, and only 3 are available in the pharmacy, the pharmacist will have to remove the ones that are not available. Will this implementation cater to this?

@roywanyaga
Copy link
Contributor

@AnnieMungai yes, this implementation will cater for your scenario. There will be a question under each medication specifying whether its available or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7 - 10 days LOE required is 7-10 days Requires discussion
Projects
None yet
Development

No branches or pull requests

3 participants