template.setOrgName("Dr De Hopper and Partners");
return template;
}
public static EoLCarePlan createEoLCarePlan() {
EoLCarePlan template = new EoLCarePlan();
template.setID("EBDF8AE8-28F5-11E2-9460-80936188709B");
template.setEffectiveFrom(new DateValue("201209111400+0000"));
template.setOriginalTimeAuthored(new DateValue("201209111400+0000"));
// Note: this author section for Niral Singh differs slightly from the author sections for
// Niral Singh used elsewhere in the document, hence the repetition here. This could potentially
// be a valid use-case if the author information is captured at different times, or even in
// different systems.
AuthorPersonUniversal originalAuthor = new AuthorPersonUniversal();
originalAuthor.addId(new PersonID()
.setID("201")
.setAssigningOrganisation("TAN01:NORTH EAST LINCOLNSHIRE CARE TRUST")
.setType(PersonIDType.LocalPersonID.code));
originalAuthor.setJobRoleName(JobRoleName._NR2040);
originalAuthor.setName(new PersonName()
.setTitle("Ms")
.setGivenName("Niral")
.setFamilyName("Singh"));
originalAuthor.setOrganisationId(new OrgID()
.setID("V356F")
.setType(OrgIDType.ODSOrgID.code));
originalAuthor.setOrganisationName("St James Hospital");
template.setOriginalAuthor(originalAuthor);
template.setLastAmendedTimeAuthored(new DateValue("201209111415+0000"));
template.setLastAmendedAuthor(originalAuthor);
template.setEoLToolSnCT(new CodedValue(EoLToolSnCT._818221000000103, "#a1"));
template.setEOLToolStage("first stage");
template.setPlannedReviewDate(new DateValue("20121011"));
template.addPatientRelationships(new EOLPatientRelationships(createRelatedPersons()));
return template;
}