diff --git a/api/oh.yaml b/api/oh.yaml index 74b59e8c1..a727cddcf 100644 --- a/api/oh.yaml +++ b/api/oh.yaml @@ -1,25 +1,25 @@ openapi: 3.0.1 info: - title: OH 2.0 Api Documentation - description: OH 2.0 Api Documentation + title: Open Hospital API Documentation + description: Open Hospital API Documentation contact: name: ApiInfo.DEFAULT_CONTACT license: - name: Apache 2.0 - url: https://www.apache.org/licenses/LICENSE-2.0 - version: '1.0' + name: GPL-3.0 license + 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': + "200": description: OK content: application/json: @@ -28,10 +28,10 @@ paths: items: $ref: '#/components/schemas/WardDTO' security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Wards + - Wards operationId: updateWard requestBody: content: @@ -40,17 +40,17 @@ paths: $ref: '#/components/schemas/WardDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/WardDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Wards + - Wards operationId: newWard requestBody: content: @@ -59,26 +59,26 @@ paths: $ref: '#/components/schemas/WardDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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: @@ -86,21 +86,21 @@ paths: $ref: '#/components/schemas/VisitDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/VisitDTO' security: - - bearerAuth: [] + - bearerAuth: [] /vaccinetypes: get: tags: - - Vaccine Type + - Vaccine Type operationId: getVaccineType responses: - '200': + "200": description: OK content: application/json: @@ -109,10 +109,10 @@ paths: items: $ref: '#/components/schemas/VaccineTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Vaccine Type + - Vaccine Type operationId: updateVaccineType requestBody: content: @@ -121,17 +121,17 @@ paths: $ref: '#/components/schemas/VaccineTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/VaccineTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Vaccine Type + - Vaccine Type operationId: newVaccineType requestBody: content: @@ -140,21 +140,21 @@ paths: $ref: '#/components/schemas/VaccineTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/VaccineTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] /vaccines: get: tags: - - Vaccines + - Vaccines operationId: getVaccines responses: - '200': + "200": description: OK content: application/json: @@ -163,10 +163,10 @@ paths: items: $ref: '#/components/schemas/VaccineDTO' security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Vaccines + - Vaccines operationId: updateVaccine requestBody: content: @@ -175,17 +175,17 @@ paths: $ref: '#/components/schemas/VaccineDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/VaccineDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Vaccines + - Vaccines operationId: newVaccine requestBody: content: @@ -194,27 +194,27 @@ paths: $ref: '#/components/schemas/VaccineDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/VaccineDTO' 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': + "200": description: OK content: application/json: @@ -223,18 +223,18 @@ paths: items: $ref: '#/components/schemas/UserDTO' security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Users + - Users operationId: updateUser parameters: - - name: password - in: query - required: false - schema: - type: boolean - default: false + - name: password + in: query + required: false + schema: + type: boolean + default: false requestBody: content: application/json: @@ -242,17 +242,17 @@ paths: $ref: '#/components/schemas/UserDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Users + - Users operationId: newUser requestBody: content: @@ -261,46 +261,46 @@ paths: $ref: '#/components/schemas/UserDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /users/settings/{id}: get: tags: - - Users + - Users operationId: getUserSettingById 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': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/UserSettingDTO' security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Users + - Users 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: @@ -308,41 +308,41 @@ paths: $ref: '#/components/schemas/UserSettingDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/UserSettingDTO' security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Users + - Users 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: - '200': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /users/groups: get: tags: - - Users + - Users operationId: getUserGroup responses: - '200': + "200": description: OK content: application/json: @@ -351,10 +351,10 @@ paths: items: $ref: '#/components/schemas/UserGroupDTO' security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Users + - Users operationId: updateUserGroup requestBody: content: @@ -363,17 +363,17 @@ paths: $ref: '#/components/schemas/UserGroupDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Users + - Users operationId: newUserGroup requestBody: content: @@ -382,28 +382,28 @@ paths: $ref: '#/components/schemas/UserGroupDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: type: boolean 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': + "200": description: OK content: application/json: @@ -412,10 +412,10 @@ paths: items: $ref: '#/components/schemas/SupplierDTO' security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Suppliers + - Suppliers operationId: updateSupplier requestBody: content: @@ -424,17 +424,17 @@ paths: $ref: '#/components/schemas/SupplierDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/SupplierDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Suppliers + - Suppliers operationId: saveSupplier requestBody: content: @@ -443,26 +443,26 @@ paths: $ref: '#/components/schemas/SupplierDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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: @@ -470,46 +470,46 @@ paths: $ref: '#/components/schemas/PricesOthersDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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: @@ -517,45 +517,45 @@ paths: $ref: '#/components/schemas/PriceListDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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: @@ -563,112 +563,45 @@ paths: $ref: '#/components/schemas/PregnantTreatmentTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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 - responses: - '200': - description: OK - content: - application/json: - schema: - type: boolean - security: - - bearerAuth: [] - /permissions/{id}: - get: - tags: - - Permissions - operationId: retrievePermissionById - parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 - responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PermissionDTO' - security: - - bearerAuth: [] - put: - tags: - - Permissions - operationId: updatePermission - parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PermissionDTO' + - name: code + in: path required: true + schema: + type: string responses: - '200': - description: OK - content: - application/json: - schema: - $ref: '#/components/schemas/PermissionDTO' - security: - - bearerAuth: [] - delete: - tags: - - Permissions - operationId: deletePermission - parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 - responses: - '200': + "200": description: OK content: application/json: 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: @@ -676,66 +609,66 @@ paths: $ref: '#/components/schemas/PatientVaccineDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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: @@ -743,66 +676,66 @@ paths: $ref: '#/components/schemas/PatientDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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: @@ -810,25 +743,25 @@ paths: $ref: '#/components/schemas/PatientConsensusDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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: @@ -836,63 +769,63 @@ paths: $ref: '#/components/schemas/OperationTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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: @@ -900,37 +833,37 @@ paths: $ref: '#/components/schemas/OperationDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /operations/rows: put: tags: - - Operations + - Operations operationId: updateOperationRow requestBody: content: @@ -939,7 +872,7 @@ paths: $ref: '#/components/schemas/OperationRowDTO' required: true responses: - '200': + "200": description: OK content: application/json: @@ -947,10 +880,10 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Operations + - Operations operationId: newOperationRow requestBody: content: @@ -959,26 +892,26 @@ paths: $ref: '#/components/schemas/OperationRowDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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: @@ -986,46 +919,46 @@ paths: $ref: '#/components/schemas/OpdDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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: @@ -1033,21 +966,21 @@ paths: $ref: '#/components/schemas/OpdWithOperationRowDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/OpdWithOperationRowDTO' security: - - bearerAuth: [] + - bearerAuth: [] /medstockmovementtypes: get: tags: - - Medical Stock Movement Type + - Medical Stock Movement Type operationId: getMedicalDsrStockMovementType responses: - '200': + "200": description: OK content: application/json: @@ -1056,10 +989,10 @@ paths: items: $ref: '#/components/schemas/MovementTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Medical Stock Movement Type + - Medical Stock Movement Type operationId: updateMedicalDsrStockMovementType requestBody: content: @@ -1068,17 +1001,17 @@ paths: $ref: '#/components/schemas/MovementTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/MovementTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Medical Stock Movement Type + - Medical Stock Movement Type operationId: newMedicalDsrStockMovementType requestBody: content: @@ -1087,21 +1020,21 @@ paths: $ref: '#/components/schemas/MovementTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/MovementTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] /medicaltypes: get: tags: - - Medical Types + - Medical Types operationId: getMedicalTypes responses: - '200': + "200": description: OK content: application/json: @@ -1110,10 +1043,10 @@ paths: items: $ref: '#/components/schemas/MedicalTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Medical Types + - Medical Types operationId: updateMedicalType requestBody: content: @@ -1122,17 +1055,17 @@ paths: $ref: '#/components/schemas/MedicalTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/MedicalTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Medical Types + - Medical Types operationId: createMedicalType requestBody: content: @@ -1141,31 +1074,31 @@ paths: $ref: '#/components/schemas/MedicalTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: @@ -1174,18 +1107,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: @@ -1193,25 +1126,25 @@ paths: $ref: '#/components/schemas/MedicalDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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: @@ -1219,18 +1152,18 @@ paths: $ref: '#/components/schemas/MedicalDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/MedicalDTO' security: - - bearerAuth: [] + - bearerAuth: [] /malnutritions: put: tags: - - Malnutritions + - Malnutritions operationId: updateMalnutrition requestBody: content: @@ -1239,17 +1172,17 @@ paths: $ref: '#/components/schemas/MalnutritionDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/MalnutritionDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Malnutritions + - Malnutritions operationId: newMalnutrition requestBody: content: @@ -1258,66 +1191,66 @@ paths: $ref: '#/components/schemas/MalnutritionDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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: @@ -1325,91 +1258,91 @@ paths: $ref: '#/components/schemas/LabWithRowsDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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: @@ -1417,25 +1350,25 @@ paths: $ref: '#/components/schemas/HospitalDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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: @@ -1443,44 +1376,44 @@ paths: $ref: '#/components/schemas/ExamTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /exams/{code}: put: tags: - - Exams + - Exams operationId: updateExams parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string requestBody: content: application/json: @@ -1488,65 +1421,65 @@ paths: $ref: '#/components/schemas/ExamDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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: @@ -1554,21 +1487,21 @@ paths: $ref: '#/components/schemas/PatientExaminationDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /diseasetypes: get: tags: - - Disease Types + - Disease Types operationId: getAllDiseaseTypes responses: - '200': + "200": description: OK content: application/json: @@ -1577,10 +1510,10 @@ paths: items: $ref: '#/components/schemas/DiseaseTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Disease Types + - Disease Types operationId: updateDiseaseType requestBody: content: @@ -1589,17 +1522,17 @@ paths: $ref: '#/components/schemas/DiseaseTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/DiseaseTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Disease Types + - Disease Types operationId: newDiseaseType requestBody: content: @@ -1608,18 +1541,18 @@ paths: $ref: '#/components/schemas/DiseaseTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/DiseaseTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] /diseases: put: tags: - - Diseases + - Diseases operationId: updateDisease requestBody: content: @@ -1628,17 +1561,17 @@ paths: $ref: '#/components/schemas/DiseaseDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/DiseaseDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Diseases + - Diseases operationId: newDisease requestBody: content: @@ -1647,21 +1580,21 @@ paths: $ref: '#/components/schemas/DiseaseDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/DiseaseDTO' security: - - bearerAuth: [] + - bearerAuth: [] /dischargetypes: get: tags: - - DischargeType + - DischargeType operationId: getDischargeTypes responses: - '200': + "200": description: OK content: application/json: @@ -1670,10 +1603,10 @@ paths: items: $ref: '#/components/schemas/DischargeTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - DischargeType + - DischargeType operationId: updateDischargeTypet requestBody: content: @@ -1682,17 +1615,17 @@ paths: $ref: '#/components/schemas/DischargeTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/DischargeTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - DischargeType + - DischargeType operationId: newDischargeType requestBody: content: @@ -1701,21 +1634,21 @@ paths: $ref: '#/components/schemas/DischargeTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/DischargeTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] /deliverytypes: get: tags: - - Delivery Type + - Delivery Type operationId: getDeliveryTypes responses: - '200': + "200": description: OK content: application/json: @@ -1724,10 +1657,10 @@ paths: items: $ref: '#/components/schemas/DeliveryTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Delivery Type + - Delivery Type operationId: updateDeliveryTypes requestBody: content: @@ -1736,17 +1669,17 @@ paths: $ref: '#/components/schemas/DeliveryTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/DeliveryTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Delivery Type + - Delivery Type operationId: newDeliveryType requestBody: content: @@ -1755,21 +1688,21 @@ paths: $ref: '#/components/schemas/DeliveryTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/DeliveryTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] /deliveryresulttypes: get: tags: - - Delivery Result Type + - Delivery Result Type operationId: getDeliveryResultTypes responses: - '200': + "200": description: OK content: application/json: @@ -1778,10 +1711,10 @@ paths: items: $ref: '#/components/schemas/DeliveryResultTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Delivery Result Type + - Delivery Result Type operationId: updateDeliveryResultTypes requestBody: content: @@ -1790,17 +1723,17 @@ paths: $ref: '#/components/schemas/DeliveryResultTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/DeliveryResultTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Delivery Result Type + - Delivery Result Type operationId: newDeliveryResultType requestBody: content: @@ -1809,46 +1742,46 @@ paths: $ref: '#/components/schemas/DeliveryResultTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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: @@ -1856,41 +1789,41 @@ paths: $ref: '#/components/schemas/FullBillDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /agetypes: get: tags: - - AgeTypes + - AgeTypes operationId: getAllAgeTypes responses: - '200': + "200": description: OK content: application/json: @@ -1899,10 +1832,10 @@ paths: items: $ref: '#/components/schemas/AgeTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - AgeTypes + - AgeTypes operationId: updateAgeType requestBody: content: @@ -1911,21 +1844,21 @@ paths: $ref: '#/components/schemas/AgeTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/AgeTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] /admissiontypes: get: tags: - - AdmissionTypes + - AdmissionTypes operationId: getAdmissionTypes responses: - '200': + "200": description: OK content: application/json: @@ -1934,10 +1867,10 @@ paths: items: $ref: '#/components/schemas/AdmissionTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - AdmissionTypes + - AdmissionTypes operationId: updateAdmissionTypes requestBody: content: @@ -1946,17 +1879,17 @@ paths: $ref: '#/components/schemas/AdmissionTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/AdmissionTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - AdmissionTypes + - AdmissionTypes operationId: newAdmissionType requestBody: content: @@ -1965,61 +1898,61 @@ paths: $ref: '#/components/schemas/AdmissionTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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 - responses: - '200': + - 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 + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/PageAdmissionDTO' - '400': - description: Bad Request security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Admissions + - Admissions operationId: updateAdmissions requestBody: content: @@ -2028,19 +1961,19 @@ paths: $ref: '#/components/schemas/AdmissionDTO' required: true responses: - '200': + "400": + description: Bad Request + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/AdmissionDTO' - '400': - description: Bad Request security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Admissions + - Admissions operationId: newAdmissions requestBody: content: @@ -2049,20 +1982,20 @@ paths: $ref: '#/components/schemas/AdmissionDTO' required: true responses: - '200': + "400": + description: Bad Request + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/AdmissionDTO' - '400': - description: Bad Request security: - - bearerAuth: [] + - bearerAuth: [] /visits: post: tags: - - Visit + - Visit operationId: newVisit requestBody: content: @@ -2071,18 +2004,18 @@ paths: $ref: '#/components/schemas/VisitDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/VisitDTO' security: - - bearerAuth: [] + - bearerAuth: [] /visits/insertList: post: tags: - - Visit + - Visit operationId: newVisits requestBody: content: @@ -2093,21 +2026,21 @@ paths: $ref: '#/components/schemas/VisitDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /users/settings: get: tags: - - Users + - Users operationId: getUserSettings responses: - '200': + "200": description: OK content: application/json: @@ -2116,10 +2049,10 @@ paths: items: $ref: '#/components/schemas/UserSettingDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Users + - Users operationId: newUserSettings requestBody: content: @@ -2128,18 +2061,18 @@ paths: $ref: '#/components/schemas/UserSettingDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/UserSettingDTO' security: - - bearerAuth: [] + - bearerAuth: [] /therapies: post: tags: - - Therapies + - Therapies operationId: newTherapy requestBody: content: @@ -2148,18 +2081,18 @@ paths: $ref: '#/components/schemas/TherapyRowDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/TherapyRowDTO' security: - - bearerAuth: [] + - bearerAuth: [] /therapies/replace: post: tags: - - Therapies + - Therapies operationId: replaceTherapies requestBody: content: @@ -2170,18 +2103,18 @@ paths: $ref: '#/components/schemas/TherapyRowDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/TherapyRow' security: - - bearerAuth: [] + - bearerAuth: [] /therapies/meds-out-of-stock: post: tags: - - Therapies + - Therapies operationId: getMedicalsOutOfStock requestBody: content: @@ -2192,7 +2125,7 @@ paths: $ref: '#/components/schemas/TherapyDTO' required: true responses: - '200': + "200": description: OK content: application/json: @@ -2201,11 +2134,11 @@ paths: items: $ref: '#/components/schemas/MedicalDTO' security: - - bearerAuth: [] + - bearerAuth: [] /therapies/from-rows: post: tags: - - Therapies + - Therapies operationId: getTherapies requestBody: content: @@ -2216,7 +2149,7 @@ paths: $ref: '#/components/schemas/TherapyRowDTO' required: true responses: - '200': + "200": description: OK content: application/json: @@ -2225,11 +2158,11 @@ paths: items: $ref: '#/components/schemas/TherapyDTO' security: - - bearerAuth: [] + - bearerAuth: [] /therapies/from-row: post: tags: - - Therapies + - Therapies operationId: getTherapy requestBody: content: @@ -2238,32 +2171,88 @@ paths: $ref: '#/components/schemas/TherapyRowDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/TherapyDTO' security: - - bearerAuth: [] + - bearerAuth: [] + /stockmovements/discharge: + post: + tags: + - Stock Movements + operationId: newMultipleDischargingMovements + parameters: + - name: ref + in: query + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/MovementDTO' + required: true + responses: + "200": + description: OK + content: + application/json: + schema: + type: boolean + security: + - bearerAuth: [] + /stockmovements/charge: + post: + tags: + - Stock Movements + operationId: newMultipleChargingMovements + parameters: + - name: ref + in: query + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/MovementDTO' + required: true + responses: + "200": + description: OK + content: + application/json: + schema: + type: boolean + security: + - 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': + "200": description: OK content: application/json: @@ -2272,18 +2261,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: @@ -2291,18 +2280,18 @@ paths: $ref: '#/components/schemas/SmsDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /sms/delete: post: tags: - - SMS + - SMS operationId: deleteSms requestBody: content: @@ -2313,21 +2302,21 @@ paths: $ref: '#/components/schemas/SmsDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /pricesothers: get: tags: - - Others Price + - Others Price operationId: getPricesOthers responses: - '200': + "200": description: OK content: application/json: @@ -2336,10 +2325,10 @@ paths: items: $ref: '#/components/schemas/PricesOthersDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Others Price + - Others Price operationId: newPricesOthers requestBody: content: @@ -2348,21 +2337,21 @@ paths: $ref: '#/components/schemas/PricesOthersDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/PricesOthersDTO' security: - - bearerAuth: [] + - bearerAuth: [] /pricelists: get: tags: - - Price Lists + - Price Lists operationId: getPriceLists responses: - '200': + "200": description: OK content: application/json: @@ -2371,10 +2360,10 @@ paths: items: $ref: '#/components/schemas/PriceListDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Price Lists + - Price Lists operationId: newPriceList requestBody: content: @@ -2383,21 +2372,21 @@ paths: $ref: '#/components/schemas/PriceListDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/PriceListDTO' security: - - bearerAuth: [] + - bearerAuth: [] /pregnanttreatmenttypes: get: tags: - - Pregnant Treatment Types + - Pregnant Treatment Types operationId: getPregnantTreatmentTypes responses: - '200': + "200": description: OK content: application/json: @@ -2406,10 +2395,10 @@ paths: items: $ref: '#/components/schemas/PregnantTreatmentTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Pregnant Treatment Types + - Pregnant Treatment Types operationId: newPregnantTreatmentType requestBody: content: @@ -2418,101 +2407,66 @@ paths: $ref: '#/components/schemas/PregnantTreatmentTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/PregnantTreatmentTypeDTO' security: - - bearerAuth: [] - /permissions: - get: - tags: - - Permissions - operationId: retrieveAllPermissions - responses: - '200': - description: OK - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PermissionDTO' - security: - - bearerAuth: [] + - bearerAuth: [] + /patientvaccines: post: tags: - - Permissions - operationId: insertPermission + - Patient Vaccines + operationId: newPatientVaccine requestBody: content: application/json: schema: - $ref: '#/components/schemas/PermissionDTO' + $ref: '#/components/schemas/PatientVaccineDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/PermissionDTO' + $ref: '#/components/schemas/PatientVaccineDTO' security: - - bearerAuth: [] - /patientvaccines: - post: - tags: - - Patient Vaccines - operationId: newPatientVaccine - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatientVaccineDTO' - required: true - responses: - '200': - description: OK - content: - application/json: - 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': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/PagePatientDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Patients + - Patients operationId: newPatient requestBody: content: @@ -2521,21 +2475,21 @@ paths: $ref: '#/components/schemas/PatientDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/PatientDTO' security: - - bearerAuth: [] + - bearerAuth: [] /operationtypes: get: tags: - - Operations Types + - Operations Types operationId: getOperationTypes responses: - '200': + "200": description: OK content: application/json: @@ -2544,10 +2498,10 @@ paths: items: $ref: '#/components/schemas/OperationTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Operations Types + - Operations Types operationId: newOperationType requestBody: content: @@ -2556,21 +2510,21 @@ paths: $ref: '#/components/schemas/OperationTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/OperationTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] /operations: get: tags: - - Operations + - Operations operationId: getOperations responses: - '200': + "200": description: OK content: application/json: @@ -2579,10 +2533,10 @@ paths: items: $ref: '#/components/schemas/OperationDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Operations + - Operations operationId: newOperation requestBody: content: @@ -2591,18 +2545,18 @@ paths: $ref: '#/components/schemas/OperationDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/OperationDTO' security: - - bearerAuth: [] + - bearerAuth: [] /operations/rows/search/opd: post: tags: - - Operations + - Operations operationId: getOperationRowsByOpd requestBody: content: @@ -2611,7 +2565,7 @@ paths: $ref: '#/components/schemas/OpdDTO' required: true responses: - '200': + "200": description: OK content: application/json: @@ -2620,11 +2574,11 @@ paths: items: $ref: '#/components/schemas/OperationRowDTO' security: - - bearerAuth: [] + - bearerAuth: [] /opds: post: tags: - - Opds + - Opds operationId: newOpd requestBody: content: @@ -2633,18 +2587,18 @@ paths: $ref: '#/components/schemas/OpdDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/OpdDTO' security: - - bearerAuth: [] + - bearerAuth: [] /opds/rows: post: tags: - - Opds + - Opds operationId: newOpdWithOperationRow requestBody: content: @@ -2653,18 +2607,18 @@ paths: $ref: '#/components/schemas/OpdWithOperationRowDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/OpdWithOperationRowDTO' security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockward/movements: post: tags: - - Medical Stock Ward + - Medical Stock Ward operationId: newMovementWard requestBody: content: @@ -2673,25 +2627,25 @@ paths: $ref: '#/components/schemas/MovementWardDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/discharge: post: tags: - - Stock Movements - operationId: newMultipleDischargingMovements + - 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: @@ -2701,25 +2655,25 @@ paths: $ref: '#/components/schemas/MovementDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/charge: post: tags: - - Stock Movements - operationId: newMultipleChargingMovements + - 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: @@ -2729,49 +2683,49 @@ paths: $ref: '#/components/schemas/MovementDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/PageLabWithRowsDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Laboratories + - Laboratories operationId: newLaboratory requestBody: content: @@ -2780,18 +2734,18 @@ paths: $ref: '#/components/schemas/LabWithRowsDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/insertList: post: tags: - - Laboratories + - Laboratories operationId: newLaboratory2 requestBody: content: @@ -2802,21 +2756,21 @@ paths: $ref: '#/components/schemas/LabWithRowsDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/examRequest: get: tags: - - Laboratories + - Laboratories operationId: getLaboratoryExamRequest responses: - '200': + "200": description: OK content: application/json: @@ -2825,10 +2779,10 @@ paths: items: $ref: '#/components/schemas/LaboratoryDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Laboratories + - Laboratories operationId: newExamRequest requestBody: content: @@ -2837,21 +2791,21 @@ paths: $ref: '#/components/schemas/LaboratoryDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /examtypes: get: tags: - - Exam Types + - Exam Types operationId: getExamTypes responses: - '200': + "200": description: OK content: application/json: @@ -2860,10 +2814,10 @@ paths: items: $ref: '#/components/schemas/ExamTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Exam Types + - Exam Types operationId: newExamType requestBody: content: @@ -2872,21 +2826,21 @@ paths: $ref: '#/components/schemas/ExamTypeDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/ExamTypeDTO' security: - - bearerAuth: [] + - bearerAuth: [] /exams: get: tags: - - Exams + - Exams operationId: getExams responses: - '200': + "200": description: OK content: application/json: @@ -2895,10 +2849,10 @@ paths: items: $ref: '#/components/schemas/ExamDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Exams + - Exams operationId: newExam requestBody: content: @@ -2907,21 +2861,21 @@ paths: $ref: '#/components/schemas/ExamDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/ExamDTO' security: - - bearerAuth: [] + - bearerAuth: [] /examrows: get: tags: - - Exam Rows + - Exam Rows operationId: getExamRows responses: - '200': + "200": description: OK content: application/json: @@ -2930,10 +2884,10 @@ paths: items: $ref: '#/components/schemas/ExamRowDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Exam Rows + - Exam Rows operationId: newExamRow requestBody: content: @@ -2942,18 +2896,18 @@ paths: $ref: '#/components/schemas/ExamRowDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/ExamRowDTO' security: - - bearerAuth: [] + - bearerAuth: [] /examinations: post: tags: - - Examinations + - Examinations operationId: newPatientExamination requestBody: content: @@ -2962,38 +2916,38 @@ paths: $ref: '#/components/schemas/PatientExaminationDTO' required: true responses: - '200': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: @@ -3002,10 +2956,10 @@ paths: items: $ref: '#/components/schemas/BillDTO' security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Bills + - Bills operationId: newBill requestBody: content: @@ -3014,18 +2968,18 @@ paths: $ref: '#/components/schemas/FullBillDTO' required: true responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/FullBillDTO' security: - - bearerAuth: [] + - bearerAuth: [] /bills/search/by/payments: post: tags: - - Bills + - Bills operationId: searchBillsByPayments requestBody: content: @@ -3036,7 +2990,7 @@ paths: $ref: '#/components/schemas/BillPaymentsDTO' required: true responses: - '200': + "200": description: OK content: application/json: @@ -3045,23 +2999,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: @@ -3069,7 +3023,7 @@ paths: $ref: '#/components/schemas/BillItemsDTO' required: true responses: - '200': + "200": description: OK content: application/json: @@ -3078,20 +3032,20 @@ paths: items: $ref: '#/components/schemas/BillDTO' security: - - bearerAuth: [] + - bearerAuth: [] /auth/logout: post: tags: - - Login + - Login description: Logout the current user. operationId: logout responses: - '200': + "200": description: OK /auth/login: post: tags: - - Login + - Login operationId: authenticateUser requestBody: content: @@ -3100,26 +3054,26 @@ paths: $ref: '#/components/schemas/LoginRequest' required: true responses: - '200': + "200": description: OK content: application/json: 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: @@ -3127,23 +3081,23 @@ paths: $ref: '#/components/schemas/AdmissionDTO' required: true responses: - '200': + "400": + description: Bad Request + "200": description: OK content: application/json: schema: type: boolean - '400': - description: Bad Request security: - - bearerAuth: [] + - bearerAuth: [] /wardsNoMaternity: get: tags: - - Wards + - Wards operationId: getWardsNoMaternity responses: - '200': + "200": description: OK content: application/json: @@ -3152,20 +3106,20 @@ 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': + "200": description: OK content: application/json: @@ -3173,61 +3127,61 @@ 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: @@ -3236,40 +3190,40 @@ 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: @@ -3278,98 +3232,98 @@ 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': + "200": description: OK content: application/json: schema: type: boolean 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': + "200": description: OK content: application/json: 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: - '200': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /users/{userName}/settings/{configName}: get: tags: - - Users + - Users operationId: getUserSettingByUser parameters: - - name: userName - in: path - required: true - schema: - type: string - - name: configName - in: path - required: true - schema: - type: string + - name: userName + in: path + required: true + schema: + type: string + - name: configName + in: path + required: true + schema: + type: string responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/UserSettingDTO' security: - - bearerAuth: [] + - bearerAuth: [] /users/permissions: get: tags: - - Users + - Users operationId: retrievePermissionsByCurrentLoggedInUser responses: - '200': + "200": description: OK content: application/json: @@ -3378,20 +3332,20 @@ paths: items: $ref: '#/components/schemas/LitePermissionDTO' security: - - bearerAuth: [] + - bearerAuth: [] /users/permissions/username/{username}: 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': + "200": description: OK content: application/json: @@ -3400,35 +3354,35 @@ paths: items: $ref: '#/components/schemas/LitePermissionDTO' security: - - bearerAuth: [] + - bearerAuth: [] /users/me: get: tags: - - Users + - Users operationId: retrieveProfileByCurrentLoggedInUser responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/UserProfileDTO' 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': + "200": description: OK content: application/json: @@ -3437,55 +3391,251 @@ 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/SupplierDTO' security: - - bearerAuth: [] + - bearerAuth: [] + /stockmovements: + get: + tags: + - Stock Movements + operationId: getMovements + responses: + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/MovementDTO' + security: + - bearerAuth: [] + /stockmovements/{ref}: + get: + tags: + - Stock Movements + operationId: getMovements_1 + parameters: + - name: ref + in: path + required: true + schema: + type: string + responses: + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/MovementDTO' + security: + - bearerAuth: [] + /stockmovements/lot/{med_code}: + get: + tags: + - Stock Movements + operationId: getLotByMedical + parameters: + - name: med_code + in: path + required: true + schema: + type: integer + format: int32 + responses: + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/LotDTO' + security: + - bearerAuth: [] + /stockmovements/filter/v2: + get: + tags: + - 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 + responses: + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/MovementDTO' + security: + - bearerAuth: [] + /stockmovements/filter/v1: + get: + tags: + - 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 + responses: + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/MovementDTO' + security: + - bearerAuth: [] + /stockmovements/critical/check: + get: + tags: + - 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 + responses: + "200": + description: OK + content: + application/json: + schema: + type: boolean + security: + - bearerAuth: [] /reports/exams-list: get: tags: - - Reports + - Reports operationId: printExamsListPdf responses: - '200': + "200": description: OK content: application/json: @@ -3495,14 +3645,14 @@ paths: type: string format: byte security: - - bearerAuth: [] + - bearerAuth: [] /reports/diseases-list: get: tags: - - Reports + - Reports operationId: printDiseasesListPdf responses: - '200': + "200": description: OK content: application/json: @@ -3512,14 +3662,14 @@ paths: type: string format: byte security: - - bearerAuth: [] + - bearerAuth: [] /pricelists/prices: get: tags: - - Price Lists + - Price Lists operationId: getPrices responses: - '200': + "200": description: OK content: application/json: @@ -3528,74 +3678,111 @@ 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] + /permissions: + get: + tags: + - Permissions + operationId: retrieveAllPermissions + responses: + "200": + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/PermissionDTO' + security: + - bearerAuth: [] + /permissions/{id}: + get: + tags: + - Permissions + operationId: retrievePermissionById + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int32 + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PermissionDTO' + security: + - bearerAuth: [] /permissions/userGroupCode/{userGroupCode}: get: tags: - - Permissions - operationId: retrievePermissionsByUserGroupcode + - Permissions + operationId: retrievePermissionsByUserGroupCode parameters: - - name: userGroupCode - in: path - required: true - schema: - type: string + - name: userGroupCode + in: path + required: true + schema: + type: string responses: - '200': + "200": description: OK content: application/json: @@ -3604,40 +3791,40 @@ 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: @@ -3646,21 +3833,21 @@ 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': + "200": description: OK content: application/json: @@ -3668,54 +3855,54 @@ 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': + "200": description: OK content: application/json: @@ -3724,39 +3911,39 @@ 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': + "200": description: OK content: application/json: @@ -3765,14 +3952,14 @@ paths: items: $ref: '#/components/schemas/PatientDTO' security: - - bearerAuth: [] + - bearerAuth: [] /patients/nextcode: get: tags: - - Patients + - Patients operationId: getPatientNextCode responses: - '200': + "200": description: OK content: application/json: @@ -3780,41 +3967,41 @@ 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': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /patients/cities: get: tags: - - Patients + - Patients operationId: getPatientCities responses: - '200': + "200": description: OK content: application/json: @@ -3823,41 +4010,41 @@ 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: @@ -3866,21 +4053,21 @@ 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': + "200": description: OK content: application/json: @@ -3889,21 +4076,21 @@ 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': + "200": description: OK content: application/json: @@ -3912,20 +4099,20 @@ 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': + "200": description: OK content: application/json: @@ -3934,114 +4121,114 @@ 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: @@ -4050,69 +4237,69 @@ 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: @@ -4120,99 +4307,99 @@ 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: @@ -4221,32 +4408,32 @@ 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': + "200": description: OK content: application/json: @@ -4255,32 +4442,32 @@ 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': + "200": description: OK content: application/json: @@ -4289,26 +4476,26 @@ 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': + "200": description: OK content: application/json: @@ -4316,14 +4503,14 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements: get: tags: - - Stock Movements - operationId: getMovements + - Stock Movements + operationId: getMovements_4 responses: - '200': + "200": description: OK content: application/json: @@ -4332,20 +4519,20 @@ paths: items: $ref: '#/components/schemas/MovementDTO' security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/{ref}: get: tags: - - Stock Movements - operationId: getMovements_1 + - 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': + "200": description: OK content: application/json: @@ -4354,21 +4541,21 @@ paths: items: $ref: '#/components/schemas/MovementDTO' security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/lot/{med_code}: get: tags: - - Stock Movements - operationId: getLotByMedical + - 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': + "200": description: OK content: application/json: @@ -4377,72 +4564,72 @@ paths: items: $ref: '#/components/schemas/LotDTO' security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/filter/v2: get: tags: - - Stock Movements - operationId: getMovements_2 + - 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': + "200": description: OK content: application/json: @@ -4451,32 +4638,32 @@ paths: items: $ref: '#/components/schemas/MovementDTO' security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/filter/v1: get: tags: - - Stock Movements - operationId: getMovements_3 + - 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': + "200": description: OK content: application/json: @@ -4485,105 +4672,105 @@ paths: items: $ref: '#/components/schemas/MovementDTO' security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/critical/check: get: tags: - - Stock Movements - operationId: alertCriticalQuantity + - 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: @@ -4592,20 +4779,20 @@ 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': + "200": description: OK content: application/json: @@ -4614,35 +4801,35 @@ 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': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/MalnutritionDTO' security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/materials: get: tags: - - Laboratories + - Laboratories operationId: getMaterials responses: - '200': + "200": description: OK content: application/json: @@ -4651,106 +4838,106 @@ 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 - responses: - '200': + - 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 content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: @@ -4759,21 +4946,21 @@ 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': + "200": description: OK content: application/json: @@ -4782,48 +4969,48 @@ paths: items: $ref: '#/components/schemas/LabWithRowsDTO' security: - - bearerAuth: [] + - bearerAuth: [] /hospitals: get: tags: - - Hospitals + - Hospitals operationId: getHospital responses: - '200': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/HospitalDTO' security: - - bearerAuth: [] + - bearerAuth: [] /hospitals/currencyCode: get: tags: - - Hospitals + - Hospitals operationId: getHospitalCurrencyCode responses: - '200': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: @@ -4832,21 +5019,21 @@ 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': + "200": description: OK content: application/json: @@ -4855,46 +5042,46 @@ 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: @@ -4903,20 +5090,20 @@ 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': + "200": description: OK content: application/json: @@ -4925,111 +5112,111 @@ 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 - responses: - '200': + - 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 content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: @@ -5038,39 +5225,39 @@ 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: @@ -5079,14 +5266,14 @@ paths: additionalProperties: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /diseases/opd: get: tags: - - Diseases + - Diseases operationId: getDiseasesOpd responses: - '200': + "200": description: OK content: application/json: @@ -5095,20 +5282,20 @@ 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': + "200": description: OK content: application/json: @@ -5117,14 +5304,14 @@ paths: items: $ref: '#/components/schemas/DiseaseDTO' security: - - bearerAuth: [] + - bearerAuth: [] /diseases/ipd/out: get: tags: - - Diseases + - Diseases operationId: getDiseasesIpdOut responses: - '200': + "200": description: OK content: application/json: @@ -5133,20 +5320,20 @@ 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': + "200": description: OK content: application/json: @@ -5155,14 +5342,14 @@ paths: items: $ref: '#/components/schemas/DiseaseDTO' security: - - bearerAuth: [] + - bearerAuth: [] /diseases/ipd/in: get: tags: - - Diseases + - Diseases operationId: getDiseasesIpdIn responses: - '200': + "200": description: OK content: application/json: @@ -5171,20 +5358,20 @@ 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': + "200": description: OK content: application/json: @@ -5193,14 +5380,14 @@ paths: items: $ref: '#/components/schemas/DiseaseDTO' security: - - bearerAuth: [] + - bearerAuth: [] /diseases/both: get: tags: - - Diseases + - Diseases operationId: getDiseases responses: - '200': + "200": description: OK content: application/json: @@ -5209,20 +5396,20 @@ 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': + "200": description: OK content: application/json: @@ -5231,14 +5418,14 @@ paths: items: $ref: '#/components/schemas/DiseaseDTO' security: - - bearerAuth: [] + - bearerAuth: [] /diseases/all: get: tags: - - Diseases + - Diseases operationId: getAllDiseases responses: - '200': + "200": description: OK content: application/json: @@ -5247,21 +5434,21 @@ 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': + "200": description: OK content: application/json: @@ -5270,21 +5457,21 @@ 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': + "200": description: OK content: application/json: @@ -5293,31 +5480,31 @@ 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': + "200": description: OK content: application/json: @@ -5326,21 +5513,21 @@ 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': + "200": description: OK content: application/json: @@ -5349,14 +5536,14 @@ paths: items: $ref: '#/components/schemas/BillPaymentsDTO' security: - - bearerAuth: [] + - bearerAuth: [] /bills/items: get: tags: - - Bills + - Bills operationId: getDistinctItems responses: - '200': + "200": description: OK content: application/json: @@ -5365,21 +5552,21 @@ 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': + "200": description: OK content: application/json: @@ -5388,42 +5575,42 @@ 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': + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/AgeType' 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': + "200": description: OK content: application/json: @@ -5432,21 +5619,23 @@ 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 + - name: patientCode + in: path + required: true + schema: + type: integer + format: int32 responses: - '200': + "400": + description: Bad Request + "200": description: OK content: application/json: @@ -5454,145 +5643,145 @@ paths: type: array items: $ref: '#/components/schemas/AdmissionDTO' - '400': - description: Bad Request 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: - '200': + "400": + description: Bad Request + "200": description: OK content: application/json: schema: type: integer format: int32 - '400': - description: Bad Request 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: - '200': + "400": + description: Bad Request + "200": description: OK content: application/json: schema: type: integer format: int32 - '400': - description: Bad Request 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 - responses: - '200': + - 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 + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/PageAdmissionDTO' - '400': - description: Bad Request 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: - '200': + "400": + description: Bad Request + "200": description: OK content: application/json: schema: $ref: '#/components/schemas/AdmissionDTO' - '400': - description: Bad Request 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: - '200': + "400": + description: Bad Request + "200": description: OK content: application/json: @@ -5600,165 +5789,163 @@ paths: type: array items: $ref: '#/components/schemas/AdmittedPatientDTO' - '400': - description: Bad Request 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /users/groups/{group_code}: delete: tags: - - Users + - Users operationId: deleteGroup parameters: - - name: group_code - in: path - required: true - schema: - type: string + - name: group_code + in: path + required: true + schema: + type: string responses: - '200': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: @@ -5767,119 +5954,119 @@ 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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': + "200": description: OK content: application/json: 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: - '200': + "400": + description: Bad Request + "200": description: OK content: application/json: schema: type: boolean - '400': - description: Bad Request security: - - bearerAuth: [] + - bearerAuth: [] components: schemas: WardDTO: required: - - beds - - description - - docs - - nurs - - visitDuration + - beds + - description + - docs + - nurs + - visitDuration type: object properties: code: @@ -5919,24 +6106,24 @@ components: description: lock format: int32 example: 0 - pharmacy: - type: boolean - male: + opd: type: boolean female: type: boolean - opd: + male: + type: boolean + pharmacy: type: boolean PatientDTO: required: - - age - - bloodType - - city - - fatherName - - firstName - - motherName - - secondName - - sex + - age + - bloodType + - city + - fatherName + - firstName + - motherName + - secondName + - sex type: object properties: code: @@ -5959,7 +6146,7 @@ components: birthDate: type: string description: Birth date - example: '1979-05-01' + example: 1979-05-01 age: type: integer description: Age @@ -5968,19 +6155,19 @@ components: agetype: type: string description: Age type - example: 'null' + example: "null" sex: type: string description: Sex example: M enum: - - M - - F + - M + - F address: maxLength: 50 type: string description: Address - example: Via Roma, 12 + example: "Via Roma, 12" city: maxLength: 50 type: string @@ -5993,7 +6180,7 @@ components: maxLength: 50 type: string description: Telephone - example: '+393456789012' + example: "+393456789012" note: maxLength: 65535 type: string @@ -6006,11 +6193,11 @@ components: example: Roberta mother: type: string - description: Mother's status (D=dead, A=alive) + description: "Mother's status (D=dead, A=alive)" example: A enum: - - D - - A + - D + - A fatherName: maxLength: 50 type: string @@ -6018,38 +6205,38 @@ components: example: Giuseppe father: type: string - description: Father's status (D=dead, A=alive) + 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-/+) + 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' + 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' + description: "Parent together (Y=Yes, N=no)" + example: "N" enum: - - 'Y' - - 'N' + - "Y" + - "N" taxCode: maxLength: 30 type: string @@ -6084,8 +6271,8 @@ components: description: Status example: I enum: - - I - - O + - I + - O consensusFlag: type: boolean description: Consensus flag @@ -6097,8 +6284,8 @@ components: description: Class representing a patient VisitDTO: required: - - date - - patient + - date + - patient type: object properties: visitID: @@ -6110,7 +6297,7 @@ components: date: type: string description: Date of the visit - example: '2020-03-19T14:58:00' + example: 2020-03-19T14:58:00 note: maxLength: 65535 type: string @@ -6131,8 +6318,8 @@ components: description: Class representing a vaccine type VaccineTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -6148,16 +6335,16 @@ components: description: Class representing a vaccine type VaccineDTO: required: - - code - - description - - vaccineType + - code + - description + - vaccineType type: object properties: code: maxLength: 10 type: string description: Code of the vaccine - example: '1' + example: "1" description: maxLength: 50 type: string @@ -6173,9 +6360,9 @@ components: description: Class representing a vaccine UserDTO: required: - - passwd - - userGroupName - - userName + - passwd + - userGroupName + - userName type: object properties: userName: @@ -6197,7 +6384,7 @@ components: example: Lab chief technician UserGroupDTO: required: - - code + - code type: object properties: code: @@ -6213,10 +6400,10 @@ components: description: The user's group UserSettingDTO: required: - - configName - - configValue - - id - - user + - configName + - configValue + - id + - user type: object properties: id: @@ -6239,15 +6426,14 @@ components: description: The value of the user SupplierDTO: required: - - supId - - supName + - supDeleted + - supId + - supName type: object properties: supId: type: integer - description: The supplier's ID format: int32 - example: 111 supName: maxLength: 100 type: string @@ -6257,22 +6443,22 @@ components: maxLength: 150 type: string description: The supplier's address - example: 25 Rue Ministre, Dschang + example: "25 Rue Ministre, Dschang" supTaxcode: maxLength: 50 type: string description: The supplier's tax code - example: '5221' + example: "5221" supPhone: maxLength: 20 type: string description: The supplier's phone - example: '+237654120145' + example: "+237654120145" supFax: maxLength: 20 type: string description: The supplier's fax number - example: '+237654120145' + example: "+237654120145" supEmail: maxLength: 100 type: string @@ -6282,13 +6468,17 @@ components: maxLength: 200 type: string description: The supplier's notes + supDeleted: + type: string + description: "Flag record deleted, values are 'Y' OR 'N' " + example: "N" PricesOthersDTO: required: - - code - - daily - - description - - ipdInclude - - opdInclude + - code + - daily + - description + - ipdInclude + - opdInclude type: object properties: id: @@ -6351,8 +6541,8 @@ components: description: Class representing a price list PregnantTreatmentTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -6368,35 +6558,12 @@ components: format: int32 readOnly: true description: Class representing a pregnant treatment type - PermissionDTO: - required: - - description - - id - - userGroupIds - type: object - properties: - name: - type: string - id: - type: integer - description: The permission id - format: int32 - description: - maxLength: 255 - type: string - description: The permission description - userGroupIds: - type: array - description: The user group id - items: - type: string - description: The user group id PatientVaccineDTO: required: - - patient - - progr - - vaccine - - vaccineDate + - patient + - progr + - vaccine + - vaccineDate type: object properties: code: @@ -6425,7 +6592,7 @@ components: readOnly: true PatientConsensusDTO: required: - - patientId + - patientId type: object properties: consensusFlag: @@ -6441,8 +6608,8 @@ components: description: Class representing a patient consensus OperationTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -6455,10 +6622,10 @@ components: description: The operation type OperationDTO: required: - - code - - description - - major - - type + - code + - description + - major + - type type: object properties: code: @@ -6482,10 +6649,10 @@ components: example: 0 AdmissionDTO: required: - - admDate - - admitted - - deleted - - type + - admDate + - admitted + - deleted + - type type: object properties: id: @@ -6501,7 +6668,7 @@ components: type: type: string description: Type of admission - example: 'N' + example: "N" ward: $ref: '#/components/schemas/WardDTO' patient: @@ -6527,7 +6694,7 @@ components: opResult: type: string description: 'Operation result value is ''P'' or ''N'' ' - example: 'N' + example: "N" disDate: type: string description: Discharge date @@ -6580,8 +6747,8 @@ components: example: 0 deleted: type: string - description: 'Flag record deleted, values are ''Y'' OR ''N'' ' - example: 'N' + description: "Flag record deleted, values are 'Y' OR 'N' " + example: "N" yprog: type: integer format: int32 @@ -6590,8 +6757,8 @@ components: description: The admission AdmissionTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -6606,15 +6773,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: @@ -6628,11 +6795,11 @@ components: date: type: string description: Date of bill creation - example: '2020-03-19T14:58:00.000Z' + example: 2020-03-19T14:58:00.000Z update: type: string description: Date of bill updated - example: '2020-03-19T14:58:00.000Z' + example: 2020-03-19T14:58:00.000Z listName: maxLength: 50 type: string @@ -6670,8 +6837,8 @@ components: description: Class representing a bill DeliveryResultTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -6686,14 +6853,14 @@ components: description: Delivery result type DeliveryTypeDTO: required: - - code - - description + - code + - description type: object properties: code: type: string description: Code of the delivery type - example: 'N' + example: "N" description: maxLength: 50 type: string @@ -6702,8 +6869,8 @@ components: description: Delivery type DischargeTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -6718,19 +6885,19 @@ components: description: DisChargeType DiseaseDTO: required: - - code - - description - - diseaseType - - ipdInInclude - - ipdOutInclude - - opdInclude + - code + - description + - diseaseType + - ipdInInclude + - ipdOutInclude + - opdInclude type: object properties: code: maxLength: 10 type: string description: Disease code - example: '99' + example: "99" description: maxLength: 50 type: string @@ -6761,8 +6928,8 @@ components: description: Class representing a disease DiseaseTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -6776,11 +6943,11 @@ components: description: Class representing a disease type OpdDTO: required: - - age - - newPatient - - note - - sex - - ward + - age + - newPatient + - note + - sex + - ward type: object properties: code: @@ -6814,7 +6981,7 @@ components: ageType: type: string description: Age type - example: 'null' + example: "null" note: maxLength: 65535 type: string @@ -6834,7 +7001,7 @@ components: newPatient: type: string description: New(N) or Reattendance(R) patient - example: 'N' + example: "N" referralFrom: type: string description: Referral from another unit @@ -6875,10 +7042,10 @@ components: description: The opd OperationRowDTO: required: - - opDate - - opResult - - operation - - prescriber + - opDate + - opResult + - operation + - prescriber type: object properties: id: @@ -6926,9 +7093,9 @@ components: $ref: '#/components/schemas/OperationRowDTO' MovementTypeDTO: required: - - code - - description - - type + - code + - description + - type type: object properties: code: @@ -6944,11 +7111,11 @@ components: type: type: string description: Type of the movement type - example: '-' + example: "-" MedicalTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -7013,10 +7180,10 @@ components: example: 0 MalnutritionDTO: required: - - admission - - dateSupp - - height - - weight + - admission + - dateSupp + - height + - weight type: object properties: code: @@ -7027,11 +7194,11 @@ components: dateSupp: type: string description: The date of this malnutrition control - example: '1979-05-01T11:20:33' + example: 1979-05-01T11:20:33 dateConf: type: string description: The date of the next malnutrition control - example: '1979-05-01T11:20:33' + example: 1979-05-01T11:20:33 admission: $ref: '#/components/schemas/AdmissionDTO' height: @@ -7056,7 +7223,7 @@ components: maxLength: 10 type: string description: Exam Code - example: '01.01' + example: "01.01" description: maxLength: 100 type: string @@ -7144,10 +7311,10 @@ components: inOutPatient: type: string description: Laboratory Patient InOut - example: '0' + example: "0" enum: - - I - - O + - I + - O age: type: integer description: Laboratory Patient Age @@ -7161,11 +7328,11 @@ components: description: Laboratory status example: DRAFT enum: - - draft - - open - - done - - invalid - - deleted + - draft + - open + - done + - invalid + - deleted HospitalDTO: type: object properties: @@ -7216,8 +7383,8 @@ components: example: 0 PatientExaminationDTO: required: - - patientCode - - pex_date + - patientCode + - pex_date type: object properties: pex_ID: @@ -7228,7 +7395,7 @@ components: pex_date: type: string description: Date of Patient Examination - example: '2020-03-19T14:58:00.000Z' + example: 2020-03-19T14:58:00.000Z patientCode: type: integer description: Patient Examination Code @@ -7270,12 +7437,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 @@ -7289,14 +7456,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 @@ -7306,18 +7473,18 @@ components: description: Bowel Function example: regular enum: - - constipation - - regular - - diarrheal - - irregular + - constipation + - regular + - diarrheal + - irregular BillItemsDTO: required: - - itemAmount - - itemDescription - - itemDisplayCode - - itemId - - itemQuantity - - priceId + - itemAmount + - itemDescription + - itemDisplayCode + - itemId + - itemQuantity + - priceId type: object properties: id: @@ -7330,7 +7497,7 @@ components: priceId: type: string description: The price Id - example: '104' + example: "104" itemDescription: type: string description: Item description @@ -7352,7 +7519,7 @@ components: itemId: type: string description: Item id - example: '3' + example: "3" hashCode: type: integer format: int32 @@ -7362,10 +7529,10 @@ components: description: Class representing a billItem BillPaymentsDTO: required: - - amount - - billId - - date - - user + - amount + - billId + - date + - user type: object properties: id: @@ -7379,7 +7546,7 @@ components: type: string description: Date of payment format: date-time - example: '2020-03-19T14:58:00Z' + example: 2020-03-19T14:58:00Z amount: type: number description: The payment amount @@ -7396,8 +7563,8 @@ components: description: Class representing a billPayment FullBillDTO: required: - - bill - - billItems + - bill + - billItems type: object properties: bill: @@ -7414,9 +7581,9 @@ components: $ref: '#/components/schemas/BillPaymentsDTO' AgeTypeDTO: required: - - description - - from - - to + - description + - from + - to type: object properties: code: @@ -7439,16 +7606,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: @@ -7498,29 +7665,28 @@ components: example: Sample note notifyInt: type: integer - description: >- - the notify flag: 1 if the notification need to be activated, 0 - otherwise + description: "the notify flag: 1 if the notification need to be activated,\ + \ 0 otherwise" format: int32 example: 0 smsInt: type: integer - description: 'The sms flag: 1 if sms need to be sent to patient, 0 otherwise' + description: "The sms flag: 1 if sms need to be sent to patient, 0 otherwise" format: int32 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: @@ -7598,10 +7764,10 @@ components: $ref: '#/components/schemas/PatientProfilePhoto' patientConsensus: $ref: '#/components/schemas/PatientConsensus' - informations: - type: string searchString: type: string + informations: + type: string PatientConsensus: type: object properties: @@ -7663,12 +7829,6 @@ components: alpha: type: integer format: int32 - rgb: - type: integer - format: int32 - transparency: - type: integer - format: int32 colorSpace: type: object properties: @@ -7680,39 +7840,12 @@ components: format: int32 cs_sRGB: type: boolean - xormode: - type: object - properties: - red: - type: integer - format: int32 - green: - type: integer - format: int32 - blue: - type: integer - format: int32 - alpha: - type: integer - format: int32 rgb: type: integer format: int32 transparency: type: integer format: int32 - colorSpace: - type: object - properties: - type: - type: integer - format: int32 - numComponents: - type: integer - format: int32 - cs_sRGB: - type: boolean - writeOnly: true font: type: object properties: @@ -7730,6 +7863,19 @@ components: type: object family: type: string + plain: + type: boolean + psname: + type: string + size2D: + type: number + format: float + availableAttributes: + type: array + items: + type: object + fontName: + type: string transform: type: object properties: @@ -7756,9 +7902,6 @@ components: format: int32 identity: type: boolean - determinant: - type: number - format: double toRotation: type: number format: double @@ -7767,54 +7910,219 @@ components: type: integer format: int32 writeOnly: true - psname: - type: string - fontName: - type: string - size2D: - type: number - format: float - plain: - type: boolean + determinant: + type: number + format: double bold: type: boolean italic: type: boolean - transformed: - type: boolean numGlyphs: type: integer format: int32 missingGlyphCode: type: integer format: int32 - availableAttributes: - type: array - items: - type: object italicAngle: type: number format: float - fontMetrics: + transformed: + type: boolean + clip: type: object properties: - font: + bounds: type: object properties: - name: - type: string - style: - type: integer - format: int32 - size: - type: integer - format: int32 - attributes: - type: object + x: + type: number + format: double + "y": + type: number + format: double + width: + type: number + format: double + height: + type: number + format: double + empty: + type: boolean + location: + type: object + properties: + x: + type: number + format: double + "y": + type: number + format: double + size: + type: object + properties: + width: + type: number + format: double + height: + type: number + format: double + bounds2D: + type: object + properties: + empty: + type: boolean + width: + type: number + format: double + height: + type: number + format: double + "y": + type: number + format: double + x: + type: number + format: double + maxX: + type: number + format: double + maxY: + type: number + format: double + centerX: + type: number + format: double + centerY: + type: number + format: double + minX: + type: number + format: double + minY: + type: number + format: double + rect: + type: object + properties: + empty: + type: boolean + width: + type: number + format: double + height: + type: number + format: double + "y": + type: number + format: double + x: + type: number + format: double + maxX: + type: number + format: double + maxY: + type: number + format: double + centerX: + type: number + format: double + centerY: + type: number + format: double + minX: + type: number + format: double + minY: + type: number + format: double + writeOnly: true + maxX: + type: number + format: double + maxY: + type: number + format: double + centerX: + type: number + format: double + centerY: + type: number + format: double + minX: + type: number + format: double + minY: + type: number + format: double + bounds2D: + type: object + properties: + empty: + type: boolean + width: + type: number + format: double + height: + type: number + format: double + "y": + type: number + format: double + x: + type: number + format: double + maxX: + type: number + format: double + maxY: + type: number + format: double + centerX: + type: number + format: double + centerY: + type: number + format: double + minX: + type: number + format: double + minY: + type: number + format: double + fontMetrics: + type: object + properties: + font: + type: object + properties: + name: + type: string + style: + type: integer + format: int32 + size: + type: integer + format: int32 + attributes: + type: object additionalProperties: type: object family: type: string + plain: + type: boolean + psname: + type: string + size2D: + type: number + format: float + availableAttributes: + type: array + items: + type: object + fontName: + type: string transform: type: object properties: @@ -7841,9 +8149,6 @@ components: format: int32 identity: type: boolean - determinant: - type: number - format: double toRotation: type: number format: double @@ -7852,49 +8157,43 @@ components: type: integer format: int32 writeOnly: true - psname: - type: string - fontName: - type: string - size2D: - type: number - format: float - plain: - type: boolean + determinant: + type: number + format: double bold: type: boolean italic: type: boolean - transformed: - type: boolean numGlyphs: type: integer format: int32 missingGlyphCode: type: integer format: int32 - availableAttributes: - type: array - items: - type: object italicAngle: type: number format: float + transformed: + type: boolean height: type: integer format: int32 - ascent: - type: integer - format: int32 - descent: - type: integer - format: int32 - leading: + maxDescent: type: integer format: int32 + widths: + type: array + items: + type: integer + format: int32 fontRenderContext: type: object properties: + antiAliased: + type: boolean + transformType: + type: integer + format: int32 transform: type: object properties: @@ -7921,9 +8220,6 @@ components: format: int32 identity: type: boolean - determinant: - type: number - format: double toRotation: type: number format: double @@ -7932,23 +8228,18 @@ components: type: integer format: int32 writeOnly: true - transformed: - type: boolean + determinant: + type: number + format: double antiAliasingHint: type: object fractionalMetricsHint: type: object - antiAliased: + transformed: type: boolean - transformType: - type: integer - format: int32 maxAscent: type: integer format: int32 - maxDescent: - type: integer - format: int32 maxDecent: type: integer format: int32 @@ -7956,18 +8247,22 @@ components: maxAdvance: type: integer format: int32 - widths: - type: array - items: - type: integer - format: int32 + ascent: + type: integer + format: int32 + descent: + type: integer + format: int32 + leading: + type: integer + format: int32 clipBounds: type: object properties: x: type: number format: double - 'y': + "y": type: number format: double width: @@ -7984,7 +8279,7 @@ components: x: type: number format: double - 'y': + "y": type: number format: double size: @@ -7993,211 +8288,24 @@ components: width: type: number format: double - height: - type: number - format: double - bounds2D: - type: object - properties: - empty: - type: boolean - 'y': - type: number - format: double - x: - type: number - format: double - height: - type: number - format: double - width: - type: number - format: double - minX: - type: number - format: double - minY: - type: number - format: double - maxX: - type: number - format: double - maxY: - type: number - format: double - centerX: - type: number - format: double - centerY: - type: number - format: double - rect: - type: object - properties: - empty: - type: boolean - 'y': - type: number - format: double - x: - type: number - format: double - height: - type: number - format: double - width: - type: number - format: double - minX: - type: number - format: double - minY: - type: number - format: double - maxX: - type: number - format: double - maxY: - type: number - format: double - centerX: - type: number - format: double - centerY: - type: number - format: double - writeOnly: true - minX: - type: number - format: double - minY: - type: number - format: double - maxX: - type: number - format: double - maxY: - type: number - format: double - centerX: - type: number - format: double - centerY: - type: number - format: double - clip: - type: object - properties: - bounds: - type: object - properties: - x: - type: number - format: double - 'y': - type: number - format: double - width: - type: number - format: double - height: - type: number - format: double - empty: - type: boolean - location: - type: object - properties: - x: - type: number - format: double - 'y': - type: number - format: double - size: - type: object - properties: - width: - type: number - format: double - height: - type: number - format: double - bounds2D: - type: object - properties: - empty: - type: boolean - 'y': - type: number - format: double - x: - type: number - format: double - height: - type: number - format: double - width: - type: number - format: double - minX: - type: number - format: double - minY: - type: number - format: double - maxX: - type: number - format: double - maxY: - type: number - format: double - centerX: - type: number - format: double - centerY: - type: number - format: double - rect: - type: object - properties: - empty: - type: boolean - 'y': - type: number - format: double - x: - type: number - format: double - height: - type: number - format: double - width: - type: number - format: double - minX: - type: number - format: double - minY: - type: number - format: double - maxX: - type: number - format: double - maxY: - type: number - format: double - centerX: - type: number - format: double - centerY: - type: number - format: double - writeOnly: true - minX: + height: type: number format: double - minY: + bounds2D: + type: object + properties: + empty: + type: boolean + width: + type: number + format: double + height: + type: number + format: double + "y": + type: number + format: double + x: type: number format: double maxX: @@ -8212,27 +8320,27 @@ components: centerY: type: number format: double - bounds2D: + minX: + type: number + format: double + minY: + type: number + format: double + rect: type: object properties: empty: type: boolean - 'y': - type: number - format: double - x: + width: type: number format: double height: type: number format: double - width: - type: number - format: double - minX: + "y": type: number format: double - minY: + x: type: number format: double maxX: @@ -8247,13 +8355,71 @@ components: centerY: type: number format: double + minX: + type: number + format: double + minY: + type: number + format: double + writeOnly: true + maxX: + type: number + format: double + maxY: + type: number + format: double + centerX: + type: number + format: double + centerY: + type: number + format: double + minX: + type: number + format: double + minY: + type: number + format: double + xormode: + type: object + properties: + red: + type: integer + format: int32 + green: + type: integer + format: int32 + blue: + type: integer + format: int32 + alpha: + type: integer + format: int32 + colorSpace: + type: object + properties: + type: + type: integer + format: int32 + numComponents: + type: integer + format: int32 + cs_sRGB: + type: boolean + rgb: + type: integer + format: int32 + transparency: + type: integer + format: int32 + writeOnly: true clipRect: type: object properties: x: type: number format: double - 'y': + "y": type: number format: double width: @@ -8270,7 +8436,7 @@ components: x: type: number format: double - 'y': + "y": type: number format: double size: @@ -8287,22 +8453,16 @@ components: properties: empty: type: boolean - 'y': - type: number - format: double - x: + width: type: number format: double height: type: number format: double - width: - type: number - format: double - minX: + "y": type: number format: double - minY: + x: type: number format: double maxX: @@ -8317,27 +8477,27 @@ components: centerY: type: number format: double + minX: + type: number + format: double + minY: + type: number + format: double rect: type: object properties: empty: type: boolean - 'y': - type: number - format: double - x: + width: type: number format: double height: type: number format: double - width: - type: number - format: double - minX: + "y": type: number format: double - minY: + x: type: number format: double maxX: @@ -8352,13 +8512,13 @@ components: centerY: type: number format: double + minX: + type: number + format: double + minY: + type: number + format: double writeOnly: true - minX: - type: number - format: double - minY: - type: number - format: double maxX: type: number format: double @@ -8371,19 +8531,25 @@ components: centerY: type: number format: double + minX: + type: number + format: double + minY: + type: number + format: double 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: @@ -8433,10 +8599,10 @@ components: smsInt: type: integer format: int32 - notify: - type: boolean sms: type: boolean + notify: + type: boolean medical: type: integer format: int32 @@ -8457,8 +8623,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 @@ -8485,24 +8651,84 @@ components: example: Sample note notify: type: boolean - description: >- - The notify flag: true if the notification need to be activated, - false otherwise + 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 - otherwise + description: "The sms flag: true if sms need to be sent to patient, false\ + \ otherwise" example: false + LotDTO: + required: + - code + - dueDate + - preparationDate + type: object + properties: + code: + maxLength: 50 + type: string + description: The lot's code + example: LT001 + preparationDate: + type: string + description: The preparation date + example: 2020-06-24 + dueDate: + type: string + description: The due date + example: 2021-06-24 + cost: + type: number + description: The lot's code + example: 750 + description: The lot + MovementDTO: + required: + - date + - medical + - quantity + - refNo + - type + type: object + properties: + code: + type: integer + description: The movement code + format: int32 + example: 1 + medical: + $ref: '#/components/schemas/MedicalDTO' + type: + $ref: '#/components/schemas/MovementTypeDTO' + ward: + $ref: '#/components/schemas/WardDTO' + lot: + $ref: '#/components/schemas/LotDTO' + date: + type: string + description: The movement date + example: 2020-06-24 + quantity: + type: integer + description: The movement's medical quantity + format: int32 + example: 50 + supplier: + $ref: '#/components/schemas/SupplierDTO' + refNo: + type: string + description: The movement reference + example: MVN152445 SmsDTO: required: - - module - - smsDate - - smsDateSched - - smsNumber - - smsText - - smsUser + - module + - smsDate + - smsDateSched + - smsNumber + - smsText + - smsUser type: object properties: smsId: @@ -8517,12 +8743,12 @@ components: smsDateSched: type: string description: SMS scheduled date - example: '2020-07-28T00:00:00' + example: 2020-07-28T00:00:00 smsNumber: maxLength: 45 type: string description: SMS target phone number - example: '+237671302313' + example: "+237671302313" smsText: maxLength: 160 type: string @@ -8531,7 +8757,7 @@ components: smsDateSent: type: string description: SMS sent date - example: '2020-07-28T00:00:00' + example: 2020-07-28T00:00:00 smsUser: maxLength: 50 type: string @@ -8548,11 +8774,11 @@ components: description: SMS module Id MovementWardDTO: required: - - date - - description - - quantity - - units - - ward + - date + - description + - quantity + - units + - ward type: object properties: code: @@ -8566,7 +8792,7 @@ components: type: string description: The movement ward's date format: date - example: '2020-06-07' + example: 2020-06-07 patient: $ref: '#/components/schemas/PatientDTO' age: @@ -8576,7 +8802,8 @@ components: example: 21 weight: type: number - description: The patient's weight in case the movement is associated to a patient + description: The patient's weight in case the movement is associated to + a patient format: float example: 75 description: @@ -8598,68 +8825,6 @@ components: $ref: '#/components/schemas/WardDTO' wardFrom: $ref: '#/components/schemas/WardDTO' - LotDTO: - required: - - code - - dueDate - - preparationDate - type: object - properties: - code: - maxLength: 50 - type: string - description: The lot's code - example: LT001 - preparationDate: - type: string - description: The preparation date - example: '2020-06-24' - dueDate: - type: string - description: The due date - example: '2021-06-24' - cost: - type: number - description: The lot's code - example: 750 - description: The lot - MovementDTO: - required: - - date - - medical - - quantity - - refNo - - type - type: object - properties: - code: - type: integer - description: The movement code - format: int32 - example: 1 - medical: - $ref: '#/components/schemas/MedicalDTO' - type: - $ref: '#/components/schemas/MovementTypeDTO' - ward: - $ref: '#/components/schemas/WardDTO' - lot: - $ref: '#/components/schemas/LotDTO' - date: - type: string - description: The movement date - example: '2020-06-24' - quantity: - type: integer - description: The movement's medical quantity - format: int32 - example: 50 - supplier: - $ref: '#/components/schemas/SupplierDTO' - refNo: - type: string - description: The movement reference - example: MVN152445 ExamRowDTO: type: object properties: @@ -8676,8 +8841,8 @@ components: $ref: '#/components/schemas/ExamDTO' LoginRequest: required: - - password - - username + - password + - username type: object properties: username: @@ -8721,11 +8886,11 @@ components: $ref: '#/components/schemas/UserGroupDTO' PriceDTO: required: - - description - - group - - item - - list - - price + - description + - group + - item + - list + - price type: object properties: id: @@ -8759,10 +8924,10 @@ components: description: Class representing a prices PriceList: required: - - code - - currency - - description - - name + - code + - currency + - description + - name type: object properties: createdBy: @@ -8790,6 +8955,22 @@ components: currency: type: string description: The price list + PermissionDTO: + required: + - description + - id + type: object + properties: + name: + type: string + id: + type: integer + description: The permission id + format: int32 + description: + maxLength: 255 + type: string + description: The permission description PageInfoDTO: type: object properties: @@ -8847,8 +9028,8 @@ components: example: 89 MedicalWardIdDTO: required: - - medical - - ward + - medical + - ward type: object properties: ward: @@ -8877,9 +9058,9 @@ components: $ref: '#/components/schemas/PageInfoDTO' AgeType: required: - - description - - from - - to + - description + - from + - to type: object properties: createdBy: @@ -8925,4 +9106,4 @@ components: bearerAuth: type: http scheme: bearer - bearerFormat: JWT + bearerFormat: JWT \ No newline at end of file diff --git a/src/generated/.openapi-generator/FILES b/src/generated/.openapi-generator/FILES index 057f67774..da64a2958 100644 --- a/src/generated/.openapi-generator/FILES +++ b/src/generated/.openapi-generator/FILES @@ -1,129 +1,129 @@ .gitignore -apis\AdmissionTypesApi.ts -apis\AdmissionsApi.ts -apis\AgeTypesApi.ts -apis\BillsApi.ts -apis\DeliveryResultTypeApi.ts -apis\DeliveryTypeApi.ts -apis\DischargeTypeApi.ts -apis\DiseaseTypesApi.ts -apis\DiseasesApi.ts -apis\ExamRowsApi.ts -apis\ExamTypesApi.ts -apis\ExaminationsApi.ts -apis\ExamsApi.ts -apis\HospitalsApi.ts -apis\LaboratoriesApi.ts -apis\LoginApi.ts -apis\MalnutritionsApi.ts -apis\MedicalStockMovementTypeApi.ts -apis\MedicalStockWardApi.ts -apis\MedicalTypesApi.ts -apis\MedicalsApi.ts -apis\OpdsApi.ts -apis\OperationsApi.ts -apis\OperationsTypesApi.ts -apis\OthersPriceApi.ts -apis\PatientConsensusApi.ts -apis\PatientVaccinesApi.ts -apis\PatientsApi.ts -apis\PermissionsApi.ts -apis\PregnantTreatmentTypesApi.ts -apis\PriceListsApi.ts -apis\ReportsApi.ts -apis\SMSApi.ts -apis\StockMovementsApi.ts -apis\SuppliersApi.ts -apis\TherapiesApi.ts -apis\UsersApi.ts -apis\VaccineTypeApi.ts -apis\VaccinesApi.ts -apis\VisitApi.ts -apis\WardsApi.ts -apis\index.ts +apis/AdmissionTypesApi.ts +apis/AdmissionsApi.ts +apis/AgeTypesApi.ts +apis/BillsApi.ts +apis/DeliveryResultTypeApi.ts +apis/DeliveryTypeApi.ts +apis/DischargeTypeApi.ts +apis/DiseaseTypesApi.ts +apis/DiseasesApi.ts +apis/ExamRowsApi.ts +apis/ExamTypesApi.ts +apis/ExaminationsApi.ts +apis/ExamsApi.ts +apis/HospitalsApi.ts +apis/LaboratoriesApi.ts +apis/LoginApi.ts +apis/MalnutritionsApi.ts +apis/MedicalStockMovementTypeApi.ts +apis/MedicalStockWardApi.ts +apis/MedicalTypesApi.ts +apis/MedicalsApi.ts +apis/OpdsApi.ts +apis/OperationsApi.ts +apis/OperationsTypesApi.ts +apis/OthersPriceApi.ts +apis/PatientConsensusApi.ts +apis/PatientVaccinesApi.ts +apis/PatientsApi.ts +apis/PermissionsApi.ts +apis/PregnantTreatmentTypesApi.ts +apis/PriceListsApi.ts +apis/ReportsApi.ts +apis/SMSApi.ts +apis/StockMovementsApi.ts +apis/SuppliersApi.ts +apis/TherapiesApi.ts +apis/UsersApi.ts +apis/VaccineTypeApi.ts +apis/VaccinesApi.ts +apis/VisitApi.ts +apis/WardsApi.ts +apis/index.ts index.ts -models\AdmissionDTO.ts -models\AdmissionTypeDTO.ts -models\AdmittedPatientDTO.ts -models\AgeType.ts -models\AgeTypeDTO.ts -models\BillDTO.ts -models\BillItemsDTO.ts -models\BillPaymentsDTO.ts -models\DeliveryResultTypeDTO.ts -models\DeliveryTypeDTO.ts -models\DischargeTypeDTO.ts -models\DiseaseDTO.ts -models\DiseaseTypeDTO.ts -models\ExamDTO.ts -models\ExamRowDTO.ts -models\ExamTypeDTO.ts -models\FullBillDTO.ts -models\HospitalDTO.ts -models\LabWithRowsDTO.ts -models\LaboratoryDTO.ts -models\LitePermissionDTO.ts -models\LoginRequest.ts -models\LoginResponse.ts -models\LotDTO.ts -models\MalnutritionDTO.ts -models\MedicalDTO.ts -models\MedicalTypeDTO.ts -models\MedicalWardDTO.ts -models\MedicalWardIdDTO.ts -models\MovementDTO.ts -models\MovementTypeDTO.ts -models\MovementWardDTO.ts -models\OpdDTO.ts -models\OpdWithOperationRowDTO.ts -models\OperationDTO.ts -models\OperationRowDTO.ts -models\OperationTypeDTO.ts -models\PageAdmissionDTO.ts -models\PageInfoDTO.ts -models\PageLabWithRowsDTO.ts -models\PageOpdDTO.ts -models\PagePatientDTO.ts -models\PagePatientExaminationDTO.ts -models\Patient.ts -models\PatientConsensus.ts -models\PatientConsensusDTO.ts -models\PatientDTO.ts -models\PatientExaminationDTO.ts -models\PatientProfilePhoto.ts -models\PatientProfilePhotoPhotoAsImage.ts -models\PatientProfilePhotoPhotoAsImageGraphics.ts -models\PatientProfilePhotoPhotoAsImageGraphicsClip.ts -models\PatientProfilePhotoPhotoAsImageGraphicsClipBounds.ts -models\PatientProfilePhotoPhotoAsImageGraphicsClipBoundsBounds2D.ts -models\PatientProfilePhotoPhotoAsImageGraphicsClipBoundsLocation.ts -models\PatientProfilePhotoPhotoAsImageGraphicsClipBoundsSize.ts -models\PatientProfilePhotoPhotoAsImageGraphicsColor.ts -models\PatientProfilePhotoPhotoAsImageGraphicsColorColorSpace.ts -models\PatientProfilePhotoPhotoAsImageGraphicsFont.ts -models\PatientProfilePhotoPhotoAsImageGraphicsFontMetrics.ts -models\PatientProfilePhotoPhotoAsImageGraphicsFontMetricsFontRenderContext.ts -models\PatientProfilePhotoPhotoAsImageGraphicsFontTransform.ts -models\PatientVaccineDTO.ts -models\PermissionDTO.ts -models\PregnantTreatmentTypeDTO.ts -models\PriceDTO.ts -models\PriceList.ts -models\PriceListDTO.ts -models\PricesOthersDTO.ts -models\SmsDTO.ts -models\SupplierDTO.ts -models\TherapyDTO.ts -models\TherapyRow.ts -models\TherapyRowDTO.ts -models\UserDTO.ts -models\UserGroupDTO.ts -models\UserProfileDTO.ts -models\UserSettingDTO.ts -models\VaccineDTO.ts -models\VaccineTypeDTO.ts -models\VisitDTO.ts -models\WardDTO.ts -models\index.ts +models/AdmissionDTO.ts +models/AdmissionTypeDTO.ts +models/AdmittedPatientDTO.ts +models/AgeType.ts +models/AgeTypeDTO.ts +models/BillDTO.ts +models/BillItemsDTO.ts +models/BillPaymentsDTO.ts +models/DeliveryResultTypeDTO.ts +models/DeliveryTypeDTO.ts +models/DischargeTypeDTO.ts +models/DiseaseDTO.ts +models/DiseaseTypeDTO.ts +models/ExamDTO.ts +models/ExamRowDTO.ts +models/ExamTypeDTO.ts +models/FullBillDTO.ts +models/HospitalDTO.ts +models/LabWithRowsDTO.ts +models/LaboratoryDTO.ts +models/LitePermissionDTO.ts +models/LoginRequest.ts +models/LoginResponse.ts +models/LotDTO.ts +models/MalnutritionDTO.ts +models/MedicalDTO.ts +models/MedicalTypeDTO.ts +models/MedicalWardDTO.ts +models/MedicalWardIdDTO.ts +models/MovementDTO.ts +models/MovementTypeDTO.ts +models/MovementWardDTO.ts +models/OpdDTO.ts +models/OpdWithOperationRowDTO.ts +models/OperationDTO.ts +models/OperationRowDTO.ts +models/OperationTypeDTO.ts +models/PageAdmissionDTO.ts +models/PageInfoDTO.ts +models/PageLabWithRowsDTO.ts +models/PageOpdDTO.ts +models/PagePatientDTO.ts +models/PagePatientExaminationDTO.ts +models/Patient.ts +models/PatientConsensus.ts +models/PatientConsensusDTO.ts +models/PatientDTO.ts +models/PatientExaminationDTO.ts +models/PatientProfilePhoto.ts +models/PatientProfilePhotoPhotoAsImage.ts +models/PatientProfilePhotoPhotoAsImageGraphics.ts +models/PatientProfilePhotoPhotoAsImageGraphicsClip.ts +models/PatientProfilePhotoPhotoAsImageGraphicsClipBounds.ts +models/PatientProfilePhotoPhotoAsImageGraphicsClipBoundsBounds2D.ts +models/PatientProfilePhotoPhotoAsImageGraphicsClipBoundsLocation.ts +models/PatientProfilePhotoPhotoAsImageGraphicsClipBoundsSize.ts +models/PatientProfilePhotoPhotoAsImageGraphicsColor.ts +models/PatientProfilePhotoPhotoAsImageGraphicsColorColorSpace.ts +models/PatientProfilePhotoPhotoAsImageGraphicsFont.ts +models/PatientProfilePhotoPhotoAsImageGraphicsFontMetrics.ts +models/PatientProfilePhotoPhotoAsImageGraphicsFontMetricsFontRenderContext.ts +models/PatientProfilePhotoPhotoAsImageGraphicsFontTransform.ts +models/PatientVaccineDTO.ts +models/PermissionDTO.ts +models/PregnantTreatmentTypeDTO.ts +models/PriceDTO.ts +models/PriceList.ts +models/PriceListDTO.ts +models/PricesOthersDTO.ts +models/SmsDTO.ts +models/SupplierDTO.ts +models/TherapyDTO.ts +models/TherapyRow.ts +models/TherapyRowDTO.ts +models/UserDTO.ts +models/UserGroupDTO.ts +models/UserProfileDTO.ts +models/UserSettingDTO.ts +models/VaccineDTO.ts +models/VaccineTypeDTO.ts +models/VisitDTO.ts +models/WardDTO.ts +models/index.ts runtime.ts tsconfig.json