|
Extracting Information From a MessageYou can use Python to extract the contents of any field or subfield from any segment in a message. The following function performs this task:
For example, you can use get_field to obtain the message code and trigger event of a message, which are located in subfields 1 and 2 of field 9 of the MSH segment:
The message code and trigger event are the components of the message's identity.
|