Extensions (LPP)

SmartForm Server-side Scripting Functions

Extensions can be used to perform server-side (cache) scripting, giving the ability to programmatically perform some data manipulation actions that are not supported within SmartForms. Most commonly, a particular type of SmartForm may not support display or editing of a specific patient data (EPT) record. To work with that information, it may be possible to manage a SmartData element within the form and to set the value of that element from the EPT record while loading the form, then return the SDE value the EPT record on closing the form.

Cache Code

Core data management functions draw from the "HULIB100" library for SmartForm scripting. Callable tags include:

SmartForm Script - Set Date Field

LPP 37963 (IP SMARTFORM SCRIPTING SET DEFAULT DATE) can be copied and used to set the value of a SmartForm Field of "Date" type (usually data bound to an SDE element). When this programming extension is added as a scripting action to the AfterDataLoaded event of the RootComponent, it will set a default date for the field when the form is loaded. The same functionality can be attached to other events (e.g., command buttons to set the date of a related field).

SmartForm Script - Set Label Caption from CER Message

LPP 42320 (ES SMARTFORM SET LABEL CAPTION) can be copied and used to set the caption of a SmartForm Label object

SmartForm Script - Set SmartForm Bound EPT Value from CER Message

LPP 42940 (ES SET RULE ERROR IN SMARTFORM FIELD) can be copied and used to set the value of a SmartForm Field object. 

SmartForm Script - Append Values to a List

LPP 24516 (SMARTFORM APPEND VALUES) can be copied and used to add values to a List, SmartGrid or a SmartText Box component via SmartForm Scripting.

Custom SmartForm Extensions

Rule to SmartData - Update SmartData element from error message from a rule

SmartData to Flowsheet - Set Flowsheet Row Value from SDE Value - Category or String

SmartData to Flowsheet - Set Flowsheet Row Value from SDE Value - Date Only

SmartData to Flowsheet - Set Flowsheet Row Value from SDE Value - Multi-select

SmartData to SmartData - Update one SmartData element from another (equivalent type) SDE


Resources