API dashboard perbandingan jumlah status antrian

This commit is contained in:
renaldybrada
2026-02-11 09:51:38 +07:00
parent 22bfdee8e9
commit dd4377c1fb
10 changed files with 379 additions and 4 deletions
+74 -2
View File
@@ -223,6 +223,47 @@ const docTemplate = `{
}
}
},
"/dashboard/perbandingan-status-antrian/": {
"get": {
"tags": [
"Dashboard"
],
"summary": "Get Perbandingan Status Antrean",
"parameters": [
{
"type": "integer",
"description": "tahun dalam int",
"name": "year",
"in": "query",
"required": true
},
{
"type": "integer",
"description": "bulan dalam int",
"name": "month",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/dashboard.PerbandinganStatusAntreanResponse"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/shared.BaseErrorResponse"
}
}
}
}
},
"/reference/diagnosa/": {
"get": {
"tags": [
@@ -591,6 +632,10 @@ const docTemplate = `{
"antrianoperasi.FormDataRequest": {
"type": "object",
"required": [
"jenisKelamin",
"namaPasien",
"noKtp",
"noRekamMedis",
"nomorTelepon"
],
"properties": {
@@ -598,7 +643,11 @@ const docTemplate = `{
"type": "string"
},
"jenisKelamin": {
"type": "string"
"type": "string",
"enum": [
"L",
"P"
]
},
"namaPasien": {
"type": "string"
@@ -715,12 +764,21 @@ const docTemplate = `{
},
"antrianoperasi.StatusPasienRequest": {
"type": "object",
"required": [
"statusOperasi"
],
"properties": {
"keteranganStatus": {
"type": "string"
},
"statusOperasi": {
"type": "string"
"type": "string",
"enum": [
"1",
"2",
"3",
"4"
]
},
"tanggalSelesai": {
"type": "string"
@@ -794,6 +852,20 @@ const docTemplate = `{
}
}
},
"dashboard.PerbandinganStatusAntreanResponse": {
"type": "object",
"properties": {
"idStatus": {
"type": "integer"
},
"jumlah": {
"type": "integer"
},
"status": {
"type": "string"
}
}
},
"diagnosa.DiagnosaResponse": {
"type": "object",
"properties": {
+74 -2
View File
@@ -217,6 +217,47 @@
}
}
},
"/dashboard/perbandingan-status-antrian/": {
"get": {
"tags": [
"Dashboard"
],
"summary": "Get Perbandingan Status Antrean",
"parameters": [
{
"type": "integer",
"description": "tahun dalam int",
"name": "year",
"in": "query",
"required": true
},
{
"type": "integer",
"description": "bulan dalam int",
"name": "month",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/dashboard.PerbandinganStatusAntreanResponse"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/shared.BaseErrorResponse"
}
}
}
}
},
"/reference/diagnosa/": {
"get": {
"tags": [
@@ -585,6 +626,10 @@
"antrianoperasi.FormDataRequest": {
"type": "object",
"required": [
"jenisKelamin",
"namaPasien",
"noKtp",
"noRekamMedis",
"nomorTelepon"
],
"properties": {
@@ -592,7 +637,11 @@
"type": "string"
},
"jenisKelamin": {
"type": "string"
"type": "string",
"enum": [
"L",
"P"
]
},
"namaPasien": {
"type": "string"
@@ -709,12 +758,21 @@
},
"antrianoperasi.StatusPasienRequest": {
"type": "object",
"required": [
"statusOperasi"
],
"properties": {
"keteranganStatus": {
"type": "string"
},
"statusOperasi": {
"type": "string"
"type": "string",
"enum": [
"1",
"2",
"3",
"4"
]
},
"tanggalSelesai": {
"type": "string"
@@ -788,6 +846,20 @@
}
}
},
"dashboard.PerbandinganStatusAntreanResponse": {
"type": "object",
"properties": {
"idStatus": {
"type": "integer"
},
"jumlah": {
"type": "integer"
},
"status": {
"type": "string"
}
}
},
"diagnosa.DiagnosaResponse": {
"type": "object",
"properties": {
+50
View File
@@ -81,6 +81,9 @@ definitions:
alamat:
type: string
jenisKelamin:
enum:
- L
- P
type: string
namaPasien:
type: string
@@ -98,6 +101,10 @@ definitions:
umur:
type: string
required:
- jenisKelamin
- namaPasien
- noKtp
- noRekamMedis
- nomorTelepon
type: object
antrianoperasi.PasienOperasi:
@@ -164,9 +171,16 @@ definitions:
keteranganStatus:
type: string
statusOperasi:
enum:
- "1"
- "2"
- "3"
- "4"
type: string
tanggalSelesai:
type: string
required:
- statusOperasi
type: object
antrianoperasi.TindakanItemRequest:
properties:
@@ -212,6 +226,15 @@ definitions:
subSpesialis:
type: string
type: object
dashboard.PerbandinganStatusAntreanResponse:
properties:
idStatus:
type: integer
jumlah:
type: integer
status:
type: string
type: object
diagnosa.DiagnosaResponse:
properties:
keterangan:
@@ -485,6 +508,33 @@ paths:
summary: Get Antrian Per Spesialis
tags:
- Dashboard
/dashboard/perbandingan-status-antrian/:
get:
parameters:
- description: tahun dalam int
in: query
name: year
required: true
type: integer
- description: bulan dalam int
in: query
name: month
required: true
type: integer
responses:
"200":
description: OK
schema:
items:
$ref: '#/definitions/dashboard.PerbandinganStatusAntreanResponse'
type: array
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/shared.BaseErrorResponse'
summary: Get Perbandingan Status Antrean
tags:
- Dashboard
/reference/diagnosa/:
get:
parameters: