new form from Jim Proctor
[openemr.git] / contrib / forms / individual_treatment_plan / view.php
blobef9e73024efc30eac39bb26ed6cc3fe260f87c3f
2 <?php
3 include_once("../../globals.php");
4 ?>
5 <html><head>
6 <link rel=stylesheet href="<?echo $css_header;?>" type="text/css">
7 </head>
8 <body <?echo $top_bg_line;?> topmargin=0 rightmargin=0 leftmargin=2 bottommargin=0 marginwidth=2 marginheight=0>
9 <?php
10 include_once("$srcdir/api.inc");
13 $obj = formFetch("form_individual_treatment_plan", $_GET["id"]);
17 <form method=post action="<?echo $rootdir?>/forms/individual_treatment_plan/save.php?mode=update&id=<?echo $_GET["id"];?>" name="my_form">
18 <span class="title"><center><b>Individual Treatment Plan</b></center></span><br><br>
19 <center>
20 <a href="javascript:document.my_form.submit();" class="link_submit">[Save]</a>
21 <a href="<?echo "$rootdir/patient_file/encounter/patient_encounter.php";?>" class="link" target=Main>[Don't Save Changes]</a></center>
22 <br></br>
24 <? /* From New */ ?>
30 <?php $res = sqlStatement("SELECT fname,mname,lname,ss,street,city,state,postal_code,phone_home,DOB FROM patient_data WHERE pid = $pid");
31 $result = SqlFetchArray($res); ?>
33 <b>Date of Referral:</b>&nbsp;<input type="text" name="date_of_referal" value="<? echo stripslashes($obj{"date_of_referal"});?>">
34 <img src="../../../images/space.gif" width="260" height="1">
35 <b>Date of Plan:</b>&nbsp; <?php print date('m/d/y'); ?><br><br>
37 <img src="../../../images/space.gif" width="28" height="1">
38 <b>Client Name:</b>&nbsp; <?php echo $result['fname'] . '&nbsp' . $result['mname'] . '&nbsp;' . $result['lname'];?>
39 <img src="../../../images/space.gif" width="292" height="1">
40 <b>DCN:</b>
41 <img src="../../../images/space.gif" width="1" height="1">
42 <input type="text" name="dcn" value="<? echo stripslashes($obj{"dcn"});?>"> <br><br>
44 <b>ICD/9/CM Code:</b>&nbsp;<input type="text" name="icd9" value="<? echo stripslashes($obj{"icd9"});?>">
45 <img src="../../../images/space.gif" width="200" height="1">
46 <b>Prognosis:</b>&nbsp;<input type="text" name="prognosis" value="<? echo stripslashes($obj{"prognosis"});?>"><br><br>
48 <b>Diagnosis Description:</b><br>
49 <textarea cols=85 rows=2 wrap=virtual name="diagnosis_description" ><? echo stripslashes($obj{"diagnosis_description"});?></textarea><br><br>
51 <b>Presenting Problem Description and Psychosocial Information:</b><br>
52 <textarea cols=85 rows=3 wrap=virtual name="presenting_problem" ><? echo stripslashes($obj{"presenting_problem"});?></textarea><br><br>
54 <b>Frequency:</b>&nbsp;<input type="text" name="frequency" size="12" maxlength="10" value="<? echo stripslashes($obj{"frequency"});?>">
55 <img src="../../../images/space.gif" width="40" height="1">
56 <b>Duration:</b>&nbsp;<input type="text" name="duration" size="12" maxlength="10" value="<? echo stripslashes($obj{"duration"});?>">
57 <img src="../../../images/space.gif" width="40" height="1">
58 <b>Scope:</b>&nbsp;<input type="text" name="scope" size="12" maxlength="10" value="<? echo stripslashes($obj{"scope"});?>"><br><br>
60 <b>Short Term Goals:</b>
61 <img src="../../../images/space.gif" width="162" height="1">
62 <b>Time Frame:</b><br>
63 <input type="text" name="short_term_goals_1" size="42" maxlength="40" value="<? echo stripslashes($obj{"short_term_goals_1"});?>">
64 <img src="../../../images/space.gif" width="6" height="1">
65 <input type="text" name="time_frame_1" size="16" maxlength="15" value="<? echo stripslashes($obj{"time_frame_1"});?>"><br>
67 <input type="text" name="short_term_goals_2" size="42" maxlength="40" value="<? echo stripslashes($obj{"short_term_goals_2"});?>">
68 <img src="../../../images/space.gif" width="6" height="1">
69 <input type="text" name="time_frame_2" size="16" maxlength="15" value="<? echo stripslashes($obj{"time_frame_2"});?>"><br>
71 <input type="text" name="short_term_goals_3" size="42" maxlength="40" value="<? echo stripslashes($obj{"short_term_goals_3"});?>">
72 <img src="../../../images/space.gif" width="6" height="1">
73 <input type="text" name="time_frame_3" size="16" maxlength="15" value="<? echo stripslashes($obj{"time_frame_3"});?>"><br><br>
75 <b>Long Term Goals:</b><br>
76 <textarea cols=85 rows=3 wrap=virtual name="long_term_goals" ><? echo stripslashes($obj{"long_term_goals"});?></textarea><br><br>
78 <b>Discharge Criteria:</b><br>
79 <textarea cols=85 rows=2 wrap=virtual name="discharge_criteria" ><? echo stripslashes($obj{"discharge_criteria"});?></textarea><br><br>
81 <b>Recommendations:</b><br>
82 <input type="checkbox" name="individual_family_therapy" <? if ($obj{"individual_family_therapy"} == "on") {echo "checked";};?>>&nbsp;<b>Individual and / or Family Therapy</b></input>
83 <img src="../../../images/space.gif" width="6" height="1">
84 <input type="checkbox" name="substance_abuse" <? if ($obj{"substance_abuse"} == "on") {echo "checked";};?>>&nbsp;<b>Substance Abuse</b></input><br>
86 <input type="checkbox" name="group_therapy" <? if ($obj{"group_therapy"} == "on") {echo "checked";};?>>&nbsp;<b>Group Therapy - psychoeducational group</b></input>
87 <img src="../../../images/space.gif" width="6" height="1">
88 <input type="checkbox" name="parenting" <? if ($obj{"parenting"} == "on") {echo "checked";};?>>&nbsp;<b>Parenting</b></input><br><br>
90 <b>Action Steps by supports - family:</b><br>
91 <textarea cols=85 rows=3 wrap=virtual name="action_steps_by_supports" ><? echo stripslashes($obj{"action_steps_by_supports"});?></textarea><br><br>
93 <b>Other supports - agencies</b>
94 <b>Name:</b>
95 <img src="../../../images/space.gif" width="38" height="1">
96 <b>Contact Information</b><br>
97 <input type="text" name="other_supports_name_1" size="37" maxlength="35" value="<? echo stripslashes($obj{"other_supports_name_1"});?>">
98 <img src="../../../images/space.gif" width="6" height="1">
99 <input type="text" name="other_supports_contact_1" size="37" maxlength="35" value="<? echo stripslashes($obj{"other_supports_contact_1"});?>"><br>
101 <input type="text" name="other_supports_name_2" size="37" maxlength="35" value="<? echo stripslashes($obj{"other_supports_name_2"});?>">
102 <img src="../../../images/space.gif" width="6" height="1">
103 <input type="text" name="other_supports_contact_2" size="37" maxlength="35" value="<? echo stripslashes($obj{"other_supports_contact_2"});?>"><br><br>
105 <b>Medications</b>
106 <img src="../../../images/space.gif" width="204" height="1">
107 <b>Referrals</b><br>
109 <input type="text" name="medications_1" size="42" maxlength="40" value="<? echo stripslashes($obj{"medications_1"});?>">
110 <img src="../../../images/space.gif" width="6" height="1">
111 <input type="text" name="referrals_1" size="42" maxlength="40" value="<? echo stripslashes($obj{"referrals_1"});?>"><br>
113 <input type="text" name="medications_2" size="42" maxlength="40" value="<? echo stripslashes($obj{"medications_2"});?>">
114 <img src="../../../images/space.gif" width="6" height="1">
115 <input type="text" name="referrals_2" size="42" maxlength="40" value="<? echo stripslashes($obj{"referrals_2"});?>"><br><br>
129 <? /* From New */ ?>
130 <br>
131 <a href="javascript:document.my_form.submit();" class="link_submit">[Save]</a>
132 <br>
133 <a href="<?echo "$rootdir/patient_file/encounter/patient_encounter.php";?>" class="link" target=Main>[Don't Save Changes]</a>
134 </form>
135 <?php
136 formFooter();