Package ca.uhn.fhir.jpa.packages
Class PackageInstallerSvcImpl
java.lang.Object
ca.uhn.fhir.jpa.packages.PackageInstallerSvcImpl
- All Implemented Interfaces:
IPackageInstallerSvc
- Since:
- 5.1.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
assertFhirVersionsAreCompatible
(String fhirVersion, String currentFhirVersion) Asserts if package FHIR version is compatible with current FHIR version by using semantic versioning rules.protected boolean
createOrUpdateResource
(IFhirResourceDao theDao, org.hl7.fhir.instance.model.api.IBaseResource theResource, org.hl7.fhir.instance.model.api.IBaseResource theExistingResource) void
install
(PackageInstallationSpec theInstallationSpec) Loads and installs an IG from a file on disk or the Simplifier repo using theIPackageCacheManager
.uninstall
(PackageInstallationSpec theInstallationSpec)
-
Constructor Details
-
PackageInstallerSvcImpl
public PackageInstallerSvcImpl()Constructor
-
-
Method Details
-
initialize
-
uninstall
- Specified by:
uninstall
in interfaceIPackageInstallerSvc
-
install
public PackageInstallOutcomeJson install(PackageInstallationSpec theInstallationSpec) throws ImplementationGuideInstallationException Loads and installs an IG from a file on disk or the Simplifier repo using theIPackageCacheManager
.Installs the IG by persisting instances of the following types of resources:
- NamingSystem, CodeSystem, ValueSet, StructureDefinition (with snapshots), ConceptMap, SearchParameter, Subscription
Creates the resources if non-existent, updates them otherwise.
- Specified by:
install
in interfaceIPackageInstallerSvc
- Parameters:
theInstallationSpec
- The details about what should be installed- Throws:
ImplementationGuideInstallationException
-
assertFhirVersionsAreCompatible
protected void assertFhirVersionsAreCompatible(String fhirVersion, String currentFhirVersion) throws ImplementationGuideInstallationException Asserts if package FHIR version is compatible with current FHIR version by using semantic versioning rules. -
createOrUpdateResource
protected boolean createOrUpdateResource(IFhirResourceDao theDao, org.hl7.fhir.instance.model.api.IBaseResource theResource, org.hl7.fhir.instance.model.api.IBaseResource theExistingResource)
-