Files
api-antrian-operasi/docs/swagger.yaml
2026-02-09 08:56:28 +07:00

628 lines
14 KiB
YAML

basePath: /api
definitions:
antrianoperasi.CreatePasienOperasiRequest:
properties:
diagnosisItems:
items:
$ref: '#/definitions/antrianoperasi.DiagnosisItemRequest'
minItems: 1
type: array
dokterPelaksanaItems:
items:
$ref: '#/definitions/antrianoperasi.DokterPelaksanaItemRequest'
type: array
formData:
$ref: '#/definitions/antrianoperasi.FormDataRequest'
rencanaOperasiData:
$ref: '#/definitions/antrianoperasi.RencanaOperasiRequest'
statusPasienData:
$ref: '#/definitions/antrianoperasi.StatusPasienRequest'
tindakanItems:
items:
$ref: '#/definitions/antrianoperasi.TindakanItemRequest'
minItems: 1
type: array
required:
- diagnosisItems
- tindakanItems
type: object
antrianoperasi.DetailPasienOperasiResponse:
properties:
diagnosisItems:
items:
$ref: '#/definitions/antrianoperasi.DiagnosisItemRequest'
minItems: 1
type: array
dokterPelaksanaItems:
items:
$ref: '#/definitions/antrianoperasi.DokterPelaksanaItemRequest'
type: array
formData:
$ref: '#/definitions/antrianoperasi.FormDataRequest'
rencanaOperasiData:
$ref: '#/definitions/antrianoperasi.RencanaOperasiRequest'
statusPasienData:
$ref: '#/definitions/antrianoperasi.StatusPasienRequest'
tindakanItems:
items:
$ref: '#/definitions/antrianoperasi.TindakanItemRequest'
minItems: 1
type: array
required:
- diagnosisItems
- tindakanItems
type: object
antrianoperasi.DiagnosisItemRequest:
properties:
diagnosa:
type: string
jenisDiagnosa:
type: string
kodeDiagnosa:
type: string
required:
- diagnosa
- jenisDiagnosa
- kodeDiagnosa
type: object
antrianoperasi.DokterPelaksanaItemRequest:
properties:
id:
type: string
nama:
type: string
nip:
type: string
satuan_kerja:
type: string
type: object
antrianoperasi.FormDataRequest:
properties:
alamat:
type: string
jenisKelamin:
type: string
namaPasien:
type: string
noKtp:
type: string
noRekamMedis:
type: string
nomorTelepon:
items:
type: string
minItems: 1
type: array
tanggalLahir:
type: string
umur:
type: string
required:
- nomorTelepon
type: object
antrianoperasi.PasienOperasi:
properties:
diagnosa:
items:
type: string
type: array
id:
type: string
jenisKelamin:
type: string
kategori:
type: string
namaPasien:
type: string
noKtp:
type: string
noRekamMedis:
type: string
noUrutKategori:
type: integer
noUrutSpesialis:
type: integer
noUrutSubSpesialis:
type: integer
spesialis:
type: string
statusOperasi:
type: string
subSpesialis:
type: string
tglDaftar:
type: string
tindakan:
type: string
type: object
antrianoperasi.RencanaOperasiRequest:
properties:
kategoriOperasi:
type: integer
keterangan:
type: string
rencanaOperasi:
type: string
spesialis:
type: integer
spesialisName:
type: string
subSpesialis:
type: integer
subSpesialisName:
type: string
tanggalDaftar:
type: string
required:
- spesialis
- subSpesialis
type: object
antrianoperasi.StatusPasienRequest:
properties:
keteranganStatus:
type: string
statusOperasi:
type: string
tanggalSelesai:
type: string
type: object
antrianoperasi.TindakanItemRequest:
properties:
kodeTindakan:
type: string
tindakan:
type: string
tindakanTambahan:
type: string
required:
- kodeTindakan
- tindakan
- tindakanTambahan
type: object
dashboard.AntrianPerKategori:
properties:
id_kategori:
type: integer
jumlah_antrean:
type: integer
kategori:
type: string
type: object
dashboard.AntrianPerSpesialisResponse:
properties:
idSpesialis:
type: integer
jmlAntrian:
type: integer
spesialis:
type: string
subSpesialis:
items:
$ref: '#/definitions/dashboard.AntrianPerSubSpesialisResponse'
type: array
type: object
dashboard.AntrianPerSubSpesialisResponse:
properties:
idSubSpesialis:
type: integer
jmlAntrian:
type: integer
subSpesialis:
type: string
type: object
diagnosa.DiagnosaResponse:
properties:
keterangan:
type: string
kodeicd:
type: string
select:
type: string
type: object
dokter.DokterResponse:
properties:
hfis_code:
type: string
id:
type: string
nama_ksm:
type: string
nama_lengkap:
type: string
nip:
type: string
type: object
kategori.KategoriOperasiModel:
properties:
date_created:
type: string
date_updated:
type: string
id:
type: integer
kategori:
type: string
status:
enum:
- draft
- published
type: string
type: object
pasien.PasienResponse:
properties:
alamat:
type: string
alamatktp:
type: string
dataumur:
$ref: '#/definitions/pasien.dataUmurResponse'
id:
type: string
jeniskelamin:
type: string
nama:
type: string
nik:
type: string
nomr:
type: string
select:
type: string
tgllahir:
type: string
umur:
type: integer
type: object
pasien.dataUmurResponse:
properties:
bulan:
type: integer
hari:
type: integer
label:
type: string
tahun:
type: integer
type: object
shared.BaseErrorResponse:
properties:
code:
type: integer
errors:
items:
type: string
type: array
message:
type: string
success:
type: boolean
type: object
shared.BaseResponse:
properties:
code:
type: integer
data:
type: object
message:
type: string
success:
type: boolean
type: object
spesialis.SpesialisModel:
properties:
id:
type: integer
kode:
type: string
spesialis:
type: string
type: object
spesialis.SubSpesialisModel:
properties:
id:
type: integer
id_spesialis:
type: integer
kode:
type: string
kode_spesialis:
type: string
spesialis:
type: string
sub_spesialis:
type: string
type: object
tindakan.TindakanResponse:
properties:
keterangan:
type: string
kode:
type: string
select:
type: string
type: object
host: localhost:8080
info:
contact: {}
description: Dokumentasi API Antrian Operasi
title: Antrian Operasi API
version: "1.0"
paths:
/antrian-operasi/:
get:
parameters:
- description: Search Keyword
in: query
name: search
type: string
- description: 'Type antrian : all, kategori, spesialis, sub-spesialis'
in: query
name: type
type: string
- description: Type id :id kategori, id spesialis, id sub-spesialis
in: query
name: type_id
type: string
- description: 'Status : 1, 2, 3, 4'
in: query
name: status
type: string
- default: "10"
description: Limit
in: query
name: limit
type: string
- default: "0"
description: Offset
in: query
name: offset
type: string
responses:
"200":
description: OK
schema:
items:
$ref: '#/definitions/antrianoperasi.PasienOperasi'
type: array
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/shared.BaseErrorResponse'
summary: Get List Antrian Operasi
tags:
- Antrian Operasi
post:
parameters:
- description: Create Pasien Operasi
in: body
name: body
required: true
schema:
$ref: '#/definitions/antrianoperasi.CreatePasienOperasiRequest'
responses:
"200":
description: OK
schema:
$ref: '#/definitions/shared.BaseResponse'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/shared.BaseErrorResponse'
summary: Create Antrian Operasi
tags:
- Antrian Operasi
/antrian-operasi/{id}:
get:
parameters:
- description: id antrian
in: path
name: id
required: true
type: string
responses:
"200":
description: OK
schema:
$ref: '#/definitions/antrianoperasi.DetailPasienOperasiResponse'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/shared.BaseErrorResponse'
summary: Detail List Antrian Operasi
tags:
- Antrian Operasi
/dashboard/antrian-per-kategori/:
get:
responses:
"200":
description: OK
schema:
items:
$ref: '#/definitions/dashboard.AntrianPerKategori'
type: array
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/shared.BaseErrorResponse'
summary: Get Antrian Per Kategori
tags:
- Dashboard
/dashboard/antrian-per-spesialis/:
get:
responses:
"200":
description: OK
schema:
items:
$ref: '#/definitions/dashboard.AntrianPerSpesialisResponse'
type: array
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/shared.BaseErrorResponse'
summary: Get Antrian Per Spesialis
tags:
- Dashboard
/reference/diagnosa/:
get:
parameters:
- description: Search keyword
in: query
name: search
type: string
responses:
"200":
description: OK
schema:
items:
$ref: '#/definitions/diagnosa.DiagnosaResponse'
type: array
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/shared.BaseErrorResponse'
summary: Get List Diagnosa
tags:
- Reference
/reference/dokter/:
get:
parameters:
- description: Search keyword
in: query
name: search
type: string
- default: "10"
description: Limit
in: query
name: limit
type: string
- default: "0"
description: Offset
in: query
name: offset
type: string
responses:
"200":
description: OK
schema:
items:
$ref: '#/definitions/dokter.DokterResponse'
type: array
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/shared.BaseErrorResponse'
summary: Get List Dokter
tags:
- Reference
/reference/kategori/:
get:
parameters:
- description: Search keyword
in: query
name: search
type: string
responses:
"200":
description: OK
schema:
items:
$ref: '#/definitions/kategori.KategoriOperasiModel'
type: array
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/shared.BaseErrorResponse'
summary: Get List Kategori Operasi
tags:
- Reference
/reference/pasien/:
get:
parameters:
- description: Search keyword
in: query
name: search
type: string
responses:
"200":
description: OK
schema:
items:
$ref: '#/definitions/pasien.PasienResponse'
type: array
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/shared.BaseErrorResponse'
summary: Get List Pasien
tags:
- Reference
/reference/spesialis/:
get:
parameters:
- description: Search keyword
in: query
name: search
type: string
responses:
"200":
description: OK
schema:
items:
$ref: '#/definitions/spesialis.SpesialisModel'
type: array
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/shared.BaseErrorResponse'
summary: Get List Spesialis
tags:
- Reference
/reference/sub-spesialis/:
get:
parameters:
- description: Search keyword
in: query
name: search
type: string
- description: Filter by Id Spesialis
in: query
name: id_spesialis
type: integer
responses:
"200":
description: OK
schema:
items:
$ref: '#/definitions/spesialis.SubSpesialisModel'
type: array
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/shared.BaseErrorResponse'
summary: Get List Sub Spesialis
tags:
- Reference
/reference/tindakan/:
get:
parameters:
- description: Search keyword
in: query
name: search
type: string
responses:
"200":
description: OK
schema:
items:
$ref: '#/definitions/tindakan.TindakanResponse'
type: array
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/shared.BaseErrorResponse'
summary: Get List Tindakan
tags:
- Reference
swagger: "2.0"