public class MSH extends Segment
The MSH segment defines the intent, source, destination, and some specifics of the syntax of a message.
Represents an HL7 MSH message segment. This segment has the following fields:
MSH-1: Field Separator (ST)Required
MSH-2: Encoding Characters (ST)Required
MSH-3: Sending Application (HD)Optional
MSH-4: Sending Facility (HD)Optional
MSH-5: Receiving Application (HD)Optional
MSH-6: Receiving Facility (HD)Optional
MSH-7: Date/Time Of Message (DTM)Required
MSH-8: Security (ST)Optional
MSH-9: Message Type (MSG)Required
MSH-10: Message Control ID (ST)Required
MSH-11: Processing ID (PT)Required
MSH-12: Version ID (VID)Required
MSH-13: Sequence Number (NM)Optional
MSH-14: Continuation Pointer (ST)Optional
MSH-15: Accept Acknowledgment Type (ID)Optional
MSH-16: Application Acknowledgment Type (ID)Optional
MSH-17: Country Code (ID)Optional
MSH-18: Character Set (ID)Optional
MSH-19: Principal Language Of Message (CWE)Optional
MSH-20: Alternate Character Set Handling Scheme (ID)Optional
MSH-21: Message Profile Identifier (EI)Optional
MSH-22: Sending Responsible Organization (XON)Optional
MSH-23: Receiving Responsible Organization (XON)Optional
MSH-24: Sending Network Address (HD)Optional
MSH-25: Receiving Network Address (HD)Optional
User can also create Segment through SegmentFactory
| Constructor and Description |
|---|
MSH()
Constructs the MSH segment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterSet(ID objtempCharacterSet)
Set the object of Character Set
|
void |
addCharacterSet(java.lang.String strCharacterSet)
Set the Character Set.
|
void |
addMessageProfileIdentifier(EI objtempMessageProfileIdentifier)
Set the Message Profile Identifier.
|
void |
addMessageProfileIdentifier(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
Set the Message Profile Identifier.
|
ID |
getAcceptAcknowledgmentType()
Retrieves the Accept Acknowledgment Type.
|
ID |
getAlternateCharacterSetHandlingScheme()
Retrieves the Alternate Character Set Handling Scheme.
|
ID |
getApplicationAcknowledgmentType()
Retrieves the Application Acknowledgment Type.
|
ISingleCollection<ID> |
getCharacterSet()
Retrieves the Character Set.
|
ST |
getContinuationPointer()
Retrieves the Continuation Pointer.
|
ID |
getCountryCode()
Retrieves the Country Code.
|
DTM |
getDateTimeOfMessage()
Retrieves the Date Time Of Message.
|
IDelimiter |
getDelimiter()
Retrieves the Delimiter.
|
ST |
getEncodingChar()
Retrieves the Encoding Char.
|
ST |
getFieldSeparator()
Retrieves the Field Separator.
|
ST |
getMessageControlID()
Retrieves the Message Control ID.
|
ISingleCollection<EI> |
getMessageProfileIdentifier()
Retrieves the Message Profile Identifier.
|
MSG |
getMessageType()
Retrieves the Message Type.
|
CWE |
getPrincipalLanguageOfMessage()
Retrieves the Principal Language Of Message.
|
PT |
getProcessingID()
Retrieves the Processing ID.
|
HD |
getReceivingApplication()
Retrieves the Receiving Application.
|
HD |
getReceivingFacility()
Retrieves the Receiving Facility.
|
HD |
getReceivingNetworkAddress()
Retrieves the Receiving Network Address.
|
XON |
getReceivingResponsibleOrganization()
Retrieves the Receiving Responsible Organization.
|
ST |
getSecurity()
Retrieves the Security.
|
HD |
getSendingApplication()
Retrieves the Sending Application.
|
HD |
getSendingFacility()
Retrieves the Sending Facility.
|
HD |
getSendingNetworkAddress()
Retrieves the Sending Network Address.
|
XON |
getSendingResponsibleOrganization()
Retrieves the Sending Responsible Organization.
|
NM |
getSequenceNumber()
Retrieves the Sequence Number.
|
VID |
getVersionID()
Retrieves the Version ID.
|
int |
parse(java.lang.String strSegmentStream,
IDelimiter objIDelimiter)
Parses HL7 Segment Strings from any Stream into HL7 Segment object.
|
int |
serialize(IHL7Stream objIHL7Stream,
IDelimiter objIDelimiter)
Serializes HL7 Message objects.
|
void |
setAcceptAcknowledgmentType(ID objacceptAcknowledgmentType)
Set the Accept Acknowledgment Type.
|
void |
setAcceptAcknowledgmentType(java.lang.String strAcceptAcknowledgmentType)
Set the Accept Acknowledgment Type.
|
void |
setAlternateCharacterSetHandlingScheme(ID objalternateCharacterSetHandlingScheme)
Set the Alternate Character Set Handling Scheme.
|
void |
setAlternateCharacterSetHandlingScheme(java.lang.String strAlternateCharacterSetHandlingScheme)
Set the Alternate Character Set Handling Scheme.
|
void |
setApplicationAcknowledgmentType(ID objapplicationAcknowledgmentType)
Set the Application Acknowledgment Type.
|
void |
setApplicationAcknowledgmentType(java.lang.String strApplicationAcknowledgmentType)
Set the Application Acknowledgment Type.
|
void |
setCharacterSet(ISingleCollection<ID> objCharacterSetList)
Set the CharacterSet list.
|
void |
setContinuationPointer(ST objcontinuationPointer)
Set the Continuation Pointer.
|
void |
setContinuationPointer(java.lang.String strContinuationPointer)
Set the Continuation Pointer.
|
void |
setCountryCode(ID objcountryCode)
Set the Country Code.
|
void |
setCountryCode(java.lang.String strCountryCode)
Set the Country Code.
|
void |
setDateTimeOfMessage(DTM objdateTimeOfMessage)
Set the Date Time Of Message.
|
void |
setDateTimeOfMessage(java.lang.String strTime)
Set the Date Time Of Message.
|
void |
setEncodingChars(char cComponentSeparator,
char cSubComponentSeparator,
char cRepetitionSeparator,
char cEscapeCharacter,
char cTruncationCharacter)
Set the Encoding Char.
|
void |
setEncodingChars(ST objencodingChar)
Set the Encoding Char.
|
void |
setFieldSeparator(char cfieldSeparator)
Set the Field Separator.
|
void |
setFieldSeparator(ST objfieldSeparator)
Set the Field Separator.
|
void |
setMessageControlID(ST objmessageControlID)
Set the Message Control ID.
|
void |
setMessageControlID(java.lang.String strMessageControlID)
Set the Message Control ID.
|
void |
setMessageProfileIdentifier(ISingleCollection<EI> objMessageProfileIdentifierList)
Set the MessageProfileIdentifier list.
|
void |
setMessageType(MSG objmessageType)
Set the Message Type.
|
void |
setMessageType(java.lang.String strMessageCode,
java.lang.String strTriggerEvent,
java.lang.String strMessageStructure)
Set the Message Type.
|
void |
setPrincipalLanguageOfMessage(CWE objprincipalLanguageOfMessage)
Set the Principal Language Of Message.
|
void |
setPrincipalLanguageOfMessage(java.lang.String strIdentifier,
java.lang.String strText,
java.lang.String strNameOfCodingSystem,
java.lang.String strAlternateIdentifier,
java.lang.String strAlternateText,
java.lang.String strNameOfAlternateCodingSystem,
java.lang.String strCodingSystemVersionID,
java.lang.String strAlternateCodingSystemVersionId,
java.lang.String strOriginalText,
java.lang.String strSecondAlternateIdentifier,
java.lang.String strSecondAlternateText,
java.lang.String strNameofSecondAlternateCodingSystem,
java.lang.String strSecondAlternateCodingSystemVersionID,
java.lang.String strCodingSystemOID,
java.lang.String strValueSetOID,
java.lang.String strValueSetVersionID,
java.lang.String strAlternateCodingSystemOID,
java.lang.String strAlternateValueSetOID,
java.lang.String strAlternateValueSetVersionID,
java.lang.String strSecondAlternateCodingSystemOID,
java.lang.String strSecondAlternateValueSetOID,
java.lang.String strSecondAlternateValueSetVersionID)
Set the Principal Language Of Message.
|
void |
setProcessingID(PT objprocessingID)
Set the Processing ID.
|
void |
setProcessingID(java.lang.String strProcessingId,
java.lang.String strProcessingMode)
Set the Processing ID.
|
void |
setReceivingApplication(HD objreceivingApplication)
Set the Receiving Application.
|
void |
setReceivingApplication(java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
Set the Receiving Application.
|
void |
setReceivingFacility(HD objreceivingFacility)
Set the Receiving Facility.
|
void |
setReceivingFacility(java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
Set the Receiving Facility.
|
void |
setReceivingNetworkAddress(HD objReceivingApplication)
Set the Receiving Network Address.
|
void |
setReceivingNetworkAddress(java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
Set the Receiving Network Address.
|
void |
setReceivingResponsibleOrganization(java.lang.String strOrganizationName,
CWE objOrganizationNameTypeCode,
HD objAssigningAuthority,
java.lang.String strIdentifierTypeCode,
HD objAssigningFacility,
java.lang.String strNameRepresentationCode,
java.lang.String strOrganizationIdentifier)
Set the Receiving Responsible Organization.
|
void |
setReceivingResponsibleOrganization(XON objReceivingResponsibleOrganization)
Ses the Receiving Responsible Organization.
|
void |
setSecurity(ST objsecurity)
Set the Security.
|
void |
setSecurity(java.lang.String strSecurity)
Set the Security.
|
void |
setSendingApplication(HD objsendingApplication)
Set the Sending Application.
|
void |
setSendingApplication(java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
Set the Sending Application.
|
void |
setSendingFacility(HD objsendingFacility)
Set the Sending Facility.
|
void |
setSendingFacility(java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
Set the Sending Facility.
|
void |
setSendingNetworkAddress(HD objReceivingApplication)
Set the Sending Network Address.
|
void |
setSendingNetworkAddress(java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
Set the Sending Network Address.
|
void |
setSendingResponsibleOrganization(java.lang.String strOrganizationName,
CWE objOrganizationNameTypeCode,
HD objAssigningAuthority,
java.lang.String strIdentifierTypeCode,
HD objAssigningFacility,
java.lang.String strNameRepresentationCode,
java.lang.String strOrganizationIdentifier)
Set the Sending Responsible Organization.
|
void |
setSendingResponsibleOrganization(XON objSendingResponsibleOrganization)
Ses the Sending Responsible Organization.
|
void |
setSequenceNumber(NM objsequenceNumber)
Set the Sequence Number.
|
void |
setSequenceNumber(java.lang.String strSequenceNumber)
Set the Sequence Number.
|
void |
setVersionID(java.lang.String strVersionId,
CWE objInternationalizationCode,
CWE objInternationalVersionId)
Set the Version ID.
|
void |
setVersionID(VID objversionID)
Set the Version ID.
|
boolean |
validate()
Validates HL7 Message objects .
|
addUnRecognizedField, dumpSegment, getFields, getName, getUnrecognizedFields, moveToNextSegment, removeDataElement, removeDataElement, setName, setUnRecognizedField, updateDataElement, updateDataElement, writeToXMLpublic ID getAcceptAcknowledgmentType()
public ID getAlternateCharacterSetHandlingScheme()
public ID getApplicationAcknowledgmentType()
public ISingleCollection<ID> getCharacterSet()
public ST getContinuationPointer()
public ID getCountryCode()
public DTM getDateTimeOfMessage()
public ST getEncodingChar()
public ST getFieldSeparator()
public ST getMessageControlID()
public ISingleCollection<EI> getMessageProfileIdentifier()
public CWE getPrincipalLanguageOfMessage()
public PT getProcessingID()
public HD getReceivingApplication()
public HD getReceivingFacility()
public ST getSecurity()
public HD getSendingApplication()
public HD getSendingFacility()
public NM getSequenceNumber()
public IDelimiter getDelimiter()
public MSG getMessageType()
public VID getVersionID()
public void setFieldSeparator(char cfieldSeparator)
cfieldSeparator - Use as cfieldSeparator.public void setFieldSeparator(ST objfieldSeparator)
objfieldSeparator - object of fieldSeparator.public void setEncodingChars(char cComponentSeparator,
char cSubComponentSeparator,
char cRepetitionSeparator,
char cEscapeCharacter,
char cTruncationCharacter)
cComponentSeparator - Delimiter Use as ComponentSeparatorcSubComponentSeparator - Delimiter Use as SubComponentSeparatorcRepetitionSeparator - Delimiter Use as RepetitionSeparatorcEscapeCharacter - Delimiter Use as EscapeCharactercTruncationCharacter - Delimiter Use as TruncationCharacterpublic void setEncodingChars(ST objencodingChar)
objencodingChar - object of Encoding Char.public void setAcceptAcknowledgmentType(java.lang.String strAcceptAcknowledgmentType)
strAcceptAcknowledgmentType - Specifies the conditions under which accept acknowledgments are required
to be returned in response to this message.Suggested Values AL,NE,ER,SU.
[Refer Table No 0155]public void setAcceptAcknowledgmentType(ID objacceptAcknowledgmentType)
objacceptAcknowledgmentType - object of Accept Acknowledgment Type.public void setAlternateCharacterSetHandlingScheme(java.lang.String strAlternateCharacterSetHandlingScheme)
strAlternateCharacterSetHandlingScheme - Specifies any special handling scheme that is needed.Suggested
Values ISO 2022-1994,2.3,public void setAlternateCharacterSetHandlingScheme(ID objalternateCharacterSetHandlingScheme)
objalternateCharacterSetHandlingScheme - object of Alternate Character Set Handling Scheme.public void setApplicationAcknowledgmentType(java.lang.String strApplicationAcknowledgmentType)
strApplicationAcknowledgmentType - Specifies the conditions under which application acknowledgments are required
to be returned in response to this message.Suggested Values AL,NE,ER,SU.
[Refer Table No 0155]public void setApplicationAcknowledgmentType(ID objapplicationAcknowledgmentType)
objapplicationAcknowledgmentType - object of Application Acknowledgment Type.public void addCharacterSet(java.lang.String strCharacterSet)
strCharacterSet - Specifies the character set for the entire message.Suggested Values ASCII,8859/1 ...
[Refer Table No 0211].public void addCharacterSet(ID objtempCharacterSet)
objtempCharacterSet - object of Character Set.public void setCharacterSet(ISingleCollection<ID> objCharacterSetList)
objCharacterSetList - List of CharacterSetpublic void setContinuationPointer(java.lang.String strContinuationPointer)
strContinuationPointer - Specifies continuations in application-specific ways.
Only the sender of a fragmented message values this field.public void setContinuationPointer(ST objcontinuationPointer)
objcontinuationPointer - object of Continuation Pointer.public void setCountryCode(java.lang.String strCountryCode)
strCountryCode - Specifies the country of origin for the message. It will be used primarily to specify
default elements, such as currency denominations.No Suggested Values.Use 3-character
(alphabetic) form of ISO 3166.[Refer Table No 0399].public void setCountryCode(ID objcountryCode)
objcountryCode - object of Country Code.public void setDateTimeOfMessage(java.lang.String strTime)
strTime - Specifies a point in time using a 24-hour clock notation.public void setDateTimeOfMessage(DTM objdateTimeOfMessage)
objdateTimeOfMessage - object of Date Time Of Message.public void setMessageControlID(java.lang.String strMessageControlID)
strMessageControlID - Specifies a number or other identifier that uniquely identifies the message.public void setMessageControlID(ST objmessageControlID)
objmessageControlID - object of MessageControlIDpublic void addMessageProfileIdentifier(java.lang.String strEntityIdentifier,
java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
strEntityIdentifier - Specifies defined by a hierarchic designator, represented by components 2 through 4.
[Reference Section 2.A.33, "HD - hierarchic designator".]strNamespaceId - Specifies the HL7 identifier for the user-defined table of values for this component.
[Refer to User-defined Table 0363 - Assigning authority]strUniversalId - Specifies string formatted according to the scheme defined by the component,
strUniversalIdType - Specifies the interpretation of the second component of the HD.public void addMessageProfileIdentifier(EI objtempMessageProfileIdentifier)
objtempMessageProfileIdentifier - object of Message Profile Identifier.public void setMessageProfileIdentifier(ISingleCollection<EI> objMessageProfileIdentifierList)
objMessageProfileIdentifierList - List of MessageProfileIdentifierpublic void setMessageType(java.lang.String strMessageCode,
java.lang.String strTriggerEvent,
java.lang.String strMessageStructure)
strMessageCode - Specifies the message type code.Suggested values such as ACK, ADT, ORM, ORU etc.strTriggerEvent - Specifies the trigger event code.strMessageStructure - Specifies the abstract message structure code.public void setMessageType(MSG objmessageType)
objmessageType - object of Message Type.public void setPrincipalLanguageOfMessage(java.lang.String strIdentifier,
java.lang.String strText,
java.lang.String strNameOfCodingSystem,
java.lang.String strAlternateIdentifier,
java.lang.String strAlternateText,
java.lang.String strNameOfAlternateCodingSystem,
java.lang.String strCodingSystemVersionID,
java.lang.String strAlternateCodingSystemVersionId,
java.lang.String strOriginalText,
java.lang.String strSecondAlternateIdentifier,
java.lang.String strSecondAlternateText,
java.lang.String strNameofSecondAlternateCodingSystem,
java.lang.String strSecondAlternateCodingSystemVersionID,
java.lang.String strCodingSystemOID,
java.lang.String strValueSetOID,
java.lang.String strValueSetVersionID,
java.lang.String strAlternateCodingSystemOID,
java.lang.String strAlternateValueSetOID,
java.lang.String strAlternateValueSetVersionID,
java.lang.String strSecondAlternateCodingSystemOID,
java.lang.String strSecondAlternateValueSetOID,
java.lang.String strSecondAlternateValueSetVersionID)
strIdentifier - Specifies of characters (the code) that uniquely identifies the item being referenced.strText - Specifies The descriptive or textual name of the identifier, e.g., myocardial infarction.strNameOfCodingSystem - Identifies the coding scheme being used in the identifier component.strAlternateIdentifier - Specifies an alternate sequence of characters (the code) that uniquely identifies the item being referenced.strAlternateText - Specifies the descriptive or textual name of the alternate identifier. See usage note in section introduction.strNameOfAlternateCodingSystem - Identifies the coding scheme being used in the alternate identifier component.strCodingSystemVersionID - A sequence of characters that uniquely identifies a second alternate code.strAlternateCodingSystemVersionId - This component carries the version for the coding system identified by components 4-6.strOriginalText - The text as seen and/or selected by the user who entered the data.strSecondAlternateIdentifier - A sequence of characters that uniquely identifies a second alternate code.strSecondAlternateText - The descriptive or textual name of the alternate identifier.strNameofSecondAlternateCodingSystem - Identifies the coding scheme being used in the alternate identifier component.strSecondAlternateCodingSystemVersionID - This component carries the version for the coding system identified by components 10-12.strCodingSystemOID - This component contains the ISO Object Identifier (OID) for the coding system or value set named in CWE.3.strValueSetOID - This component contains the ISO Object Identifier (OID) to allow identification of the value set from which the value in CWE.1 is obtained.strValueSetVersionID - This component carries the version for the value set identified by CWE.15. The version is a date. The date is the date/time that the value set being used was published.strAlternateCodingSystemOID - This component contains the ISO Object Identifier (OID) for the coding system or value set named in CWE.6.strAlternateValueSetOID - This component contains the ISO Object Identifier (OID) to allow identification of the value set from which the value in CWE.4 is obtained.strAlternateValueSetVersionID - This component carries the version for the value set identified by CWE.18. The version is a date.strSecondAlternateCodingSystemOID - This component contains the ISO Object Identifier (OID) for the coding system or value set named in CWE.12.strSecondAlternateValueSetOID - This component contains the ISO Object Identifier (OID) to allow identification of the value set from which the value in CWE.10 is obtained.strSecondAlternateValueSetVersionID - This component carries the version for the value set identified by CWE.21. The version is a date.public void setPrincipalLanguageOfMessage(CWE objprincipalLanguageOfMessage)
objprincipalLanguageOfMessage - object of Principal Language Of Message.public void setProcessingID(java.lang.String strProcessingId,
java.lang.String strProcessingMode)
strProcessingId - Specifies a value that defines whether the message is part of a production, training,
or debugging system.strProcessingMode - Specifies a value that defines whether the message is part of an archival process or
an initial load.public void setProcessingID(PT objprocessingID)
objprocessingID - object of Processing ID.public void setReceivingApplication(java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
strNamespaceId - Specifies Specifies the HL7 identifier for the user-defined table of values for this component.[Refer Table No.300]strUniversalId - Specifies a string formatted according to the scheme defined by the component, strUniversalIdType - Governs the interpretation of the strUniversalId.public void setReceivingApplication(HD objreceivingApplication)
objreceivingApplication - object of Receiving Application.public void setReceivingFacility(java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
strNamespaceId - Specifies Specifies the HL7 identifier for the user-defined table of values for this component.[Refer Table No.300]strUniversalId - Specifies a string formatted according to the scheme defined by the component, strUniversalIdType - Governs the interpretation of the strUniversalId.public void setReceivingFacility(HD objreceivingFacility)
objreceivingFacility - object of Receiving Facility.public void setSecurity(java.lang.String strSecurity)
strSecurity - Specifies a field ,that is used to implement security features.public void setSecurity(ST objsecurity)
objsecurity - object of Security.public void setSendingApplication(java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
strNamespaceId - Specifies Specifies the HL7 identifier for the user-defined table of values for this component.[Refer Table No.300]strUniversalId - Specifies a string formatted according to the scheme defined by the component, strUniversalIdType - Governs the interpretation of the strUniversalId.public void setSendingApplication(HD objsendingApplication)
objsendingApplication - object of Sending Application.public void setSendingFacility(java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
strNamespaceId - Specifies Specifies the HL7 identifier for the user-defined table of values for this component.[Refer Table No.300]strUniversalId - Specifies a string formatted according to the scheme defined by the component, strUniversalIdType - Governs the interpretation of the strUniversalId.public void setSendingFacility(HD objsendingFacility)
objsendingFacility - object of Sending Facility.public void setSequenceNumber(java.lang.String strSequenceNumber)
strSequenceNumber - Specifies a non null value in this field implies that the sequence number protocol is in use.public void setSequenceNumber(NM objsequenceNumber)
objsequenceNumber - object of Sequence Number.public void setVersionID(java.lang.String strVersionId,
CWE objInternationalizationCode,
CWE objInternationalVersionId)
strVersionId - Used to identify the HL7 version.objInternationalizationCode - Used to identify the international affiliate country code.objInternationalVersionId - International affiliate's version.public void setVersionID(VID objversionID)
objversionID - object of Version ID.public XON getSendingResponsibleOrganization()
public void setSendingResponsibleOrganization(java.lang.String strOrganizationName,
CWE objOrganizationNameTypeCode,
HD objAssigningAuthority,
java.lang.String strIdentifierTypeCode,
HD objAssigningFacility,
java.lang.String strNameRepresentationCode,
java.lang.String strOrganizationIdentifier)
strOrganizationName - Specifies name of the specified organization.strOrganizationNameTypeCode - Specifies a code that represents the type of name i.e., legal name, display name.
Suggested Values A,L,D,SL.[Refer to table No.0204]objAssigningAuthority - Specifies The assigning authority is a unique identifier of the system
(or organization or agency or department) that creates the data.strIdentifierTypeCode - Specifies a code corresponding to the type of identifier.objAssigningFacility - Specifies The place or location identifier where the identifier was first assigned to the person.strNameRepresentationCode - Specifies representations of the same name/address Suggested values are I,A,P [Refer table 0465]strOrganizationIdentifier - This component contains the sequence of characters (the code) that uniquely
identifies the item being referenced by XON.1 Organization Name.
This component replaces XON.3 ID Number as of v 2.5.public void setSendingResponsibleOrganization(XON objSendingResponsibleOrganization)
objSendingResponsibleOrganization - object of Sending Responsible Organization.public XON getReceivingResponsibleOrganization()
public void setReceivingResponsibleOrganization(java.lang.String strOrganizationName,
CWE objOrganizationNameTypeCode,
HD objAssigningAuthority,
java.lang.String strIdentifierTypeCode,
HD objAssigningFacility,
java.lang.String strNameRepresentationCode,
java.lang.String strOrganizationIdentifier)
strOrganizationName - Specifies name of the specified organization.strOrganizationNameTypeCode - Specifies a code that represents the type of name i.e., legal name, display name.
Suggested Values A,L,D,SL.[Refer to table No.0204]objAssigningAuthority - Specifies The assigning authority is a unique identifier of the system
(or organization or agency or department) that creates the data.strIdentifierTypeCode - Specifies a code corresponding to the type of identifier.objAssigningFacility - Specifies The place or location identifier where the identifier was first assigned to the person.strNameRepresentationCode - Specifies representations of the same name/address Suggested values are I,A,P [Refer table 0465]strOrganizationIdentifier - This component contains the sequence of characters (the code) that uniquely
identifies the item being referenced by XON.1 Organization Name.
This component replaces XON.3 ID Number as of v 2.5.public void setReceivingResponsibleOrganization(XON objReceivingResponsibleOrganization)
objReceivingResponsibleOrganization - object of Receiving Responsible Organization.public HD getSendingNetworkAddress()
public void setSendingNetworkAddress(java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
strNamespaceId - Specifies Specifies the HL7 identifier for the user-defined table of values for this component.[Refer Table No.300]strUniversalId - Specifies a string formatted according to the scheme defined by the component, strUniversalIdType - Governs the interpretation of the strUniversalId.public void setSendingNetworkAddress(HD objReceivingApplication)
objReceivingApplication - Object of Receiving Application.public HD getReceivingNetworkAddress()
public void setReceivingNetworkAddress(java.lang.String strNamespaceId,
java.lang.String strUniversalId,
java.lang.String strUniversalIdType)
strNamespaceId - Specifies Specifies the HL7 identifier for the user-defined table of values for this component.[Refer Table No.300]strUniversalId - Specifies a string formatted according to the scheme defined by the component, strUniversalIdType - Governs the interpretation of the strUniversalId.public void setReceivingNetworkAddress(HD objReceivingApplication)
objReceivingApplication - Object of Receiving Application.public boolean validate()
throws InvalidSegmentException
validate in interface ISegmentvalidate in class SegmentInvalidSegmentException - Thrown when Any of required filed is missing.public int serialize(IHL7Stream objIHL7Stream, IDelimiter objIDelimiter) throws SerializeException, java.io.IOException
serialize in interface ISegmentserialize in class SegmentobjIHL7Stream - Object of IHL7Stream.objIDelimiter - Object of class Delimiter.SerializeException - Thrown when serialization of Message fails.java.io.IOException - Signals that an I/O exception of some sort has occurred.public int parse(java.lang.String strSegmentStream,
IDelimiter objIDelimiter)
throws InvalidSegmentException,
java.io.IOException
parse in interface ISegmentparse in class SegmentstrSegmentStream - String from HL7Stream.objIDelimiter - Object of class Delimiter.InvalidSegmentException - Thrown when Field Validation Fails.java.io.IOException - Signals that an I/O exception of some sort has occurred.