Edit the Vitals Form in Reference Application

I tried another approach which meets my requirements to some extend but still I need to apply condition when this form should appear.

Steps:

  1. I have created a Discharged Form v2 in HTML Form Entry
  2. Also I set the correct UUID value for formUuid and formEncounterType attributes in Discharged Form v2. (you can get UUID from Forms>Manage Forms)
  3. I have Retired the built-in form ( Discharge (Sample) ). When i retired the built-in form it is disappeared from Current Visit Actions.
  4. Set the UI location for Discharged Form v2 in Home>Configure Metadata>Manage Forms

My form (Discharged Form v2) appears in Current Visit Actions but I want this form should appear only when the patient is admitted as inpatient.

How can I use “Show If” field to display the form only if it is inpatient?

.