Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added link for adding custom forms

...

Under the Configure Metadata screen, there is now a new app to "Manage Forms".  This is a new feature in OpenMRS 2.1.  It is now possible to add custom forms to the new user interface without any custom programming!  When you initially enter Manage Forms, it shows you a list of forms that exist in the system.  Obviously, before you can configure where a custom form will appear in the system, you must create the form.  Both HTML and XForms are supported, but they must be created through the legacy user interface, under System Administration - Advanced Administration.

...

Show If - Do you want to display the form only if the patient has certain characteristics?  Perhaps you would only want a maternal health form to be visible on the patient dashboard of a female patient.  You would use something like "patient.person.gender=='F' && patient.person.birthdate < '2001-01-01T00:00:00.000+0000' && patient.person.dead==false".  Or show if males with an active visit "visit.active && patient.person.gender=='M' ". Or show if the patient has a current visit and they are currently admitted. , "visit.active && visit.admitted". For more information on what properties are available, see the Conditionally displaying Apps and Extensions page.

If you are replacing a built-in form, with a new custom form, you can view the configuration of the integrated forms in the source code.

...