iNTERFACEWARE Products Manual > Learning Center > Tutorials and Sample Scenarios > Working With a Database > HL7 to Database > Step 4 - Using Python To Go Beyond Mapping > Creating Python Code to Set the Discharged Flag > Saving the Trigger Event in a Global Variable |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
To save the Trigger Event in a global variable:
This code assigns the second subfield of field 9 to a variable named MessageType. (Note that subfield(1) accesses the second element of field 9, not the first. To access the first field, you would use subfield(0).) When an ADT^A03 message is parsed, this code assigns A03 to MessageType. |