Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading Multiple Versions of the Same CodeSystem #706

Open
tayeb83 opened this issue Jun 30, 2024 · 2 comments
Open

Uploading Multiple Versions of the Same CodeSystem #706

tayeb83 opened this issue Jun 30, 2024 · 2 comments

Comments

@tayeb83
Copy link

tayeb83 commented Jun 30, 2024

I am using Hapi FHIR and I need to manage multiple versions of the same CodeSystem. I would appreciate some guidance on how can I upload multiple versions of the same CodeSystem using the JPA HAPI FHIR server.

Currently, when I try to upload a new version of a codeSystem with same ID/URL the old one is deleted.

@XcrigX
Copy link
Contributor

XcrigX commented Jul 1, 2024

How are you uploading them, via an HTTP PUT?
The Resource.id value in FHIR is like a primary key. When you PUT a resource it will overwrite the existing resource (if it exists) with the new content.
You'd need to use distinct IDs for the two CodeSystems, or HTTP POST them and let the server assign IDs to them.

@tayeb83
Copy link
Author

tayeb83 commented Jul 1, 2024

Thanks.

And it's not possible to have one ID that have multiple version ? I know that in OntoServer for example, they offer this possibility to use : URI/ID with multiple versions ?

The problem is when a CodeSystem is created (using PUT) with same ID, the old one is deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants