Files
2026-02-03 13:52:41 +07:00

703 lines
22 KiB
Go

// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs
import "github.com/swaggo/swag"
const docTemplate = `{
"schemes": {{ marshal .Schemes }},
"swagger": "2.0",
"info": {
"description": "{{escape .Description}}",
"title": "{{.Title}}",
"contact": {},
"version": "{{.Version}}"
},
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {
"/antrian-operasi/": {
"get": {
"tags": [
"Antrian Operasi"
],
"summary": "Get List Antrian Operasi",
"parameters": [
{
"type": "string",
"description": "Search Keyword",
"name": "search",
"in": "query"
},
{
"type": "string",
"description": "Type antrian : all, kategori, spesialis, sub-spesialis",
"name": "type",
"in": "query"
},
{
"type": "string",
"description": "Type id :id kategori, id spesialis, id sub-spesialis",
"name": "type_id",
"in": "query"
},
{
"type": "string",
"description": "Status : 1, 2, 3, 4",
"name": "status",
"in": "query"
},
{
"type": "string",
"default": "10",
"description": "Limit",
"name": "limit",
"in": "query"
},
{
"type": "string",
"default": "0",
"description": "Offset",
"name": "offset",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/antrianoperasi.PasienOperasi"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/shared.BaseErrorResponse"
}
}
}
},
"post": {
"tags": [
"Antrian Operasi"
],
"summary": "Create Antrian Operasi",
"parameters": [
{
"description": "Create Pasien Operasi",
"name": "body",
"in": "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"
}
}
}
}
},
"/dashboard/antrian-per-kategori/": {
"get": {
"tags": [
"Dashboard"
],
"summary": "Get Antrian Per Kategori",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/dashboard.AntrianPerKategori"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/shared.BaseErrorResponse"
}
}
}
}
},
"/reference/dokter/": {
"get": {
"tags": [
"Reference"
],
"summary": "Get List Dokter",
"parameters": [
{
"type": "string",
"description": "Search keyword",
"name": "search",
"in": "query"
},
{
"type": "string",
"default": "10",
"description": "Limit",
"name": "limit",
"in": "query"
},
{
"type": "string",
"default": "0",
"description": "Offset",
"name": "offset",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/dokter.DokterResponse"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/shared.BaseErrorResponse"
}
}
}
}
},
"/reference/kategori/": {
"get": {
"tags": [
"Reference"
],
"summary": "Get List Kategori Operasi",
"parameters": [
{
"type": "string",
"description": "Search keyword",
"name": "search",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/kategori.KategoriOperasiModel"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/shared.BaseErrorResponse"
}
}
}
}
},
"/reference/pasien/": {
"get": {
"tags": [
"Reference"
],
"summary": "Get List Pasien",
"parameters": [
{
"type": "string",
"description": "Search keyword",
"name": "search",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/pasien.PasienModel"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/shared.BaseErrorResponse"
}
}
}
}
},
"/reference/spesialis/": {
"get": {
"tags": [
"Reference"
],
"summary": "Get List Spesialis",
"parameters": [
{
"type": "string",
"description": "Search keyword",
"name": "search",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/spesialis.SpesialisModel"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/shared.BaseErrorResponse"
}
}
}
}
},
"/reference/sub-spesialis/": {
"get": {
"tags": [
"Reference"
],
"summary": "Get List Sub Spesialis",
"parameters": [
{
"type": "string",
"description": "Search keyword",
"name": "search",
"in": "query"
},
{
"type": "integer",
"description": "Filter by Id Spesialis",
"name": "id_spesialis",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/spesialis.SubSpesialisModel"
}
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/shared.BaseErrorResponse"
}
}
}
}
}
},
"definitions": {
"antrianoperasi.CreatePasienOperasiRequest": {
"type": "object",
"properties": {
"diagnosisItems": {
"type": "array",
"items": {
"$ref": "#/definitions/antrianoperasi.DiagnosisItemRequest"
}
},
"dokterPelaksanaItems": {
"type": "array",
"items": {
"$ref": "#/definitions/antrianoperasi.DokterPelaksanaItemRequest"
}
},
"formData": {
"$ref": "#/definitions/antrianoperasi.FormDataRequest"
},
"rencanaOperasiData": {
"$ref": "#/definitions/antrianoperasi.RencanaOperasiRequest"
},
"statusPasienData": {
"$ref": "#/definitions/antrianoperasi.StatusPasienRequest"
},
"tindakanItems": {
"type": "array",
"items": {
"$ref": "#/definitions/antrianoperasi.TindakanItemRequest"
}
}
}
},
"antrianoperasi.DiagnosisItemRequest": {
"type": "object",
"properties": {
"diagnosa": {
"type": "string"
},
"jenisDiagnosa": {
"type": "string"
},
"kodeDiagnosa": {
"type": "string"
}
}
},
"antrianoperasi.DokterPelaksanaItemRequest": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"nama": {
"type": "string"
},
"nip": {
"type": "string"
},
"satuan_kerja": {
"type": "string"
}
}
},
"antrianoperasi.FormDataRequest": {
"type": "object",
"properties": {
"alamat": {
"type": "string"
},
"jenisKelamin": {
"type": "string"
},
"namaPasien": {
"type": "string"
},
"noKtp": {
"type": "string"
},
"noRekamMedis": {
"type": "string"
},
"nomorTelepon": {
"type": "array",
"items": {
"type": "string"
}
},
"tanggalLahir": {
"type": "string"
},
"umur": {
"type": "string"
}
}
},
"antrianoperasi.PasienOperasi": {
"type": "object",
"properties": {
"diagnosa": {
"type": "string"
},
"id": {
"type": "string"
},
"jenisKelamin": {
"type": "string"
},
"kategori": {
"type": "string"
},
"kodeDiagnosa": {
"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"
}
}
},
"antrianoperasi.RencanaOperasiRequest": {
"type": "object",
"properties": {
"kategoriOperasi": {
"type": "integer"
},
"keterangan": {
"type": "string"
},
"rencanaOperasi": {
"type": "string"
},
"spesialis": {
"type": "integer"
},
"subSpesialis": {
"type": "integer"
},
"tanggalDaftar": {
"type": "string"
}
}
},
"antrianoperasi.StatusPasienRequest": {
"type": "object",
"properties": {
"keteranganStatus": {
"type": "string"
},
"statusOperasi": {
"type": "string"
},
"tanggalSelesai": {
"type": "string"
}
}
},
"antrianoperasi.TindakanItemRequest": {
"type": "object",
"properties": {
"kodeTindakan": {
"type": "string"
},
"tindakan": {
"type": "string"
},
"tindakanTambahan": {
"type": "string"
}
}
},
"dashboard.AntrianPerKategori": {
"type": "object",
"properties": {
"id_kategori": {
"type": "integer"
},
"jumlah_antrean": {
"type": "integer"
},
"kategori": {
"type": "string"
}
}
},
"dokter.DokterResponse": {
"type": "object",
"properties": {
"hfis_code": {
"type": "string"
},
"id": {
"type": "string"
},
"nama_ksm": {
"type": "string"
},
"nama_lengkap": {
"type": "string"
},
"nip": {
"type": "string"
}
}
},
"kategori.KategoriOperasiModel": {
"type": "object",
"properties": {
"date_created": {
"type": "string"
},
"date_updated": {
"type": "string"
},
"id": {
"type": "integer"
},
"kategori": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"draft",
"published"
]
}
}
},
"pasien.PasienModel": {
"type": "object",
"properties": {
"alamat": {
"type": "string"
},
"alamatKtp": {
"type": "string"
},
"id": {
"type": "integer"
},
"jenisKelamin": {
"type": "string"
},
"nama": {
"type": "string"
},
"nik": {
"type": "string"
},
"noMr": {
"type": "string"
},
"tglLahir": {
"type": "string"
}
}
},
"shared.BaseErrorResponse": {
"type": "object",
"properties": {
"code": {
"type": "integer"
},
"errors": {
"type": "array",
"items": {
"type": "string"
}
},
"message": {
"type": "string"
},
"success": {
"type": "boolean"
}
}
},
"shared.BaseResponse": {
"type": "object",
"properties": {
"code": {
"type": "integer"
},
"data": {
"type": "object"
},
"message": {
"type": "string"
},
"success": {
"type": "boolean"
}
}
},
"spesialis.SpesialisModel": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"kode": {
"type": "string"
},
"spesialis": {
"type": "string"
}
}
},
"spesialis.SubSpesialisModel": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"id_spesialis": {
"type": "integer"
},
"kode": {
"type": "string"
},
"kode_spesialis": {
"type": "string"
},
"spesialis": {
"type": "string"
},
"sub_spesialis": {
"type": "string"
}
}
}
}
}`
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "1.0",
Host: "localhost:8080",
BasePath: "/api",
Schemes: []string{},
Title: "Antrian Operasi API",
Description: "Dokumentasi API Antrian Operasi",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
}
func init() {
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
}