Package ch.ahdis.matchbox.engine
Class MatchboxEngine.MatchboxEngineBuilder
java.lang.Object
org.hl7.fhir.validation.ValidationEngine.ValidationEngineBuilder
ch.ahdis.matchbox.engine.MatchboxEngine.MatchboxEngineBuilder
- Enclosing class:
- MatchboxEngine
public static class MatchboxEngine.MatchboxEngineBuilder
extends org.hl7.fhir.validation.ValidationEngine.ValidationEngineBuilder
Builder class to instantiate a MappingEngine
- Author:
- oliveregger, ahdis ag
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.validation.ValidationEngineReturns empty engineReturns a FHIR R4 engine configured with hl7 terminologyvoidsetPackageCacheMode(org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager.FilesystemPackageCacheMode packageCacheMode) Sets the mode of the filesystem package cache manager.voidsetPackageCachePath(String packageCachePath) Sets the custom path of the package cache.voidsetTxServer(String txServer) Sets the terminology server.Methods inherited from class org.hl7.fhir.validation.ValidationEngine.ValidationEngineBuilder
fromSource, withCanRunWithoutTerminologyServer, withLoggingService, withNoTerminologyServer, withTerminologyCachePath, withTHO, withTimeTracker, withTxServer, withUserAgent, withVersion
-
Constructor Details
-
MatchboxEngineBuilder
public MatchboxEngineBuilder()Creates an empty builder instance
-
-
Method Details
-
setTxServer
Sets the terminology server. Usenullto disable the use of a terminology server.- Parameters:
txServer- The URL of the terminology server ornull.
-
setPackageCacheMode
public void setPackageCacheMode(org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager.FilesystemPackageCacheMode packageCacheMode) Sets the mode of the filesystem package cache manager. It controls where the package will be stored on the filesystem:USER: {USER HOME}/.fhir/packagesSYSTEM: /var/lib/.fhir/packagesTESTING: {TMP}/.fhir/packages
- Parameters:
packageCacheMode- The mode of the filesystem package cache manager.- See Also:
-
for details.
-
setPackageCachePath
Sets the custom path of the package cache.- Parameters:
packageCachePath- The package cache path.
-
getEngineR4
Returns a FHIR R4 engine configured with hl7 terminology- Returns:
- Throws:
MatchboxEngineCreationException
-
getEngine
Returns empty engine- Returns:
- Throws:
MatchboxEngineCreationException
-
fromNothing
public org.hl7.fhir.validation.ValidationEngine fromNothing() throws MatchboxEngineCreationException- Overrides:
fromNothingin classorg.hl7.fhir.validation.ValidationEngine.ValidationEngineBuilder- Throws:
MatchboxEngineCreationException
-