3 // this should be, but it is not a real class,
4 // uses function getPatientDAta sn sqlQuery from the library directory
7 $link=mysql_connect ('localhost','root','');
8 mysql_select_db (openemr
);
11 class C_WellChildCare
{
15 function C_WellChildCare ($pid) {
16 $this->patient_demo
=$this->patient_set ($pid);
17 // print_r ($this->patient_demo);
21 function patient_set ($pid) {
23 $query="SELECT TO_DAYS( CURDATE( ) ) - TO_DAYS( DOB ) AS alldays, date_format(from_days( TO_DAYS( CURDATE( ) ) - TO_DAYS( DOB ) ), \"%y-%c-%e\") AS age, sex FROM patient_data WHERE pid=$pid LIMIT 1";
25 $result=sqlQuery ($query);
26 $p_age['alldays']=$result ['alldays'];
27 $p_age['gender']=$result ['sex'];
29 if ($result['age']!='00-0-0') {
30 list ($pyear,$pmonth,$pday)=explode ('-', $result["age"] );
31 if ($pyear==1) $age=$pyear.' year ';
32 if ($pyear > 1) $age=$pyear.' years ';
33 if ($pmonth == 1) $age.=$pmonth.' month ';
34 if ($pmonth > 1) $age.=$pmonth.' months ';
35 if ($pday == 1) $age.=$pday.' day ';
36 if ($pday > 1) $age.=$pday.' days ';
39 list ($m,$d) = explode ( '.', $result['alldays']/30.4);
40 list ($d)=explode ('.', "0.$d"*30.4 );
41 if ($m == 1) $age.=$m.' month ';
42 if ($m > 1) $age.=$m.' months ';
43 if ($d == 1) $age.=$d.' day ';
44 if ($d > 1) $age.=$d.' days ';
52 function put_form ( $obj='' ) {
55 <TABLE span
class="text">
56 <TR
><TD colspan
=6><b
><U
>Well Child Care
:</U
></b
> <?php
echo $this->patient_demo
['age'] ?
></TD
></TR
>
58 <TD
>Height
:(inches
)</TD
>
59 <TD
><INPUT TYPE
="text" NAME
="height" size
="6" maxlength
="6" value
="<?php print $obj["height
"]; ?>"></TD
>
61 <TD
><INPUT TYPE
="text" NAME
="weight" size
="6" maxlength
="6" value
="<?php print $obj["weight
"]; ?>"></TD
>
62 <TD
>Head Circ
:(cm
)</TD
>
63 <TD
><INPUT TYPE
="text" NAME
="head_c" size
="4" maxlength
="4" value
="<?php print $obj["head_c
"]; ?>"></TD
>
67 <TD
><INPUT TYPE
="text" NAME
="temp" size
="6" maxlength
="6" value
="<?php print $obj["temp
"]; ?>"></TD
>
69 <TD
><INPUT TYPE
="text" NAME
="pulse" size
="2" maxlength
="2" value
="<?php print $obj["pulse
"]; ?>"></TD
>
71 <TD
><INPUT TYPE
="text" NAME
="respiration" size
="2" maxlength
="2" value
="<?php print $obj["respiration
"]; ?>"></TD
>
73 <TR
><TD colspan
=6><b
>Sensory screen
& developmental assesment
:</b
></TD
></TR
>
75 <TD
>Normal Vision
:</TD
>
76 <TD
><SELECT NAME
="normal_vision"><option
<?
if ( $obj["normal_vision"]=='yes' ) print 'selected'; ?
>>yes
<option
<?
if ( $obj["normal_vision"]=='no' ) print 'selected'; ?
>>no
</SELECT
></TD
>
77 <TD
>Normal Hearing
:</TD
>
78 <TD
><SELECT NAME
="normal_hearing"><option
<?
if ( $obj["normal_hearing"]=='yes' ) print 'selected'; ?
>>yes
<option
<?
if ( $obj["normal_hearing"]=='no' ) print 'selected'; ?
>>no
</SELECT
></TD
>
83 <TD
>Normal
for age
:</TD
>
84 <TD
><SELECT NAME
="normal_development"><option
<?
if ( $obj["normal_development"]=='yes' ) print 'selected'; ?
>>yes
<option
<?
if ( $obj["normal_development"]=='no' ) print 'selected'; ?
>>no
</SELECT
></TD
>
86 <TD
><SELECT NAME
="further_testing"><option
<?
if ( $obj["further_testing"]=='n/a' ) print 'selected'; ?
>>n
/a
<option
<?
if ( $obj["further_testing"]=='yes' ) print 'selected'; ?
>>yes
<option
<?
if ( $obj["further_testing"]=='no' ) print 'selected'; ?
>>no
</SELECT
></TD
>
90 <TR
><TD colspan
=6><b
>Assessment
and Recommendations
:</b
></TD
></TR
>
92 <!-- // show this 2 week info -->
95 if ($this->patient_demo
['alldays'] < 30) {
98 <TD
>Birth weight
:</TD
>
100 if ( $obj["birth_wt"]!='' ) print $obj["birth_wt"];
101 else print '<INPUT TYPE=text NAME=birth_wt size=5 maxlength=5>';
103 <TD
>Birth height
:</TD
>
105 if ( $obj["birth_ht"]!='' ) print $obj["birth_ht"];
106 else print '<INPUT TYPE=text NAME=birth_ht size=5 maxlength=5>';
109 <TD
>Gravida
/Para
:</TD
>
111 if ( $obj["gravida"]!='' ) print $obj["gravida"];
112 else print '<INPUT TYPE=text NAME=gravida size=5 maxlength=5>';
113 if ( $obj["para"]!='' ) print $obj["para"];
114 else print '<INPUT TYPE=text NAME=para size=5 maxlength=5>';
122 <!-- two weeks spec
-->
125 if ($this->patient_demo
['alldays'] < 30 ) {
129 <TD
><INPUT TYPE
="checkbox" NAME
="car_seat" value
="yes" <?
if ( $obj["car_seat"]!='' ) print 'checked'; ?
>></TD
>
131 <TD
><INPUT TYPE
="checkbox" NAME
="feeding" value
="yes" <?
if ( $obj["feeding"]!='' ) print 'checked'; ?
>></TD
>
132 <TD
>Immunization
:</TD
>
133 <TD
><INPUT TYPE
="checkbox" NAME
="immunization" value
="yes" <?
if ( $obj["immunization"]!='' ) print 'checked'; ?
>></TD
>
136 <TD
>Lower Water temp
:</TD
>
137 <TD
><INPUT TYPE
="checkbox" NAME
="lower_water_temp" value
="yes" <?
if ( $obj["lower_water_temp"]!='' ) print 'checked'; ?
>></TD
>
138 <TD
>Sibling jealousy
:</TD
>
139 <TD
><INPUT TYPE
="checkbox" NAME
="sibling_jealousy" value
="yes" <?
if ( $obj["sibling_jealousy"]!='' ) print 'checked'; ?
>></TD
>
140 <TD
>Stimulation
:</TD
>
141 <TD
><INPUT TYPE
="checkbox" NAME
="stimulation" value
="yes" <?
if ( $obj["stimulation"]!='' ) print 'checked'; ?
>></TD
>
145 <TD
><INPUT TYPE
="checkbox" NAME
="sleep" value
="yes" <?
if ( $obj["sleep"]!='' ) print 'checked'; ?
>></TD
>
146 <TD
>Babysitters
:</TD
>
147 <TD
><INPUT TYPE
="checkbox" NAME
="babysitters" value
="yes" <?
if ( $obj["babysitters"]!='' ) print 'checked'; ?
>></TD
>
149 <TD
><INPUT TYPE
="checkbox" NAME
="colic" value
="yes" <?
if ( $obj["colic"]!='' ) print 'checked'; ?
>></TD
>
154 <!-- // from 2 weeks to two years -->
157 if ($this->patient_demo
['alldays'] < 750 ) {
160 <TD
>Breast Feeding
:</TD
>
161 <TD
><SELECT NAME
="breast_feeding"><option
<?
if ( $obj["breast_feeding"]=='no' ) print 'selected'; ?
>>no
<option
<?
if ( $obj["breast_feeding"]=='yes' ) print 'selected'; ?
>>yes
</SELECT
></TD
>
163 <TD
><SELECT NAME
="formula"><option
<?
if ( $obj["formula"]=='no' ) print 'selected'; ?
>>no
<option
<?
if ( $obj["formula"]=='yes' ) print 'selected'; ?
>>yes
</SELECT
></TD
>
168 <TD
>WIC referred
:</TD
>
169 <TD
><SELECT NAME
="WIC_referred"><option
<?
if ( $obj["WIC_referred"]=='no' ) print 'selected'; ?
>>no
<option
<?
if ( $obj["WIC_referred"]=='yes' ) print 'selected'; ?
>>yes
</SELECT
></TD
>
171 <TD
><SELECT NAME
="vitamins"><option
<?
if ( $obj["vitamins"]=='no' ) print 'selected'; ?
>>no
<option
<?
if ( $obj["vitamins"]=='yes' ) print 'selected'; ?
>>yes
</SELECT
></TD
>
173 <TD
><SELECT NAME
="iron"><option
<?
if ( $obj["iron"]=='no' ) print 'selected'; ?
>>no
<option
<?
if ( $obj["iron"]=='yes' ) print 'selected'; ?
>>yes
</SELECT
></TD
>
181 if ($this->patient_demo
['alldays'] >= 31 AND $this->patient_demo
['alldays'] <= 90 ) {
185 <TD
><INPUT TYPE
="checkbox" NAME
="car_seat" value
="yes" <?
if ( $obj["car_seat"]!='' ) print 'checked'; ?
>></TD
>
186 <TD
>Fever Education
:</TD
>
187 <TD
><INPUT TYPE
="checkbox" NAME
="fever_education" value
="yes" <?
if ( $obj["fever_education"]!='' ) print 'checked'; ?
>></TD
>
189 <TD
><INPUT TYPE
="checkbox" NAME
="sick_care" value
="yes" <?
if ( $obj["sick_care"]!='' ) print 'checked'; ?
>></TD
>
193 <TD
><INPUT TYPE
="checkbox" NAME
="safety" value
="yes" <?
if ( $obj["safety"]!='' ) print 'checked'; ?
>></TD
>
195 <TD
><INPUT TYPE
="checkbox" NAME
="pacifiers" value
="yes" <?
if ( $obj["pacifiers"]!='' ) print 'checked'; ?
>></TD
>
196 <TD
>Talk to child
:</TD
>
197 <TD
><INPUT TYPE
="checkbox" NAME
="talk_to_child" value
="yes" <?
if ( $obj["talk_to_child"]!='' ) print 'checked'; ?
>></TD
>
205 if ($this->patient_demo
['alldays'] >= 91 AND $this->patient_demo
['alldays'] <= 150 ) {
208 <TD
>Solid Foods
:</TD
>
209 <TD
><INPUT TYPE
="checkbox" NAME
="solid_foods" value
="yes" <?
if ( $obj["solid_foods"]!='' ) print 'checked'; ?
>></TD
>
211 <TD
><INPUT TYPE
="checkbox" NAME
="choking" value
="yes" <?
if ( $obj["choking"]!='' ) print 'checked'; ?
>></TD
>
213 <TD
><INPUT TYPE
="checkbox" NAME
="teething" value
="yes" <?
if ( $obj["teething"]!='' ) print 'checked'; ?
>></TD
>
217 <TD
><INPUT TYPE
="checkbox" NAME
="falls" value
="yes" <?
if ( $obj["falls"]!='' ) print 'checked'; ?
>></TD
>
219 <TD
><INPUT TYPE
="checkbox" NAME
="baby_proof" value
="yes" <?
if ( $obj["baby_proof"]!='' ) print 'checked'; ?
>></TD
>
221 <TD
><INPUT TYPE
="checkbox" NAME
="colds" value
="yes" <?
if ( $obj["colds"]!='' ) print 'checked'; ?
>></TD
>
230 if ($this->patient_demo
['alldays'] >= 151 AND $this->patient_demo
['alldays'] <= 230 ) {
234 <TD
><INPUT TYPE
="checkbox" NAME
="baby_proof" value
="yes" <?
if ( $obj["baby_proof"]!='' ) print 'checked'; ?
>></TD
>
235 <TD
>Stranger Anxiety
:</TD
>
236 <TD
><INPUT TYPE
="checkbox" NAME
="stranger_anxiety" value
="yes" <?
if ( $obj["stranger_anxiety"]!='' ) print 'checked'; ?
>></TD
>
238 <TD
><INPUT TYPE
="checkbox" NAME
="no_peanuts" value
="yes" <?
if ( $obj["no_peanuts"]!='' ) print 'checked'; ?
>></TD
>
241 <TD
>No bottle in bed
:</TD
>
242 <TD
><INPUT TYPE
="checkbox" NAME
="no_bottle_in_bed" value
="yes" <?
if ( $obj["no_bottle_in_bed"]!='' ) print 'checked'; ?
>></TD
>
243 <TD
>Poisons
- Ipecac
:</TD
>
244 <TD
><INPUT TYPE
="checkbox" NAME
="poisons_ipecac" value
="yes" <?
if ( $obj["poisons_ipecac"]!='' ) print 'checked'; ?
>></TD
>
245 <TD
>Pool
& Tub safety
</TD
>
246 <TD
><INPUT TYPE
="checkbox" NAME
="pool_tub_safety" value
="yes" <?
if ( $obj["pool_tub_safety"]!='' ) print 'checked'; ?
>></TD
>
251 <!-- common part from
9 to
24 months
-->
254 if ($this->patient_demo
['alldays'] >= 230 AND $this->patient_demo
['alldays'] <= 730 ) {
258 <TD
><INPUT TYPE
="checkbox" NAME
="whole_milk" value
="yes" <?
if ( $obj["whole_milk"]!='' ) print 'checked'; ?
>></TD
>
260 <TD
><INPUT TYPE
="checkbox" NAME
="solids" value
="yes" <?
if ( $obj["solids"]!='' ) print 'checked'; ?
>></TD
>
268 <!-- common part from
12 to
24 months
-->
271 if ($this->patient_demo
['alldays'] >= 350 AND $this->patient_demo
['alldays'] <= 730 ) {
275 <TD
><INPUT TYPE
="checkbox" NAME
="cup" value
="yes" <?
if ( $obj["cup"]!='' ) print 'checked'; ?
>></TD
>
277 <TD
><INPUT TYPE
="checkbox" NAME
="bottle" value
="yes" <?
if ( $obj["bottle"]!='' ) print 'checked'; ?
>></TD
>
289 if ($this->patient_demo
['alldays'] >= 231 AND $this->patient_demo
['alldays'] <= 320 ) {
292 <TD
>Talk to child
:</TD
>
293 <TD
><INPUT TYPE
="checkbox" NAME
="talk_to_child" value
="yes" <?
if ( $obj["talk_to_child"]!='' ) print 'checked'; ?
>></TD
>
295 <TD
><INPUT TYPE
="checkbox" NAME
="baby_proof" value
="yes" <?
if ( $obj["baby_proof"]!='' ) print 'checked'; ?
>></TD
>
296 <TD
>Poison
-Ipecac
</TD
>
297 <TD
><INPUT TYPE
="checkbox" NAME
="poison_ipecac" value
="yes" <?
if ( $obj["poison_ipecac"]!='' ) print 'checked'; ?
>></TD
>
300 <TD
>Pool
& tub safety
:</TD
>
301 <TD
><INPUT TYPE
="checkbox" NAME
="pool_tub_safety" value
="yes" <?
if ( $obj["pool_tub_safety"]!='' ) print 'checked'; ?
>></TD
>
302 <TD
>Self Feeding
:</TD
>
303 <TD
><INPUT TYPE
="checkbox" NAME
="self_feeding" value
="yes" <?
if ( $obj["self_feeding"]!='' ) print 'checked'; ?
>></TD
>
305 <TD
><INPUT TYPE
="checkbox" NAME
="shoes" value
="yes" <?
if ( $obj["shoes"]!='' ) print 'checked'; ?
>></TD
>
310 <!-- // 12 months -->
313 if ($this->patient_demo
['alldays'] >= 321 AND $this->patient_demo
['alldays'] <= 410 ) {
317 <TD
><INPUT TYPE
="checkbox" NAME
="discipline" value
="yes" <?
if ( $obj["discipline"]!='' ) print 'checked'; ?
>></TD
>
318 <TD
>Name Objects
:</TD
>
319 <TD
><INPUT TYPE
="checkbox" NAME
="name_objects" value
="yes" <?
if ( $obj["name_objects"]!='' ) print 'checked'; ?
>></TD
>
321 <TD
><INPUT TYPE
="checkbox" NAME
="use_of_cup" value
="yes" <?
if ( $obj["use_of_cup"]!='' ) print 'checked'; ?
>></TD
>
325 <TD
><INPUT TYPE
="checkbox" NAME
="junk_food" value
="yes" <?
if ( $obj["junk_food"]!='' ) print 'checked'; ?
>></TD
>
326 <TD
>No toilet training
:</TD
>
327 <TD
><INPUT TYPE
="checkbox" NAME
="no_toilet_training" value
="yes" <?
if ( $obj["no_toilet_training"]!='' ) print 'checked'; ?
>></TD
>
328 <TD
>Dental Hygiene
</TD
>
329 <TD
><INPUT TYPE
="checkbox" NAME
="dental_hygiene" value
="yes" <?
if ( $obj["dental_hygiene"]!='' ) print 'checked'; ?
>></TD
>
335 <!-- // 15 months -->
338 if ($this->patient_demo
['alldays'] >= 411 AND $this->patient_demo
['alldays'] <= 500 ) {
341 <TD
>Tantrum
, normal
</TD
>
342 <TD
><INPUT TYPE
="checkbox" NAME
="no_toilet_training" value
="yes" <?
if ( $obj["no_toilet_training"]!='' ) print 'checked'; ?
>></TD
>
344 <TD
><INPUT TYPE
="checkbox" NAME
="no_toilet_training" value
="yes" <?
if ( $obj["no_toilet_training"]!='' ) print 'checked'; ?
>></TD
>
346 <TD
><INPUT TYPE
="checkbox" NAME
="no_toilet_training" value
="yes" <?
if ( $obj["no_toilet_training"]!='' ) print 'checked'; ?
>></TD
>
349 <TD
>Toilet training
</TD
>
350 <TD
><INPUT TYPE
="checkbox" NAME
="preparing_training" value
="yes" <?
if ( $obj["preparing_training"]!='' ) print 'checked'; ?
>></TD
>
352 <TD
><INPUT TYPE
="checkbox" NAME
="sleeping" value
="yes" <?
if ( $obj["sleeping"]!='' ) print 'checked'; ?
>></TD
>
354 <TD
><INPUT TYPE
="checkbox" NAME
="eating" value
="yes" <?
if ( $obj["eating"]!='' ) print 'checked'; ?
>></TD
>
361 <!-- // 18 months -->
364 if ($this->patient_demo
['alldays'] >= 501 AND $this->patient_demo
['alldays'] <= 640 ) {
368 <TD
><INPUT TYPE
="checkbox" NAME
="snacks" value
="yes" <?
if ( $obj["snacks"]!='' ) print 'checked'; ?
>></TD
>
370 <TD
><INPUT TYPE
="checkbox" NAME
="no_botle" value
="yes" <?
if ( $obj["no_botle"]!='' ) print 'checked'; ?
>></TD
>
371 <TD
>Sibling Iteration
:</TD
>
372 <TD
><INPUT TYPE
="checkbox" NAME
="sibling_iteration" value
="yes" <?
if ( $obj["sibling_iteration"]!='' ) print 'checked'; ?
>></TD
>
375 <TD
>Toilet training
:</TD
>
376 <TD
><INPUT TYPE
="checkbox" NAME
="toilet_training" value
="yes" <?
if ( $obj["toilet_training"]!='' ) print 'checked'; ?
>></TD
>
377 <TD
>Read to child
:</TD
>
378 <TD
><INPUT TYPE
="checkbox" NAME
="read_to_child" value
="yes" <?
if ( $obj["read_to_child"]!='' ) print 'checked'; ?
>></TD
>
385 <!-- // 24 months to 3 years -->
388 if ($this->patient_demo
['alldays'] >= 641 AND $this->patient_demo
['alldays'] <= 1095 ) {
392 <TD
><INPUT TYPE
="checkbox" NAME
="car_seat" value
="yes" <?
if ( $obj["car_seat"]!='' ) print 'checked'; ?
>></TD
>
393 <TD
>Toilet training
:</TD
>
394 <TD
><INPUT TYPE
="checkbox" NAME
="toilet_training" value
="yes" <?
if ( $obj["toilet_training"]!='' ) print 'checked'; ?
>></TD
>
395 <TD
>Read to child
:</TD
>
396 <TD
><INPUT TYPE
="checkbox" NAME
="read_to_child" value
="yes" <?
if ( $obj["read_to_child"]!='' ) print 'checked'; ?
>></TD
>
400 <TD
><INPUT TYPE
="checkbox" NAME
="guns" value
="yes" <?
if ( $obj["guns"]!='' ) print 'checked'; ?
>></TD
>
402 <TD
><INPUT TYPE
="checkbox" NAME
="self_care" value
="yes" <?
if ( $obj["self_care"]!='' ) print 'checked'; ?
>></TD
>
410 <!-- // 3 to 5 years -->
413 if ($this->patient_demo
['alldays'] >= 1096 AND $this->patient_demo
['alldays'] <= 1825 ) {
416 <TD
>School readiness
:</TD
>
417 <TD
><INPUT TYPE
="checkbox" NAME
="school_readiness" value
="yes" <?
if ( $obj["school_readiness"]!='' ) print 'checked'; ?
>></TD
>
418 <TD
>Household chores
:</TD
>
419 <TD
><INPUT TYPE
="checkbox" NAME
="household_chores" value
="yes" <?
if ( $obj["household_chores"]!='' ) print 'checked'; ?
>></TD
>
420 <TD
>Demographic info
:</TD
>
421 <TD
><INPUT TYPE
="checkbox" NAME
="own_demographic" value
="yes" <?
if ( $obj["own_demographic"]!='' ) print 'checked'; ?
>></TD
>
425 <TD
><INPUT TYPE
="checkbox" NAME
="seat_belts" value
="yes" <?
if ( $obj["seat_belts"]!='' ) print 'checked'; ?
>></TD
>
427 <TD
><INPUT TYPE
="checkbox" NAME
="no_matches" value
="yes" <?
if ( $obj["no_matches"]!='' ) print 'checked'; ?
>></TD
>
428 <TD
>Street safety
:</TD
>
429 <TD
><INPUT TYPE
="checkbox" NAME
="street_safety" value
="yes" <?
if ( $obj["street_safety"]!='' ) print 'checked'; ?
>></TD
>
432 <TD
>Sexual curiosity
:</TD
>
433 <TD
><INPUT TYPE
="checkbox" NAME
="sexual_curiosity" value
="yes" <?
if ( $obj["sexual_curiosity"]!='' ) print 'checked'; ?
>></TD
>
439 <!-- // 5 to 7.5 years -->
442 if ($this->patient_demo
['alldays'] >= 1826 AND $this->patient_demo
['alldays'] <= 2737 ) {
445 <TD
>Communication
:</TD
>
446 <TD
><INPUT TYPE
="checkbox" NAME
="communication" value
="yes" <?
if ( $obj["communication"]!='' ) print 'checked'; ?
>></TD
>
447 <TD
>Limit Setting
:</TD
>
448 <TD
><INPUT TYPE
="checkbox" NAME
="limit_setting" value
="yes" <?
if ( $obj["limit_setting"]!='' ) print 'checked'; ?
>></TD
>
449 <TD
>Peer Relations
:</TD
>
450 <TD
><INPUT TYPE
="checkbox" NAME
="peer_relations" value
="yes" <?
if ( $obj["peer_relations"]!='' ) print 'checked'; ?
>></TD
>
453 <TD
>Parental role
:</TD
>
454 <TD
><INPUT TYPE
="checkbox" NAME
="parental_role" value
="yes" <?
if ( $obj["parental_role"]!='' ) print 'checked'; ?
>></TD
>
455 <TD
>Reg Physic act
:</TD
>
456 <TD
><INPUT TYPE
="checkbox" NAME
="reg_physic_act" value
="yes" <?
if ( $obj["reg_physic_act"]!='' ) print 'checked'; ?
>></TD
>
464 <!-- // 7.5 to 9.5 years -->
467 if ($this->patient_demo
['alldays'] >= 2738 AND $this->patient_demo
['alldays'] <= 3467 ) {
470 <TD
>Sexual info
:</TD
>
471 <TD
><INPUT TYPE
="checkbox" NAME
="sexual_info" value
="yes" <?
if ( $obj["sexual_info"]!='' ) print 'checked'; ?
>></TD
>
472 <TD
>Reg Physic Act
:</TD
>
473 <TD
><INPUT TYPE
="checkbox" NAME
="reg_physic_act" value
="yes" <?
if ( $obj["reg_physic_act"]!='' ) print 'checked'; ?
>></TD
>
474 <TD
>Peer Relations
:</TD
>
475 <TD
><INPUT TYPE
="checkbox" NAME
="peer_relations" value
="yes" <?
if ( $obj["peer_relations"]!='' ) print 'checked'; ?
>></TD
>
481 <!-- // 9.5 to 11 years -->
484 if ($this->patient_demo
['alldays'] >= 3468 AND $this->patient_demo
['alldays'] <= 4015 ) {
488 <TD
><INPUT TYPE
="checkbox" NAME
="puberty" value
="yes" <?
if ( $obj["puberty"]!='' ) print 'checked'; ?
>></TD
>
489 <TD
>Comunicates Affection
:</TD
>
490 <TD
><INPUT TYPE
="checkbox" NAME
="affection" value
="yes" <?
if ( $obj["affection"]!='' ) print 'checked'; ?
>></TD
>
498 <!-- // more than 9.5 years -->
501 if ($this->patient_demo
['alldays'] >= 3468 ) {
504 <TD
>Reg Physic Act
:</TD
>
505 <TD
><INPUT TYPE
="checkbox" NAME
="reg_physic_act" value
="yes" <?
if ( $obj["reg_physic_act"]!='' ) print 'checked'; ?
>></TD
>
506 <TD
>Sexual Info
:</TD
>
507 <TD
><INPUT TYPE
="checkbox" NAME
="sexual_info" value
="yes" <?
if ( $obj["sexual_info"]!='' ) print 'checked'; ?
>></TD
>
508 <TD
>Smoke
, Alcohol
, Drugs
</TD
>
509 <TD
><INPUT TYPE
="checkbox" NAME
="smoke_alcohol_drugs" value
="yes" <?
if ( $obj["smoke_alcohol_drugs"]!='' ) print 'checked'; ?
>></TD
>
514 <!-- // more than 13.5 years -->
517 if ($this->patient_demo
['alldays'] >= 4745 ) {
520 <TD
>Pregnancy prevention
:</TD
>
521 <TD
><INPUT TYPE
="checkbox" NAME
="pregnancy_prevention" value
="yes" <?
if ( $obj["pregnancy_prevention"]!='' ) print 'checked'; ?
>></TD
>
527 <!-- // common part since 18 monhts -->
530 if ($this->patient_demo
['alldays'] >= 501 ) {
534 <TD
>Dental Higiene
:</TD
>
535 <TD
><INPUT TYPE
="checkbox" NAME
="dental_hygiene" value
="yes" <?
if ( $obj["dental_hygiene"]!='' ) print 'checked'; ?
>></TD
>
536 <TD
>Nutr Assesment
:</TD
>
537 <TD
><SELECT NAME
="nutritional_assessment"><option
<?
if ( $obj["nutritional_assessment"]=='no' ) print 'selected'; ?
>>no
<option
<?
if ( $obj["nutritional_assessment"]=='yes' ) print 'selected'; ?
>>yes
</SELECT
></TD
>
538 <TD
>Nutr Asses
. ref
:</TD
>
539 <TD
><SELECT NAME
="nutritional_assessment_referred"><option
<?
if ( $obj["nutritional_assessment_referred"]=='no' ) print 'selected'; ?
>>no
<option
<?
if ( $obj["nutritional_assessment_referred"]=='yes' ) print 'selected'; ?
>>yes
</SELECT
></TD
>
544 <!-- closing the variable part
-->
546 <TABLE span
class="text">
547 <tr
><td colspan
=8><b
>Physical Exam
:</b
>Are the following Normal?
</td
></tr
>
550 <TD
><SELECT NAME
="normal_skin"><option
<?php
if ( $obj["normal_skin"]=='yes' ) print 'selected'; ?
> >yes
<option
<?
if ( $obj["normal_skin"]=='no' ) print 'selected'; ?
>>no
</SELECT
></TD
>
552 <TD
><SELECT NAME
="normal_head"><option
<?php
if ( $obj["normal_head"]=='yes' ) print 'selected'; ?
> >yes
<option
<?
if ( $obj["normal_head"]=='no' ) print 'selected'; ?
>>no
</SELECT
></TD
>
554 <TD
><SELECT NAME
="normal_eyes"><option
<?php
if ( $obj["normal_eyes"]=='yes' ) print 'selected'; ?
> >yes
<option
<?
if ( $obj["normal_eyes"]=='no' ) print 'selected'; ?
>>no
</SELECT
></TD
>
556 <TD
><SELECT NAME
="normal_ears"><option
<?php
if ( $obj["normal_ears"]=='yes' ) print 'selected'; ?
> >yes
<option
<?
if ( $obj["normal_ears"]=='no' ) print 'selected'; ?
>>no
</SELECT
></TD
>
560 <TD
><SELECT NAME
="normal_nose"><option
<?php
if ( $obj["normal_nose"]=='yes' ) print 'selected'; ?
> >yes
<option
<?
if ( $obj["normal_nose"]=='no' ) print 'selected'; ?
>>no
</SELECT
></TD
>
562 <TD
><SELECT NAME
="normal_mouth_thr"><option
<?php
if ( $obj["normal_mouth_thr"]=='yes' ) print 'selected'; ?
> >yes
<option
<?
if ( $obj["normal_mouth_thr"]=='no' ) print 'selected'; ?
>>no
</SELECT
></TD
>
564 <TD
><SELECT NAME
="normal_nodes"><option
<?php
if ( $obj["normal_nodes"]=='yes' ) print 'selected'; ?
> >yes
<option
<?
if ( $obj["normal_nodes"]=='no' ) print 'selected'; ?
>>no
</SELECT
></TD
>
566 <TD
><SELECT NAME
="normal_heart"><option
<?php
if ( $obj["normal_heart"]=='yes' ) print 'selected'; ?
> >yes
<option
<?
if ( $obj["normal_heart"]=='no' ) print 'selected'; ?
>>no
</SELECT
></TD
>
570 <TD
><SELECT NAME
="normal_lungs"><option
<?php
if ( $obj["normal_lungs"]=='yes' ) print 'selected'; ?
> >yes
<option
<?
if ( $obj["normal_lungs"]=='no' ) print 'selected'; ?
>>no
</SELECT
></TD
>
572 <TD
><SELECT NAME
="normal_abdomen"><option
<?php
if ( $obj["normal_abdomen"]=='yes' ) print 'selected'; ?
> >yes
<option
<?
if ( $obj["normal_abdomen"]=='no' ) print 'selected'; ?
>>no
</SELECT
></TD
>
574 <TD
><SELECT NAME
="normal_fem_pulse"><option
<?php
if ( $obj["normal_fem_pulse"]=='yes' ) print 'selected'; ?
> >yes
<option
<?
if ( $obj["normal_fem_pulse"]=='no' ) print 'selected'; ?
>>no
</SELECT
></TD
>
576 <TD
><SELECT NAME
="normal_genitalia"><option
<?php
if ( $obj["normal_genitalia"]=='yes' ) print 'selected'; ?
> >yes
<option
<?
if ( $obj["normal_genitalia"]=='no' ) print 'selected'; ?
>>no
</SELECT
></TD
>
580 <TD
><SELECT NAME
="normal_extremities"><option
<?php
if ( $obj["normal_extremities"]=='yes' ) print 'selected'; ?
> >yes
<option
<?
if ( $obj["normal_extremities"]=='no' ) print 'selected'; ?
>>no
</SELECT
></TD
>
582 <TD
><SELECT NAME
="normal_spine"><option
<?php
if ( $obj["normal_spine"]=='yes' ) print 'selected'; ?
> >yes
<option
<?
if ( $obj["normal_spine"]=='no' ) print 'selected'; ?
>>no
</SELECT
></TD
>
584 <TD
><SELECT NAME
="normal_neuro"><option
<?php
if ( $obj["normal_neuro"]=='yes' ) print 'selected'; ?
> >yes
<option
<?
if ( $obj["normal_neuro"]=='no' ) print 'selected'; ?
>>no
</SELECT
></TD
>
586 <TD
><SELECT NAME
="tanner_stage"><option
<?php
if ( $obj["tanner_stage"]=='n/a' ) print 'selected'; ?
> >n
/a
<option
<?php
if ( $obj["tanner_stage"]=='I' ) print 'selected'; ?
> >I
<option
<?
if ( $obj["tanner_stage"]=='II' ) print 'selected'; ?
>>II
<option
<?
if ( $obj["tanner_stage"]=='III' ) print 'selected'; ?
>>III
<option
<?
if ( $obj["tanner_stage"]=='IV' ) print 'selected'; ?
>>IV
<option
<?
if ( $obj["tanner_stage"]=='V' ) print 'selected'; ?
>>V
</SELECT
></TD
>
589 <TD colspan
=8><b
>Notes
, Coments
, Assesment
& Plan
</b
></TD
>
592 <TD colspan
=8><TEXTAREA NAME
="notes" ROWS
="2" COLS
="50"><?php
echo $obj["notes"] ?
></TEXTAREA
></TD
>