Openmrs display tag
This is being (will be) built in the ui_refactoring branch.
<openmrs:display size="short|normal|long" tooltip="true|false" link="true|false" ... />
size:
- defaults to normal
- 'short' is the shortest meaningful display (e.g. shortname for a concept, name for a person)
- 'normal' is the standard display
- 'long' is something like "name (description)"
tooltip:
- if not specified, defaults to false when size == 'short', and true otherwise
- 'true' have a short (info) icon after the name that shows more info when hovered over
- 'false' nothing
link:
- defaults to false
- 'true' if possible have a link to the relevant page for this object, e.g. the patient dashboard for a patient
- 'false' nothing
Allowed parameters:
- concept or conceptId
- person or personId
- patient or patientId
- user or userId
- location or locationId
- encounterType or encounterTypeId
- ...
Examples: <openmrs:display size="short" conceptId=5089"/> --> WEIGHT <openmrs:display size="normal" conceptId="5089"/> --> <small>5089</small> WEIGHT (KG) <openmrs:display size="long" conceptId="5089"/> --> <small>5089</small> WEIGHT (KG) <small>The patient's weight, in kilograms</small>
