-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/issues/75_fhir_server_ui_dark_mode'
into develop
- Loading branch information
Showing
18 changed files
with
1,035 additions
and
501 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
dsf-fhir/dsf-fhir-rest-adapter/src/main/java/dev/dsf/fhir/adapter/HtmlGenerator.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
dsf-fhir/dsf-fhir-server/src/main/java/dev/dsf/fhir/adapter/HtmlGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package dev.dsf.fhir.adapter; | ||
|
||
import java.io.IOException; | ||
import java.io.OutputStreamWriter; | ||
import java.net.URI; | ||
|
||
import org.hl7.fhir.r4.model.Resource; | ||
|
||
public interface HtmlGenerator<R extends Resource> | ||
{ | ||
/** | ||
* @return the resource type supported by this generator | ||
*/ | ||
Class<R> getResourceType(); | ||
|
||
/** | ||
* @param basePath | ||
* the applications base base, e.g. /fhir/ | ||
* @param resourceUri | ||
* not <code>null</code> | ||
* @param resource | ||
* the resource, not <code>null</code> | ||
* @param out | ||
* the outputStreamWriter, not <code>null</code> | ||
* @throws IOException | ||
*/ | ||
void writeHtml(String basePath, URI resourceUri, R resource, OutputStreamWriter out) throws IOException; | ||
|
||
/** | ||
* @param basePath | ||
* the applications base base, e.g. /fhir/ | ||
* @param resourceUri | ||
* not <code>null</code> | ||
* @param resource | ||
* not <code>null</code> | ||
* @return <code>true</code> if this HtmlGenerator supports the given <b>resource</b> for the given <b>uri</b> | ||
*/ | ||
boolean isResourceSupported(String basePath, URI resourceUri, Resource resource); | ||
} |
File renamed without changes.
Oops, something went wrong.