The ScriptPatient functions are available on the "pt" object in any script context, such as a tablet rule or within an eForm Action script.
| Function | Description | Example Expression (Boolean) |
|---|---|---|
| getAge() | Returns age in years |
|
| getAgeInMonths() | Returns age in months |
|
| getAgeInWeeks() | Returns age in weeks |
|
| isFemale() | Returns true if female, false if not |
|
| isMale() | Returns true if male, false if not |
|
| getReasonForVisit() | Returns the patient's reason for visit (not supported for all EMRs) |
|
| getCppItemKeys(cppListKey) | Returns a string array of the patient profile items. Available keys will vary by EMR. See Medication Reconciliation eForm for an example of Rx profile item. |
|
| getCppItemData(cppListKey) | Returns a key-value table for a CPP item with a specified list key and item key. |
|