Stream: hapi
Topic: Validation and Caching
Ann Merete Duedal Jensen (Jul 14 2021 at 09:42):
We experience problems/inconsistencies with the validation when referring to conformance resources and when reading the conformance resources.
One scenario:
- We post our profiles/StructureDefinitions to our HAPI FHIR server 5.4.1
- We post an Organization instance, which fails because the profile which the Organization is referring to is not known
- It is possible for us to read the StructureDefinition from the server
- After 10 minutes we can post the same Organization and it is created
Another scenario:
- We post a CodeSystem to our HAPI FHIR server 5.4.1
- We post a ValueSet
- We post a Questionnaire
- We post a QuestionnaireResponse within one minute after step 1. We receive an error that one or more codes we are using are not known
- It is possible for us to read the CodeSystem from the server and it contains the code(s) listed in the error in step 4
- After 10 minutes we can post the QuestionnaireResponse and it is created
To sum up we can look up conformance resources that just have been created, but when creating other resources that are referring to them, we receive errors or warnings.
Isn't this misleading?
We have been looking at the caching timeouts and we are able to change them to one minute. If we set the timeouts to less than a minute, the timeout is still one minute.
We have also tried to invalidate the cache of our validator and this results in a caching timeout of one minute, too.
Anyone who have an idea to solve this problem/inconsistency? We are not interested in disabling validation.
Jens Villadsen (Jul 14 2021 at 09:53):
Can you reproduce the error on hapi.fhir.org?
Ann Merete Duedal Jensen (Jul 15 2021 at 11:25):
No, we can't reproduce the error on hapi.fhir.org. But I don't know which validation support modules/validation support chain hapi.fhir.org uses. Is it described somewhere?
Jens Villadsen (Jul 26 2021 at 11:01):
@Ann Merete Duedal Jensen probably https://hapifhir.io/hapi-fhir/docs/validation/validation_support_modules.html#defaultprofilevalidationsupport
Last updated: Apr 12 2022 at 19:14 UTC