org.openhealthexchange.openpixpdq.ihe.audit
Class ParticipantObject

java.lang.Object
  extended by org.openhealthexchange.openpixpdq.ihe.audit.ParticipantObject

public class ParticipantObject
extends java.lang.Object

ParticipantObject get the participant info to the Audit Trail.

Version:
1.0 - Dec 30, 2008
Author:
Wenzhi Li

Field Summary
(package private)  com.misyshealthcare.connect.base.audit.AuditCodeMappings.ParticipantObjectIdTypeCode idTypeCode
           
(package private)  com.misyshealthcare.connect.base.audit.AuditCodeMappings.ParticipantObjectRoleCode role
           
(package private)  com.misyshealthcare.connect.base.audit.AuditCodeMappings.ParticipantObjectTypeCode typeCode
           
 
Constructor Summary
ParticipantObject()
           
ParticipantObject(Patient patient)
          Constructor for building patient participant objects.
ParticipantObject(java.lang.String Name, PatientIdentifier pId)
           
ParticipantObject(java.lang.String name, java.lang.String id)
           
 
Method Summary
 void addId(PatientIdentifier pid)
          Adds an patient id to this PO.
 java.lang.String getDataLifeCycle()
           
 java.lang.String getDetail()
           
 java.lang.String getId(java.lang.String encoding)
          Looks for a standard string id, then looks us the id through the patient description.
 java.lang.String getName(java.lang.String encoding)
           
 java.lang.String getQuery()
           
 java.lang.String getSensitivity()
           
 void setDataLifeCycle(java.lang.String dataLifeCycle)
           
 void setDetail(java.lang.String detail)
           
 void setId(java.util.List<PatientIdentifier> pids)
          Sets the ids for this PO.
 void setId(java.lang.String inId)
          Sets the id for this PO to be a standard string.
 void setQuery(java.lang.String query)
           
 void setSensitivity(java.lang.String sensitivity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

idTypeCode

com.misyshealthcare.connect.base.audit.AuditCodeMappings.ParticipantObjectIdTypeCode idTypeCode

typeCode

com.misyshealthcare.connect.base.audit.AuditCodeMappings.ParticipantObjectTypeCode typeCode

role

com.misyshealthcare.connect.base.audit.AuditCodeMappings.ParticipantObjectRoleCode role
Constructor Detail

ParticipantObject

public ParticipantObject()

ParticipantObject

public ParticipantObject(Patient patient)
Constructor for building patient participant objects.

Parameters:
patient - The descriptor of the patient.

ParticipantObject

public ParticipantObject(java.lang.String name,
                         java.lang.String id)

ParticipantObject

public ParticipantObject(java.lang.String Name,
                         PatientIdentifier pId)
Method Detail

addId

public void addId(PatientIdentifier pid)
Adds an patient id to this PO.

Parameters:
pid - the id to be added

setId

public void setId(java.util.List<PatientIdentifier> pids)
Sets the ids for this PO.

Parameters:
pids - The list of patient ID

setId

public void setId(java.lang.String inId)
Sets the id for this PO to be a standard string.

Parameters:
inId -

getId

public java.lang.String getId(java.lang.String encoding)
Looks for a standard string id, then looks us the id through the patient description. Note the the asigning authority is ignored if the standard string id is set for this PO. Otherwise it uses the given class to do a lookup. If null it uses the Local authority. Local authority is only needed when encoding as HL7 and using no assigning authority.

Parameters:
assigningAuthority - Authority to use to look up the id.
localAuthority - Authority to use for local id HL7 encoding.
encoding - The encoding to get the ID in, HL7 or null for no encoding.
Returns:
The retrieved ID, or "No ID Available"

getName

public java.lang.String getName(java.lang.String encoding)

getDataLifeCycle

public java.lang.String getDataLifeCycle()

setDataLifeCycle

public void setDataLifeCycle(java.lang.String dataLifeCycle)

getSensitivity

public java.lang.String getSensitivity()

setSensitivity

public void setSensitivity(java.lang.String sensitivity)

getQuery

public java.lang.String getQuery()

setQuery

public void setQuery(java.lang.String query)

getDetail

public java.lang.String getDetail()

setDetail

public void setDetail(java.lang.String detail)