Class ReportFormatRenderer

java.lang.Object
org.fhirfrog.frog.rendering.ReportFormatRenderer

public class ReportFormatRenderer extends Object
Renders TestReport in different formats.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    renderJson(List<org.hl7.fhir.r4.model.TestReport> reports)
    A multi-TestScript run's results as one downloadable file - a Bundle of type collection wrapping one individually valid TestReport entry per TestScript (see add-report-export-and-rest-api's report-export spec: "one distinct, individually valid TestReport resource per TestScript - not one resource whose test[] array has been concatenated").
    renderJson(org.hl7.fhir.r4.model.TestReport report)
     
    renderXml(List<org.hl7.fhir.r4.model.TestReport> reports)
     
    renderXml(org.hl7.fhir.r4.model.TestReport report)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ReportFormatRenderer

      public ReportFormatRenderer()
  • Method Details

    • renderJson

      public String renderJson(org.hl7.fhir.r4.model.TestReport report)
    • renderXml

      public String renderXml(org.hl7.fhir.r4.model.TestReport report)
    • renderJson

      public String renderJson(List<org.hl7.fhir.r4.model.TestReport> reports)
      A multi-TestScript run's results as one downloadable file - a Bundle of type collection wrapping one individually valid TestReport entry per TestScript (see add-report-export-and-rest-api's report-export spec: "one distinct, individually valid TestReport resource per TestScript - not one resource whose test[] array has been concatenated"). A Bundle is the standard FHIR way to package several independent resources in a single file without synthesizing a resource that doesn't exist.
    • renderXml

      public String renderXml(List<org.hl7.fhir.r4.model.TestReport> reports)