Package dev.dsf.fhir.adapter
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 Summary
Modifier and TypeMethodDescriptionbooleanisResourceSupported(String basePath, URI resourceUri, org.hl7.fhir.r4.model.Resource resource) voidwriteHtml(String basePath, URI resourceUri, R resource, OutputStreamWriter out)
-
Method Details
-
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- notnullresource- the resource, notnullout- the outputStreamWriter, notnull- 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- notnullresource- notnull- Returns:
trueif this HtmlGenerator supports the given resource for the given uri
-