registroPatologieDetail.jsp 5.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
<%@ include file="/project/include.jsp" %>

<center>
<shell:fieldset title="Informazioni generali">
	<table border="0" cellspacing="3" cellpadding="0" width="100%" >
		<tr>
			<td class="form-label">
				<shell:label prop="dataCollocazione" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="dataDiagnosi" />
				</bui:out>
				<bui:out modes="create, update">
					<j:bind prop="dataCollocazione">
						<j:text class="form-date" id="dataCollocazioneCLD" onChange="getOperatoriRiferimento('storicizzaOperatoreRiferimento');" />
						<shell:calendar inputId="dataCollocazioneCLD" />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>
 		</tr>
	
		<tr>
			<td class="form-label">
				<shell:label prop="patologia" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="patologia" />
				</bui:out>
				<bui:out modes="create, update">
					<j:bind prop="patologia">
						<j:select class="form-input" emptyOptionDescr=" " onChange="impostaICD9()" id="id_patologia"/>
						<shell:error />
					</j:bind>
				</bui:out>	
			</td>
		</tr>
	
		<tr>
			<td class="form-label">
				<shell:label prop="icd9" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="icd9" />
				</bui:out>
				<bui:out modes="create, update">
					<j:bind prop="codiceIcd9">
						<j:text id="codice_prICD9" class="form-short-text" onBlur="javascript:onChangeIcd9(this, 'icd9');" /> 
						<shell:lookup lookupId="prICD9" identifier="tabelle.tabella" 
							init="it.cedaf.icare.tabelle.control.initializer.ICD9LookupInitializer" 
							formParams="codice_prICD9|codice" />
						<j:tile slave="${_slave}" name="shell.plaintext" prop="icd9" />
						<input type="hidden" id="descrizione_prICD9"/>
						<shell:error />
					</j:bind>
				</bui:out>	
			</td>
		</tr>	
	
		<tr>
			<td class="form-label">
				<shell:label prop="tipoFonte" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="tipoFonte" />
				</bui:out>
				<bui:out modes="create, update">
					<j:bind prop="tipoFonte">
						<j:select class="form-input" emptyOptionDescr=" " />
						<shell:error />
					</j:bind>
				</bui:out>	
			</td>
		</tr>
	
		<tr>
			<td class="form-label">
				<shell:label prop="fonte" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="fonte" />
				</bui:out>
				<bui:out modes="create, update">
					<j:bind prop="fonte">
						<j:text class="form-long-text" />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>
 		</tr>
	
		<tr>
			<td class="form-label">
				<shell:label prop="dataDimissione" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="dataDimissione" />
				</bui:out>
				<bui:out modes="create, update">
					<j:bind prop="dataDimissione">
						<j:text class="form-date" id="dataDimissioneCLD" />
						<shell:calendar inputId="dataDimissioneCLD" />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>
 		</tr>
	
		<tr>
			<td class="form-label">
				<shell:label prop="motivoDimissione" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="motivoDimissione" />
				</bui:out>
				<bui:out modes="create, update">
					<j:bind prop="motivoDimissione">
						<j:select class="form-input" emptyOptionDescr=" " />
						<shell:error />
					</j:bind>
				</bui:out>	
			</td>
		</tr>
	</table>
	</td>
	<td valign="top">
		<table border="0" cellpadding="0" cellspacing="3">
		<j:tile name="commons.opRifStoricizzato" objectName="RegistroPatologia" idField="idPatologia"/>
		<j:tile name="commons.opAbilitato" objectName="RegistroPatologia" idField="idPatologia"/>
	</table>		
</shell:fieldset>

<shell:fieldset title="Informazioni aggiuntive">
	<table border="0" cellspacing="3" cellpadding="0" width="100%" >
		<tr>
			<td class="form-label">
				<shell:label prop="note" />
			</td>
			<td class="form-values">
				<bui:out modes="view">
					<j:tile name="shell.plaintext" prop="note" />
				</bui:out>
				<bui:out modes="create, update">
					<j:bind prop="note">
						<j:textarea class="form-normal-textarea" />
						<shell:error />
					</j:bind>
				</bui:out>
			</td>
		</tr>
	</table>
</shell:fieldset>

</center>


<script type="text/javascript">
function onChangeIcd9(txtIcd9, idTag) {
	var codIcd9 = txtIcd9.value;
	var textValue = '';
	if (codIcd9 != '') {
		textValue = jsLoadString('it.cedaf.icare.tabelle.commons.findPatologiaExecutor',  '&codPatologia=' + codIcd9);
	}
	scriviDescrizioneIcd9(idTag, textValue);
}

function scriviDescrizioneIcd9(idTag, descrizione) {
	var elSpan = document.getElementById('cpmt_' + idTag); 
	if (elSpan) {
		elSpan.innerHTML = descrizione;
	}
}

function impostaICD9(){
	var patologia = $("#id_patologia").val();
	var icd9 = $("#codice_prICD9").val();
	if (patologia!="" && icd9==""){
		jsLoadMap("it.cedaf.icare.anagrafiche.control.action.FindIcd9ByPatologiaExecutor", "patologia=" + patologia, "fn_impostaICD9", JS_SYNC);
	}
}

function fn_impostaICD9(map){	
	var icd9 = map.get('icd9');
	var descrizione = map.get('descrizione');
	
	if (icd9!=null) {
		$("#codice_prICD9").val(icd9);
		scriviDescrizioneIcd9("icd9", descrizione);
	}
}

registerOnChangeLookup('prICD9', function() { scriviDescrizioneIcd9('icd9', document.getElementById('descrizione_prICD9').value); });
registerOnClearLookup('prICD9', function() { scriviDescrizioneIcd9('icd9', ''); });

</script>