Examples of EoLCarePlan


Examples of uk.nhs.interoperability.payloads.templates.EoLCarePlan

    template.addPrimaryRecipients(new PrimaryRecipient(recipient));
   
    // ==== Now create the coded sections ====
   
    // End of Life Care Plan
    EoLCarePlan carePlan = createEoLCarePlan();
    template.addCodedSections(new CodedSections(carePlan));

    // Advance decision to refuse treatment
    AdvanceDecisionToRefuseTreatment adrt = createADRT();
    template.addCodedSections(new CodedSections(adrt));
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.EoLCarePlan

    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;
  }
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.EoLCarePlan

      CodedSection codedSection = s.getCodedEntry();
      String className = ((Payload)codedSection).getClassName();
     
      // End of life care plan
      if (className.equals("EoLCarePlan")) {
        EoLCarePlan eolcp = (EoLCarePlan)codedSection;
        getEoLCPFields(fields, eolcp, parseExceptions);
      }
     
      // Advance decision to refuse treatment
      if (className.equals("AdvanceDecisionToRefuseTreatment")) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.