Question: c++ programming project please i need a code not an explanation In the project, a patient tracking system using two files for patient checkup and
c++ programming project
please i need a code not an explanation
In the project, a patient tracking system using two files for patient checkup and follow-up will be implemented using C++
The patient's unchanged information will be stored in the Patient.txt file. the informations are:
IDENTITY NUMBER
FIRST NAME
LAST NAME
PATIENT REGISTRATION NO
PHONE NUMBER
DATE OF BIRTH
The patient's appointment information will be stored in the appointment.txt file and the information to be kept for checkup should be as follows:
IDENTITY NUMBER
DATE
HOUR
DOCTOR NAME
DIAGNOSIS
MEDICINES
TESTS
When the program runs, the following menu should appear:
1- Patient registration
2- Patient record update
3- Patient deletion (when the patient is deleted, the patient's appointments will also be deleted)
4- Making an appointment
5- Deleting an appointment
6- Appointment update
7- Patient inquiry
8- Receiving a patient list (there can be three different lists, patient name, surname, and phone, or can be just one of them )
9- Patient checkup record
Needed Operations
patient registration
A new patient record will be added to the patient.txt file.
Patient record correction
Correction of a patient registered will be performed in the patient.txt file.
Patient deletion
A patient registered in the patient.txt file will be deleted. All of the appointment information in the patient's appointment.txt file will be deleted.
Making an appointment
By entering the ID number of the patient, patient information will be brought from the patient.txt file, if there is no record, it will be added as a new record and an appointment will be added to the appointment.txt file for the patient.
Delete an appointment
By entering the ID number of the patient, patient information will be brought from the patient.txt file, and the appointment in the appointment.txt file will be deleted.
Appointment update
By entering the ID number of the patient, patient information will be brought from the patient.txt file, the appointment in the appointment.txt file will be changed.
Patient inquiry
The patient whose ID number is entered will be searched, and the information in the patient.txt file and the patient's checkup history and appointments information in the appointment.txt file will be listed.
Patient list
The list of patients in the patient.txt file will be printed as ID number, name, surname, and tel.
patient checkup record
By entering the ID number of the patient, the patient information will be brought from the patient.txt file, Appointment information in the appointment.txt file will be brought and doctor, diagnosis, medicine, and testes information will be added to the appointment record.
Note:
The use of a single file in practice is often insufficient. We keep our data in multiple and related files in order to prevent data duplication and to ensure data organization. For example, in keeping the records of the patients, the patient's unchanged name, surname, phone number, date of birth, etc. In addition to the information, the patient has information at each examination. Examination information is a frequently changing data for the patient. Keeping it in a separate file is mandatory. In this case, data manipulation should be performed with at least two different files. Possible fields for files are given in the figure.
(ID NO) is included in both files. Although this may seem like a repetition of data, it will help us establish the relationship between the two files. For example, once we record the general information of the patient, only the information about the examination will be added to the examination information file every time the patient comes to the examination. Who it belongs to will also be known by the ID NO. In other words, access to information between two files will provide ID number information.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
