Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Antrian
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Indra Raja
Antrian
Commits
535f27c2
Commit
535f27c2
authored
Dec 18, 2020
by
Azy Mushofy Anwary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iNTERGRASI pertama
parent
e7122f13
Pipeline
#227
failed with stages
Changes
8
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1871 additions
and
365 deletions
+1871
-365
module/Application/src/Controller/ApiController.php
module/Application/src/Controller/ApiController.php
+556
-44
module/Application/src/Model/Param.php
module/Application/src/Model/Param.php
+60
-0
module/Application/src/Model/Param/Storage/Mysql.php
module/Application/src/Model/Param/Storage/Mysql.php
+540
-42
module/Application/view/application/queue/daftarpasien.phtml
module/Application/view/application/queue/daftarpasien.phtml
+68
-20
module/Application/view/application/queue/datapasien.phtml
module/Application/view/application/queue/datapasien.phtml
+106
-43
public/action-js/antrian-js/action-cekdatapasien.js
public/action-js/antrian-js/action-cekdatapasien.js
+3
-3
public/action-js/antrian-js/action-daftarpasien.js
public/action-js/antrian-js/action-daftarpasien.js
+302
-55
public/action-js/antrian-js/action-datapasien.js
public/action-js/antrian-js/action-datapasien.js
+236
-158
No files found.
module/Application/src/Controller/ApiController.php
View file @
535f27c2
This diff is collapsed.
Click to expand it.
module/Application/src/Model/Param.php
View file @
535f27c2
...
@@ -224,4 +224,64 @@ class Param extends Mapper {
...
@@ -224,4 +224,64 @@ class Param extends Mapper {
$data
=
$this
->
_storage
->
loadUserCounter
(
$status
,
$iddok
);
$data
=
$this
->
_storage
->
loadUserCounter
(
$status
,
$iddok
);
return
$data
;
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
;
}
}
}
module/Application/src/Model/Param/Storage/Mysql.php
View file @
535f27c2
This diff is collapsed.
Click to expand it.
module/Application/view/application/queue/daftarpasien.phtml
View file @
535f27c2
...
@@ -38,42 +38,90 @@ input::-webkit-inner-spin-button {
...
@@ -38,42 +38,90 @@ input::-webkit-inner-spin-button {
</div>
</div>
<div
class=
"card-body"
>
<div
class=
"card-body"
>
<form
id=
"myForm"
>
<form
id=
"myForm"
class=
"form-row"
>
<input
type=
"hidden"
id=
"iInput"
class=
"form-control"
/></input>
<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>
<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>
<input
type=
"number"
id=
"ktp"
class=
"form-control"
placeholder=
"No Induk Kependudukan (NIK)"
max=
"9999999999999999"
maxlength=
"16"
></input>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group
col-md-4
"
>
<label><h5>
Nama Pasien
</h5></label>
<label><h5>
Nama Pasien
</h5></label>
<input
type=
"text"
id=
"nama"
class=
"form-control"
placeholder=
"Nama Lengkap"
></input>
<input
type=
"text"
id=
"nama"
class=
"form-control"
placeholder=
"Nama Lengkap"
></input>
</div>
</div>
<!-- <div class="form-group">
<div
class=
"form-group col-md-4"
>
<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"
>
<label><h5>
Tanggal Lahir
</h5></label>
<label><h5>
Tanggal Lahir
</h5></label>
<input
type=
"date"
id=
"tanggal_lahir"
class=
"form-control"
/></input>
<input
type=
"date"
id=
"tanggal_lahir"
class=
"form-control"
/></input>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group col-md-4"
>
<label><h5>
Alamat
</h5></label>
<label><h5>
Jenis Kelamin
</h5></label><br>
<textarea
type=
"text"
id=
"alamat"
rows=
"3"
class=
"form-control"
placeholder=
"Alamat"
/></textarea
>
<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>
<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>
<label><h5>
No HP
</h5></label>
<input
type=
"number"
id=
"no_hp"
class=
"form-control "
placeholder=
"No Handphone"
maxlength=
"13"
/></input>
<input
type=
"number"
id=
"no_hp"
class=
"form-control "
placeholder=
"No Handphone"
maxlength=
"13"
/></input>
</div>
</div>
...
...
module/Application/view/application/queue/datapasien.phtml
View file @
535f27c2
...
@@ -156,67 +156,130 @@ input[type="done"] + label {
...
@@ -156,67 +156,130 @@ input[type="done"] + label {
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"card"
>
<div
class=
"card"
>
<div
class=
"card-header"
>
<div
class=
"card-header"
>
<h2>
Silahkan Pilih Poli dan Dokter
</h2>
<h2>
Registrasi
</h2>
</div>
</div>
<div
class=
"card-body"
>
<div
class=
"card-body"
>
<form
id=
"myForm"
>
<form
id=
"myForm"
class=
"form-row"
>
<input
type=
"hidden"
id=
"id_pasien"
class=
"form-control"
disabled
/></input>
<input
type=
"hidden"
id=
"id_pasien"
class=
"form-control"
disabled
/></input>
<div
class=
"form-group"
>
<div
class=
"form-group
col-md-6
"
>
<label>
<h5>
No Rekam Medis
</h5></label>
<label>
<h5>
No Rekam Medis
:
</h5></label>
<input
type=
"text"
id=
"no_rekam_medis"
class=
"form-control"
disabled
/></input>
<input
type=
"text"
id=
"no_rekam_medis"
class=
"form-control"
disabled
/></input>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group col-md-6"
>
<label>
<h5>
KTP
</h5></label>
<label>
<h5>
Nama :
</h5></label>
<input
type=
"text"
id=
"ktp"
class=
"form-control"
disabled
/></input>
</div>
<div
class=
"form-group"
>
<label>
<h5>
Nama pasien
</h5></label>
<input
type=
"text"
id=
"nama"
class=
"form-control"
disabled
/></input>
<input
type=
"text"
id=
"nama"
class=
"form-control"
disabled
/></input>
</div>
</div>
<div
class=
"form-group "
>
<div
class=
"form-group col-md-6"
>
<input
type=
"hidden"
id=
"tempat_lahir"
class=
"form-control "
disabled
></input>
<label>
<h5>
Jenis Kedatangan :
</h5></label>
<select
name=
"jenis_kedatangan"
id=
"jenis_kedatangan"
class=
"form-control"
>
<option
disabled
selected
>
Pilih
</option>
</select>
</div>
</div>
<div
class=
"form-group "
>
<div
class=
"form-group col-md-6"
>
<input
type=
"hidden"
id=
"sisa_antrian"
class=
"form-control "
disabled
></input>
<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>
<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>
<input
type=
"hidden"
id=
"tanggal_lahir"
class=
"form-control"
disabled
/></input>
</div
>
<!-- </div> --
>
<div
class=
"form-group"
>
<!-- <div class="form-group col-md-4" > --
>
<input
type=
"hidden"
id=
"alamat"
rows=
"3"
class=
"form-control"
disabled
></input>
<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>
<input
type=
"hidden"
id=
"no_hp"
class=
"form-control "
disabled
></input>
<!-- </div> -->
</form>
</div>
</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>
<div
class=
"form-group"
>
<br>
<label>
<h5>
Pilih Dokter
</h5></label>
<div
class=
"card"
>
<select
id=
"dokter"
name=
"nama_dokter"
class=
"form-control"
>
<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>
<option
disabled
selected
>
Pilih
</option>
</select>
</select>
</div>
</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>
</form>
</div>
</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>
</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>
</div>
<br>
<br>
<br>
<!-- Trigger the modal with a button -->
<!-- Trigger the modal with a button -->
...
...
public/action-js/antrian-js/action-cekdatapasien.js
View file @
535f27c2
...
@@ -8,10 +8,10 @@ $('#cekdata').on('click', function () {
...
@@ -8,10 +8,10 @@ $('#cekdata').on('click', function () {
return
false
;
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
});
bootbox
.
alert
({
message
:
'
No Rekam Medis tidak boleh lebih dari 8 angka
'
,
centerVertical
:
true
});
return
false
;
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
});
bootbox
.
alert
({
message
:
'
No Rekam Medis tidak boleh kurang dari 8 angka
'
,
centerVertical
:
true
});
return
false
;
return
false
;
...
@@ -43,7 +43,7 @@ function cekpasien(no_rekam_medis) {
...
@@ -43,7 +43,7 @@ function cekpasien(no_rekam_medis) {
else
if
(
result
.
code
==
0
)
{
else
if
(
result
.
code
==
0
)
{
console
.
log
(
result
.
data
[
'
datapasien
'
][
0
][
'
no_rekam_medis
'
]);
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
);
let
$encodedId
=
btoa
(
$id
);
window
.
location
.
href
=
(
"
datapasien/
"
+
$encodedId
);
window
.
location
.
href
=
(
"
datapasien/
"
+
$encodedId
);
...
...
public/action-js/antrian-js/action-daftarpasien.js
View file @
535f27c2
This diff is collapsed.
Click to expand it.
public/action-js/antrian-js/action-datapasien.js
View file @
535f27c2
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment