I'm trying to update our patient banner to display the different Portal 8 Link Actions METHCONTACT observation values from pg 3 in the Centricity Patient Portal Getting Started Guide.
We are currently using just one value, with the old PIN generator patient registration workflow. Now we would like to roll out the new Add from Chart registration, and the Link Action identifiers "unlinked", "linked", and "active."
Can someone point out the MEL fix for this? I keep getting compiler errors in my test banner for this section.
{if (obsany("METHCONTACT")=="messaging") then "Messaging:Yes"
or (obsany("METHCONTACT")=="linked") then "Messaging:Linked"
or (obsany("METHCONTACT")=="active" )then "Messaging:Active"
or (obsany("METHCONTACT")=="Unlinked") then "Messaging:unlinked"
else "" endif}
This is what we are using now and works fine, but I would like to include the new values for any new registrations once we turn this on.
{if obsany("METHCONTACT")=="messaging" then "Messaging:Yes" else "" endif}
Thank you for any help with this.
Here is ours for patportalpin I have removed the images we use with placeholders but should give you some insight on the if's, which you need more of I expect.
{if
(OBSANY("PATPORTALPIN")= "Y") or (OBSANY("PATPORTALPIN")= "The patient has been signed up for the patient portal") then "IMAGE1REMOVED"
else if (OBSANY("PATPORTALPIN")= "I") or (OBSANY("PATPORTALPIN")= "The patient has been given documentation to sign up for the portal on their own") then "IMAGE2REMOVED"
else if (match(pATIENT.EMAIL,"@")<>0 or match(pATIENT.EMAIL,".")<>0) and PATIENT.EMAIL<>"" then "IMAGE3REMOVED" else ''
endif
endif
endif}
Please check your syntax. MEL requires a conditional for each statement, meaning you cannot utilize a single if-then and follow it with subsequent 'OR-then' statements. For each 'then', you need an 'if' and 'endif' pairing. You can chain these utilizing the 'else' keyword.
Try:
<code>
{if (obsany("METHCONTACT")=="messaging") then "Messaging:Yes" else
if (obsany("METHCONTACT")=="linked") then "Messaging:Linked" else
if (obsany("METHCONTACT")=="active" )then "Messaging:Active" else
if (obsany("METHCONTACT")=="Unlinked") then "Messaging:unlinked" else "" endif endif endif endif}
</code>
Lee, this works perfect, thank you. I see where I missed the extra 'endif' conditionals and should have used the 'then' rather than 'or'. I had used 'then' in a previous attempt but missed the extra endifs before as well.
Thank you for your help with this.
SLHV, I like the idea of using a small graphic rather than the text and would be curious to learn how you use these, and which patient registration process you are using. We are currently still using the PIN generator and patient letter at our front desk and are looking at updating this to the new Add to Chart, or Link to Chart option, where we could completely set up the patient's portal account and just provide the temporary password.