Useful SmartLinks for Builders

This section draws attention to a few SmartLinks that allow Builders to accomplish data retrieval, formatting and analysis steps. Some SmartLinks enable text automation results not supported by typical Foundation SmartTools.

CERMSG, CERMSGREFRESH - Rule Conditional Text (HHS 64343, 14042)

This SmartLink allows one or more (CER) rules to be evaluated and either the associated error messages or specified SmartTexts to be returned to the hosting document. The SmartLink does not support embedded parameter settings. Parameters include rule identifiers, SmartText identifiers and settings affecting result formatting. There is little value in replicating this SmartLink. However, it can be embedded in SmartPhrases with all needed user-provided settings so that the SmartPhrase represents exactly how the builder intends CERMSG to behave.


CUIPAT, CUIENC - Retrieve Patient-level SmartData (HHS 224)

SmartData is often associated with FlowSheets, SmartForms and other documentation automation tools. Indeed, SmartData elements can be defined for a specific documentation purpose, adding to the vast number of already defined data variables and definitions in the Epic system. When there a need to pull a SmartData value into a documentation tool, the CUI class of SmartLinks can help. CUIPAT is pre-set for patient-level SmartData, whereas CUIENC for encounter-level data and CUIEPI for episode-level data. The configuration settings are similar.

User Entered Simple

1. CUI. Enter the SDE to display. #s are restricted, so replace # with *. This parameter is the only required parameter. Example: EPIC*123 

2. Options. Enter the letters corresponding to the options you would like to use. Note that the order doesn't matter. 

3. Label. Enter the label text 

4. Data Mapping. Specify the conditions for data mapping SDEs to plain text values. Separate the From and To text with a colon (:). Example 1:True:0:False where a raw value of 1 will be displayed as True, 0 as False. Note that with the exception of *, only alphanumeric characters should be used in this parameter. Using other characters may produce unexpected results. This is good for SDE concept lists where the SDE name is stored as the data value. Instead of displaying the SDE name, you can map the name to a real value. 

5. EAP ID. Not used in the encounter context; only relevant for SmartLink SDEORD [226]. 

6. Formatting. Determines the formatting to use if the SmartLink shows height, weight, time, date, or instant information. Note that weight and height formatting are performed only when the SmartData element is classified as a string within the record itself. If the SmartData element shows height information, enter 22 to use the height units configured in clinician profiles. If the SmartData element shows weight information, enter 23 to use the weight units configured in clinician profiles. If the SmartData element shows date and time information, follow the steps for the option that you want to use: * To choose a date and time format, enter a value from the Date: US Pattern (I E4K 1010) category list, then a caret (^), and then a value from the Time: US Pattern (I E4K 2010) category list. For example, enter 10^15 to use the MM/yyyy date format and the H:mm time format. * To choose only a date format, enter a value from the Date: US Pattern (I E4K 1010) category list and then a caret (^). For example, enter 10^ to use the MM/yyyy date format. * To choose only a time format for SmartData elements that show only time, enter a value from Time: US Pattern (I E4K 2010) category list and then a caret (^). For example, enter 15^ to use the H:mm time format. Note that time with unit formats are not available. * To choose only a time format for SmartData elements that show both date and time, enter a caret (^) and then a value from Time: US Pattern (I E4K 2010) category list. For example, enter ^15 to use the H:mm time format. Note that time with unit formats are not available. 

7. SDE Line Number. For SDEs with multiple lines of data, specify which line of data to return. When this parameter is set to 1, only the first value appears; when it is set to 2, only the value from line #2 appears; and so on. Set it to -1 to return the value for the last non-null line. When it is null (""), all values appear. This user-entered parameter is ignored if the SmartLink's 6th parameter ("First or Last") is configured. Note that the second piece of the SmartLink's Link parameter (or the user-entered Option parameter, depending on your configuration) determines whether values from only the current encounter are checked or whether past encounters are checked when no values have been filed in the current encounter. Past encounters can be checked when an E is included in this piece. Otherwise, only the current encounter is checked. 

8. Not used. 

9. Not used. 

10. Not used. 


SmartLink Advanced

Example:

DBLINK - Retrieve Data from Master Files (HHS 38001)

There may be a need to pull a specific item of information into SmartText or SmartPhrases but no currently available SmartLink capturing that data. A new SmartForm may be developed, for example, with no Foundation SmartLinks configured to work with the SmartData elements in that SmartForm. 

User Entered Simple

DBLINK can be used as-is. When the link is inserted into SmartText, SmartPhrase or documentation objects, it accepts the following parameters:

Example


SmartLink Advanced

A new SmartLink can be created with options for more precise controls. This may be indicated if there is a database element frequently needed and not otherwise supported by available SmartLinks.

To use this method, set up the SmartLink without a code template or user-entered parameters. Enter the link code in the format that uses 13 parameters:

Parameters:

Example


DELRECITEM

Displays delivery information stored in an item in a delivery record. The SmartLink has the following parameters which can be user-entered or SmartText/SmartPhrase specified. Commonly used parameters:

Template: @DELRECITEM(HSB,NNN,,,,,,,,,,,,,)@

    • Delivering provider: 35322
    • Delivery date: 35159
    • Delivery method: 35413
    • Anesthesia: 35317
    • Lacerations: 35157
      1. If the item is a category item, the available options are:
        1 - Title
        2 - Abbreviation
        3 - Title and Number
        4 - Abbreviation and Number
        5 - Category Number
      2. If the item is networked to another master file, the available options are:
        15 - Record ID
        16 - Record Name
        17 - Record Name and ID
      3. If the item is a .2, the available options are:
        11 - First Name Last Name
        12 - Last Name, First Name
        13 - First Name Last Name and ID
        14 - Last Name, First Name and ID
      4. If the item is a number, the available options are:
        20 - Financial format
        21 - Interval format
      5. If the item is related to a weight or height measurement, the available options are 22 - Weight format and 23 - Height format, respectively. If you use values 22 and 23, the units are based on your profile and system-wide settings for units. The following logic is used to determine which units appear for weight and height:
        - If there is a unit specified for the patient's age on the Weight Validation or Height Validation screens in the user's profile, that unit is used.
        - If there is no unit specified in those locations and there is a unit specified for the patient's age on the Weight Settings or Height Settings screens in EMR System Definitions, that unit is used.
        - If there is no unit specified in those locations and there is a unit specified in the Height and Weight field on the Unit Display and Entry screen in the user's profile, then that unit is used.
        - If there is no unit specified in that location and the Use Metric Units Only? field is set to Yes in your Epic Country Definitions (E4K) record, metric units are used (grams and centimeters). If that field is not configured, English units are used (pounds and inches).
      6. If the item is a date, the available options are:
        X^ where X is an E4K 1010 category value

        If the item is a time, then the available options are:
        Y^ where Y is an E4K 2010 category value

        If the item is an instant, then the available options are
        X^Y where x is an E4K 1010 category value and y is an E4K 2010 category value

        AHS  standard  date format is 11 and standard time format is  13

      1.  Sentence case
      2. Title Case
      3. lower case
      4. UPPER CASE

10. Determines whether to show all lines of data for multiple response items on a single line. Enter 1 to show multiple lines of data on separate lines. Leave blank to show all lines of data on a single line, separated by semicolons.

12. Specifies the free text message that appears if there is no data for the item. If left blank, nothing appears if there is no data for the item.

14. Specifies free text for the item label. If left blank or there is no data for the item, no label appears.

15. Determines whether to show a blank line if multiple copies of this SmartLink are used in a SmartText and the SmartLink has no data for its item. Enter 1 to not show a blank line if the SmartLink has no data for its item. If left blank, a blank line appears if this SmartLink has no data for its item.

PRINTGROUP (HHS 35008)

This SmartLink can be used to pull the content of print groups (LPG) into text documentation. The link does not support user-provided parameters and so should be copied and renamed before configuring the replica with a desired print group ID and a few details about formatting of the returned content.

RULESMARTLINK, RULESMARTLINKREFRESH (HHS 60402, 60404)

Displays information based on a rule record. You can choose to show parts of the SmartLink that match the rule criteria, if the rule evaluates to true, or if the rule is false. For example, you can create a rule to evaluate if the patient speaks Spanish. If the rule is found to be true, a SmartLink with Spanish text is used. If the rule is found to be false, a SmartLink with English text is used.

The SmartLink does not support embedded parameter settings and so there is little value in replicating this SmartLink. However, it can be embedded in SmartPhrases with all needed user-provided settings so that the SmartPhrase represents exactly how the builder intends RULESMARTLINK to behave.

This SmartLink has the following user-entered parameters:

FLOW, AHSFLOW - Retrieve Flowsheet Data (HHS 101428)

LPPLINK

This SmartLink can be used to display data from an extension (LPP). The extension must exist in a LPPLINK allowlist (HDF-2459).

SNETLINK template - copy for SmartLinks to pull in specific networked patient encounter data

SLink Command Tag

Calls code d SLink^SNETLINK(ID,DAT,path,frmt,date,time,inst,cat,trim,inln,conj,futr,primaryLangOnly) with 13 configurable parameters:

Examples

AcctLink tag

This tag calls the code d AcctLink^SNETLINK(ID,DAT,EARpath,HARpath,frmt,date,time,inst,cat,trim,inln,conj,futr,primaryLangOnly) and has 14 customizable parameters:

Examples:

CvgLink tag

This tag calls the code d CvgLink^SNETLINK(ID,DAT,path,MCpath,frmt,date,time,inst,cat,trim,inln,conj,futr,primaryLangOnly) and has 14 customizable parameters:

Examples: