Interface HtmlGenerator<R extends org.hl7.fhir.r4.model.Resource>

All Known Implementing Classes:
QuestionnaireResponseHtmlGenerator, SearchBundleHtmlGenerator, TaskHtmlGenerator

public interface HtmlGenerator<R extends org.hl7.fhir.r4.model.Resource>
  • Method Details

    • getResourceType

      Class<R> getResourceType()
      Returns:
      the resource type supported by this generator
    • writeHtml

      void writeHtml(String basePath, URI resourceUri, R resource, OutputStreamWriter out) throws IOException
      Parameters:
      basePath - the applications base base, e.g. /fhir/
      resourceUri - not null
      resource - the resource, not null
      out - the outputStreamWriter, not null
      Throws:
      IOException
    • isResourceSupported

      boolean isResourceSupported(String basePath, URI resourceUri, org.hl7.fhir.r4.model.Resource resource)
      Parameters:
      basePath - the applications base base, e.g. /fhir/
      resourceUri - not null
      resource - not null
      Returns:
      true if this HtmlGenerator supports the given resource for the given uri