I am working on a custom form that contains visibility regions based on the providers specialty. I have a dropdown list that can be used to manually choose the providers specialty but I would like it to default to the document providers specialty by default. Same way the HPI-CCC form works. Can anyone offer guidance on how to set this up?
Consider using:
GET_USER_SPECIALTY(str(USER.LOGINNAME))
The specialty, as entered into the EMR, should match a value in your specialty list. You might need to use 'toupper' or 'tolower' to match case, if that is an issue. For differences in characters, you would need an entirely different workflow that would crosswalk the returned values to the values in your list.
For some reason, your response, which was present, is now missing, so I will respond in the hope that you see it.
Since you need it to pull from the document's provider, you could use:
DOCUMENT.PROVIDER
GET_USER_LIST
Note that these use different formats for the name, so you would also need to use:
USER.LASTNAME
USER.FIRSTNAME
USER.MIDDLENAME
Create a function that builds the different formats using the 'USER.' symbols. If a match is found, grab the specialty and break out of the function. Done. 🙂