Commit Graph

13 Commits

Author SHA1 Message Date
Jens Kristian Villadsen
63256fe1d2 Add fallback for versioned base FHIR StructureDefinition lookups (#911)
* Add fallback for versioned base FHIR StructureDefinition lookups

Problem:
Implementation Guides (e.g., ch-core) may reference base FHIR resources
with explicit versions like "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1".
These lookups fail because base FHIR StructureDefinitions are intentionally
cached without version (see hapi-fhir PR #7236).

This causes validation errors like:
- "Unable to resolve the profile reference '...|4.0.1'"
- "Invalid Resource target type. Found Organization, but expected one of ([])"

Solution:
Add VersionedUrlFallbackValidationSupport that intercepts versioned lookups
for base FHIR StructureDefinitions (http://hl7.org/fhir/StructureDefinition/*)
and falls back to:
1. Major.minor version (e.g., 4.0.1 -> 4.0)
2. Non-versioned URL

The fallback logs a warning when triggered, allowing visibility into
which IGs reference versioned base resources.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Remove duplicates

* formatting

* removing unneeded thread local

* corrected according to review

* cleanup

* removed not needed const

* tests include some chain now

* Update src/test/java/ca/uhn/fhir/jpa/starter/validation/VersionedUrlFallbackValidationSupportTest.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* updated doc

* adding tests

* Add TODO comment for core fix in validation support

Added a comment indicating a TODO for future improvement.

* Update TODO comment for core fix in validation support

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-05 15:28:02 +01:00
winfriedgerlach
8224cae131 some cleanup (#840)
* some cleanup

* results from mvn spotless:apply

* fix contructor --> constructor

* revert change to fix CdsHooksServletIT

* revert change to charts README.md

* bump chart version, required due to changes in README.md
2025-08-19 20:00:34 +02:00
Levi
c83e196f96 Affected Issue(s): Fix failing test
What this commit has achieved:
1. Fixed failing tests in `ExampleServerR4IT` due to:
```
org.awaitility.core.ConditionTimeoutException: Condition with ca.uhn.fhir.jpa.starter.ExampleServerR4IT was not fulfilled within 10 seconds.
```
default await time from Awaitility is 10 seconds
2. Added entries in `.gitignore` related to STS IDE
2021-08-25 16:46:18 +02:00
chgl
f26f7d3c08 added Helm chart for HAPI FHIR server 2021-04-24 00:29:03 +02:00
patrick-werner
c58bde0e65 replaced .idea codestyle with .editorconfig from core 2019-09-12 14:32:32 -04:00
patrick-werner
03e183bdd7 clean up ignored files, re-added google codestyle 2019-09-12 14:01:43 -04:00
patrick-werner
38de2cb229 clean up ignored files 2019-09-12 13:48:22 -04:00
patrick-werner
979fb22b33 updated .gitignore 2019-09-12 13:26:06 -04:00
patrick-werner
e12c4c1d79 extended .gitignore
added google codestyle in .idea
2019-09-12 13:22:55 -04:00
James Agnew
f0ec419c76 Bump version to 4.0.0 2019-08-14 11:50:28 -04:00
jpoth
20c0e2c567 Update Dockerfile to point to correct WAR path and update gitignore to ignore IntelliJ IDEA resources 2018-11-21 10:30:45 +01:00
James Agnew
693dc34e55 Initial commit 2018-07-26 08:06:41 +07:00
James Agnew
6da96ab869 Initial commit 2018-07-26 07:16:13 +07:00