From 48ef4b7ea2bb733a34fc55244d76a2c6039ada5c Mon Sep 17 00:00:00 2001 From: wayanrivan Date: Wed, 15 Apr 2026 16:09:01 +0700 Subject: [PATCH] update service examination --- config/default.json | 2 +- src/controllers/service_examination.ts | 2 +- src/swagger/builder.js | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/default.json b/config/default.json index a9da237..64e6364 100644 --- a/config/default.json +++ b/config/default.json @@ -22,7 +22,7 @@ "database": { "engine": "postgres", "host": "127.0.0.1", - "port": "1520", + "port": "15432", "username": "saude_stag", "password": "gM*#o>3W4&5X", "database": "saude_stag", diff --git a/src/controllers/service_examination.ts b/src/controllers/service_examination.ts index 659846a..cd93c42 100644 --- a/src/controllers/service_examination.ts +++ b/src/controllers/service_examination.ts @@ -82,7 +82,7 @@ export class ServiceExaminationController { required: true, content: { "application/json": { - schema: { $ref: "#/components/schemas/serviceExamination" } + schema: { $ref: "#/components/schemas/serviceExaminationCreate" } } } } diff --git a/src/swagger/builder.js b/src/swagger/builder.js index 8ad23f0..2d0087b 100644 --- a/src/swagger/builder.js +++ b/src/swagger/builder.js @@ -222,6 +222,10 @@ const doc = { serviceExamination: { $examination_detail_ids: ["uuid-string"], }, + serviceExaminationCreate: { + $examination_detail_ids: ["uuid-string"], + $service_id: "uuid-string", + }, hospitalinformation: { $name: "Hospital Name", $address: "Hospital Address",