diff --git a/api/oh.yaml b/api/oh.yaml index adc147e03..ae7417084 100644 --- a/api/oh.yaml +++ b/api/oh.yaml @@ -9,14 +9,14 @@ info: url: https://github.com/informatici/openhospital-api?tab=GPL-3.0-1-ov-file#readme version: 0.1.0 servers: - - url: http://localhost:8080 +- url: http://localhost:8080 security: - - bearerAuth: [] +- bearerAuth: [] paths: /wards: get: tags: - - Wards + - Wards operationId: getWards responses: "200": @@ -28,10 +28,10 @@ paths: items: $ref: "#/components/schemas/WardDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Wards + - Wards operationId: updateWard requestBody: content: @@ -47,10 +47,10 @@ paths: schema: $ref: "#/components/schemas/WardDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Wards + - Wards operationId: newWard requestBody: content: @@ -66,19 +66,19 @@ paths: schema: $ref: "#/components/schemas/WardDTO" security: - - bearerAuth: [] + - bearerAuth: [] /visits/{visitID}: put: tags: - - Visit + - Visit operationId: updateVisit parameters: - - name: visitID - in: path - required: true - schema: - type: integer - format: int32 + - name: visitID + in: path + required: true + schema: + type: integer + format: int32 requestBody: content: application/json: @@ -93,11 +93,11 @@ paths: schema: $ref: "#/components/schemas/VisitDTO" security: - - bearerAuth: [] + - bearerAuth: [] /vaccinetypes: get: tags: - - Vaccine Type + - Vaccine Type operationId: getVaccineType responses: "200": @@ -109,10 +109,10 @@ paths: items: $ref: "#/components/schemas/VaccineTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Vaccine Type + - Vaccine Type operationId: updateVaccineType requestBody: content: @@ -128,10 +128,10 @@ paths: schema: $ref: "#/components/schemas/VaccineTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Vaccine Type + - Vaccine Type operationId: newVaccineType requestBody: content: @@ -147,11 +147,11 @@ paths: schema: $ref: "#/components/schemas/VaccineTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /vaccines: get: tags: - - Vaccines + - Vaccines operationId: getVaccines responses: "200": @@ -163,10 +163,10 @@ paths: items: $ref: "#/components/schemas/VaccineDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Vaccines + - Vaccines operationId: updateVaccine requestBody: content: @@ -182,10 +182,10 @@ paths: schema: $ref: "#/components/schemas/VaccineDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Vaccines + - Vaccines operationId: newVaccine requestBody: content: @@ -201,19 +201,19 @@ paths: schema: $ref: "#/components/schemas/VaccineDTO" security: - - bearerAuth: [] + - bearerAuth: [] /usersettings/{id}: put: tags: - - User Settings + - User Settings operationId: updateUserSettings parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 requestBody: content: application/json: @@ -228,34 +228,34 @@ paths: schema: $ref: "#/components/schemas/UserSettingDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - User Settings + - User Settings operationId: deleteUserSetting parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "204": description: No Content security: - - bearerAuth: [] + - bearerAuth: [] /users/{username}: get: tags: - - Users + - Users operationId: getUserByName parameters: - - name: username - in: path - required: true - schema: - type: string + - name: username + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -264,17 +264,17 @@ paths: schema: $ref: "#/components/schemas/UserDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Users + - Users operationId: updateUser parameters: - - name: username - in: path - required: true - schema: - type: string + - name: username + in: path + required: true + schema: + type: string requestBody: content: application/json: @@ -289,26 +289,26 @@ paths: schema: $ref: "#/components/schemas/UserDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Users + - Users operationId: deleteUser parameters: - - name: username - in: path - required: true - schema: - type: string + - name: username + in: path + required: true + schema: + type: string responses: "204": description: No Content security: - - bearerAuth: [] + - bearerAuth: [] /users/me: get: tags: - - Users + - Users operationId: retrieveProfileByCurrentLoggedInUser responses: "200": @@ -318,10 +318,10 @@ paths: schema: $ref: "#/components/schemas/UserProfileDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Users + - Users operationId: updateProfile requestBody: content: @@ -337,18 +337,18 @@ paths: schema: $ref: "#/components/schemas/UserProfileDTO" security: - - bearerAuth: [] + - bearerAuth: [] /usergroups/{group_code}: get: tags: - - User Groups + - User Groups operationId: getUserGroup parameters: - - name: group_code - in: path - required: true - schema: - type: string + - name: group_code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -357,17 +357,17 @@ paths: schema: $ref: "#/components/schemas/UserGroupDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - User Groups + - User Groups operationId: updateUserGroup parameters: - - name: group_code - in: path - required: true - schema: - type: string + - name: group_code + in: path + required: true + schema: + type: string requestBody: content: application/json: @@ -382,33 +382,33 @@ paths: schema: $ref: "#/components/schemas/UserGroupDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - User Groups + - User Groups operationId: deleteGroup parameters: - - name: group_code - in: path - required: true - schema: - type: string + - name: group_code + in: path + required: true + schema: + type: string responses: "204": description: No Content security: - - bearerAuth: [] + - bearerAuth: [] /usergroups/{group_code}/permissions: put: tags: - - User Groups + - User Groups operationId: updateGroupPermissions parameters: - - name: group_code - in: path - required: true - schema: - type: string + - name: group_code + in: path + required: true + schema: + type: string requestBody: content: application/json: @@ -425,17 +425,17 @@ paths: items: $ref: "#/components/schemas/PermissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] patch: tags: - - User Groups + - User Groups operationId: replaceGroupPermissions parameters: - - name: group_code - in: path - required: true - schema: - type: string + - name: group_code + in: path + required: true + schema: + type: string requestBody: content: application/json: @@ -452,19 +452,19 @@ paths: items: $ref: "#/components/schemas/PermissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /suppliers: get: tags: - - Suppliers + - Suppliers operationId: getSuppliers parameters: - - name: exclude_deleted - in: query - required: false - schema: - type: boolean - default: true + - name: exclude_deleted + in: query + required: false + schema: + type: boolean + default: true responses: "200": description: OK @@ -475,10 +475,10 @@ paths: items: $ref: "#/components/schemas/SupplierDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Suppliers + - Suppliers operationId: updateSupplier requestBody: content: @@ -494,10 +494,10 @@ paths: schema: $ref: "#/components/schemas/SupplierDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Suppliers + - Suppliers operationId: saveSupplier requestBody: content: @@ -513,19 +513,19 @@ paths: schema: $ref: "#/components/schemas/SupplierDTO" security: - - bearerAuth: [] + - bearerAuth: [] /pricesothers/{id}: put: tags: - - Others Price + - Others Price operationId: updatePricesOthers parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 requestBody: content: application/json: @@ -540,18 +540,18 @@ paths: schema: $ref: "#/components/schemas/PricesOthersDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Others Price + - Others Price operationId: deletePricesOthers parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -560,19 +560,19 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /pricelists/{id}: put: tags: - - Price Lists + - Price Lists operationId: updatePriceLists parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 requestBody: content: application/json: @@ -587,18 +587,18 @@ paths: schema: $ref: "#/components/schemas/PriceListDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Price Lists + - Price Lists operationId: deletePriceList parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -607,18 +607,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /pregnanttreatmenttypes/{code}: put: tags: - - Pregnant Treatment Types + - Pregnant Treatment Types operationId: updatePregnantTreatmentTypes parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string requestBody: content: application/json: @@ -633,17 +633,17 @@ paths: schema: $ref: "#/components/schemas/PregnantTreatmentTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Pregnant Treatment Types + - Pregnant Treatment Types operationId: deletePregnantTreatmentType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -652,19 +652,19 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /patientvaccines/{code}: put: tags: - - Patient Vaccines + - Patient Vaccines operationId: updatePatientVaccinet parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 requestBody: content: application/json: @@ -679,18 +679,18 @@ paths: schema: $ref: "#/components/schemas/PatientVaccineDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Patient Vaccines + - Patient Vaccines operationId: deletePatientVaccine parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -699,19 +699,19 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /patients/{code}: get: tags: - - Patients + - Patients operationId: getPatient parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -720,18 +720,18 @@ paths: schema: $ref: "#/components/schemas/PatientDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Patients + - Patients operationId: updatePatient parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 requestBody: content: application/json: @@ -746,18 +746,18 @@ paths: schema: $ref: "#/components/schemas/PatientDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Patients + - Patients operationId: deletePatient parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -766,19 +766,19 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /patientconsensus/{patientId}: get: tags: - - Patient Consensus + - Patient Consensus operationId: getPatientConsensus parameters: - - name: patientId - in: path - required: true - schema: - type: integer - format: int32 + - name: patientId + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -787,18 +787,18 @@ paths: schema: $ref: "#/components/schemas/PatientConsensusDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Patient Consensus + - Patient Consensus operationId: updatePatientConsensus parameters: - - name: patientId - in: path - required: true - schema: - type: integer - format: int32 + - name: patientId + in: path + required: true + schema: + type: integer + format: int32 requestBody: content: application/json: @@ -813,18 +813,18 @@ paths: schema: $ref: "#/components/schemas/PatientConsensusDTO" security: - - bearerAuth: [] + - bearerAuth: [] /operationtypes/{code}: put: tags: - - Operations Types + - Operations Types operationId: updateOperationTypes parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string requestBody: content: application/json: @@ -839,17 +839,17 @@ paths: schema: $ref: "#/components/schemas/OperationTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Operations Types + - Operations Types operationId: deleteOperationType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -858,18 +858,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /operations/{code}: get: tags: - - Operations + - Operations operationId: getOperationByCode parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -878,17 +878,17 @@ paths: schema: $ref: "#/components/schemas/OperationDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Operations + - Operations operationId: updateOperation parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string requestBody: content: application/json: @@ -903,17 +903,17 @@ paths: schema: $ref: "#/components/schemas/OperationDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Operations + - Operations operationId: deleteOperation parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -922,11 +922,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /operations/rows: put: tags: - - Operations + - Operations operationId: updateOperationRow requestBody: content: @@ -943,10 +943,10 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Operations + - Operations operationId: newOperationRow requestBody: content: @@ -962,19 +962,19 @@ paths: schema: $ref: "#/components/schemas/OperationRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /opds/{code}: put: tags: - - Opds + - Opds operationId: updateOpd parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 requestBody: content: application/json: @@ -989,18 +989,18 @@ paths: schema: $ref: "#/components/schemas/OpdDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Opds + - Opds operationId: deleteOpd parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -1009,19 +1009,19 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /opds/rows/{code}: put: tags: - - Opds + - Opds operationId: updateOpdWithOperationRow parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 requestBody: content: application/json: @@ -1036,11 +1036,11 @@ paths: schema: $ref: "#/components/schemas/OpdWithOperationRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medstockmovementtypes: get: tags: - - Medical Stock Movement Type + - Medical Stock Movement Type operationId: getMedicalDsrStockMovementType responses: "200": @@ -1052,10 +1052,10 @@ paths: items: $ref: "#/components/schemas/MovementTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Medical Stock Movement Type + - Medical Stock Movement Type operationId: updateMedicalDsrStockMovementType requestBody: content: @@ -1071,10 +1071,10 @@ paths: schema: $ref: "#/components/schemas/MovementTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Medical Stock Movement Type + - Medical Stock Movement Type operationId: newMedicalDsrStockMovementType requestBody: content: @@ -1090,11 +1090,11 @@ paths: schema: $ref: "#/components/schemas/MovementTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicaltypes: get: tags: - - Medical Types + - Medical Types operationId: getMedicalTypes responses: "200": @@ -1106,10 +1106,10 @@ paths: items: $ref: "#/components/schemas/MedicalTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Medical Types + - Medical Types operationId: updateMedicalType requestBody: content: @@ -1125,10 +1125,10 @@ paths: schema: $ref: "#/components/schemas/MedicalTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Medical Types + - Medical Types operationId: createMedicalType requestBody: content: @@ -1144,22 +1144,22 @@ paths: schema: $ref: "#/components/schemas/MedicalTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicals: get: tags: - - Medicals + - Medicals operationId: getMedicals parameters: - - name: sort_by - in: query - required: false - schema: - type: string - enum: - - NONE - - CODE - - NAME + - name: sort_by + in: query + required: false + schema: + type: string + enum: + - NONE + - CODE + - NAME responses: "200": description: OK @@ -1170,18 +1170,18 @@ paths: items: $ref: "#/components/schemas/MedicalDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Medicals + - Medicals operationId: updateMedical parameters: - - name: ignore_similar - in: query - required: false - schema: - type: boolean - default: false + - name: ignore_similar + in: query + required: false + schema: + type: boolean + default: false requestBody: content: application/json: @@ -1196,18 +1196,18 @@ paths: schema: $ref: "#/components/schemas/MedicalDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Medicals + - Medicals operationId: newMedical parameters: - - name: ignore_similar - in: query - required: false - schema: - type: boolean - default: false + - name: ignore_similar + in: query + required: false + schema: + type: boolean + default: false requestBody: content: application/json: @@ -1222,11 +1222,11 @@ paths: schema: $ref: "#/components/schemas/MedicalDTO" security: - - bearerAuth: [] + - bearerAuth: [] /malnutritions: put: tags: - - Malnutritions + - Malnutritions operationId: updateMalnutrition requestBody: content: @@ -1242,10 +1242,10 @@ paths: schema: $ref: "#/components/schemas/MalnutritionDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Malnutritions + - Malnutritions operationId: newMalnutrition requestBody: content: @@ -1261,18 +1261,18 @@ paths: schema: $ref: "#/components/schemas/MalnutritionDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Malnutritions + - Malnutritions operationId: deleteMalnutrition parameters: - - name: code - in: query - required: true - schema: - type: integer - format: int32 + - name: code + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -1281,19 +1281,19 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/{code}: get: tags: - - Laboratories + - Laboratories operationId: getExamById parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -1302,18 +1302,18 @@ paths: schema: $ref: "#/components/schemas/LaboratoryDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Laboratories + - Laboratories operationId: updateLaboratory parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 requestBody: content: application/json: @@ -1328,18 +1328,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Laboratories + - Laboratories operationId: deleteExam parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -1348,24 +1348,24 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/examRequest/{code}: put: tags: - - Laboratories + - Laboratories operationId: updateExamRequest parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 - - name: status - in: query - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: integer + format: int32 + - name: status + in: query + required: true + schema: + type: string responses: "200": description: OK @@ -1374,18 +1374,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Laboratories + - Laboratories operationId: deleteExamRequest parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -1394,18 +1394,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /hospitals/{code}: put: tags: - - Hospitals + - Hospitals operationId: updateHospital parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string requestBody: content: application/json: @@ -1420,18 +1420,18 @@ paths: schema: $ref: "#/components/schemas/HospitalDTO" security: - - bearerAuth: [] + - bearerAuth: [] /examtypes/{code}: put: tags: - - Exam Types + - Exam Types operationId: updateExamType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string requestBody: content: application/json: @@ -1446,17 +1446,17 @@ paths: schema: $ref: "#/components/schemas/ExamTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Exam Types + - Exam Types operationId: deleteExamType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -1465,18 +1465,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /exams/{code}: put: tags: - - Exams + - Exams operationId: updateExam parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string requestBody: content: application/json: @@ -1491,17 +1491,17 @@ paths: schema: $ref: "#/components/schemas/ExamDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Exams + - Exams operationId: deleteExam_1 parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -1510,19 +1510,19 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /examinations/{id}: get: tags: - - Examinations + - Examinations operationId: getByID parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -1531,18 +1531,18 @@ paths: schema: $ref: "#/components/schemas/PatientExaminationDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Examinations + - Examinations operationId: updateExamination parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 requestBody: content: application/json: @@ -1557,11 +1557,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /diseasetypes: get: tags: - - Disease Types + - Disease Types operationId: getAllDiseaseTypes responses: "200": @@ -1573,10 +1573,10 @@ paths: items: $ref: "#/components/schemas/DiseaseTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Disease Types + - Disease Types operationId: updateDiseaseType requestBody: content: @@ -1592,10 +1592,10 @@ paths: schema: $ref: "#/components/schemas/DiseaseTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Disease Types + - Disease Types operationId: newDiseaseType requestBody: content: @@ -1611,11 +1611,11 @@ paths: schema: $ref: "#/components/schemas/DiseaseTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases: put: tags: - - Diseases + - Diseases operationId: updateDisease requestBody: content: @@ -1631,10 +1631,10 @@ paths: schema: $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Diseases + - Diseases operationId: newDisease requestBody: content: @@ -1650,11 +1650,11 @@ paths: schema: $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /dischargetypes: get: tags: - - DischargeType + - DischargeType operationId: getDischargeTypes responses: "200": @@ -1666,10 +1666,10 @@ paths: items: $ref: "#/components/schemas/DischargeTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - DischargeType + - DischargeType operationId: updateDischargeTypet requestBody: content: @@ -1685,10 +1685,10 @@ paths: schema: $ref: "#/components/schemas/DischargeTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - DischargeType + - DischargeType operationId: newDischargeType requestBody: content: @@ -1704,11 +1704,11 @@ paths: schema: $ref: "#/components/schemas/DischargeTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /deliverytypes: get: tags: - - Delivery Type + - Delivery Type operationId: getDeliveryTypes responses: "200": @@ -1720,10 +1720,10 @@ paths: items: $ref: "#/components/schemas/DeliveryTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Delivery Type + - Delivery Type operationId: updateDeliveryTypes requestBody: content: @@ -1739,10 +1739,10 @@ paths: schema: $ref: "#/components/schemas/DeliveryTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Delivery Type + - Delivery Type operationId: newDeliveryType requestBody: content: @@ -1758,11 +1758,11 @@ paths: schema: $ref: "#/components/schemas/DeliveryTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /deliveryresulttypes: get: tags: - - Delivery Result Type + - Delivery Result Type operationId: getDeliveryResultTypes responses: "200": @@ -1774,10 +1774,10 @@ paths: items: $ref: "#/components/schemas/DeliveryResultTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Delivery Result Type + - Delivery Result Type operationId: updateDeliveryResultTypes requestBody: content: @@ -1793,10 +1793,10 @@ paths: schema: $ref: "#/components/schemas/DeliveryResultTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Delivery Result Type + - Delivery Result Type operationId: newDeliveryResultType requestBody: content: @@ -1812,19 +1812,19 @@ paths: schema: $ref: "#/components/schemas/DeliveryResultTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /bills/{id}: get: tags: - - Bills + - Bills operationId: getBill parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -1833,18 +1833,18 @@ paths: schema: $ref: "#/components/schemas/BillDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Bills + - Bills operationId: updateBill parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 requestBody: content: application/json: @@ -1859,18 +1859,18 @@ paths: schema: $ref: "#/components/schemas/FullBillDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Bills + - Bills operationId: deleteBill parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -1879,11 +1879,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /agetypes: get: tags: - - AgeTypes + - AgeTypes operationId: getAllAgeTypes responses: "200": @@ -1895,10 +1895,10 @@ paths: items: $ref: "#/components/schemas/AgeTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - AgeTypes + - AgeTypes operationId: updateAgeType requestBody: content: @@ -1914,11 +1914,11 @@ paths: schema: $ref: "#/components/schemas/AgeTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /admissiontypes: get: tags: - - AdmissionTypes + - AdmissionTypes operationId: getAdmissionTypes responses: "200": @@ -1930,10 +1930,10 @@ paths: items: $ref: "#/components/schemas/AdmissionTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - AdmissionTypes + - AdmissionTypes operationId: updateAdmissionTypes requestBody: content: @@ -1949,10 +1949,10 @@ paths: schema: $ref: "#/components/schemas/AdmissionTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - AdmissionTypes + - AdmissionTypes operationId: newAdmissionType requestBody: content: @@ -1968,40 +1968,40 @@ paths: schema: $ref: "#/components/schemas/AdmissionTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /admissions: get: tags: - - Admissions + - Admissions operationId: getAdmissions parameters: - - name: admissionrange - in: query - required: true - schema: - type: array - items: - type: string - - name: page - in: query - required: false - schema: - type: integer - format: int32 - default: 0 - - name: size - in: query - required: false - schema: - type: integer - format: int32 - default: 80 - - name: paged - in: query - required: false - schema: - type: boolean - default: false + - name: admissionrange + in: query + required: true + schema: + type: array + items: + type: string + - name: page + in: query + required: false + schema: + type: integer + format: int32 + default: 0 + - name: size + in: query + required: false + schema: + type: integer + format: int32 + default: 80 + - name: paged + in: query + required: false + schema: + type: boolean + default: false responses: "400": description: Bad Request @@ -2012,10 +2012,10 @@ paths: schema: $ref: "#/components/schemas/PageAdmissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Admissions + - Admissions operationId: updateAdmissions requestBody: content: @@ -2033,10 +2033,10 @@ paths: schema: $ref: "#/components/schemas/AdmissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Admissions + - Admissions operationId: newAdmissions requestBody: content: @@ -2054,11 +2054,11 @@ paths: schema: $ref: "#/components/schemas/AdmissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /visits: post: tags: - - Visit + - Visit operationId: newVisit requestBody: content: @@ -2074,11 +2074,11 @@ paths: schema: $ref: "#/components/schemas/VisitDTO" security: - - bearerAuth: [] + - bearerAuth: [] /visits/insertList: post: tags: - - Visit + - Visit operationId: newVisits requestBody: content: @@ -2096,11 +2096,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /usersettings: get: tags: - - User Settings + - User Settings operationId: getUserSettings responses: "200": @@ -2112,10 +2112,10 @@ paths: items: $ref: "#/components/schemas/UserSettingDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - User Settings + - User Settings operationId: newUserSettings requestBody: content: @@ -2131,18 +2131,18 @@ paths: schema: $ref: "#/components/schemas/UserSettingDTO" security: - - bearerAuth: [] + - bearerAuth: [] /users: get: tags: - - Users + - Users operationId: getUser parameters: - - name: group_id - in: query - required: false - schema: - type: string + - name: group_id + in: query + required: false + schema: + type: string responses: "200": description: OK @@ -2153,10 +2153,10 @@ paths: items: $ref: "#/components/schemas/UserDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Users + - Users operationId: newUser requestBody: content: @@ -2172,11 +2172,11 @@ paths: schema: $ref: "#/components/schemas/UserDTO" security: - - bearerAuth: [] + - bearerAuth: [] /usergroups: get: tags: - - User Groups + - User Groups operationId: getUserGroups responses: "200": @@ -2188,10 +2188,10 @@ paths: items: $ref: "#/components/schemas/UserGroupDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - User Groups + - User Groups operationId: newUserGroup requestBody: content: @@ -2207,24 +2207,24 @@ paths: schema: $ref: "#/components/schemas/UserGroupDTO" security: - - bearerAuth: [] + - bearerAuth: [] /usergroups/{group_code}/permissions/{id}: post: tags: - - User Groups + - User Groups operationId: assignPermission parameters: - - name: group_code - in: path - required: true - schema: - type: string - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: group_code + in: path + required: true + schema: + type: string + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "201": description: Created @@ -2234,32 +2234,32 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - User Groups + - User Groups operationId: revokePermission parameters: - - name: group_code - in: path - required: true - schema: - type: string - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: group_code + in: path + required: true + schema: + type: string + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "204": description: No Content security: - - bearerAuth: [] + - bearerAuth: [] /therapies: post: tags: - - Therapies + - Therapies operationId: newTherapy requestBody: content: @@ -2275,11 +2275,11 @@ paths: schema: $ref: "#/components/schemas/TherapyRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /therapies/replace: post: tags: - - Therapies + - Therapies operationId: replaceTherapies requestBody: content: @@ -2297,11 +2297,11 @@ paths: schema: $ref: "#/components/schemas/TherapyRow" security: - - bearerAuth: [] + - bearerAuth: [] /therapies/meds-out-of-stock: post: tags: - - Therapies + - Therapies operationId: getMedicalsOutOfStock requestBody: content: @@ -2321,11 +2321,11 @@ paths: items: $ref: "#/components/schemas/MedicalDTO" security: - - bearerAuth: [] + - bearerAuth: [] /therapies/from-rows: post: tags: - - Therapies + - Therapies operationId: getTherapies requestBody: content: @@ -2345,11 +2345,11 @@ paths: items: $ref: "#/components/schemas/TherapyDTO" security: - - bearerAuth: [] + - bearerAuth: [] /therapies/from-row: post: tags: - - Therapies + - Therapies operationId: getTherapy requestBody: content: @@ -2365,18 +2365,18 @@ paths: schema: $ref: "#/components/schemas/TherapyDTO" security: - - bearerAuth: [] + - bearerAuth: [] /stockmovements/discharge: post: tags: - - Stock Movements + - Stock Movements operationId: newMultipleDischargingMovements parameters: - - name: ref - in: query - required: true - schema: - type: string + - name: ref + in: query + required: true + schema: + type: string requestBody: content: application/json: @@ -2393,18 +2393,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /stockmovements/charge: post: tags: - - Stock Movements + - Stock Movements operationId: newMultipleChargingMovements parameters: - - name: ref - in: query - required: true - schema: - type: string + - name: ref + in: query + required: true + schema: + type: string requestBody: content: application/json: @@ -2421,23 +2421,23 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /sms: get: tags: - - SMS + - SMS operationId: getAll parameters: - - name: dateFrom - in: query - required: true - schema: - type: string - - name: dateTo - in: query - required: true - schema: - type: string + - name: dateFrom + in: query + required: true + schema: + type: string + - name: dateTo + in: query + required: true + schema: + type: string responses: "200": description: OK @@ -2448,18 +2448,18 @@ paths: items: $ref: "#/components/schemas/SmsDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - SMS + - SMS operationId: saveSms parameters: - - name: split - in: query - required: false - schema: - type: boolean - default: false + - name: split + in: query + required: false + schema: + type: boolean + default: false requestBody: content: application/json: @@ -2474,11 +2474,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /sms/delete: post: tags: - - SMS + - SMS operationId: deleteSms requestBody: content: @@ -2496,11 +2496,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /pricesothers: get: tags: - - Others Price + - Others Price operationId: getPricesOthers responses: "200": @@ -2512,10 +2512,10 @@ paths: items: $ref: "#/components/schemas/PricesOthersDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Others Price + - Others Price operationId: newPricesOthers requestBody: content: @@ -2531,11 +2531,11 @@ paths: schema: $ref: "#/components/schemas/PricesOthersDTO" security: - - bearerAuth: [] + - bearerAuth: [] /pricelists: get: tags: - - Price Lists + - Price Lists operationId: getPriceLists responses: "200": @@ -2547,10 +2547,10 @@ paths: items: $ref: "#/components/schemas/PriceListDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Price Lists + - Price Lists operationId: newPriceList requestBody: content: @@ -2566,11 +2566,11 @@ paths: schema: $ref: "#/components/schemas/PriceListDTO" security: - - bearerAuth: [] + - bearerAuth: [] /pregnanttreatmenttypes: get: tags: - - Pregnant Treatment Types + - Pregnant Treatment Types operationId: getPregnantTreatmentTypes responses: "200": @@ -2582,10 +2582,10 @@ paths: items: $ref: "#/components/schemas/PregnantTreatmentTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Pregnant Treatment Types + - Pregnant Treatment Types operationId: newPregnantTreatmentType requestBody: content: @@ -2601,11 +2601,11 @@ paths: schema: $ref: "#/components/schemas/PregnantTreatmentTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /patientvaccines: post: tags: - - Patient Vaccines + - Patient Vaccines operationId: newPatientVaccine requestBody: content: @@ -2621,27 +2621,27 @@ paths: schema: $ref: "#/components/schemas/PatientVaccineDTO" security: - - bearerAuth: [] + - bearerAuth: [] /patients: get: tags: - - Patients + - Patients operationId: getPatients parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - default: 0 - - name: size - in: query - required: false - schema: - type: integer - format: int32 - default: 80 + - name: page + in: query + required: false + schema: + type: integer + format: int32 + default: 0 + - name: size + in: query + required: false + schema: + type: integer + format: int32 + default: 80 responses: "200": description: OK @@ -2650,10 +2650,10 @@ paths: schema: $ref: "#/components/schemas/PagePatientDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Patients + - Patients operationId: newPatient requestBody: content: @@ -2669,11 +2669,11 @@ paths: schema: $ref: "#/components/schemas/PatientDTO" security: - - bearerAuth: [] + - bearerAuth: [] /operationtypes: get: tags: - - Operations Types + - Operations Types operationId: getOperationTypes responses: "200": @@ -2685,10 +2685,10 @@ paths: items: $ref: "#/components/schemas/OperationTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Operations Types + - Operations Types operationId: newOperationType requestBody: content: @@ -2704,11 +2704,11 @@ paths: schema: $ref: "#/components/schemas/OperationTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /operations: get: tags: - - Operations + - Operations operationId: getOperations responses: "200": @@ -2720,10 +2720,10 @@ paths: items: $ref: "#/components/schemas/OperationDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Operations + - Operations operationId: newOperation requestBody: content: @@ -2739,11 +2739,11 @@ paths: schema: $ref: "#/components/schemas/OperationDTO" security: - - bearerAuth: [] + - bearerAuth: [] /operations/rows/search/opd: post: tags: - - Operations + - Operations operationId: getOperationRowsByOpd requestBody: content: @@ -2761,11 +2761,11 @@ paths: items: $ref: "#/components/schemas/OperationRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /opds: post: tags: - - Opds + - Opds operationId: newOpd requestBody: content: @@ -2781,11 +2781,11 @@ paths: schema: $ref: "#/components/schemas/OpdDTO" security: - - bearerAuth: [] + - bearerAuth: [] /opds/rows: post: tags: - - Opds + - Opds operationId: newOpdWithOperationRow requestBody: content: @@ -2801,11 +2801,11 @@ paths: schema: $ref: "#/components/schemas/OpdWithOperationRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockward/movements: post: tags: - - Medical Stock Ward + - Medical Stock Ward operationId: newMovementWard requestBody: content: @@ -2821,18 +2821,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/discharge: post: tags: - - Stock Movements + - Stock Movements operationId: newMultipleDischargingMovements_1 parameters: - - name: ref - in: query - required: true - schema: - type: string + - name: ref + in: query + required: true + schema: + type: string requestBody: content: application/json: @@ -2849,18 +2849,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/charge: post: tags: - - Stock Movements + - Stock Movements operationId: newMultipleChargingMovements_1 parameters: - - name: ref - in: query - required: true - schema: - type: string + - name: ref + in: query + required: true + schema: + type: string requestBody: content: application/json: @@ -2877,30 +2877,30 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /laboratories: get: tags: - - Laboratories + - Laboratories operationId: getLaboratory parameters: - - name: oneWeek - in: query - required: true - schema: - type: boolean - - name: page - in: query - required: true - schema: - type: integer - format: int32 - - name: size - in: query - required: true - schema: - type: integer - format: int32 + - name: oneWeek + in: query + required: true + schema: + type: boolean + - name: page + in: query + required: true + schema: + type: integer + format: int32 + - name: size + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -2909,10 +2909,10 @@ paths: schema: $ref: "#/components/schemas/PageLabWithRowsDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Laboratories + - Laboratories operationId: newLaboratory requestBody: content: @@ -2928,11 +2928,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/insertList: post: tags: - - Laboratories + - Laboratories operationId: newLaboratory2 requestBody: content: @@ -2950,11 +2950,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/examRequest: get: tags: - - Laboratories + - Laboratories operationId: getLaboratoryExamRequest responses: "200": @@ -2966,10 +2966,10 @@ paths: items: $ref: "#/components/schemas/LaboratoryDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Laboratories + - Laboratories operationId: newExamRequest requestBody: content: @@ -2985,11 +2985,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /examtypes: get: tags: - - Exam Types + - Exam Types operationId: getExamTypes responses: "200": @@ -3001,10 +3001,10 @@ paths: items: $ref: "#/components/schemas/ExamTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Exam Types + - Exam Types operationId: newExamType requestBody: content: @@ -3020,11 +3020,11 @@ paths: schema: $ref: "#/components/schemas/ExamTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /exams: get: tags: - - Exams + - Exams operationId: getExams responses: "200": @@ -3036,10 +3036,10 @@ paths: items: $ref: "#/components/schemas/ExamDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Exams + - Exams operationId: newExam requestBody: content: @@ -3055,11 +3055,11 @@ paths: schema: $ref: "#/components/schemas/ExamDTO" security: - - bearerAuth: [] + - bearerAuth: [] /examrows: get: tags: - - Exam Rows + - Exam Rows operationId: getExamRows responses: "200": @@ -3071,10 +3071,10 @@ paths: items: $ref: "#/components/schemas/ExamRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Exam Rows + - Exam Rows operationId: newExamRow requestBody: content: @@ -3090,11 +3090,11 @@ paths: schema: $ref: "#/components/schemas/ExamRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /examinations: post: tags: - - Examinations + - Examinations operationId: newPatientExamination requestBody: content: @@ -3110,29 +3110,29 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /bills: get: tags: - - Bills + - Bills operationId: searchBills_1 parameters: - - name: datefrom - in: query - required: true - schema: - type: string - - name: dateto - in: query - required: true - schema: - type: string - - name: patient_code - in: query - required: false - schema: - type: integer - format: int32 + - name: datefrom + in: query + required: true + schema: + type: string + - name: dateto + in: query + required: true + schema: + type: string + - name: patient_code + in: query + required: false + schema: + type: integer + format: int32 responses: "200": description: OK @@ -3143,10 +3143,10 @@ paths: items: $ref: "#/components/schemas/BillDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Bills + - Bills operationId: newBill requestBody: content: @@ -3162,11 +3162,11 @@ paths: schema: $ref: "#/components/schemas/FullBillDTO" security: - - bearerAuth: [] + - bearerAuth: [] /bills/search/by/payments: post: tags: - - Bills + - Bills operationId: searchBillsByPayments requestBody: content: @@ -3186,23 +3186,23 @@ paths: items: $ref: "#/components/schemas/BillDTO" security: - - bearerAuth: [] + - bearerAuth: [] /bills/search/by/item: post: tags: - - Bills + - Bills operationId: searchBills parameters: - - name: datefrom - in: query - required: true - schema: - type: string - - name: dateto - in: query - required: true - schema: - type: string + - name: datefrom + in: query + required: true + schema: + type: string + - name: dateto + in: query + required: true + schema: + type: string requestBody: content: application/json: @@ -3219,11 +3219,11 @@ paths: items: $ref: "#/components/schemas/BillDTO" security: - - bearerAuth: [] + - bearerAuth: [] /auth/refresh-token: post: tags: - - Login + - Login operationId: refreshToken requestBody: content: @@ -3235,15 +3235,15 @@ paths: "200": description: OK content: - "*/*": + '*/*': schema: $ref: "#/components/schemas/LoginResponse" security: - - bearerAuth: [] + - bearerAuth: [] /auth/logout: post: tags: - - Login + - Login description: Logout the current user. operationId: logout responses: @@ -3252,7 +3252,7 @@ paths: /auth/login: post: tags: - - Login + - Login operationId: authenticateUser requestBody: content: @@ -3268,19 +3268,19 @@ paths: schema: $ref: "#/components/schemas/LoginResponse" security: - - bearerAuth: [] + - bearerAuth: [] /admissions/discharge: post: tags: - - Admissions + - Admissions operationId: dischargePatient parameters: - - name: patientCode - in: query - required: true - schema: - type: integer - format: int32 + - name: patientCode + in: query + required: true + schema: + type: integer + format: int32 requestBody: content: application/json: @@ -3297,11 +3297,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /wardsNoMaternity: get: tags: - - Wards + - Wards operationId: getWardsNoMaternity responses: "200": @@ -3313,18 +3313,18 @@ paths: items: $ref: "#/components/schemas/WardDTO" security: - - bearerAuth: [] + - bearerAuth: [] /wards/occupation/{code}: get: tags: - - Wards + - Wards operationId: getCurrentOccupation parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -3334,18 +3334,18 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] /wards/check/{code}: get: tags: - - Wards + - Wards operationId: checkWardCode parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -3354,18 +3354,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /wards/check/maternity/{createIfNotExist}: get: tags: - - Wards + - Wards operationId: checkWardMaternityCode parameters: - - name: createIfNotExist - in: path - required: true - schema: - type: boolean + - name: createIfNotExist + in: path + required: true + schema: + type: boolean responses: "200": description: OK @@ -3374,19 +3374,19 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /visits/patient/{patID}: get: tags: - - Visit + - Visit operationId: getVisit parameters: - - name: patID - in: path - required: true - schema: - type: integer - format: int32 + - name: patID + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -3397,18 +3397,18 @@ paths: items: $ref: "#/components/schemas/VisitDTO" security: - - bearerAuth: [] + - bearerAuth: [] /vaccinetypes/check/{code}: get: tags: - - Vaccine Type + - Vaccine Type operationId: checkVaccineTypeCode parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -3417,18 +3417,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /vaccines/type-code/{vaccineTypeCode}: get: tags: - - Vaccines + - Vaccines operationId: getVaccinesByVaccineTypeCode parameters: - - name: vaccineTypeCode - in: path - required: true - schema: - type: string + - name: vaccineTypeCode + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -3439,18 +3439,18 @@ paths: items: $ref: "#/components/schemas/VaccineDTO" security: - - bearerAuth: [] + - bearerAuth: [] /vaccines/check/{code}: get: tags: - - Vaccines + - Vaccines operationId: checkVaccineCode parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -3459,18 +3459,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /usersettings/{configName}: get: tags: - - User Settings + - User Settings operationId: getUserSettingByUser parameters: - - name: configName - in: path - required: true - schema: - type: string + - name: configName + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -3479,18 +3479,18 @@ paths: schema: $ref: "#/components/schemas/UserSettingDTO" security: - - bearerAuth: [] + - bearerAuth: [] /users/{username}/permissions: get: tags: - - Users + - Users operationId: retrievePermissionsByUsername parameters: - - name: username - in: path - required: true - schema: - type: string + - name: username + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -3501,19 +3501,19 @@ paths: items: $ref: "#/components/schemas/PermissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /therapies/{code_patient}: get: tags: - - Therapies + - Therapies operationId: getTherapyRows parameters: - - name: code_patient - in: path - required: true - schema: - type: integer - format: int32 + - name: code_patient + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -3524,18 +3524,18 @@ paths: items: $ref: "#/components/schemas/TherapyRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Therapies + - Therapies operationId: deleteAllTherapies parameters: - - name: code_patient - in: path - required: true - schema: - type: integer - format: int32 + - name: code_patient + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -3544,19 +3544,19 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /suppliers/{id}: get: tags: - - Suppliers + - Suppliers operationId: getSuppliers_1 parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -3565,27 +3565,27 @@ paths: schema: $ref: "#/components/schemas/SupplierDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Suppliers + - Suppliers operationId: deleteSupplier parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "204": description: No Content security: - - bearerAuth: [] + - bearerAuth: [] /stockmovements: get: tags: - - Stock Movements + - Stock Movements operationId: getMovements responses: "200": @@ -3597,18 +3597,18 @@ paths: items: $ref: "#/components/schemas/MovementDTO" security: - - bearerAuth: [] + - bearerAuth: [] /stockmovements/{ref}: get: tags: - - Stock Movements + - Stock Movements operationId: getMovements_1 parameters: - - name: ref - in: path - required: true - schema: - type: string + - name: ref + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -3619,19 +3619,19 @@ paths: items: $ref: "#/components/schemas/MovementDTO" security: - - bearerAuth: [] + - bearerAuth: [] /stockmovements/lot/{med_code}: get: tags: - - Stock Movements + - Stock Movements operationId: getLotByMedical parameters: - - name: med_code - in: path - required: true - schema: - type: integer - format: int32 + - name: med_code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -3642,70 +3642,70 @@ paths: items: $ref: "#/components/schemas/LotDTO" security: - - bearerAuth: [] + - bearerAuth: [] /stockmovements/filter/v2: get: tags: - - Stock Movements + - Stock Movements operationId: getMovements_2 parameters: - - name: med_code - in: query - required: false - schema: - type: integer - format: int32 - - name: med_type - in: query - required: false - schema: - type: string - - name: ward_id - in: query - required: false - schema: - type: string - - name: mov_type - in: query - required: false - schema: - type: string - - name: mov_from - in: query - required: false - schema: - type: string - format: date-time - - name: mov_to - in: query - required: false - schema: - type: string - format: date-time - - name: lot_prep_from - in: query - required: false - schema: - type: string - format: date-time - - name: lot_prep_to - in: query - required: false - schema: - type: string - format: date-time - - name: lot_due_from - in: query - required: false - schema: - type: string - format: date-time - - name: lot_due_to - in: query - required: false - schema: - type: string - format: date-time + - name: med_code + in: query + required: false + schema: + type: integer + format: int32 + - name: med_type + in: query + required: false + schema: + type: string + - name: ward_id + in: query + required: false + schema: + type: string + - name: mov_type + in: query + required: false + schema: + type: string + - name: mov_from + in: query + required: false + schema: + type: string + format: date-time + - name: mov_to + in: query + required: false + schema: + type: string + format: date-time + - name: lot_prep_from + in: query + required: false + schema: + type: string + format: date-time + - name: lot_prep_to + in: query + required: false + schema: + type: string + format: date-time + - name: lot_due_from + in: query + required: false + schema: + type: string + format: date-time + - name: lot_due_to + in: query + required: false + schema: + type: string + format: date-time responses: "200": description: OK @@ -3716,30 +3716,30 @@ paths: items: $ref: "#/components/schemas/MovementDTO" security: - - bearerAuth: [] + - bearerAuth: [] /stockmovements/filter/v1: get: tags: - - Stock Movements + - Stock Movements operationId: getMovements_3 parameters: - - name: ward_id - in: query - required: true - schema: - type: string - - name: from - in: query - required: true - schema: - type: string - format: date-time - - name: to - in: query - required: true - schema: - type: string - format: date-time + - name: ward_id + in: query + required: true + schema: + type: string + - name: from + in: query + required: true + schema: + type: string + format: date-time + - name: to + in: query + required: true + schema: + type: string + format: date-time responses: "200": description: OK @@ -3750,25 +3750,25 @@ paths: items: $ref: "#/components/schemas/MovementDTO" security: - - bearerAuth: [] + - bearerAuth: [] /stockmovements/critical/check: get: tags: - - Stock Movements + - Stock Movements operationId: alertCriticalQuantity parameters: - - name: med_code - in: query - required: true - schema: - type: integer - format: int32 - - name: qty - in: query - required: true - schema: - type: integer - format: int32 + - name: med_code + in: query + required: true + schema: + type: integer + format: int32 + - name: qty + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -3777,11 +3777,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /reports/exams-list: get: tags: - - Reports + - Reports operationId: printExamsListPdf responses: "200": @@ -3794,11 +3794,11 @@ paths: type: string format: byte security: - - bearerAuth: [] + - bearerAuth: [] /reports/diseases-list: get: tags: - - Reports + - Reports operationId: printDiseasesListPdf responses: "200": @@ -3811,11 +3811,11 @@ paths: type: string format: byte security: - - bearerAuth: [] + - bearerAuth: [] /pricelists/prices: get: tags: - - Price Lists + - Price Lists operationId: getPrices responses: "200": @@ -3827,19 +3827,19 @@ paths: items: $ref: "#/components/schemas/PriceDTO" security: - - bearerAuth: [] + - bearerAuth: [] /pricelists/duplicate/{id}: get: tags: - - Price Lists + - Price Lists operationId: copyList parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int64 + - name: id + in: path + required: true + schema: + type: integer + format: int64 responses: "200": description: OK @@ -3848,31 +3848,31 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /pricelists/duplicate/byfactor/{id}: get: tags: - - Price Lists + - Price Lists operationId: copyByFactorAndStep parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int64 - - name: factor - in: query - required: true - schema: - type: number - format: double - - name: step - in: query - required: true - schema: - type: number - format: double + - name: id + in: path + required: true + schema: + type: integer + format: int64 + - name: factor + in: query + required: true + schema: + type: number + format: double + - name: step + in: query + required: true + schema: + type: number + format: double responses: "200": description: OK @@ -3881,11 +3881,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /permissions: get: tags: - - Permissions + - Permissions operationId: retrieveAllPermissions responses: "200": @@ -3897,19 +3897,19 @@ paths: items: $ref: "#/components/schemas/PermissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /permissions/{id}: get: tags: - - Permissions + - Permissions operationId: retrievePermissionById parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -3918,18 +3918,18 @@ paths: schema: $ref: "#/components/schemas/PermissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /permissions/userGroupCode/{userGroupCode}: get: tags: - - Permissions + - Permissions operationId: retrievePermissionsByUserGroupCode parameters: - - name: userGroupCode - in: path - required: true - schema: - type: string + - name: userGroupCode + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -3940,18 +3940,18 @@ paths: items: $ref: "#/components/schemas/PermissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /permissions/name/{name}: get: tags: - - Permissions + - Permissions operationId: retrievePermissionByName parameters: - - name: name - in: path - required: true - schema: - type: string + - name: name + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -3960,18 +3960,18 @@ paths: schema: $ref: "#/components/schemas/PermissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /patientvaccines/week: get: tags: - - Patient Vaccines + - Patient Vaccines operationId: getPatientVaccines parameters: - - name: oneWeek - in: query - required: false - schema: - type: boolean + - name: oneWeek + in: query + required: false + schema: + type: boolean responses: "200": description: OK @@ -3982,19 +3982,19 @@ paths: items: $ref: "#/components/schemas/PatientVaccineDTO" security: - - bearerAuth: [] + - bearerAuth: [] /patientvaccines/progyear/{year}: get: tags: - - Patient Vaccines + - Patient Vaccines operationId: getProgYear parameters: - - name: year - in: path - required: true - schema: - type: integer - format: int32 + - name: year + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4004,52 +4004,52 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] /patientvaccines/filter: get: tags: - - Patient Vaccines + - Patient Vaccines operationId: getPatientVaccinesByDatesRanges parameters: - - name: vaccineTypeCode - in: query - required: true - schema: - type: string - - name: vaccineCode - in: query - required: true - schema: - type: string - - name: dateFrom - in: query - required: true - schema: - type: string - format: date - - name: dateTo - in: query - required: true - schema: - type: string - format: date - - name: sex - in: query - required: true - schema: - type: string - - name: ageFrom - in: query - required: true - schema: - type: integer - format: int32 - - name: ageTo - in: query - required: true - schema: - type: integer - format: int32 + - name: vaccineTypeCode + in: query + required: true + schema: + type: string + - name: vaccineCode + in: query + required: true + schema: + type: string + - name: dateFrom + in: query + required: true + schema: + type: string + format: date + - name: dateTo + in: query + required: true + schema: + type: string + format: date + - name: sex + in: query + required: true + schema: + type: string + - name: ageFrom + in: query + required: true + schema: + type: integer + format: int32 + - name: ageTo + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4060,37 +4060,37 @@ paths: items: $ref: "#/components/schemas/PatientVaccineDTO" security: - - bearerAuth: [] + - bearerAuth: [] /patients/search: get: tags: - - Patients + - Patients operationId: searchPatient parameters: - - name: firstName - in: query - required: false - schema: - type: string - default: "" - - name: secondName - in: query - required: false - schema: - type: string - default: "" - - name: birthDate - in: query - required: false - schema: - type: string - format: date-time - - name: address - in: query - required: false - schema: - type: string - default: "" + - name: firstName + in: query + required: false + schema: + type: string + default: "" + - name: secondName + in: query + required: false + schema: + type: string + default: "" + - name: birthDate + in: query + required: false + schema: + type: string + format: date-time + - name: address + in: query + required: false + schema: + type: string + default: "" responses: "200": description: OK @@ -4101,11 +4101,11 @@ paths: items: $ref: "#/components/schemas/PatientDTO" security: - - bearerAuth: [] + - bearerAuth: [] /patients/nextcode: get: tags: - - Patients + - Patients operationId: getPatientNextCode responses: "200": @@ -4116,25 +4116,25 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] /patients/merge: get: tags: - - Patients + - Patients operationId: mergePatients parameters: - - name: mergedcode - in: query - required: true - schema: - type: integer - format: int32 - - name: code2 - in: query - required: true - schema: - type: integer - format: int32 + - name: mergedcode + in: query + required: true + schema: + type: integer + format: int32 + - name: code2 + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4143,11 +4143,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /patients/cities: get: tags: - - Patients + - Patients operationId: getPatientCities responses: "200": @@ -4159,19 +4159,19 @@ paths: items: type: string security: - - bearerAuth: [] + - bearerAuth: [] /patients/all: get: tags: - - Patients + - Patients operationId: getPatientAll parameters: - - name: code - in: query - required: true - schema: - type: integer - format: int32 + - name: code + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4180,18 +4180,18 @@ paths: schema: $ref: "#/components/schemas/PatientDTO" security: - - bearerAuth: [] + - bearerAuth: [] /operations/search/type: get: tags: - - Operations + - Operations operationId: getOperationByTypeDescription parameters: - - name: typeDescription - in: query - required: true - schema: - type: string + - name: typeDescription + in: query + required: true + schema: + type: string responses: "200": description: OK @@ -4202,19 +4202,19 @@ paths: items: $ref: "#/components/schemas/OperationDTO" security: - - bearerAuth: [] + - bearerAuth: [] /operations/rows/search/patient: get: tags: - - Operations + - Operations operationId: getOperationRowsByPatient parameters: - - name: patientCode - in: query - required: true - schema: - type: integer - format: int32 + - name: patientCode + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4225,19 +4225,19 @@ paths: items: $ref: "#/components/schemas/OperationRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /operations/rows/search/admission: get: tags: - - Operations + - Operations operationId: getOperationRowsByAdmt parameters: - - name: admissionId - in: query - required: true - schema: - type: integer - format: int32 + - name: admissionId + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4248,18 +4248,18 @@ paths: items: $ref: "#/components/schemas/OperationRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /opds/weekly: get: tags: - - Opds + - Opds operationId: getOpdToDayOrWeek parameters: - - name: oneWeek - in: query - required: false - schema: - type: boolean + - name: oneWeek + in: query + required: false + schema: + type: boolean responses: "200": description: OK @@ -4270,91 +4270,91 @@ paths: items: $ref: "#/components/schemas/OpdDTO" security: - - bearerAuth: [] + - bearerAuth: [] /opds/search: get: tags: - - Opds + - Opds operationId: getOpdByDates parameters: - - name: dateFrom - in: query - required: true - schema: - type: string - - name: dateTo - in: query - required: true - schema: - type: string - - name: diseaseTypeCode - in: query - required: false - schema: - type: string - - name: diseaseCode - in: query - required: false - schema: - type: string - - name: ageFrom - in: query - required: false - schema: - type: integer - format: int32 - default: 0 - - name: ageTo - in: query - required: false - schema: - type: integer - format: int32 - default: 200 - - name: sex - in: query - required: false - schema: - type: string - default: A - - name: newPatient - in: query - required: false - schema: - type: string - default: A - - name: patientCode - in: query - required: false - schema: - type: integer - format: int32 - default: 0 - - name: page - in: query - required: false - schema: - type: integer - format: int32 - default: 0 - - name: size - in: query - required: false - schema: - type: integer - format: int32 - default: 80 - - name: paged - in: query - required: false - schema: - type: boolean - default: false - - name: wardCode - in: query - required: false - schema: - type: string + - name: dateFrom + in: query + required: true + schema: + type: string + - name: dateTo + in: query + required: true + schema: + type: string + - name: diseaseTypeCode + in: query + required: false + schema: + type: string + - name: diseaseCode + in: query + required: false + schema: + type: string + - name: ageFrom + in: query + required: false + schema: + type: integer + format: int32 + default: 0 + - name: ageTo + in: query + required: false + schema: + type: integer + format: int32 + default: 200 + - name: sex + in: query + required: false + schema: + type: string + default: A + - name: newPatient + in: query + required: false + schema: + type: string + default: A + - name: patientCode + in: query + required: false + schema: + type: integer + format: int32 + default: 0 + - name: page + in: query + required: false + schema: + type: integer + format: int32 + default: 0 + - name: size + in: query + required: false + schema: + type: integer + format: int32 + default: 80 + - name: paged + in: query + required: false + schema: + type: boolean + default: false + - name: wardCode + in: query + required: false + schema: + type: string responses: "200": description: OK @@ -4363,19 +4363,19 @@ paths: schema: $ref: "#/components/schemas/PageOpdDTO" security: - - bearerAuth: [] + - bearerAuth: [] /opds/patient/{pcode}: get: tags: - - Opds + - Opds operationId: getOpdByPatient parameters: - - name: pcode - in: path - required: true - schema: - type: integer - format: int32 + - name: pcode + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4386,19 +4386,19 @@ paths: items: $ref: "#/components/schemas/OpdWithOperationRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /opds/last/{patientCode}: get: tags: - - Opds + - Opds operationId: getLastOpd parameters: - - name: patientCode - in: path - required: true - schema: - type: integer - format: int32 + - name: patientCode + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4407,25 +4407,25 @@ paths: schema: $ref: "#/components/schemas/OpdDTO" security: - - bearerAuth: [] + - bearerAuth: [] /opds/check/progyear: get: tags: - - Opds + - Opds operationId: isExistOpdNum parameters: - - name: opdNum - in: query - required: true - schema: - type: integer - format: int32 - - name: year - in: query - required: true - schema: - type: integer - format: int32 + - name: opdNum + in: query + required: true + schema: + type: integer + format: int32 + - name: year + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4434,19 +4434,19 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /opds/ProgYear/{year}: get: tags: - - Opds + - Opds operationId: getProgYear_1 parameters: - - name: year - in: path - required: true - schema: - type: integer - format: int32 + - name: year + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4456,18 +4456,18 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] /medstockmovementtypes/{code}: get: tags: - - Medical Stock Movement Type + - Medical Stock Movement Type operationId: getMovementType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -4476,17 +4476,17 @@ paths: schema: $ref: "#/components/schemas/MovementTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Medical Stock Movement Type + - Medical Stock Movement Type operationId: deleteMedicalDsrStockMovementType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -4495,18 +4495,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /medstockmovementtypes/check/{code}: get: tags: - - Medical Stock Movement Type + - Medical Stock Movement Type operationId: isCodeUsed parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -4515,18 +4515,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /medicaltypes/check/{code}: get: tags: - - Medical Types + - Medical Types operationId: isCodeUsed_1 parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -4535,18 +4535,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockward/{ward_code}: get: tags: - - Medical Stock Ward + - Medical Stock Ward operationId: getMedicalsWard parameters: - - name: ward_code - in: path - required: true - schema: - type: string + - name: ward_code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -4557,30 +4557,30 @@ paths: items: $ref: "#/components/schemas/MedicalWardDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockward/movements/{ward_code}: get: tags: - - Medical Stock Ward + - Medical Stock Ward operationId: getMovementWard parameters: - - name: ward_code - in: path - required: true - schema: - type: string - - name: from - in: query - required: true - schema: - type: string - format: date - - name: to - in: query - required: true - schema: - type: string - format: date + - name: ward_code + in: path + required: true + schema: + type: string + - name: from + in: query + required: true + schema: + type: string + format: date + - name: to + in: query + required: true + schema: + type: string + format: date responses: "200": description: OK @@ -4591,30 +4591,30 @@ paths: items: $ref: "#/components/schemas/MovementWardDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockward/movements/to/{target_ward_code}: get: tags: - - Medical Stock Ward + - Medical Stock Ward operationId: getWardMovementsToWard parameters: - - name: target_ward_code - in: path - required: true - schema: - type: string - - name: from - in: query - required: true - schema: - type: string - format: date-time - - name: to - in: query - required: true - schema: - type: string - format: date-time + - name: target_ward_code + in: path + required: true + schema: + type: string + - name: from + in: query + required: true + schema: + type: string + format: date-time + - name: to + in: query + required: true + schema: + type: string + format: date-time responses: "200": description: OK @@ -4625,24 +4625,24 @@ paths: items: $ref: "#/components/schemas/MovementWardDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockward/current/{ward_code}: get: tags: - - Medical Stock Ward + - Medical Stock Ward operationId: getCurrentQuantityInWard parameters: - - name: ward_code - in: path - required: true - schema: - type: string - - name: med_id - in: query - required: true - schema: - type: integer - format: int32 + - name: ward_code + in: path + required: true + schema: + type: string + - name: med_id + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4652,11 +4652,11 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements: get: tags: - - Stock Movements + - Stock Movements operationId: getMovements_4 responses: "200": @@ -4668,18 +4668,18 @@ paths: items: $ref: "#/components/schemas/MovementDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/{ref}: get: tags: - - Stock Movements + - Stock Movements operationId: getMovements_5 parameters: - - name: ref - in: path - required: true - schema: - type: string + - name: ref + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -4690,19 +4690,19 @@ paths: items: $ref: "#/components/schemas/MovementDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/lot/{med_code}: get: tags: - - Stock Movements + - Stock Movements operationId: getLotByMedical_1 parameters: - - name: med_code - in: path - required: true - schema: - type: integer - format: int32 + - name: med_code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4713,70 +4713,70 @@ paths: items: $ref: "#/components/schemas/LotDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/filter/v2: get: tags: - - Stock Movements + - Stock Movements operationId: getMovements_6 parameters: - - name: med_code - in: query - required: false - schema: - type: integer - format: int32 - - name: med_type - in: query - required: false - schema: - type: string - - name: ward_id - in: query - required: false - schema: - type: string - - name: mov_type - in: query - required: false - schema: - type: string - - name: mov_from - in: query - required: false - schema: - type: string - format: date-time - - name: mov_to - in: query - required: false - schema: - type: string - format: date-time - - name: lot_prep_from - in: query - required: false - schema: - type: string - format: date-time - - name: lot_prep_to - in: query - required: false - schema: - type: string - format: date-time - - name: lot_due_from - in: query - required: false - schema: - type: string - format: date-time - - name: lot_due_to - in: query - required: false - schema: - type: string - format: date-time + - name: med_code + in: query + required: false + schema: + type: integer + format: int32 + - name: med_type + in: query + required: false + schema: + type: string + - name: ward_id + in: query + required: false + schema: + type: string + - name: mov_type + in: query + required: false + schema: + type: string + - name: mov_from + in: query + required: false + schema: + type: string + format: date-time + - name: mov_to + in: query + required: false + schema: + type: string + format: date-time + - name: lot_prep_from + in: query + required: false + schema: + type: string + format: date-time + - name: lot_prep_to + in: query + required: false + schema: + type: string + format: date-time + - name: lot_due_from + in: query + required: false + schema: + type: string + format: date-time + - name: lot_due_to + in: query + required: false + schema: + type: string + format: date-time responses: "200": description: OK @@ -4787,30 +4787,30 @@ paths: items: $ref: "#/components/schemas/MovementDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/filter/v1: get: tags: - - Stock Movements + - Stock Movements operationId: getMovements_7 parameters: - - name: ward_id - in: query - required: true - schema: - type: string - - name: from - in: query - required: true - schema: - type: string - format: date-time - - name: to - in: query - required: true - schema: - type: string - format: date-time + - name: ward_id + in: query + required: true + schema: + type: string + - name: from + in: query + required: true + schema: + type: string + format: date-time + - name: to + in: query + required: true + schema: + type: string + format: date-time responses: "200": description: OK @@ -4821,25 +4821,25 @@ paths: items: $ref: "#/components/schemas/MovementDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/critical/check: get: tags: - - Stock Movements + - Stock Movements operationId: alertCriticalQuantity_1 parameters: - - name: med_code - in: query - required: true - schema: - type: integer - format: int32 - - name: qty - in: query - required: true - schema: - type: integer - format: int32 + - name: med_code + in: query + required: true + schema: + type: integer + format: int32 + - name: qty + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4848,19 +4848,19 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /medicals/{code}: get: tags: - - Medicals + - Medicals operationId: getMedical parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4869,18 +4869,18 @@ paths: schema: $ref: "#/components/schemas/MedicalDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Medicals + - Medicals operationId: deleteMedical parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4889,35 +4889,35 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /medicals/filter: get: tags: - - Medicals + - Medicals operationId: filterMedicals parameters: - - name: desc - in: query - required: false - schema: - type: string - - name: type - in: query - required: false - schema: - type: string - - name: critical - in: query - required: false - schema: - type: boolean - default: false - - name: name_sorted - in: query - required: false - schema: - type: boolean - default: false + - name: desc + in: query + required: false + schema: + type: string + - name: type + in: query + required: false + schema: + type: string + - name: critical + in: query + required: false + schema: + type: boolean + default: false + - name: name_sorted + in: query + required: false + schema: + type: boolean + default: false responses: "200": description: OK @@ -4928,18 +4928,18 @@ paths: items: $ref: "#/components/schemas/MedicalDTO" security: - - bearerAuth: [] + - bearerAuth: [] /malnutritions/{id_admission}: get: tags: - - Malnutritions + - Malnutritions operationId: getMalnutrition parameters: - - name: id_admission - in: path - required: true - schema: - type: string + - name: id_admission + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -4950,19 +4950,19 @@ paths: items: $ref: "#/components/schemas/MalnutritionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /malnutritions/last/{id_patient}: get: tags: - - Malnutritions + - Malnutritions operationId: getLastMalnutrition parameters: - - name: id_patient - in: path - required: true - schema: - type: integer - format: int32 + - name: id_patient + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4971,11 +4971,11 @@ paths: schema: $ref: "#/components/schemas/MalnutritionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/materials: get: tags: - - Laboratories + - Laboratories operationId: getMaterials responses: "200": @@ -4987,62 +4987,62 @@ paths: items: type: string security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/exams: get: tags: - - Laboratories + - Laboratories operationId: getLaboratoryForPrint parameters: - - name: examName - in: query - required: false - schema: - type: string - default: "" - - name: dateFrom - in: query - required: true - schema: - type: string - - name: dateTo - in: query - required: true - schema: - type: string - - name: patientCode - in: query - required: false - schema: - type: integer - format: int32 - default: 0 - - name: status - in: query - required: false - schema: - type: string - default: "" - - name: page - in: query - required: false - schema: - type: integer - format: int32 - default: 0 - - name: size - in: query - required: false - schema: - type: integer - format: int32 - default: 80 - - name: paged - in: query - required: false - schema: - type: boolean - default: false + - name: examName + in: query + required: false + schema: + type: string + default: "" + - name: dateFrom + in: query + required: true + schema: + type: string + - name: dateTo + in: query + required: true + schema: + type: string + - name: patientCode + in: query + required: false + schema: + type: integer + format: int32 + default: 0 + - name: status + in: query + required: false + schema: + type: string + default: "" + - name: page + in: query + required: false + schema: + type: integer + format: int32 + default: 0 + - name: size + in: query + required: false + schema: + type: integer + format: int32 + default: 80 + - name: paged + in: query + required: false + schema: + type: boolean + default: false responses: "200": description: OK @@ -5051,19 +5051,19 @@ paths: schema: $ref: "#/components/schemas/PageLabWithRowsDTO" security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/exams/{code}: get: tags: - - Laboratories + - Laboratories operationId: getExamWithRowsById parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5072,19 +5072,19 @@ paths: schema: $ref: "#/components/schemas/LabWithRowsDTO" security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/examRequest/patient/{patId}: get: tags: - - Laboratories + - Laboratories operationId: getLaboratoryExamRequest_1 parameters: - - name: patId - in: path - required: true - schema: - type: integer - format: int32 + - name: patId + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5095,19 +5095,19 @@ paths: items: $ref: "#/components/schemas/LaboratoryDTO" security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/byPatientId/{patId}: get: tags: - - Laboratories + - Laboratories operationId: getLaboratory_1 parameters: - - name: patId - in: path - required: true - schema: - type: integer - format: int32 + - name: patId + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5118,11 +5118,11 @@ paths: items: $ref: "#/components/schemas/LabWithRowsDTO" security: - - bearerAuth: [] + - bearerAuth: [] /hospitals: get: tags: - - Hospitals + - Hospitals operationId: getHospital responses: "200": @@ -5132,11 +5132,11 @@ paths: schema: $ref: "#/components/schemas/HospitalDTO" security: - - bearerAuth: [] + - bearerAuth: [] /hospitals/currencyCode: get: tags: - - Hospitals + - Hospitals operationId: getHospitalCurrencyCode responses: "200": @@ -5146,18 +5146,18 @@ paths: schema: type: string security: - - bearerAuth: [] + - bearerAuth: [] /exams/description/{description}: get: tags: - - Exams + - Exams operationId: getExams_1 parameters: - - name: description - in: path - required: true - schema: - type: string + - name: description + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -5168,19 +5168,19 @@ paths: items: $ref: "#/components/schemas/ExamDTO" security: - - bearerAuth: [] + - bearerAuth: [] /examrows/{code}: get: tags: - - Exam Rows + - Exam Rows operationId: getExamRowsByCode parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5191,18 +5191,18 @@ paths: items: $ref: "#/components/schemas/ExamRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Exam Rows + - Exam Rows operationId: deleteExam_2 parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5211,24 +5211,24 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /examrows/search: get: tags: - - Exam Rows + - Exam Rows operationId: getExamRowsByCodeAndDescription parameters: - - name: code - in: query - required: true - schema: - type: integer - format: int32 - - name: description - in: query - required: true - schema: - type: string + - name: code + in: query + required: true + schema: + type: integer + format: int32 + - name: description + in: query + required: true + schema: + type: string responses: "200": description: OK @@ -5239,18 +5239,18 @@ paths: items: $ref: "#/components/schemas/ExamRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /examrows/byExamCode/{examCode}: get: tags: - - Exam Rows + - Exam Rows operationId: getExamRowsByExamCode parameters: - - name: examCode - in: path - required: true - schema: - type: string + - name: examCode + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -5261,25 +5261,25 @@ paths: items: $ref: "#/components/schemas/ExamRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /examinations/lastNByPatId: get: tags: - - Examinations + - Examinations operationId: getLastNByPatID parameters: - - name: limit - in: query - required: true - schema: - type: integer - format: int32 - - name: patId - in: query - required: true - schema: - type: integer - format: int32 + - name: limit + in: query + required: true + schema: + type: integer + format: int32 + - name: patId + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5288,19 +5288,19 @@ paths: schema: $ref: "#/components/schemas/PagePatientExaminationDTO" security: - - bearerAuth: [] + - bearerAuth: [] /examinations/lastByPatientId/{patId}: get: tags: - - Examinations + - Examinations operationId: getLastByPatientId parameters: - - name: patId - in: path - required: true - schema: - type: integer - format: int32 + - name: patId + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5309,19 +5309,19 @@ paths: schema: $ref: "#/components/schemas/PatientExaminationDTO" security: - - bearerAuth: [] + - bearerAuth: [] /examinations/fromLastPatientExamination/{id}: get: tags: - - Examinations + - Examinations operationId: getFromLastPatientExamination parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5330,19 +5330,19 @@ paths: schema: $ref: "#/components/schemas/PatientExaminationDTO" security: - - bearerAuth: [] + - bearerAuth: [] /examinations/defaultPatientExamination: get: tags: - - Examinations + - Examinations operationId: getDefaultPatientExamination parameters: - - name: patId - in: query - required: true - schema: - type: integer - format: int32 + - name: patId + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5351,19 +5351,19 @@ paths: schema: $ref: "#/components/schemas/PatientExaminationDTO" security: - - bearerAuth: [] + - bearerAuth: [] /examinations/byPatientId/{patId}: get: tags: - - Examinations + - Examinations operationId: getByPatientId parameters: - - name: patId - in: path - required: true - schema: - type: integer - format: int32 + - name: patId + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5374,18 +5374,18 @@ paths: items: $ref: "#/components/schemas/PatientExaminationDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases/{code}: get: tags: - - Diseases + - Diseases operationId: getDiseaseByCode parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -5394,17 +5394,17 @@ paths: schema: $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Diseases + - Diseases operationId: deleteDisease parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -5415,11 +5415,11 @@ paths: additionalProperties: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /diseases/opd: get: tags: - - Diseases + - Diseases operationId: getDiseasesOpd responses: "200": @@ -5431,18 +5431,18 @@ paths: items: $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases/opd/{typecode}: get: tags: - - Diseases + - Diseases operationId: getDiseasesOpdByCode parameters: - - name: typecode - in: path - required: true - schema: - type: string + - name: typecode + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -5453,11 +5453,11 @@ paths: items: $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases/ipd/out: get: tags: - - Diseases + - Diseases operationId: getDiseasesIpdOut responses: "200": @@ -5469,18 +5469,18 @@ paths: items: $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases/ipd/out/{typecode}: get: tags: - - Diseases + - Diseases operationId: getDiseasesIpdOutByCode parameters: - - name: typecode - in: path - required: true - schema: - type: string + - name: typecode + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -5491,11 +5491,11 @@ paths: items: $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases/ipd/in: get: tags: - - Diseases + - Diseases operationId: getDiseasesIpdIn responses: "200": @@ -5507,18 +5507,18 @@ paths: items: $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases/ipd/in/{typecode}: get: tags: - - Diseases + - Diseases operationId: getDiseasesIpdInByCode parameters: - - name: typecode - in: path - required: true - schema: - type: string + - name: typecode + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -5529,11 +5529,11 @@ paths: items: $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases/both: get: tags: - - Diseases + - Diseases operationId: getDiseases responses: "200": @@ -5545,18 +5545,18 @@ paths: items: $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases/both/{typecode}: get: tags: - - Diseases + - Diseases operationId: getDiseases_1 parameters: - - name: typecode - in: path - required: true - schema: - type: string + - name: typecode + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -5567,11 +5567,11 @@ paths: items: $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases/all: get: tags: - - Diseases + - Diseases operationId: getAllDiseases responses: "200": @@ -5583,19 +5583,19 @@ paths: items: $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /bills/pending: get: tags: - - Bills + - Bills operationId: getPendingBills parameters: - - name: patient_code - in: query - required: true - schema: - type: integer - format: int32 + - name: patient_code + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5606,19 +5606,19 @@ paths: items: $ref: "#/components/schemas/BillDTO" security: - - bearerAuth: [] + - bearerAuth: [] /bills/pending/affiliate: get: tags: - - Bills + - Bills operationId: getPendingBillsAffiliate parameters: - - name: patient_code - in: query - required: true - schema: - type: integer - format: int32 + - name: patient_code + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5629,29 +5629,29 @@ paths: items: $ref: "#/components/schemas/BillDTO" security: - - bearerAuth: [] + - bearerAuth: [] /bills/payments: get: tags: - - Bills + - Bills operationId: searchBillsPayments parameters: - - name: datefrom - in: query - required: true - schema: - type: string - - name: dateto - in: query - required: true - schema: - type: string - - name: patient_code - in: query - required: false - schema: - type: integer - format: int32 + - name: datefrom + in: query + required: true + schema: + type: string + - name: dateto + in: query + required: true + schema: + type: string + - name: patient_code + in: query + required: false + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5662,19 +5662,19 @@ paths: items: $ref: "#/components/schemas/BillPaymentsDTO" security: - - bearerAuth: [] + - bearerAuth: [] /bills/payments/{bill_id}: get: tags: - - Bills + - Bills operationId: getPaymentsByBillId parameters: - - name: bill_id - in: path - required: true - schema: - type: integer - format: int32 + - name: bill_id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5685,11 +5685,11 @@ paths: items: $ref: "#/components/schemas/BillPaymentsDTO" security: - - bearerAuth: [] + - bearerAuth: [] /bills/items: get: tags: - - Bills + - Bills operationId: getDistinctItems responses: "200": @@ -5701,19 +5701,19 @@ paths: items: $ref: "#/components/schemas/BillItemsDTO" security: - - bearerAuth: [] + - bearerAuth: [] /bills/items/{bill_id}: get: tags: - - Bills + - Bills operationId: getItems parameters: - - name: bill_id - in: path - required: true - schema: - type: integer - format: int32 + - name: bill_id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5724,40 +5724,40 @@ paths: items: $ref: "#/components/schemas/BillItemsDTO" security: - - bearerAuth: [] + - bearerAuth: [] /agetypes/{index}: get: tags: - - AgeTypes + - AgeTypes operationId: getAgeTypeByIndex parameters: - - name: index - in: path - required: true - schema: - type: integer - format: int32 + - name: index + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK content: application/json: schema: - $ref: "#/components/schemas/AgeType" + $ref: "#/components/schemas/AgeTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /agetypes/code: get: tags: - - AgeTypes + - AgeTypes operationId: getAgeTypeCodeByAge parameters: - - name: age - in: query - required: true - schema: - type: integer - format: int32 + - name: age + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5768,19 +5768,19 @@ paths: additionalProperties: type: string security: - - bearerAuth: [] + - bearerAuth: [] /admissions/patient/{patientCode}: get: tags: - - Admissions + - Admissions operationId: getAdmissions_1 - parameters: - - name: patientCode - in: path - required: true - schema: - type: integer - format: int32 + parameters: + - name: patientCode + in: path + required: true + schema: + type: integer + format: int32 responses: "400": description: Bad Request @@ -5793,18 +5793,18 @@ paths: items: $ref: "#/components/schemas/AdmissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /admissions/getNextProgressiveIdInYear: get: tags: - - Admissions + - Admissions operationId: getNextYProg parameters: - - name: wardcode - in: query - required: true - schema: - type: string + - name: wardcode + in: query + required: true + schema: + type: string responses: "400": description: Bad Request @@ -5816,18 +5816,18 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] /admissions/getBedsOccupationInWard: get: tags: - - Admissions + - Admissions operationId: getUsedWardBed parameters: - - name: wardid - in: query - required: true - schema: - type: string + - name: wardid + in: query + required: true + schema: + type: string responses: "400": description: Bad Request @@ -5839,34 +5839,34 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] /admissions/discharges: get: tags: - - Admissions + - Admissions operationId: getDischarges parameters: - - name: dischargerange - in: query - required: true - schema: - type: array - items: - type: string - - name: page - in: query - required: false - schema: - type: integer - format: int32 - default: 0 - - name: size - in: query - required: false - schema: - type: integer - format: int32 - default: 80 + - name: dischargerange + in: query + required: true + schema: + type: array + items: + type: string + - name: page + in: query + required: false + schema: + type: integer + format: int32 + default: 0 + - name: size + in: query + required: false + schema: + type: integer + format: int32 + default: 80 responses: "400": description: Bad Request @@ -5877,19 +5877,19 @@ paths: schema: $ref: "#/components/schemas/PageAdmissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /admissions/current: get: tags: - - Admissions + - Admissions operationId: getCurrentAdmission parameters: - - name: patientCode - in: query - required: true - schema: - type: integer - format: int32 + - name: patientCode + in: query + required: true + schema: + type: integer + format: int32 responses: "400": description: Bad Request @@ -5900,33 +5900,33 @@ paths: schema: $ref: "#/components/schemas/AdmissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /admissions/admittedPatients: get: tags: - - Admissions + - Admissions operationId: getAdmittedPatients parameters: - - name: searchterms - in: query - required: false - schema: + - name: searchterms + in: query + required: false + schema: + type: string + default: "" + - name: admissionrange + in: query + required: false + schema: + type: array + items: + type: string + - name: dischargerange + in: query + required: false + schema: + type: array + items: type: string - default: "" - - name: admissionrange - in: query - required: false - schema: - type: array - items: - type: string - - name: dischargerange - in: query - required: false - schema: - type: array - items: - type: string responses: "400": description: Bad Request @@ -5939,18 +5939,18 @@ paths: items: $ref: "#/components/schemas/AdmittedPatientDTO" security: - - bearerAuth: [] + - bearerAuth: [] /wards/{code}: delete: tags: - - Wards + - Wards operationId: deleteWard parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -5959,19 +5959,19 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /visits/delete/{patID}: delete: tags: - - Visit + - Visit operationId: deleteVisitsRelatedToPatient parameters: - - name: patID - in: path - required: true - schema: - type: integer - format: int32 + - name: patID + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5980,18 +5980,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /vaccinetypes/{code}: delete: tags: - - Vaccine Type + - Vaccine Type operationId: deleteVaccineType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -6000,18 +6000,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /vaccines/{code}: delete: tags: - - Vaccines + - Vaccines operationId: deleteVaccine parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -6020,19 +6020,19 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /operations/rows/{code}: delete: tags: - - Operations + - Operations operationId: deleteOperationRow parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -6041,18 +6041,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /medicaltypes/{code}: delete: tags: - - Medical Types + - Medical Types operationId: deleteMedicalType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -6061,18 +6061,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /diseasetypes/{code}: delete: tags: - - Disease Types + - Disease Types operationId: deleteDiseaseType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -6083,18 +6083,18 @@ paths: additionalProperties: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /dischargetypes/{code}: delete: tags: - - DischargeType + - DischargeType operationId: deleteDischargeType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -6103,18 +6103,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /deliverytypes/{code}: delete: tags: - - Delivery Type + - Delivery Type operationId: deleteDeliveryType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -6123,18 +6123,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /deliveryresulttypes/{code}: delete: tags: - - Delivery Result Type + - Delivery Result Type operationId: deleteDeliveryResultType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -6143,18 +6143,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /admissiontypes/{code}: delete: tags: - - AdmissionTypes + - AdmissionTypes operationId: deleteAdmissionType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -6163,19 +6163,19 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /admissions/{id}: delete: tags: - - Admissions + - Admissions operationId: deleteAdmissionType_1 parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "400": description: Bad Request @@ -6186,16 +6186,16 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] components: schemas: WardDTO: required: - - beds - - description - - docs - - nurs - - visitDuration + - beds + - description + - docs + - nurs + - visitDuration type: object properties: code: @@ -6235,24 +6235,24 @@ components: description: lock format: int32 example: 0 - opd: + pharmacy: type: boolean male: type: boolean female: type: boolean - pharmacy: + opd: type: boolean PatientDTO: required: - - age - - bloodType - - city - - fatherName - - firstName - - motherName - - secondName - - sex + - age + - bloodType + - city + - fatherName + - firstName + - motherName + - secondName + - sex type: object properties: code: @@ -6290,8 +6290,8 @@ components: description: Sex example: M enum: - - M - - F + - M + - F address: maxLength: 50 type: string @@ -6325,8 +6325,8 @@ components: description: "Mother's status (D=dead, A=alive)" example: A enum: - - D - - A + - D + - A fatherName: maxLength: 50 type: string @@ -6337,35 +6337,35 @@ components: description: "Father's status (D=dead, A=alive)" example: D enum: - - D - - A + - D + - A bloodType: type: string description: "Blood type (0-/+, A-/+ , B-/+, AB-/+)" example: A+ enum: - - 0- - - 0+ - - A- - - A+ - - B- - - B+ - - AB- - - AB+ + - 0- + - 0+ + - A- + - A+ + - B- + - B+ + - AB- + - AB+ hasInsurance: type: string description: "HasInsurance (Y=Yes, N=no)" example: "N" enum: - - "Y" - - "N" + - "Y" + - "N" parentTogether: type: string description: "Parent together (Y=Yes, N=no)" example: "N" enum: - - "Y" - - "N" + - "Y" + - "N" taxCode: maxLength: 30 type: string @@ -6400,8 +6400,8 @@ components: description: Status example: I enum: - - I - - O + - I + - O consensusFlag: type: boolean description: Consensus flag @@ -6413,8 +6413,8 @@ components: description: Class representing a patient VisitDTO: required: - - date - - patient + - date + - patient type: object properties: visitID: @@ -6444,11 +6444,16 @@ components: maxLength: 45 type: string description: Service done during the visit + lock: + type: integer + description: Lock + format: int32 + example: 0 description: Class representing a vaccine type VaccineTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -6464,9 +6469,9 @@ components: description: Class representing a vaccine type VaccineDTO: required: - - code - - description - - vaccineType + - code + - description + - vaccineType type: object properties: code: @@ -6489,10 +6494,10 @@ components: description: Class representing a vaccine UserSettingDTO: required: - - configName - - configValue - - id - - user + - configName + - configValue + - id + - user type: object properties: id: @@ -6513,10 +6518,15 @@ components: maxLength: 65535 type: string description: The value of the user + lock: + type: integer + description: Lock + format: int32 + example: 0 PermissionDTO: required: - - description - - id + - description + - id type: object properties: name: @@ -6532,9 +6542,9 @@ components: description: List of group's permissions UserDTO: required: - - passwd - - userGroupName - - userName + - passwd + - userGroupName + - userName type: object properties: userName: @@ -6556,7 +6566,7 @@ components: example: Lab chief technician UserGroupDTO: required: - - code + - code type: object properties: code: @@ -6593,16 +6603,16 @@ components: type: array description: List of permissions' ids example: - - 48 - - 24 + - 48 + - 24 items: type: integer description: List of permissions' ids format: int32 SupplierDTO: required: - - supId - - supName + - supId + - supName type: object properties: supId: @@ -6642,13 +6652,18 @@ components: maxLength: 200 type: string description: The supplier's notes + lock: + type: integer + description: Lock + format: int32 + example: 0 PricesOthersDTO: required: - - code - - daily - - description - - ipdInclude - - opdInclude + - code + - daily + - description + - ipdInclude + - opdInclude type: object properties: id: @@ -6663,6 +6678,11 @@ components: maxLength: 100 type: string description: The description + lock: + type: integer + description: Lock + format: int32 + example: 0 opdInclude: type: boolean ipdInclude: @@ -6704,6 +6724,11 @@ components: type: string description: The currency example: FCFA + lock: + type: integer + description: Lock + format: int32 + example: 0 hashCode: type: integer format: int32 @@ -6711,8 +6736,8 @@ components: description: Class representing a price list PregnantTreatmentTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -6730,10 +6755,10 @@ components: description: Class representing a pregnant treatment type PatientVaccineDTO: required: - - patient - - progr - - vaccine - - vaccineDate + - patient + - progr + - vaccine + - vaccineDate type: object properties: code: @@ -6762,7 +6787,7 @@ components: readOnly: true PatientConsensusDTO: required: - - patientId + - patientId type: object properties: consensusFlag: @@ -6778,8 +6803,8 @@ components: description: Class representing a patient consensus OperationTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -6792,11 +6817,11 @@ components: description: The operation type OperationDTO: required: - - code - - description - - major - - opeFor - - type + - code + - description + - major + - opeFor + - type type: object properties: code: @@ -6814,9 +6839,9 @@ components: description: The operation context example: opd_admission enum: - - opd_admission - - admission - - opd + - opd_admission + - admission + - opd major: type: integer description: The operation major @@ -6828,10 +6853,10 @@ components: example: 0 AdmissionDTO: required: - - admDate - - admitted - - deleted - - type + - admDate + - admitted + - deleted + - type type: object properties: id: @@ -6872,7 +6897,7 @@ components: description: Operation date opResult: type: string - description: "Operation result value is 'P' or 'N' " + description: 'Operation result value is ''P'' or ''N'' ' example: "N" disDate: type: string @@ -6936,8 +6961,8 @@ components: description: The admission AdmissionTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -6952,15 +6977,15 @@ components: description: Admission type BillDTO: required: - - amount - - balance - - date - - listName - - patName - - patientTrue - - status - - update - - user + - amount + - balance + - date + - listName + - patName + - patientTrue + - status + - update + - user type: object properties: id: @@ -7011,13 +7036,18 @@ components: type: string description: user name who create the bill example: admin + lock: + type: integer + description: Lock + format: int32 + example: 0 list: type: boolean description: Class representing a bill DeliveryResultTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -7032,8 +7062,8 @@ components: description: Delivery result type DeliveryTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -7048,8 +7078,8 @@ components: description: Delivery type DischargeTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -7064,12 +7094,12 @@ components: description: DisChargeType DiseaseDTO: required: - - code - - description - - diseaseType - - ipdInInclude - - ipdOutInclude - - opdInclude + - code + - description + - diseaseType + - ipdInInclude + - ipdOutInclude + - opdInclude type: object properties: code: @@ -7107,8 +7137,8 @@ components: description: Class representing a disease DiseaseTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -7122,11 +7152,11 @@ components: description: Class representing a disease type OpdDTO: required: - - age - - newPatient - - note - - sex - - ward + - age + - newPatient + - note + - sex + - ward type: object properties: code: @@ -7221,10 +7251,10 @@ components: description: The opd OperationRowDTO: required: - - opDate - - opResult - - operation - - prescriber + - opDate + - opResult + - operation + - prescriber type: object properties: id: @@ -7272,9 +7302,9 @@ components: $ref: "#/components/schemas/OperationRowDTO" MovementTypeDTO: required: - - code - - description - - type + - code + - description + - type type: object properties: code: @@ -7293,8 +7323,8 @@ components: example: "-" MedicalTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -7359,10 +7389,10 @@ components: example: 0 MalnutritionDTO: required: - - admission - - dateSupp - - height - - weight + - admission + - dateSupp + - height + - weight type: object properties: code: @@ -7417,7 +7447,7 @@ components: maxLength: 50 type: string description: Exam Default Result - example: ">=12 (NORMAL)" + example: '>=12 (NORMAL)' examtype: $ref: "#/components/schemas/ExamTypeDTO" lock: @@ -7492,8 +7522,8 @@ components: description: Laboratory Patient InOut example: "0" enum: - - I - - O + - I + - O age: type: integer description: Laboratory Patient Age @@ -7507,11 +7537,11 @@ components: description: Laboratory status example: DRAFT enum: - - draft - - open - - done - - invalid - - deleted + - draft + - open + - done + - invalid + - deleted HospitalDTO: type: object properties: @@ -7562,27 +7592,25 @@ components: example: 0 ExamWithRowsDTO: required: - - exam + - exam type: object properties: exam: $ref: "#/components/schemas/ExamDTO" rows: type: array - description: - Possible result for the exam(only for exams with procedure + description: Possible result for the exam(only for exams with procedure 1 and 2) example: "['>=12 (NORMAL)', 'IRREGULAR']" items: type: string - description: - Possible result for the exam(only for exams with procedure + description: Possible result for the exam(only for exams with procedure 1 and 2) example: "['>=12 (NORMAL)', 'IRREGULAR']" PatientExaminationDTO: required: - - patientCode - - pex_date + - patientCode + - pex_date type: object properties: pex_ID: @@ -7635,12 +7663,12 @@ components: description: Patient ausculation example: normal enum: - - normal - - wheezes - - rhonchi - - crackles - - stridor - - bronchial + - normal + - wheezes + - rhonchi + - crackles + - stridor + - bronchial pex_hgt: type: integer description: Hemo Glucose Test @@ -7654,14 +7682,14 @@ components: description: Diuresis description example: physiological enum: - - physiological - - oliguria - - anuria - - frequent - - nocturia - - stranguria - - hematuria - - pyuria + - physiological + - oliguria + - anuria + - frequent + - nocturia + - stranguria + - hematuria + - pyuria pex_note: maxLength: 2000 type: string @@ -7671,18 +7699,23 @@ components: description: Bowel Function example: regular enum: - - constipation - - regular - - diarrheal - - irregular + - constipation + - regular + - diarrheal + - irregular + lock: + type: integer + description: Lock + format: int32 + example: 0 BillItemsDTO: required: - - itemAmount - - itemDescription - - itemDisplayCode - - itemId - - itemQuantity - - priceId + - itemAmount + - itemDescription + - itemDisplayCode + - itemId + - itemQuantity + - priceId type: object properties: id: @@ -7727,10 +7760,10 @@ components: description: Class representing a billItem BillPaymentsDTO: required: - - amount - - billId - - date - - user + - amount + - billId + - date + - user type: object properties: id: @@ -7761,8 +7794,8 @@ components: description: Class representing a billPayment FullBillDTO: required: - - bill - - billItems + - bill + - billItems type: object properties: bill: @@ -7779,9 +7812,9 @@ components: $ref: "#/components/schemas/BillPaymentsDTO" AgeTypeDTO: required: - - description - - from - - to + - description + - from + - to type: object properties: code: @@ -7796,6 +7829,11 @@ components: description: The minimum value of the range format: int32 example: 0 + lock: + type: integer + description: Lock + format: int32 + example: 0 to: type: integer description: The maximum value of the range @@ -7804,16 +7842,16 @@ components: description: Class representing an age type which is typically a range TherapyRowDTO: required: - - endDate - - freqInDay - - freqInPeriod - - medicalId - - notifyInt - - patID - - qty - - smsInt - - startDate - - unitID + - endDate + - freqInDay + - freqInPeriod + - medicalId + - notifyInt + - patID + - qty + - smsInt + - startDate + - unitID type: object properties: therapyID: @@ -7863,8 +7901,7 @@ components: example: Sample note notifyInt: type: integer - description: - "the notify flag: 1 if the notification need to be activated,\ + description: "the notify flag: 1 if the notification need to be activated,\ \ 0 otherwise" format: int32 example: 0 @@ -7875,17 +7912,17 @@ components: example: 0 Patient: required: - - age - - birthDate - - bloodType - - city - - deleted - - fatherName - - firstName - - motherName - - name - - secondName - - sex + - age + - birthDate + - bloodType + - city + - deleted + - fatherName + - firstName + - motherName + - name + - secondName + - sex type: object properties: createdBy: @@ -7963,10 +8000,10 @@ components: $ref: "#/components/schemas/PatientProfilePhoto" patientConsensus: $ref: "#/components/schemas/PatientConsensus" - searchString: - type: string informations: type: string + searchString: + type: string PatientConsensus: type: object properties: @@ -8333,9 +8370,6 @@ components: properties: empty: type: boolean - height: - type: number - format: double minX: type: number format: double @@ -8345,10 +8379,7 @@ components: width: type: number format: double - x: - type: number - format: double - "y": + height: type: number format: double maxX: @@ -8363,14 +8394,17 @@ components: centerY: type: number format: double + "y": + type: number + format: double + x: + type: number + format: double rect: type: object properties: empty: type: boolean - height: - type: number - format: double minX: type: number format: double @@ -8380,10 +8414,7 @@ components: width: type: number format: double - x: - type: number - format: double - "y": + height: type: number format: double maxX: @@ -8398,6 +8429,12 @@ components: centerY: type: number format: double + "y": + type: number + format: double + x: + type: number + format: double writeOnly: true minX: type: number @@ -8493,9 +8530,6 @@ components: properties: empty: type: boolean - height: - type: number - format: double minX: type: number format: double @@ -8505,10 +8539,7 @@ components: width: type: number format: double - x: - type: number - format: double - "y": + height: type: number format: double maxX: @@ -8523,14 +8554,17 @@ components: centerY: type: number format: double + "y": + type: number + format: double + x: + type: number + format: double rect: type: object properties: empty: type: boolean - height: - type: number - format: double minX: type: number format: double @@ -8540,10 +8574,7 @@ components: width: type: number format: double - x: - type: number - format: double - "y": + height: type: number format: double maxX: @@ -8558,6 +8589,12 @@ components: centerY: type: number format: double + "y": + type: number + format: double + x: + type: number + format: double writeOnly: true minX: type: number @@ -8582,9 +8619,6 @@ components: properties: empty: type: boolean - height: - type: number - format: double minX: type: number format: double @@ -8594,10 +8628,7 @@ components: width: type: number format: double - x: - type: number - format: double - "y": + height: type: number format: double maxX: @@ -8612,6 +8643,12 @@ components: centerY: type: number format: double + "y": + type: number + format: double + x: + type: number + format: double clipRect: type: object properties: @@ -8652,9 +8689,6 @@ components: properties: empty: type: boolean - height: - type: number - format: double minX: type: number format: double @@ -8664,10 +8698,7 @@ components: width: type: number format: double - x: - type: number - format: double - "y": + height: type: number format: double maxX: @@ -8682,14 +8713,17 @@ components: centerY: type: number format: double + "y": + type: number + format: double + x: + type: number + format: double rect: type: object properties: empty: type: boolean - height: - type: number - format: double minX: type: number format: double @@ -8699,10 +8733,7 @@ components: width: type: number format: double - x: - type: number - format: double - "y": + height: type: number format: double maxX: @@ -8717,6 +8748,12 @@ components: centerY: type: number format: double + "y": + type: number + format: double + x: + type: number + format: double writeOnly: true minX: type: number @@ -8739,16 +8776,16 @@ components: deprecated: true TherapyRow: required: - - endDate - - freqInDay - - freqInPeriod - - medicalId - - notifyInt - - patient - - qty - - smsInt - - startDate - - unitID + - endDate + - freqInDay + - freqInPeriod + - medicalId + - notifyInt + - patient + - qty + - smsInt + - startDate + - unitID type: object properties: createdBy: @@ -8801,10 +8838,10 @@ components: medical: type: integer format: int32 - notify: - type: boolean sms: type: boolean + notify: + type: boolean TherapyDTO: type: object properties: @@ -8822,8 +8859,8 @@ components: type: array description: The dates of the therapy example: - - 2022-01-01T10:00:00 - - 2022-01-02T15:30:00 + - 2022-01-01T10:00:00 + - 2022-01-02T15:30:00 items: type: string description: The dates of the therapy @@ -8850,21 +8887,19 @@ components: example: Sample note notify: type: boolean - description: - "The notify flag: true if the notification need to be activated,\ + description: "The notify flag: true if the notification need to be activated,\ \ false otherwise" example: false sms: type: boolean - description: - "The sms flag: true if sms need to be sent to patient, false\ + description: "The sms flag: true if sms need to be sent to patient, false\ \ otherwise" example: false LotDTO: required: - - code - - dueDate - - preparationDate + - code + - dueDate + - preparationDate type: object properties: code: @@ -8887,11 +8922,11 @@ components: description: The lot MovementDTO: required: - - date - - medical - - quantity - - refNo - - type + - date + - medical + - quantity + - refNo + - type type: object properties: code: @@ -8924,12 +8959,12 @@ components: example: MVN152445 SmsDTO: required: - - module - - smsDate - - smsDateSched - - smsNumber - - smsText - - smsUser + - module + - smsDate + - smsDateSched + - smsNumber + - smsText + - smsUser type: object properties: smsId: @@ -8975,11 +9010,11 @@ components: description: SMS module Id MovementWardDTO: required: - - date - - description - - quantity - - units - - ward + - date + - description + - quantity + - units + - ward type: object properties: code: @@ -9003,8 +9038,7 @@ components: example: 21 weight: type: number - description: - The patient's weight in case the movement is associated to + description: The patient's weight in case the movement is associated to a patient format: float example: 75 @@ -9066,8 +9100,8 @@ components: description: Class representing a Login response LoginRequest: required: - - password - - username + - password + - username type: object properties: username: @@ -9080,11 +9114,11 @@ components: example: admin PriceDTO: required: - - description - - group - - item - - list - - price + - description + - group + - item + - list + - price type: object properties: id: @@ -9108,6 +9142,11 @@ components: description: Price format: double example: 1500 + lock: + type: integer + description: Lock + format: int32 + example: 0 editable: type: boolean readOnly: true @@ -9118,10 +9157,10 @@ components: description: Class representing a prices PriceList: required: - - code - - currency - - description - - name + - code + - currency + - description + - name type: object properties: createdBy: @@ -9206,8 +9245,8 @@ components: example: 89 MedicalWardIdDTO: required: - - medical - - ward + - medical + - ward type: object properties: ward: @@ -9234,36 +9273,6 @@ components: $ref: "#/components/schemas/PatientExaminationDTO" pageInfo: $ref: "#/components/schemas/PageInfoDTO" - AgeType: - required: - - description - - from - - to - type: object - properties: - createdBy: - type: string - createdDate: - type: string - format: date-time - lastModifiedBy: - type: string - lastModifiedDate: - type: string - format: date-time - active: - type: integer - format: int32 - code: - type: string - description: - type: string - from: - type: integer - format: int32 - to: - type: integer - format: int32 PageAdmissionDTO: type: object properties: diff --git a/src/components/accessories/admin/users/Users.tsx b/src/components/accessories/admin/users/Users.tsx index dfac8e331..17b9d7980 100644 --- a/src/components/accessories/admin/users/Users.tsx +++ b/src/components/accessories/admin/users/Users.tsx @@ -1,5 +1,5 @@ import { Tab, Tabs } from "@mui/material"; -import React from "react"; +import React, { useCallback } from "react"; import { useTranslation } from "react-i18next"; import { useLocation, useNavigate } from "react-router"; @@ -7,6 +7,8 @@ import Button from "../../button/Button"; import UserGroupsTable from "./userGroupsTable"; import UsersTable from "./usersTable"; +import { useAppDispatch } from "libraries/hooks/redux"; +import { deleteUser } from "state/users"; import { PATHS } from "../../../../consts"; import { UserDTO, UserGroupDTO } from "../../../../generated"; @@ -18,6 +20,7 @@ export enum TabOptions { export const Users = () => { const navigate = useNavigate(); const { t } = useTranslation(); + const dispatch = useAppDispatch(); const { state }: { state: { tab?: TabOptions } } = useLocation(); const setTab = (tab: TabOptions) => @@ -33,6 +36,13 @@ export const Users = () => { state: row, }); + const handleDeleteUser = useCallback( + (row: UserDTO) => { + dispatch(deleteUser(row.userName ?? "")); + }, + [dispatch] + ); + return ( <> { } onEdit={handleEditUser} + onDelete={handleDeleteUser} /> ) : ( void; + onDelete: (row: UserDTO) => void; } -export const UsersTable = ({ headerActions, onEdit }: IOwnProps) => { +export const UsersTable = ({ headerActions, onEdit, onDelete }: IOwnProps) => { const dispatch = useAppDispatch(); const { t } = useTranslation(); + const infoBoxRef = useRef(null); + const canUpdate = usePermission("users.update"); + const canDelete = usePermission("users.update"); + + const deleteUser = useAppSelector((state) => state.users.delete); useEffect(() => { dispatch(getUsers({})); dispatch(getUserGroups()); + + return () => { + dispatch(deleteUserReset()); + }; }, [dispatch]); - const header = ["userName", "userGroupName", "desc"]; + useEffect(() => { + if (deleteUser.status === "FAIL") { + scrollToElement(infoBoxRef.current); + } + + if (deleteUser.hasSucceeded) { + dispatch(getUsers({})); + } + }, [deleteUser.status, dispatch]); + const header = ["userName", "userGroupName", "desc"]; const label = { userName: t("user.username"), userGroupName: t("user.groups"), @@ -65,7 +87,7 @@ export const UsersTable = ({ headerActions, onEdit }: IOwnProps) => { userGroupName: item.userGroupName?.desc ?? item.userGroupName?.code ?? "", desc: item.desc ?? "", - passwd: item.passwd ?? "" + passwd: item.passwd ?? "", }; }); }; @@ -85,23 +107,42 @@ export const UsersTable = ({ headerActions, onEdit }: IOwnProps) => { case "SUCCESS": return ( - ({ - ...user, - userGroupName: user.userGroupName?.code, - }))} - rowKey="userName" - headerActions={headerActions} - onEdit={canUpdate ? onEdit: undefined} - /> + <> + {deleteUser.status === "FAIL" && ( +
+ +
+ )} +
({ + ...user, + userGroupName: user.userGroupName?.code, + }))} + rowKey="userName" + headerActions={headerActions} + onEdit={canUpdate ? onEdit : undefined} + onDelete={canDelete ? onDelete : undefined} + /> + { + dispatch(deleteUserReset()); + }} + handleSecondaryButtonClick={() => ({})} + /> + ); case "SUCCESS_EMPTY": return ; diff --git a/src/generated/.openapi-generator/FILES b/src/generated/.openapi-generator/FILES index fabd38adc..f8c963cbb 100644 --- a/src/generated/.openapi-generator/FILES +++ b/src/generated/.openapi-generator/FILES @@ -47,7 +47,6 @@ index.ts models\AdmissionDTO.ts models\AdmissionTypeDTO.ts models\AdmittedPatientDTO.ts -models\AgeType.ts models\AgeTypeDTO.ts models\BillDTO.ts models\BillItemsDTO.ts diff --git a/src/generated/apis/AgeTypesApi.ts b/src/generated/apis/AgeTypesApi.ts index 6129e939b..6daff1b11 100644 --- a/src/generated/apis/AgeTypesApi.ts +++ b/src/generated/apis/AgeTypesApi.ts @@ -14,7 +14,6 @@ import { Observable } from 'rxjs'; import { BaseAPI, HttpHeaders, HttpQuery, throwIfNullOrUndefined, encodeURI, OperationOpts, RawAjaxResponse } from '../runtime'; import { - AgeType, AgeTypeDTO, } from '../models'; @@ -37,16 +36,16 @@ export class AgeTypesApi extends BaseAPI { /** */ - getAgeTypeByIndex({ index }: GetAgeTypeByIndexRequest): Observable - getAgeTypeByIndex({ index }: GetAgeTypeByIndexRequest, opts?: OperationOpts): Observable> - getAgeTypeByIndex({ index }: GetAgeTypeByIndexRequest, opts?: OperationOpts): Observable> { + getAgeTypeByIndex({ index }: GetAgeTypeByIndexRequest): Observable + getAgeTypeByIndex({ index }: GetAgeTypeByIndexRequest, opts?: OperationOpts): Observable> + getAgeTypeByIndex({ index }: GetAgeTypeByIndexRequest, opts?: OperationOpts): Observable> { throwIfNullOrUndefined(index, 'index', 'getAgeTypeByIndex'); const headers: HttpHeaders = { ...(this.configuration.username != null && this.configuration.password != null ? { Authorization: `Basic ${btoa(this.configuration.username + ':' + this.configuration.password)}` } : undefined), }; - return this.request({ + return this.request({ url: '/agetypes/{index}'.replace('{index}', encodeURI(index)), method: 'GET', headers, diff --git a/src/generated/models/AgeTypeDTO.ts b/src/generated/models/AgeTypeDTO.ts index 2f941cea5..429ea4233 100644 --- a/src/generated/models/AgeTypeDTO.ts +++ b/src/generated/models/AgeTypeDTO.ts @@ -35,6 +35,12 @@ export interface AgeTypeDTO { * @memberof AgeTypeDTO */ from: number; + /** + * Lock + * @type {number} + * @memberof AgeTypeDTO + */ + lock?: number; /** * The maximum value of the range * @type {number} diff --git a/src/generated/models/BillDTO.ts b/src/generated/models/BillDTO.ts index 456641c4b..71edc48f9 100644 --- a/src/generated/models/BillDTO.ts +++ b/src/generated/models/BillDTO.ts @@ -90,6 +90,12 @@ export interface BillDTO { * @memberof BillDTO */ user: string; + /** + * Lock + * @type {number} + * @memberof BillDTO + */ + lock?: number; /** * @type {boolean} * @memberof BillDTO diff --git a/src/generated/models/PatientExaminationDTO.ts b/src/generated/models/PatientExaminationDTO.ts index 32c77cfab..d582d61c5 100644 --- a/src/generated/models/PatientExaminationDTO.ts +++ b/src/generated/models/PatientExaminationDTO.ts @@ -118,6 +118,12 @@ export interface PatientExaminationDTO { * @memberof PatientExaminationDTO */ pex_bowel_desc?: PatientExaminationDTOPexBowelDescEnum; + /** + * Lock + * @type {number} + * @memberof PatientExaminationDTO + */ + lock?: number; } /** diff --git a/src/generated/models/PriceDTO.ts b/src/generated/models/PriceDTO.ts index 89e89072b..7f504cff5 100644 --- a/src/generated/models/PriceDTO.ts +++ b/src/generated/models/PriceDTO.ts @@ -55,6 +55,12 @@ export interface PriceDTO { * @memberof PriceDTO */ price: number; + /** + * Lock + * @type {number} + * @memberof PriceDTO + */ + lock?: number; /** * @type {boolean} * @memberof PriceDTO diff --git a/src/generated/models/PriceListDTO.ts b/src/generated/models/PriceListDTO.ts index 27d4536a9..d192741e1 100644 --- a/src/generated/models/PriceListDTO.ts +++ b/src/generated/models/PriceListDTO.ts @@ -46,6 +46,12 @@ export interface PriceListDTO { * @memberof PriceListDTO */ currency?: string; + /** + * Lock + * @type {number} + * @memberof PriceListDTO + */ + lock?: number; /** * @type {number} * @memberof PriceListDTO diff --git a/src/generated/models/PricesOthersDTO.ts b/src/generated/models/PricesOthersDTO.ts index 1dbfc5ca1..a3abe1c4b 100644 --- a/src/generated/models/PricesOthersDTO.ts +++ b/src/generated/models/PricesOthersDTO.ts @@ -34,6 +34,12 @@ export interface PricesOthersDTO { * @memberof PricesOthersDTO */ description: string; + /** + * Lock + * @type {number} + * @memberof PricesOthersDTO + */ + lock?: number; /** * @type {boolean} * @memberof PricesOthersDTO diff --git a/src/generated/models/SupplierDTO.ts b/src/generated/models/SupplierDTO.ts index 14bdb0d1f..6de6be326 100644 --- a/src/generated/models/SupplierDTO.ts +++ b/src/generated/models/SupplierDTO.ts @@ -63,4 +63,10 @@ export interface SupplierDTO { * @memberof SupplierDTO */ supNote?: string; + /** + * Lock + * @type {number} + * @memberof SupplierDTO + */ + lock?: number; } diff --git a/src/generated/models/UserSettingDTO.ts b/src/generated/models/UserSettingDTO.ts index 2be07829f..c1b5d7663 100644 --- a/src/generated/models/UserSettingDTO.ts +++ b/src/generated/models/UserSettingDTO.ts @@ -40,4 +40,10 @@ export interface UserSettingDTO { * @memberof UserSettingDTO */ configValue: string; + /** + * Lock + * @type {number} + * @memberof UserSettingDTO + */ + lock?: number; } diff --git a/src/generated/models/VisitDTO.ts b/src/generated/models/VisitDTO.ts index e6af4145c..5a45f79be 100644 --- a/src/generated/models/VisitDTO.ts +++ b/src/generated/models/VisitDTO.ts @@ -68,4 +68,10 @@ export interface VisitDTO { * @memberof VisitDTO */ service?: string; + /** + * Lock + * @type {number} + * @memberof VisitDTO + */ + lock?: number; } diff --git a/src/generated/models/index.ts b/src/generated/models/index.ts index 414db20ce..28479b26d 100644 --- a/src/generated/models/index.ts +++ b/src/generated/models/index.ts @@ -1,7 +1,6 @@ export * from './AdmissionDTO'; export * from './AdmissionTypeDTO'; export * from './AdmittedPatientDTO'; -export * from './AgeType'; export * from './AgeTypeDTO'; export * from './BillDTO'; export * from './BillItemsDTO'; diff --git a/src/mockServer/routes/users.js b/src/mockServer/routes/users.js index 8b8378e7e..94cfcca7b 100644 --- a/src/mockServer/routes/users.js +++ b/src/mockServer/routes/users.js @@ -29,6 +29,16 @@ export const userRoutes = (server) => { server.put("/:username").intercept((_req, res) => { res.status(200).json(_req.jsonBody()); }); + server.delete("/:username").intercept((req, res) => { + const username = req.params.username; + switch (username) { + case "FAIL": + res.status(400).json({ message: "Fail to delete user" }); + break; + default: + res.status(204); + } + }); server.get("/:username/settings/dashboard").intercept((req, res) => { res.status(200).json(dashboardSettingDTO); }); diff --git a/src/mockServer/routes/wards.js b/src/mockServer/routes/wards.js index c692b5d38..3a5a3c570 100644 --- a/src/mockServer/routes/wards.js +++ b/src/mockServer/routes/wards.js @@ -40,10 +40,10 @@ export const wardsRoutes = (server) => { const code = req.params.code; switch (code) { case "FAIL": - res.status(400).json({ message: "Fail to update ward" }); + res.status(400).json({ message: "Fail to delete ward" }); break; default: - res.status(200); + res.status(204); } }); }); diff --git a/src/resources/i18n/en.json b/src/resources/i18n/en.json index 972077f64..b2271af58 100644 --- a/src/resources/i18n/en.json +++ b/src/resources/i18n/en.json @@ -30,6 +30,7 @@ "editGroup": "Edit group", "description": "Description", "lastlogin": "Last login", + "deleted": "User deleted", "groupCreated": "Group created", "groupDeleted": "Group deleted", "groupUpdated": "Group updated", @@ -41,6 +42,7 @@ "createdSuccessTitle": "User created", "createdSuccessMessage": "User has been created successfully!", "updatedSuccessTitle": "User updated", + "deleteSuccess": "User has been deleted successfully!", "updatedSuccessMessage": "User has been updated successfully!", "validateUserNeedsGroup": "Each user should belong to a group", "validatePasswordNeeded": "No password provided.",