Has anyone created a Custom Patient banner and had luck getting the layout to stay consistent between patient charts??? Here is what I have set up in the custom banner I am working on:
{PATIENT.FIRSTNAME} {PATIENT.MIDDLENAME}. {PATIENT.LASTNAME} ({PATIENT.NICKNAME}){if PATIENT.PSTATUS = "A" then "\t" else "" endif}{if PATIENT.PSTATUS = "X" then "\t" + "*DECEASED*" else "" endif}{if PATIENT.PSTATUS = "I" then "\t" + "*INACTIVE*" else "" endif}{if PATIENT.PSTATUS = "O" then "\t" + "*OBSOLETE*" else "" endif}{"\t"}Language: {PATIENT.PREFLANG} Insurance: {INS_PLAN()}
{PATIENT.FORMATTEDAGE} - {PATIENT.SEX} - DOB: {PATIENT.DATEOFBIRTH} Home: {PATIENT.ALTPHONE} Cell: {PATIENT.CELLPHONE}
The second line of the Banner keeps the same layout but there is not really any variation in the amount of characters that line will contain.(Age-Sex-DOB Home: Cell:)
The first line is the one I am having trouble with. There should be 2 tabs between (Name-Status) and (Language-Insurance). I would expect it to be somewhat different based on the length of the patients name but that is not necessarily the case. It seems to be altered by the Patient Insurance. See screen shots below.
Here is what I wrote for our facilities. It probably could be cleaned up as I haven't looked at it in probably a year, but you can probably use it to help with the spacing issues (specifically look at the for statement, it adds spaces based off the size of the variable):
{
if size(PATIENT.LABELNAME) < 45
then
local c = 0
local d = ""
for c=size(PATIENT.LABELNAME), c<45, c=c+1
do
d=str(d + " ")
endfor
PATIENT.LABELNAME + str(d)
else
PATIENT.LABELNAME
endif
}{if PATIENT._AGEINMONTHS > 24 and PATIENT._AGEINMONTHS <= 216 then " " else "" endif}{if PATIENT.ALTPHONE "" then "Home:" else "" endif}{if PATIENT.ALTPHONE = "" and PATIENT.CELLPHONE "" then "Cell:" else ""endif}{if PATIENT.CELLPHONE = "" and PATIENT.ALTPHONE = "" then " " else "" endif} {if PATIENT.ALTPHONE = "" then PATIENT.CELLPHONE else PATIENT.ALTPHONE endif}{if PATIENT.CELLPHONE = "" and PATIENT.ALTPHONE = "" then " " else "" endif} Pref. Contact: {PATIENT.CONTACTBY} PCP: {PATIENT.PCP} {if PATIENT._AGEINMONTHS > 227 OR REGGUARANTOR() = "" then "" else "Guarantor: " endif}{if PATIENT._AGEINMONTHS > 227 OR REGGUARANTOR() = "" then "" else REGGUARANTOR() endif} Patient ID: {PATIENT.PATIENTID} {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.SEX = "M"
then
PATIENT.FORMATTEDAGE + " - " + PATIENT.SEX + " - DOB: " + PATIENT.DATEOFBIRTH + " "
else
PATIENT.FORMATTEDAGE + " - " + PATIENT.SEX + " - DOB: " + PATIENT.DATEOFBIRTH
endif
} {if PATIENT.WORKPHONE "" then "Work: " else " " endif}{PATIENT.WORKPHONE} Pharmacy: {REGPHARMACY()} Email: {PATIENT.EMAIL}
Thanks,
Jonathan