fixing response list diagnosa, tindakan, pasien

This commit is contained in:
renaldybrada
2026-02-05 11:45:44 +07:00
parent 0cbaba6a4d
commit 53242ae2ff
12 changed files with 300 additions and 74 deletions
+46 -17
View File
@@ -156,7 +156,7 @@ const docTemplate = `{
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/diagnosa.DiagnosaModel"
"$ref": "#/definitions/diagnosa.DiagnosaResponse"
}
}
},
@@ -269,7 +269,7 @@ const docTemplate = `{
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/pasien.PasienModel"
"$ref": "#/definitions/pasien.PasienResponse"
}
}
},
@@ -374,7 +374,7 @@ const docTemplate = `{
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/tindakan.TindakanModel"
"$ref": "#/definitions/tindakan.TindakanResponse"
}
}
},
@@ -626,16 +626,16 @@ const docTemplate = `{
}
}
},
"diagnosa.DiagnosaModel": {
"diagnosa.DiagnosaResponse": {
"type": "object",
"properties": {
"jenisPenyakit": {
"keterangan": {
"type": "string"
},
"kodeDiagnosa": {
"kodeicd": {
"type": "string"
},
"sebabPenyakit": {
"select": {
"type": "string"
}
}
@@ -684,19 +684,22 @@ const docTemplate = `{
}
}
},
"pasien.PasienModel": {
"pasien.PasienResponse": {
"type": "object",
"properties": {
"alamat": {
"type": "string"
},
"alamatKtp": {
"alamatktp": {
"type": "string"
},
"id": {
"type": "integer"
"dataumur": {
"$ref": "#/definitions/pasien.dataUmurResponse"
},
"jenisKelamin": {
"id": {
"type": "string"
},
"jeniskelamin": {
"type": "string"
},
"nama": {
@@ -705,11 +708,34 @@ const docTemplate = `{
"nik": {
"type": "string"
},
"noMr": {
"nomr": {
"type": "string"
},
"tglLahir": {
"select": {
"type": "string"
},
"tgllahir": {
"type": "string"
},
"umur": {
"type": "integer"
}
}
},
"pasien.dataUmurResponse": {
"type": "object",
"properties": {
"bulan": {
"type": "integer"
},
"hari": {
"type": "integer"
},
"label": {
"type": "string"
},
"tahun": {
"type": "integer"
}
}
},
@@ -787,13 +813,16 @@ const docTemplate = `{
}
}
},
"tindakan.TindakanModel": {
"tindakan.TindakanResponse": {
"type": "object",
"properties": {
"KodeTindakan": {
"keterangan": {
"type": "string"
},
"Tindakan": {
"kode": {
"type": "string"
},
"select": {
"type": "string"
}
}