</td> </tr> <?php } # Patient Custom fields here $custom_field_list = $lab_config->getPatientCustomFields(); foreach ($custom_field_list as $custom_field) { if (in_array($custom_field->id, $report_config->patientCustomFields)) { $field_name = $custom_field->fieldName; ?> <tr valign='top'> <?php echo "<td>"; echo $field_name; echo "</td>"; $custom_data = get_custom_data_patient_bytype($patient->patientId, $custom_field->id); echo "<td>"; if ($custom_data == null) { echo "-"; } else { $field_value = $custom_data->getFieldValueString($lab_config->id, 2); if (trim($field_value) == "") { $field_value = "-"; } echo $field_value; } echo "</td>"; ?> </tr> <?php }
?> </td><td width="15px" style="border:none"></td> <?php } else { $c--; } } else { if (in_array($pid[2], $report_config->patientCustomFields)) { ?> <td class="heading"><?php echo $combined_fields[$field]; ?> </td> <td><?php $custom_data = get_custom_data_patient_bytype($patient->patientId, $pid[2]); if ($custom_data == null) { echo "-"; } else { $field_value = $custom_data->getFieldValueString($lab_config->id, 2); if (trim($field_value) == "") { $field_value = "-"; } echo $field_value; } ?> </td><td width="15px" style="border:none"></td> <?php } else { $c--;