Radha Nagar, Near Pragati School,
Panchavati Square, Amravati, 444603
Ph.: 2550505, 2577703, 9130005760
www.parijatchildrenhospital.com
हॉस्पिटल मोठे पण सर्वांना परवडणारे !!!
@php $filled = function ($v) { if ($v === null) { return false; } if (is_string($v)) { return trim($v) !== ''; } if (is_numeric($v)) { return true; } return !empty($v); }; $complaintsPrint = trim(($opto_data['items']['Complaint1'] ?? '').(isset($opto_data['items']['Complaint2']) && $opto_data['items']['Complaint2'] != '' ? ' / '.$opto_data['items']['Complaint2'] : '')); $hasVitalsPrint = $filled($opto_data['items']['DmFrom'] ?? null) || $filled($opto_data['items']['HtFrom'] ?? null) || $filled($opto_data['items']['CadFrom'] ?? null) || $filled($opto_data['items']['ProstFrom'] ?? null) || $filled($opto_data['items']['CopdFrom'] ?? null); $hasSystemExamPrint = $filled($consult_data['items']['ExamRs'] ?? null) || $filled($consult_data['items']['ExamCvs'] ?? null) || $filled($consult_data['items']['ExamThroat'] ?? null) || $filled($consult_data['items']['ExamCns'] ?? null) || $filled($consult_data['items']['ExamPa'] ?? null) || $filled($consult_data['items']['ExamOther'] ?? null); $hasInvPrint = $filled($consult_data['items']['InvStName'] ?? null); $hasVacPrint = $filled($consult_data['items']['Vaccination'] ?? null) || $filled($consult_data['items']['VaccinationAmount'] ?? null); $hasTreatmentItemsPrint = false; for ($ti = 1; $ti <= 10; $ti++) { $tp = $treatment_print_parts[$ti] ?? ['drug' => '', 'detail' => '']; if (($consult_treat_data['items']['TreatChk'.$ti] ?? 0) == 1 && (!empty($tp['drug']) || !empty($tp['detail']))) { $hasTreatmentItemsPrint = true; break; } } $hasAdvicePrint = $filled($consult_data['items']['Advice'] ?? null); $showTreatmentTable = $hasTreatmentItemsPrint || $hasAdvicePrint; $followUpRaw = $consult_data['items']['AppointDate'] ?? $consult_data['items']['ReviewDate'] ?? null; $hasFollowUpPrint = $filled($followUpRaw) && ($followUpRaw ?? '') !== '0000-00-00'; $hasNextVacPrint = !empty($consult_data['items']['NextVaccineDate'] ?? null) && ($consult_data['items']['NextVaccineDate'] ?? '') !== '0000-00-00'; $hasClinicalBeforeInv = $filled($consult_data['items']['Diagnosis'] ?? null) || $filled($complaintsPrint) || $filled($opto_data['items']['PastHistory'] ?? null) || $filled($opto_data['items']['MedicalHistory'] ?? null) || $hasVitalsPrint || $hasSystemExamPrint; $hasClinicalTable = $hasClinicalBeforeInv || $hasInvPrint || $hasVacPrint; $showInvVacDivider = ($hasInvPrint || $hasVacPrint) && $hasClinicalBeforeInv; $wPrint = $opto_data['items']['Weight'] ?? $queue_data['items']['Weight'] ?? null; $tPrint = $opto_data['items']['Temp'] ?? $queue_data['items']['Temp'] ?? null; $hPrint = $opto_data['items']['Height'] ?? $queue_data['items']['Height'] ?? null; $hasPatientVitalsRow = $filled($wPrint) || $filled($tPrint) || $filled($hPrint); $addrRaw = $pt_data['items']['Address'] ?? ''; $hasAddressRow = $filled($addrRaw); @endphp @if($hasPatientVitalsRow) @endif @if($hasAddressRow) @endif
Name : {{ isset($pt_data['items']['PatientName']) ? strtoupper(strtolower($pt_data['items']['PatientName'])) : '' }} Age : {{ $pt_data['items']['Age'] ?? '' }} Gender : {{ $pt_data['items']['Gender'] ?? '' }}
UHID No : {{ $pt_data['items']['MrdNo'] ?? '' }} Visit No : {{ $queue_data['items']['VisitNo'] ?? ($opto_data['items']['VisitNo'] ?? '') }} Date : {{ isset($opto_data['items']['VisitDate']) ? date('d/m/Y', strtotime(str_replace('-', '/', $opto_data['items']['VisitDate']))) : '' }}
Weight : {{ $wPrint ?? '' }} Temp : {{ $tPrint ?? '' }} Height : {{ $hPrint ?? '' }}
Address : {{ strtoupper(strtolower($addrRaw)) }}
@if($hasClinicalTable) @if($filled($consult_data['items']['Diagnosis'] ?? null)) @endif @if($filled($complaintsPrint)) @endif @if($filled($opto_data['items']['PastHistory'] ?? null)) @endif @if($filled($opto_data['items']['MedicalHistory'] ?? null)) @endif @if($hasVitalsPrint) @endif @if($hasSystemExamPrint) @endif @if($filled($consult_data['items']['ExamRs'] ?? null)) @endif @if($filled($consult_data['items']['ExamCvs'] ?? null)) @endif @if($filled($consult_data['items']['ExamThroat'] ?? null)) @endif @if($filled($consult_data['items']['ExamCns'] ?? null)) @endif @if($filled($consult_data['items']['ExamPa'] ?? null)) @endif @if($filled($consult_data['items']['ExamOther'] ?? null)) @endif @if($showInvVacDivider) @endif @if($hasInvPrint) @endif @if($hasVacPrint) @endif
Diagnosis :{{ $consult_data['items']['Diagnosis'] }}
Presenting Complaints : {{ $complaintsPrint }}
Past History : {{ $opto_data['items']['PastHistory'] }}
Birth History : {{ $opto_data['items']['MedicalHistory'] }}
General Examination
H.R : {{ $opto_data['items']['DmFrom'] ?? '' }} / Min R.R : {{ $opto_data['items']['HtFrom'] ?? '' }}/ Min Sp.O2 : {{ $opto_data['items']['CadFrom'] ?? '' }}% B.P : {{ $opto_data['items']['ProstFrom'] ?? '' }}  MMof Hg H.C : {{ $opto_data['items']['CopdFrom'] ?? '' }} CM
System Examination
R.S {{ $consult_data['items']['ExamRs'] }}
C.V.S {{ $consult_data['items']['ExamCvs'] }}
THROAT {{ $consult_data['items']['ExamThroat'] }}
C.N.S {{ $consult_data['items']['ExamCns'] }}
P.A {{ $consult_data['items']['ExamPa'] }}
Other {{ $consult_data['items']['ExamOther'] }}
INVESTIGATION : {{ $consult_data['items']['InvStName'] }}
VACCINATION : {{ $consult_data['items']['Vaccination'] ?? '' }}@if($filled($consult_data['items']['VaccinationAmount'] ?? null))  (₹{{ $consult_data['items']['VaccinationAmount'] }})@endif
@endif @if($showTreatmentTable) @if($hasTreatmentItemsPrint) @endif @if($hasAdvicePrint) @endif
TREATMENT
Rx,
    @for($ti = 1; $ti <= 10; $ti++) @php $tp = $treatment_print_parts[$ti] ?? ['drug' => '', 'detail' => '']; $showTreat = ($consult_treat_data['items']['TreatChk'.$ti] ?? 0) == 1 && (!empty($tp['drug']) || !empty($tp['detail'])); @endphp @if($showTreat)
  • @if(!empty($tp['drug'])) {{ $tp['drug'] }} @endif @if(!empty($tp['detail'])) {{ $tp['detail'] }} @endif
  • @endif @endfor
Advice : {{ $consult_data['items']['Advice'] }}
@endif @if($hasFollowUpPrint) @endif @if($hasNextVacPrint) @endif
@if(!empty($DocName))Dr. {{ $DocName }}@endif