firely-net-sdk
firely-net-sdk copied to clipboard
Validating System of patternCodeableConcept or patternCoding
Is your feature request related to a problem? Please describe.
Issue from @alexzautke. Also internally discussed in Slack
When validating a patternCodeableConcept
or patternCoding
the Java validator will try to resolve the system(s) in the given coding(s). If it not resolvable, an error is raised. Would you consider this to be feasible / something we would want to do as well?
Describe the solution you'd like Option in the validator to enable this?
We think is it a good idea to create here a custom rule for this. But only when we have the new validator in place, because otherwise we have to implement this twice, and it is easier to implement this in the new validator (well, that is the theory :wink:
While working on Firely Server, I've encounter yet another rule that the Java validator enforce and we don't. It claims that the system MUST be absolute. For example the following snippet is rejected by the Java validator whereas it passes the .NET validator without warnings / errors:
{
"resourceType": "Observation",
"status": "final",
"code": {
"text": "test"
},
"valueQuantity": {
"value": 123,
"code": "test",
"system": "invalid-system"
}
}