Class SearchBundleHtmlGenerator

java.lang.Object
dev.dsf.fhir.adapter.InputHtmlGenerator
dev.dsf.fhir.adapter.SearchBundleHtmlGenerator
All Implemented Interfaces:
HtmlGenerator<org.hl7.fhir.r4.model.Bundle>

public class SearchBundleHtmlGenerator extends InputHtmlGenerator implements HtmlGenerator<org.hl7.fhir.r4.model.Bundle>
  • Constructor Details

    • SearchBundleHtmlGenerator

      public SearchBundleHtmlGenerator(String serverBaseUrl, int defaultPageCount)
  • Method Details

    • getResourceType

      public Class<org.hl7.fhir.r4.model.Bundle> getResourceType()
      Specified by:
      getResourceType in interface HtmlGenerator<org.hl7.fhir.r4.model.Bundle>
      Returns:
      the resource type supported by this generator
    • isResourceSupported

      public boolean isResourceSupported(URI resourceUri, org.hl7.fhir.r4.model.Resource resource)
      Specified by:
      isResourceSupported in interface HtmlGenerator<org.hl7.fhir.r4.model.Bundle>
      Parameters:
      resourceUri - not null
      resource - not null
      Returns:
      true if this HtmlGenerator supports the given resource for the given uri
    • writeHtml

      public void writeHtml(URI resourceUri, org.hl7.fhir.r4.model.Bundle resource, OutputStreamWriter out) throws IOException
      Specified by:
      writeHtml in interface HtmlGenerator<org.hl7.fhir.r4.model.Bundle>
      Parameters:
      resourceUri - not null
      resource - the resource, not null
      out - the outputStreamWriter, not null
      Throws:
      IOException