Examples of AdvanceDecisionToRefuseTreatment


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

    // 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));

    // Anticipatory medicine box
    AnticipatoryMedicineBoxIssueProcedure ambox = createAMBox();
    template.addCodedSections(new CodedSections(ambox));
View Full Code Here

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

    template.setMainInformalCarer(carer);
    return template;
  }

  public static AdvanceDecisionToRefuseTreatment createADRT() {
    AdvanceDecisionToRefuseTreatment template = new AdvanceDecisionToRefuseTreatment();
    template.setID("C7E93500-28F8-11E2-B6B7-30966188709B");
    template.setEffectiveTime(new DateValue("201209111400+0000"));
    template.setADRTPreference(new CodedValue(EoLADRTprefSnCT._816301000000100, "#a2"));
    template.setADRTDocumentLocation("The signed copy of the documentation is available in patient bedside cabinet.");
    template.setADRTDiscussed(new CodedValue(ADRTDiscussedSnCT._820621000000107, "#a3"))
    return template;
  }
View Full Code Here

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

  static {
    full = createFull();
  }
 
  public static AdvanceDecisionToRefuseTreatment createFull() {
    AdvanceDecisionToRefuseTreatment template = new AdvanceDecisionToRefuseTreatment();

    template.setID("C7E93500-28F8-11E2-B6B7-30966188709B");
    template.setEffectiveTime(new DateValue("201209111400+0000"));
    template.setADRTPreference(new CodedValue(EoLADRTprefSnCT._816301000000100, "#a2"));
    template.setADRTDocumentLocation("The signed copy of the documentation is available in patient bedside cabinet.");
    template.setADRTDiscussed(new CodedValue(ADRTDiscussedSnCT._820621000000107, "#a3"));
   
    return template;
  }
View Full Code Here

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

  }
     
  @Test
  public void testRoundTrip() {
    String expectedResult = loadExpectedResult("/TestData/Templates/COCD_TP146420GB01_AH_01.xml", true);
    AdvanceDecisionToRefuseTreatment template = new AdvanceDecisionToRefuseTreatment();
    template.parse(expectedResult, parentNamespaces);
    String result = template.serialise("observation", parentNamespaces);
    testXMLisSimilar("/TestData/Templates/COCD_TP146420GB01_AH_01.xml", result, true);
  }
View Full Code Here

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

        getEoLCPFields(fields, eolcp, parseExceptions);
      }
     
      // Advance decision to refuse treatment
      if (className.equals("AdvanceDecisionToRefuseTreatment")) {
        AdvanceDecisionToRefuseTreatment adrt = (AdvanceDecisionToRefuseTreatment)codedSection;
        getADRTFields(fields, adrt, parseExceptions);
      }
     
      // Anticipatory medicine box
      if (className.equals("AnticipatoryMedicineBoxIssueProcedure")) {
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.