cqframework / cqf-tooling

Tooling for CQL and IG Authors
Apache License 2.0
19 stars 22 forks source link

Use conditional create in Artifact Bundles #532

Open brynrhodes opened 1 month ago

brynrhodes commented 1 month ago

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.