FHIR Chat · Validator: new output for constraints · tooling

Stream: tooling

Topic: Validator: new output for constraints


view this post on Zulip Maximilian Reith (May 07 2021 at 10:24):

Hey
the output for constraint errors changed from:

Version 5.2.20:
Error @ Bundle (line 1, col37) : Pruefung-Patient-Adresse: Die Adresszeile der Ressource vom Typ Patient ist nicht korrekt - folgender Ausdruck muss 'true' sein: [entry.select(resource as Patient).address.line = 'Siegburger Str. 155']

to

Version 5.3.2:
Error @ Bundle (line 1, col37) : Pruefung-Patient-Adresse: 'Die Adresszeile der Ressource vom Typ Patient ist nicht korrekt - folgender Ausdruck muss 'true' sein:' failed

just want to know if this output is final or just an error? since we would adapt our description to the new way

view this post on Zulip Grahame Grieve (May 07 2021 at 11:38):

which validator? How did you run it?

view this post on Zulip Maximilian Reith (May 08 2021 at 11:11):

It was the hl7-validator (versions mentioned above). What do you mean by: how did you run it? Is there any way to influence this output?

view this post on Zulip Grahame Grieve (May 08 2021 at 21:00):

maybe. mainly, I want to reproduce it. I can't think of a reason this changed off the top of my head

view this post on Zulip Maximilian Reith (May 11 2021 at 08:22):

ValidatorOutputConstraints.zip

here is a zip which include all necessary files: in command.txt is the call

view this post on Zulip Grahame Grieve (May 14 2021 at 01:41):

ok, so looking at this, I was misdirected by the language thing. And I do have work to do there, but the actual change you're asking about was deliberate - users didn't want to see FHIRPath appearing in their error messages

view this post on Zulip Maximilian Reith (May 14 2021 at 07:17):

@Grahame Grieve Okay...do you know already in which direction this output may change, since we don't want to change our texts continually

view this post on Zulip Pieter Edelman (May 17 2021 at 14:11):

I just want to add that we encountered the same issue. Our QA pipeline broke (somewhat) because the Validator started to output different error messages, so it would be nice to have a stable target that we can aim for.


Last updated: Apr 12 2022 at 19:14 UTC