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

@@ -1,4 +1,5 @@
// Package docs Code generated by swaggo/swag. DO NOT EDIT
// Code generated by swaggo/swag. DO NOT EDIT.
package docs
import "github.com/swaggo/swag"
@@ -24,6 +25,210 @@ const docTemplate = `{
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"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",
@@ -699,7 +904,7 @@ const docTemplate = `{
}
}
},
"/peserta/:nokartu": {
"/peserta/nokartu/:nokartu/tglSEP/:tglsep": {
"get": {
"security": [
{
@@ -737,7 +942,7 @@ const docTemplate = `{
"200": {
"description": "Successfully retrieved PesertaBynokartu data",
"schema": {
"$ref": "#/definitions/api-service_internal_models_vclaim_peserta.PesertaResponse"
"$ref": "#/definitions/internal_handlers_vclaim_peserta.PesertaResponse"
}
},
"400": {
@@ -767,74 +972,6 @@ const docTemplate = `{
}
}
},
"/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": [
@@ -1564,43 +1701,55 @@ const docTemplate = `{
"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"
}
}
@@ -1611,28 +1760,38 @@ const docTemplate = `{
"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": {
@@ -1644,21 +1803,93 @@ const docTemplate = `{
"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"
},
@@ -1836,6 +2067,145 @@ const docTemplate = `{
}
}
},
"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": {
@@ -1873,8 +2243,6 @@ var SwaggerInfo = &swag.Spec{
Description: "A comprehensive Go API service with Swagger documentation",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
}
func init() {

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": {

View File

@@ -308,52 +308,67 @@ definitions:
type: object
api-service_internal_models_vclaim_peserta.PesertaData:
properties:
aktif:
type: string
asuransi:
type: string
cob:
type: string
kdCabang:
type: string
kdJnsPst:
type: string
ketAktif:
type: string
klsRawat:
type: string
properties:
nmAsuransi: {}
noAsuransi: {}
tglTAT: {}
tglTMT: {}
type: object
hakKelas:
properties:
keterangan:
type: string
kode:
type: string
type: object
informasi:
properties:
dinsos: {}
eSEP: {}
noSKTM: {}
prolanisPRB:
type: string
type: object
jenisPeserta:
properties:
keterangan:
type: string
kode:
type: string
type: object
mr:
properties:
nmMR:
type: string
noMR:
type: string
sex:
type: string
tglLahir:
type: string
tglMeninggal:
noTelepon:
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
provUmum:
properties:
kdProvider:
type: string
nmProvider:
type: string
type: object
sex:
type: string
statusPeserta:
properties:
keterangan:
type: string
kode:
type: string
type: object
tglCetakKartu:
type: string
tglLahir:
type: string
@@ -361,16 +376,62 @@ definitions:
type: string
tglTMT:
type: string
tglTunggak:
umur:
properties:
umurSaatPelayanan:
type: string
umurSekarang:
type: string
type: object
type: object
api-service_internal_models_vclaim_rujukan.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
api-service_internal_models_vclaim_peserta.PesertaResponse:
api-service_internal_models_vclaim_rujukan.RujukanResponse:
properties:
data:
$ref: '#/definitions/api-service_internal_models_vclaim_peserta.PesertaData'
$ref: '#/definitions/api-service_internal_models_vclaim_rujukan.RujukanData'
list:
items:
$ref: '#/definitions/api-service_internal_models_vclaim_rujukan.RujukanData'
type: array
message:
type: string
metaData: {}
request_id:
type: string
status:
@@ -492,6 +553,98 @@ definitions:
- ppkRujukan
- tglRujukan
type: object
internal_handlers_vclaim_peserta.PesertaData:
properties:
cob:
properties:
nmAsuransi: {}
noAsuransi: {}
tglTAT: {}
tglTMT: {}
type: object
hakKelas:
properties:
keterangan:
type: string
kode:
type: string
type: object
informasi:
properties:
dinsos: {}
eSEP: {}
noSKTM: {}
prolanisPRB:
type: string
type: object
jenisPeserta:
properties:
keterangan:
type: string
kode:
type: string
type: object
mr:
properties:
noMR:
type: string
noTelepon:
type: string
type: object
nama:
type: string
nik:
type: string
noKartu:
type: string
pisa:
type: string
provUmum:
properties:
kdProvider:
type: string
nmProvider:
type: string
type: object
sex:
type: string
statusPeserta:
properties:
keterangan:
type: string
kode:
type: string
type: object
tglCetakKartu:
type: string
tglLahir:
type: string
tglTAT:
type: string
tglTMT:
type: string
umur:
properties:
umurSaatPelayanan:
type: string
umurSekarang:
type: string
type: object
type: object
internal_handlers_vclaim_peserta.PesertaResponse:
properties:
data:
$ref: '#/definitions/internal_handlers_vclaim_peserta.PesertaData'
message:
type: string
metaData: {}
request_id:
type: string
status:
type: string
timestamp:
type: string
type: object
sql.NullString:
properties:
string:
@@ -522,6 +675,138 @@ info:
title: API Service
version: 1.0.0
paths:
/Peserta/nik/nik/:nik/tglSEP/:tglsep:
get:
consumes:
- application/json
description: Get participant eligibility information by NIK
parameters:
- description: Request ID for tracking
in: header
name: X-Request-ID
type: string
- description: nik
example: '"example_value"'
in: path
name: nik
required: true
type: string
produces:
- application/json
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'
security:
- ApiKeyAuth: []
summary: Get PesertaBynik data
tags:
- Peserta
/Rujukan/:norujukan:
get:
consumes:
- application/json
description: Manage rujukan
parameters:
- description: Request ID for tracking
in: header
name: X-Request-ID
type: string
- description: norujukan
example: '"example_value"'
in: path
name: norujukan
required: true
type: string
produces:
- application/json
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'
security:
- ApiKeyAuth: []
summary: Get RujukanBynorujukan data
tags:
- Rujukan
/Rujukan/Peserta/:nokartu:
get:
consumes:
- application/json
description: Manage rujukan
parameters:
- description: Request ID for tracking
in: header
name: X-Request-ID
type: string
- description: nokartu
example: '"example_value"'
in: path
name: nokartu
required: true
type: string
produces:
- application/json
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'
security:
- ApiKeyAuth: []
summary: Get RujukanBynokartu data
tags:
- Rujukan
/api/v1/auth/login:
post:
consumes:
@@ -967,7 +1252,7 @@ paths:
summary: Generate token directly
tags:
- Token
/peserta/:nokartu:
/peserta/nokartu/:nokartu/tglSEP/:tglsep:
get:
consumes:
- application/json
@@ -989,7 +1274,7 @@ paths:
"200":
description: Successfully retrieved PesertaBynokartu data
schema:
$ref: '#/definitions/api-service_internal_models_vclaim_peserta.PesertaResponse'
$ref: '#/definitions/internal_handlers_vclaim_peserta.PesertaResponse'
"400":
description: Bad request - invalid parameters
schema:
@@ -1011,50 +1296,6 @@ paths:
summary: Get PesertaBynokartu data
tags:
- Peserta
/peserta/nik/:nik:
get:
consumes:
- application/json
description: Get participant eligibility information by NIK
parameters:
- description: Request ID for tracking
in: header
name: X-Request-ID
type: string
- description: nik
example: '"example_value"'
in: path
name: nik
required: true
type: string
produces:
- application/json
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'
security:
- ApiKeyAuth: []
summary: Get PesertaBynik data
tags:
- Peserta
/sep:
post:
consumes: