CPUT Health Tracker Pharmacist Paper
ANSWER
- Patient Information: You have patients who are diagnosed with various medical conditions. Each patient should have a unique identifier, and you store their general information (e.g., name, date of birth, contact information) in a “Patients” table.
- Medical Conditions: Patients can have one or more medical conditions. The date of the initial diagnosis for each condition can be recorded in a “Patient_Condition” table. This table should link patients to their conditions and include a date field to indicate when each condition was diagnosed.
- Prescriptions: Prescriptions are issued to patients for specific medical conditions. A prescription can include details like the prescribed medication, dosage, duration, and any special instructions. This information can be stored in a “Prescriptions” table.
- Medications: There should be a “Medications” table to store information about available medications. This includes details such as medication name, dosage forms, and any relevant information about the medication.
- Pharmacists: You mentioned that pharmacists are responsible for handling prescriptions. Therefore, you may need a “Pharmacists” table to store information about pharmacists, including their names, contact information, and credentials.
Here’s a simplified representation of the database schema in a relational database:
- Patients table:
- PatientID (Primary Key)
- FirstName
- LastName
- DateOfBirth
- ContactInfo (e.g., phone, email)
- MedicalConditions table:
- ConditionID (Primary Key)
- ConditionName
- Patient_Condition table:
- DiagnosisID (Primary Key)
- PatientID (Foreign Key)
- ConditionID (Foreign Key)
- DiagnosisDate
- Medications table:
- MedicationID (Primary Key)
- MedicationName
- DosageForm
- Description (e.g., usage instructions, side effects)
- Prescriptions table:
- PrescriptionID (Primary Key)
- PatientID (Foreign Key)
- ConditionID (Foreign Key)
- MedicationID (Foreign Key)
- Dosage
- Duration
- Instructions
- Pharmacists table:
- PharmacistID (Primary Key)
- FirstName
- LastName
- ContactInfo
- Credentials
This is a basic outline of the database schema. Depending on your specific requirements, you may need to expand or modify this structure. Additionally, you’ll need to define relationships between tables using foreign keys to establish data integrity and ensure that data is properly linked. This schema will help you keep track of patient conditions, medications, prescriptions, and the involvement of pharmacists in managing prescriptions.
QUESTION
Description
The system must keep track of conditions that patients have, as well as the medicine prescribed for each condition. The date that a patient was first diagnosed with a particular condition is kept in the Patient_Condition table. A pharmacist is always responsible for handling a prescription to ensure that medicine is prescribed correctly. A prescription is always for one patient,