Difference between revisions of "Lists and Layouts"
From OpenEMR Project Wiki
Bradymiller (talk | contribs) |
(document return value.) |
||
Line 1: | Line 1: | ||
OpenEMR has build in mechanisms for storage, modification, and output of lists and layouts. A [[ | OpenEMR has build in mechanisms for storage, modification, and output of lists and layouts. A [[List of Lists]] is available to describe the uses of each of the lists. | ||
== Layout API == | == Layout API == | ||
Line 27: | Line 27: | ||
| library/options.inc.php | | library/options.inc.php | ||
| draw a field in the 'show' view, AKA, the style of the history page. | | draw a field in the 'show' view, AKA, the style of the history page. | ||
| generate_display_field returns a html fragment, with the field's contents displayed within. | |||
|} | |} | ||
Line 41: | Line 42: | ||
'''What is missing?'''<br> | '''What is missing?'''<br> | ||
* A generic method to display the layout input forms. | * A generic method to display the layout input forms. | ||
Revision as of 09:04, 10 December 2011
OpenEMR has build in mechanisms for storage, modification, and output of lists and layouts. A List of Lists is available to describe the uses of each of the lists.
Layout API
The layout API is usable by forms, who want to have their fields editable through the layouts editor.
Function | Include | Source | Reason | Returns |
---|---|---|---|---|
display_layout_rows() | library/api.inc | library/options.inc.php | display the given record in the view of the given layout | |
generate_form_field() | library/api.inc | library/options.inc.php | draw a field for input in the 'view' view, AKA, the view/edit page. | |
generate_display_field() | library/api.inc | library/options.inc.php | draw a field in the 'show' view, AKA, the style of the history page. | generate_display_field returns a html fragment, with the field's contents displayed within. |
Functions in the openemr/library/options.inc.php file:
- get_layout_form_value() is to collect specific layout form values.
- generate_layout_validation() is for layout form validation.
Functions in openemr/library/translations.inc.php:
- xl_list_label() ; Translates via the xl() function only if globals.php is set to translate lists.
- xl_layout_label() ; Translates via the xl() function only if globals.php is set to translate layouts.
What is missing?
- A generic method to display the layout input forms.