Stream: questionnaire
Topic: Extending the SDC Questionnaire profile
Kristof Taveirne (Jan 14 2021 at 13:01):
Hi,
I'm quite new to profiling, but I'm trying to the extend the SDC Questionnaire profile.
The goal to extend is that we gradually remove constraints so that we at every stage of our development only accept questionnaires that the application actually supports.
I've managed to create a $validate operation on HAPI plain server and load in the SDC IG, but I get two validation errors that I don't really understand.
ValidationMessage[level=INFORMATION,type=INFORMATIONAL,location=Questionnaire,message=VALIDATION_VAL_PROFILE_SIGNPOST]
ValidationMessage[level=ERROR,type=STRUCTURE,location=Questionnaire,message=Validation_VAL_Profile_Minimum]
When I debug the validationMessage objects it doesn't contain more info than what you can see here. Any idea what this could mean?
Thank you,
Kristof.
Kristof Taveirne (Jan 14 2021 at 14:31):
Looks like I've found the problem.
There apparently is no translation available for the message (Validation_VAL_Profile_Minimum).
The reason is somehow the i18Messages PropertyResourceBundle has been replaces by one I define in a dependency using
@Component
@PropertySource("classpath:messages.properties")
public class LoggingFacade {...}
Apparently, doing this overrides resourceBundle used in the validation code.
So probably some Spring magic that causes this.
Regards,
Kristof
Lloyd McKenzie (Jan 14 2021 at 18:52):
@Mark Iantorno ?
Mark Iantorno (Jan 14 2021 at 18:53):
oh that's no good
Mark Iantorno (Jan 14 2021 at 18:53):
can you open an issue on GitHub and assign to me
Mark Iantorno (Jan 14 2021 at 18:53):
https://github.com/hapifhir/org.hl7.fhir.core/issues
Mark Iantorno (Jan 14 2021 at 18:54):
You're language is set to english?
Mark Iantorno (Jan 14 2021 at 18:54):
please include all the details in the ticket and I will address
Kristof Taveirne (Jan 18 2021 at 10:37):
Hi,
No problem, will log the issue.
Language is set to English
If I rename my messages.properties file to something else, then the validation messages are available.
So, org.hl7.fhir.core is finding the messages.properties from my package instead.
You're probably using classpath*:messages.properties somewhere.
Kristof Taveirne (Jan 18 2021 at 10:49):
I've logged the issue (https://github.com/hapifhir/org.hl7.fhir.core/issues/416) but can't assign to you.
Last updated: Apr 12 2022 at 19:14 UTC