Incorrect Batch Allocation When Issuing Prescription Within Multiple Available Batches – Multiple Lines Added With Zero Quantity

by ADMIN 129 views

Incorrect Batch Allocation When Issuing Prescription Within Multiple Available Batches – Multiple Lines Added with Zero Quantity

What Went Wrong? 😲

When issuing a prescription with multiple batches available for an item, the system seems to be incorrectly allocating multiple batch lines to the prescription, even when only one batch is selected and the quantity noted against. This results in additional lines with a quantity of zero being added, and the error messaging popping up with "You have rows with 0 quantity issued. If you proceed, these will be removed. Please "Cancel" if you wish to update the items". This issue can be particularly problematic in a dispensary setting where accuracy and efficiency are crucial.

Image 1: See 10 batches in the list for Acetylsalicylic Acid, only 20 allocated against one batch

Image

Image 2: Error message

Image

Image 3: Showing list of the multiple batches that seem to have been allocated to the prescription

Image

Note: If you delete the Acetylsalicylic Acid line, it says 10 lines deleted

Expected Behaviour 🤔

Only the selected batch with the issued quantity should be added to the prescription. Batches with 0 quantity allocated should not be included. This expected behavior is crucial in maintaining the accuracy and efficiency of the dispensary process. By ensuring that only the selected batch is added to the prescription, healthcare professionals can avoid confusion and errors that may arise from multiple batch lines with zero quantity.

How to Reproduce 🔨

To reproduce this behavior, follow these steps:

  1. Go to Dispensary > Prescriptions: Navigate to the prescriptions section within the dispensary module.
  2. Add a medicine that has multiple batches available: Select a medicine that has multiple batches available for allocation.
  3. Select only one batch and issue a quantity: Choose only one batch and issue a quantity for the selected medicine.
  4. Upon saving, multiple batch lines (including zero quantity ones) are added to the prescription: Save the prescription, and multiple batch lines, including those with zero quantity, will be added to the prescription.
  5. Click Confirm and see error message pop up: Click Confirm, and the error message will pop up, indicating that there are rows with 0 quantity issued.

Your Environment 🌱

The following environments were used to reproduce this issue:

  • Open mSupply Version: 2.7.0 demo open mSupply (demo-open.msupply.org): The demo version of mSupply was used to reproduce this issue on a Chrome browser.
  • 2.7.2 on tablet (Samsung galaxy): The issue was also reproduced on a Samsung galaxy tablet running mSupply version 2.7.2.

Impact of the Issue

The incorrect batch allocation when issuing a prescription with multiple available batches can have a significant impact on the dispensary process. It can lead to:

  • Confusion and errors: Multiple batch lines with zero quantity can cause confusion and errors among healthcare professionals.
  • Inaccurate prescriptions: Inaccurate prescriptions can lead to incorrect medication being dispensed, which can have serious consequences for patients.
  • Waste of resources: The issue can also result in the waste of resources, including time and personnel, as healthcare professionals try to resolve the errors.

Conclusion

The incorrect batch allocation when issuing a prescription with multiple available batches is a critical issue that needs to be addressed. By understanding the expected behavior and the steps to reproduce the issue, healthcare professionals and developers can work together to resolve this issue and ensure the accuracy and efficiency of the dispensary process.

Recommendations

To resolve this issue, the following recommendations can be made:

  • Review the dispensary module: Review the dispensary module to ensure that it is functioning correctly and that the batch allocation process is accurate.
  • Test the module: Test the module thoroughly to ensure that it is working as expected and that the issue is resolved.
  • Provide training: Provide training to healthcare professionals on the correct use of the dispensary module and the batch allocation process.
  • Monitor the issue: Monitor the issue to ensure that it is resolved and that the dispensary process is running smoothly.

Future Development

To prevent similar issues in the future, the following development recommendations can be made:

  • Improve the batch allocation process: Improve the batch allocation process to ensure that it is accurate and efficient.
  • Add error checking: Add error checking to the dispensary module to prevent similar issues from arising.
  • Provide feedback: Provide feedback to healthcare professionals on the correct use of the dispensary module and the batch allocation process.
  • Continuously test: Continuously test the dispensary module to ensure that it is working as expected and that any issues are resolved promptly.
    Frequently Asked Questions (FAQs) About Incorrect Batch Allocation When Issuing Prescription Within Multiple Available Batches

Q: What is the incorrect batch allocation issue?

A: The incorrect batch allocation issue occurs when issuing a prescription with multiple batches available for an item, the system incorrectly allocates multiple batch lines to the prescription, even when only one batch is selected and the quantity noted against.

Q: What are the consequences of this issue?

A: The consequences of this issue can include confusion and errors among healthcare professionals, inaccurate prescriptions, and the waste of resources, including time and personnel.

Q: How can I reproduce this issue?

A: To reproduce this issue, follow these steps:

  1. Go to Dispensary > Prescriptions.
  2. Add a medicine that has multiple batches available.
  3. Select only one batch and issue a quantity.
  4. Upon saving, multiple batch lines (including zero quantity ones) are added to the prescription.
  5. Click Confirm and see error message pop up.

Q: What are the expected behaviors when issuing a prescription with multiple batches available?

A: The expected behaviors when issuing a prescription with multiple batches available are:

  • Only the selected batch with the issued quantity should be added to the prescription.
  • Batches with 0 quantity allocated should not be included.

Q: What are the environments used to reproduce this issue?

A: The following environments were used to reproduce this issue:

Q: How can I resolve this issue?

A: To resolve this issue, the following recommendations can be made:

  • Review the dispensary module to ensure that it is functioning correctly and that the batch allocation process is accurate.
  • Test the module thoroughly to ensure that it is working as expected and that the issue is resolved.
  • Provide training to healthcare professionals on the correct use of the dispensary module and the batch allocation process.
  • Monitor the issue to ensure that it is resolved and that the dispensary process is running smoothly.

Q: What are the future development recommendations to prevent similar issues in the future?

A: The following development recommendations can be made to prevent similar issues in the future:

  • Improve the batch allocation process to ensure that it is accurate and efficient.
  • Add error checking to the dispensary module to prevent similar issues from arising.
  • Provide feedback to healthcare professionals on the correct use of the dispensary module and the batch allocation process.
  • Continuously test the dispensary module to ensure that it is working as expected and that any issues are resolved promptly.

Q: What are the benefits of resolving this issue?

A: The benefits of resolving this issue include:

  • Improved accuracy and efficiency of the dispensary process.
  • Reduced confusion and errors among healthcare professionals.
  • Reduced waste of resources, including time and personnel.
  • Improved patient care and safety.

Q: Who can help me resolve this issue?

A: If you need help resolving this issue, you can contact:

  • mSupply support team
  • Healthcare professionals who have experience with the dispensary module
  • IT professionals who have experience with the system

Q: How can I provide feedback on this issue?

A: You can provide feedback on this issue by:

  • Contacting the mSupply support team
  • Submitting a ticket on the mSupply website
  • Providing feedback through the mSupply community forum

Q: What are the next steps to resolve this issue?

A: The next steps to resolve this issue are:

  • Review the dispensary module and the batch allocation process.
  • Test the module thoroughly to ensure that it is working as expected and that the issue is resolved.
  • Provide training to healthcare professionals on the correct use of the dispensary module and the batch allocation process.
  • Monitor the issue to ensure that it is resolved and that the dispensary process is running smoothly.