msupply-foundation / open-msupply

Open mSupply represents our most recent advancement in the Logistics Management Information System (LMIS), expanding on more than two decades of development inherited from the well-established legacy of the original mSupply.
https://msupply.foundation/open-msupply/
Other
23 stars 14 forks source link

Able to set a visit date prior to patient's birth date #5219

Open marthakeezy opened 1 week ago

marthakeezy commented 1 week ago

What went wrong? 😲

In encounters, the user is able to set visit date prior to patient's birth date.

https://github.com/user-attachments/assets/2916cc68-13b5-48e1-988a-1218451b2e39

Expected behaviour 🤔

Should be some sort of restriction -> thinking how you cannot backdate prescriptions to the date when the item didn't exist in the system, similarly visit date should not be able to be selected prior to one's date of birth.

How to Reproduce 🔨

Steps to reproduce the behaviour:

  1. Have a patient who is enrolled in a Program
  2. Have their DOB be something recent
  3. Create an encounter for that patient and try and change the date to before their DOB
  4. The system allows that action -> inconsistency

Your environment 🌱

myspace20 commented 1 week ago

I will like to work on this.

roxy-dao commented 1 week ago

Welcome @myspace20! Great to see that you're interested in contributing!

For some general guidelines, check out our contributing doc.

To get started with this issue, you'll need to be working with the react app. After cloning the repo, head over to the read me which walks you through getting set up. Let me know if you need some help!

myspace20 commented 4 days ago

@roxy-dao I'm facing an issue when i try to login into the app. The issue is this : "Your account does not have access to any stores on this site". I'm using the Admin credentials from the Users.txt file.