setLanguageArray($lg); // --------------------------------------------------------- // set font $pdf->SetFont('freesans', '', 12); // add a page $pdf->AddPage(); // Hindi content include('includes/config/config.php'); include_once("includes/functions.php"); error_reporting(0); while (ob_get_level()) ob_end_clean(); header("Content-Encoding: None", true); $pdf->setCellPaddings( $left = '2px', $top = '2px', $right = '2px', $bottom = '2px'); $query = "select company_logo,image_type from company_profile where company_id =5 "; //echo $query; $result = mysqli_query($conn,$query); $row = mysqli_fetch_array($result); @extract($row); $html = << .tbl1{ font-size:8px; border: 1px solid black; border-collapse: collapse; font-weight:1200; } .tbl1 td{ font-size:8px; border: 1px solid black; border-collapse: collapse; font-weight:1200; padding: 1px; }
{$pdf->Image('birla.jpeg',12, 12, 40, 30, 'JPEG', '', '', false, 150, '', false, false, 0, false, false, false )} MAIHAR IU Department OCCUPATIONAL HEALTH CENTRE
Document No. F-MED-09
Revision 0
Implementation Date
PERIODIC MEDICAL EXAMINATION CARD
EOD; $pdf->writeHTML($html, true, false, false, false, ''); $sql_patient_physical_parameters="select a.*,b.* from medical_examination a inner join patient_master b on b.id=a.patient_id where a.medical_exam_id='42' "; //echo $sql_patient_physical_parameters; $result_patient_physical_parameters= mysqli_query($conn,$sql_patient_physical_parameters); $row_patient_physical_parameters= mysqli_fetch_assoc($result_patient_physical_parameters); @extract($row_patient_physical_parameters); $from = new DateTime($dob); $to = new DateTime('today'); $age= $from->diff($to)->y; if($gender=='M') $gender="Male"; elseif ($gender=='F') $gender="Female"; $txt = << .tbl1{ font-size:8px; border: 1px solid black; border-collapse: collapse; font-weight:1200; } .tbl1 td{ font-size:8px; border: 1px solid black; border-collapse: collapse; font-weight:1200; padding: 1px; } EOD; $past_present_illness_array = explode(',', $past_present_illness); $result_section = mysqli_query($conn,"SET NAMES utf8"); $sql_section = "select * from history_parameter where param_id in (1,2,3,4,5,7,9,11) order by param_id asc"; $count=1; $result_section = mysqli_query($conn,$sql_section); while ($row_section = mysqli_fetch_assoc($result_section)) { $check=""; if(in_array($row_section['param_id'],$past_present_illness_array)) $check="√"; else $check="X"; if($count%2!=0){ $txt.=<< EOD; } $txt.=<< {$row_section['param_name']} ({$row_section['param_name_hindi']}) {$check} EOD; if($count%2==0){ $txt.=<< EOD; } $count++; } $txt.=<< EOD; $txt.=<< EOD; $pdf->writeHTML($txt, true, false, false, false, ''); // --------------------------------------------------------- $pdf->AddPage(); $txt1.=<< .tbl1{ font-size:8px; border: 1px solid black; border-collapse: collapse; font-weight:1200; } .tbl1 td{ font-size:8px; border: 1px solid black; border-collapse: collapse; font-weight:1200; padding: 1px; } b1{ valign:bottom; }
Name {$patient_name}
Father Name {$father_name}
Age/Sex {$age} {$gender}
Address
Grade/Post
Mobile.No. {$primary_phone}
Gate pass No./P No Date
TO BE FILLED IN BY THE CANDIDATE
9.HISTORY PAST AND PRESENT ILLNESS [ if YES write √ if NO write X ]
10. PAST OCCUPATIONAL HISTORY
Name of Organization Trade/Designation Period of Service- in Years Past Occupational Illness
11.PERSONAL INFORMATION
i. Date of Birth
ii. Identification Mark :
iii. Date of Examination :
iv. Married/Unmarried :
v. No. of children :
vi. Whether adopting any method of family planning :
vii. Smoking / Tobacco/ Alcohol:


12.DECLARARTION:

Certified that the particulars given by me in the foregoing above are true, complete and correct to the best of my knowledge and belief. If any of this information is found to be false/incomplete/ incorrect, only I shall be responsible for it and company have full right to cancel my appointment or terminate my service contract.

मैं अपने पूरे होशोहवाश में यह प्रमाणित करता हूँ कि मेरे द्वारा दी गयी उपरोक्त समस्त जानकारी पूर्णत सही है, अगर मेरे द्वारा दी गयी कोई जानकारी गलत पाई जाती है तो उसके लिए पूर्णत मैं जिम्मेदार हूं एवं कंपनी को यह अधिकार है कि वो मुझे नौकरी में न रखे अथवा मेरी सेवाओं को समाप्त कर दे

Signature/Left Thumb Impression of Candidate


Date
RECORD OF MEDICAL EXAMINATION
Height(cms){$height} Waist(cms){$waist} CLINICAL EXAMINATION
Weight(kgs){$weight} Hip(cms){$hip} NAILS{$nails}
BMI(cms){$bmi} PULSE{$pulse}
Vision BP{$bp}  mm of Hg
RT.EYE LT.EYE ABDOMEN
Distant VisionWithout Glasses {$dis_without_right_eye}{$dis_without_left_eye} Liver {$liver }
With Glasses {$dis_with_right_eye}{$dis_with_left_eye} Speen {$speen }
Near VisionWithout Glasses {$near_without_right_eye}{$near_without_left_eye} Tenderness {$tenderness }
With Glasses {$near_with_right_eye}{$near_with_right_eye} Any other abnormality {$any_other_abnormality }
SKIN {$skin }
COLOR VISION {$color_vision } RS {$rs }
IDENTIFICATION OF INDIVIDUAL COLOURS {$ident_of_individual_colors}
CVS MUSCULO SKELETAL {$musculo_skeletal }
S1 {$s1} S2 {$s2}
Any other Sound {$any_other_sound} ECG (12 Lead) findings {$ecg_findings} ENT
2D Echo/TMT Findings {$tmt_findings} Conversational Hearing {$conversational_hearing }
GENITO - URINARY AUROSCOPY {$auroscopy }
Hernia{$hernia} Hydrocele{$hydrocele} EAC {$eac }
Phimosis{$phimosis} Piles{$piles} NOSE {$nose }
Fistula{$fistula} THROAT {$throat }










Signature of Medical Assistant
CNS
Speech {$speech} Higher Function {$higher_function}
Motor Function {$motor_function} Vertigo {$vertigo}
Reflexes(superficial & deep) {$reflexes} Vibration Syndrome {$vibration_syndrome}
14. ILO CLASSIFICATION OF CHEST RADIOGRAPH (Enclosed Chest Radiograph)
Profusion of Pneumoconiotic opacities Grades Types
{$profusion_opacities} {$grade} {$type}
RESULT OF SPIROMETRY (Report Enclosed)
Parameters Predicted Value Performed Value % of Predicted
Forced Vital Capacity (FVC) {$fvc_pre} {$fvc_post} {$fvc}
Forced Expiratory Volume in 1 sec (FEV1) {$fev1_pre} {$fev1_post} {$fev1}
FEV1/FVC {$fev1_fvc_pre} {$fev1_fvc_post} {$fev1_fvc}
Peak Expiratory Flow {$peak_expiratory_flow_pre} {$peak_expiratory_flow_post} {$peak_expiratory_flow}
AUDIOMETRY FINDINGS ( Report Enclosed)
Conduction Type Left Ear Right Ear
Air Conduction {$air_cond_left} {$air_cond_right}
Bone Conduction {$bone_cond_left} {$bone_cond_left}
INVESTIGATIONS
Blood Group {$blood_group}
Hb {$hb} TLC{$tlc} DLC{$dlc}
ESR{$esr} S. Urea{$s_urea} S.Creatinine{$s_creatinine}
Blood Sugar {$blood_sugar} VDRL{$bun} HbsAg {$hbsag}
HIV {$hiv} Lipid Profile{$lipid_profile}
Urine RE/ME
Appearance{$appearance} Pus cells{$pus_cells} RBCs{$rbcs}
Epithelial cells{$epithelial_cells} Other Relevant findings {$other_relevant_findings} Albumin {$albumin}
Sugar{$sugar}
Stool RE/ME{$stool_re_me}
Opinion of the MO{$opinion_mo}
Remarks By Medical Assistant{$$opinion_remarks_medical_assistant}
Remarks By Doctor{$opinion_remarks}




Signature of Medical Officer
(with Stamp)

EOD; $pdf->writeHTML($txt1, true, false, false, false, ''); $pdf->AddPage(); $txt2 = << .tbl1{ font-size:6px; border: 1px solid black; border-collapse: collapse; font-weight:1200; } .tbl1 td{ font-size:6px; border: 1px solid black; border-collapse: collapse; font-weight:1200; }
PREDICTED VALUES OF SPIROMETRY
Adult Predicted Values - Males age 18-25
Height(cm) Units 150 155 160 165 170 175 180 185 190 195
FVC L 3.55 3.83 4.12 4.41 4.7 4.99 5.27 5.56 5.85 6.14
FEV1 L 3.12 3.33 3.55 3.76 3.98 4.19 4.41 4.62 4.84 5.05
FEV1/FVC 0.82 0.82 0.82 0.82 0.82 0.82 0.82 0.82 0.82 0.82
PEF L 487 505 524 542 560 579 597 616 634 653
Adult Predicted Values - Males age 30-33
Height(cm) Units 150 155 160 165 170 175 180 185 190 195
FVC L 3.44 3.73 4.02 4.31 4.59 4.88 5.17 5.46 5.75 6.03
FEV1 L 3 3.22 3.43 3.65 3.86 4.08 4.29 4.51 4.72 4.94
FEV1/FVC 0.81 0.81 0.81 0.81 0.81 0.81 0.81 0.81 0.81 0.81
PEF L/min 476 495 513 532 550 569 587 605 624 642
Adult Predicted Values - Males age 34-37
Height(cm) Units 150 155 160 165 170 175 180 185 190 195
FVC L 3.34 3.63 3.91 4.2 4.49 4.78 5.07 5.35 5.64 5.93
FEV1 L 2.89 3.1 3.32 3.53 3.75 3.96 4.18 4.39 4.61 4.82
FEV1/FVC 0.81 0.81 0.81 0.81 0.81 0.81 0.81 0.81 0.81 0.81
PEF L/min 466 485 503 521 540 558 577 595 614 632
Adult Predicted Values - Males age 38-41
Height(cm) Units 150 155 160 165 170 175 180 185 190 195
FVC L 3.23 3.52 3.81 4.1 4.39 4.67 4.96 5.25 5.54 5.83
FEV1 L 2.77 2.99 3.2 3.42 3.63 3.85 4.06 4.28 4.49 4.71
FEV1/FVC 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8 0.8
PEF L/min 456 474 493 511 530 548 566 585 603 622
Adult Predicted Values - Males age 42-45
Height(cm) Units 150 155 160 165 170 175 180 185 190 195
FVC L 3.13 3.42 3.71 3.99 4.28 4.57 4.86 5.15 5.43 5.72
FEV1 L 2.66 2.87 3.09 3.3 3.52 3.73 3.95 4.16 4.38 4.59
FEV1/FVC 0.79 0.79 0.79 0.79 0.79 0.79 0.79 0.79 0.79 0.79
PEF L/min 446 464 482 501 519 538 556 574 593 611
Adult Predicted Values - Males age 46-49
Height(cm) Units 150 155 160 165 170 175 180 185 190 195
FVC L 3.03 3.31 3.6 3.89 4.18 4.47 4.75 5.04 5.33 5.62
FEV1 L 2.54 2.75 2.97 3.18 3.4 3.61 3.83 4.04 4.26 4.47
FEV1/FVC 0.78 0.78 0.78 0.78 0.78 0.78 0.78 0.78 0.78 0.78
PEF L/min 435 454 472 490 509 527 546 564 583 601
EOD; $pdf->writeHTML($txt2, true, false, false, false, ''); $pdf->AddPage(); $txt3 = << .tbl1{ font-size:6px; border: 1px solid black; border-collapse: collapse; font-weight:1200; } .tbl1 td{ font-size:6px; border: 1px solid black; border-collapse: collapse; font-weight:1200; }
Adult Predicted Values - Males age 50-53
Height(cm) Units 150 155 160 165 170 175 180 185 190 195
FVC L 2.92 3.21 3.5 3.79 4.07 4.36 4.65 4.94 5.23 5.51
FEV1 L 2.42 2.64 2.85 3.07 3.28 3.5 3.71 3.93 4.14 4.36
FEV1/FVC 0.78 0.78 0.78 0.78 0.78 0.78 0.78 0.78 0.78 0.78
PEF L/min 425 443 462 480 499 517 535 554 572 591
Adult Predicted Values - Males age 54-57
Height(cm) Units 150 155 160 165 170 175 180 185 190 195
FVC L 2.82 3.11 3.39 3.68 3.97 4.26 4.55 4.83 5.12 5.41
FEV1 L 2.31 2.52 2.74 2.95 3.17 3.38 3.6 3.81 4.03 4.24
FEV1/FVC 0.77 0.77 0.77 0.77 0.77 0.77 0.77 0.77 0.77 0.77
PEF L/min 415 433 451 470 488 507 525 543 562 580
Adult Predicted Values - Males age 58-61
Height(cm) Units 150 155 160 165 170 175 180 185 190 195
FVC L 2.71 3 3.29 3.58 3.87 4.15 4.44 4.73 5.02 5.31
FEV1 L 2.19 2.41 2.62 2.84 3.05 3.27 3.48 3.7 3.91 4.13
FEV1/FVC 0.76 0.76 0.76 0.76 0.76 0.76 0.76 0.76 0.76 0.76
PEF L/min 404 423 441 459 478 496 515 533 552 570
EOD; $pdf->writeHTML($txt3, true, false, false, false, ''); //Close and output PDF document $pdf->Output('example_018.pdf', 'I'); ?>