Filtering HTML form display using Patient age attribute in 2.0 Platform

How can i use the patient age attribute under the ‘Show If’ option(Configure Metadata > Manage Forms ) to display a specific HTML form in the patient’s dashboard only if a patient meets a specific age?

I added some (quick, not very good) documentation about what properties are available. You can read that here: https://wiki.openmrs.org/x/35GQBQ

Limiting by age isn’t directly available. You can try to hack around with the patient.person.birthdate property, or (better!) you can add age to PersonContextModel in the coreapps module, and use that.

1 Like