Closed Yorigas closed 7 months ago
Same problem with implementationguides: nz: name: fhir.org.nz.ig.base version: 2.0.0
FWIW it looks to me like the issue is that on RepositoryValidationInterceptorFactoryR4
(and the other version-specific classes) we should be calling setLoadSynchronousUpTo
on the SearchParameterMap before initiating that search. No reason not to do a synchronous search in that case.
Hi,
Please tell me . How to call setLoadSynchronousUpTo before searching.
I changed the code:
IBundleProvider results = structureDefinitionResourceProvider.search(new SearchParameterMap().add(StructureDefinition.SP_KIND, new TokenParam("resource")));
if (results.size() != null){
Map<String, List
structureDefintions.forEach((key, value) -> {
String[] urls = value.stream().map(StructureDefinition::getUrl).toArray(String[]::new);
repositoryValidatingRuleBuilder.forResourcesOfType(key).requireAtLeastOneProfileOf(urls).and().requireValidationToDeclaredProfiles();
});
}
Server is running fine. But structure definition validations are not working. so please explain what to write...
Hello,
I opened a thread on Google Groups and I've been asked to share the problem here. So here is a nice copy-paste of the Google thread!
Problem
I'm playing with implementation guides on the HAPI FHIR Starter server. I did not change anything in the server files but these lines in application.yaml :
If I start the server the first time, there is no problem. It downloads resources and I can reach it on localhost:8080.
If I stop and restart the server, I get this error:
It's reproducible: if I get the lastest version of the HAPI FHIR starter server and modify the application.yaml, I get this error after restarting.
The error seemed to come from the code in the buildUsingStoredStructureDefinitions method in RepositoryValidationInterceptorFactoryR4.java file (line 51) because results.size() is null.
I just added a condition before to check if results.size() is null... I'm not really sure why the results are null tho, but at least the server can restart!