template.setEffectiveTime(new DateValue("201209111400+0000"));
template.setAuthoritytoLPA(new CodedValue(AuthoritytoLPASnCT._816381000000105, "#a7"));
PatientRelationshipParticipantRole person = new PatientRelationshipParticipantRole();
person.setPersonRole(JobRoleName._NR2010);
person.setAddress(new Address().setNullFlavour(NullFlavour.NI.code));
person.addTelephoneNumber(new Telecom("tel:07871715735"));
person.setPersonName(new PersonName()
.setTitle("Mr")
.setGivenName("Alan")
.setFamilyName("Smith"));