当前位置: 首页>>代码示例>>PHP>>正文


PHP lookup_code_descriptions函数代码示例

本文整理汇总了PHP中lookup_code_descriptions函数的典型用法代码示例。如果您正苦于以下问题:PHP lookup_code_descriptions函数的具体用法?PHP lookup_code_descriptions怎么用?PHP lookup_code_descriptions使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了lookup_code_descriptions函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ActiveIssueCodeRecycleFn

function ActiveIssueCodeRecycleFn($thispid2, $ISSUE_TYPES2)
{
    ///////////////////////////////////////////////////////////////////////
    // Active Issue Code Recycle Function authored by epsdky (2014-2015) //
    ///////////////////////////////////////////////////////////////////////
    $modeIssueTypes = array();
    $issueTypeIdx2 = array();
    $idx2 = 0;
    foreach ($ISSUE_TYPES2 as $issueTypeX => $isJunk) {
        $modeIssueTypes[$idx2] = $issueTypeX;
        $issueTypeIdx2[$issueTypeX] = $idx2;
        ++$idx2;
    }
    $pe2 = array($thispid2);
    $qs2 = str_repeat('?, ', count($modeIssueTypes) - 1) . '?';
    $sqlParameters2 = array_merge($pe2, $modeIssueTypes);
    $codeList2 = array();
    $issueCodes2 = sqlStatement("SELECT diagnosis FROM lists WHERE pid = ? AND enddate is NULL AND type IN ({$qs2})", $sqlParameters2);
    while ($issueCodesRow2 = sqlFetchArray($issueCodes2)) {
        if ($issueCodesRow2['diagnosis'] != "") {
            $someCodes2 = explode(";", $issueCodesRow2['diagnosis']);
            $codeList2 = array_merge($codeList2, $someCodes2);
        }
    }
    if ($codeList2) {
        $codeList2 = array_unique($codeList2);
        sort($codeList2);
    }
    $memberCodes = array();
    $memberCodes[0] = array();
    $memberCodes[1] = array();
    $memberCodes[2] = array();
    $allowedCodes2 = array();
    $allowedCodes2[0] = collect_codetypes("medical_problem");
    $allowedCodes2[1] = collect_codetypes("diagnosis");
    $allowedCodes2[2] = collect_codetypes("drug");
    // Test membership of codes to each code type set
    foreach ($allowedCodes2 as $akey1 => $allowCodes2) {
        foreach ($codeList2 as $listCode2) {
            list($codeTyX, ) = explode(":", $listCode2);
            if (in_array($codeTyX, $allowCodes2)) {
                array_push($memberCodes[$akey1], $listCode2);
            }
        }
    }
    // output sets of display options
    $displayCodeSets[0] = $memberCodes[0];
    // medical_problem
    $displayCodeSets[1] = array_merge($memberCodes[1], $memberCodes[2]);
    // allergy
    $displayCodeSets[2] = array_merge($memberCodes[2], $memberCodes[1]);
    // medication
    $displayCodeSets[3] = $memberCodes[1];
    // default
    echo "var listBoxOptionSets = new Array();\n\n";
    foreach ($displayCodeSets as $akey => $displayCodeSet) {
        echo "listBoxOptionSets[" . attr($akey) . "] = new Array();\n";
        if ($displayCodeSet) {
            foreach ($displayCodeSet as $dispCode2) {
                $codeDesc2 = lookup_code_descriptions($dispCode2);
                echo "listBoxOptionSets[" . attr($akey) . "][listBoxOptionSets[" . attr($akey) . "].length] = new Option('" . attr($dispCode2) . " (" . attr(trim($codeDesc2)) . ") ' ,'" . attr($dispCode2) . "' , false, false);\n";
            }
        }
    }
    // map issues to a set of display options
    $modeIndexMapping = array();
    foreach ($modeIssueTypes as $akey2 => $isJunk) {
        $modeIndexMapping[$akey2] = 3;
    }
    if (array_key_exists("medical_problem", $issueTypeIdx2)) {
        $modeIndexMapping[$issueTypeIdx2['medical_problem']] = 0;
    }
    if (array_key_exists("allergy", $issueTypeIdx2)) {
        $modeIndexMapping[$issueTypeIdx2['allergy']] = 1;
    }
    if (array_key_exists("medication", $issueTypeIdx2)) {
        $modeIndexMapping[$issueTypeIdx2['medication']] = 2;
    }
    echo "\nvar listBoxOptions2 = new Array();\n\n";
    foreach ($modeIssueTypes as $akey2 => $isJunk) {
        echo "listBoxOptions2[" . attr($akey2) . "] = listBoxOptionSets[" . attr($modeIndexMapping[$akey2]) . "];\n";
    }
    ///////////////////////////////////////////////////////////////////////
    // End of Active Issue Code Recycle Function main code block         //
    ///////////////////////////////////////////////////////////////////////
}
开发者ID:mi-squared,项目名称:openemr,代码行数:86,代码来源:add_edit_issue.php

示例2: xl

     // output a header for each Issue Type we encounter
     $disptype = $ISSUE_TYPES[$irow['type']][0];
     echo "<div class='issue_type'>" . $disptype . ":</div>\n";
     $prevIssueType = $irow['type'];
 }
 echo "<div class='text issue'>";
 echo "<span class='issue_title'>" . $irow['title'] . ":</span>";
 echo "<span class='issue_comments'> " . $irow['comments'] . "</span>\n";
 // Show issue's chief diagnosis and its description:
 if ($diagnosis) {
     echo "<div class='text issue_diag'>";
     echo "<span class='bold'>[" . xl('Diagnosis') . "]</span><br>";
     $dcodes = explode(";", $diagnosis);
     foreach ($dcodes as $dcode) {
         echo "<span class='italic'>" . $dcode . "</span>: ";
         echo lookup_code_descriptions($dcode) . "<br>\n";
     }
     //echo $diagnosis." -- ".lookup_code_descriptions($diagnosis)."\n";
     echo "</div>";
 }
 // Supplemental data for GCAC or Contraception issues.
 if ($irow['type'] == 'ippf_gcac') {
     echo "   <table>\n";
     display_layout_rows('GCA', sqlQuery("SELECT * FROM lists_ippf_gcac WHERE id = '{$rowid}'"));
     echo "   </table>\n";
 } else {
     if ($irow['type'] == 'contraceptive') {
         echo "   <table>\n";
         display_layout_rows('CON', sqlQuery("SELECT * FROM lists_ippf_con WHERE id = '{$rowid}'"));
         echo "   </table>\n";
     }
开发者ID:ekuiperemr,项目名称:openemr,代码行数:31,代码来源:custom_report.php

示例3: while

     }
 }
 // display issues
 while ($row = sqlFetchArray($pres)) {
     $rowid = $row['id'];
     $disptitle = trim($row['title']) ? $row['title'] : "[Missing Title]";
     $ierow = sqlQuery("SELECT count(*) AS count FROM issue_encounter WHERE " . "list_id = ?", array($rowid));
     // encount is used to toggle the color of the table-row output below
     ++$encount;
     $bgclass = $encount & 1 ? "bg1" : "bg2";
     // look up the diag codes
     $codetext = "";
     if ($row['diagnosis'] != "") {
         $diags = explode(";", $row['diagnosis']);
         foreach ($diags as $diag) {
             $codedesc = lookup_code_descriptions($diag);
             $codetext .= htmlspecialchars($diag, ENT_NOQUOTES) . " (" . htmlspecialchars($codedesc, ENT_NOQUOTES) . ")<br>";
         }
     }
     // calculate the status
     if ($row['outcome'] == "1" && $row['enddate'] != NULL) {
         // Resolved
         $statusCompute = generate_display_field(array('data_type' => '1', 'list_id' => 'outcome'), $row['outcome']);
     } else {
         if ($row['enddate'] == NULL) {
             $statusCompute = htmlspecialchars(xl("Active"), ENT_NOQUOTES);
         } else {
             $statusCompute = htmlspecialchars(xl("Inactive"), ENT_NOQUOTES);
         }
     }
     $click_class = 'statrow';
开发者ID:mindfeederllc,项目名称:openemr,代码行数:31,代码来源:stats_full.php

示例4: generate_form_field


//.........这里部分代码省略.........
                                            }
                                            $optionValue = htmlspecialchars($urow['id'], ENT_QUOTES);
                                            $optionLabel = htmlspecialchars($uname, ENT_NOQUOTES);
                                            echo "<option value='{$optionValue}'";
                                            $title = $urow['username'] ? xl('Local') : xl('External');
                                            $optionTitle = htmlspecialchars($title, ENT_QUOTES);
                                            echo " title='{$optionTitle}'";
                                            if ($urow['id'] == $currvalue) {
                                                echo " selected";
                                            }
                                            echo ">{$optionLabel}</option>";
                                        }
                                        echo "</select>";
                                    } else {
                                        if ($data_type == 15) {
                                            $fldlength = htmlspecialchars($frow['fld_length'], ENT_QUOTES);
                                            $maxlength = $frow['max_length'];
                                            $string_maxlength = "";
                                            // if max_length is set to zero, then do not set a maxlength
                                            if ($maxlength) {
                                                $string_maxlength = "maxlength='" . attr($maxlength) . "'";
                                            }
                                            //
                                            if (strpos($frow['edit_options'], '2') !== FALSE && substr($frow['form_id'], 0, 3) == 'LBF') {
                                                // Option "2" generates a hidden input for the codes, and a matching visible field
                                                // displaying their descriptions. First step is computing the description string.
                                                $currdescstring = '';
                                                if (!empty($currvalue)) {
                                                    $relcodes = explode(';', $currvalue);
                                                    foreach ($relcodes as $codestring) {
                                                        if ($codestring === '') {
                                                            continue;
                                                        }
                                                        $code_text = lookup_code_descriptions($codestring);
                                                        if ($currdescstring !== '') {
                                                            $currdescstring .= '; ';
                                                        }
                                                        if (!empty($code_text)) {
                                                            $currdescstring .= $code_text;
                                                        } else {
                                                            $currdescstring .= $codestring;
                                                        }
                                                    }
                                                }
                                                $currdescstring = attr($currdescstring);
                                                //
                                                echo "<input type='text'" . " name='form_{$field_id_esc}'" . " id='form_related_code'" . " size='{$fldlength}'" . " value='{$currescaped}'" . " style='display:none'" . " {$lbfonchange} readonly {$disabled} />";
                                                // Extra readonly input field for optional display of code description(s).
                                                echo "<input type='text'" . " name='form_{$field_id_esc}" . "__desc'" . " size='{$fldlength}'" . " title='{$description}'" . " value='{$currdescstring}'";
                                                if (!$disabled) {
                                                    echo " onclick='sel_related(this,\"{$codetype}\")'";
                                                }
                                                echo " readonly {$disabled} />";
                                            } else {
                                                echo "<input type='text'" . " name='form_{$field_id_esc}'" . " id='form_related_code'" . " size='{$fldlength}'" . " {$string_maxlength}" . " title='{$description}'" . " value='{$currescaped}'";
                                                if (!$disabled) {
                                                    echo " onclick='sel_related(this,\"{$codetype}\")'";
                                                }
                                                echo " {$lbfonchange} readonly {$disabled} />";
                                            }
                                        } else {
                                            if ($data_type == 16) {
                                                echo "<select name='form_{$field_id_esc}' id='form_{$field_id_esc}' title='{$description}'>";
                                                echo "<option value='0'></option>";
                                                $insprovs = getInsuranceProviders();
                                                $got_selected = false;
开发者ID:hitechelp,项目名称:openemr,代码行数:67,代码来源:options.inc.php

示例5: xlt

     echo "  <td class='text'>" . ($iter["active"] || $iter["active"] == NULL ? xlt('Yes') : xlt('No')) . "</td>\n";
 } else {
     echo "  <td class='text'>" . ($iter["active"] ? xlt('Yes') : xlt('No')) . "</td>\n";
 }
 echo "  <td class='text'>" . ($iter["reportable"] ? xlt('Yes') : xlt('No')) . "</td>\n";
 echo "  <td class='text'>" . ($iter["financial_reporting"] ? xlt('Yes') : xlt('No')) . "</td>\n";
 echo "  <td class='text'>" . text($iter['code_type_name']) . "</td>\n";
 echo "  <td class='text'>" . text($iter['code_text']) . "</td>\n";
 echo "  <td class='text'>" . text($iter['code_text_short']) . "</td>\n";
 if (related_codes_are_used()) {
     // Show related codes.
     echo "  <td class='text'>";
     $arel = explode(';', $iter['related_code']);
     foreach ($arel as $tmp) {
         list($reltype, $relcode) = explode(':', $tmp);
         $code_description = lookup_code_descriptions($reltype . ":" . $relcode);
         echo text($relcode) . ' ' . text(trim($code_description)) . '<br />';
     }
     echo "</td>\n";
 }
 $pres = sqlStatement("SELECT p.pr_price " . "FROM list_options AS lo LEFT OUTER JOIN prices AS p ON " . "p.pr_id = ? AND p.pr_selector = '' AND p.pr_level = lo.option_id " . "WHERE list_id = 'pricelevel' ORDER BY lo.seq", array($iter['id']));
 while ($prow = sqlFetchArray($pres)) {
     echo "<td class='text' align='right'>" . text(bucks($prow['pr_price'])) . "</td>\n";
 }
 if ($iter["code_external"] > 0) {
     echo "  <td align='right'><a class='link' href='javascript:submitModify(\"" . attr($iter['code_type_name']) . "\",\"" . attr($iter['code']) . "\",\"" . attr($iter['id']) . "\")'>[" . xlt('Modify') . "]</a></td>\n";
 } else {
     echo "  <td align='right'><a class='link' href='javascript:submitDelete(" . attr($iter['id']) . ")'>[" . xlt('Delete') . "]</a></td>\n";
     echo "  <td align='right'><a class='link' href='javascript:submitEdit(" . attr($iter['id']) . ")'>[" . xlt('Edit') . "]</a></td>\n";
 }
 echo " </tr>\n";
开发者ID:minggLu,项目名称:openemr,代码行数:31,代码来源:superbill_custom_full.php

示例6: description_test

function description_test($codes, $mode)
{
    $descriptions = lookup_code_descriptions($codes, $mode);
    echo $descriptions . "    <br>" . PHP_EOL;
}
开发者ID:mindfeederllc,项目名称:openemr,代码行数:5,代码来源:DescriptionTests.php

示例7: generate_form_field


//.........这里部分代码省略.........
      $uname = $urow['organization'];
      if (empty($uname) || substr($uname, 0, 1) == '(') {
        $uname = $urow['lname'];
        if ($urow['fname']) $uname .= ", " . $urow['fname'];
      }
      $optionValue = htmlspecialchars( $urow['id'], ENT_QUOTES);
      $optionLabel = htmlspecialchars( $uname, ENT_NOQUOTES);
      echo "<option value='$optionValue'";
      $title = $urow['username'] ? xl('Local') : xl('External');
      $optionTitle = htmlspecialchars( $title, ENT_QUOTES);
      echo " title='$optionTitle'";
      if ($urow['id'] == $currvalue) echo " selected";
      echo ">$optionLabel</option>";
    }
    echo "</select>";
  }

  // A billing code. If description matches an existing code type then that type is used.
  else if ($data_type == 15) {
    $fldlength = htmlspecialchars( $frow['fld_length'], ENT_QUOTES);
    $maxlength = $frow['max_length'];
    $string_maxlength = "";
    // if max_length is set to zero, then do not set a maxlength
    if ($maxlength) $string_maxlength = "maxlength='".attr($maxlength)."'";
    //
    if (strpos($frow['edit_options'], '2') !== FALSE && substr($frow['form_id'], 0, 3) == 'LBF') {
      // Option "2" generates a hidden input for the codes, and a matching visible field
      // displaying their descriptions. First step is computing the description string.
      $currdescstring = '';
      if (!empty($currvalue)) {
        $relcodes = explode(';', $currvalue);
        foreach ($relcodes as $codestring) {
          if ($codestring === '') continue;
          $code_text = lookup_code_descriptions($codestring);
          if ($currdescstring !== '') $currdescstring .= '; ';
          if (!empty($code_text)) {
            $currdescstring .= $code_text;
          }
          else {
            $currdescstring .= $codestring;
          }
        }
      }
      $currdescstring = attr($currdescstring);
      //
      echo "<input type='text'" .
        " name='form_$field_id_esc'" .
        " id='form_related_code'" .
        " size='$fldlength'" .
        " value='$currescaped'" .
        " style='display:none'" .
        " $lbfonchange readonly $disabled />";
      // Extra readonly input field for optional display of code description(s).
      echo "<input type='text'" .
        " name='form_$field_id_esc" . "__desc'" .
        " size='$fldlength'" .
        " title='$description'" .
        " value='$currdescstring'";
      if (!$disabled) {
        echo " onclick='sel_related(this,\"$codetype\")'";
      }
      echo " readonly $disabled />";
    }
    else {
      echo "<input type='text'" .
        " name='form_$field_id_esc'" .
开发者ID:juggernautsei,项目名称:openemr,代码行数:67,代码来源:options.inc.php

示例8: xl

        } else {
            ?>
  <td class='detail'>
   <?php 
            echo $key == 'z' ? '' : $key;
            ?>
  </td>
  <td class='detail'>
<?php 
            if (empty($key)) {
                echo xl('Undiagnosed');
            } else {
                if ($key == 'z') {
                    echo xl('No injury/illness');
                } else {
                    echo lookup_code_descriptions($key);
                }
            }
            ?>
  </td>
<?php 
        }
        ?>
  <!--
  <td class='detail' align='right'>
   <?php 
        // echo $row['count']
        ?>
  </td>
  -->
  <td class='detail' align='right'>
开发者ID:robonology,项目名称:openemr,代码行数:31,代码来源:absences_report.php

示例9: save


//.........这里部分代码省略.........
                             $tmparr['modifier'] = $modifier;
                         }
                         if (isset($iter['provid'])) {
                             $tmparr['provider_id'] = $provid;
                         }
                         if (isset($iter['ndcnum'])) {
                             $tmparr['ndc_info'] = $ndc_info;
                         }
                         if (isset($iter['justify'])) {
                             $tmparr['justify'] = $justify;
                         }
                         if (isset($iter['notecodes'])) {
                             $tmparr['notecodes'] = $notecodes;
                         }
                         foreach ($tmparr as $key => $value) {
                             if ($tmp[$key] != $value) {
                                 if ('fee' == $key) {
                                     $this->logFSMessage(xl('Price changed'));
                                 }
                                 if ('units' == $key) {
                                     $this->logFSMessage(xl('Quantity changed'));
                                 }
                                 if ('provider_id' == $key) {
                                     $this->logFSMessage(xl('Service provider changed'));
                                 }
                                 sqlStatement("UPDATE billing SET `{$key}` = ? WHERE id = ?", array($value, $id));
                             }
                         }
                     }
                 }
             } else {
                 if (!$del) {
                     $this->logFSMessage(xl('Service added'));
                     $code_text = lookup_code_descriptions($code_type . ":" . $code);
                     addBilling($this->encounter, $code_type, $code, $code_text, $this->pid, $auth, $provid, $modifier, $units, $fee, $ndc_info, $justify, 0, $notecodes, $pricelevel);
                 }
             }
         }
     }
     // end for
     // if modifier is not inserted during loop update the record using the first
     // non-empty modifier and code
     if ($copay_update == TRUE && $update_session_id != '' && $mod0 != '') {
         sqlStatement("UPDATE ar_activity SET code_type = ?, code = ?, modifier = ?" . " WHERE pid = ? AND encounter = ? AND account_code = 'PCP' AND session_id = ?", array($ct0, $cod0, $mod0, $this->pid, $this->encounter, $update_session_id));
     }
     // Doing similarly to the above but for products.
     if (is_array($prod)) {
         foreach ($prod as $iter) {
             // Skip disabled (billed) line items.
             if (!empty($iter['billed'])) {
                 continue;
             }
             $drug_id = $iter['drug_id'];
             $selector = empty($iter['selector']) ? '' : $iter['selector'];
             $sale_id = $iter['sale_id'];
             // present only if already saved
             $units = max(1, intval(trim($iter['units'])));
             $price = empty($iter['price']) ? 0 : 0 + trim($iter['price']);
             $pricelevel = empty($iter['pricelevel']) ? '' : $iter['pricelevel'];
             $fee = sprintf('%01.2f', $price * $units);
             $del = !empty($iter['del']);
             $rxid = 0;
             $warehouse_id = empty($iter['warehouse']) ? '' : $iter['warehouse'];
             $somechange = false;
             // If the item is already in the database...
             if ($sale_id) {
开发者ID:juggernautsei,项目名称:openemr,代码行数:67,代码来源:FeeSheet.class.php

示例10: coding_engine

/**
 *  This function prepares a code found in a clinical field and returns it in $codes_found format.
 *  @param $code is in the format code_type:code eg. ICD10:H34.811
 *  @param $location is the descruiptive name of the clinical field in question
 *  @param $side is optional.  Used as the descriptive text for the finding in the Builder
 *      and IMP/Plan if selected from the Builder
 *  @return $subterm,$newdata.  $subterm is used to link items in IMP/PLAN back to its orgin.
 *          $newdata is the array of newly found items to include in the Builder.
 *
 *  This function is not called directly but via the wrapper function start_your_engines().
 */
function coding_engine($term, $code_found, $location, $side = '')
{
    if (strpos($code_found['code'], ":")) {
        list($code_type, $code) = explode(':', $code_found['code']);
    } else {
        $code = $code_found['code'];
        $code_type = "ICD10";
        //default to ICD10
        $code_found['code'] = $code_type . ":" . $code_found['code'];
    }
    $code_desc = lookup_code_descriptions($code_found['code']);
    $order = array("\r\n", "\n", "\r");
    $code_desc = str_replace($order, '', $code_desc);
    $code_text = text($code_found['code']) . " (" . text($code_desc) . ")";
    $replace = " ";
    $sub_term = str_replace($replace, "", $term);
    //some codes are bilateral, some not, some are per eyelid.  Comment this out for now:
    //(preg_match("/right/",$code_desc))? $side = xlt('OD{{right eye}}') : $side = xlt('OS{{left eye}}');
    $newdata = array('title' => ucfirst($term) . " " . $side, 'location' => $location, 'diagnosis' => $code, 'code' => $code, 'codetype' => $code_found['code_type'], 'codedesc' => $code_desc, 'codetext' => $code_text, 'PMSFH_link' => "Clinical_" . $sub_term);
    return array($sub_term, $newdata);
}
开发者ID:bradymiller,项目名称:openemr,代码行数:32,代码来源:eye_mag_functions.php

示例11: round

                $begsecs = $endsecs;
            }
            if ($last_endsecs < $endsecs) {
                $last_endsecs = $endsecs;
            }
            $daysmissed = round(($endsecs - $begsecs) / (60 * 60 * 24));
        }
        // Get the name of the last provider for this issue.
        $query = "SELECT users.lname, users.fname, users.mname " . "FROM issue_encounter, forms, users WHERE " . "issue_encounter.list_id = {$listid} AND " . "forms.pid = issue_encounter.pid AND " . "forms.encounter = issue_encounter.encounter AND " . "users.username = forms.user " . "ORDER BY forms.date DESC LIMIT 1";
        $user = sqlQuery($query);
        $provname = $user['lname'] ? $user['lname'] . ', ' . $user['fname'] . ' ' . $user['mname'] : '&nbsp;';
        echo " <tr bgcolor='{$bgcolor}' onclick='dopclick({$listid},{$thispid})' style='cursor:pointer'>\n";
        echo "  <td class='detail'>{$ptname}</td>\n";
        echo "  <td class='detail'>{$fitness}</td>\n";
        echo "  <td class='detail'>{$issue_title}</td>\n";
        echo "  <td class='detail'>" . lookup_code_descriptions($row['diagnosis']) . "</td>\n";
        echo "  <td class='detail'>" . $row['begdate'] . "</td>\n";
        echo "  <td class='detail' align='right'>{$daysmissed}</td>\n";
        echo "  <td class='detail' align='right'>" . $row['gmissed'] . "</td>\n";
        echo "  <td class='detail'>{$provname}</td>\n";
        echo " </tr>\n";
    }
    // end while
    ?>

</table>

<?php 
}
// end of if ($_POST['form_refresh'])
?>
开发者ID:robonology,项目名称:openemr,代码行数:31,代码来源:injury_overview_report.php

示例12: explode

                                <table>
                                  <tr>
                                    <td style="padding-right:20px;padding-left:20px;">
                                    <?php 
$counter = '0';
$count = '0';
$arrTESTS = explode("|", $Resource);
//form_eye_mag:Resource = billable things (not visit code) performed today
$query = "select * from list_options where list_id=? and activity='1' order by seq";
$TODO_data = sqlStatement($query, array("Eye_todo_done_" . $providerID));
while ($row = sqlFetchArray($TODO_data)) {
    if ($row['codes'] === '') {
        continue;
    }
    list($code_type_here, $code) = explode(":", $row['codes']);
    $codedesc = lookup_code_descriptions($row['codes']);
    $order = array("\r\n", "\n", "\r");
    $codedesc = str_replace($order, '', $codedesc);
    if ($codedesc == '') {
        $codedesc = $row['title'];
    }
    $codetext = $codedesc . " (" . $row['codes'] . ")";
    $checked = '';
    if (in_array($row['codes'], $arrTESTS)) {
        $checked = "checked='yes'";
    }
    /**
     *  This will link to a report generator for billable procedures/tests.
     *  They items need to be read/interpreted/dictated/documented to be billable.
     *  The reading may already be documented within the scanned item itself.
     *  Thus this will be optional.
开发者ID:bradymiller,项目名称:openemr,代码行数:31,代码来源:view.php

示例13: getIid

    private function getIid($val)
    {
        global $pid;
        global $ISSUE_TYPES;
        $inclookupres = sqlStatement("SELECT DISTINCT formdir FROM forms WHERE pid = ? AND deleted=?", array($pid, 0));
        while ($result = sqlFetchArray($inclookupres)) {
            $formdir = $result['formdir'];
            if (substr($formdir, 0, 3) == 'LBF') {
                include_once $GLOBALS['incdir'] . "/forms/LBF/report.php";
            } else {
                include_once $GLOBALS['incdir'] . "/forms/{$formdir}/report.php";
            }
        }
        ?>
	    <tr class=text>
		<td></td>
		<td>
	    <?php 
        $irow = sqlQuery("SELECT type, title, comments, diagnosis FROM lists WHERE id =? ", array($val));
        $diagnosis = $irow['diagnosis'];
        if ($prevIssueType != $irow['type']) {
            $disptype = $ISSUE_TYPES[$irow['type']][0];
            ?>
		<div class='issue_type' style='font-weight: bold;'><?php 
            echo htmlspecialchars($disptype, ENT_QUOTES);
            ?>
:</div>
		<?php 
            $prevIssueType = $irow['type'];
        }
        ?>
	    <div class='text issue'>
	    <span class='issue_title'><?php 
        echo htmlspecialchars($irow['title'], ENT_QUOTES);
        ?>
:</span>
	    <span class='issue_comments'><?php 
        echo htmlspecialchars($irow['comments'], ENT_QUOTES);
        ?>
</span>
	    <?php 
        if ($diagnosis) {
            ?>
		<div class='text issue_diag'>
		<span class='bold'>[<?php 
            echo htmlspecialchars(xl('Diagnosis'), ENT_QUOTES);
            ?>
]</span><br>
		<?php 
            $dcodes = explode(";", $diagnosis);
            foreach ($dcodes as $dcode) {
                ?>
		    <span class='italic'><?php 
                echo htmlspecialchars($dcode, ENT_QUOTES);
                ?>
</span>:
		    <?php 
                echo htmlspecialchars(lookup_code_descriptions($dcode), ENT_QUOTES);
                ?>
		    <br>
		    <?php 
            }
            ?>
		</div>
		<?php 
        }
        if ($irow['type'] == 'ippf_gcac') {
            ?>
		<table>
		<?php 
            display_layout_rows('GCA', sqlQuery("SELECT * FROM lists_ippf_gcac WHERE id = ?", array($rowid)));
            ?>
    
		</table>
		<?php 
        } else {
            if ($irow['type'] == 'contraceptive') {
                ?>
		<table>
		    <?php 
                display_layout_rows('CON', sqlQuery("SELECT * FROM lists_ippf_con WHERE id = ?", array($rowid)));
                ?>
		</table>
		<?php 
            }
        }
        ?>
	    </div>
	    <?php 
        ?>
                            
		</td>
	    <?php 
    }
开发者ID:mi-squared,项目名称:openemr,代码行数:94,代码来源:server_med_rec.php

示例14: lookup_code_descriptions

 $e_ExactDateTime = $ccr->createElement('ExactDateTime', $date->format('Y-m-d\\TH:i:s\\Z'));
 $e_DateTime->appendChild($e_ExactDateTime);
 $e_IDs = $ccr->createElement('IDs');
 $e_Problem->appendChild($e_IDs);
 $e_ID = $ccr->createElement('ID', $row['pid']);
 $e_IDs->appendChild($e_ID);
 $e_IDs->appendChild(sourceType($ccr, $sourceID));
 $e_Type = $ccr->createElement('Type');
 $e_Problem->appendChild($e_Type);
 $e_Text = $ccr->createElement('Text', 'Problem');
 // Changed to pass through validator, Problem type must be one of the required string values: Problem, Condition, Diagnosis, Symptom, Finding, Complaint, Functional Limitation.
 //$e_Text = $ccr->createElement('Text', $row['prob_title']);
 $e_Type->appendChild($e_Text);
 $e_Description = $ccr->createElement('Description');
 $e_Problem->appendChild($e_Description);
 $e_Text = $ccr->createElement('Text', lookup_code_descriptions($row['diagnosis']));
 $e_Description->appendChild($e_Text);
 $e_Code = $ccr->createElement('Code');
 $e_Description->appendChild($e_Code);
 $e_Value = $ccr->createElement('Value', $row['diagnosis']);
 $e_Code->appendChild($e_Value);
 $e_Value = $ccr->createElement('CodingSystem', 'ICD9-CM');
 $e_Code->appendChild($e_Value);
 $e_Status = $ccr->createElement('Status');
 $e_Problem->appendChild($e_Status);
 // $e_Text = $ccr->createElement('Text', $row['outcome']);
 $e_Text = $ccr->createElement('Text', 'Active');
 $e_Status->appendChild($e_Text);
 //$e_CommentID = $ccr->createElement('CommentID', $row['comments']);
 //$e_Problem->appendChild($e_CommentID);
 $e_Source = $ccr->createElement('Source');
开发者ID:nhom5UET,项目名称:tichhophethong,代码行数:31,代码来源:createCCRProblem.php

示例15: trim

     $provid = 0 + $iter['provid'];
     $ndc_info = '';
     if ($iter['ndcnum']) {
         $ndc_info = 'N4' . trim($iter['ndcnum']) . '   ' . $iter['ndcuom'] . trim($iter['ndcqty']);
     }
     // If the item is already in the database...
     if ($id) {
         if ($del) {
             deleteBilling($id);
         } else {
             // authorizeBilling($id, $auth);
             sqlQuery("UPDATE billing SET code = ?, " . "units = ?, fee = ?, modifier = ?, " . "authorized = ?, provider_id = ?, " . "ndc_info = ?, justify = ?, notecodes = ? " . "WHERE " . "id = ? AND billed = 0 AND activity = 1", array($code, $units, $fee, $modifier, $auth, $provid, $ndc_info, $justify, $notecodes, $id));
         }
     } else {
         if (!$del) {
             $code_text = lookup_code_descriptions($code_type . ":" . $code);
             addBilling($encounter, $code_type, $code, $code_text, $pid, $auth, $provid, $modifier, $units, $fee, $ndc_info, $justify, 0, $notecodes);
         }
     }
 }
 // end for
 //if modifier is not inserted during loop update the record using the first
 //non-empty modifier and code
 if ($copay_update == TRUE && $update_session_id != '' && $mod0 != '') {
     sqlStatement("UPDATE ar_activity SET code_type=?, code=?, modifier=?" . " WHERE pid=? AND encounter=? AND account_code='PCP' AND session_id=?", array($ct0, $cod0, $mod0, $pid, $encounter, $update_session_id));
 }
 // Doing similarly to the above but for products.
 $prod = $_POST['prod'];
 for ($lino = 1; $prod["{$lino}"]['drug_id']; ++$lino) {
     $iter = $prod["{$lino}"];
     if (!empty($iter['billed'])) {
开发者ID:bbgunmaster,项目名称:openemr,代码行数:31,代码来源:new.php


注:本文中的lookup_code_descriptions函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。