iNTERFACEWARE Products Manual > Installing and Using Chameleon > XML <-> HL7 Translation > Using Python Scripts in XML <-> HL7 Translation > Python Scripts and HL7 -> XML Translation > Standard V2 or Full Tree Validation Scheme |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
If you are using the Standard Version 2 scheme or the Full Tree Validation scheme, you can define the following Python scripts:
The following diagram shows the order in which these scripts are executed: The following Segment Inbound Script, defined for the Patient Name in the PID segment (PID.5), replaces the patient name with X's:
This script sets the number of subfields of PID.5 to 1, which removes any middle initial or additional given name from the Patient Name field. The script also replaces the Surname and Given Name subfields with X's. When a message is translated from HL7 to XML, the Patient Name (PID.5) field looks like this: |