Perbaikan tool bpjs

This commit is contained in:
2025-09-03 19:24:55 +07:00
parent 1ab7687e68
commit 8311311615
11 changed files with 1896 additions and 415 deletions

View File

@@ -22,6 +22,210 @@
"host": "localhost:8080",
"basePath": "/api/v1",
"paths": {
"/Peserta/nik/nik/:nik/tglSEP/:tglsep": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Get participant eligibility information by NIK",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Peserta"
],
"summary": "Get PesertaBynik data",
"parameters": [
{
"type": "string",
"description": "Request ID for tracking",
"name": "X-Request-ID",
"in": "header"
},
{
"type": "string",
"example": "\"example_value\"",
"description": "nik",
"name": "nik",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "Successfully retrieved PesertaBynik data",
"schema": {
"$ref": "#/definitions/internal_handlers_vclaim_peserta.PesertaResponse"
}
},
"400": {
"description": "Bad request - invalid parameters",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"401": {
"description": "Unauthorized - invalid API credentials",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"404": {
"description": "Not found - PesertaBynik not found",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
}
}
}
},
"/Rujukan/:norujukan": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Manage rujukan",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Rujukan"
],
"summary": "Get RujukanBynorujukan data",
"parameters": [
{
"type": "string",
"description": "Request ID for tracking",
"name": "X-Request-ID",
"in": "header"
},
{
"type": "string",
"example": "\"example_value\"",
"description": "norujukan",
"name": "norujukan",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "Successfully retrieved RujukanBynorujukan data",
"schema": {
"$ref": "#/definitions/api-service_internal_models_vclaim_rujukan.RujukanResponse"
}
},
"400": {
"description": "Bad request - invalid parameters",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"401": {
"description": "Unauthorized - invalid API credentials",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"404": {
"description": "Not found - RujukanBynorujukan not found",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
}
}
}
},
"/Rujukan/Peserta/:nokartu": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Manage rujukan",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Rujukan"
],
"summary": "Get RujukanBynokartu data",
"parameters": [
{
"type": "string",
"description": "Request ID for tracking",
"name": "X-Request-ID",
"in": "header"
},
{
"type": "string",
"example": "\"example_value\"",
"description": "nokartu",
"name": "nokartu",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "Successfully retrieved RujukanBynokartu data",
"schema": {
"$ref": "#/definitions/api-service_internal_models_vclaim_rujukan.RujukanResponse"
}
},
"400": {
"description": "Bad request - invalid parameters",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"401": {
"description": "Unauthorized - invalid API credentials",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"404": {
"description": "Not found - RujukanBynokartu not found",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
}
}
}
},
"/api/v1/auth/login": {
"post": {
"description": "Authenticate user with username and password to receive JWT token",
@@ -697,7 +901,7 @@
}
}
},
"/peserta/:nokartu": {
"/peserta/nokartu/:nokartu/tglSEP/:tglsep": {
"get": {
"security": [
{
@@ -735,7 +939,7 @@
"200": {
"description": "Successfully retrieved PesertaBynokartu data",
"schema": {
"$ref": "#/definitions/api-service_internal_models_vclaim_peserta.PesertaResponse"
"$ref": "#/definitions/internal_handlers_vclaim_peserta.PesertaResponse"
}
},
"400": {
@@ -765,74 +969,6 @@
}
}
},
"/peserta/nik/:nik": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Get participant eligibility information by NIK",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Peserta"
],
"summary": "Get PesertaBynik data",
"parameters": [
{
"type": "string",
"description": "Request ID for tracking",
"name": "X-Request-ID",
"in": "header"
},
{
"type": "string",
"example": "\"example_value\"",
"description": "nik",
"name": "nik",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "Successfully retrieved PesertaBynik data",
"schema": {
"$ref": "#/definitions/api-service_internal_models_vclaim_peserta.PesertaResponse"
}
},
"400": {
"description": "Bad request - invalid parameters",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"401": {
"description": "Unauthorized - invalid API credentials",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"404": {
"description": "Not found - PesertaBynik not found",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/api-service_internal_models.ErrorResponseBpjs"
}
}
}
}
},
"/sep": {
"post": {
"security": [
@@ -1562,43 +1698,55 @@
"api-service_internal_models_vclaim_peserta.PesertaData": {
"type": "object",
"properties": {
"aktif": {
"type": "string"
},
"asuransi": {
"type": "string"
},
"cob": {
"type": "string"
"type": "object",
"properties": {
"nmAsuransi": {},
"noAsuransi": {},
"tglTAT": {},
"tglTMT": {}
}
},
"kdCabang": {
"type": "string"
"hakKelas": {
"type": "object",
"properties": {
"keterangan": {
"type": "string"
},
"kode": {
"type": "string"
}
}
},
"kdJnsPst": {
"type": "string"
"informasi": {
"type": "object",
"properties": {
"dinsos": {},
"eSEP": {},
"noSKTM": {},
"prolanisPRB": {
"type": "string"
}
}
},
"ketAktif": {
"type": "string"
},
"klsRawat": {
"type": "string"
"jenisPeserta": {
"type": "object",
"properties": {
"keterangan": {
"type": "string"
},
"kode": {
"type": "string"
}
}
},
"mr": {
"type": "object",
"properties": {
"nmMR": {
"type": "string"
},
"noMR": {
"type": "string"
},
"sex": {
"type": "string"
},
"tglLahir": {
"type": "string"
},
"tglMeninggal": {
"noTelepon": {
"type": "string"
}
}
@@ -1609,28 +1757,38 @@
"nik": {
"type": "string"
},
"nmCabang": {
"type": "string"
},
"nmJnsPst": {
"type": "string"
},
"noKartu": {
"type": "string"
},
"noKtp": {
"type": "string"
},
"noSKTM": {
"type": "string"
},
"pisa": {
"type": "string"
},
"provUmum": {
"type": "object",
"properties": {
"kdProvider": {
"type": "string"
},
"nmProvider": {
"type": "string"
}
}
},
"sex": {
"type": "string"
},
"statusPeserta": {
"type": "object",
"properties": {
"keterangan": {
"type": "string"
},
"kode": {
"type": "string"
}
}
},
"tglCetakKartu": {
"type": "string"
},
"tglLahir": {
@@ -1642,21 +1800,93 @@
"tglTMT": {
"type": "string"
},
"tglTunggak": {
"umur": {
"type": "object",
"properties": {
"umurSaatPelayanan": {
"type": "string"
},
"umurSekarang": {
"type": "string"
}
}
}
}
},
"api-service_internal_models_vclaim_rujukan.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"
}
}
},
"api-service_internal_models_vclaim_peserta.PesertaResponse": {
"api-service_internal_models_vclaim_rujukan.RujukanResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/api-service_internal_models_vclaim_peserta.PesertaData"
"$ref": "#/definitions/api-service_internal_models_vclaim_rujukan.RujukanData"
},
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/api-service_internal_models_vclaim_rujukan.RujukanData"
}
},
"message": {
"type": "string"
},
"metaData": {},
"request_id": {
"type": "string"
},
@@ -1834,6 +2064,145 @@
}
}
},
"internal_handlers_vclaim_peserta.PesertaData": {
"type": "object",
"properties": {
"cob": {
"type": "object",
"properties": {
"nmAsuransi": {},
"noAsuransi": {},
"tglTAT": {},
"tglTMT": {}
}
},
"hakKelas": {
"type": "object",
"properties": {
"keterangan": {
"type": "string"
},
"kode": {
"type": "string"
}
}
},
"informasi": {
"type": "object",
"properties": {
"dinsos": {},
"eSEP": {},
"noSKTM": {},
"prolanisPRB": {
"type": "string"
}
}
},
"jenisPeserta": {
"type": "object",
"properties": {
"keterangan": {
"type": "string"
},
"kode": {
"type": "string"
}
}
},
"mr": {
"type": "object",
"properties": {
"noMR": {
"type": "string"
},
"noTelepon": {
"type": "string"
}
}
},
"nama": {
"type": "string"
},
"nik": {
"type": "string"
},
"noKartu": {
"type": "string"
},
"pisa": {
"type": "string"
},
"provUmum": {
"type": "object",
"properties": {
"kdProvider": {
"type": "string"
},
"nmProvider": {
"type": "string"
}
}
},
"sex": {
"type": "string"
},
"statusPeserta": {
"type": "object",
"properties": {
"keterangan": {
"type": "string"
},
"kode": {
"type": "string"
}
}
},
"tglCetakKartu": {
"type": "string"
},
"tglLahir": {
"type": "string"
},
"tglTAT": {
"type": "string"
},
"tglTMT": {
"type": "string"
},
"umur": {
"type": "object",
"properties": {
"umurSaatPelayanan": {
"type": "string"
},
"umurSekarang": {
"type": "string"
}
}
}
}
},
"internal_handlers_vclaim_peserta.PesertaResponse": {
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/internal_handlers_vclaim_peserta.PesertaData"
},
"message": {
"type": "string"
},
"metaData": {},
"request_id": {
"type": "string"
},
"status": {
"type": "string"
},
"timestamp": {
"type": "string"
}
}
},
"sql.NullString": {
"type": "object",
"properties": {