Commit 535f27c2 authored by Azy Mushofy Anwary's avatar Azy Mushofy Anwary

iNTERGRASI pertama

parent e7122f13
Pipeline #227 failed with stages
......@@ -224,4 +224,64 @@ class Param extends Mapper {
$data = $this->_storage->loadUserCounter($status, $iddok);
return $data;
}
public function loadagama(){
$data = $this->_storage->loadagama();
return $data;
}
public function loadpekerjaan(){
$data = $this->_storage->loadpekerjaan();
return $data;
}
public function loadpendidikan(){
$data = $this->_storage->loadpendidikan();
return $data;
}
public function loadstatuskawin(){
$data = $this->_storage->loadstatuskawin();
return $data;
}
public function loadprovinsi(){
$data = $this->_storage->loadprovinsi();
return $data;
}
public function loadkota($iProvinsi){
$data = $this->_storage->loadkota($iProvinsi);
return $data;
}
public function loadkelurahan($kecamatan){
$data = $this->_storage->loadkelurahan($kecamatan);
return $data;
}
public function loadkecamatan($Kota){
$data = $this->_storage->loadkecamatan($Kota);
return $data;
}
public function loadjeniskedatangan(){
$data = $this->_storage->loadjeniskedatangan();
return $data;
}
public function loadcarabayar(){
$data = $this->_storage->loadcarabayar();
return $data;
}
public function loadpenjamin($cara_bayar){
$data = $this->_storage->loadpenjamin($cara_bayar);
return $data;
}
public function loadinstalasi(){
$data = $this->_storage->loadinstalasi();
return $data;
}
public function laodpolibaru(){
$data = $this->_storage->laodpolibaru();
return $data;
}
public function loadhubungan(){
$data = $this->_storage->loadhubungan();
return $data;
}
public function laoddokterbaru($poli){
$data = $this->_storage-> laoddokterbaru($poli);
return $data;
}
}
......@@ -38,42 +38,90 @@ input::-webkit-inner-spin-button {
</div>
<div class="card-body">
<form id="myForm">
<form id="myForm" class="form-row">
<input type="hidden" id="iInput" class="form-control" /></input>
<!-- <input type="text" id="Provinsi" class="form-control" /></input> -->
<div class="form-group">
<div class="form-group col-md-4">
<label><h5>No Induk Kependudukan (NIK)</h5></label>
<input type="number" id="ktp" class="form-control" placeholder="No Induk Kependudukan (NIK)" max="9999999999999999" maxlength="16"></input>
</div>
<div class="form-group">
<div class="form-group col-md-4">
<label><h5>Nama Pasien</h5></label>
<input type="text" id="nama" class="form-control" placeholder="Nama Lengkap" ></input>
</div>
<!-- <div class="form-group">
<label><h5>Jenis Kelamin</h5></label> <br>
<input type="radio" id="male" name="gender" value="male">
<label for="male"><h5>Laki-laki </h5></label>
<input type="radio" id="female" name="gender" value="female">
<label for="female"><h5>Perempuan </h5></label>
</div> -->
<div class="form-group ">
<label><h5>Tempat Lahir</h5></label>
<textarea type="text" id="tempat_lahir" class="form-control " placeholder="Tempat Lahir" ></textarea >
</div>
<div class="form-group">
<div class="form-group col-md-4">
<label><h5>Tanggal Lahir</h5></label>
<input type="date" id="tanggal_lahir" class="form-control" /></input>
</div>
<div class="form-group" >
<label><h5>Alamat</h5></label>
<textarea type="text" id="alamat" rows="3" class="form-control" placeholder="Alamat"/></textarea >
<div class="form-group col-md-4">
<label><h5>Jenis Kelamin</h5></label><br>
<input type="radio" id="laki_laki" name="gender" value="L">
<label for="male"><h5>Laki-Laki</h5></label>
<input type="radio" id="perempuan" name="gender" value="P">
<label for="female"><h5>Perempuan</h5></label>
</div>
<div class="form-group">
<div class="form-group col-md-4" >
<label><h5>Tempat Lahir</h5></label>
<input type="text" id="tempat_lahir" rows="3" class="form-control" placeholder="Alamat"/></textarea >
</div>
<div class="form-group col-md-4">
<label> <h5>Agama</h5></label>
<select name="agama" id="agama" class="form-control">
<option disabled selected>Agama </option>
</select>
</div>
<div class="form-group col-md-4">
<label> <h5>Pekerjaan</h5></label>
<select name="pekerjaan" id="pekerjaan" class="form-control">
<option disabled selected>Pekerjaan </option>
</select>
</div>
<div class="form-group col-md-4">
<label> <h5>Pendidikan</h5></label>
<select name="Pendidikan" id="Pendidikan" class="form-control">
<option disabled selected>Pendidikan </option>
</select>
</div>
<div class="form-group col-md-4">
<label> <h5>Status Perkawinan</h5></label>
<select name="status_perkawinan" id="status_perkawinan" class="form-control">
<option disabled selected>Status Perkawinan </option>
</select>
</div>
<div class="form-group col-md-4" >
<label><h5>Alamat</h5></label>
<input type="text" id="alamat" rows="3" class="form-control" placeholder="Alamat"/></textarea >
</div>
<div class="form-group col-md-4">
<label> <h5>Provinsi</h5></label>
<select name="Provinsi" id="Provinsi" class="form-control">
<option disabled selected>Provinsi </option>
</select>
</div>
<div class="form-group col-md-4">
<label> <h5></h5>Kota/Kabupaten</label>
<select name="Kota" id="Kota" class="form-control">
<option disabled selected> </option>
</select>
</div>
<div class="form-group col-md-4">
<label> <h5></h5>Kecamatan</label>
<select name="kecamatan" id="kecamatan" class="form-control">
<option disabled selected> </option>
</select>
</div>
<div class="form-group col-md-4">
<label> <h5></h5>Kelurahan</label>
<select name="Kelurahan" id="Kelurahan" class="form-control">
<option disabled selected> </option>
</select>
</div>
<div class="form-group col-md-4">
<label><h5>No HP</h5></label>
<input type="number" id="no_hp" class="form-control " placeholder="No Handphone" maxlength="13" /></input>
</div>
......
......@@ -156,67 +156,130 @@ input[type="done"] + label {
<div class="container">
<div class="card" >
<div class="card-header">
<h2> Silahkan Pilih Poli dan Dokter</h2>
<h2>Registrasi</h2>
</div>
<div class="card-body">
<form id="myForm">
<form id="myForm" class="form-row">
<input type="hidden" id="id_pasien" class="form-control" disabled/></input>
<div class="form-group">
<label> <h5>No Rekam Medis</h5></label>
<div class="form-group col-md-6">
<label> <h5>No Rekam Medis :</h5></label>
<input type="text" id="no_rekam_medis" class="form-control" disabled/></input>
</div>
<div class="form-group">
<label> <h5>KTP</h5></label>
<input type="text" id="ktp" class="form-control" disabled /></input>
</div>
<div class="form-group">
<label> <h5>Nama pasien</h5></label>
<div class="form-group col-md-6">
<label> <h5>Nama :</h5></label>
<input type="text" id="nama" class="form-control" disabled/></input>
</div>
<div class="form-group ">
<input type="hidden" id="tempat_lahir" class="form-control "disabled ></input>
<div class="form-group col-md-6">
<label> <h5>Jenis Kedatangan :</h5></label>
<select name="jenis_kedatangan" id="jenis_kedatangan" class="form-control">
<option disabled selected> Pilih </option>
</select>
</div>
<div class="form-group ">
<input type="hidden" id="sisa_antrian" class="form-control "disabled ></input>
<div class="form-group col-md-6">
<label> <h5>Fakses/Dokter Rujukan :</h5></label>
<input type="text" id="dokter_rujukan" class="form-control" ></input>
</div>
<div class="form-group col-md-4">
<label> <h5>Cara Bayar :</h5></label>
<select name="cara_bayar" id="cara_bayar" class="form-control">
<option disabled selected> Pilih </option>
</select>
</div>
<div class="form-group col-md-4">
<label> <h5>Penjamin :</h5></label>
<select name="penjamin" id="penjamin" class="form-control">
<option disabled selected> </option>
</select>
</div>
<div class="form-group col-md-4">
<label> <h5>No Asuransi :</h5></label>
<input type="text" id="dokter_rujukan" class="form-control" /></input>
</div>
<div class="form-group col-md-4">
<label> <h5>Instalasi :</h5></label>
<select name="instalasi" id="instalasi" class="form-control">
<option disabled selected> Pilih </option>
</select>
</div>
<div class="form-group col-md-4">
<label> <h5>Poli :</h5></label>
<select name="poli" id="poli" class="form-control">
<option disabled selected> </option>
</select>
</div>
<div class="form-group col-md-4">
<label> <h5>Dokter :</h5></label>
<select id="dokter" name="dokter" class="form-control">
<option disabled selected> </option>
</select>
</div>
<!-- <div class="form-group col-md-4"> -->
<input type="hidden" id="ktp" class="form-control" disabled /></input>
<!-- </div> -->
<div class="form-group">
<!-- <div class="form-group col-md-4"> -->
<input type="hidden" id="tempat_lahir" class="form-control "disabled ></input>
<!-- </div> -->
<!-- <div class="form-group col-md-4"> -->
<input type="hidden" id="sisa_antrian" class="form-control "disabled ></input>
<!-- </div> -->
<!-- <div class="form-group col-md-4"> -->
<input type="hidden" id="tanggal_lahir" class="form-control"disabled /></input>
</div>
<div class="form-group" >
<!-- </div> -->
<!-- <div class="form-group col-md-4" > -->
<input type="hidden" id="alamat" rows="3" class="form-control"disabled ></input>
</div>
<!-- </div> -->
<div class="form-group">
<!-- <div class="form-group col-md-4"> -->
<input type="hidden" id="no_hp" class="form-control "disabled ></input>
<!-- </div> -->
</form>
</div>
<div class="form-group">
<label> <h5>Pilih Poli </h5></label>
<select name="nama_poli" id="poli" class="form-control">
<option disabled selected> Pilih </option>
</select>
</div>
<div class="form-group">
<label> <h5>Pilih Dokter </h5></label>
<select id="dokter" name="nama_dokter" class="form-control">
<br>
<div class="card" >
<div class="card-header">
<h4>Penanggung Jawab</h4>
</div>
<div class="card-body">
<form id="myForm" class="form-row">
<div class="form-group col-md-3">
<label> <h5>Nama :</h5></label>
<input type="text" id="nama_penanggung" class="form-control" ></input>
</div>
<div class="form-group col-md-3">
<label> <h5>Hubungan Keluarga :</h5></label>
<select id="hubkel" name="hubkel" class="form-control">
<option disabled selected> Pilih </option>
</select>
</div>
<div class="form-group col-md-3">
<label> <h5>Alamat :</h5></label>
<input type="text" id="alamatpen" class="form-control" ></input>
</div>
<div class="form-group col-md-3">
<label> <h5>No Telepon :</h5></label>
<input type="text" id="notelpen" class="form-control" ></input>
</div>
</form>
</div>
<div class="card-footer" >
<p class="card-text"></p>
<button type="button" id="pilihno" class="btn btn-primary" data-toggle="modal" data-target="#pilihantrian" style="float: right;"> Daftar Antrian</button>
</div>
</div>
<br>
<div class="container">
<button type="button" id="pilihno" class="btn btn-primary" data-toggle="modal" data-target="#pilihantrian" style="float: left;width: 49%;"> Daftar Antrian</button>
<button type="button" id="pilihno" class="btn btn-danger" style="float: right;width: 49%;"> Kembali</button>
</div>
<br>
<br>
<!-- Trigger the modal with a button -->
......
......@@ -8,10 +8,10 @@ $('#cekdata').on('click', function () {
return false;
} else if (no_rekam_medis.toString().length > 8) {
} else if (no_rekam_medis.toString().length > 6) {
bootbox.alert({ message: 'No Rekam Medis tidak boleh lebih dari 8 angka', centerVertical: true });
return false;
} else if (no_rekam_medis.toString().length < 8) {
} else if (no_rekam_medis.toString().length < 6) {
bootbox.alert({ message: 'No Rekam Medis tidak boleh kurang dari 8 angka', centerVertical: true });
return false;
......@@ -43,7 +43,7 @@ function cekpasien(no_rekam_medis) {
else if (result.code == 0) {
console.log(result.data['datapasien'][0]['no_rekam_medis']);
let $id = result.data['datapasien'][0]['id_pasien'];
let $id = result.data['datapasien'][0]['id'];
let $encodedId = btoa($id);
window.location.href = ("datapasien/" + $encodedId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment