au.gov.nehta.vendorlibrary.mdm.segments
Class PID

java.lang.Object
  extended by au.gov.nehta.vendorlibrary.mdm.segments.PID

public final class PID
extends java.lang.Object

PID Encapsulates MDM patient identification type.


Nested Class Summary
static class PID.Builder
          PID.Builder Build class used to construct and validate a PID object.
 
Method Summary
 java.util.Date getDateTimeOfBirth()
          Retrieve patient date/time of birth.
 XAD getPatientAddress()
          Retrieve patient address.
 java.util.List<CX> getPatientIdentifiers()
          Retrieve patient identifiers.
 XPN getPatientName()
          Retrieve patient name.
 int getSetId()
          Retrieve set ID.
 Sex getSex()
          Retrieve patient sex.
static PID parse(java.lang.String parseValue)
          Parse PID segment from string.
 java.lang.String toString()
          Outputs a formatted PID segment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getSetId

public int getSetId()
Retrieve set ID.

Returns:
Set ID integer.

getPatientIdentifiers

public java.util.List<CX> getPatientIdentifiers()
Retrieve patient identifiers.

Returns:
List of patient identifiers.

getPatientName

public XPN getPatientName()
Retrieve patient name.

Returns:
Patient name string.

getDateTimeOfBirth

public java.util.Date getDateTimeOfBirth()
Retrieve patient date/time of birth.

Returns:
Date/time of birth.

getSex

public Sex getSex()
Retrieve patient sex.

Returns:
Sex.

getPatientAddress

public XAD getPatientAddress()
Retrieve patient address.

Returns:
Patient address string.

parse

public static PID parse(java.lang.String parseValue)
Parse PID segment from string.

Parameters:
parseValue - String to be parsed (not null).
Returns:
PID segment.

toString

public java.lang.String toString()
Outputs a formatted PID segment.

Overrides:
toString in class java.lang.Object
Returns:
Formatted string.