if (providerOrganisationAddress) {
template.setOrganisationAddress(fields.getProviderOrganisationAddress());
}
if (providerParentOrganisationODSID) {
template.addOrganisationPartOf(new ChildPatientOrganisationPartOf()
.addOrganisationId(new OrgID(OrgIDType.ODSOrgID.code,
fields.getProviderParentOrganisationODSID())));
}
}
return template;