Starting to add code for adding patients
Further changes to support adding patients et al