Examples of TextSection


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

   
    return template;
  }
 
  public static TextSection createTextSection8() {
    TextSection template = new TextSection();
    template.setSectionId("EAE2350C-0242-11E2-9FB6-5BB26188709B");
    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.TextSection

   
    return template;
  }
 
  public static TextSection createTextSection9() {
    TextSection template = new TextSection();
    template.setSectionId("7B4B9094-34B0-11E2-AA20-99E66088709B");
    template.setTitle("EPaCCS Record Location");
    template.setText("URL of record: <linkHtml>http://endoflifeerecords.nhs.uk/patid?=993254128/</linkHtml>");
    return template;
  }
View Full Code Here

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

    }
   
    // Loop through text sections, extracting values
    List<TextSections> textSections = document.getTextSections();
    for (TextSections s : textSections) {
      TextSection section = s.getTextSection();
     
      // NOTE: Currently we unfortunately have to rely on the titles to find the right sections. This
      // will improve in a later release, which will have reliable identifiers for each text section to
      // allow us to extract the values more safely.
      if (section.getTitle().equals("Patient Choices")) {
        for (Section2 section2 : section.getSection2()) {
          if (section2.getTitle().equals("First preferred place of death")) {
            // ARGH - Can't parse this all back out to separate fields..
          }
          else if (section2.getTitle().equals("Second preferred place of death")) {
            // ARGH - Can't parse this all back out to separate fields..
          }
          else if (section2.getTitle().equals("Other Relevant Issues or Preferences about Provision of Care")) {
            fields.setOtherRelevantInformation(section2.getText());
          }
        }
      }
      else if (section.getTitle().equals("End of Life Care Observations")) {
        for (Section2 section2 : section.getSection2()) {
          if (section2.getTitle().equals("Primary EoLC Diagnosis")) {
            fields.setPrimaryEOLCDiagnosis(section2.getText());
          }
          else if (section2.getTitle().equals("Other EoLC Diagnosis")) {
            fields.setOtherRelevantDiagnoses(section2.getText());
          }
          else if (section2.getTitle().equals("Disabilities")) {
            fields.setPatientDisability(section2.getText());
          }
          else if (section2.getTitle().equals("Allergies and Adverse Reaction Summary")) {
            fields.setAllergiesAndAdverseReactions(section2.getText());
          }
        }
      }
      else if (section.getTitle().equals("EPaCCS Record Location")) {
        fields.setEPaCCSURL(section.getText());
      }
      else if (section.getTitle().equals("Advance Statements")) {
        fields.setAdvanceStatements(section.getText());
      }
    }
   
    if (parseExceptions.hasEntries()) {
      System.out.println("Errors: " + parseExceptions.toString());
View Full Code Here

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

 
 
 
 
  public static TextSection createTextSection1() {
    TextSection template = new TextSection();
    template.setSectionId("1362DCBE-89CB-11E3-A750-1F326288709B");
    template.setTitle("Mother Details");
    template.setText("<table width=\"100%\"><tbody>"
        + "<tr align=\"left\" valign=\"top\"><td>NHS Number</td><td>993254127</td></tr>"
        + "<tr align=\"left\" valign=\"top\"><td>Name</td><td>Mrs Shelly Smith</td></tr>"
        + "<tr align=\"left\" valign=\"top\"><td>Address</td><td>Appleton House<br/>Lanchester Road<br/>Grimsby<br/>DN3 1UJ</td></tr>"
        + "</tbody></table>");
    return template;
View Full Code Here

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

        + "</tbody></table>");
    return template;
  }
 
  public static TextSection createTextSection2() {
    TextSection template = new TextSection();
    template.setSectionId("5B49EC7E-89C2-11E3-9C8E-A2296288709B");
    template.setTitle("New Born Birth Details");
    template.setText("<table width=\"100%\"><tbody>"
        + "<tr align=\"left\" valign=\"top\"><td><content ID=\"a1\">Gestational age</content></td><td>40 Weeks</td></tr>"
        + "<tr align=\"left\" valign=\"top\"><td><content ID=\"a2\">Birth order</content></td><td>01</td></tr>"
        + "<tr align=\"left\" valign=\"top\"><td><content ID=\"a3\">Number of births in confinement</content></td><td>1</td></tr>"
        + "<tr align=\"left\" valign=\"top\"><td><content ID=\"a4\">Birth weight</content></td><td>2887 grams</td></tr>"
        + "</tbody></table>");
View Full Code Here

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

        + "</tbody></table>");
    return template;
  }
 
  public static TextSection createTextSection3() {
    TextSection template = new TextSection();
    template.setSectionId("AD8D0E24-0243-11E2-A989-D6B26188709B");
    template.setTitle("Blood Spot Screening");
    template.setText("<table width=\"100%\"><tbody>"
        + "<tr align=\"left\" valign=\"top\"><th>Blood spot screening tests</th><th>Results</th><th>Re-evaluated Result: Laboratory Confirm as Correct</th><th>Status Sub Code</th><th>Reason Text</th><th>Supplementary Text</th></tr>"
        + "<tr align=\"left\" valign=\"top\"><td>Phenylketonuria screening test</td><td>Condition not suspected</td><td>Yes</td><td>Not contactable, reasonable efforts made</td><td>PKU Reason Text</td><td>PKU supplementary text</td></tr>"
        + "<tr align=\"left\" valign=\"top\"><td>Screening for sickle cell disease</td><td>Condition not suspected</td><td/><td>Not contactable, reasonable efforts made</td><td>SCD Reason Text</td><td>SCD supplementary text</td></tr>"
        + "<tr align=\"left\" valign=\"top\"><td>Cystic fibrosis screening test</td><td>Condition not suspected</td><td/><td>Not contactable, reasonable efforts made</td><td>CFS Reason Text</td><td>CFS supplementary text</td></tr>"
        + "<tr align=\"left\" valign=\"top\"><td>Congenital hypothyroidism screening test</td><td>Condition not suspected</td><td/><td>Not contactable, reasonable efforts made</td><td>CHT Reason Text</td><td>CHT supplementary text</td></tr>"
        + "<tr align=\"left\" valign=\"top\"><td>Medium-chain acyl-coenzyme A dehydrogenase deficiency screening test</td><td>Condition not suspected</td><td/><td>Not contactable, reasonable efforts made</td><td>MCADD Reason Text</td><td>MCADD supplementary text</td></tr>"
        + "</tbody></table>");
   
    Section2 s2 = new Section2("97069BCA-3D35-11E2-9A71-5C3D6188709B", "Laboratory Details", "St James Pathology Laboratory");
    template.addSection2(s2);
   
    s2.addSection3(new Section3("4FFF101C-3D36-11E2-B4B7-9C3E6188709D","Date of Receipt at Lab","11-Sep-2012, 13:10"));
    s2.addSection3(new Section3("4FFF101C-3D36-11E2-B4B7-9C3E6188709B","Lab Card Serial Number","0902652801"));
    s2.addSection3(new Section3("9415CD54-3D36-11E2-9337-C93F6188709B","Previous Lab Card Serial Number","0902652800"));
   
    Section2 s2b = new Section2("97069BCA-3D35-11E2-9A71-5C3D6188709B","Specimen Collection Details","Blood specimen collected at St. James Hospital");
    template.addSection2(s2b);
   
    s2b.addSection3(new Section3("4FFF101C-3D36-11E2-B4B7-9C3E6188709D","Specimen Collection Time","11-Sep-2012, 13:00"));
    s2b.addSection3(new Section3("4FFF101C-3D36-11E2-B4B7-9C3E6188709B","Specimen Collected by","Mr Brian Weberly"));
   
    return template;
View Full Code Here

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

   
    return template;
  }
 
  public static TextSection createTextSection1() {
    TextSection template = new TextSection();
    template.setSectionId("E27F4264-C005-4BC3-BFA1-57C3E64B30B7");
    template.setTitle("Document Section 1");
    template.setText("<content>Some text associated with Document Section 1</content>");
   
    template.setTimeAuthored(new DateValue("200708012055+01"));
    template.setAuthor(createAuthorMaryFlemming());
   
    return template;
  }
View Full Code Here

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

    template.setOrganisationName("Medway South Out of Hours Centre");
    return template;
  }

  public static TextSection createTextSection2() {
    TextSection template = new TextSection();
    template.setSectionId("773110DB-288F-4B32-8DE1-362646A65E9A");
    template.setTitle("Document Section 2");
    template.setText("<content>Some text associated with Document Section 2</content>");
    return template;
  }
View Full Code Here

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

    template.setText("<content>Some text associated with Document Section 2</content>");
    return template;
  }

  public static TextSection createTextSection3() {
    TextSection template = new TextSection();
    template.setSectionId("8271D2F1-123F-4A14-A1AC-C6C8023203CF");
    template.setTitle("Document Section 3");
    template.setText("<content>Some text associated with Document Section 3</content>");
    return template;
  }
View Full Code Here

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

  static {
    section1 = createSection1();
  }
 
  public static TextSection createSection1() {
    TextSection template = new TextSection();
   
    template.setSectionId("EAE2350C-0242-11E2-9FB6-5BB26188709B");
    template.setTitle("End of Life Care Artefacts");
   
    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
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.