I would like to have a button that when clicked would show for example the previous colonoscopy date as a view box only for the user. I have seen these in other forms but I am not sure how to write one.
Any assistance appreciated.
I think what you are looking for is the userok.
THIS IS FROM THE CENTRICITY PRACTICE SOLUTION HELP
USEROK
description: Displays a window and prompts the user for an "ok" to continue.
type: MEL utility function
syntax
userok(prompt)
arguments
prompt
The prompt text to display in the dialog box.
returns
A window with a text prompt and an OK button
For version 5.5, returns zero (0).
For version 5.6, returns FALSE.
comment
Use this function to confirm a step or action, or alert the user to specific information.
System Alert. If you put this data symbol in the chart banner, the prompt displays before the chart banner in the background is updated. This could mislead users because the prompt may not apply to the displayed chart. Make sure to add the patient name to the prompt text to ensure that users associate the correct patient with the prompt.
example 1
{userok("Order has been sent.")}
example 2
{USEROK("Order has been sent for " + PATIENT.FIRSTNAME + " " + PATIENT.LASTNAME)}
example 3
{IF PATIENT.SEX == "F" then if USEROK(PATIENT.LABELNAME +" is Female") = 0 or FALSE then "" else "" ENDIF else if USEROK(PATIENT.LABELNAME +"is MALE") = 0 or FALSE then "" else "" ENDIF ENDIF}
Try using USEROK("Current Colonoscopy: " + OBSANY("COLONOSCOPY") ) as the RUNPROCESS text for your button. You can use LAST_SIGNED_OBS() or OBSANY() or OBSNOW() or any of the functions that display the OBS term you are looking for