@@ -14,10 +14,10 @@ public function authorize()
14
14
public function rules ()
15
15
{
16
16
return [
17
- "coder_nik " => "required| numeric|digits:16 " , // mandatory
17
+ "coder_nik " => "numeric|digits:16 " , // mandatory
18
18
19
- "tgl_masuk " => "date_format:Y-m-d H:i:s " ,
20
- "tgl_pulang " => "date_format:Y-m-d H:i:s " ,
19
+ "tgl_masuk " => "date " ,
20
+ "tgl_pulang " => "date " ,
21
21
"cara_masuk " => "in:gp,hosp-trans,mp,outp,inp,emd,born,nursing,psych,rehab,other " ,
22
22
"jenis_rawat " => "numeric|in:1,2,3 " , // 1: Rawat Inap, 2: Rawat Jalan, 3: Rawat IGD
23
23
"kelas_rawat " => "numeric|in:1,2,3 " ,
@@ -31,8 +31,8 @@ public function rules()
31
31
32
32
// ==== ventilator
33
33
"use_ind " => "numeric|in:0,1 " ,
34
- "start_dttm " => "date_format:Y-m-d H:i:s " ,
35
- "stop_dttm " => "date_format:Y-m-d H:i:s " ,
34
+ "start_dttm " => "date " ,
35
+ "stop_dttm " => "date " ,
36
36
// ==== / end ventilator
37
37
38
38
"upgrade_class_ind " => "numeric|in:0,1 " ,
@@ -46,32 +46,32 @@ public function rules()
46
46
"sistole " => "numeric " ,
47
47
"diastole " => "numeric " ,
48
48
49
- "discharge_status " => "numeric |in:1,2,3,4,5 " , // 1: Atas persetujuan dokter, 2: Dirujuk, 3: Atas permintaan sendiri, 4: Meninggal, 5: Lain-lain
49
+ "discharge_status " => "nullable |in:1,2,3,4,5 " , // 1: Atas persetujuan dokter, 2: Dirujuk, 3: Atas permintaan sendiri, 4: Meninggal, 5: Lain-lain
50
50
51
51
"diagnosa " => "array " ,
52
52
"procedure " => "array " ,
53
53
"diagnosa_inagrouper " => "array " ,
54
54
"procedure_inagrouper " => "array " ,
55
55
56
56
// ==== tarif_rs
57
- "prosedur_non_bedah " => "numeric " ,
58
- "prosedur_bedah " => "numeric " ,
59
- "konsultasi " => "numeric " ,
60
- "tenaga_ahli " => "numeric " ,
61
- "keperawatan " => "numeric " ,
62
- "penunjang " => "numeric " ,
63
- "radiologi " => "numeric " ,
64
- "laboratorium " => "numeric " ,
65
- "pelayanan_darah " => "numeric " ,
66
- "rehabilitasi " => "numeric " ,
67
- "kamar " => "numeric " ,
68
- "rawat_intensif " => "numeric " ,
69
- "obat " => "numeric " ,
70
- "obat_kronis " => "numeric " ,
71
- "obat_kemoterapi " => "numeric " ,
72
- "alkes " => "numeric " ,
73
- "bmhp " => "numeric " ,
74
- "sewa_alat " => "numeric " ,
57
+ "prosedur_non_bedah " => "numeric|min:0 " ,
58
+ "prosedur_bedah " => "numeric|min:0 " ,
59
+ "konsultasi " => "numeric|min:0 " ,
60
+ "tenaga_ahli " => "numeric|min:0 " ,
61
+ "keperawatan " => "numeric|min:0 " ,
62
+ "penunjang " => "numeric|min:0 " ,
63
+ "radiologi " => "numeric|min:0 " ,
64
+ "laboratorium " => "numeric|min:0 " ,
65
+ "pelayanan_darah " => "numeric|min:0 " ,
66
+ "rehabilitasi " => "numeric|min:0 " ,
67
+ "kamar " => "numeric|min:0 " ,
68
+ "rawat_intensif " => "numeric|min:0 " ,
69
+ "obat " => "numeric|min:0 " ,
70
+ "obat_kronis " => "numeric|min:0 " ,
71
+ "obat_kemoterapi " => "numeric|min:0 " ,
72
+ "alkes " => "numeric|min:0 " ,
73
+ "bmhp " => "numeric|min:0 " ,
74
+ "sewa_alat " => "numeric|min:0 " ,
75
75
// ==== / end tarif_rs
76
76
77
77
// "pemulasaraan_jenazah" => "numeric|in:0,1",
@@ -104,34 +104,34 @@ public function rules()
104
104
// "rad_thorax_ap_pa" => "numeric|in:0,1",
105
105
// ==== / end covid19_penunjang_pengurang
106
106
107
- "terapi_konvalesen " => "numeric " ,
107
+ "terapi_konvalesen " => "nullable| numeric " ,
108
108
109
109
// INFO : Tidak diperlukan per 1 Oktober 2021 (Manual Web Service 5.8.3b)
110
110
// "akses_naat" => "in:0,1",
111
111
112
- "isoman_ind " => "numeric|in:0,1 " ,
112
+ "isoman_ind " => "nullable| numeric|in:0,1 " ,
113
113
114
- "bayi_lahir_status_cd " => "in:1,2 " ,
114
+ "bayi_lahir_status_cd " => "nullable| in:1,2 " ,
115
115
116
- "dializer_single_use " => "numeric|in:0,1 " ,
117
- "kantong_darah " => "numeric " ,
116
+ "dializer_single_use " => "nullable| numeric|in:0,1 " ,
117
+ "kantong_darah " => "nullable| numeric " ,
118
118
119
119
// ==== apgar
120
120
// ==== / end apgar
121
121
122
122
// ==== persalinan
123
- "usia_kehamilan " => "numeric " ,
124
- "gravida " => "numeric " ,
125
- "partus " => "numeric " ,
126
- "abortus " => "numeric " ,
127
- "onset_kontraksi " => "in:spontan,induksi,non_spontan_non_induksi " ,
123
+ "usia_kehamilan " => "nullable| numeric " ,
124
+ "gravida " => "nullable| numeric " ,
125
+ "partus " => "nullable| numeric " ,
126
+ "abortus " => "nullable| numeric " ,
127
+ "onset_kontraksi " => "nullable| in:spontan,induksi,non_spontan_non_induksi " ,
128
128
129
129
// ==== delivery
130
130
// ==== / end delivery
131
131
132
132
// ==== / end persalinan
133
133
134
- "tarif_poli_eks " => "numeric " ,
134
+ "tarif_poli_eks " => "nullable| numeric " ,
135
135
"nama_dokter " => "string " ,
136
136
"kode_tarif " => "string|in:AP,AS,BP,BS,CP,CS,DP,DS,RSCM,RSJP,RSD,RSAB " ,
137
137
0 commit comments