Package ca.uhn.hl7v2.model.v24.segment
Class MSH
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractSegment
ca.uhn.hl7v2.model.v24.segment.MSH
- All Implemented Interfaces:
Segment,Structure,Visitable,Serializable
Represents an HL7 MSH message segment (Message Header). This segment has the following fields:
- MSH-1: Field Separator (ST)
- MSH-2: Encoding Characters (ST)
- 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 (TS)
- MSH-8: Security (ST) optional
- MSH-9: Message Type (MSG)
- MSH-10: Message Control ID (ST)
- MSH-11: Processing ID (PT)
- MSH-12: Version ID (VID)
- 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 repeating
- MSH-19: Principal Language Of Message (CE) optional
- MSH-20: Alternate Character Set Handling Scheme (ID) optional
- MSH-21: Conformance Statement ID (ID) optional repeating
- See Also:
-
Field Summary
Fields inherited from class ca.uhn.hl7v2.model.AbstractStructure
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TypecreateNewTypeWithoutReflection(int field) Returns MSH-15: "Accept Acknowledgment Type" - creates it if necessaryReturns MSH-20: "Alternate Character Set Handling Scheme" - creates it if necessaryReturns MSH-16: "Application Acknowledgment Type" - creates it if necessaryID[]Returns all repetitions of Character Set (MSH-18).getCharacterSet(int rep) Returns a specific repetition of MSH-18: "Character Set" - creates it if necessaryintReturns a count of the current number of repetitions of Character Set (MSH-18).ID[]Returns all repetitions of Conformance Statement ID (MSH-21).getConformanceStatementID(int rep) Returns a specific repetition of MSH-21: "Conformance Statement ID" - creates it if necessaryintReturns a count of the current number of repetitions of Conformance Statement ID (MSH-21).Returns MSH-14: "Continuation Pointer" - creates it if necessaryReturns MSH-17: "Country Code" - creates it if necessaryReturns MSH-7: "Date/Time Of Message" - creates it if necessaryReturns MSH-2: "Encoding Characters" - creates it if necessaryReturns MSH-1: "Field Separator" - creates it if necessaryReturns MSH-10: "Message Control ID" - creates it if necessaryReturns MSH-9: "Message Type" - creates it if necessaryReturns MSH-1: "Field Separator" - creates it if necessaryReturns MSH-10: "Message Control ID" - creates it if necessaryReturns MSH-11: "Processing ID" - creates it if necessaryReturns MSH-12: "Version ID" - creates it if necessaryReturns MSH-13: "Sequence Number" - creates it if necessaryReturns MSH-14: "Continuation Pointer" - creates it if necessaryReturns MSH-15: "Accept Acknowledgment Type" - creates it if necessaryReturns MSH-16: "Application Acknowledgment Type" - creates it if necessaryReturns MSH-17: "Country Code" - creates it if necessaryID[]Returns all repetitions of Character Set (MSH-18).getMsh18_CharacterSet(int rep) Returns a specific repetition of MSH-18: "Character Set" - creates it if necessaryintReturns a count of the current number of repetitions of Character Set (MSH-18).Returns MSH-19: "Principal Language Of Message" - creates it if necessaryReturns MSH-2: "Encoding Characters" - creates it if necessaryReturns MSH-20: "Alternate Character Set Handling Scheme" - creates it if necessaryID[]Returns all repetitions of Conformance Statement ID (MSH-21).getMsh21_ConformanceStatementID(int rep) Returns a specific repetition of MSH-21: "Conformance Statement ID" - creates it if necessaryintReturns a count of the current number of repetitions of Conformance Statement ID (MSH-21).Returns MSH-3: "Sending Application" - creates it if necessaryReturns MSH-4: "Sending Facility" - creates it if necessaryReturns MSH-5: "Receiving Application" - creates it if necessaryReturns MSH-6: "Receiving Facility" - creates it if necessaryReturns MSH-7: "Date/Time Of Message" - creates it if necessaryReturns MSH-8: "Security" - creates it if necessaryReturns MSH-9: "Message Type" - creates it if necessaryReturns MSH-19: "Principal Language Of Message" - creates it if necessaryReturns MSH-11: "Processing ID" - creates it if necessaryReturns MSH-5: "Receiving Application" - creates it if necessaryReturns MSH-6: "Receiving Facility" - creates it if necessaryReturns MSH-8: "Security" - creates it if necessaryReturns MSH-3: "Sending Application" - creates it if necessaryReturns MSH-4: "Sending Facility" - creates it if necessaryReturns MSH-13: "Sequence Number" - creates it if necessaryReturns MSH-12: "Version ID" - creates it if necessaryinsertCharacterSet(int rep) Inserts a repetition of MSH-18: "Character Set" at a specific indexinsertConformanceStatementID(int rep) Inserts a repetition of MSH-21: "Conformance Statement ID" at a specific indexinsertMsh18_CharacterSet(int rep) Inserts a repetition of MSH-18: "Character Set" at a specific indexinsertMsh21_ConformanceStatementID(int rep) Inserts a repetition of MSH-21: "Conformance Statement ID" at a specific indexremoveCharacterSet(int rep) Removes a repetition of MSH-18: "Character Set" at a specific indexremoveConformanceStatementID(int rep) Removes a repetition of MSH-21: "Conformance Statement ID" at a specific indexremoveMsh18_CharacterSet(int rep) Removes a repetition of MSH-18: "Character Set" at a specific indexremoveMsh21_ConformanceStatementID(int rep) Removes a repetition of MSH-21: "Conformance Statement ID" at a specific indexMethods inherited from class ca.uhn.hl7v2.model.AbstractSegment
accept, add, add, clear, encode, getField, getField, getLength, getMaxCardinality, getName, getNames, getReps, getTypedField, getTypedField, insertRepetition, isEmpty, isRequired, main, numFields, parse, provideLocation, removeRepetitionMethods inherited from class ca.uhn.hl7v2.model.AbstractStructure
getMessage, getParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Structure
getMessage, getParent
-
Constructor Details
-
MSH
Creates a new MSH segment
-
-
Method Details
-
getFieldSeparator
Returns MSH-1: "Field Separator" - creates it if necessary -
getMsh1_FieldSeparator
Returns MSH-1: "Field Separator" - creates it if necessary -
getEncodingCharacters
Returns MSH-2: "Encoding Characters" - creates it if necessary -
getMsh2_EncodingCharacters
Returns MSH-2: "Encoding Characters" - creates it if necessary -
getSendingApplication
Returns MSH-3: "Sending Application" - creates it if necessary -
getMsh3_SendingApplication
Returns MSH-3: "Sending Application" - creates it if necessary -
getSendingFacility
Returns MSH-4: "Sending Facility" - creates it if necessary -
getMsh4_SendingFacility
Returns MSH-4: "Sending Facility" - creates it if necessary -
getReceivingApplication
Returns MSH-5: "Receiving Application" - creates it if necessary -
getMsh5_ReceivingApplication
Returns MSH-5: "Receiving Application" - creates it if necessary -
getReceivingFacility
Returns MSH-6: "Receiving Facility" - creates it if necessary -
getMsh6_ReceivingFacility
Returns MSH-6: "Receiving Facility" - creates it if necessary -
getDateTimeOfMessage
Returns MSH-7: "Date/Time Of Message" - creates it if necessary -
getMsh7_DateTimeOfMessage
Returns MSH-7: "Date/Time Of Message" - creates it if necessary -
getSecurity
Returns MSH-8: "Security" - creates it if necessary -
getMsh8_Security
Returns MSH-8: "Security" - creates it if necessary -
getMessageType
Returns MSH-9: "Message Type" - creates it if necessary -
getMsh9_MessageType
Returns MSH-9: "Message Type" - creates it if necessary -
getMessageControlID
Returns MSH-10: "Message Control ID" - creates it if necessary -
getMsh10_MessageControlID
Returns MSH-10: "Message Control ID" - creates it if necessary -
getProcessingID
Returns MSH-11: "Processing ID" - creates it if necessary -
getMsh11_ProcessingID
Returns MSH-11: "Processing ID" - creates it if necessary -
getVersionID
Returns MSH-12: "Version ID" - creates it if necessary -
getMsh12_VersionID
Returns MSH-12: "Version ID" - creates it if necessary -
getSequenceNumber
Returns MSH-13: "Sequence Number" - creates it if necessary -
getMsh13_SequenceNumber
Returns MSH-13: "Sequence Number" - creates it if necessary -
getContinuationPointer
Returns MSH-14: "Continuation Pointer" - creates it if necessary -
getMsh14_ContinuationPointer
Returns MSH-14: "Continuation Pointer" - creates it if necessary -
getAcceptAcknowledgmentType
Returns MSH-15: "Accept Acknowledgment Type" - creates it if necessary -
getMsh15_AcceptAcknowledgmentType
Returns MSH-15: "Accept Acknowledgment Type" - creates it if necessary -
getApplicationAcknowledgmentType
Returns MSH-16: "Application Acknowledgment Type" - creates it if necessary -
getMsh16_ApplicationAcknowledgmentType
Returns MSH-16: "Application Acknowledgment Type" - creates it if necessary -
getCountryCode
Returns MSH-17: "Country Code" - creates it if necessary -
getMsh17_CountryCode
Returns MSH-17: "Country Code" - creates it if necessary -
getCharacterSet
Returns all repetitions of Character Set (MSH-18). -
getMsh18_CharacterSet
Returns all repetitions of Character Set (MSH-18). -
getCharacterSetReps
Returns a count of the current number of repetitions of Character Set (MSH-18). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getCharacterSet
Returns a specific repetition of MSH-18: "Character Set" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getMsh18_CharacterSet
Returns a specific repetition of MSH-18: "Character Set" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getMsh18_CharacterSetReps
Returns a count of the current number of repetitions of Character Set (MSH-18). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertCharacterSet
Inserts a repetition of MSH-18: "Character Set" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
insertMsh18_CharacterSet
Inserts a repetition of MSH-18: "Character Set" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeCharacterSet
Removes a repetition of MSH-18: "Character Set" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeMsh18_CharacterSet
Removes a repetition of MSH-18: "Character Set" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
getPrincipalLanguageOfMessage
Returns MSH-19: "Principal Language Of Message" - creates it if necessary -
getMsh19_PrincipalLanguageOfMessage
Returns MSH-19: "Principal Language Of Message" - creates it if necessary -
getAlternateCharacterSetHandlingScheme
Returns MSH-20: "Alternate Character Set Handling Scheme" - creates it if necessary -
getMsh20_AlternateCharacterSetHandlingScheme
Returns MSH-20: "Alternate Character Set Handling Scheme" - creates it if necessary -
getConformanceStatementID
Returns all repetitions of Conformance Statement ID (MSH-21). -
getMsh21_ConformanceStatementID
Returns all repetitions of Conformance Statement ID (MSH-21). -
getConformanceStatementIDReps
Returns a count of the current number of repetitions of Conformance Statement ID (MSH-21). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
getConformanceStatementID
Returns a specific repetition of MSH-21: "Conformance Statement ID" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getMsh21_ConformanceStatementID
Returns a specific repetition of MSH-21: "Conformance Statement ID" - creates it if necessary- Parameters:
rep- The repetition index (0-indexed)
-
getMsh21_ConformanceStatementIDReps
Returns a count of the current number of repetitions of Conformance Statement ID (MSH-21). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero. -
insertConformanceStatementID
Inserts a repetition of MSH-21: "Conformance Statement ID" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
insertMsh21_ConformanceStatementID
Inserts a repetition of MSH-21: "Conformance Statement ID" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeConformanceStatementID
Removes a repetition of MSH-21: "Conformance Statement ID" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
removeMsh21_ConformanceStatementID
Removes a repetition of MSH-21: "Conformance Statement ID" at a specific index- Parameters:
rep- The repetition index (0-indexed)- Throws:
HL7Exception- If the rep is invalid (below 0, or too high for the allowable repetitions)
-
createNewTypeWithoutReflection
- Overrides:
createNewTypeWithoutReflectionin classAbstractSegment
-