public class Patient extends User
Constructor and Description |
---|
Patient()
Creates an "empty" patient.
|
Patient(java.lang.String fname,
java.lang.String lname,
java.sql.Date dob,
java.lang.String phone,
java.lang.String address,
java.lang.String city,
java.lang.String state,
java.lang.String zipcode,
java.lang.String medicalNumber)
Creates a Patient object with all identifiable information.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress() |
java.lang.String |
getCity() |
java.lang.String |
getMedicalNumber() |
java.lang.String |
getPhone() |
java.lang.String |
getState() |
java.lang.String |
getZipCode() |
void |
setAddress(java.lang.String address) |
void |
setCity(java.lang.String city) |
void |
setMedicalNumber(java.lang.String medical_number) |
void |
setPhone(java.lang.String phone) |
void |
setState(java.lang.String state) |
void |
setZipCode(java.lang.String zipcode) |
java.lang.String |
toSQLInsertString()
Creates the values for INSERT statement in SQL.
|
getDOB, getFirstName, getLastName, getLicense, getPassword, getUsername, setDOB, setFirstName, setLastName, setLicense, setPassword, setUsername
public Patient()
public Patient(java.lang.String fname, java.lang.String lname, java.sql.Date dob, java.lang.String phone, java.lang.String address, java.lang.String city, java.lang.String state, java.lang.String zipcode, java.lang.String medicalNumber)
phone
- Phone number of the patient.address
- Address, including number and street name.city
- City.state
- State.zipcode
- Zip code.medicalNumber
- Medical number.public void setPhone(java.lang.String phone)
public void setAddress(java.lang.String address)
public void setCity(java.lang.String city)
public void setState(java.lang.String state)
public void setZipCode(java.lang.String zipcode)
public void setMedicalNumber(java.lang.String medical_number)
public java.lang.String getPhone()
public java.lang.String getAddress()
public java.lang.String getCity()
public java.lang.String getState()
public java.lang.String getZipCode()
public java.lang.String getMedicalNumber()
public java.lang.String toSQLInsertString()