Class SnapshotGenerator

java.lang.Object
de.gematik.fhir.snapshots.SnapshotGenerator

public class SnapshotGenerator extends Object
The SnapshotGenerator class is responsible for generating FHIR snapshots from FHIR package files and their dependencies.
  • Constructor Details

    • SnapshotGenerator

      public SnapshotGenerator()
  • Method Details

    • generateSnapshots

      public void generateSnapshots(String packageFolderPath, String outputFolder, String tempDir) throws IOException
      Generates snapshots for all FHIR packages and their dependencies.
      Parameters:
      packageFolderPath - The path to the folder containing source FHIR packages.
      outputFolder - The output folder where FHIR packages with the generated snapshots will be stored.
      tempDir - The temporary directory for decompressing the FHIR packages.
      Throws:
      IOException - If an I/O error occurs during the snapshot generation process.
    • generateSnapshots

      public void generateSnapshots(String packageFolderPath, String outputFolder, Collection<String> packagesForSnapshotGeneration, String tempDir) throws IOException
      Generates snapshots for specified FHIR packages and their dependencies.
      Parameters:
      packageFolderPath - The path to the folder containing source FHIR packages.
      outputFolder - The output folder where FHIR packages with the generated snapshots will be stored.
      packagesForSnapshotGeneration - The list of package names (optional). If empty, all packages are processed.
      tempDir - The temporary directory for decompressing the FHIR packages.
      Throws:
      IOException - If an I/O error occurs during the snapshot generation process.