Skip to content

FhirRegistry: dynamic resource CodeSystem,ValueSet loading #4223

Description

@gdecagna

Describe the bug
dynamic resource CodeSystem, ValueSet loading

Environment
5.1.1

To Reproduce
Steps to reproduce the behavior:

Expected behavior
dynamic reloading of resources

Additional context
FhirRegistry: I used the PackageRegistryResourceProvider procedure to register a set of CodeSystem and ValueSet resources.
This procedure, inserted in a jar located in the userLib, correctly loads the resources present in the .index.json file at start Up.
Is it possible to reload this procedure via URL command or other without restarting the server?
The goal is to edit the jar, copy it into the userLib and reload it without restarting the whole system.

Activity

  1. lmsurpre commented on Jun 19, 2023

    @lmsurpre
    Member

    The RegistryResourceProviders are discovered during startup (using the java ServiceLoader pattern) and so registering new providers is not supported at runtime.

    That said, it should be possible to implement a provider that can change what it provides dynamically. At one point, our ExtensionSearchParametersResourceProvider worked liked that (prior to https://github.com/LinuxForHealth/FHIR/pull/2942/files).

    It might also be possible to invent a new way to register a new provider at runtime (e.g. via FHIRRegistry#addProvider()) but that is not exposed at the server level at this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions