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
    Constructor
    Description
    Creates an empty builder instance
  • Method Summary

    Modifier and Type
    Method
    Description
    org.hl7.fhir.validation.ValidationEngine
     
    Returns empty engine
    Returns a FHIR R4 engine configured with hl7 terminology
    void
    setPackageCacheMode(org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager.FilesystemPackageCacheMode packageCacheMode)
    Sets the mode of the filesystem package cache manager.
    void
    setPackageCachePath(String packageCachePath)
    Sets the custom path of the package cache.
    void
    setTxServer(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MatchboxEngineBuilder

      public MatchboxEngineBuilder()
      Creates an empty builder instance
  • Method Details

    • setTxServer

      public void setTxServer(String txServer)
      Sets the terminology server. Use null to disable the use of a terminology server.
      Parameters:
      txServer - The URL of the terminology server or null.
    • 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/packages
      • SYSTEM: /var/lib/.fhir/packages
      • TESTING: {TMP}/.fhir/packages
      Parameters:
      packageCacheMode - The mode of the filesystem package cache manager.
      See Also:
      • for details.
    • setPackageCachePath

      public void setPackageCachePath(String packageCachePath)
      Sets the custom path of the package cache.
      Parameters:
      packageCachePath - The package cache path.
    • getEngineR4

      public MatchboxEngine getEngineR4() throws MatchboxEngineCreationException
      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:
      fromNothing in class org.hl7.fhir.validation.ValidationEngine.ValidationEngineBuilder
      Throws:
      MatchboxEngineCreationException