iNTERFACEWARE Products Manual > Installing and Using Chameleon > Using Python Scripting > Python Scripting Examples > Message Manipulation > Extracting Information From a Message |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
You 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.
|