Development of a Healthcare System -- Managed Architecture of Existing Code as a