I have placed the following code into a new patient banner to display the method of contact for the portal as an indicator for the office staff that a patient is active on the portal. However, it states No Portal Access. Please see below and let me know if I am missing something! Thanks!
{PATIENT.LABELNAME} {if PATIENT.PSTATUS = "X" then "DECEASED: " + PATIENT.DATEOFDEATH else "" endif}{if PATIENT.PSTATUS = "I" then "INACTIVE" else "" endif}{if PATIENT.PSTATUS = "O" then "OBSOLETE" else "" endif} Home: {if PATIENT.ALTPHONE = "" then "None" else PATIENT.ALTPHONE endif} Work: {if PATIENT.WORKPHONE = "" then "None" else PATIENT.WORKPHONE endif}
{PATIENT.FORMATTEDAGE}, {PATIENT.SEX} (DOB: {Patient.DateOfBirth}) Patient ID: {PATIENT.PATIENTID} Insurance: {INS_PLAN()} Group: {INS_GRP()} Contact By: {if (obsany("METHCONTACT")=="secmsg" AND PATIENT.EMAIL<>"") AND (match(PATIENT.EMAIL,"@")<>0 OR match(PATIENT.EMAIL,".")<>0) THEN "Messaging" ELSE if (obsany("METHCONTACT")=="phone" AND PATIENT.EMAIL<>"") AND (match(PATIENT.EMAIL,"@")<>0 OR match(PATIENT.EMAIL,".")<>0) THEN "Phone" else if (obsany("METHCONTACT")=="cell" AND PATIENT.EMAIL<>"") AND (match(PATIENT.EMAIL,"@")<>0 OR match(PATIENT.EMAIL,".")<>0) THEN "Cell" else if (obsany("METHCONTACT")=="home" AND PATIENT.EMAIL<>"") AND (match(PATIENT.EMAIL,"@")<>0 OR match(PATIENT.EMAIL,".")<>0) THEN "Home" ELSE "No Portal Access" ENDIF ENDIF ENDIF ENDIF}
I have been trying a similar modification.
pref Name: {PATIENT.NICKNAME} Legal Name:{PATIENT.LABELNAME} {if PATIENT.PSTATUS = "X" then "DECEASED: " + PATIENT.DATEOFDEATH else "" endif}{if PATIENT.PSTATUS = "I" then "INACTIVE" else "" endif}{if PATIENT.PSTATUS = "O" then "OBSOLETE" else "" endif}{if PATIENT.PSTATUS = "A" then "Patient ID: " + PATIENT.PATIENTID else "" endif} Phone Number(s): {IF PATIENT.ALTPHONE <> "" THEN cfmt(PATIENT.ALTPHONE,"","Home:"," ") ELSE "" ENDIF} {IF PATIENT.CELLPHONE <> "" THEN cfmt(PATIENT.CELLPHONE, "","Cell:", "") ELSE "" ENDIF} {IF PATIENT.WORKPHONE <> "" THEN cfmt(PATIENT.WORKPHONE,"","Work:"," ") ELSE "" ENDIF} {PATIENT.FORMATTEDAGE} {PATIENT.SEX} (DOB: {Patient.DateOfBirth})
PCP: {if PATIENT.PCP = "" then "None" else PATIENT.PCP endif} CM / CP: {LASTOBSVALUE("NRSE CSE MGR")} Insurance: {INS_PLAN()}
Group: {INS_GRP()}
Contact By: {if (obsany("METHCONTACT")=="secure message" AND PATIENT.EMAIL<>"<a href="mailto:") AND (match(PATIENT.EMAIL,"@")0">") AND (match(PATIENT.EMAIL,"@")<>0 OR match(PATIENT.EMAIL,".")<>0) THEN "Secure messaging" ELSE if (obsany("METHCONTACT")=="cell phone" AND PATIENT.EMAIL<>"<a href="mailto:") AND (match(PATIENT.EMAIL,"@")0">") AND (match(PATIENT.EMAIL,"@")<>0 OR match(PATIENT.EMAIL,".")<>0) THEN "Cell Phone" ELSE if (obsany("METHCONTACT"=="mail" AND PATIENT.EMAIL<>"") AND
(match(PATIENT.EMAIL,"@")<>0 OR match(PATIENT.EMAIL,".")<>0)) THEN "mail" ELSE "Not Recorded" ENDIF ENDIF}
I receive the following error.
<-COMPILER ERROR NEARBY: RIGHT CURLY BRACE was unexpected after ENDIF KEYWORD
Were you able to resolve your issue.
Thanks.
John