Package org.fhirfrog.frog.rendering
package org.fhirfrog.frog.rendering
FHIR TestReport Rendering.

This package provides functionality to render test execution results as FHIR TestReport resources and store them in various formats and locations.
Overview
The rendering module converts TestResult objects
into FHIR-compliant TestReport resources, which can then be stored as JSON/XML
files or posted to a FHIR server.
Components
TestReportRenderer- Converts TestResult to TestReportReportStorage- Interface for storing reportsFileSystemReportStorage- Stores reports as filesFhirServerReportStorage- Posts reports to FHIR server
Usage
// Render test result to TestReport
TestReportRenderer renderer = new TestReportRenderer();
TestReport report = renderer.render(testResult);
// Store as JSON file
ReportStorage storage = new FileSystemReportStorage(Path.of("reports"));
storage.store(report, "json");
// Or post to FHIR server
ReportStorage serverStorage = new FhirServerReportStorage("http://localhost:8080/fhir");
serverStorage.store(report, "json");
Rendering Flow
- See Also:
-
ClassDescriptionStores TestReport to a FHIR server via HTTP POST.Stores TestReport to file system.Renders TestReport in different formats.Storage interface for TestReport resources.Deprecated.
TestReportis now built incrementally during execution and available viaExecutionResult.getTestReport().