Jump to content

abdisner

Registered Users - Approved
  • Posts

    1
  • Joined

Posts posted by abdisner

  1. Hello,

     

    First time caller long time listener. So I have 2 complex if then statement where I need one word or a series of words to be bold and everything else to be in a regular type face. Please see below for the first rule:

     

     

     

     

     

    if (Field("Application any criteria") == "Yes")

    {

    var show = '<p style="(no style)" br="false" override="true" quad="L" leading="130" findent="0" lindent="0" rindent="0" leadbefore="0" leadafter="200" keeplines="true" widows="1" kerning="false" hyphenate="false" skipifempty="false" skipifemptyvar="false" noparabreakoncopyfit="false">'+

    '<tracking newsize="0">'+

    '<f Name="MHC Din Regular">'+

    '<z newsize="10.0">'+

    '<color Name="PMS 361 CMYK">';

    show += 'Apply Mepilex Border Heel if patient meets any of the following criteria:';

    show += '<p style="(no style)" quad="L" leading="130" findent="0" lindent="0" rindent="0" leadbefore="0" leadafter="200" keeplines="true" widows="1" kerning="false" hyphenate="false" skipifempty="false" skipifemptyvar="false" noparabreakoncopyfit="false">'+

    '<tracking newsize="0">'+

    '<f Name="MHC Din Light">'+

    '<z newsize="10.0">'+

    '<color Name="Black">';

    if(Field("Show Braden Score") == "Yes") show += "<•> Braden Score below "+ Field("Braden Below") +"<br>";

    if(Field("Show Cardiovascular") == "Yes") show += "<•> Cardiovascular or peripheral vscular disease<br>";

    if(Field("Show Vasopressor Medications") == "Yes") show += "<•> Vasopressor Medications for <f name=Arial><>></f> 48 hrs<br>";

    if(Field("Show SHOCK") == "Yes") show += "<•> Shock (septic, hypovolemic, cardiogenic)<br>";

    if(Field("Show Heel Pressure") == "Yes") show += "<•> Past history of heel pressure ulcer(s)<br>";

    if(Field("Show Redness") == "Yes") show += "<•> Current redness in heel area<br>";

    if(Field("Show OpProcedures") == "Yes") show += "<•> Anticipated operative procedure lasting <f name=Arial><>></f> 4 hours<br>";

    if(Field("Show Quad_Para_Hemi") == "Yes") show += "<•> Quadriplegic, paraplegic or hemiplegic<br>";

    if(Field("Show CVA") == "Yes") show += "<•> Cerebral Vascular Accident (CVA)<br>";

    if(Field("Show Traction") == "Yes") show += "<•> Traction<br>";

    if(Field("Show Reposition") == "Yes") show += "<•> Inability to reposition oneself (due to pain, injury or nerve block)<br>";

    if(Field("Show Orthopedic") == "Yes") show += "<•> Orthopedic hardware on the lower extremity<br>";

    if(Field("Show Nerve") == "Yes") show += "<•> Nerve block to the lower extremity<br>";

    if(Field("Show Capillary") == "Yes") show += "<•> Capillary refill to toes <f name=Arial><>></f> 3 seconds<br>";

    if(Field("Show Agitation") == "Yes") show += "<•> Agitation causing movement of the legs and friction to the heel<br>";

    if(Field("Show Offloading") == "Yes") show += "<•> Inability to tolerate heel offloading boots<br>";

    if(Field("Show EF") == "Yes") show += "<•> Ejection Fraction (EF) <f name=Arial><>></f> 25%<br>";

    return show;

    }

    else return "";

     

     

    So, the line in red is the line where I need "any" to be bolded and the rest to be regular

     

     

     

     

     

    The next rule is a bit more complex:

     

    if (Field("Application 3 or More") == "Yes")

    {

    var show = '<p style="(no style)" br="false" override="true" quad="L" leading="130" findent="0" lindent="0" rindent="0" leadbefore="0" leadafter="200" keeplines="true" widows="1" kerning="false" hyphenate="false" skipifempty="false" skipifemptyvar="false" noparabreakoncopyfit="false">'+

    '<tracking newsize="0">'+

    '<f Name="MHC Din Regular">'+

    '<z newsize="10.0">'+

    '<color Name="PMS 361 CMYK">';

    show += Rule("3orMore_Rule");

    show += '<p style="(no style)" quad="L" leading="130" findent="0" lindent="0" rindent="0" leadbefore="0" leadafter="200" keeplines="true" widows="1" kerning="false" hyphenate="false" skipifempty="false" skipifemptyvar="false" noparabreakoncopyfit="false">'+

    '<tracking newsize="0">'+

    '<f Name="MHC Din Light">'+

    '<z newsize="10.0">'+

    '<color Name="Black">';

    if(Field("Show Edema")=="Yes") show += '<•> Edema to the lower extremities<br>';

    if(Field("Show Knee")=="Yes") show += '<•> Knee or hip surgery<br>';

    if(Field("Show Age")=="Yes") show += '<•> Age '+Field("Age Above")+' or above<br>';

    if(Field("Show Diabetic")=="Yes") show += '<•> Diabetic neuropathy <br>';

    if(Field("Show Liver")=="Yes") show += '<•> Liver failure<br>';

    if(Field("Show Renal")=="Yes") show += '<•> Renal failure<br>';

    if(Field("Show Malnutrition")=="Yes") show += '<•> Malnutrition (albumin at or below 2.5)<br>';

    if(Field("Show BedRest")=="Yes") show += '<•> Prolonged bed rest of 4 hours AND patient unable to reposition oneself (due to pain,<br>   injury or nerve block)<br>';

    if(Field("Show Obesity")=="Yes") show += '<•> Morbid obesity<br>';

    if(Field("Show Claudication")=="Yes") show += '<•> Intermittent claudication<br>';

    return show;

    }

    else return "";

     

    So, the line in red is the line where I need just part of the Rule to return in Bold

    Please see below for the "3orMore_Rule":

     

    if (Field("Application 3 or More") == "Yes")

    {

    if (Field("3orMore_DropDown") == "3 or more of the following")

    return "Apply Mepilex Border Sacrum if patient meets 3 or more of the following criteria:<br>";

    else

    if (Field("3orMore_DropDown") == "2 or more of the following")

    return "Apply Mepilex Border Sacrum if patient meets 2 or more of the following criteria:<br>";

    else

    if (Field("3orMore_DropDown") == "1 or more of the following")

    return "Apply Mepilex Border Sacrum if patient meets 1 or more of the following criteria:<br>";

    else

    if (Field("3orMore_DropDown") == "the following")

    return Resource("following_headline");

    else

    return "";

    }

    else

    {

    if (Field("Application 3 or More") == "No")

    return "";

    else

     

    return "";

    }

     

     

    The phrase in red are what to return in a Bold typeface.

    Any help would be greatly appreciated.

     

    Thanks So Much!

×
×
  • Create New...