Advertisement
Guest User

PatientH

a guest
Nov 6th, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.09 KB | None | 0 0
  1. #ifndef PATIENTRECORD_H
  2. #define PATIENTRECORD_H
  3. #include <iostream>
  4. #include "date.h"
  5. #include <string>
  6.  
  7. using namespace std;
  8.  
  9. class Patient{
  10.  
  11.  
  12. public:
  13.     Patient(int id = 0, const string = "John", const string ln = "Doe", Date bday = { 1, 1, 1900 }); //Put in default values
  14.     // just as in Date class
  15.     //Use the set functions so input values are checked  
  16.     //~Patient();
  17.     Patient & setID(int);
  18.     Patient & setFirstName(const string);//check if length of name string is <  15, if not, shorten to 14 letters.
  19.     Patient & setLastName(const string);
  20.   //check if length of name string is < 15, if not, shorten to 14 letters.
  21.     Patient & setBirthDate(Date);
  22.  
  23.     int getID();
  24.     const string getFirstName();
  25.     const string getLastName();
  26.     Date getBirthDate();
  27.     int getPrimaryDoctorID();
  28.  
  29.     bool enterProcedure(Date procedureDate, int procedureID, int procedureProviderID);//tries to add a new entry to record array, returns                                    
  30.     ////true if added, false if cannot be added
  31.     void printAllProcedures();
  32.  
  33. private:
  34.     int ID;
  35.     string firstName;
  36.     string lastName;
  37.     Date  birthdate;
  38. };
  39.  
  40. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement