{% extends '../template.html' %}
{% block title %}Rekam Medis Pasien{% endblock %}
{% block subcontent %}
	<h2>Rekam Medis > List Rekam Medis {{ data.nama }}</h2>
	
	<div id="top_menu">
		<a href="{% nav admin_rekmed %}/{{data.id}}" class="selected">List Rekam Medis</a>
		<a href="{% nav admin_rekmed_new %}/{{data.no_rekmed}}">Tambah Rekam Medis</a>
	</div>
	<br/>
	<br/>
	<table class="data_polos" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td>No. RekMed</td>
			<td style="width:200px;">: {{ data.no_rekmed }}</td>
		</tr>
		<tr>
			<td>Nama</td>
			<td>: {{ data.nama }}</td>
			<td>No. KK</td>
			<td>: {{ data.no_kk }}</td>
		</tr>
		<tr>
			<td>Tgl. Lahir</td>
			<td>: {{ data.tgl_lahir }}</td>
			<td>BPJS</td>
			<td>: {{ data.tipe }} - {{ data.no_bpjs }}</td>
		</tr>
		<tr>
			<td>Jns Kelamin</td>
			<td>: {{ data.sex }}</td>
		</tr>
		<tr>
			<td>Alamat</td>
			<td>: {{ data.alamat }}</td>
		</tr>
		<tr>
			<td>Telepon</td>
			<td>: {{ data.telepon }}</td>
		</tr>
	</table>
	<br/>
	<br/>
	<h2>Rekam Medis</h2>
	{% if rekmed.length > 0 %}
	<table class="data">
		<tr>
			<th>Tanggal</th>
			<th>Poli</th>
			<th>Keluhan</th>
			<th>Diagnosis</th>
			<th>ICD X</th>
			<th>Terapi</th>
			<th></th>
		</tr>
		{% for row in rekmed %}
			<tr>
				<td>{{row.tgl}}</td>
				<td>{{row.poli}}</td>
				<td>{{row.keluhan}}</td>
				<td>{{row.diagnosis}}</td>
				<td>{{row.icd}}</td>
				<td>{{row.terapi}}</td>
				<td>
					<a href="{% nav admin_rekmed_edit %}/{{ row.id }}" style="padding-right:10px;">Edit</a>
					<a onclick="return confirm('Apakah Anda Yakin ?');" href="{% nav admin_rekmed_del %}/{{ row.id }}">Hapus</a>
				</td>
			</tr>
		{% endfor %}
	</table>
	
	{% else %}
		Data Rekam Medis tidak ditemukan.<br/>
	{% endif %}
{% endblock %}
