We have been trying to upgrade HAPI-FHIR libraries taking a 'large' leap from v5.0.2 to v6.8.0. In v5.0.2, passing R4 context for our R4 profiles (v4.0.1), we did not face any validation issues (no warnings/errors). However, in v6.8.0 we are facing new warnings & errors under the 'new' validator for the same R4 profiles (still passing the same R4 context, per the non-deprecated guidance here)
On the surface, the 'new' validation issues appear to be tied to 'new' rules only present in R5, and not in R4. One example is a warning for constraint rule bdl-18 "Self link is required for searchsets". We see this constraint in an R5 bundle, but seemingly not in an R4 bundle, hence it is an unexpected warning when receiving it HAPI v6.8.0 (passing R4 context and an R4 profile without this self link)
{
"severity": "warning",
"code": "processing",
"details": {
"coding": [
{
"system": "http://hl7.org/fhir/java-core-messageId",
"code": "BUNDLE_SEARCH_NOSELF"
}
]
},
"diagnostics": "SearchSet Bundles should have a self link that specifies what the search was",
"location": [
"Bundle",
"Line 1, Col 2838"
]
}
In trying to debug, it appears HAPI upgrade is ‘up-converting' our R4 profiles (per R4 context passed) to R5 and
validating per single
R5 validator.
In our current implementation, we are not ignoring any warnings or errors, so hoping to find a solution here without workarounds. Hoping I am missing something obvious thinking these validations are only applicable to R5, when somehow they are now applicable to prior versions. Our goal is to keep HAPI current, but remain R4 in the short term.
Thanks in advance...
--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/356fb620-afba-47ac-9770-6c7585569db5n%40googlegroups.com.