Examples of Section2


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

    template.setTitle("End of Life Care Artefacts");
   
    template.setTimeAuthored(new DateValue("201209111400+0000"));
    template.setAuthor(createAuthorNiralSingh());
   
    Section2 s2 = new Section2();
    s2.setSectionId("EF3FC326-0242-11E2-A44C-5FB26188709B");
    s2.setTitle("Anticipatory Medicine Box");
    s2.setText("<content ID=\"a4\">Anticipatory medicine box is issued and kept in refrigerator at patient home.</content>");
    template.addSection2(s2);
   
    return template;
  }
View Full Code Here

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

  public void testParse() {
    String expectedResult = loadExpectedResult("/TestData/Templates/COCD_TP146229GB01_AH_01.xml", true);
    TextSection template = new TextSection();
    template.parse(expectedResult, parentNamespaces);
    List<Section2> s2List = template.getSection2();
    Section2 s2 = s2List.get(0);
    System.out.println("TEXT = '" + s2.getText() + "'");
    assertEquals("<content ID=\"a4\" xmlns=\"urn:hl7-org:v3\">Anticipatory medicine box is issued and kept in refrigerator at patient home.</content>", s2.getText().trim());
  }
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.