Use conditional create in Artifact Bundles

Open
#532 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
tooling

Research direction

Start by locating the artifact bundling logic in the Java tooling and read the CRMI packaging guidance linked in the issue. Update bundling for all canonical resources to use conditional create with the If-None-Exist header, then verify that multiple versions of one artifact can load into the same server without collision.

Written by the indexing model from the issue text.

Description

The artifact bundling uses PUT with the logical id of the artifact for canonical resources. This causes problems when multiple versions of the same artifact are loaded in the same server. Guidance in CRMI packaging is to use a conditional create:

https://hl7.org/fhir/uv/crmi/packaging.html#fhir-bundle

We should update the artifact bundling logic to use this approach for all canonical resources.

Note that the documentation there as published has an error, the header is If-None-Exist, not ifNotExist as given in the example.

Dominant language
Java
Stars
22
Forks
26
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cqframework/cqf-tooling

All issues in cqframework/cqf-tooling

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.