Class BaseLoaderR5

java.lang.Object
org.hl7.fhir.convertors.loaders.loaderR5.BaseLoaderR5
All Implemented Interfaces:
org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader
Direct Known Subclasses:
R2016MayToR5Loader, R2ToR5Loader, R3ToR5Loader, R4BToR5Loader, R4ToR5Loader, R5ToR5Loader, R6ToR5Loader

public abstract class BaseLoaderR5 extends Object implements org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader
  • Field Details

  • Constructor Details

  • Method Details

    • getResourcePath

      public String getResourcePath(org.hl7.fhir.r5.model.Resource resource)
      Specified by:
      getResourcePath in interface org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader
    • setPath

      public void setPath(org.hl7.fhir.r5.model.Resource r)
    • getNewLoader

      public org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader getNewLoader(org.hl7.fhir.utilities.npm.NpmPackage npm) throws com.google.gson.JsonSyntaxException, IOException
      Specified by:
      getNewLoader in interface org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader
      Throws:
      com.google.gson.JsonSyntaxException
      IOException
    • loaderFactory

      protected BaseLoaderR5 loaderFactory(org.hl7.fhir.utilities.npm.NpmPackage npm) throws com.google.gson.JsonSyntaxException, IOException
      Throws:
      com.google.gson.JsonSyntaxException
      IOException
    • isPatchUrls

      public boolean isPatchUrls()
    • setPatchUrls

      public void setPatchUrls(boolean patchUrls)
      Specified by:
      setPatchUrls in interface org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader
    • versionString

      protected abstract String versionString()
    • patchUrl

      public String patchUrl(String url, String type)
      Specified by:
      patchUrl in interface org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader
    • doPatchUrls

      protected void doPatchUrls(org.hl7.fhir.r5.model.Resource resource)
    • setLoadProfiles

      public org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader setLoadProfiles(boolean value)
      Specified by:
      setLoadProfiles in interface org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader
    • wantLoad

      public boolean wantLoad(org.hl7.fhir.utilities.npm.NpmPackage pi, org.hl7.fhir.utilities.npm.NpmPackage.PackageResourceInformation pri)
      Specified by:
      wantLoad in interface org.hl7.fhir.r5.context.IWorkerContext.IContextResourceLoader