org.openhealthexchange.openpixpdq.data
Class Patient

java.lang.Object
  extended by org.openhealthexchange.openpixpdq.data.Patient

public class Patient
extends java.lang.Object

This class represents a patient throughout the PIX/PDQ sever. It is used for passing patient information between PIX/PDQ clients actors (such as PIX Source, PIX Consumer and PDQ Consumer) and underneath eMPI system.

Version:
1.0 Nov 11, 2008
Author:
Wenzhi Li

Constructor Summary
Patient()
          Default Constructor
 
Method Summary
 void addAddress(com.misyshealthcare.connect.base.demographicdata.Address address)
          Adds an Address to this patient.
 void addPatientId(PatientIdentifier id)
          Adds a PatientIdentifier to this patient.
 void addPhoneNumber(com.misyshealthcare.connect.base.demographicdata.PhoneNumber phoneNumber)
          Adds a PhoneNumber to this patient.
 void addVisit(com.misyshealthcare.connect.base.clinicaldata.Visit visit)
          Adds a Visit to this patient.
 void clearAddresses()
          Clears the Address list.
 void clearPatientId()
          Removes all the PatientIdentifier from this patient.
 void clearPhoneNumbers()
          Clears the PhoneNumber list.
 void clearVisits()
          Clears the Visit list.
 boolean equals(java.lang.Object obj)
           
 java.util.List<com.misyshealthcare.connect.base.demographicdata.Address> getAddresses()
          Gets a Address list.
 com.misyshealthcare.connect.base.SharedEnums.SexType getAdministrativeSex()
          Gets administrativeSex.
 java.util.Calendar getBirthDateTime()
          Gets birthDateTime.
 int getBirthOrder()
          Gets birthOrder.
 java.lang.String getBirthPlace()
          Gets birthPlace.
 java.lang.String getCitizenship()
          Gets citizenship.
 java.util.Calendar getDeathDate()
          Gets deathDate.
 DriversLicense getDriversLicense()
          Gets driversLicense.
 java.lang.String getEthnicGroup()
          Gets ethnicGroup.
 java.lang.String getMaritalStatus()
          Gets maritalStatus.
 PersonIdentifier getMonthersId()
          Gets monthersId.
 PersonName getMonthersMaidenName()
          Gets monthersMaidenName.
 PatientIdentifier getPatientAccountNumber()
          Gets patientAccountNumber.
 PersonName getPatientAlias()
          Gets patientAlias.
 java.util.List<PatientIdentifier> getPatientIds()
          Gets a list of PatientIdentifier.
 PersonName getPatientName()
          Gets patientName.
 com.misyshealthcare.connect.base.demographicdata.PhoneNumber getPhoneNumber(com.misyshealthcare.connect.base.SharedEnums.PhoneType type)
          Get a particular phone number from the list for this patient.
 java.util.List<com.misyshealthcare.connect.base.demographicdata.PhoneNumber> getPhoneNumbers()
          Gets a list of PhoneNumbers of this patient.
 java.lang.String getPrimaryLanguage()
          Gets primaryLanguage.
 java.lang.String getRace()
          Gets race.
 java.lang.String getReligion()
          Gets religion.
 java.lang.String getSsn()
          Gets ssn.
 java.util.List<com.misyshealthcare.connect.base.clinicaldata.Visit> getVisits()
          Gets a Visit list.
 int hashCode()
           
 boolean isDeathIndicator()
          Gets deathIndicator.
 boolean removeAddress(com.misyshealthcare.connect.base.demographicdata.Address address)
          Removes an Address.
 void removePatientId(PatientIdentifier id)
          Removes a PatientIdentifier from this patient.
 boolean removePhoneNumber(com.misyshealthcare.connect.base.demographicdata.PhoneNumber phoneNumber)
          Removes a PhoneNumber.
 boolean removeVisit(com.misyshealthcare.connect.base.clinicaldata.Visit visit)
          Removes a Visit.
 void setAddresses(java.util.List<com.misyshealthcare.connect.base.demographicdata.Address> addresses)
           
 void setAdministrativeSex(com.misyshealthcare.connect.base.SharedEnums.SexType administrativeSex)
          Sets administrativeSex.
 void setBirthDateTime(java.util.Calendar birthDateTime)
          Sets birthDateTime.
 void setBirthOrder(int birthOrder)
          Sets birthOrder.
 void setBirthPlace(java.lang.String birthPlace)
          Sets birthPlace.
 void setCitizenship(java.lang.String citizenship)
          Sets citizenship.
 void setDeathDate(java.util.Calendar deathDate)
          Sets deathDate.
 void setDeathIndicator(boolean deathIndicator)
          Sets deathIndicator.
 void setDriversLicense(DriversLicense driversLicense)
          Sets driversLicense.
 void setEthnicGroup(java.lang.String ethnicGroup)
          Sets ethnicGroup.
 void setMaritalStatus(java.lang.String maritalStatus)
          Sets maritalStatus.
 void setMonthersId(PersonIdentifier monthersId)
          Sets monthersId.
 void setMonthersMaidenName(PersonName monthersMaidenName)
          Sets monthersMaidenName.
 void setPatientAccountNumber(PatientIdentifier patientAccountNumber)
          Sets patientAccountNumber.
 void setPatientAlias(PersonName patientAlias)
          Sets patientAlias.
 void setPatientIds(java.util.List<PatientIdentifier> patientIds)
           
 void setPatientName(PersonName name)
          Sets patientName.
 void setPhoneNumbers(java.util.List<com.misyshealthcare.connect.base.demographicdata.PhoneNumber> phoneNumbers)
           
 void setPrimaryLanguage(java.lang.String primaryLanguage)
          Sets primaryLanguage.
 void setRace(java.lang.String race)
          Sets race.
 void setReligion(java.lang.String religion)
          Sets religion.
 void setSsn(java.lang.String ssn)
          Sets ssn.
 void setVisits(java.util.List<com.misyshealthcare.connect.base.clinicaldata.Visit> visits)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Patient

public Patient()
Default Constructor

Method Detail

getPatientIds

public java.util.List<PatientIdentifier> getPatientIds()
Gets a list of PatientIdentifier.

Returns:
the PatientIdentifier list

addPatientId

public void addPatientId(PatientIdentifier id)
Adds a PatientIdentifier to this patient.

Parameters:
id - the PatientIdentifier to add

removePatientId

public void removePatientId(PatientIdentifier id)
Removes a PatientIdentifier from this patient.

Parameters:
id - the PatientIdentifier to be removed

clearPatientId

public void clearPatientId()
Removes all the PatientIdentifier from this patient.


getPatientName

public PersonName getPatientName()
Gets patientName.

Returns:
the patientName

setPatientName

public void setPatientName(PersonName name)
Sets patientName.

Parameters:
patientName - the patientName to set

getMonthersMaidenName

public PersonName getMonthersMaidenName()
Gets monthersMaidenName.

Returns:
the monthersMaidenName

setMonthersMaidenName

public void setMonthersMaidenName(PersonName monthersMaidenName)
Sets monthersMaidenName.

Parameters:
monthersMaidenName - the monthersMaidenName to set

getBirthDateTime

public java.util.Calendar getBirthDateTime()
Gets birthDateTime.

Returns:
the birthDateTime

setBirthDateTime

public void setBirthDateTime(java.util.Calendar birthDateTime)
Sets birthDateTime.

Parameters:
birthDateTime - the birthDateTime to set

getAdministrativeSex

public com.misyshealthcare.connect.base.SharedEnums.SexType getAdministrativeSex()
Gets administrativeSex.

Returns:
the administrativeSex

setAdministrativeSex

public void setAdministrativeSex(com.misyshealthcare.connect.base.SharedEnums.SexType administrativeSex)
Sets administrativeSex.

Parameters:
administrativeSex - the administrativeSex to set

getPatientAlias

public PersonName getPatientAlias()
Gets patientAlias.

Returns:
the patientAlias

setPatientAlias

public void setPatientAlias(PersonName patientAlias)
Sets patientAlias.

Parameters:
patientAlias - the patientAlias to set

getRace

public java.lang.String getRace()
Gets race.

Returns:
the race

setRace

public void setRace(java.lang.String race)
Sets race.

Parameters:
race - the race to set

getPrimaryLanguage

public java.lang.String getPrimaryLanguage()
Gets primaryLanguage.

Returns:
the primaryLanguage

setPrimaryLanguage

public void setPrimaryLanguage(java.lang.String primaryLanguage)
Sets primaryLanguage.

Parameters:
primaryLanguage - the primaryLanguage to set

getMaritalStatus

public java.lang.String getMaritalStatus()
Gets maritalStatus.

Returns:
the maritalStatus

setMaritalStatus

public void setMaritalStatus(java.lang.String maritalStatus)
Sets maritalStatus.

Parameters:
maritalStatus - the maritalStatus to set

getReligion

public java.lang.String getReligion()
Gets religion.

Returns:
the religion

setReligion

public void setReligion(java.lang.String religion)
Sets religion.

Parameters:
religion - the religion to set

getPatientAccountNumber

public PatientIdentifier getPatientAccountNumber()
Gets patientAccountNumber.

Returns:
the patientAccountNumber

setPatientAccountNumber

public void setPatientAccountNumber(PatientIdentifier patientAccountNumber)
Sets patientAccountNumber.

Parameters:
patientAccountNumber - the patientAccountNumber to set

getSsn

public java.lang.String getSsn()
Gets ssn.

Returns:
the ssn

setSsn

public void setSsn(java.lang.String ssn)
Sets ssn.

Parameters:
ssn - the ssn to set

getDriversLicense

public DriversLicense getDriversLicense()
Gets driversLicense.

Returns:
the driversLicense

setDriversLicense

public void setDriversLicense(DriversLicense driversLicense)
Sets driversLicense.

Parameters:
driversLicense - the driversLicense to set

getMonthersId

public PersonIdentifier getMonthersId()
Gets monthersId.

Returns:
the monthersId

setMonthersId

public void setMonthersId(PersonIdentifier monthersId)
Sets monthersId.

Parameters:
monthersId - the monthersId to set

getEthnicGroup

public java.lang.String getEthnicGroup()
Gets ethnicGroup.

Returns:
the ethnicGroup

setEthnicGroup

public void setEthnicGroup(java.lang.String ethnicGroup)
Sets ethnicGroup.

Parameters:
ethnicGroup - the ethnicGroup to set

getBirthPlace

public java.lang.String getBirthPlace()
Gets birthPlace.

Returns:
the birthPlace

setBirthPlace

public void setBirthPlace(java.lang.String birthPlace)
Sets birthPlace.

Parameters:
birthPlace - the birthPlace to set

getBirthOrder

public int getBirthOrder()
Gets birthOrder.

Returns:
the birthOrder

setBirthOrder

public void setBirthOrder(int birthOrder)
Sets birthOrder.

Parameters:
birthOrder - the birthOrder to set

getCitizenship

public java.lang.String getCitizenship()
Gets citizenship.

Returns:
the citizenship

setCitizenship

public void setCitizenship(java.lang.String citizenship)
Sets citizenship.

Parameters:
citizenship - the citizenship to set

getDeathDate

public java.util.Calendar getDeathDate()
Gets deathDate.

Returns:
the deathDate

setDeathDate

public void setDeathDate(java.util.Calendar deathDate)
Sets deathDate.

Parameters:
deathDate - the deathDate to set

isDeathIndicator

public boolean isDeathIndicator()
Gets deathIndicator.

Returns:
the deathIndicator

setDeathIndicator

public void setDeathIndicator(boolean deathIndicator)
Sets deathIndicator.

Parameters:
deathIndicator - the deathIndicator to set

getPhoneNumbers

public java.util.List<com.misyshealthcare.connect.base.demographicdata.PhoneNumber> getPhoneNumbers()
Gets a list of PhoneNumbers of this patient.

Returns:
a list of PhoneNumbers

addPhoneNumber

public void addPhoneNumber(com.misyshealthcare.connect.base.demographicdata.PhoneNumber phoneNumber)
Adds a PhoneNumber to this patient.

Parameters:
phoneNumber - the phoneNumber to add

removePhoneNumber

public boolean removePhoneNumber(com.misyshealthcare.connect.base.demographicdata.PhoneNumber phoneNumber)
Removes a PhoneNumber.

Parameters:
phoneNumber - the PhoneNumber to be removed
Returns:
boolean true if removed, false otherwise

clearPhoneNumbers

public void clearPhoneNumbers()
Clears the PhoneNumber list.


getPhoneNumber

public com.misyshealthcare.connect.base.demographicdata.PhoneNumber getPhoneNumber(com.misyshealthcare.connect.base.SharedEnums.PhoneType type)
Get a particular phone number from the list for this patient.

Parameters:
type - The type of phone number to get
Returns:
The phone number

getAddresses

public java.util.List<com.misyshealthcare.connect.base.demographicdata.Address> getAddresses()
Gets a Address list.

Returns:
the list of addresses

addAddress

public void addAddress(com.misyshealthcare.connect.base.demographicdata.Address address)
Adds an Address to this patient.

Parameters:
address - the address to add

removeAddress

public boolean removeAddress(com.misyshealthcare.connect.base.demographicdata.Address address)
Removes an Address.

Parameters:
address - the Address to be removed
Returns:
boolean true if removed, false otherwise

clearAddresses

public void clearAddresses()
Clears the Address list.


getVisits

public java.util.List<com.misyshealthcare.connect.base.clinicaldata.Visit> getVisits()
Gets a Visit list.

Returns:
the list of visits

addVisit

public void addVisit(com.misyshealthcare.connect.base.clinicaldata.Visit visit)
Adds a Visit to this patient.

Parameters:
visit - the Visit to add

removeVisit

public boolean removeVisit(com.misyshealthcare.connect.base.clinicaldata.Visit visit)
Removes a Visit.

Parameters:
visit - the Visit to be removed
Returns:
boolean true if removed, false otherwise

clearVisits

public void clearVisits()
Clears the Visit list.


hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

setPatientIds

public void setPatientIds(java.util.List<PatientIdentifier> patientIds)

setPhoneNumbers

public void setPhoneNumbers(java.util.List<com.misyshealthcare.connect.base.demographicdata.PhoneNumber> phoneNumbers)

setAddresses

public void setAddresses(java.util.List<com.misyshealthcare.connect.base.demographicdata.Address> addresses)

setVisits

public void setVisits(java.util.List<com.misyshealthcare.connect.base.clinicaldata.Visit> visits)