The Patient Chart App is a Swift-based application designed to manage patient data and medication tracking as an electronic medical record (EMR). This project models patients, their prescribed medications, and supports safe medication management through error handling and unit testing.
- Patient Management: Stores essential patient information (MRN, first name, last name, date of birth, height, weight, blood type, prescribed medications).
- Medication Management: Handles prescription data, tracks active medications, and prevents duplicate prescriptions.
- Error Handling: Throws appropriate errors for duplicate medication prescriptions.
- Unit Testing: Comprehensive test cases to verify all functionality.
Displays a list of patients; allows searching by last name and navigation to detailed views.
Shows detailed patient information, including active medications, with the ability to prescribe new medications.
A form to add new patients to the list, with error handling for invalid inputs.
A form to add new medications to a patient's medication list, with error handling for invalid inputs.
Below are the screenshots of the key views in the Patient Chart App:
Patient List View | Patient Detail View | New Patient Form View | Prescribe Medication View |
![]() | ![]() | ![]() | ![]() |