Hi, all. Hoping you could help. I have a form that has a date field (calendar drop down). The physician would like the date to auto-populate with the clinical date that was selected at the start of the update (when the encounter was created). Is there a way to do that? Possibly an if-then? Tried finding an obsterm to tie in there but couldn't find one.
This is the chart note translation:
{CFMT(DOCUMENT.DATE_OF_SURG, "", "Date of Surgery ", "B", " ")}
Thank you in advance.
Kathy Lugo
210-547-1406
Ear Medical Group
Try this:
{!if DOCUMENT.DATE_OF_SURG == "" and DOCUMENT.FormOpen == "" then
DOCUMENT.DATE_OF_SURG = sub(str(DOCUMENT.CLINICALDATE),1,10)
DOCUMENT.FormOpen = "YES" else "" endif}
DOCUMENT.FormOpen is a “hidden” variable which will be set to YES after the form opens; this will allow the user to enter a different date should they need to. Without setting that variable also, the form will re-set the DATE_OF_SURG field to the document
date every time the form is opened (which may not be the date they want to use).
The translation won't need to change.