Package ca.uhn.hl7v2.model.v22.segment
Class MSH
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractSegment
ca.uhn.hl7v2.model.v22.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 (ST) optional
- MSH-4: Sending facility (ST) optional
- MSH-5: Receiving application (ST) optional
- MSH-6: Receiving facility (ST) optional
- MSH-7: Date / Time of message (TS) optional
- MSH-8: Security (ST) optional
- MSH-9: Message type (CM_MSG)
- MSH-10: Message Control ID (ST)
- MSH-11: Processing ID (ID)
- MSH-12: Version ID (ID)
- MSH-13: Sequence number (NM) optional
- MSH-14: Continuation pointer (ST) optional
- MSH-15: Accept acknowledgement type (ID) optional
- MSH-16: Application acknowledgement type (ID) optional
- MSH-17: Country code (ID) optional
- 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 acknowledgement type" - creates it if necessaryReturns MSH-16: "Application acknowledgement type" - creates it if necessaryReturns 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 acknowledgement type" - creates it if necessaryReturns MSH-16: "Application acknowledgement type" - creates it if necessaryReturns MSH-17: "Country code" - creates it if necessaryReturns MSH-2: "Encoding characters" - creates it if necessaryReturns 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-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 necessaryMethods 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 -
getAcceptAcknowledgementType
Returns MSH-15: "Accept acknowledgement type" - creates it if necessary -
getMsh15_AcceptAcknowledgementType
Returns MSH-15: "Accept acknowledgement type" - creates it if necessary -
getApplicationAcknowledgementType
Returns MSH-16: "Application acknowledgement type" - creates it if necessary -
getMsh16_ApplicationAcknowledgementType
Returns MSH-16: "Application acknowledgement 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 -
createNewTypeWithoutReflection
- Overrides:
createNewTypeWithoutReflectionin classAbstractSegment
-