I would like to use a text component to pull the patient's pcp and referring physician into a note. I want to pull the provider's name and credentials, however "REGPROVIDER" pulls way more information that I need. Does anyone know how to only pull certain pieces out using "regprovider" symbol?
We cannot use the "PATIENT.REFMD..." SYMBOLS because we store the provider's credentials in the "suffix" field and there isn't a symbol for that (that I can find).
Thanks in advance!
Hello,
REGPROVIDER has an option for getting a list of delimited results. I am not sure how much data you are getting back, but it is common to sort through a delimited field using arrays and for loops to get a specific piece of information. I can see that REGPROVIDER returns a name in field 1 and a suffix in field 2, so if you just want a name and credentials, the text component would look something like this:
{fn getRefProv(){
tempArray = GETFIELD(REGPROVIDER("refphys","","delimited"),"^","")
return tempArray[1] + ", " + rempArray[2]
}}
Referring Physician: {getRefProv()}
When used in a chart, it would show up as:
Referring Physician: Bob Oblaw, MD
If you post or email me what shows up when you run the REGPROVIDER code in your system, I could help you build the exact code. Let me know if you have any questions.
Happy coding,
Daniel Carpenter ([email protected])
Oh my goodness, that is exactly what I was looking for!! It pulls the name and credentials and that's all I need.
Thank you, your help is greatly appreciated!
Ionela