It seems I've done this in other forms, but how would I go about pulling in the following three values into a form? I'd like to pull in the patient's primary phone from registration (regardless of whether it's home, work, cell, other). I'd also like to pull in their email address and the visit provider (not necessarily PCP or Referring, but the provider who the encounter was opened under).
Update: I've got these working. I'm using DATA fields.
For the Phone, I have MEL expression PATIENT.PHONE1
For the Email, I have MEL expression PATIENT.EMAIL.
For the Visit Provider, I have MEL expression DOCUMENT.PROVIDER.
Chris, the phone numbers are PATIENT.ALTPHONE which help says is usually the home phone, PATIENT.CELLPHONE, PATIENT,WORKPHONE, and the least likely used PATIENT.FAXPHONE and PATIENT.PAGERPHONE.
If you wanted to prioritize a particular phone, you could do something like this:
COND
CASE PATIENT.CELLPHONE <> ""
DOCUMENT.PHONE = PATIENT.CELLPHONE
CASE PATIENT.ALTPHONE <> ""
DOCUMENT.PHONE = PATIENT.ALTPHONE
CASE PATIENT.WORKPHONE <> ""
DOCUMENT.PHONE = PATIENT.WORKPHONE
ELSE
DOCUMENT.PHONE = "No phone number registered for patient"
ENDCOND
This would give you the cell phone, if it existed as first choice, and if the patient didn't have one, the home phone, etc.