FHIR Chat · Hosting multiple versions of canonical resources · hapi

Stream: hapi

Topic: Hosting multiple versions of canonical resources


view this post on Zulip Shahim Essaid (Nov 07 2020 at 23:15):

I'm new to the HAPI JPA server and trying out few things with the starter server repository.

How is one able to load multiple business versions of the same CodeSystem? When I try this, even with different version numbers, I receive the following error:

Error: HTTP 422 Unprocessable Entity: Can not create multiple CodeSystem resources with CodeSystem.url "...", already have one with resource ID: CodeSystem/3

I'm trying this through the web UI. Is there a configuration option to control this or am I not submitting the new CodeSystem instance correctly? By new version, I mean I'd like to have a new CodeSystem instance with its own identity, a newer business version, etc. but the same .url value. I know the URL can be qualified with a version but is there no way to have multiple instances with the same canonical url and the client needs to know how pick the correct one from the query result? Thanks!

view this post on Zulip Lin Zhang (Nov 08 2020 at 02:08):

On the CRUD Operations tab, maybe you want to use the UPDATE operation if the CodeSystem is not that large.

view this post on Zulip Shahim Essaid (Nov 11 2020 at 23:25):

I was wondering if it is possible to create multiple instances, not update an existing instance, of CodeSystem or other resources that have a canonical url. Does the spec say that an API can only have one instance/url of a canonical resource? I'm guessing it makes sense so clients don't have to figure out how to pick from multiple instances of the same resource type and same url.

view this post on Zulip Lin Zhang (Nov 11 2020 at 23:31):

What use case is it for?

view this post on Zulip Grahame Grieve (Nov 12 2020 at 09:21):

it should be possible to have multiple different resources that all have the same canonical URL. For a start, if they have different versions.

view this post on Zulip Grahame Grieve (Nov 12 2020 at 09:21):

but even if they have the same versions.

view this post on Zulip Grahame Grieve (Nov 12 2020 at 09:21):

but some servers might say, no, you have to manage them so they have different versions

view this post on Zulip Michael Lawley (Nov 12 2020 at 09:27):

and some mat say no, you can only have one version with a given URI (canonical URL)

view this post on Zulip Lin Zhang (Nov 13 2020 at 12:57):

(deleted)


Last updated: Apr 12 2022 at 19:14 UTC