Skip to content

ValueSet $validate after CodeSystem PATCH does not reflect changes. #7552

@preston

Description

@preston

After running hapi-fhir-cli to import SNOMED, I'm setting CodeSystem.version (not set by the CLI tool) as well as CodeSystem.content = "complete" (instead of "not-present"), like so:

curl -X PATCH "http://localhost:8282/fhir/CodeSystem/$(curl -s "http://localhost:8282/fhir/CodeSystem?url=http://snomed.info/sct" | jq -r '.entry[0].resource.id')" -H "Content-Type: application/json-patch+json" -d '[{"op": "add", "path": "/version", "value": "20250901"}, {"op": "replace", "path": "/content", "value": "complete"}]'

When you retrieve the CodeSystem it now reflects the updated fields, as expected, but if you $validate a ValueSet that references the updated CodeSystem, the validator still thinks the referenced CodeSystem.content is "not-present".

For the JPA server, restarting it does not resolve the problem and there doesn't seem to be a workaround.

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