Stream: implementers
Topic: Java Validator exists()
Patrick Werner (Apr 26 2020 at 13:17):
I just validated an example with the newest Java Validator and got a Exception on fhirpath: exists()
Exception in thread "main" java.lang.Error: Not done yet (ValidatorHostServices.resolveFunction): exist at org.hl7.fhir.validation.instance.InstanceValidator$ValidatorHostServices.resolveFunction(InstanceValidator.java:224) at org.hl7.fhir.r5.utils.FHIRPathEngine.parseExpression(FHIRPathEngine.java:861) at org.hl7.fhir.r5.utils.FHIRPathEngine.parseExpression(FHIRPathEngine.java:897) at org.hl7.fhir.r5.utils.FHIRPathEngine.parseExpression(FHIRPathEngine.java:897) at org.hl7.fhir.r5.utils.FHIRPathEngine.parse(FHIRPathEngine.java:328) at org.hl7.fhir.r5.utils.FHIRPathEngine.parse(FHIRPathEngine.java:321)
IIRC exists was working in a older Version of the validator. Is this a regression or should this work?
Grahame Grieve (Apr 26 2020 at 20:14):
exists
vs exist
?
Patrick Werner (Apr 27 2020 at 06:29):
nope :-/
Will debug into it today.
Grahame Grieve (Apr 27 2020 at 06:46):
L861 is preceeded by Function.fromCode, which includes:
if (name.equals("exists")) return Function.Exists;
Grahame Grieve (Apr 27 2020 at 06:46):
Not done yet (ValidatorHostServices.resolveFunction): exist
looks a great deal like a spelling mistake to me
Patrick Werner (Apr 27 2020 at 07:00):
to me as well. But searching the profile didn't find exist (without a s in it) Will keep looking.
Grahame Grieve (Apr 27 2020 at 09:37):
what is the example?
Patrick Werner (Apr 27 2020 at 11:58):
Ok, found the exist.... finally. Sorry for bothering.
Last updated: Apr 12 2022 at 19:14 UTC