Have Institutional, professional and dental use the same specs. there are definite differences in needed loops and segments, but simply do not use those that are not needed.
Example (v5010 837)
Professional: 2420C is service location qualifier 77
Dental: 2420C is payer qualifier PR
Institutional 2420C is rendering provider qualifier 82
These differences create the need for at least 3 different sets of code, different error detection, different pre-pass edits. Many things that increase cost and complexity for no reason.