Open nus-se-bot opened 2 years ago
The team had thought about this issue when we were designing our product.
With regards to the point you have made on "editing of name in stock should allow the name of prescription to be updated too", consider this situation:
1) Alice was prescribed with "Panadol" on 20/11/2021.
2) MediVault's stock record of "Panadol" was updated to "Panadol V2" on 21/11/2021.
If we update Alice's prescribed medication to "Panadol V2", it doesn't make sense as she was actually prescribed "Panadol" on 20/11/2021.
Therefore, we used our implementation to "preserve" the stock before the update as stated in our DG.
--
I feel like editing of name in stock should allow the name of prescription to be updated too. Otherwise, how can the patient revisit the clinic and know what medication they were given from the previous visit (given a change in name)
[original: nus-cs2113-AY2122S1/pe-interim#1488] [original labels: type.FeatureFlaw severity.Medium]