• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP lookup_code_descriptions函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: getProblemList

 public function getProblemList($pid, $encounter)
 {
     $problem_lists = '';
     $query = "select l.*, lo.title as observation, lo.codes as observation_code, l.diagnosis AS code\n\t\t\t\t\t\t\t\t\t\t\tfrom lists AS l\n\t\t\t\t\t\t\t\t\t\t\tleft join list_options as lo on lo.option_id = l.outcome AND lo.list_id = ?\n\t\t\t\t\t\t\t\t\t\t\twhere l.type = ? and l.pid = ? AND l.outcome <> ? AND l.id NOT IN(SELECT list_id FROM issue_encounter WHERE pid = ?)";
     $appTable = new ApplicationTable();
     $res = $appTable->zQuery($query, array('outcome', 'medical_problem', $pid, 1, $pid));
     $problem_lists .= '<problem_lists>';
     foreach ($res as $row) {
         $split_codes = explode(';', $row['code']);
         foreach ($split_codes as $key => $single_code) {
             $get_code_details = explode(':', $single_code);
             $code = $get_code_details[1];
             $code_text = lookup_code_descriptions($single_code);
             $age = $this->getAge($pid, $row['begdate']);
             $start_date = str_replace('-', '', $row['begdate']);
             $end_date = str_replace('-', '', $row['enddate']);
             $status = $status_table = '';
             $start_date = $start_date ? $start_date : '0';
             $end_date = $end_date ? $end_date : '0';
             //Active - 55561003 	Completed - 73425007
             if ($end_date) {
                 $status = 'completed';
                 $status_table = 'Resolved';
                 $status_code = '73425007';
             } else {
                 $status = 'active';
                 $status_table = 'Active';
                 $status_code = '55561003';
             }
             $observation = $row['observation'];
             $observation_code = explode(':', $row['observation_code']);
             $observation_code = $observation_code[1];
             $problem_lists .= "<problem>\n\t\t\t\t\t\t<extension>" . htmlspecialchars(base64_encode($_SESSION['site_id'] . $row['id']), ENT_QUOTES) . "</extension>\n\t\t\t\t\t\t<sha_extension>" . htmlspecialchars("ec8a6ff8-ed4b-4f7e-82c3-e98e58b45de7", ENT_QUOTES) . "</sha_extension>\n\t\t\t\t\t\t<title>" . htmlspecialchars($row['title'], ENT_QUOTES) . ($single_code ? " [" . htmlspecialchars($single_code, ENT_QUOTES) . "]" : '') . "</title>\n\t\t\t\t\t\t<code>" . ($code ? $code : 0) . "</code>\n\t\t\t\t\t\t<code_text>" . htmlspecialchars($code_text ? $code_text : 'NULL', ENT_QUOTES) . "</code_text>\n\t\t\t\t\t\t<age>" . $age . "</age>\n\t\t\t\t\t\t<start_date_table>" . $row['begdate'] . "</start_date_table>\n\t\t\t\t\t\t<start_date>" . $start_date . "</start_date>\n\t\t\t\t\t\t<end_date>" . $end_date . "</end_date>\n\t\t\t\t\t\t<status>" . $status . "</status>\n\t\t\t\t\t\t<status_table>" . $status_table . "</status_table>\n\t\t\t\t\t\t<status_code>" . $status_code . "</status_code>\n\t\t\t\t\t\t<observation>" . htmlspecialchars($observation ? \Application\Listener\Listener::z_xlt($observation) : 'NULL', ENT_QUOTES) . "</observation>\n\t\t\t\t\t\t<observation_code>" . htmlspecialchars($observation_code ? $observation_code : 0, ENT_QUOTES) . "</observation_code>\n\t\t\t\t\t\t<diagnosis>" . htmlspecialchars($code ? $code : 0) . "</diagnosis>\n\t\t\t\t\t</problem>";
         }
     }
     $problem_lists .= '</problem_lists>';
     return $problem_lists;
 }
开发者ID:bradymiller,项目名称:openemr,代码行数:38,代码来源:EncounterccdadispatchTable.php


示例17: gen_hl7_order

/**
 * Generate HL7 for the specified procedure order.
 *
 * @param  integer $orderid  Procedure order ID.
 * @param  string  &$out     Container for target HL7 text.
 * @return string            Error text, or empty if no errors.
 */
function gen_hl7_order($orderid, &$out)
{
    // Delimiters
    $d0 = "\r";
    $d1 = '|';
    $d2 = '^';
    $today = time();
    $out = '';
    $porow = sqlQuery("SELECT " . "po.date_collected, po.date_ordered, po.order_priority, " . "pp.*, " . "pd.pid, pd.pubpid, pd.fname, pd.lname, pd.mname, pd.DOB, pd.ss, " . "pd.phone_home, pd.phone_biz, pd.sex, pd.street, pd.city, pd.state, pd.postal_code, " . "f.encounter, u.fname AS docfname, u.lname AS doclname, u.npi AS docnpi " . "FROM procedure_order AS po, procedure_providers AS pp, " . "forms AS f, patient_data AS pd, users AS u " . "WHERE " . "po.procedure_order_id = ? AND " . "pp.ppid = po.lab_id AND " . "f.formdir = 'procedure_order' AND " . "f.form_id = po.procedure_order_id AND " . "pd.pid = f.pid AND " . "u.id = po.provider_id", array($orderid));
    if (empty($porow)) {
        return "Procedure order, ordering provider or lab is missing for order ID '{$orderid}'";
    }
    $pcres = sqlStatement("SELECT " . "pc.procedure_code, pc.procedure_name, pc.procedure_order_seq, pc.diagnoses " . "FROM procedure_order_code AS pc " . "WHERE " . "pc.procedure_order_id = ? AND " . "pc.do_not_send = 0 " . "ORDER BY pc.procedure_order_seq", array($orderid));
    // Message Header
    $out .= "MSH" . $d1 . "{$d2}~\\&" . $d1 . $porow['send_app_id'] . $d1 . $porow['send_fac_id'] . $d1 . $porow['recv_app_id'] . $d1 . $porow['recv_fac_id'] 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP lookup_gateway_ip_by_name函数代码示例发布时间:2022-05-15
下一篇:
PHP lookup_cert函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap