I need to pass the user login name from GET_USER_LIST to send to the orders module for authorizing provide. I would need my drop to display the first name last name of the user for the sake of whomever is entering the order knowing who there setting instead of going by the login name. Hope I explained that right.
Any help would be great thanks in advance!
you could probably do this by either doing conditional statements ie if user.loginname == smithj then document.provider == "John Smith" then set your MEL_ADD_ORDER to pull from document.provider
alternatively, I think you could also pull user.realname
That would work I would have to do it for 100+ providers. I think I may can by pass it all as long as clinical staff switches the responsible provider of the document. Testing it that way keep the provider in the authorizing by field of the orders module regardless of who was signed in.
That makes more sense to do. as far as needing to do it for that many providers, I'm wondering if you could write a function to match the real name to the correct user login.
did you get this sorted out? It might be worthwhile for me to look into building this functionality as well so if I have the chance, I can look into it a bit further. I'm thinking a pipes delimited array, loop it, create another array and pull the username and real name. If document.provider matches the real name, then push the username into the order.
Currently I haven't worked further on this.