iNTERFACEWARE Products Manual > Installing and Using Chameleon > Using Python Scripting > Chameleon Python API > Field Object > Field Object Usage Examples > Dealing with Systems that Require Trailing Delimiters |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
Occasionally, you may need to interact with a system that cannot cope with the absence of trailing composite delimiters in a particular field. Leaving off the trailing delimiters is actually perfectly legal in HL7, but some legacy systems may be incorrectly programmed and may still require them. One good example of this problem is a system that might require a trailing caret for a patient's middle initial, even though the patient does not have a middle initial. For example,
is required instead of
To handle this problem, add the following code to the segment outbound script for the PID Patient Name field:
Another example: some systems may require a fixed number of fields in a particular segment. If you need to generate a segment with a fixed number of fields, you must create a segment outbound script for the last of the fields that needs to appear. For example, if your segment needs to contain 15 fields, add this code to the segment outbound script for the 15th field:
|