-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No code found in instance when there is a code #632
Comments
The validator complains that you have given a coded field (here: ), but did not actually pass in a code. The code in the nullflavour does not count - that's merely stating WHY there is no code given. But the fact remains that there is no code given for the route. So what should the validator do? Just let this pass? That means that I could make valid instances without picking a code from a valueset - in the worst case even when this is a required binding - just by throwing in any extension. I will reach out to @grahamegrieve to find out what the Java validator would do (and under which circumstances). |
Hi Grahame - what does you validator do when evaluating a code against a binding and: There is no code given (empty CodeableConcept) This is what the Java validator does: Grahame Grieve: depends on the binding strength Grahame Grieve: if it's extensible, it's an error if there's no text Grahame Grieve: otherwise it's not an error |
So, we will need to adapt the validator to use the same approach. |
Fixed by #931. |
See https://chat.fhir.org/#narrow/stream/4-implementers/subject/value.20or.20child.20or.20Null.3F
Validating this will give an error on
Bundle.entry[0].resource[0].dosageInstruction[1].route[0]
:Code Invalid : No code found in instance.
The text was updated successfully, but these errors were encountered: