rdh61 wrote on Wednesday, March 30, 2016:
Hi,
I have modified my SOAP form. I am copying below the code in my modified file /soap/templates/general_new.html.
As things stand with this code, OpenEMR displays the ‘Exercise prescription’ field, but does not display the ‘Advice’ and ‘Plan’ fields (the two last fields).
However, if I remove the code for the ‘Exercise prescription’ field, ‘Advice’ and ‘Plan’ are displayed normally. I find that odd. What can I do to resolve this so that all three of these fields are displayed?
Thank you.
<html>
<head>
{php}html_header_show();{/php}
{literal}
<style type="text/css" title="mystyles" media="all">
<!--
td {
font-size:12pt;
font-family:helvetica;
}
li{
font-size:11pt;
font-family:helvetica;
margin-left: 15px;
}
a {
font-size:11pt;
font-family:helvetica;
}
.title {
font-family: sans-serif;
font-size: 12pt;
font-weight: bold;
text-decoration: none;
color: #000000;
}
.form_text{
font-family: sans-serif;
font-size: 9pt;
text-decoration: none;
color: #000000;
}
-->
</style>
{/literal}
</head>
<body bgcolor="{$STYLE.BGCOLOR2}">
<p><span class="title">{php} xl('SOAP','e'); {/php}</span></p>
<form name="soap" method="post" action="{$FORM_ACTION}/interface/forms/soap/save.php"
onsubmit="return top.restoreSession()">
<table>
<tr>
<td align="left">{php} xl('Subjective','e'); {/php}</td>
<td width="90%">
<textarea name="subjective" cols="60" rows="6">{$data->get_subjective()}</textarea>
</td>
</tr>
<tr>
<td align="left">{php} xl('Objective','e'); {/php}</td>
<td width="90%">
<textarea name="objective" cols="60" rows="6">{$data->get_objective()}</textarea>
</td>
</tr>
<tr>
<td align="left">{php} xl('Assessment','e'); {/php}</td>
<td width="90%">
<textarea name="assessment" cols="60" rows="6">{$data->get_assessment()}</textarea>
</td>
</tr>
<tr>
<td align="left">{php} xl('Treatment','e'); {/php}</td>
<td width="90%">
<textarea name="treatment" cols="60" rows="6">{$data->get_treatment()}</textarea>
</td>
</tr>
<tr>
<td align="left">{php} xl('Exercise prescription','e'); {/php}</td>
<td width="90%">
<textarea name="exercise_ps" cols="60" rows="6">{$data->get_exercise_ps()}</textarea>
</td>
</tr>
<tr>
<td align="left">{php} xl('Advice','e'); {/php}</td>
<td width="90%">
<textarea name="advice" cols="60" rows="6">{$data->get_advice()}</textarea>
</td>
</tr>
<tr>
<td align="left">{php} xl('Plan','e'); {/php}</td>
<td width="90%">
<textarea name="plan" cols="60" rows="6">{$data->get_plan()}</textarea>
</td>
</tr>
<tr>
<td><input type="submit" name="Submit" value={php} xl('Save Form','e','"','"'); {/php}</td>
<td><a href="{$DONT_SAVE_LINK}" class="link" onclick="top.restoreSession()">[{php} xl("Don't Save","e"); {/php}]</a></td>
</tr>
</table>
<input type="hidden" name="id" value="{$data->get_id()}" />
<input type="hidden" name="activity" value="{$data->get_activity()}">
<input type="hidden" name="pid" value="{$data->get_pid()}">
<input type="hidden" name="process" value="true">
</form>
</body>
</html>