I know you can use PATIENT.RESPPROVID (or also PATIENT.PCP) to include the PCP name in the patient banner.
However, what if we want to show anything else about the PCP (similar to there being more options for RefMD (PATIENT.REFMDALTPHONE)? I do not see any MEL built-ins to be able to display more info on the PCP.
I thought about something like:
FIND("USER","PHONE",?,PATIENT.RESPPROVID)
But... I do not see a way to link the full-name provided by PATIENT.RESPPROVID back into the USER file where I place the '?'. At least what I am looking at seems to have the USER file with entries for FIRST, MIDDLE, LAST.
Is there a field I am missing, or some other trick?
We would like to make a note about the PCP, store it in the USER file, and then be able to display (when set) to remind everyone of the status (or restrictions) on certain PCP's.
Thanks.
You can get the user for responsible provider like this -
find("_userSearch","lastName","RealName",PATIENT.RESPPROVID)
But the detail you want is probably in doctorfacility, not usr. It doesn't look like there is an easy way to join those, plus a lookup but the users listname is not that reliable, you could have two users with the same list name.
If I needed info like this, I would probably just use a query, but obviously you have to have separate tools in place to do that.