public abstract class CSU_C09_Common extends Message
Represents a CSU_C09 message structure (see chapter 7.7.2). This structure contains the
0: MSH (Message Header Segment) SINGLE_COMPULSARY
1: SFT (Software Segment) MULTIPLE_OPTIONAL
2: UAC (User Authentication Credential) SINGLE OPTIONAL
3: PATIENT (a Group of segments in CRM_C01 message) MULTIPLE_COMPULSARY
This class provides mechanism to validate message against HL7 v 2.8.2 standard.
The class provides accessors & mutators for the elements mentioned above.
These elements can be easily populated & populated values can be easily retrieved.
The class has validate method which validates Message against HL7 v 2.8.2 standard.
| Modifier and Type | Method and Description |
|---|---|
void |
addPatientGroup(IGroup objGroup)
Adds PATIENT GROUP to this message.
|
void |
addPatientGroups(ISingleCollection<IGroup> objSingleCollection)
Adds Collection of PATIENT GROUP to this message.
|
void |
addSoftwareSegment(ISingleCollection<SFT> objSFTSegmentCollection)
Adds collection of Software Segment(SFT) to this message.
|
void |
addSoftwareSegment(SFT objSFT)
Adds Software Segment(SFT) to this message.
|
ISingleCollection<IGroup> |
getPatientGroups()
Retrieves Collection of PATIENT GROUP present in this message.
|
ISingleCollection<SFT> |
getSoftwareSegments()
Retrieves Collection of Software Segments(SFT) present in this message.
|
UAC |
getUserAuthenticationCredentialSegment()
Retrieves User Authentication Credential(UAC) segment present in this message
|
int |
populate(ISegmentSet objSegmentSet)
Populates Message using provided SegmentSet according to Message Structure specified by HL7 standard.
|
void |
setUserAuthenticationCredentialSegment(UAC objUAC)
Sets value of User Authentication Credential segment for this message,overwrites if already present.
|
contains, dumpMessage, dumpMessage, getACKMode, getGroup, getGroupMap, getHeader, getMessageCode, getMessageControlID, getMessageStructure, getQueryUserParameters, getSegment, getSegmentSet, getSubscriptionType, getTriggerEvent, isQuery, isResponse, removeGroup, removeSegment, removeSegment, removeSegmentAttribute, removeSegmentAttribute, removeSegmentAttribute, removeSegments, setHeader, setSubscriptionType, updateSegmentAttribute, updateSegmentAttribute, validate, writeToXML, writeToXMLpublic ISingleCollection<SFT> getSoftwareSegments()
public void addSoftwareSegment(SFT objSFT)
objSFT - Specified Software Segment(SFT) to be added in this messageto this message.public void addSoftwareSegment(ISingleCollection<SFT> objSFTSegmentCollection)
objSFTSegmentCollection - Collection of Software Segments to add in this messagepublic UAC getUserAuthenticationCredentialSegment()
public void setUserAuthenticationCredentialSegment(UAC objUAC)
objUAC - Specified UAC Segmentpublic ISingleCollection<IGroup> getPatientGroups()
public void addPatientGroups(ISingleCollection<IGroup> objSingleCollection)
objSingleCollection - Specified PATIENT GROUP Collection.public void addPatientGroup(IGroup objGroup)
objGroup - Specified PATIENT GROUP.public int populate(ISegmentSet objSegmentSet) throws InvalidMessageException
populate in class MessageobjSegmentSet - instance of SegmentSetInvalidMessageException - If message validation fails.