Lab Result Search Logic

The results that labs return to iSalus often aren't structured how we may expect. For instance, we may expect a certain number, but what's returned is a range, like "< 4" or "25 - 30." It's important to note that numeric values allow for much more reporting flexibility than non-numeric values, and that the results of this report will only be as good as the lab data received. 

It will go through the following steps to find results:

  1. First, this report will find all Lab Measures that contain the text entered in Lab Measure to Search. If the lab is assigned to a fishbone, the fishbone will also be checked for the text. 
  2. If Separate by Lab Type is set to No, then the report will find the last lab date from #1. It will then try to find if there are any qualifying values from that date only. 
  3. If Separate by Lab Type is set to Yes, then the report will find the last lab date for each unique lab measure in #1. For each unique lab measure, it will look on the last date that lab came in to see if there are qualifying values from that date. For this reason, there is the potential to have multiple lines for a patient on this report, as there will be one for each distinct lab measure that has a qualifying value on its last date returned. 
  4. Qualifying values are:
    1. If Result Type was selected to be 'alpha,' a qualifying value contains the parameter Result Value that was entered. 
    2. If Result Type was selected to be 'number,' a qualifying value meets the condition [result] [parameter Operator] [parameter Result Value], i.e. result < 20.