org.eclipse.ohf.bridge.type
Class PatientIdType

java.lang.Object
  extended by org.eclipse.ohf.bridge.type.PatientIdType
All Implemented Interfaces:
java.io.Serializable

public class PatientIdType
extends java.lang.Object
implements java.io.Serializable

This class encapsulates the fields necessary to fully describe the patient id so that documents can be sent and retrieved from the repository. This is the patient's complete numerical representation

See Also:
Serialized Form

Field Summary
static PatientIdType EMPTY_PID
           
 
Constructor Summary
PatientIdType()
           
PatientIdType(java.lang.String patientId)
          This constructor sets the patient id component
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 AssigningAuthorityType getAssigningAuthorityType()
           
 java.lang.String getIdNumber()
          This method returns the patient id component of the PIDType
 int hashCode()
           
 void setAssigningAuthorityType(AssigningAuthorityType pAssigningAuthorityType)
           
 void setIdNumber(java.lang.String patientId)
          This method sets the patient id component of the PIDType
 java.lang.String toHL7Id()
           
 java.lang.String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_PID

public static final PatientIdType EMPTY_PID
Constructor Detail

PatientIdType

public PatientIdType()

PatientIdType

public PatientIdType(java.lang.String patientId)
This constructor sets the patient id component

Parameters:
idNumber - The patient id
Method Detail

getIdNumber

public java.lang.String getIdNumber()
This method returns the patient id component of the PIDType

Returns:
Get the patient id component

setIdNumber

public void setIdNumber(java.lang.String patientId)
This method sets the patient id component of the PIDType

Parameters:
idNumber - The patient id value

toHL7Id

public java.lang.String toHL7Id()

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

toString

public java.lang.String toString()
Constructs a String with all attributes in name = value format.

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this object.

getAssigningAuthorityType

public AssigningAuthorityType getAssigningAuthorityType()

setAssigningAuthorityType

public void setAssigningAuthorityType(AssigningAuthorityType pAssigningAuthorityType)