Dropdown-like user experience for tmp projects: Difference between revisions

No edit summary
No edit summary
 
Line 6: Line 6:


To set up a dropdown, enter multiple lines in the [[s_tmp table]] that have the same value for "study" (corresponds to "project") and the options in the "value" (corresponds to "item") field. The dropdown list can be sorted by entering a sort index in [[s_tmp]].order. Collectors can then enter a project and then an item.  
To set up a dropdown, enter multiple lines in the [[s_tmp table]] that have the same value for "study" (corresponds to "project") and the options in the "value" (corresponds to "item") field. The dropdown list can be sorted by entering a sort index in [[s_tmp]].order. Collectors can then enter a project and then an item.  
See the [[s_tmp table]] for examples.


{{Ex|
{{Ex|
Line 20: Line 22:
}}
}}


This can be combined with [[Automatic Generation of TMP entries#using tmp entries to generate a dropdown-like user experience for temporary projects]] to add an item "not entered yet" when new admissions are entered. [[Data Integrity Checks]] can be added to disallow sending with "not yet entered".
This can be combined with [[Automatic Generation of TMP entries#using tmp entries to generate a dropdown-like user experience for temporary projects]] to add an item "not entered yet" when new admissions are entered. [[Data Integrity Checks]] can be added to disallow sending with "not yet entered".\
 
== implementation ==
This is driven by some code that updates the dropdown source for the item combobox when the project combobox triggers a change event. This happens both in [[Patient Viewer Tab Tmp]] and in [[TmpV2 editor]] form.


== Related articles ==  
== Related articles ==