Examples of AnticipatoryMedicineBoxIssueProcedure


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

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

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

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

    template.setADRTDiscussed(new CodedValue(ADRTDiscussedSnCT._820621000000107, "#a3"))
    return template;
  }
 
  public static AnticipatoryMedicineBoxIssueProcedure createAMBox() {
    AnticipatoryMedicineBoxIssueProcedure template = new AnticipatoryMedicineBoxIssueProcedure();
    template.setID("227413CC-28FA-11E2-ADB5-72976188709B");
    // There is only one code in this vocab, so if the below is omitted, that code will still be used - however
    // we need to set it explicitly if we also want the code to include a cross-reference to a text section, as in this test
    template.setAnticipatoryMedicineBoxIssueCode(
          new CodedValue(EoLAnticipatoryMedicineBoxIssueSnCT._376201000000102, "#a4"));
    template.setTimeIssued(new DateValue("201209111400+0000"));
    template.setLocationOfBox("Bedside Table Drawer");
    return template;
  }
View Full Code Here

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

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

    template.setID("227413CC-28FA-11E2-ADB5-72976188709B");
   
    // There is only one code in this vocab, so if the below is omitted, that code will still be used - however
    // we need to set it explicitly if we also want the code to include a cross-reference to a text section, as in this test
    template.setAnticipatoryMedicineBoxIssueCode(
          new CodedValue(EoLAnticipatoryMedicineBoxIssueSnCT._376201000000102, "#a4"));
   
    template.setTimeIssued(new DateValue("201209111400+0000"));
    template.setLocationOfBox("Bedside Table Drawer");
   
    return template;
  }
View Full Code Here

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

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

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

        getADRTFields(fields, adrt, parseExceptions);
      }
     
      // Anticipatory medicine box
      if (className.equals("AnticipatoryMedicineBoxIssueProcedure")) {
        AnticipatoryMedicineBoxIssueProcedure ambox = (AnticipatoryMedicineBoxIssueProcedure)codedSection;
        getAMBoxFields(fields, ambox, parseExceptions);
      }
     
      // DNACPR Decision
      if (className.equals("DNACPRDecisionbySeniorResponsibleClinician")) {
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.