1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
|
]#pragma once
#include<string>
using namespace std;
class MedicalProfessional
{
private:
string firstName;
string lastName;
string address;
string city;
string state;
string zip;
string cellPhone;
public:
MedicalProfessional();
MedicalProfessional(string, string, string, string, string, string, string);
~MedicalProfessional();
string getFirstName();
void setFirstName(string);
string getLastName();
void setLastName(string);
string getAddress();
void setAddress(string);
string getCity();
void setCity(string);
string getState();
void setState(string);
string getZip();
void setZip(string);
string getCellPhone();
void setCellPhone(string);
string DisplayInformation();
};
string MedicalProfessional::DisplayInformation()
{
string tempString = "";
tempString += "Name: " + getFirstName() +
" " + getLastName() + ", " + getAddress() + ", " + getCity()
+ ", " + getState() + ", " + getZip() + "\n";
tempString += "Cell Phone: " + getCellPhone();
return tempString;
}
#pragma once
#include "MedicalProfessional.h"
#include<string>
using namespace std;
class Nurse :
public MedicalProfessional
{
private:
string type;
bool certificationCPR;
public:
Nurse();
Nurse(string, bool, string, string, string, string, string, string, string);
~Nurse();
string getType();
void setType(string);
bool getCertificationCPR();
void setCertificationCPR(bool);
string DisplayInformation();
};
string Nurse::DisplayInformation()
{
string tempString = "";
tempString = MedicalProfessional::DisplayInformation() + "\n";
tempString += "CPR Certified: ";
if (getCertificationCPR())
{
tempString += "Yes\n";
}
else
{
tempString += "No\n";
}
tempString += "Type: " + getType() + "\n";
return tempString;
}
#pragma once
#include "MedicalProfessional.h"
class PA :
public MedicalProfessional
{
private:
string licenseNumber;
string specialty;
public:
PA();
PA(string, string, string, string, string, string, string, string, string);
~PA();
string getLicenseNumber();
void setLicenseNumber(string);
string getSpecialty();
void setSpecialty(string);
string DisplayInformation();
};
string PA::DisplayInformation()
{
string tempString = "";
tempString = MedicalProfessional::DisplayInformation() + "\n";
tempString += "License Number: " + getLicenseNumber() + "\n";
tempString += "Speciality: " + getSpecialty() + "\n";
return tempString;
}
#pragma once
#include "MedicalProfessional.h"
#include "Nurse.h"
class DoctorGP :
public MedicalProfessional
{
private:
string officePhone;
int patientCount;
bool boardCertified;
Nurse myNurse;
public:
DoctorGP();
DoctorGP(string, int, bool, Nurse, string, string, string, string, string, string, string);
~DoctorGP();
string getOfficePhone();
void setOfficePhone(string);
int getPatientCount();
void setPatientCount(int);
bool getBoardCertified();
void setBoardCertified(bool);
Nurse getNurse();
string DisplayInformation();
};
string DoctorGP::DisplayInformation()
{
string tempString = "Doctor **************\n";
tempString += MedicalProfessional::DisplayInformation() + "\n";
tempString += "Board Certified: ";
if (getBoardCertified())
{
tempString += "Yes\n";
}
else
{
tempString += "No\n";
}
tempString += "Office Phone: " + getOfficePhone() + "\n";
tempString += "Patient Count: " + to_string(getPatientCount()) + "\n";
tempString += "Nurse ***************\n";
tempString += myNurse.DisplayInformation();
tempString += "*********************\n";
return tempString;
}
#pragma once
#include "MedicalProfessional.h"
#include"PA.h"
class Surgeon :
public MedicalProfessional
{
private:
string officePhone;
string hospital;
PA myPA;
public:
Surgeon();
Surgeon(string, string, PA, string, string, string, string, string, string, string);
~Surgeon();
string getOfficeNumber();
void setOfficeNumber(string);
string getHospital();
void setHospital(string);
void setPA(PA);
string DisplayInformation();
};
|