clear general tool

This commit is contained in:
2025-08-28 18:03:38 +07:00
parent f060a01b98
commit af9d04de07
22 changed files with 5349 additions and 2154 deletions

View File

@@ -215,67 +215,6 @@ const docTemplate = `{
}
}
},
"/api/v1/bpjs/Peserta/nik/{nik}/tglSEP/{tglSEP}": {
"get": {
"description": "Search participant data based on Population NIK and service date",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"BPJS"
],
"summary": "Get participant data by NIK",
"parameters": [
{
"type": "string",
"description": "NIK KTP",
"name": "nik",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Service date/SEP date (format: yyyy-MM-dd)",
"name": "tglSEP",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "Participant data",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"400": {
"description": "Bad request",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"404": {
"description": "Participant not found",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
},
"/api/v1/retribusi/{id}": {
"get": {
"description": "Returns a single retribusi by ID",
@@ -761,9 +700,14 @@ const docTemplate = `{
}
}
},
"/sep": {
"put": {
"description": "Update Surat Eligibilitas Peserta",
"/peserta/:nokartu": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Get participant eligibility information",
"consumes": [
"application/json"
],
@@ -771,89 +715,49 @@ const docTemplate = `{
"application/json"
],
"tags": [
"SEP"
"vclaim",
"peserta"
],
"summary": "Update SEP",
"summary": "Get Peserta data",
"parameters": [
{
"description": "SEP update request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/api-service_internal_models_vclaim.SepPutRequest"
}
"type": "string",
"description": "Nokartu",
"name": "nokartu",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "SEP updated successfully",
"description": "OK",
"schema": {
"$ref": "#/definitions/api-service_internal_models_vclaim.SepResponse"
"$ref": "#/definitions/reference.PesertaResponse"
}
},
"400": {
"description": "Invalid request",
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/gin.H"
"$ref": "#/definitions/reference.ErrorResponse"
}
},
"500": {
"description": "Internal server error",
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/gin.H"
}
}
}
},
"post": {
"description": "Create a new Surat Eligibilitas Peserta",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"SEP"
],
"summary": "Create a new SEP",
"parameters": [
{
"description": "SEP creation request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/api-service_internal_models_vclaim.SepPostRequest"
}
}
],
"responses": {
"200": {
"description": "SEP created successfully",
"schema": {
"$ref": "#/definitions/api-service_internal_models_vclaim.SepResponse"
}
},
"400": {
"description": "Invalid request",
"schema": {
"$ref": "#/definitions/gin.H"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/gin.H"
"$ref": "#/definitions/reference.ErrorResponse"
}
}
}
}
},
"/sep/{noSep}": {
"/rujukan/:norujukan": {
"get": {
"description": "Retrieve a Surat Eligibilitas Peserta by noSep",
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Get referral information",
"consumes": [
"application/json"
],
@@ -861,41 +765,206 @@ const docTemplate = `{
"application/json"
],
"tags": [
"SEP"
"vclaim",
"rujukan"
],
"summary": "Get SEP",
"summary": "Get Rujukan data",
"parameters": [
{
"type": "string",
"description": "No SEP",
"name": "noSep",
"description": "Norujukan",
"name": "norujukan",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "Data SEP retrieved successfully",
"description": "OK",
"schema": {
"$ref": "#/definitions/api-service_internal_models_vclaim.SepResponse"
"$ref": "#/definitions/reference.RujukanResponse"
}
},
"400": {
"description": "Invalid request",
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/gin.H"
"$ref": "#/definitions/reference.ErrorResponse"
}
},
"500": {
"description": "Internal server error",
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/gin.H"
"$ref": "#/definitions/reference.ErrorResponse"
}
}
}
}
},
"/sep": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Manage SEP (Surat Eligibilitas Peserta)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"vclaim",
"sep"
],
"summary": "Create Sep",
"parameters": [
{
"description": "Sep data",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/reference.SEPRequest"
}
}
],
"responses": {
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/reference.SEPResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/reference.ErrorResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/reference.ErrorResponse"
}
}
}
}
},
"/sep/:nosep": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Manage SEP (Surat Eligibilitas Peserta)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"vclaim",
"sep"
],
"summary": "Get Sep data",
"parameters": [
{
"type": "string",
"description": "Nosep",
"name": "nosep",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/reference.SEPResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/reference.ErrorResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/reference.ErrorResponse"
}
}
}
},
"put": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Manage SEP (Surat Eligibilitas Peserta)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"vclaim",
"sep"
],
"summary": "Update Sep",
"parameters": [
{
"type": "string",
"description": "Nosep",
"name": "nosep",
"in": "path",
"required": true
},
{
"description": "Sep data",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/reference.SEPRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/reference.SEPResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/reference.ErrorResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/reference.ErrorResponse"
}
}
}
},
"delete": {
"description": "Delete a Surat Eligibilitas Peserta by noSep",
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Manage SEP (Surat Eligibilitas Peserta)",
"consumes": [
"application/json"
],
@@ -903,42 +972,36 @@ const docTemplate = `{
"application/json"
],
"tags": [
"SEP"
"vclaim",
"sep"
],
"summary": "Delete SEP",
"summary": "Delete Sep",
"parameters": [
{
"type": "string",
"description": "No SEP",
"name": "noSep",
"description": "Nosep",
"name": "nosep",
"in": "path",
"required": true
},
{
"type": "string",
"description": "User",
"name": "user",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "SEP deleted successfully",
"description": "OK",
"schema": {
"$ref": "#/definitions/api-service_internal_models_vclaim.SepResponse"
"$ref": "#/definitions/reference.BaseResponse"
}
},
"400": {
"description": "Invalid request",
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/gin.H"
"$ref": "#/definitions/reference.ErrorResponse"
}
},
"500": {
"description": "Internal server error",
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/gin.H"
"$ref": "#/definitions/reference.ErrorResponse"
}
}
}
@@ -1371,27 +1434,403 @@ const docTemplate = `{
}
}
},
"api-service_internal_models_vclaim.SepPostRequest": {
"type": "object"
},
"api-service_internal_models_vclaim.SepPutRequest": {
"type": "object"
},
"api-service_internal_models_vclaim.SepResponse": {
"reference.BaseResponse": {
"type": "object",
"properties": {
"data": {
"message": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status": {
"type": "string"
},
"timestamp": {
"type": "string"
}
}
},
"reference.ErrorResponse": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"errors": {
"type": "object",
"additionalProperties": true
},
"message": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status": {
"type": "string"
}
}
},
"gin.H": {
"reference.PesertaData": {
"type": "object",
"additionalProperties": {}
"properties": {
"aktif": {
"type": "string"
},
"asuransi": {
"type": "string"
},
"cob": {
"type": "string"
},
"kdCabang": {
"type": "string"
},
"kdJnsPst": {
"type": "string"
},
"ketAktif": {
"type": "string"
},
"klsRawat": {
"type": "string"
},
"mr": {
"type": "object",
"properties": {
"nmMR": {
"type": "string"
},
"noMR": {
"type": "string"
},
"sex": {
"type": "string"
},
"tglLahir": {
"type": "string"
},
"tglMeninggal": {
"type": "string"
}
}
},
"nama": {
"type": "string"
},
"nik": {
"type": "string"
},
"nmCabang": {
"type": "string"
},
"nmJnsPst": {
"type": "string"
},
"noKartu": {
"type": "string"
},
"noKtp": {
"type": "string"
},
"noSKTM": {
"type": "string"
},
"pisa": {
"type": "string"
},
"sex": {
"type": "string"
},
"statusPeserta": {
"type": "string"
},
"tglLahir": {
"type": "string"
},
"tglTAT": {
"type": "string"
},
"tglTMT": {
"type": "string"
},
"tglTunggak": {
"type": "string"
}
}
},
"reference.PesertaResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/reference.PesertaData"
},
"message": {
"type": "string"
},
"metaData": {},
"request_id": {
"type": "string"
},
"status": {
"type": "string"
},
"timestamp": {
"type": "string"
}
}
},
"reference.RujukanData": {
"type": "object",
"properties": {
"diagnosa": {
"type": "object",
"properties": {
"kdDiagnosa": {
"type": "string"
},
"nmDiagnosa": {
"type": "string"
}
}
},
"kelasRawat": {
"type": "string"
},
"nama": {
"type": "string"
},
"noKartu": {
"type": "string"
},
"noRujukan": {
"type": "string"
},
"pelayanan": {
"type": "string"
},
"poliRujukan": {
"type": "object",
"properties": {
"kdPoli": {
"type": "string"
},
"nmPoli": {
"type": "string"
}
}
},
"provPerujuk": {
"type": "object",
"properties": {
"kdProvider": {
"type": "string"
},
"nmProvider": {
"type": "string"
}
}
},
"statusRujukan": {
"type": "string"
},
"tglRujukan": {
"type": "string"
}
}
},
"reference.RujukanResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/reference.RujukanData"
},
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/reference.RujukanData"
}
},
"message": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status": {
"type": "string"
},
"timestamp": {
"type": "string"
}
}
},
"reference.SEPData": {
"type": "object",
"properties": {
"catatan": {
"type": "string"
},
"diagnosa": {
"type": "string"
},
"informasi": {
"type": "object",
"properties": {
"dpjpLayan": {
"type": "string"
},
"noSKDP": {
"type": "string"
},
"noTelp": {
"type": "string"
},
"subSpesialis": {
"type": "string"
}
}
},
"jnsPelayanan": {
"type": "string"
},
"klsRawat": {
"type": "string"
},
"noMR": {
"type": "string"
},
"noSep": {
"type": "string"
},
"peserta": {
"$ref": "#/definitions/reference.PesertaData"
},
"poli": {
"type": "string"
},
"rujukan": {
"$ref": "#/definitions/reference.SEPRujukan"
},
"tglSep": {
"type": "string"
}
}
},
"reference.SEPRequest": {
"type": "object",
"required": [
"diagnosa",
"jnsPelayanan",
"klsRawat",
"noKartu",
"noMR",
"poli",
"ppkPelayanan",
"tglSep",
"user"
],
"properties": {
"catatan": {
"type": "string"
},
"diagnosa": {
"type": "string"
},
"jnsPelayanan": {
"type": "string",
"enum": [
"1",
"2"
]
},
"klsRawat": {
"type": "string",
"enum": [
"1",
"2",
"3"
]
},
"noKartu": {
"type": "string"
},
"noMR": {
"type": "string"
},
"noTelp": {
"type": "string"
},
"poli": {
"type": "string"
},
"ppkPelayanan": {
"type": "string"
},
"request_id": {
"type": "string"
},
"rujukan": {
"$ref": "#/definitions/reference.SEPRujukan"
},
"tglSep": {
"type": "string"
},
"timestamp": {
"type": "string"
},
"user": {
"type": "string"
}
}
},
"reference.SEPResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/reference.SEPData"
},
"message": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status": {
"type": "string"
},
"timestamp": {
"type": "string"
}
}
},
"reference.SEPRujukan": {
"type": "object",
"required": [
"asalRujukan",
"noRujukan",
"ppkRujukan",
"tglRujukan"
],
"properties": {
"asalRujukan": {
"type": "string",
"enum": [
"1",
"2"
]
},
"noRujukan": {
"type": "string"
},
"ppkRujukan": {
"type": "string"
},
"tglRujukan": {
"type": "string"
}
}
},
"sql.NullString": {
"type": "object",

View File

@@ -212,67 +212,6 @@
}
}
},
"/api/v1/bpjs/Peserta/nik/{nik}/tglSEP/{tglSEP}": {
"get": {
"description": "Search participant data based on Population NIK and service date",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"BPJS"
],
"summary": "Get participant data by NIK",
"parameters": [
{
"type": "string",
"description": "NIK KTP",
"name": "nik",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Service date/SEP date (format: yyyy-MM-dd)",
"name": "tglSEP",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "Participant data",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"400": {
"description": "Bad request",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"404": {
"description": "Participant not found",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
},
"/api/v1/retribusi/{id}": {
"get": {
"description": "Returns a single retribusi by ID",
@@ -758,9 +697,14 @@
}
}
},
"/sep": {
"put": {
"description": "Update Surat Eligibilitas Peserta",
"/peserta/:nokartu": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Get participant eligibility information",
"consumes": [
"application/json"
],
@@ -768,89 +712,49 @@
"application/json"
],
"tags": [
"SEP"
"vclaim",
"peserta"
],
"summary": "Update SEP",
"summary": "Get Peserta data",
"parameters": [
{
"description": "SEP update request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/api-service_internal_models_vclaim.SepPutRequest"
}
"type": "string",
"description": "Nokartu",
"name": "nokartu",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "SEP updated successfully",
"description": "OK",
"schema": {
"$ref": "#/definitions/api-service_internal_models_vclaim.SepResponse"
"$ref": "#/definitions/reference.PesertaResponse"
}
},
"400": {
"description": "Invalid request",
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/gin.H"
"$ref": "#/definitions/reference.ErrorResponse"
}
},
"500": {
"description": "Internal server error",
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/gin.H"
}
}
}
},
"post": {
"description": "Create a new Surat Eligibilitas Peserta",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"SEP"
],
"summary": "Create a new SEP",
"parameters": [
{
"description": "SEP creation request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/api-service_internal_models_vclaim.SepPostRequest"
}
}
],
"responses": {
"200": {
"description": "SEP created successfully",
"schema": {
"$ref": "#/definitions/api-service_internal_models_vclaim.SepResponse"
}
},
"400": {
"description": "Invalid request",
"schema": {
"$ref": "#/definitions/gin.H"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/gin.H"
"$ref": "#/definitions/reference.ErrorResponse"
}
}
}
}
},
"/sep/{noSep}": {
"/rujukan/:norujukan": {
"get": {
"description": "Retrieve a Surat Eligibilitas Peserta by noSep",
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Get referral information",
"consumes": [
"application/json"
],
@@ -858,41 +762,206 @@
"application/json"
],
"tags": [
"SEP"
"vclaim",
"rujukan"
],
"summary": "Get SEP",
"summary": "Get Rujukan data",
"parameters": [
{
"type": "string",
"description": "No SEP",
"name": "noSep",
"description": "Norujukan",
"name": "norujukan",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "Data SEP retrieved successfully",
"description": "OK",
"schema": {
"$ref": "#/definitions/api-service_internal_models_vclaim.SepResponse"
"$ref": "#/definitions/reference.RujukanResponse"
}
},
"400": {
"description": "Invalid request",
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/gin.H"
"$ref": "#/definitions/reference.ErrorResponse"
}
},
"500": {
"description": "Internal server error",
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/gin.H"
"$ref": "#/definitions/reference.ErrorResponse"
}
}
}
}
},
"/sep": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Manage SEP (Surat Eligibilitas Peserta)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"vclaim",
"sep"
],
"summary": "Create Sep",
"parameters": [
{
"description": "Sep data",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/reference.SEPRequest"
}
}
],
"responses": {
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/reference.SEPResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/reference.ErrorResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/reference.ErrorResponse"
}
}
}
}
},
"/sep/:nosep": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Manage SEP (Surat Eligibilitas Peserta)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"vclaim",
"sep"
],
"summary": "Get Sep data",
"parameters": [
{
"type": "string",
"description": "Nosep",
"name": "nosep",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/reference.SEPResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/reference.ErrorResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/reference.ErrorResponse"
}
}
}
},
"put": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Manage SEP (Surat Eligibilitas Peserta)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"vclaim",
"sep"
],
"summary": "Update Sep",
"parameters": [
{
"type": "string",
"description": "Nosep",
"name": "nosep",
"in": "path",
"required": true
},
{
"description": "Sep data",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/reference.SEPRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/reference.SEPResponse"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/reference.ErrorResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/reference.ErrorResponse"
}
}
}
},
"delete": {
"description": "Delete a Surat Eligibilitas Peserta by noSep",
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Manage SEP (Surat Eligibilitas Peserta)",
"consumes": [
"application/json"
],
@@ -900,42 +969,36 @@
"application/json"
],
"tags": [
"SEP"
"vclaim",
"sep"
],
"summary": "Delete SEP",
"summary": "Delete Sep",
"parameters": [
{
"type": "string",
"description": "No SEP",
"name": "noSep",
"description": "Nosep",
"name": "nosep",
"in": "path",
"required": true
},
{
"type": "string",
"description": "User",
"name": "user",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "SEP deleted successfully",
"description": "OK",
"schema": {
"$ref": "#/definitions/api-service_internal_models_vclaim.SepResponse"
"$ref": "#/definitions/reference.BaseResponse"
}
},
"400": {
"description": "Invalid request",
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/gin.H"
"$ref": "#/definitions/reference.ErrorResponse"
}
},
"500": {
"description": "Internal server error",
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/gin.H"
"$ref": "#/definitions/reference.ErrorResponse"
}
}
}
@@ -1368,27 +1431,403 @@
}
}
},
"api-service_internal_models_vclaim.SepPostRequest": {
"type": "object"
},
"api-service_internal_models_vclaim.SepPutRequest": {
"type": "object"
},
"api-service_internal_models_vclaim.SepResponse": {
"reference.BaseResponse": {
"type": "object",
"properties": {
"data": {
"message": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status": {
"type": "string"
},
"timestamp": {
"type": "string"
}
}
},
"reference.ErrorResponse": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"errors": {
"type": "object",
"additionalProperties": true
},
"message": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status": {
"type": "string"
}
}
},
"gin.H": {
"reference.PesertaData": {
"type": "object",
"additionalProperties": {}
"properties": {
"aktif": {
"type": "string"
},
"asuransi": {
"type": "string"
},
"cob": {
"type": "string"
},
"kdCabang": {
"type": "string"
},
"kdJnsPst": {
"type": "string"
},
"ketAktif": {
"type": "string"
},
"klsRawat": {
"type": "string"
},
"mr": {
"type": "object",
"properties": {
"nmMR": {
"type": "string"
},
"noMR": {
"type": "string"
},
"sex": {
"type": "string"
},
"tglLahir": {
"type": "string"
},
"tglMeninggal": {
"type": "string"
}
}
},
"nama": {
"type": "string"
},
"nik": {
"type": "string"
},
"nmCabang": {
"type": "string"
},
"nmJnsPst": {
"type": "string"
},
"noKartu": {
"type": "string"
},
"noKtp": {
"type": "string"
},
"noSKTM": {
"type": "string"
},
"pisa": {
"type": "string"
},
"sex": {
"type": "string"
},
"statusPeserta": {
"type": "string"
},
"tglLahir": {
"type": "string"
},
"tglTAT": {
"type": "string"
},
"tglTMT": {
"type": "string"
},
"tglTunggak": {
"type": "string"
}
}
},
"reference.PesertaResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/reference.PesertaData"
},
"message": {
"type": "string"
},
"metaData": {},
"request_id": {
"type": "string"
},
"status": {
"type": "string"
},
"timestamp": {
"type": "string"
}
}
},
"reference.RujukanData": {
"type": "object",
"properties": {
"diagnosa": {
"type": "object",
"properties": {
"kdDiagnosa": {
"type": "string"
},
"nmDiagnosa": {
"type": "string"
}
}
},
"kelasRawat": {
"type": "string"
},
"nama": {
"type": "string"
},
"noKartu": {
"type": "string"
},
"noRujukan": {
"type": "string"
},
"pelayanan": {
"type": "string"
},
"poliRujukan": {
"type": "object",
"properties": {
"kdPoli": {
"type": "string"
},
"nmPoli": {
"type": "string"
}
}
},
"provPerujuk": {
"type": "object",
"properties": {
"kdProvider": {
"type": "string"
},
"nmProvider": {
"type": "string"
}
}
},
"statusRujukan": {
"type": "string"
},
"tglRujukan": {
"type": "string"
}
}
},
"reference.RujukanResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/reference.RujukanData"
},
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/reference.RujukanData"
}
},
"message": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status": {
"type": "string"
},
"timestamp": {
"type": "string"
}
}
},
"reference.SEPData": {
"type": "object",
"properties": {
"catatan": {
"type": "string"
},
"diagnosa": {
"type": "string"
},
"informasi": {
"type": "object",
"properties": {
"dpjpLayan": {
"type": "string"
},
"noSKDP": {
"type": "string"
},
"noTelp": {
"type": "string"
},
"subSpesialis": {
"type": "string"
}
}
},
"jnsPelayanan": {
"type": "string"
},
"klsRawat": {
"type": "string"
},
"noMR": {
"type": "string"
},
"noSep": {
"type": "string"
},
"peserta": {
"$ref": "#/definitions/reference.PesertaData"
},
"poli": {
"type": "string"
},
"rujukan": {
"$ref": "#/definitions/reference.SEPRujukan"
},
"tglSep": {
"type": "string"
}
}
},
"reference.SEPRequest": {
"type": "object",
"required": [
"diagnosa",
"jnsPelayanan",
"klsRawat",
"noKartu",
"noMR",
"poli",
"ppkPelayanan",
"tglSep",
"user"
],
"properties": {
"catatan": {
"type": "string"
},
"diagnosa": {
"type": "string"
},
"jnsPelayanan": {
"type": "string",
"enum": [
"1",
"2"
]
},
"klsRawat": {
"type": "string",
"enum": [
"1",
"2",
"3"
]
},
"noKartu": {
"type": "string"
},
"noMR": {
"type": "string"
},
"noTelp": {
"type": "string"
},
"poli": {
"type": "string"
},
"ppkPelayanan": {
"type": "string"
},
"request_id": {
"type": "string"
},
"rujukan": {
"$ref": "#/definitions/reference.SEPRujukan"
},
"tglSep": {
"type": "string"
},
"timestamp": {
"type": "string"
},
"user": {
"type": "string"
}
}
},
"reference.SEPResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/reference.SEPData"
},
"message": {
"type": "string"
},
"request_id": {
"type": "string"
},
"status": {
"type": "string"
},
"timestamp": {
"type": "string"
}
}
},
"reference.SEPRujukan": {
"type": "object",
"required": [
"asalRujukan",
"noRujukan",
"ppkRujukan",
"tglRujukan"
],
"properties": {
"asalRujukan": {
"type": "string",
"enum": [
"1",
"2"
]
},
"noRujukan": {
"type": "string"
},
"ppkRujukan": {
"type": "string"
},
"tglRujukan": {
"type": "string"
}
}
},
"sql.NullString": {
"type": "object",

View File

@@ -292,20 +292,271 @@ definitions:
message:
type: string
type: object
api-service_internal_models_vclaim.SepPostRequest:
type: object
api-service_internal_models_vclaim.SepPutRequest:
type: object
api-service_internal_models_vclaim.SepResponse:
reference.BaseResponse:
properties:
data:
message:
type: string
request_id:
type: string
status:
type: string
timestamp:
type: string
type: object
reference.ErrorResponse:
properties:
code:
type: string
errors:
additionalProperties: true
type: object
message:
type: string
request_id:
type: string
status:
type: string
type: object
gin.H:
additionalProperties: {}
reference.PesertaData:
properties:
aktif:
type: string
asuransi:
type: string
cob:
type: string
kdCabang:
type: string
kdJnsPst:
type: string
ketAktif:
type: string
klsRawat:
type: string
mr:
properties:
nmMR:
type: string
noMR:
type: string
sex:
type: string
tglLahir:
type: string
tglMeninggal:
type: string
type: object
nama:
type: string
nik:
type: string
nmCabang:
type: string
nmJnsPst:
type: string
noKartu:
type: string
noKtp:
type: string
noSKTM:
type: string
pisa:
type: string
sex:
type: string
statusPeserta:
type: string
tglLahir:
type: string
tglTAT:
type: string
tglTMT:
type: string
tglTunggak:
type: string
type: object
reference.PesertaResponse:
properties:
data:
$ref: '#/definitions/reference.PesertaData'
message:
type: string
metaData: {}
request_id:
type: string
status:
type: string
timestamp:
type: string
type: object
reference.RujukanData:
properties:
diagnosa:
properties:
kdDiagnosa:
type: string
nmDiagnosa:
type: string
type: object
kelasRawat:
type: string
nama:
type: string
noKartu:
type: string
noRujukan:
type: string
pelayanan:
type: string
poliRujukan:
properties:
kdPoli:
type: string
nmPoli:
type: string
type: object
provPerujuk:
properties:
kdProvider:
type: string
nmProvider:
type: string
type: object
statusRujukan:
type: string
tglRujukan:
type: string
type: object
reference.RujukanResponse:
properties:
data:
$ref: '#/definitions/reference.RujukanData'
list:
items:
$ref: '#/definitions/reference.RujukanData'
type: array
message:
type: string
request_id:
type: string
status:
type: string
timestamp:
type: string
type: object
reference.SEPData:
properties:
catatan:
type: string
diagnosa:
type: string
informasi:
properties:
dpjpLayan:
type: string
noSKDP:
type: string
noTelp:
type: string
subSpesialis:
type: string
type: object
jnsPelayanan:
type: string
klsRawat:
type: string
noMR:
type: string
noSep:
type: string
peserta:
$ref: '#/definitions/reference.PesertaData'
poli:
type: string
rujukan:
$ref: '#/definitions/reference.SEPRujukan'
tglSep:
type: string
type: object
reference.SEPRequest:
properties:
catatan:
type: string
diagnosa:
type: string
jnsPelayanan:
enum:
- "1"
- "2"
type: string
klsRawat:
enum:
- "1"
- "2"
- "3"
type: string
noKartu:
type: string
noMR:
type: string
noTelp:
type: string
poli:
type: string
ppkPelayanan:
type: string
request_id:
type: string
rujukan:
$ref: '#/definitions/reference.SEPRujukan'
tglSep:
type: string
timestamp:
type: string
user:
type: string
required:
- diagnosa
- jnsPelayanan
- klsRawat
- noKartu
- noMR
- poli
- ppkPelayanan
- tglSep
- user
type: object
reference.SEPResponse:
properties:
data:
$ref: '#/definitions/reference.SEPData'
message:
type: string
request_id:
type: string
status:
type: string
timestamp:
type: string
type: object
reference.SEPRujukan:
properties:
asalRujukan:
enum:
- "1"
- "2"
type: string
noRujukan:
type: string
ppkRujukan:
type: string
tglRujukan:
type: string
required:
- asalRujukan
- noRujukan
- ppkRujukan
- tglRujukan
type: object
sql.NullString:
properties:
@@ -460,48 +711,6 @@ paths:
summary: Register new user
tags:
- Authentication
/api/v1/bpjs/Peserta/nik/{nik}/tglSEP/{tglSEP}:
get:
consumes:
- application/json
description: Search participant data based on Population NIK and service date
parameters:
- description: NIK KTP
in: path
name: nik
required: true
type: string
- description: 'Service date/SEP date (format: yyyy-MM-dd)'
in: path
name: tglSEP
required: true
type: string
produces:
- application/json
responses:
"200":
description: Participant data
schema:
additionalProperties: true
type: object
"400":
description: Bad request
schema:
additionalProperties: true
type: object
"404":
description: Participant not found
schema:
additionalProperties: true
type: object
"500":
description: Internal server error
schema:
additionalProperties: true
type: object
summary: Get participant data by NIK
tags:
- BPJS
/api/v1/retribusi/{id}:
delete:
consumes:
@@ -824,127 +1033,203 @@ paths:
summary: Generate token directly
tags:
- Token
/peserta/:nokartu:
get:
consumes:
- application/json
description: Get participant eligibility information
parameters:
- description: Nokartu
in: path
name: nokartu
required: true
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/reference.PesertaResponse'
"400":
description: Bad Request
schema:
$ref: '#/definitions/reference.ErrorResponse'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/reference.ErrorResponse'
security:
- ApiKeyAuth: []
summary: Get Peserta data
tags:
- vclaim
- peserta
/rujukan/:norujukan:
get:
consumes:
- application/json
description: Get referral information
parameters:
- description: Norujukan
in: path
name: norujukan
required: true
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/reference.RujukanResponse'
"400":
description: Bad Request
schema:
$ref: '#/definitions/reference.ErrorResponse'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/reference.ErrorResponse'
security:
- ApiKeyAuth: []
summary: Get Rujukan data
tags:
- vclaim
- rujukan
/sep:
post:
consumes:
- application/json
description: Create a new Surat Eligibilitas Peserta
description: Manage SEP (Surat Eligibilitas Peserta)
parameters:
- description: SEP creation request
- description: Sep data
in: body
name: request
required: true
schema:
$ref: '#/definitions/api-service_internal_models_vclaim.SepPostRequest'
$ref: '#/definitions/reference.SEPRequest'
produces:
- application/json
responses:
"200":
description: SEP created successfully
"201":
description: Created
schema:
$ref: '#/definitions/api-service_internal_models_vclaim.SepResponse'
$ref: '#/definitions/reference.SEPResponse'
"400":
description: Invalid request
description: Bad Request
schema:
$ref: '#/definitions/gin.H'
$ref: '#/definitions/reference.ErrorResponse'
"500":
description: Internal server error
description: Internal Server Error
schema:
$ref: '#/definitions/gin.H'
summary: Create a new SEP
$ref: '#/definitions/reference.ErrorResponse'
security:
- ApiKeyAuth: []
summary: Create Sep
tags:
- SEP
put:
consumes:
- application/json
description: Update Surat Eligibilitas Peserta
parameters:
- description: SEP update request
in: body
name: request
required: true
schema:
$ref: '#/definitions/api-service_internal_models_vclaim.SepPutRequest'
produces:
- application/json
responses:
"200":
description: SEP updated successfully
schema:
$ref: '#/definitions/api-service_internal_models_vclaim.SepResponse'
"400":
description: Invalid request
schema:
$ref: '#/definitions/gin.H'
"500":
description: Internal server error
schema:
$ref: '#/definitions/gin.H'
summary: Update SEP
tags:
- SEP
/sep/{noSep}:
- vclaim
- sep
/sep/:nosep:
delete:
consumes:
- application/json
description: Delete a Surat Eligibilitas Peserta by noSep
description: Manage SEP (Surat Eligibilitas Peserta)
parameters:
- description: No SEP
- description: Nosep
in: path
name: noSep
required: true
type: string
- description: User
in: query
name: user
name: nosep
required: true
type: string
produces:
- application/json
responses:
"200":
description: SEP deleted successfully
description: OK
schema:
$ref: '#/definitions/api-service_internal_models_vclaim.SepResponse'
$ref: '#/definitions/reference.BaseResponse'
"400":
description: Invalid request
description: Bad Request
schema:
$ref: '#/definitions/gin.H'
$ref: '#/definitions/reference.ErrorResponse'
"500":
description: Internal server error
description: Internal Server Error
schema:
$ref: '#/definitions/gin.H'
summary: Delete SEP
$ref: '#/definitions/reference.ErrorResponse'
security:
- ApiKeyAuth: []
summary: Delete Sep
tags:
- SEP
- vclaim
- sep
get:
consumes:
- application/json
description: Retrieve a Surat Eligibilitas Peserta by noSep
description: Manage SEP (Surat Eligibilitas Peserta)
parameters:
- description: No SEP
- description: Nosep
in: path
name: noSep
name: nosep
required: true
type: string
produces:
- application/json
responses:
"200":
description: Data SEP retrieved successfully
description: OK
schema:
$ref: '#/definitions/api-service_internal_models_vclaim.SepResponse'
$ref: '#/definitions/reference.SEPResponse'
"400":
description: Invalid request
description: Bad Request
schema:
$ref: '#/definitions/gin.H'
$ref: '#/definitions/reference.ErrorResponse'
"500":
description: Internal server error
description: Internal Server Error
schema:
$ref: '#/definitions/gin.H'
summary: Get SEP
$ref: '#/definitions/reference.ErrorResponse'
security:
- ApiKeyAuth: []
summary: Get Sep data
tags:
- SEP
- vclaim
- sep
put:
consumes:
- application/json
description: Manage SEP (Surat Eligibilitas Peserta)
parameters:
- description: Nosep
in: path
name: nosep
required: true
type: string
- description: Sep data
in: body
name: request
required: true
schema:
$ref: '#/definitions/reference.SEPRequest'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/reference.SEPResponse'
"400":
description: Bad Request
schema:
$ref: '#/definitions/reference.ErrorResponse'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/reference.ErrorResponse'
security:
- ApiKeyAuth: []
summary: Update Sep
tags:
- vclaim
- sep
schemes:
- http
- https