コード例 #1
0
ファイル: search_p_dyn.php プロジェクト: jfurlong/BLIS
        	}*/
    } else {
        if ($a == 2) {
            # Fetch by additional ID
            if ($dynamic_fetch == 0) {
                $patient_list = search_patients_by_addlid($q, $lab_section);
            } else {
                $patient_list = search_patients_by_addlid_dyn($q, $result_cap, $result_counter, $lab_section);
            }
        } else {
            if ($a == 3) {
                # Fetch by daily number
                if ($dynamic_fetch == 0) {
                    $patient_list = search_patients_by_dailynum("-" . $q, $lab_section);
                } else {
                    $patient_list = search_patients_by_dailynum_dyn("-" . $q, $result_cap, $result_counter, $lab_section);
                }
            } else {
                if ($a == 9) {
                    # Fetch by db id
                    if ($dynamic_fetch == 0) {
                        $patient_l = getPatientFromBarcode($q);
                    } else {
                        $patient_l = getPatientFromBarcode($q);
                    }
                    $patient_list[0] = $patient_l;
                }
            }
        }
    }
}
コード例 #2
0
ファイル: patient_data_page.php プロジェクト: jfurlong/BLIS
        	}*/
    } else {
        if ($a == 2) {
            # Fetch by additional ID
            if ($dynamic_fetch == 0) {
                $patient_list = search_patients_by_addlid($q);
            } else {
                $patient_list = search_patients_by_addlid_dyn($q, $result_cap, $result_counter);
            }
        } else {
            if ($a == 3) {
                # Fetch by daily number
                if ($dynamic_fetch == 0) {
                    $patient_list = search_patients_by_dailynum("-" . $q);
                } else {
                    $patient_list = search_patients_by_dailynum_dyn("-" . $q, $result_cap, $result_counter);
                }
            } else {
                if ((count($patient_list) == 0 || $patient_list[0] == null) && $patient != null) {
                    ?>
	<br>
	<div class='sidetip_nopos'>
	<?php 
                    echo "A record of the patient has been found in another hospital.<br><br>";
                    ?>
            </div>
		<a rel='facebox' href='viewPatientInfo.php?pid=<?php 
                    echo $patient->patientId;
                    ?>
&type=national'>View Patient Info>></a><br>
		<a href='ajax/import_patient.php?patientId=<?php