Manage Forms: Using Show If to make Visit specific forms available only during the specified Visit Type

From the discussions below it was concluded that Show If does not support visit types (at least not yet) but, as a workaround one could use the Login location feature in the Reference Application.

According to Senkomago @ssmusoke

" I do not think VisitType is supported within the configurations, I am only aware of locations at this point which is what we use."

See this thread Displaying HTML entry forms based on login session in reference application

So I think that sheds some light, for example you can create some “child” login locations for the different visit areas for example MCH Clinic and then display only MCH forms for people logging in to that location.

Senkomago makes it clear here:

The UgandaEMR ANC form display is https://github.com/METS-Programme/openmrs-module-aijar/blob/master/omod/src/main/webapp/resources/htmlforms/071-IntegratedAntenatalRegister.xml#L10

The location e9bc61b5-69ff-414b-9cf0-0c22d6dfca2b is the MCH Clinic

You can look at the demo:

url: http://bit.ly/ugandaemr-demo Username: manager Password: Manager123