Skip to content

.NET and Java validator comparison

Marten Smits edited this page Nov 27, 2020 · 18 revisions

We are in the process of comparing the Java and .NET validators to achieve better alignment between the two. As input we use: https://github.com/FHIR/fhir-test-cases/tree/master/validator

STU3 files:

Filename Differences Comment
bug824/bug824-resource.json Java code thows errors about unknown extensions (should it?) and false codes from unitsofmeasure.org
bundle-documentation-miss-last-updated.json Java throws warning about a code that isn't in the valueset (extensible), should we too? separate rules defined from Bundle text
bundle.document.json Java throws erros on not being able to resolve references, indead of warning in .NET separate rules defined from Bundle text
qr-ex.json "Unable to recolve profile" is an error in .NET and two warnings in Java
bad-display.json Bad displayname, and code not in valueset, both warnings
message-infinite-loop.xml .NET validator breaks at parsing, Java throws 22 errors about about extensions and codes, then 5 about bundle references
valueset-slicing-meds.xml Values matched to multiple slices, but Java return 0 errors….
valueset-slicing-meds-bad.xml Values matched to multiple slices, which is correct, but we throw two, while java only returns a single No fix needed
qr-required-missing.json Java validates QuestionnaireResponses to Questionnaires, .NET doesn't support that
bundle-ref.xml Java Validator should throw "unknown unit", .NET just succeeds.
q-coepi.json Parsing throws exception on "TODO", java validator also return 43 other errors.
nl/nl-patient-date.json Fails on finding multiple profiles with the same canonical URL Should fix in test engine
Clone this wiki locally