Details
-
Technical Correction
-
Resolution: Not Persuasive
-
Medium
-
FHIR Core (FHIR)
-
R4
-
Patient Care
-
Condition
-
Description
Condition con-4: If condition is abated, then clinicalStatus must be either inactive, resolved, or remission
{
"resourceType": "Condition",
"id": "69fa1876-6ad9-4735-9f6d-28378b57a03a",
"clinicalStatus": {
"coding": [
]
},
"code": {
"coding": [
]
},
"subject":
,
"onsetDateTime": "2019-09-15T18:30:00+00:00",
"abatementDateTime": "2019-09-25T18:30:00+00:00",
"recordedDate": "2019-09-16T05:44:24+00:00"
}
fails the validation. Test is
test="not(exists(*[starts-with(local-name(.), 'abatement')])) or exists(f:clinicalStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-clinical' and f:code/@value=('resolved', 'remission', 'inactive')])"
Seems like the test should be
test="not(exists(*[starts-with(local-name(.), 'abatement')])) or not(exists(f:clinicalStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-clinical' and f:code/@value=('resolved', 'remission', 'inactive')]))"