firely-net-sdk icon indicating copy to clipboard operation
firely-net-sdk copied to clipboard

Validating System of patternCodeableConcept or patternCoding

Open marcovisserFurore opened this issue 4 years ago • 2 comments

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?

marcovisserFurore avatar Feb 01 '21 14:02 marcovisserFurore

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:

marcovisserFurore avatar Feb 01 '21 14:02 marcovisserFurore

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"
    }
}

alexzautke avatar May 01 '22 17:05 alexzautke