Debugged errors in medicine insert/edit functionalities. Implemented delete for medicine.
foreign keys in DB made not null.
1. Merged insert and edit functionality for Pain. 2. Fixed bugs in input/output functionality in Pain. 3. Adjusted field types in DB accordingly. (Currently can retrieve and save all fields correctly.) 4. Refactored some code in medicine files.
1. Implemented delete and edit. Merged edit with insert in one file and renamed file to reflect that. 2. Refactored code in lib. 3. Fixed spelling of Admission in Medicine and Patient tables.
follow prev commit.
Display list of all PainManagement that belongs to Pain at view_pain page. 2. Display all Pain that belongs to Patient at view_patient page.
Follows prev commit.