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(URI resourceUri, org.hl7.fhir.r4.model.Resource resource) voidwriteHtml(URI resourceUri, R resource, OutputStreamWriter out)
-
Method Details
-
getResourceType
- Returns:
- the resource type supported by this generator
-
writeHtml
- Parameters:
resourceUri- notnullresource- the resource, notnullout- the outputStreamWriter, notnull- Throws:
IOException
-
isResourceSupported
- Parameters:
resourceUri- notnullresource- notnull- Returns:
trueif this HtmlGenerator supports the given resource for the given uri
-