How to migrate legacy healthcare applications