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}
Sirna said:
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
Here is ours, see if it helps you:
{PATIENT.LABELNAME} Nickname: {if PATIENT.NICKNAME = "" then "None" else PATIENT.NICKNAME endif} {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} MR: {PATIENT.MEDRECNO} PCP: {if PATIENT.PCP = "" then "None" else PATIENT.PCP endif} ACM: {if (obsany("METHCONTACT")=="secmsg" AND PATIENT.EMAIL<>"<a href="mailto:") AND (match(PATIENT.EMAIL,"@")0">") AND (match(PATIENT.EMAIL,"@")<>0 OR match(PATIENT.EMAIL,".")<>0) THEN "Messaging" ELSE if obsany("PATPORTALPIN")=="Declined" THEN "Declined Portal"ELSE if (obsany("METHCONTACT")=="phone" AND PATIENT.EMAIL<>"<a href="mailto:") AND (match(PATIENT.EMAIL,"@")0">") AND (match(PATIENT.EMAIL,"@")<>0 OR match(PATIENT.EMAIL,".")<>0) THEN PATIENT.ALTPHONE ELSE if (obsany("METHCONTACT")=="work" AND PATIENT.EMAIL<>"<a href="mailto:") AND (match(PATIENT.EMAIL,"@")0">") AND (match(PATIENT.EMAIL,"@")<>0 OR match(PATIENT.EMAIL,".")<>0) THEN PATIENT.WORKPHONE ELSE if (obsany("METHCONTACT")=="cell" AND PATIENT.EMAIL<>"<a href="mailto:") AND (match(PATIENT.EMAIL,"@")0">") AND (match(PATIENT.EMAIL,"@")<>0 OR match(PATIENT.EMAIL,".")<>0) THEN PATIENT.CELLPHONE ELSE if (obsany("METHCONTACT")=="" AND PATIENT.EMAIL<>"<a href="mailto:") AND (match(PATIENT.EMAIL,"@")0">") AND (match(PATIENT.EMAIL,"@")<>0 OR match(PATIENT.EMAIL,".")<>0) AND OBSANY("PATPORTALPIN")<>"" THEN "Pending" ELSE if (obsany("METHCONTACT")=="" AND PATIENT.EMAIL<>"<a href="mailto:") AND (match(PATIENT.EMAIL,"@")0">") AND (match(PATIENT.EMAIL,"@")<>0 OR match(PATIENT.EMAIL,".")<>0) AND OBSANY("PATPORTALPIN")=="" THEN "Verify" ELSE if obsany("PATPORTALPIN")<>"" AND obsany("METHCONTACT")=="mail" THEN "US Mail" ELSE "No Portal Access" ENDIF ENDIF ENDIF ENDIF ENDIF ENDIF ENDIF ENDIF}
{PATIENT.FORMATTEDAGE} ({Patient.DateOfBirth}) {PATIENT.SEX} Prim Ins: {if INS_PLAN("P")= "" then "None" else INS_PLAN("P") endif} Sec Ins: {if INS_PLAN("S")= "" then "None" else INS_PLAN("S") endif}
Home: {if PATIENT.ALTPHONE = "" then "None" else PATIENT.ALTPHONE endif} Work/Alt: {if PATIENT.WORKPHONE = "" then "None" else PATIENT.WORKPHONE endif} Cell: {if PATIENT.CELLPHONE = "" then "None" else PATIENT.CELLPHONE endif}
{if PATIENT.PSTATUS = "A" then "Patient ID: " + PATIENT.PATIENTID else "" endif} REG NOTES: {PATIENT.REGNOTE}