Package org.emau.icmvc.ganimed.ttp.cm2
Interface GICSFhirService
public interface GICSFhirService
An interface for import and export of consent-templates using custom fhir formats
for details read our publication.
- Author:
- bialkem
-
Method Summary
Modifier and TypeMethodDescriptionexportDefinition
(String domainName, FhirExportMode exportMode, List<String> itemList, boolean exportLogo, String fileFormat) export domain-, policy-, module- and template definitions for selected domainimportDefinition
(String definition, boolean allowUpdates, String fileFormat) Import domain-, policy-, module- and template definitionspreviewImportDefinition
(String definition, boolean allowUpdates, String fileFormat) Import domain-, policy-, module- and template definitions
-
Method Details
-
importDefinition
ImportResultDTO importDefinition(String definition, boolean allowUpdates, String fileFormat) throws InvalidExchangeFormatException, InternalException Import domain-, policy-, module- and template definitions- Parameters:
definition
- content of definition to importallowUpdates
- true if existing definitions are allowed to be updatedfileFormat
- format of definition (e.g. xml or json)- Returns:
- Map with Lists of add, updated and ignored items.
- Throws:
InvalidExchangeFormatException
InternalException
-
previewImportDefinition
ImportResultDTO previewImportDefinition(String definition, boolean allowUpdates, String fileFormat) throws InvalidExchangeFormatException, InternalException Import domain-, policy-, module- and template definitions- Parameters:
definition
- content of definition to importallowUpdates
- true if existing definitions are allowed to be updatedfileFormat
- format of definition (e.g. xml or json)- Returns:
- Map with Lists of add, updated and ignored items.
- Throws:
InvalidExchangeFormatException
InternalException
-
exportDefinition
String exportDefinition(String domainName, FhirExportMode exportMode, List<String> itemList, boolean exportLogo, String fileFormat) throws InternalException, InvalidExchangeFormatException export domain-, policy-, module- and template definitions for selected domain- Parameters:
domainName
- Name of selected domainexportMode
- mode of export: all, domain, policies, modules, templates, specifyitemList
- specify items by key (domain, name, version) to be exported, processed only when ExportMode.SPECIFY is usedexportLogo
- true, if export should contain base64 encoded domain logo if availablefileFormat
- format of definition (e.g. xml or json)- Returns:
- definition with export information
- Throws:
UnknownDomainException
InternalException
InvalidExchangeFormatException
-