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 > Assigning to the Discharged Column |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
The next step is to create a Table Inbound script that checks the value of MessageType and uses it to determine whether to assign 'D' to the Discharged column of the table.
To create the Table Inbound script:
Whenever an A03 message is parsed for a specific patient, a 'D' character will be inserted into the Discharged column of the Patient table.
The next step is to test that the code works in Chameleon. |