Examples of serialise()


Examples of uk.nhs.interoperability.payloads.endoflifecarev1.ClinicalDocument.serialise()

    super.init("endoflifecare/", "EOLCHelper-serialiseSWProposed", "EoLC Helper: SW Proposed Serialise", "This uses the EOLC Helper class to generate a full end of life care CDA document with a minimal set of fields, and serialises to a CDA document, which is compared with an expected document example.");
    try {
      // Use the helper to create the document
      ClinicalDocument doc = EndOfLifeCareDocumentCreationHelper.createDocument(proposed);
      // Serialise to a CDA XML Document
      String xml = doc.serialise();
     
      // Generate the rendered version
      super.render(xml);
     
      // Re-serialised (for documentation purposes)
View Full Code Here

Examples of uk.nhs.interoperability.payloads.endoflifecarev1.ClinicalDocument.serialise()

    super.init("endoflifecare/", "EOLCHelper-ProposdSchemaCheck", "EoLC Helper: Proposed Schema Check", "This uses the EOLC Helper class to generate a full end of life care CDA document with a minimal set of fields, and serialises to a CDA document, which is validated against the on-the-wire schema.");
    try {
      // Use the helper to create the document
      ClinicalDocument doc = EndOfLifeCareDocumentCreationHelper.createDocument(proposed);
      // Serialise to a CDA XML Document
      String xml = doc.serialise();
      // Now check it is valid according to the schema
      testAgainstSchema(
          PropertyReader.getProperty("endoflifecareSchemaPath")+"POCD_MT000002UK01.xsd",
          xml);
     
View Full Code Here

Examples of uk.nhs.interoperability.payloads.endoflifecarev1.ClinicalDocument.serialise()

    super.init("endoflifecare/", "EOLCHelper-ProposedTemplatedCheck", "EoLC Helper: Proposed Templated Check", "This uses the EOLC Helper class to generate a full end of life care CDA document with a minimal set of fields, and serialises to a CDA document, transforms it to templated format, which is validated against the templated schema.");
    try {
      // Use the helper to create the document
      ClinicalDocument doc = EndOfLifeCareDocumentCreationHelper.createDocument(proposed);
      // Serialise to a CDA XML Document
      String xml = doc.serialise();
      // And then transform and re-test against templated schema
      testAgainstTemplatedSchema(
          PropertyReader.getProperty("endoflifecareSchemaPath")+"POCD_MT021001GB01.xsd",
          xml);
     
View Full Code Here

Examples of uk.nhs.interoperability.payloads.noncodedcdav2.ClinicalDocument.serialise()

      // Use the helper to create the document
      ClinicalDocument doc = NonCodedCDADocumentCreationHelper.createDocument(minimal);
      String data = "PFRlc3RYTUw+PC9UZXN0WE1MPg==";
      doc = NonCodedCDADocumentCreationHelper.addNonXMLBody(doc, AttachmentType.Base64, "text/xml", data);
      // Serialise to a CDA XML Document
      String xml = doc.serialise();
      FileWriter.writeFile("output.xml", xml.getBytes());
     
      // Generate the rendered version
      super.render(xml);
     
View Full Code Here

Examples of uk.nhs.interoperability.payloads.noncodedcdav2.ClinicalDocument.serialise()

    super.init("noncodedcda/", "NonCodedCDAv2Helper-serialiseFullNonXMLBody", "NonCodedCDA Helper: Full Non-XML Body Serialise", "This uses the helper class to generate a full non coded CDA document with a full set of fields, and serialises to a CDA document, which is compared with an expected document example.");
    try {
      // Use the helper to create the document
      ClinicalDocument doc = NonCodedCDADocumentCreationHelper.createDocument(full);
      // Serialise to a CDA XML Document
      String xml = doc.serialise();
     
      // Generate the rendered version
      super.render(xml);
     
      content = content.replaceAll("#TESTRESULT#", "<div class='pass'>PASS: Successfully created full CDA document</div>");
View Full Code Here

Examples of uk.nhs.interoperability.payloads.noncodedcdav2.ClinicalDocument.serialise()

      // Use the helper to create the document
      ClinicalDocument doc = NonCodedCDADocumentCreationHelper.createDocument(minimal);
      String data = "PFRlc3RYTUw+PC9UZXN0WE1MPg==";
      doc = NonCodedCDADocumentCreationHelper.addNonXMLBody(doc, AttachmentType.Base64, "text/xml", data);
      // Serialise to a CDA XML Document
      String xml = doc.serialise();
      // Now check it is valid according to the schema
      testAgainstSchema(
          PropertyReader.getProperty("nonCodedCDASchemaPath")+"POCD_MT000002UK01.xsd",
          xml);
     
View Full Code Here

Examples of uk.nhs.interoperability.payloads.noncodedcdav2.ClinicalDocument.serialise()

      // Use the helper to create the document
      ClinicalDocument doc = NonCodedCDADocumentCreationHelper.createDocument(minimal);
      String data = "PFRlc3RYTUw+PC9UZXN0WE1MPg==";
      doc = NonCodedCDADocumentCreationHelper.addNonXMLBody(doc, AttachmentType.Base64, "text/xml", data);
      // Serialise to a CDA XML Document
      String xml = doc.serialise();
      // And then transform and re-test against templated schema
      testAgainstTemplatedSchema(
          PropertyReader.getProperty("nonCodedCDASchemaPath")+"POCD_MT010011GB02.xsd",
          xml);
     
View Full Code Here

Examples of uk.nhs.interoperability.payloads.noncodedcdav2.ClinicalDocument.serialise()

      // Use the helper to create the document
      ClinicalDocument doc = NonCodedCDADocumentCreationHelper.createDocument(full);
      String data = "PFRlc3RYTUw+PC9UZXN0WE1MPg==";
      doc = NonCodedCDADocumentCreationHelper.addNonXMLBody(doc, AttachmentType.Base64, "text/xml", data);
      // Serialise to a CDA XML Document
      String xml = doc.serialise();
      // Now check it is valid according to the schema
      testAgainstSchema(
          PropertyReader.getProperty("nonCodedCDASchemaPath")+"POCD_MT000002UK01.xsd",
          xml);
     
View Full Code Here

Examples of uk.nhs.interoperability.payloads.noncodedcdav2.ClinicalDocument.serialise()

      // Use the helper to create the document
      ClinicalDocument doc = NonCodedCDADocumentCreationHelper.createDocument(full);
      String data = "PFRlc3RYTUw+PC9UZXN0WE1MPg==";
      doc = NonCodedCDADocumentCreationHelper.addNonXMLBody(doc, AttachmentType.Base64, "text/xml", data);
      // Serialise to a CDA XML Document
      String xml = doc.serialise();
      // And then transform and re-test against templated schema
      testAgainstTemplatedSchema(
          PropertyReader.getProperty("nonCodedCDASchemaPath")+"POCD_MT010011GB02.xsd",
          xml);
     
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.AdvanceDecisionToRefuseTreatment.serialise()

  @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
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.