We found this while implementing a fix to https://github.com/openhealthcare/elcid/issues/1557 - @fredkingham and I were looking into what hide_discharge_action does and found that a) the flag hide_discharge_action doesn't appear to be set anywhere in the Opal or Elcid codebases, and b) this expression will assignhide_discharge_action=true, which always returns true and therefore the ng-show span is always shown, irrespective of the state of hide_discharge_action.
fix:
[ ] <span ng-show="hide_discharge_action===true">
[ ] consider whether hide_discharge_action should be set somewhere else in the code?
In elcid-uch /elcid/templates/wardrounds/discharged_detail.html we have:
https://github.com/openhealthcare/elcid/blob/d33f828efc14aae2a58534ce886250666c58cd86/elcid/templates/wardrounds/discharged_detail.html#L30
We found this while implementing a fix to https://github.com/openhealthcare/elcid/issues/1557 - @fredkingham and I were looking into what
hide_discharge_action
does and found that a) the flaghide_discharge_action
doesn't appear to be set anywhere in the Opal or Elcid codebases, and b) this expression will assignhide_discharge_action=true
, which always returnstrue
and therefore theng-show
span is always shown, irrespective of the state ofhide_discharge_action
.fix:
<span ng-show="hide_discharge_action===true">
hide_discharge_action
should be set somewhere else in the code?