Interoperability
Integrating with an EHR you cannot change

Version the contract, not the hope
Interface agreements drift. Pin the version and log every payload so a change is visible the day it lands.
Wrap the vendor
One adapter per EHR, one canonical model behind it. Swapping a vendor then becomes a mapping change, not a rewrite.
Test the upgrade
Vendor upgrades are announced; regressions are not. A replay of captured traffic against the new version is cheap insurance.