[OE-2672] new ModuleAPI system
[OE-2672] replaced the original getmodel() method as it's still used extensively in the patient model.