public class Patient extends Object implements Comparable<Patient>
| Modifier and Type | Class and Description |
|---|---|
static class |
Patient.Builder
Builder for Patient
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(Event e)
Adds an event to the patient's list of events.
|
int |
compareTo(Patient other) |
String |
getAgeInYears()
Gets the patient's age in years.
|
String |
getBirthDate()
Gets the patient's birth date as a String.
|
List<Event> |
getEvents()
Gets the list of events for this patient.
|
String |
getLanguage()
Gets the patient's language.
|
String |
getMaritalStatus()
Gets the patient's marital status
|
String |
getPatientId()
Gets the patient's ID.
|
String |
getRace()
Get's the patient's race.
|
String |
getReligion()
Gets the patient's religion
|
String |
getSex()
Gets the patient's sex.
|
String |
getStateCityZip()
Gets the patient's state, city, and zip code
|
String |
getVitalStatus()
Gets the patient's vital status.
|
String |
getZipCode()
Gets the patient's zip code
|
void |
sortEvents()
Sorts the patient's event according to
Event's natural ordering. |
public int compareTo(Patient other)
compareTo in interface Comparable<Patient>public String getPatientId()
public String getVitalStatus()
public String getBirthDate()
public String getSex()
public String getAgeInYears()
public String getLanguage()
public String getRace()
public String getReligion()
public String getMaritalStatus()
public String getZipCode()
public String getStateCityZip()
public List<Event> getEvents()
Events associated with this patientpublic void addEvent(Event e)
e - the event to addpublic void sortEvents()
Event's natural ordering.Copyright © 2016 Emory University. All rights reserved.