iNTERFACEWARE Products Manual > Installing and Using Chameleon > Designing HL7 Interfaces > Interface Types > ADT Feeds > Avoiding Duplicate Code |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
It makes sense to have multiple tables in each message's table grammar, rather than having one monolithic table for each message. This makes mapping easier since you can re-use mappings from message to message, as well as making it possible to reuse code in your application more easily. Since each table is an object, you can take advantage of this at the application level and write common functions that will take a table and process it. For example, if you have a header table in every message, you can write your code in a manner that every message event calls a single common function for processing the header fields. Programming in this manner should result in a very lean implementation.
|