hl7au / au-fhir-base

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

Au Base Condition Profile invariants #151

Closed SatyaYelisetti closed 6 years ago

SatyaYelisetti commented 6 years ago

Hi Brett,

Can you please check the invariants in Condition Profile. After testing i didnt find them working as they are supposed to so below is a proposed change, replace the existing FHIRpath with below mentioned ones after having a look:

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

  2. con-4: If condition is abated, then clinicalStatus must be either inactive, resolved, or remission: abatement.empty().not() implies clinicalStatus='resolved' or clinicalStatus='remission' or clinicalStatus='inactive'

Sample XML to test the above FHIR path's in FHIRpath TESTER:

<?xml version="1.0" encoding="UTF-8"?>
<Condition xmlns="http://hl7.org/fhir">
   <clinicalStatus value="active"/> 
  <verificationStatus value="confirmed"/> 
  <subject> 
    <reference value="Patient/example"/> 
  </subject>  
</Condition> 
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