genericised modelToResource and configured Patient and PatientAddress to work with it.