return template;
}
public static AuthoritytoLastingPowerofAttorney createLPA() {
AuthoritytoLastingPowerofAttorney template = new AuthoritytoLastingPowerofAttorney();
template.setID("26919440-2A88-11E2-A205-1ECA6088709B");
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"));
template.setLPADetails(person);
return template;
}