.setGivenName("Alan")
.setFamilyName("Smith"));
template.addRelatedPerson(new RelatedPersonDetails().setParticipant(rp4));
PatientRelationshipParticipantRole rp5 = new PatientRelationshipParticipantRole();
rp5.addID(new PersonID()
.setID("110")
.setAssigningOrganisation("TAN01:NORTH EAST LINCOLNSHIRE CARE TRUST")
.setType(PersonIDType.LocalPersonID.code));
rp5.setPersonRole(JobRoleName._NR2020);
rp5.setAssociatedJobRole(JobRoleName._NR2050);
rp5.setAddress(new Address()
.addAddressLine("St James Hospital")
.addAddressLine("Potter Street")
.addAddressLine("Grimsby")
.setPostcode("DN3 6AA")
.setAddressUse(AddressType.WorkPlace.code));
rp5.addTelephoneNumber(new Telecom("tel:07334345612"));
rp5.setPersonName(new PersonName()
.setTitle("Mrs")
.setGivenName("Isabella")
.setFamilyName("Hopkins"));
rp5.setOrgId(new OrgID()
.setID("V356F")
.setType(OrgIDType.ODSOrgID.code));
rp5.setOrgDescription("St James Hospital");
template.addRelatedPerson(new RelatedPersonDetails().setParticipant(rp5));
PatientRelationshipParticipantRole rp6 = new PatientRelationshipParticipantRole();
rp6.addID(new PersonID()
.setID("112")
.setAssigningOrganisation("TAN01:NORTH EAST LINCOLNSHIRE CARE TRUST")
.setType(PersonIDType.LocalPersonID.code));
rp6.setPersonRole(JobRoleName._NR2030);
rp6.setAssociatedJobRole(JobRoleName._NR0260);