This page is designed to give guidance on message structure by creating a visual structure. Links will be included where appropriate to data subsets for populating fields. For this example, we've used a sample inventory message structure as if it were being captured via the MIM field system.
The resultant XML message for the sample data on this page can be found here
| MSH Segment - Message Header | |||
| hl7:MSH.1 | HL7 Required Constant | String | | |
| hl7:MSH.2 | HL7 Required Constant | String | ^~\& |
| hl7:MSH.3 | Sending Application: Database or system from which the data is sent | HD |
|
| hl7:MSH.4 | Sending Facility: Originating facility such as State, Laboratory, etc. There will be times when there is no originating facility or organization. In those instances send "Not Applicable"to fulfill HL7 requirement | HD |
|
| hl7:MSH.7 | Message Date/Time | Date/Time | 2024-10-17 |
| hl7:MSH.9 | HL7 Message Type | MSG |
MSG.1:ORU MSG.2:R01 MSG.3:ORU_R01 |
| hl7:MSH.10 | Message Identifier: Each sending system must be set up to create a unique identifier for each and every message it sends. These may end up duplicating the IDs created by other sending systems and will be distinguished by the sending facility and/or sending application identifiers. Ex Event ID from their system | String | e0dd9fba-e0ba-43eb-9873-05ae9e7ae9c0 |
| hl7:MSH.11 | Processing Id (Required): P (Production), D (Development), T (training) | PT.1 | |
| hl7:MSH.12 | HL7 Version Id (Required) | VID.1 | 2.8.2 |
| hl7:MSH.21 | Message Profile - Schema name with version | EI | |
| PATIENT_RESULT Group
Contains Summary Information for the Group. Individual Animals follow with Additional PATIENT_RESULT groups. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
PATIENT Group
PATIENT_PARTICIPATION group
PATIENT_PARTICIPATION group
VISIT group
ORDER_OBSERVATION Group
OBSERVATION group
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PATIENT_RESULT Group
Individual Animal information and observations. Would repeat for every animal. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
PATIENT Group
PATIENT_PARTICIPATION group
PATIENT_PARTICIPATION group
VISIT group
ORDER_OBSERVATION Group
OBSERVATION group
  *placeholder for codes being developed
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||