Can you please check the invariants in AllergyIntolerance Profile. After testing i didnt find them working as they are supposed to so below are some proposed changes, replace the existing FHIRpath with below mentioned ones after having a look:
ait-1: AllergyIntolerance.clinicalStatus SHALL be present if verificationStatus is not entered-in-error:verificationStatus!='entered-in-error' implies clinicalStatus.exists()
ait-2: AllergyIntolerance.clinicalStatus SHALL NOT be present if verification Status is entered-in-error:verificationStatus='entered-in-error' implies clinicalStatus.exists().not()
Sample XML to test the above FHIR path's in FHIRpath TESTER:
Hi Brett,
Can you please check the invariants in AllergyIntolerance Profile. After testing i didnt find them working as they are supposed to so below are some proposed changes, replace the existing FHIRpath with below mentioned ones after having a look:
ait-1: AllergyIntolerance.clinicalStatus SHALL be present if verificationStatus is not entered-in-error:
verificationStatus!='entered-in-error' implies clinicalStatus.exists()
ait-2: AllergyIntolerance.clinicalStatus SHALL NOT be present if verification Status is entered-in-error:
verificationStatus='entered-in-error' implies clinicalStatus.exists().not()
Sample XML to test the above FHIR path's in FHIRpath TESTER: