org.openhealthexchange.openpixpdq.ihe.impl_v2.hl7
Class HL7v231ToBaseConvertor

java.lang.Object
  extended by org.openhealthexchange.openpixpdq.ihe.impl_v2.hl7.HL7v231ToBaseConvertor

public class HL7v231ToBaseConvertor
extends java.lang.Object

This class parses the PIX Feed message

Author:
Rasakannu Palaniyandi

Field Summary
(package private)  com.misyshealthcare.connect.net.IConnectionDescription connection
           
 
Constructor Summary
HL7v231ToBaseConvertor(ca.uhn.hl7v2.model.Message in, com.misyshealthcare.connect.net.IConnectionDescription connection)
           
 
Method Summary
 java.util.List<com.misyshealthcare.connect.base.demographicdata.Address> getAddressList()
          Gets the Address list from the PID segment for a particular patient
 java.util.Calendar getBirthDate()
          Gets the birth date
 int getBirthOrder()
          Gets the birth order from the PID segment for a particular patient
 java.lang.String getBirthPlace()
          Gets the birth place from the PID segment for a particular patient
 java.lang.String getCitizenShip()
          Gets the citizen ship from the PID segment for a particular patient
 java.util.Calendar getDeathDate()
          Gets the death date from the PID segment for a particular patient
 java.lang.Boolean getDeathIndicator()
          Gets the death indicator from the PID segment for a particular patient
 DriversLicense getDriversLicense()
          Gets the DriversLincense from the PID segment
 java.lang.String getEthnicGroup()
          Gets the ethnic group from the PID segment for a particular patient
 java.lang.String getHomeSystem()
           
 java.lang.String getMartialStatus()
          Gets the martial status from the PID segment for a particular patient
 PatientIdentifier getMonthersId()
          Gets the monther's id from the PID segment
 PersonName getMotherMaidenName()
          Get the mother's PersonName from the PID segment
 PatientIdentifier getMrgpatientAccountNumber()
          Gets the merge patient account number from the MRG segment
 java.util.List<PatientIdentifier> getMrgPatientIds()
          Gets a list of patient identifiers from the MRG segment
 PersonName getMrgPatientName()
          Gets the PersonName from the MRG segment
 java.util.List<com.misyshealthcare.connect.base.clinicaldata.Visit> getMrgVisitList()
          Gets the Visit list from the pv1 segment for a particular patient
 PatientIdentifier getpatientAccountNumber()
          Gets the patient account number from the PID segment.
 PersonName getPatientAliasName()
          Gets the Patient Alias Name from the PID segment
 java.util.List<PatientIdentifier> getPatientIds()
          Gets a list of patient identifiers from the PID segment.
 PersonName getPatientName()
          Gets the PersonName from the PID segment
 java.util.List<com.misyshealthcare.connect.base.demographicdata.PhoneNumber> getPhoneList()
          Gets the PhoneList from the PID segment for a particular patient
 java.lang.String getPrimaryLanguage()
          Gets the primary language from the PID segment for a particular patient
 java.lang.String getRace()
          Gets the race from the PID segment for a particular patient
 java.lang.String getReligion()
          Gets the Religion from the PID segment for a particular patient
 com.misyshealthcare.connect.base.SharedEnums.SexType getSexType()
          Gets the Sex Type.
 java.lang.String getSsn()
          Gets the ssn from the PID segment for a particular patient
 java.util.List<com.misyshealthcare.connect.base.clinicaldata.Visit> getVisitList()
          Gets the list of vists from the PID segment for a particular patient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

com.misyshealthcare.connect.net.IConnectionDescription connection
Constructor Detail

HL7v231ToBaseConvertor

public HL7v231ToBaseConvertor(ca.uhn.hl7v2.model.Message in,
                              com.misyshealthcare.connect.net.IConnectionDescription connection)
Method Detail

getPatientIds

public java.util.List<PatientIdentifier> getPatientIds()
Gets a list of patient identifiers from the PID segment.

Returns:
a list of PatientIdentifier

getMrgPatientIds

public java.util.List<PatientIdentifier> getMrgPatientIds()
Gets a list of patient identifiers from the MRG segment

Returns:
a list of PatientIdentifier of the merge patient

getpatientAccountNumber

public PatientIdentifier getpatientAccountNumber()
Gets the patient account number from the PID segment.

Returns:
the patient account number

getMrgpatientAccountNumber

public PatientIdentifier getMrgpatientAccountNumber()
Gets the merge patient account number from the MRG segment

Returns:
the patient account number of the merge patient

getMonthersId

public PatientIdentifier getMonthersId()
Gets the monther's id from the PID segment

Returns:
the monther's id

getPatientName

public PersonName getPatientName()
                          throws ca.uhn.hl7v2.HL7Exception
Gets the PersonName from the PID segment

Returns:
the PersonName of the patient
Throws:
ca.uhn.hl7v2.HL7Exception

getMrgPatientName

public PersonName getMrgPatientName()
                             throws ca.uhn.hl7v2.HL7Exception
Gets the PersonName from the MRG segment

Returns:
the PersonName of the merge patient
Throws:
ca.uhn.hl7v2.HL7Exception

getMotherMaidenName

public PersonName getMotherMaidenName()
                               throws ca.uhn.hl7v2.HL7Exception
Get the mother's PersonName from the PID segment

Returns:
the PersonName of the monther's maiden name
Throws:
ca.uhn.hl7v2.HL7Exception

getPatientAliasName

public PersonName getPatientAliasName()
                               throws ca.uhn.hl7v2.HL7Exception
Gets the Patient Alias Name from the PID segment

Returns:
the patient alias name
Throws:
ca.uhn.hl7v2.HL7Exception

getDriversLicense

public DriversLicense getDriversLicense()
Gets the DriversLincense from the PID segment

Returns:
the DriversLicense

getRace

public java.lang.String getRace()
                         throws ca.uhn.hl7v2.HL7Exception
Gets the race from the PID segment for a particular patient

Returns:
the race of the patient
Throws:
ca.uhn.hl7v2.HL7Exception

getPrimaryLanguage

public java.lang.String getPrimaryLanguage()
Gets the primary language from the PID segment for a particular patient

Returns:
the primary language

getMartialStatus

public java.lang.String getMartialStatus()
Gets the martial status from the PID segment for a particular patient

Returns:
the martial status

getReligion

public java.lang.String getReligion()
Gets the Religion from the PID segment for a particular patient

Returns:
the religion

getEthnicGroup

public java.lang.String getEthnicGroup()
                                throws ca.uhn.hl7v2.HL7Exception
Gets the ethnic group from the PID segment for a particular patient

Returns:
the ethnic group
Throws:
ca.uhn.hl7v2.HL7Exception

getBirthPlace

public java.lang.String getBirthPlace()
Gets the birth place from the PID segment for a particular patient

Returns:
the birth place

getBirthOrder

public int getBirthOrder()
Gets the birth order from the PID segment for a particular patient

Returns:
the birth order

getCitizenShip

public java.lang.String getCitizenShip()
                                throws ca.uhn.hl7v2.HL7Exception
Gets the citizen ship from the PID segment for a particular patient

Returns:
the citizenship
Throws:
ca.uhn.hl7v2.HL7Exception

getDeathDate

public java.util.Calendar getDeathDate()
Gets the death date from the PID segment for a particular patient

Returns:
the death date

getDeathIndicator

public java.lang.Boolean getDeathIndicator()
Gets the death indicator from the PID segment for a particular patient

Returns:
true if dead

getAddressList

public java.util.List<com.misyshealthcare.connect.base.demographicdata.Address> getAddressList()
Gets the Address list from the PID segment for a particular patient

Returns:
the list Address

getSexType

public com.misyshealthcare.connect.base.SharedEnums.SexType getSexType()
Gets the Sex Type.

Returns:
the SharedEnums.SexType of the patient

getBirthDate

public java.util.Calendar getBirthDate()
Gets the birth date

Returns:
the birth date

getVisitList

public java.util.List<com.misyshealthcare.connect.base.clinicaldata.Visit> getVisitList()
Gets the list of vists from the PID segment for a particular patient

Returns:
a list of Visit

getMrgVisitList

public java.util.List<com.misyshealthcare.connect.base.clinicaldata.Visit> getMrgVisitList()
Gets the Visit list from the pv1 segment for a particular patient

Returns:
a list of Visit

getSsn

public java.lang.String getSsn()
Gets the ssn from the PID segment for a particular patient

Returns:
String

getPhoneList

public java.util.List<com.misyshealthcare.connect.base.demographicdata.PhoneNumber> getPhoneList()
Gets the PhoneList from the PID segment for a particular patient

Returns:
List

getHomeSystem

public java.lang.String getHomeSystem()