Does anyone know of a way to display the provider information in the patient instructions when a referral is entered through the orders module? It would be great to have the specialists name, address and phone number on the instructions rather than hand the patient a business card when they leave the office.
Great idea! Is this possible?
There are some functions to do this, but they don't really work well for this instance:
ORD_SERV_PROV_NAME() ORD_SERV_PROV_ADDR() ORD_SERV_PROV_PHONE()
Using these will pull the name, address, and phone number of the service provider for the most recently added order. As you can probably tell, you would have to make sure your referral is the last order added for this to work.
A more sure-fire way of doing this requires a bit more coding. You'll need to pull out the service provider details from ORDERS_NEW("delimited"). Here is where the information is held:
Order type: 2 (so you can tell if the order is a referral or not)
Serv Prov Name: 13
Serv Prov Specialty: 14
Serv Prov Org: 15
Serv Prov Addr: 16
Serv Prov Phone: 17