Stream: implementers
Topic: Condition con-4 error
Andreas (Apr 25 2018 at 12:33):
I have a problem while trying to implement a Condition (https://www.hl7.org/fhir/condition-definitions.html). When setting an abatement with a datetimetype, and clinicalstatus as INACTIVE I am getting a con-4 error when validating the condition. This seems strange, as it should conform with con-4.
Grahame Grieve (Apr 25 2018 at 12:41):
what's an example? and what is reporting the error?
Andreas (Apr 25 2018 at 12:52):
I have a Condition written in Java, with a couple of fields that validates OK. I want to extend this Condition by adding on an abatement. So i set the abatement with a dateTimeType, and change the clinicalStatus from ACTIVE to INACTIVE as described in con-4 as being valid. But when passing the updated resource with the changes to FhirValidator, it gives back the following error, and declares the validation as not successful:
"SingleValidationMessage[myLocationCol=-1,myLocationRow=-1,myLocationString=Condition @ /:Condition[namespace-uri()='http://hl7.org/fhir'][1],myMessage=[error] Condition @ /:Condition[namespace-uri()='http://hl7.org/fhir'][1]; Test=not(f:abatementBoolean/@value=true() or (not(exists(f:abatementBoolean)) and exists(*[starts-with(local-name(.), 'abatement')])) or f:clinicalStatus/@value=('resolved', 'remission', 'inactive')); Message=con-4: If condition is abated, then clinicalStatus must be either inactive, resolved, or remission,mySeverity=error]"
This is using dstu3
Grahame Grieve (Apr 25 2018 at 12:59):
so I think this is the C# validator?
Brian Postlethwaite (Apr 25 2018 at 22:04):
Doesn't look like it.
Grahame Grieve (Apr 25 2018 at 22:05):
I don't recognize SingleValidationMessage from the other validators (which I write)
Brian Postlethwaite (Apr 25 2018 at 22:08):
That's the xpath content being showed, the .net validator uses the fhirpath expression
Grahame Grieve (Apr 25 2018 at 22:21):
true. so do my validators
Thomas Johansen (May 22 2018 at 07:54):
@Grahame Grieve I have the same issue. Using HAPI FHIR, Java. Are there any obvious issues with this output?
Last updated: Apr 12 2022 at 19:14 UTC