Hi,
I'm trying to get a list of providers to populate in a dropdown box, but I don't think there is a MEL function to do so. I only want providers from certain locations of care to show up.
Any thoughts on whether this is possible?
All you need to do is to set your dropdown as a dynamic list and put in this:
{GET_USER_LIST("LOCName","Provider","comma")}
I haven't tried multiple LOCs, but it looks like you can use a comma-separated list. Not sure about syntax. "LOC1,LOC2,LOC3" ? Here's the description from Centricity help:
GET_USER_LIST()
description
Returns a list of users for a given location of care (LOC) and role
type
data symbol function
syntax
GET_USER_LIST (LOC_list, Role_list, list_type)
arguments
LOC_list
Comma separated list of users' home location - a higher location of care will return everyone at that location and the sub-locations.
Role_list
Comma separated list of roles or "" for all roles.
List_type
The format to be returned
comma - returns a comma delimited list of user login names