Example #1
0
/**
 * Special case of Issue Types
 */
function writeITLine($it_array)
{
    global $opt_line_no, $ISSUE_TYPE_CATEGORIES, $ISSUE_TYPE_STYLES;
    ++$opt_line_no;
    $bgcolor = "#" . ($opt_line_no & 1 ? "ddddff" : "ffdddd");
    echo " <tr bgcolor='{$bgcolor}'>\n";
    echo ctSelector($opt_line_no, $it_array, 'category', $ISSUE_TYPE_CATEGORIES, xl('OpenEMR Application Category'));
    echo ctGenCBox($opt_line_no, $it_array, 'active', xl('Is this active?'));
    echo ctGenCell($opt_line_no, $it_array, 'ordering', 10, 10, xl('Order'));
    echo ctGenCell($opt_line_no, $it_array, 'type', 20, 75, xl('Issue Type'));
    echo ctGenCell($opt_line_no, $it_array, 'plural', 20, 75, xl('Plural'));
    // if not english and translating lists then show the translation
    if ($GLOBALS['translate_lists'] && $_SESSION['language_choice'] > 1) {
        echo "  <td align='center' class='translation'>" . xlt($it_array['plural']) . "</td>\n";
    }
    echo ctGenCell($opt_line_no, $it_array, 'singular', 20, 75, xl('Singular'));
    // if not english and translating lists then show the translation
    if ($GLOBALS['translate_lists'] && $_SESSION['language_choice'] > 1) {
        echo "  <td align='center' class='translation'>" . xlt($it_array['singular']) . "</td>\n";
    }
    echo ctGenCell($opt_line_no, $it_array, 'abbreviation', 10, 10, xl('Abbreviation'));
    // if not english and translating lists then show the translation
    if ($GLOBALS['translate_lists'] && $_SESSION['language_choice'] > 1) {
        echo "  <td align='center' class='translation'>" . xlt($it_array['abbreviation']) . "</td>\n";
    }
    echo ctSelector($opt_line_no, $it_array, 'style', $ISSUE_TYPE_STYLES, xl('Standard; Simplified: only title, start date, comments and an Active checkbox;no diagnosis, occurrence, end date, referred-by or sports fields. ; Football Injury'));
    echo ctGenCBox($opt_line_no, $it_array, 'force_show', xl('Show this category on the patient summary screen even if no issues have been entered for this category.'));
    echo " </tr>\n";
}
Example #2
0
function writeCTLine($ct_array)
{
    global $opt_line_no;
    ++$opt_line_no;
    $bgcolor = "#" . ($opt_line_no & 1 ? "ddddff" : "ffdddd");
    echo " <tr bgcolor='{$bgcolor}'>\n";
    echo ctGenCell($opt_line_no, $ct_array, 'ct_key', 4, 15, xl('Unique human-readable identifier for this type'));
    echo ctGenCell($opt_line_no, $ct_array, 'ct_id', 2, 11, xl('Unique numeric identifier for this type'));
    echo ctGenCell($opt_line_no, $ct_array, 'ct_seq', 2, 3, xl('Numeric display order'));
    echo ctGenCell($opt_line_no, $ct_array, 'ct_mod', 1, 2, xl('Length of modifier, 0 if none'));
    echo ctGenCell($opt_line_no, $ct_array, 'ct_just', 4, 15, xl('If billing justification is used enter the name of the diagnosis code type.'));
    echo ctGenCell($opt_line_no, $ct_array, 'ct_mask', 6, 9, xl('Specifies formatting for codes. # = digit, @ = alpha, * = any character. Empty if not used.'));
    echo ctGenCBox($opt_line_no, $ct_array, 'ct_fee', xl('Are fees charged for this type?'));
    echo ctGenCBox($opt_line_no, $ct_array, 'ct_rel', xl('Does this type allow related codes?'));
    echo ctGenCBox($opt_line_no, $ct_array, 'ct_nofs', xl('Is this type hidden in the fee sheet?'));
    echo ctGenCBox($opt_line_no, $ct_array, 'ct_diag', xl('Is this a diagnosis type?'));
    echo " </tr>\n";
}
Example #3
0
function writeCTLine($ct_array)
{
    global $opt_line_no, $cd_external_options;
    ++$opt_line_no;
    $bgcolor = "#" . ($opt_line_no & 1 ? "ddddff" : "ffdddd");
    echo " <tr bgcolor='{$bgcolor}'>\n";
    echo ctGenCBox($opt_line_no, $ct_array, 'ct_active', xl('Is this code type active?'));
    echo ctGenCell($opt_line_no, $ct_array, 'ct_key', 6, 15, xl('Unique human-readable identifier for this type'));
    echo ctGenCell($opt_line_no, $ct_array, 'ct_id', 2, 11, xl('Unique numeric identifier for this type'));
    echo ctGenCell($opt_line_no, $ct_array, 'ct_label', 6, 30, xl('Label for this type'));
    echo ctGenCell($opt_line_no, $ct_array, 'ct_seq', 2, 3, xl('Numeric display order'));
    echo ctGenCell($opt_line_no, $ct_array, 'ct_mod', 1, 2, xl('Length of modifier, 0 if none'));
    echo ctGenCell($opt_line_no, $ct_array, 'ct_just', 4, 15, xl('If billing justification is used enter the name of the diagnosis code type.'));
    echo ctGenCell($opt_line_no, $ct_array, 'ct_mask', 6, 9, xl('Specifies formatting for codes. # = digit, @ = alpha, * = any character. Empty if not used.'));
    echo ctGenCBox($opt_line_no, $ct_array, 'ct_claim', xl('Is this code type used in claims?'));
    echo ctGenCBox($opt_line_no, $ct_array, 'ct_fee', xl('Are fees charged for this type?'));
    echo ctGenCBox($opt_line_no, $ct_array, 'ct_rel', xl('Does this type allow related codes?'));
    echo ctGenCBox($opt_line_no, $ct_array, 'ct_nofs', xl('Is this type hidden in the fee sheet?'));
    echo ctGenCBox($opt_line_no, $ct_array, 'ct_proc', xl('Is this a procedure/service type?'));
    echo ctGenCBox($opt_line_no, $ct_array, 'ct_diag', xl('Is this a diagnosis type?'));
    // Show the external code types selector
    $value_ct_external = isset($ct_array['ct_external']) ? $ct_array['ct_external'] : '';
    echo "  <td title='" . xla('Is this using external sql tables? If it is, then choose the format.') . "' align='center' class='optcell'>";
    echo "<select name='opt[{$opt_line_no}][ct_external]' class='optin'>";
    foreach ($cd_external_options as $key => $desc) {
        echo "<option value='" . attr($key) . "'";
        if ($key == $value_ct_external) {
            echo " selected";
        }
        echo ">" . text($desc) . "</option>";
    }
    echo "</select>";
    echo "</td>\n";
    echo " </tr>\n";
}