Stream: conformance
Topic: Validation options on different platforms
Morten Ernebjerg (Nov 28 2019 at 14:53):
I was wondering if there exists a list of libraries for validation on different platforms/languages. I particularly mean libraries that do not necessarily provide full "gold standard" validation, but still work with custom profiles (i.e. go beyond JSON schema validation against the base resource schemata). Apart from the Java/HAPI validator and the Simplifier/Vonk one, the only one I am aware of is the fhir NPM package. The validation page from the spec does not mention a lot of options, but maybe I just looked in the wrong places.
Lloyd McKenzie (Nov 28 2019 at 15:46):
@Grahame Grieve
Grahame Grieve (Nov 28 2019 at 15:47):
I don't know of any other options. There was a pascal option, but I just can't keep that up to date
Morten Ernebjerg (Dec 02 2019 at 08:35):
OK, thanks! Are there thoughts about making the Java validator available on other platforms via cross-platform "bridges", e.g. smt. like Kotlin native?
BTW, @nicola (RIO/SS), how do you handle validation for AidBox/fhirbase?
nicola (RIO/SS) (Dec 02 2019 at 08:45):
OK, thanks! Are there thoughts about making the Java validator available on other platforms via cross-platform "bridges", e.g. smt. like Kotlin native?
BTW, nicola (RIO/SS), how do you handle validation for AidBox/fhirbase?
In Aidbox we compile SD to extended JSON-SCHEMA and use it for validation!
Morten Ernebjerg (Dec 02 2019 at 09:05):
@nicola (RIO/SS) Ah, thanks! When you say "extended JSON-SCHEMA", do you mean that you "pad" the schema validator with custom validation logic e.g. for constraints?
nicola (RIO/SS) (Dec 02 2019 at 09:06):
Yes, we added couple of custom keywords to json-schema :)
Grahame Grieve (Dec 02 2019 at 09:40):
Are there thoughts about making the Java validator available on other platforms via cross-platform "bridges",
well, sort of. I defined NativeHostServices to make it easy (easy-ish) to load the validator in any server
Morten Ernebjerg (Dec 02 2019 at 11:51):
@Grahame Grieve Good to know, didn't know about that.
Grahame Grieve (Dec 02 2019 at 12:19):
It’s intended to be easy to use across JNI
Last updated: Apr 12 2022 at 19:14 UTC