{% load opalplugins %}
<p
   ng-hide="episode.category != 'inpatient'")
   >
  <button 
     ng-hide="profile.readonly"
     ng-click="dischargeEpisode(episode)"
     class="btn btn-primary btn-sm">
      <i class="fa fa-home"></i>
      <span ng-show="episode.discharge_date">Confirm</span>
      Discharge
  </button>
</p>
{% application_actions %}

{% load opalplugins %}
<p
   ng-hide="episode.category != 'inpatient' || hide_discharge_action == true")
   >
  <button 
     ng-hide="profile.readonly"
     ng-click="dischargeEpisode(episode)"
     class="btn btn-primary btn-sm">
      <i class="fa fa-home"></i>
      <span ng-show="episode.discharge_date">Confirm</span>
      Discharge
  </button>
</p>
{% application_actions %}

Add a javascript variable that allows wardrounds, detail pages to hide the (confirm) discharge button.
Add a javascript variable that allows wardrounds, detail pages to hide
the  (confirm) discharge button.

refs openhealthcare/elcid#574
