Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef PATIENTRECORD_H
- #define PATIENTRECORD_H
- #include <iostream>
- #include "date.h"
- #include <string>
- using namespace std;
- class Patient{
- public:
- Patient(int id = 0, const string = "John", const string ln = "Doe", Date bday = { 1, 1, 1900 }); //Put in default values
- // just as in Date class
- //Use the set functions so input values are checked
- //~Patient();
- Patient & setID(int);
- Patient & setFirstName(const string);//check if length of name string is < 15, if not, shorten to 14 letters.
- Patient & setLastName(const string);
- //check if length of name string is < 15, if not, shorten to 14 letters.
- Patient & setBirthDate(Date);
- int getID();
- const string getFirstName();
- const string getLastName();
- Date getBirthDate();
- int getPrimaryDoctorID();
- bool enterProcedure(Date procedureDate, int procedureID, int procedureProviderID);//tries to add a new entry to record array, returns
- ////true if added, false if cannot be added
- void printAllProcedures();
- private:
- int ID;
- string firstName;
- string lastName;
- Date birthdate;
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement