hl7au / au-fhir-base

AU Base FHIR Implementation Guide Source
36 stars 26 forks source link

Au Base AllergyIntolerance Profile invariants #154

Closed SatyaYelisetti closed 6 years ago

SatyaYelisetti commented 6 years ago

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:

  1. ait-1: AllergyIntolerance.clinicalStatus SHALL be present if verificationStatus is not entered-in-error: verificationStatus!='entered-in-error' implies clinicalStatus.exists()

  2. 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:

<?xml version="1.0" encoding="UTF-8"?>
<AllergyIntolerance xmlns="http://hl7.org/fhir">
  <clinicalStatus value="active"/> 
  <verificationStatus value="entered-in-error"/> 
  <patient> 
    <reference value="Patient/example"/> 
  </patient> 
</AllergyIntolerance> 
SatyaYelisetti commented 6 years ago

Closing this issue as this was raised in erroe here and now raised in gforge at https://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemEdit&tracker_item_id=17885