I am trying to create a new handout to be printed, hopefully, from a button on the form. Before I finished the whole thing, I went in to test what I have and it is not working. What is frustrating is I am doing it the same way some other handouts are set up so I don't understand what it's problem is. The fields that are pulling obsterms aren't doing anything at all. I even tried using 'obsany' instead of 'obsnow'. The Caregiver/Proxy? line is giving an error: {CFMT(DOCUMENT <-COMPILER ERROR NEARBY: Expect COMMA OR RIGHT PARENTHESIS. Instead had IDENTIFIER after IDENTIFIER
What am I missing? It doesn't look any different from handouts that are currently working - or I've just looked at it too long and I'm overlooking it! We are currently on CPS 12.0.13.
Here is the handout code:
Patient Name: {PATIENT.LABELNAME} DOB: {PATIENT.DATEOFBIRTH} Patient ID: {PATIENT.PATIENTID}
{CFMT(OBSANY("CCMDIAGNOSIS"), "", "Chronic Diagnosis: ", "B", "
")}
{CFMT(DOCUMENT.CAREGIVER_PR, "", "Caregiver/Proxy?: ", "B", "
")}
{CFMT(OBSANY("CAREGIVR NME"), "", "Caregiver Name: ", "B", " ")} {CFMT(OBSANY("CAREGIVEPH"), "", "Phone Number: ", "B", "
")}
DEMOGRAPHIC INFORMATION TO CONSIDER WHEN CARE PLANNING
{CFMT(OBSANY("LIVINGSIT"), "", "Patient Resides: ", "B", " ")} {CFMT(OBSANY("RISKLEVELCM"), "", "Risk Stratification: ", "B", "
")}
I'm not sure if this is the answer, but try changing the line that you are getting the error on from a document variable to an obs term. I'm thinking the handout is outside of the scope of the visit and doesn't know that your document variable exists.
Have you tried copying and pasting into Notepad, then back into Centricity? MEL does not handle code copied from other sources well. It all looks the same, but can cause issues like this.
Just a thought.
Copying it into notepad worked! I had been using Wordpad because I was told it would work as well but I guess not...at least if you are trying to pull in obsterms, etc.
Thanks!