Kernel 8.0 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

$$TYPE^XPDPROT(): Get Protocol Type

Reference Type: Supported, Category: Menu Manager, ICR#: 5567

Description

The $$TYPE^XPDPROT extrinsic function returns the value of the TYPE (#4) field in the PROTOCOL (#101) file for the input protocol IEN.

NOTE: This API was released with Kernel Patch XU*8.0*547.

Format

  $$LKPROT^XPDPROT(protocol_ien)

Input Parameters

protocol_ien:

(required) The protocol's internal entry number (IEN) in the PROTOCOL (#101) file.

Output

returns:

Returns the one character TYPE (#4) field value in the PROTOCOL (#101) file for the input protocol IEN. For example:

  • A—Action: Same as the X type, except any existing sub-items are not executed.

  • M—Menu: This type is used for displaying and selecting items.

  • O—Protocol: This value is strictly related to the Add orders function. It is the same as the Q type, except the protocol is the item selected. Protocols are directly executed when encountered.

  • Q—Protocol Menu: This value is strictly related to the Add orders function. It is used for displaying and selecting orderable items during the add sequence. When this type of protocol is encountered OE/RR prompts the user with "Select PATIENT:," "LOCATION:," and "Provider:," and execute the transaction logic for the new orders screen.

  • L—Limited Protocol: This value is strictly related to the Add orders function. It is the same as the O type, except any existing sub-items are not executed.

  • X—Extended Action: Protocols of this type execute the entry action plus all sub-items.

  • D—Dialog

  • T—Term

  • E—Event Driver

  • S—Subscriber