diff --git a/api/oh.yaml b/api/oh.yaml index 487f209d5..adc147e03 100644 --- a/api/oh.yaml +++ b/api/oh.yaml @@ -9,14 +9,14 @@ info: url: https://github.com/informatici/openhospital-api?tab=GPL-3.0-1-ov-file#readme version: 0.1.0 servers: -- url: http://localhost:8080 + - url: http://localhost:8080 security: -- bearerAuth: [] + - bearerAuth: [] paths: /wards: get: tags: - - Wards + - Wards operationId: getWards responses: "200": @@ -26,18 +26,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WardDTO' + $ref: "#/components/schemas/WardDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Wards + - Wards operationId: updateWard requestBody: content: application/json: schema: - $ref: '#/components/schemas/WardDTO' + $ref: "#/components/schemas/WardDTO" required: true responses: "200": @@ -45,18 +45,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WardDTO' + $ref: "#/components/schemas/WardDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Wards + - Wards operationId: newWard requestBody: content: application/json: schema: - $ref: '#/components/schemas/WardDTO' + $ref: "#/components/schemas/WardDTO" required: true responses: "200": @@ -64,26 +64,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WardDTO' + $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: schema: - $ref: '#/components/schemas/VisitDTO' + $ref: "#/components/schemas/VisitDTO" required: true responses: "200": @@ -91,13 +91,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VisitDTO' + $ref: "#/components/schemas/VisitDTO" security: - - bearerAuth: [] + - bearerAuth: [] /vaccinetypes: get: tags: - - Vaccine Type + - Vaccine Type operationId: getVaccineType responses: "200": @@ -107,18 +107,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VaccineTypeDTO' + $ref: "#/components/schemas/VaccineTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Vaccine Type + - Vaccine Type operationId: updateVaccineType requestBody: content: application/json: schema: - $ref: '#/components/schemas/VaccineTypeDTO' + $ref: "#/components/schemas/VaccineTypeDTO" required: true responses: "200": @@ -126,18 +126,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VaccineTypeDTO' + $ref: "#/components/schemas/VaccineTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Vaccine Type + - Vaccine Type operationId: newVaccineType requestBody: content: application/json: schema: - $ref: '#/components/schemas/VaccineTypeDTO' + $ref: "#/components/schemas/VaccineTypeDTO" required: true responses: "200": @@ -145,13 +145,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VaccineTypeDTO' + $ref: "#/components/schemas/VaccineTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /vaccines: get: tags: - - Vaccines + - Vaccines operationId: getVaccines responses: "200": @@ -161,18 +161,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VaccineDTO' + $ref: "#/components/schemas/VaccineDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Vaccines + - Vaccines operationId: updateVaccine requestBody: content: application/json: schema: - $ref: '#/components/schemas/VaccineDTO' + $ref: "#/components/schemas/VaccineDTO" required: true responses: "200": @@ -180,18 +180,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VaccineDTO' + $ref: "#/components/schemas/VaccineDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Vaccines + - Vaccines operationId: newVaccine requestBody: content: application/json: schema: - $ref: '#/components/schemas/VaccineDTO' + $ref: "#/components/schemas/VaccineDTO" required: true responses: "200": @@ -199,26 +199,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VaccineDTO' + $ref: "#/components/schemas/VaccineDTO" security: - - bearerAuth: [] + - bearerAuth: [] /usersettings/{id}: put: tags: - - User Settings + - User Settings operationId: updateUserSettings parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 requestBody: content: application/json: schema: - $ref: '#/components/schemas/UserSettingDTO' + $ref: "#/components/schemas/UserSettingDTO" required: true responses: "200": @@ -226,60 +226,60 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UserSettingDTO' + $ref: "#/components/schemas/UserSettingDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - User Settings + - User Settings operationId: deleteUserSetting parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "204": description: No Content security: - - bearerAuth: [] + - bearerAuth: [] /users/{username}: get: tags: - - Users + - Users operationId: getUserByName parameters: - - name: username - in: path - required: true - schema: - type: string + - name: username + in: path + required: true + schema: + type: string responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/UserDTO' + $ref: "#/components/schemas/UserDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Users + - Users operationId: updateUser parameters: - - name: username - in: path - required: true - schema: - type: string + - name: username + in: path + required: true + schema: + type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/UserDTO' + $ref: "#/components/schemas/UserDTO" required: true responses: "200": @@ -287,28 +287,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UserDTO' + $ref: "#/components/schemas/UserDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Users + - Users operationId: deleteUser parameters: - - name: username - in: path - required: true - schema: - type: string + - name: username + in: path + required: true + schema: + type: string responses: "204": description: No Content security: - - bearerAuth: [] + - bearerAuth: [] /users/me: get: tags: - - Users + - Users operationId: retrieveProfileByCurrentLoggedInUser responses: "200": @@ -316,18 +316,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UserProfileDTO' + $ref: "#/components/schemas/UserProfileDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Users + - Users operationId: updateProfile requestBody: content: application/json: schema: - $ref: '#/components/schemas/UserDTO' + $ref: "#/components/schemas/UserDTO" required: true responses: "200": @@ -335,44 +335,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UserProfileDTO' + $ref: "#/components/schemas/UserProfileDTO" security: - - bearerAuth: [] + - bearerAuth: [] /usergroups/{group_code}: get: tags: - - User Groups + - User Groups operationId: getUserGroup parameters: - - name: group_code - in: path - required: true - schema: - type: string + - name: group_code + in: path + required: true + schema: + type: string responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/UserGroupDTO' + $ref: "#/components/schemas/UserGroupDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - User Groups + - User Groups operationId: updateUserGroup parameters: - - name: group_code - in: path - required: true - schema: - type: string + - name: group_code + in: path + required: true + schema: + type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/UserGroupDTO' + $ref: "#/components/schemas/UserGroupDTO" required: true responses: "200": @@ -380,40 +380,40 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UserGroupDTO' + $ref: "#/components/schemas/UserGroupDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - User Groups + - User Groups operationId: deleteGroup parameters: - - name: group_code - in: path - required: true - schema: - type: string + - name: group_code + in: path + required: true + schema: + type: string responses: "204": description: No Content security: - - bearerAuth: [] + - bearerAuth: [] /usergroups/{group_code}/permissions: put: tags: - - User Groups + - User Groups operationId: updateGroupPermissions parameters: - - name: group_code - in: path - required: true - schema: - type: string + - name: group_code + in: path + required: true + schema: + type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/GroupPermissionsDTO' + $ref: "#/components/schemas/GroupPermissionsDTO" required: true responses: "200": @@ -423,24 +423,24 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PermissionDTO' + $ref: "#/components/schemas/PermissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] patch: tags: - - User Groups + - User Groups operationId: replaceGroupPermissions parameters: - - name: group_code - in: path - required: true - schema: - type: string + - name: group_code + in: path + required: true + schema: + type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/GroupPermissionsDTO' + $ref: "#/components/schemas/GroupPermissionsDTO" required: true responses: "200": @@ -450,21 +450,21 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PermissionDTO' + $ref: "#/components/schemas/PermissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /suppliers: get: tags: - - Suppliers + - Suppliers operationId: getSuppliers parameters: - - name: exclude_deleted - in: query - required: false - schema: - type: boolean - default: true + - name: exclude_deleted + in: query + required: false + schema: + type: boolean + default: true responses: "200": description: OK @@ -473,18 +473,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SupplierDTO' + $ref: "#/components/schemas/SupplierDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Suppliers + - Suppliers operationId: updateSupplier requestBody: content: application/json: schema: - $ref: '#/components/schemas/SupplierDTO' + $ref: "#/components/schemas/SupplierDTO" required: true responses: "200": @@ -492,18 +492,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SupplierDTO' + $ref: "#/components/schemas/SupplierDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Suppliers + - Suppliers operationId: saveSupplier requestBody: content: application/json: schema: - $ref: '#/components/schemas/SupplierDTO' + $ref: "#/components/schemas/SupplierDTO" required: true responses: "201": @@ -511,26 +511,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SupplierDTO' + $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: schema: - $ref: '#/components/schemas/PricesOthersDTO' + $ref: "#/components/schemas/PricesOthersDTO" required: true responses: "200": @@ -538,20 +538,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PricesOthersDTO' + $ref: "#/components/schemas/PricesOthersDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Others Price + - Others Price operationId: deletePricesOthers parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -560,24 +560,24 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /pricelists/{id}: put: tags: - - Price Lists + - Price Lists operationId: updatePriceLists parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 requestBody: content: application/json: schema: - $ref: '#/components/schemas/PriceListDTO' + $ref: "#/components/schemas/PriceListDTO" required: true responses: "200": @@ -585,20 +585,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PriceListDTO' + $ref: "#/components/schemas/PriceListDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Price Lists + - Price Lists operationId: deletePriceList parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -607,23 +607,23 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /pregnanttreatmenttypes/{code}: put: tags: - - Pregnant Treatment Types + - Pregnant Treatment Types operationId: updatePregnantTreatmentTypes parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/PregnantTreatmentTypeDTO' + $ref: "#/components/schemas/PregnantTreatmentTypeDTO" required: true responses: "200": @@ -631,19 +631,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PregnantTreatmentTypeDTO' + $ref: "#/components/schemas/PregnantTreatmentTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Pregnant Treatment Types + - Pregnant Treatment Types operationId: deletePregnantTreatmentType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -652,24 +652,24 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /patientvaccines/{code}: put: tags: - - Patient Vaccines + - Patient Vaccines operationId: updatePatientVaccinet parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatientVaccineDTO' + $ref: "#/components/schemas/PatientVaccineDTO" required: true responses: "200": @@ -677,20 +677,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatientVaccineDTO' + $ref: "#/components/schemas/PatientVaccineDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Patient Vaccines + - Patient Vaccines operationId: deletePatientVaccine parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -699,44 +699,44 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /patients/{code}: get: tags: - - Patients + - Patients operationId: getPatient parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/PatientDTO' + $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: schema: - $ref: '#/components/schemas/PatientDTO' + $ref: "#/components/schemas/PatientDTO" required: true responses: "200": @@ -744,20 +744,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatientDTO' + $ref: "#/components/schemas/PatientDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Patients + - Patients operationId: deletePatient parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -766,44 +766,44 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /patientconsensus/{patientId}: get: tags: - - Patient Consensus + - Patient Consensus operationId: getPatientConsensus parameters: - - name: patientId - in: path - required: true - schema: - type: integer - format: int32 + - name: patientId + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/PatientConsensusDTO' + $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: schema: - $ref: '#/components/schemas/PatientConsensusDTO' + $ref: "#/components/schemas/PatientConsensusDTO" required: true responses: "200": @@ -811,25 +811,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatientConsensusDTO' + $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: schema: - $ref: '#/components/schemas/OperationTypeDTO' + $ref: "#/components/schemas/OperationTypeDTO" required: true responses: "200": @@ -837,19 +837,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OperationTypeDTO' + $ref: "#/components/schemas/OperationTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Operations Types + - Operations Types operationId: deleteOperationType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -858,42 +858,42 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /operations/{code}: get: tags: - - Operations + - Operations operationId: getOperationByCode parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/OperationDTO' + $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: schema: - $ref: '#/components/schemas/OperationDTO' + $ref: "#/components/schemas/OperationDTO" required: true responses: "200": @@ -901,19 +901,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OperationDTO' + $ref: "#/components/schemas/OperationDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Operations + - Operations operationId: deleteOperation parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -922,17 +922,17 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /operations/rows: put: tags: - - Operations + - Operations operationId: updateOperationRow requestBody: content: application/json: schema: - $ref: '#/components/schemas/OperationRowDTO' + $ref: "#/components/schemas/OperationRowDTO" required: true responses: "200": @@ -943,16 +943,16 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Operations + - Operations operationId: newOperationRow requestBody: content: application/json: schema: - $ref: '#/components/schemas/OperationRowDTO' + $ref: "#/components/schemas/OperationRowDTO" required: true responses: "200": @@ -960,26 +960,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OperationRowDTO' + $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: schema: - $ref: '#/components/schemas/OpdDTO' + $ref: "#/components/schemas/OpdDTO" required: true responses: "200": @@ -987,20 +987,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OpdDTO' + $ref: "#/components/schemas/OpdDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Opds + - Opds operationId: deleteOpd parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -1009,24 +1009,24 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /opds/rows/{code}: put: tags: - - Opds + - Opds operationId: updateOpdWithOperationRow parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 requestBody: content: application/json: schema: - $ref: '#/components/schemas/OpdWithOperationRowDTO' + $ref: "#/components/schemas/OpdWithOperationRowDTO" required: true responses: "200": @@ -1034,13 +1034,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OpdWithOperationRowDTO' + $ref: "#/components/schemas/OpdWithOperationRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medstockmovementtypes: get: tags: - - Medical Stock Movement Type + - Medical Stock Movement Type operationId: getMedicalDsrStockMovementType responses: "200": @@ -1050,18 +1050,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/MovementTypeDTO' + $ref: "#/components/schemas/MovementTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Medical Stock Movement Type + - Medical Stock Movement Type operationId: updateMedicalDsrStockMovementType requestBody: content: application/json: schema: - $ref: '#/components/schemas/MovementTypeDTO' + $ref: "#/components/schemas/MovementTypeDTO" required: true responses: "200": @@ -1069,18 +1069,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/MovementTypeDTO' + $ref: "#/components/schemas/MovementTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Medical Stock Movement Type + - Medical Stock Movement Type operationId: newMedicalDsrStockMovementType requestBody: content: application/json: schema: - $ref: '#/components/schemas/MovementTypeDTO' + $ref: "#/components/schemas/MovementTypeDTO" required: true responses: "200": @@ -1088,13 +1088,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/MovementTypeDTO' + $ref: "#/components/schemas/MovementTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicaltypes: get: tags: - - Medical Types + - Medical Types operationId: getMedicalTypes responses: "200": @@ -1104,18 +1104,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/MedicalTypeDTO' + $ref: "#/components/schemas/MedicalTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Medical Types + - Medical Types operationId: updateMedicalType requestBody: content: application/json: schema: - $ref: '#/components/schemas/MedicalTypeDTO' + $ref: "#/components/schemas/MedicalTypeDTO" required: true responses: "200": @@ -1123,18 +1123,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/MedicalTypeDTO' + $ref: "#/components/schemas/MedicalTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Medical Types + - Medical Types operationId: createMedicalType requestBody: content: application/json: schema: - $ref: '#/components/schemas/MedicalTypeDTO' + $ref: "#/components/schemas/MedicalTypeDTO" required: true responses: "200": @@ -1142,24 +1142,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/MedicalTypeDTO' + $ref: "#/components/schemas/MedicalTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicals: get: tags: - - Medicals + - Medicals operationId: getMedicals parameters: - - name: sort_by - in: query - required: false - schema: - type: string - enum: - - NONE - - CODE - - NAME + - name: sort_by + in: query + required: false + schema: + type: string + enum: + - NONE + - CODE + - NAME responses: "200": description: OK @@ -1168,25 +1168,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/MedicalDTO' + $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: schema: - $ref: '#/components/schemas/MedicalDTO' + $ref: "#/components/schemas/MedicalDTO" required: true responses: "200": @@ -1194,25 +1194,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/MedicalDTO' + $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: schema: - $ref: '#/components/schemas/MedicalDTO' + $ref: "#/components/schemas/MedicalDTO" required: true responses: "200": @@ -1220,19 +1220,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/MedicalDTO' + $ref: "#/components/schemas/MedicalDTO" security: - - bearerAuth: [] + - bearerAuth: [] /malnutritions: put: tags: - - Malnutritions + - Malnutritions operationId: updateMalnutrition requestBody: content: application/json: schema: - $ref: '#/components/schemas/MalnutritionDTO' + $ref: "#/components/schemas/MalnutritionDTO" required: true responses: "200": @@ -1240,18 +1240,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/MalnutritionDTO' + $ref: "#/components/schemas/MalnutritionDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Malnutritions + - Malnutritions operationId: newMalnutrition requestBody: content: application/json: schema: - $ref: '#/components/schemas/MalnutritionDTO' + $ref: "#/components/schemas/MalnutritionDTO" required: true responses: "200": @@ -1259,20 +1259,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/MalnutritionDTO' + $ref: "#/components/schemas/MalnutritionDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Malnutritions + - Malnutritions operationId: deleteMalnutrition parameters: - - name: code - in: query - required: true - schema: - type: integer - format: int32 + - name: code + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -1281,44 +1281,44 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/{code}: get: tags: - - Laboratories + - Laboratories operationId: getExamById parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/LaboratoryDTO' + $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: schema: - $ref: '#/components/schemas/LabWithRowsDTO' + $ref: "#/components/schemas/LabWithRowsDTO" required: true responses: "200": @@ -1328,18 +1328,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Laboratories + - Laboratories operationId: deleteExam parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -1348,24 +1348,24 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/examRequest/{code}: put: tags: - - Laboratories + - Laboratories operationId: updateExamRequest parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 - - name: status - in: query - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: integer + format: int32 + - name: status + in: query + required: true + schema: + type: string responses: "200": description: OK @@ -1374,18 +1374,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Laboratories + - Laboratories operationId: deleteExamRequest parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -1394,23 +1394,23 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /hospitals/{code}: put: tags: - - Hospitals + - Hospitals operationId: updateHospital parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/HospitalDTO' + $ref: "#/components/schemas/HospitalDTO" required: true responses: "200": @@ -1418,25 +1418,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/HospitalDTO' + $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: schema: - $ref: '#/components/schemas/ExamTypeDTO' + $ref: "#/components/schemas/ExamTypeDTO" required: true responses: "200": @@ -1444,19 +1444,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExamTypeDTO' + $ref: "#/components/schemas/ExamTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Exam Types + - Exam Types operationId: deleteExamType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -1465,23 +1465,23 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /exams/{code}: put: tags: - - Exams - operationId: updateExams + - Exams + operationId: updateExam parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string requestBody: content: application/json: schema: - $ref: '#/components/schemas/ExamDTO' + $ref: "#/components/schemas/ExamWithRowsDTO" required: true responses: "200": @@ -1489,19 +1489,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExamDTO' + $ref: "#/components/schemas/ExamDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Exams + - Exams operationId: deleteExam_1 parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -1510,44 +1510,44 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /examinations/{id}: get: tags: - - Examinations + - Examinations operationId: getByID parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/PatientExaminationDTO' + $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: schema: - $ref: '#/components/schemas/PatientExaminationDTO' + $ref: "#/components/schemas/PatientExaminationDTO" required: true responses: "200": @@ -1557,11 +1557,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /diseasetypes: get: tags: - - Disease Types + - Disease Types operationId: getAllDiseaseTypes responses: "200": @@ -1571,18 +1571,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DiseaseTypeDTO' + $ref: "#/components/schemas/DiseaseTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Disease Types + - Disease Types operationId: updateDiseaseType requestBody: content: application/json: schema: - $ref: '#/components/schemas/DiseaseTypeDTO' + $ref: "#/components/schemas/DiseaseTypeDTO" required: true responses: "200": @@ -1590,18 +1590,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DiseaseTypeDTO' + $ref: "#/components/schemas/DiseaseTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Disease Types + - Disease Types operationId: newDiseaseType requestBody: content: application/json: schema: - $ref: '#/components/schemas/DiseaseTypeDTO' + $ref: "#/components/schemas/DiseaseTypeDTO" required: true responses: "200": @@ -1609,19 +1609,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DiseaseTypeDTO' + $ref: "#/components/schemas/DiseaseTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases: put: tags: - - Diseases + - Diseases operationId: updateDisease requestBody: content: application/json: schema: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" required: true responses: "200": @@ -1629,18 +1629,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Diseases + - Diseases operationId: newDisease requestBody: content: application/json: schema: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" required: true responses: "200": @@ -1648,13 +1648,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /dischargetypes: get: tags: - - DischargeType + - DischargeType operationId: getDischargeTypes responses: "200": @@ -1664,18 +1664,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DischargeTypeDTO' + $ref: "#/components/schemas/DischargeTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - DischargeType + - DischargeType operationId: updateDischargeTypet requestBody: content: application/json: schema: - $ref: '#/components/schemas/DischargeTypeDTO' + $ref: "#/components/schemas/DischargeTypeDTO" required: true responses: "200": @@ -1683,18 +1683,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DischargeTypeDTO' + $ref: "#/components/schemas/DischargeTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - DischargeType + - DischargeType operationId: newDischargeType requestBody: content: application/json: schema: - $ref: '#/components/schemas/DischargeTypeDTO' + $ref: "#/components/schemas/DischargeTypeDTO" required: true responses: "200": @@ -1702,13 +1702,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DischargeTypeDTO' + $ref: "#/components/schemas/DischargeTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /deliverytypes: get: tags: - - Delivery Type + - Delivery Type operationId: getDeliveryTypes responses: "200": @@ -1718,18 +1718,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeliveryTypeDTO' + $ref: "#/components/schemas/DeliveryTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Delivery Type + - Delivery Type operationId: updateDeliveryTypes requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeliveryTypeDTO' + $ref: "#/components/schemas/DeliveryTypeDTO" required: true responses: "200": @@ -1737,18 +1737,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeliveryTypeDTO' + $ref: "#/components/schemas/DeliveryTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Delivery Type + - Delivery Type operationId: newDeliveryType requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeliveryTypeDTO' + $ref: "#/components/schemas/DeliveryTypeDTO" required: true responses: "200": @@ -1756,13 +1756,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeliveryTypeDTO' + $ref: "#/components/schemas/DeliveryTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /deliveryresulttypes: get: tags: - - Delivery Result Type + - Delivery Result Type operationId: getDeliveryResultTypes responses: "200": @@ -1772,18 +1772,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeliveryResultTypeDTO' + $ref: "#/components/schemas/DeliveryResultTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Delivery Result Type + - Delivery Result Type operationId: updateDeliveryResultTypes requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeliveryResultTypeDTO' + $ref: "#/components/schemas/DeliveryResultTypeDTO" required: true responses: "200": @@ -1791,18 +1791,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeliveryResultTypeDTO' + $ref: "#/components/schemas/DeliveryResultTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Delivery Result Type + - Delivery Result Type operationId: newDeliveryResultType requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeliveryResultTypeDTO' + $ref: "#/components/schemas/DeliveryResultTypeDTO" required: true responses: "200": @@ -1810,46 +1810,46 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeliveryResultTypeDTO' + $ref: "#/components/schemas/DeliveryResultTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /bills/{id}: get: tags: - - Bills + - Bills operationId: getBill parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/BillDTO' + $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: schema: - $ref: '#/components/schemas/FullBillDTO' + $ref: "#/components/schemas/FullBillDTO" required: true responses: "200": @@ -1857,20 +1857,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FullBillDTO' + $ref: "#/components/schemas/FullBillDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Bills + - Bills operationId: deleteBill parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -1879,11 +1879,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /agetypes: get: tags: - - AgeTypes + - AgeTypes operationId: getAllAgeTypes responses: "200": @@ -1893,18 +1893,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/AgeTypeDTO' + $ref: "#/components/schemas/AgeTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - AgeTypes + - AgeTypes operationId: updateAgeType requestBody: content: application/json: schema: - $ref: '#/components/schemas/AgeTypeDTO' + $ref: "#/components/schemas/AgeTypeDTO" required: true responses: "200": @@ -1912,13 +1912,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AgeTypeDTO' + $ref: "#/components/schemas/AgeTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /admissiontypes: get: tags: - - AdmissionTypes + - AdmissionTypes operationId: getAdmissionTypes responses: "200": @@ -1928,18 +1928,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/AdmissionTypeDTO' + $ref: "#/components/schemas/AdmissionTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - AdmissionTypes + - AdmissionTypes operationId: updateAdmissionTypes requestBody: content: application/json: schema: - $ref: '#/components/schemas/AdmissionTypeDTO' + $ref: "#/components/schemas/AdmissionTypeDTO" required: true responses: "200": @@ -1947,18 +1947,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AdmissionTypeDTO' + $ref: "#/components/schemas/AdmissionTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - AdmissionTypes + - AdmissionTypes operationId: newAdmissionType requestBody: content: application/json: schema: - $ref: '#/components/schemas/AdmissionTypeDTO' + $ref: "#/components/schemas/AdmissionTypeDTO" required: true responses: "200": @@ -1966,42 +1966,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AdmissionTypeDTO' + $ref: "#/components/schemas/AdmissionTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /admissions: get: tags: - - Admissions + - Admissions operationId: getAdmissions parameters: - - name: admissionrange - in: query - required: true - schema: - type: array - items: - type: string - - name: page - in: query - required: false - schema: - type: integer - format: int32 - default: 0 - - name: size - in: query - required: false - schema: - type: integer - format: int32 - default: 80 - - name: paged - in: query - required: false - schema: - type: boolean - default: false + - name: admissionrange + in: query + required: true + schema: + type: array + items: + type: string + - name: page + in: query + required: false + schema: + type: integer + format: int32 + default: 0 + - name: size + in: query + required: false + schema: + type: integer + format: int32 + default: 80 + - name: paged + in: query + required: false + schema: + type: boolean + default: false responses: "400": description: Bad Request @@ -2010,18 +2010,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PageAdmissionDTO' + $ref: "#/components/schemas/PageAdmissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] put: tags: - - Admissions + - Admissions operationId: updateAdmissions requestBody: content: application/json: schema: - $ref: '#/components/schemas/AdmissionDTO' + $ref: "#/components/schemas/AdmissionDTO" required: true responses: "400": @@ -2031,18 +2031,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AdmissionDTO' + $ref: "#/components/schemas/AdmissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Admissions + - Admissions operationId: newAdmissions requestBody: content: application/json: schema: - $ref: '#/components/schemas/AdmissionDTO' + $ref: "#/components/schemas/AdmissionDTO" required: true responses: "400": @@ -2052,19 +2052,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AdmissionDTO' + $ref: "#/components/schemas/AdmissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /visits: post: tags: - - Visit + - Visit operationId: newVisit requestBody: content: application/json: schema: - $ref: '#/components/schemas/VisitDTO' + $ref: "#/components/schemas/VisitDTO" required: true responses: "200": @@ -2072,13 +2072,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VisitDTO' + $ref: "#/components/schemas/VisitDTO" security: - - bearerAuth: [] + - bearerAuth: [] /visits/insertList: post: tags: - - Visit + - Visit operationId: newVisits requestBody: content: @@ -2086,7 +2086,7 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VisitDTO' + $ref: "#/components/schemas/VisitDTO" required: true responses: "200": @@ -2096,11 +2096,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /usersettings: get: tags: - - User Settings + - User Settings operationId: getUserSettings responses: "200": @@ -2110,18 +2110,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/UserSettingDTO' + $ref: "#/components/schemas/UserSettingDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - User Settings + - User Settings operationId: newUserSettings requestBody: content: application/json: schema: - $ref: '#/components/schemas/UserSettingDTO' + $ref: "#/components/schemas/UserSettingDTO" required: true responses: "201": @@ -2129,20 +2129,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UserSettingDTO' + $ref: "#/components/schemas/UserSettingDTO" security: - - bearerAuth: [] + - bearerAuth: [] /users: get: tags: - - Users + - Users operationId: getUser parameters: - - name: group_id - in: query - required: false - schema: - type: string + - name: group_id + in: query + required: false + schema: + type: string responses: "200": description: OK @@ -2151,18 +2151,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/UserDTO' + $ref: "#/components/schemas/UserDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Users + - Users operationId: newUser requestBody: content: application/json: schema: - $ref: '#/components/schemas/UserDTO' + $ref: "#/components/schemas/UserDTO" required: true responses: "201": @@ -2170,13 +2170,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UserDTO' + $ref: "#/components/schemas/UserDTO" security: - - bearerAuth: [] + - bearerAuth: [] /usergroups: get: tags: - - User Groups + - User Groups operationId: getUserGroups responses: "200": @@ -2186,18 +2186,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/UserGroupDTO' + $ref: "#/components/schemas/UserGroupDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - User Groups + - User Groups operationId: newUserGroup requestBody: content: application/json: schema: - $ref: '#/components/schemas/UserGroupDTO' + $ref: "#/components/schemas/UserGroupDTO" required: true responses: "201": @@ -2205,26 +2205,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UserGroupDTO' + $ref: "#/components/schemas/UserGroupDTO" security: - - bearerAuth: [] + - bearerAuth: [] /usergroups/{group_code}/permissions/{id}: post: tags: - - User Groups + - User Groups operationId: assignPermission parameters: - - name: group_code - in: path - required: true - schema: - type: string - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: group_code + in: path + required: true + schema: + type: string + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "201": description: Created @@ -2234,38 +2234,38 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - User Groups + - User Groups operationId: revokePermission parameters: - - name: group_code - in: path - required: true - schema: - type: string - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: group_code + in: path + required: true + schema: + type: string + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "204": description: No Content security: - - bearerAuth: [] + - bearerAuth: [] /therapies: post: tags: - - Therapies + - Therapies operationId: newTherapy requestBody: content: application/json: schema: - $ref: '#/components/schemas/TherapyRowDTO' + $ref: "#/components/schemas/TherapyRowDTO" required: true responses: "200": @@ -2273,13 +2273,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TherapyRowDTO' + $ref: "#/components/schemas/TherapyRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /therapies/replace: post: tags: - - Therapies + - Therapies operationId: replaceTherapies requestBody: content: @@ -2287,7 +2287,7 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TherapyRowDTO' + $ref: "#/components/schemas/TherapyRowDTO" required: true responses: "200": @@ -2295,13 +2295,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TherapyRow' + $ref: "#/components/schemas/TherapyRow" security: - - bearerAuth: [] + - bearerAuth: [] /therapies/meds-out-of-stock: post: tags: - - Therapies + - Therapies operationId: getMedicalsOutOfStock requestBody: content: @@ -2309,7 +2309,7 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TherapyDTO' + $ref: "#/components/schemas/TherapyDTO" required: true responses: "200": @@ -2319,13 +2319,13 @@ paths: schema: type: array items: - $ref: '#/components/schemas/MedicalDTO' + $ref: "#/components/schemas/MedicalDTO" security: - - bearerAuth: [] + - bearerAuth: [] /therapies/from-rows: post: tags: - - Therapies + - Therapies operationId: getTherapies requestBody: content: @@ -2333,7 +2333,7 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TherapyRowDTO' + $ref: "#/components/schemas/TherapyRowDTO" required: true responses: "200": @@ -2343,19 +2343,19 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TherapyDTO' + $ref: "#/components/schemas/TherapyDTO" security: - - bearerAuth: [] + - bearerAuth: [] /therapies/from-row: post: tags: - - Therapies + - Therapies operationId: getTherapy requestBody: content: application/json: schema: - $ref: '#/components/schemas/TherapyRowDTO' + $ref: "#/components/schemas/TherapyRowDTO" required: true responses: "200": @@ -2363,27 +2363,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TherapyDTO' + $ref: "#/components/schemas/TherapyDTO" security: - - bearerAuth: [] + - bearerAuth: [] /stockmovements/discharge: post: tags: - - Stock Movements + - Stock Movements operationId: newMultipleDischargingMovements parameters: - - name: ref - in: query - required: true - schema: - type: string + - name: ref + in: query + required: true + schema: + type: string requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/MovementDTO' + $ref: "#/components/schemas/MovementDTO" required: true responses: "200": @@ -2393,25 +2393,25 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /stockmovements/charge: post: tags: - - Stock Movements + - Stock Movements operationId: newMultipleChargingMovements parameters: - - name: ref - in: query - required: true - schema: - type: string + - name: ref + in: query + required: true + schema: + type: string requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/MovementDTO' + $ref: "#/components/schemas/MovementDTO" required: true responses: "200": @@ -2421,23 +2421,23 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /sms: get: tags: - - SMS + - SMS operationId: getAll parameters: - - name: dateFrom - in: query - required: true - schema: - type: string - - name: dateTo - in: query - required: true - schema: - type: string + - name: dateFrom + in: query + required: true + schema: + type: string + - name: dateTo + in: query + required: true + schema: + type: string responses: "200": description: OK @@ -2446,25 +2446,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SmsDTO' + $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: schema: - $ref: '#/components/schemas/SmsDTO' + $ref: "#/components/schemas/SmsDTO" required: true responses: "200": @@ -2474,11 +2474,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /sms/delete: post: tags: - - SMS + - SMS operationId: deleteSms requestBody: content: @@ -2486,7 +2486,7 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SmsDTO' + $ref: "#/components/schemas/SmsDTO" required: true responses: "200": @@ -2496,11 +2496,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /pricesothers: get: tags: - - Others Price + - Others Price operationId: getPricesOthers responses: "200": @@ -2510,18 +2510,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PricesOthersDTO' + $ref: "#/components/schemas/PricesOthersDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Others Price + - Others Price operationId: newPricesOthers requestBody: content: application/json: schema: - $ref: '#/components/schemas/PricesOthersDTO' + $ref: "#/components/schemas/PricesOthersDTO" required: true responses: "200": @@ -2529,13 +2529,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PricesOthersDTO' + $ref: "#/components/schemas/PricesOthersDTO" security: - - bearerAuth: [] + - bearerAuth: [] /pricelists: get: tags: - - Price Lists + - Price Lists operationId: getPriceLists responses: "200": @@ -2545,18 +2545,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PriceListDTO' + $ref: "#/components/schemas/PriceListDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Price Lists + - Price Lists operationId: newPriceList requestBody: content: application/json: schema: - $ref: '#/components/schemas/PriceListDTO' + $ref: "#/components/schemas/PriceListDTO" required: true responses: "200": @@ -2564,13 +2564,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PriceListDTO' + $ref: "#/components/schemas/PriceListDTO" security: - - bearerAuth: [] + - bearerAuth: [] /pregnanttreatmenttypes: get: tags: - - Pregnant Treatment Types + - Pregnant Treatment Types operationId: getPregnantTreatmentTypes responses: "200": @@ -2580,18 +2580,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PregnantTreatmentTypeDTO' + $ref: "#/components/schemas/PregnantTreatmentTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Pregnant Treatment Types + - Pregnant Treatment Types operationId: newPregnantTreatmentType requestBody: content: application/json: schema: - $ref: '#/components/schemas/PregnantTreatmentTypeDTO' + $ref: "#/components/schemas/PregnantTreatmentTypeDTO" required: true responses: "200": @@ -2599,19 +2599,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PregnantTreatmentTypeDTO' + $ref: "#/components/schemas/PregnantTreatmentTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /patientvaccines: post: tags: - - Patient Vaccines + - Patient Vaccines operationId: newPatientVaccine requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatientVaccineDTO' + $ref: "#/components/schemas/PatientVaccineDTO" required: true responses: "200": @@ -2619,47 +2619,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatientVaccineDTO' + $ref: "#/components/schemas/PatientVaccineDTO" security: - - bearerAuth: [] + - bearerAuth: [] /patients: get: tags: - - Patients + - Patients operationId: getPatients parameters: - - name: page - in: query - required: false - schema: - type: integer - format: int32 - default: 0 - - name: size - in: query - required: false - schema: - type: integer - format: int32 - default: 80 + - name: page + in: query + required: false + schema: + type: integer + format: int32 + default: 0 + - name: size + in: query + required: false + schema: + type: integer + format: int32 + default: 80 responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/PagePatientDTO' + $ref: "#/components/schemas/PagePatientDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Patients + - Patients operationId: newPatient requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatientDTO' + $ref: "#/components/schemas/PatientDTO" required: true responses: "200": @@ -2667,13 +2667,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatientDTO' + $ref: "#/components/schemas/PatientDTO" security: - - bearerAuth: [] + - bearerAuth: [] /operationtypes: get: tags: - - Operations Types + - Operations Types operationId: getOperationTypes responses: "200": @@ -2683,18 +2683,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/OperationTypeDTO' + $ref: "#/components/schemas/OperationTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Operations Types + - Operations Types operationId: newOperationType requestBody: content: application/json: schema: - $ref: '#/components/schemas/OperationTypeDTO' + $ref: "#/components/schemas/OperationTypeDTO" required: true responses: "200": @@ -2702,13 +2702,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OperationTypeDTO' + $ref: "#/components/schemas/OperationTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /operations: get: tags: - - Operations + - Operations operationId: getOperations responses: "200": @@ -2718,18 +2718,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/OperationDTO' + $ref: "#/components/schemas/OperationDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Operations + - Operations operationId: newOperation requestBody: content: application/json: schema: - $ref: '#/components/schemas/OperationDTO' + $ref: "#/components/schemas/OperationDTO" required: true responses: "200": @@ -2737,19 +2737,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OperationDTO' + $ref: "#/components/schemas/OperationDTO" security: - - bearerAuth: [] + - bearerAuth: [] /operations/rows/search/opd: post: tags: - - Operations + - Operations operationId: getOperationRowsByOpd requestBody: content: application/json: schema: - $ref: '#/components/schemas/OpdDTO' + $ref: "#/components/schemas/OpdDTO" required: true responses: "200": @@ -2759,19 +2759,19 @@ paths: schema: type: array items: - $ref: '#/components/schemas/OperationRowDTO' + $ref: "#/components/schemas/OperationRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /opds: post: tags: - - Opds + - Opds operationId: newOpd requestBody: content: application/json: schema: - $ref: '#/components/schemas/OpdDTO' + $ref: "#/components/schemas/OpdDTO" required: true responses: "200": @@ -2779,19 +2779,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OpdDTO' + $ref: "#/components/schemas/OpdDTO" security: - - bearerAuth: [] + - bearerAuth: [] /opds/rows: post: tags: - - Opds + - Opds operationId: newOpdWithOperationRow requestBody: content: application/json: schema: - $ref: '#/components/schemas/OpdWithOperationRowDTO' + $ref: "#/components/schemas/OpdWithOperationRowDTO" required: true responses: "200": @@ -2799,19 +2799,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OpdWithOperationRowDTO' + $ref: "#/components/schemas/OpdWithOperationRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockward/movements: post: tags: - - Medical Stock Ward + - Medical Stock Ward operationId: newMovementWard requestBody: content: application/json: schema: - $ref: '#/components/schemas/MovementWardDTO' + $ref: "#/components/schemas/MovementWardDTO" required: true responses: "200": @@ -2821,25 +2821,25 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/discharge: post: tags: - - Stock Movements + - Stock Movements operationId: newMultipleDischargingMovements_1 parameters: - - name: ref - in: query - required: true - schema: - type: string + - name: ref + in: query + required: true + schema: + type: string requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/MovementDTO' + $ref: "#/components/schemas/MovementDTO" required: true responses: "200": @@ -2849,25 +2849,25 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/charge: post: tags: - - Stock Movements + - Stock Movements operationId: newMultipleChargingMovements_1 parameters: - - name: ref - in: query - required: true - schema: - type: string + - name: ref + in: query + required: true + schema: + type: string requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/MovementDTO' + $ref: "#/components/schemas/MovementDTO" required: true responses: "200": @@ -2877,48 +2877,48 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /laboratories: get: tags: - - Laboratories + - Laboratories operationId: getLaboratory parameters: - - name: oneWeek - in: query - required: true - schema: - type: boolean - - name: page - in: query - required: true - schema: - type: integer - format: int32 - - name: size - in: query - required: true - schema: - type: integer - format: int32 + - name: oneWeek + in: query + required: true + schema: + type: boolean + - name: page + in: query + required: true + schema: + type: integer + format: int32 + - name: size + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/PageLabWithRowsDTO' + $ref: "#/components/schemas/PageLabWithRowsDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Laboratories + - Laboratories operationId: newLaboratory requestBody: content: application/json: schema: - $ref: '#/components/schemas/LabWithRowsDTO' + $ref: "#/components/schemas/LabWithRowsDTO" required: true responses: "200": @@ -2928,11 +2928,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/insertList: post: tags: - - Laboratories + - Laboratories operationId: newLaboratory2 requestBody: content: @@ -2940,7 +2940,7 @@ paths: schema: type: array items: - $ref: '#/components/schemas/LabWithRowsDTO' + $ref: "#/components/schemas/LabWithRowsDTO" required: true responses: "200": @@ -2950,11 +2950,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/examRequest: get: tags: - - Laboratories + - Laboratories operationId: getLaboratoryExamRequest responses: "200": @@ -2964,18 +2964,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/LaboratoryDTO' + $ref: "#/components/schemas/LaboratoryDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Laboratories + - Laboratories operationId: newExamRequest requestBody: content: application/json: schema: - $ref: '#/components/schemas/LaboratoryDTO' + $ref: "#/components/schemas/LaboratoryDTO" required: true responses: "200": @@ -2985,11 +2985,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /examtypes: get: tags: - - Exam Types + - Exam Types operationId: getExamTypes responses: "200": @@ -2999,18 +2999,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ExamTypeDTO' + $ref: "#/components/schemas/ExamTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Exam Types + - Exam Types operationId: newExamType requestBody: content: application/json: schema: - $ref: '#/components/schemas/ExamTypeDTO' + $ref: "#/components/schemas/ExamTypeDTO" required: true responses: "200": @@ -3018,13 +3018,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExamTypeDTO' + $ref: "#/components/schemas/ExamTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] /exams: get: tags: - - Exams + - Exams operationId: getExams responses: "200": @@ -3034,32 +3034,32 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ExamDTO' + $ref: "#/components/schemas/ExamDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Exams + - Exams operationId: newExam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ExamDTO' + $ref: "#/components/schemas/ExamWithRowsDTO" required: true responses: - "200": - description: OK + "201": + description: Created content: application/json: schema: - $ref: '#/components/schemas/ExamDTO' + $ref: "#/components/schemas/ExamDTO" security: - - bearerAuth: [] + - bearerAuth: [] /examrows: get: tags: - - Exam Rows + - Exam Rows operationId: getExamRows responses: "200": @@ -3069,18 +3069,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ExamRowDTO' + $ref: "#/components/schemas/ExamRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Exam Rows + - Exam Rows operationId: newExamRow requestBody: content: application/json: schema: - $ref: '#/components/schemas/ExamRowDTO' + $ref: "#/components/schemas/ExamRowDTO" required: true responses: "200": @@ -3088,19 +3088,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExamRowDTO' + $ref: "#/components/schemas/ExamRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /examinations: post: tags: - - Examinations + - Examinations operationId: newPatientExamination requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatientExaminationDTO' + $ref: "#/components/schemas/PatientExaminationDTO" required: true responses: "200": @@ -3110,29 +3110,29 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /bills: get: tags: - - Bills + - Bills operationId: searchBills_1 parameters: - - name: datefrom - in: query - required: true - schema: - type: string - - name: dateto - in: query - required: true - schema: - type: string - - name: patient_code - in: query - required: false - schema: - type: integer - format: int32 + - name: datefrom + in: query + required: true + schema: + type: string + - name: dateto + in: query + required: true + schema: + type: string + - name: patient_code + in: query + required: false + schema: + type: integer + format: int32 responses: "200": description: OK @@ -3141,18 +3141,18 @@ paths: schema: type: array items: - $ref: '#/components/schemas/BillDTO' + $ref: "#/components/schemas/BillDTO" security: - - bearerAuth: [] + - bearerAuth: [] post: tags: - - Bills + - Bills operationId: newBill requestBody: content: application/json: schema: - $ref: '#/components/schemas/FullBillDTO' + $ref: "#/components/schemas/FullBillDTO" required: true responses: "200": @@ -3160,13 +3160,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FullBillDTO' + $ref: "#/components/schemas/FullBillDTO" security: - - bearerAuth: [] + - bearerAuth: [] /bills/search/by/payments: post: tags: - - Bills + - Bills operationId: searchBillsByPayments requestBody: content: @@ -3174,7 +3174,7 @@ paths: schema: type: array items: - $ref: '#/components/schemas/BillPaymentsDTO' + $ref: "#/components/schemas/BillPaymentsDTO" required: true responses: "200": @@ -3184,30 +3184,30 @@ paths: schema: type: array items: - $ref: '#/components/schemas/BillDTO' + $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: schema: - $ref: '#/components/schemas/BillItemsDTO' + $ref: "#/components/schemas/BillItemsDTO" required: true responses: "200": @@ -3217,33 +3217,33 @@ paths: schema: type: array items: - $ref: '#/components/schemas/BillDTO' + $ref: "#/components/schemas/BillDTO" security: - - bearerAuth: [] + - bearerAuth: [] /auth/refresh-token: post: tags: - - Login + - Login operationId: refreshToken requestBody: content: application/json: schema: - $ref: '#/components/schemas/TokenRefreshRequest' + $ref: "#/components/schemas/TokenRefreshRequest" required: true responses: "200": description: OK content: - '*/*': + "*/*": schema: - $ref: '#/components/schemas/LoginResponse' + $ref: "#/components/schemas/LoginResponse" security: - - bearerAuth: [] + - bearerAuth: [] /auth/logout: post: tags: - - Login + - Login description: Logout the current user. operationId: logout responses: @@ -3252,13 +3252,13 @@ paths: /auth/login: post: tags: - - Login + - Login operationId: authenticateUser requestBody: content: application/json: schema: - $ref: '#/components/schemas/LoginRequest' + $ref: "#/components/schemas/LoginRequest" required: true responses: "200": @@ -3266,26 +3266,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LoginResponse' + $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: schema: - $ref: '#/components/schemas/AdmissionDTO' + $ref: "#/components/schemas/AdmissionDTO" required: true responses: "400": @@ -3297,11 +3297,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /wardsNoMaternity: get: tags: - - Wards + - Wards operationId: getWardsNoMaternity responses: "200": @@ -3311,20 +3311,20 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WardDTO' + $ref: "#/components/schemas/WardDTO" security: - - bearerAuth: [] + - bearerAuth: [] /wards/occupation/{code}: get: tags: - - Wards + - Wards operationId: getCurrentOccupation parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -3334,18 +3334,18 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] /wards/check/{code}: get: tags: - - Wards + - Wards operationId: checkWardCode parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -3354,18 +3354,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /wards/check/maternity/{createIfNotExist}: get: tags: - - Wards + - Wards operationId: checkWardMaternityCode parameters: - - name: createIfNotExist - in: path - required: true - schema: - type: boolean + - name: createIfNotExist + in: path + required: true + schema: + type: boolean responses: "200": description: OK @@ -3374,19 +3374,19 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /visits/patient/{patID}: get: tags: - - Visit + - Visit operationId: getVisit parameters: - - name: patID - in: path - required: true - schema: - type: integer - format: int32 + - name: patID + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -3395,20 +3395,20 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VisitDTO' + $ref: "#/components/schemas/VisitDTO" security: - - bearerAuth: [] + - bearerAuth: [] /vaccinetypes/check/{code}: get: tags: - - Vaccine Type + - Vaccine Type operationId: checkVaccineTypeCode parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -3417,18 +3417,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /vaccines/type-code/{vaccineTypeCode}: get: tags: - - Vaccines + - Vaccines operationId: getVaccinesByVaccineTypeCode parameters: - - name: vaccineTypeCode - in: path - required: true - schema: - type: string + - name: vaccineTypeCode + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -3437,20 +3437,20 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VaccineDTO' + $ref: "#/components/schemas/VaccineDTO" security: - - bearerAuth: [] + - bearerAuth: [] /vaccines/check/{code}: get: tags: - - Vaccines + - Vaccines operationId: checkVaccineCode parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -3459,38 +3459,38 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /usersettings/{configName}: get: tags: - - User Settings + - User Settings operationId: getUserSettingByUser parameters: - - name: configName - in: path - required: true - schema: - type: string + - name: configName + in: path + required: true + schema: + type: string responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/UserSettingDTO' + $ref: "#/components/schemas/UserSettingDTO" security: - - bearerAuth: [] + - bearerAuth: [] /users/{username}/permissions: get: tags: - - Users + - Users operationId: retrievePermissionsByUsername parameters: - - name: username - in: path - required: true - schema: - type: string + - name: username + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -3499,21 +3499,21 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PermissionDTO' + $ref: "#/components/schemas/PermissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /therapies/{code_patient}: get: tags: - - Therapies + - Therapies operationId: getTherapyRows parameters: - - name: code_patient - in: path - required: true - schema: - type: integer - format: int32 + - name: code_patient + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -3522,20 +3522,20 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TherapyRowDTO' + $ref: "#/components/schemas/TherapyRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Therapies + - Therapies operationId: deleteAllTherapies parameters: - - name: code_patient - in: path - required: true - schema: - type: integer - format: int32 + - name: code_patient + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -3544,48 +3544,48 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /suppliers/{id}: get: tags: - - Suppliers + - Suppliers operationId: getSuppliers_1 parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/SupplierDTO' + $ref: "#/components/schemas/SupplierDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Suppliers + - Suppliers operationId: deleteSupplier parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "204": description: No Content security: - - bearerAuth: [] + - bearerAuth: [] /stockmovements: get: tags: - - Stock Movements + - Stock Movements operationId: getMovements responses: "200": @@ -3595,20 +3595,20 @@ paths: schema: type: array items: - $ref: '#/components/schemas/MovementDTO' + $ref: "#/components/schemas/MovementDTO" security: - - bearerAuth: [] + - bearerAuth: [] /stockmovements/{ref}: get: tags: - - Stock Movements + - Stock Movements operationId: getMovements_1 parameters: - - name: ref - in: path - required: true - schema: - type: string + - name: ref + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -3617,21 +3617,21 @@ paths: schema: type: array items: - $ref: '#/components/schemas/MovementDTO' + $ref: "#/components/schemas/MovementDTO" security: - - bearerAuth: [] + - bearerAuth: [] /stockmovements/lot/{med_code}: get: tags: - - Stock Movements + - Stock Movements operationId: getLotByMedical parameters: - - name: med_code - in: path - required: true - schema: - type: integer - format: int32 + - name: med_code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -3640,72 +3640,72 @@ paths: schema: type: array items: - $ref: '#/components/schemas/LotDTO' + $ref: "#/components/schemas/LotDTO" security: - - bearerAuth: [] + - bearerAuth: [] /stockmovements/filter/v2: get: tags: - - Stock Movements + - Stock Movements operationId: getMovements_2 parameters: - - name: med_code - in: query - required: false - schema: - type: integer - format: int32 - - name: med_type - in: query - required: false - schema: - type: string - - name: ward_id - in: query - required: false - schema: - type: string - - name: mov_type - in: query - required: false - schema: - type: string - - name: mov_from - in: query - required: false - schema: - type: string - format: date-time - - name: mov_to - in: query - required: false - schema: - type: string - format: date-time - - name: lot_prep_from - in: query - required: false - schema: - type: string - format: date-time - - name: lot_prep_to - in: query - required: false - schema: - type: string - format: date-time - - name: lot_due_from - in: query - required: false - schema: - type: string - format: date-time - - name: lot_due_to - in: query - required: false - schema: - type: string - format: date-time + - name: med_code + in: query + required: false + schema: + type: integer + format: int32 + - name: med_type + in: query + required: false + schema: + type: string + - name: ward_id + in: query + required: false + schema: + type: string + - name: mov_type + in: query + required: false + schema: + type: string + - name: mov_from + in: query + required: false + schema: + type: string + format: date-time + - name: mov_to + in: query + required: false + schema: + type: string + format: date-time + - name: lot_prep_from + in: query + required: false + schema: + type: string + format: date-time + - name: lot_prep_to + in: query + required: false + schema: + type: string + format: date-time + - name: lot_due_from + in: query + required: false + schema: + type: string + format: date-time + - name: lot_due_to + in: query + required: false + schema: + type: string + format: date-time responses: "200": description: OK @@ -3714,32 +3714,32 @@ paths: schema: type: array items: - $ref: '#/components/schemas/MovementDTO' + $ref: "#/components/schemas/MovementDTO" security: - - bearerAuth: [] + - bearerAuth: [] /stockmovements/filter/v1: get: tags: - - Stock Movements + - Stock Movements operationId: getMovements_3 parameters: - - name: ward_id - in: query - required: true - schema: - type: string - - name: from - in: query - required: true - schema: - type: string - format: date-time - - name: to - in: query - required: true - schema: - type: string - format: date-time + - name: ward_id + in: query + required: true + schema: + type: string + - name: from + in: query + required: true + schema: + type: string + format: date-time + - name: to + in: query + required: true + schema: + type: string + format: date-time responses: "200": description: OK @@ -3748,27 +3748,27 @@ paths: schema: type: array items: - $ref: '#/components/schemas/MovementDTO' + $ref: "#/components/schemas/MovementDTO" security: - - bearerAuth: [] + - bearerAuth: [] /stockmovements/critical/check: get: tags: - - Stock Movements + - Stock Movements operationId: alertCriticalQuantity parameters: - - name: med_code - in: query - required: true - schema: - type: integer - format: int32 - - name: qty - in: query - required: true - schema: - type: integer - format: int32 + - name: med_code + in: query + required: true + schema: + type: integer + format: int32 + - name: qty + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -3777,11 +3777,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /reports/exams-list: get: tags: - - Reports + - Reports operationId: printExamsListPdf responses: "200": @@ -3794,11 +3794,11 @@ paths: type: string format: byte security: - - bearerAuth: [] + - bearerAuth: [] /reports/diseases-list: get: tags: - - Reports + - Reports operationId: printDiseasesListPdf responses: "200": @@ -3811,11 +3811,11 @@ paths: type: string format: byte security: - - bearerAuth: [] + - bearerAuth: [] /pricelists/prices: get: tags: - - Price Lists + - Price Lists operationId: getPrices responses: "200": @@ -3825,21 +3825,21 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PriceDTO' + $ref: "#/components/schemas/PriceDTO" security: - - bearerAuth: [] + - bearerAuth: [] /pricelists/duplicate/{id}: get: tags: - - Price Lists + - Price Lists operationId: copyList parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int64 + - name: id + in: path + required: true + schema: + type: integer + format: int64 responses: "200": description: OK @@ -3848,31 +3848,31 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /pricelists/duplicate/byfactor/{id}: get: tags: - - Price Lists + - Price Lists operationId: copyByFactorAndStep parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int64 - - name: factor - in: query - required: true - schema: - type: number - format: double - - name: step - in: query - required: true - schema: - type: number - format: double + - name: id + in: path + required: true + schema: + type: integer + format: int64 + - name: factor + in: query + required: true + schema: + type: number + format: double + - name: step + in: query + required: true + schema: + type: number + format: double responses: "200": description: OK @@ -3881,11 +3881,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /permissions: get: tags: - - Permissions + - Permissions operationId: retrieveAllPermissions responses: "200": @@ -3895,41 +3895,41 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PermissionDTO' + $ref: "#/components/schemas/PermissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /permissions/{id}: get: tags: - - Permissions + - Permissions operationId: retrievePermissionById parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/PermissionDTO' + $ref: "#/components/schemas/PermissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /permissions/userGroupCode/{userGroupCode}: get: tags: - - Permissions + - Permissions operationId: retrievePermissionsByUserGroupCode parameters: - - name: userGroupCode - in: path - required: true - schema: - type: string + - name: userGroupCode + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -3938,40 +3938,40 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PermissionDTO' + $ref: "#/components/schemas/PermissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /permissions/name/{name}: get: tags: - - Permissions + - Permissions operationId: retrievePermissionByName parameters: - - name: name - in: path - required: true - schema: - type: string + - name: name + in: path + required: true + schema: + type: string responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/PermissionDTO' + $ref: "#/components/schemas/PermissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /patientvaccines/week: get: tags: - - Patient Vaccines + - Patient Vaccines operationId: getPatientVaccines parameters: - - name: oneWeek - in: query - required: false - schema: - type: boolean + - name: oneWeek + in: query + required: false + schema: + type: boolean responses: "200": description: OK @@ -3980,21 +3980,21 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PatientVaccineDTO' + $ref: "#/components/schemas/PatientVaccineDTO" security: - - bearerAuth: [] + - bearerAuth: [] /patientvaccines/progyear/{year}: get: tags: - - Patient Vaccines + - Patient Vaccines operationId: getProgYear parameters: - - name: year - in: path - required: true - schema: - type: integer - format: int32 + - name: year + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4004,52 +4004,52 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] /patientvaccines/filter: get: tags: - - Patient Vaccines + - Patient Vaccines operationId: getPatientVaccinesByDatesRanges parameters: - - name: vaccineTypeCode - in: query - required: true - schema: - type: string - - name: vaccineCode - in: query - required: true - schema: - type: string - - name: dateFrom - in: query - required: true - schema: - type: string - format: date - - name: dateTo - in: query - required: true - schema: - type: string - format: date - - name: sex - in: query - required: true - schema: - type: string - - name: ageFrom - in: query - required: true - schema: - type: integer - format: int32 - - name: ageTo - in: query - required: true - schema: - type: integer - format: int32 + - name: vaccineTypeCode + in: query + required: true + schema: + type: string + - name: vaccineCode + in: query + required: true + schema: + type: string + - name: dateFrom + in: query + required: true + schema: + type: string + format: date + - name: dateTo + in: query + required: true + schema: + type: string + format: date + - name: sex + in: query + required: true + schema: + type: string + - name: ageFrom + in: query + required: true + schema: + type: integer + format: int32 + - name: ageTo + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4058,39 +4058,39 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PatientVaccineDTO' + $ref: "#/components/schemas/PatientVaccineDTO" security: - - bearerAuth: [] + - bearerAuth: [] /patients/search: get: tags: - - Patients + - Patients operationId: searchPatient parameters: - - name: firstName - in: query - required: false - schema: - type: string - default: "" - - name: secondName - in: query - required: false - schema: - type: string - default: "" - - name: birthDate - in: query - required: false - schema: - type: string - format: date-time - - name: address - in: query - required: false - schema: - type: string - default: "" + - name: firstName + in: query + required: false + schema: + type: string + default: "" + - name: secondName + in: query + required: false + schema: + type: string + default: "" + - name: birthDate + in: query + required: false + schema: + type: string + format: date-time + - name: address + in: query + required: false + schema: + type: string + default: "" responses: "200": description: OK @@ -4099,13 +4099,13 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PatientDTO' + $ref: "#/components/schemas/PatientDTO" security: - - bearerAuth: [] + - bearerAuth: [] /patients/nextcode: get: tags: - - Patients + - Patients operationId: getPatientNextCode responses: "200": @@ -4116,25 +4116,25 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] /patients/merge: get: tags: - - Patients + - Patients operationId: mergePatients parameters: - - name: mergedcode - in: query - required: true - schema: - type: integer - format: int32 - - name: code2 - in: query - required: true - schema: - type: integer - format: int32 + - name: mergedcode + in: query + required: true + schema: + type: integer + format: int32 + - name: code2 + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4143,11 +4143,11 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /patients/cities: get: tags: - - Patients + - Patients operationId: getPatientCities responses: "200": @@ -4159,39 +4159,39 @@ paths: items: type: string security: - - bearerAuth: [] + - bearerAuth: [] /patients/all: get: tags: - - Patients + - Patients operationId: getPatientAll parameters: - - name: code - in: query - required: true - schema: - type: integer - format: int32 + - name: code + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/PatientDTO' + $ref: "#/components/schemas/PatientDTO" security: - - bearerAuth: [] + - bearerAuth: [] /operations/search/type: get: tags: - - Operations + - Operations operationId: getOperationByTypeDescription parameters: - - name: typeDescription - in: query - required: true - schema: - type: string + - name: typeDescription + in: query + required: true + schema: + type: string responses: "200": description: OK @@ -4200,21 +4200,21 @@ paths: schema: type: array items: - $ref: '#/components/schemas/OperationDTO' + $ref: "#/components/schemas/OperationDTO" security: - - bearerAuth: [] + - bearerAuth: [] /operations/rows/search/patient: get: tags: - - Operations + - Operations operationId: getOperationRowsByPatient parameters: - - name: patientCode - in: query - required: true - schema: - type: integer - format: int32 + - name: patientCode + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4223,21 +4223,21 @@ paths: schema: type: array items: - $ref: '#/components/schemas/OperationRowDTO' + $ref: "#/components/schemas/OperationRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /operations/rows/search/admission: get: tags: - - Operations + - Operations operationId: getOperationRowsByAdmt parameters: - - name: admissionId - in: query - required: true - schema: - type: integer - format: int32 + - name: admissionId + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4246,20 +4246,20 @@ paths: schema: type: array items: - $ref: '#/components/schemas/OperationRowDTO' + $ref: "#/components/schemas/OperationRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /opds/weekly: get: tags: - - Opds + - Opds operationId: getOpdToDayOrWeek parameters: - - name: oneWeek - in: query - required: false - schema: - type: boolean + - name: oneWeek + in: query + required: false + schema: + type: boolean responses: "200": description: OK @@ -4268,114 +4268,114 @@ paths: schema: type: array items: - $ref: '#/components/schemas/OpdDTO' + $ref: "#/components/schemas/OpdDTO" security: - - bearerAuth: [] + - bearerAuth: [] /opds/search: get: tags: - - Opds + - Opds operationId: getOpdByDates parameters: - - name: dateFrom - in: query - required: true - schema: - type: string - - name: dateTo - in: query - required: true - schema: - type: string - - name: diseaseTypeCode - in: query - required: false - schema: - type: string - - name: diseaseCode - in: query - required: false - schema: - type: string - - name: ageFrom - in: query - required: false - schema: - type: integer - format: int32 - default: 0 - - name: ageTo - in: query - required: false - schema: - type: integer - format: int32 - default: 200 - - name: sex - in: query - required: false - schema: - type: string - default: A - - name: newPatient - in: query - required: false - schema: - type: string - default: A - - name: patientCode - in: query - required: false - schema: - type: integer - format: int32 - default: 0 - - name: page - in: query - required: false - schema: - type: integer - format: int32 - default: 0 - - name: size - in: query - required: false - schema: - type: integer - format: int32 - default: 80 - - name: paged - in: query - required: false - schema: - type: boolean - default: false - - name: wardCode - in: query - required: false - schema: - type: string + - name: dateFrom + in: query + required: true + schema: + type: string + - name: dateTo + in: query + required: true + schema: + type: string + - name: diseaseTypeCode + in: query + required: false + schema: + type: string + - name: diseaseCode + in: query + required: false + schema: + type: string + - name: ageFrom + in: query + required: false + schema: + type: integer + format: int32 + default: 0 + - name: ageTo + in: query + required: false + schema: + type: integer + format: int32 + default: 200 + - name: sex + in: query + required: false + schema: + type: string + default: A + - name: newPatient + in: query + required: false + schema: + type: string + default: A + - name: patientCode + in: query + required: false + schema: + type: integer + format: int32 + default: 0 + - name: page + in: query + required: false + schema: + type: integer + format: int32 + default: 0 + - name: size + in: query + required: false + schema: + type: integer + format: int32 + default: 80 + - name: paged + in: query + required: false + schema: + type: boolean + default: false + - name: wardCode + in: query + required: false + schema: + type: string responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/PageOpdDTO' + $ref: "#/components/schemas/PageOpdDTO" security: - - bearerAuth: [] + - bearerAuth: [] /opds/patient/{pcode}: get: tags: - - Opds + - Opds operationId: getOpdByPatient parameters: - - name: pcode - in: path - required: true - schema: - type: integer - format: int32 + - name: pcode + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4384,48 +4384,48 @@ paths: schema: type: array items: - $ref: '#/components/schemas/OpdWithOperationRowDTO' + $ref: "#/components/schemas/OpdWithOperationRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /opds/last/{patientCode}: get: tags: - - Opds + - Opds operationId: getLastOpd parameters: - - name: patientCode - in: path - required: true - schema: - type: integer - format: int32 + - name: patientCode + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/OpdDTO' + $ref: "#/components/schemas/OpdDTO" security: - - bearerAuth: [] + - bearerAuth: [] /opds/check/progyear: get: tags: - - Opds + - Opds operationId: isExistOpdNum parameters: - - name: opdNum - in: query - required: true - schema: - type: integer - format: int32 - - name: year - in: query - required: true - schema: - type: integer - format: int32 + - name: opdNum + in: query + required: true + schema: + type: integer + format: int32 + - name: year + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4434,19 +4434,19 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /opds/ProgYear/{year}: get: tags: - - Opds + - Opds operationId: getProgYear_1 parameters: - - name: year - in: path - required: true - schema: - type: integer - format: int32 + - name: year + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4456,37 +4456,37 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] /medstockmovementtypes/{code}: get: tags: - - Medical Stock Movement Type + - Medical Stock Movement Type operationId: getMovementType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/MovementTypeDTO' + $ref: "#/components/schemas/MovementTypeDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Medical Stock Movement Type + - Medical Stock Movement Type operationId: deleteMedicalDsrStockMovementType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -4495,18 +4495,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /medstockmovementtypes/check/{code}: get: tags: - - Medical Stock Movement Type + - Medical Stock Movement Type operationId: isCodeUsed parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -4515,18 +4515,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /medicaltypes/check/{code}: get: tags: - - Medical Types + - Medical Types operationId: isCodeUsed_1 parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -4535,18 +4535,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockward/{ward_code}: get: tags: - - Medical Stock Ward + - Medical Stock Ward operationId: getMedicalsWard parameters: - - name: ward_code - in: path - required: true - schema: - type: string + - name: ward_code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -4555,32 +4555,32 @@ paths: schema: type: array items: - $ref: '#/components/schemas/MedicalWardDTO' + $ref: "#/components/schemas/MedicalWardDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockward/movements/{ward_code}: get: tags: - - Medical Stock Ward + - Medical Stock Ward operationId: getMovementWard parameters: - - name: ward_code - in: path - required: true - schema: - type: string - - name: from - in: query - required: true - schema: - type: string - format: date - - name: to - in: query - required: true - schema: - type: string - format: date + - name: ward_code + in: path + required: true + schema: + type: string + - name: from + in: query + required: true + schema: + type: string + format: date + - name: to + in: query + required: true + schema: + type: string + format: date responses: "200": description: OK @@ -4589,32 +4589,32 @@ paths: schema: type: array items: - $ref: '#/components/schemas/MovementWardDTO' + $ref: "#/components/schemas/MovementWardDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockward/movements/to/{target_ward_code}: get: tags: - - Medical Stock Ward + - Medical Stock Ward operationId: getWardMovementsToWard parameters: - - name: target_ward_code - in: path - required: true - schema: - type: string - - name: from - in: query - required: true - schema: - type: string - format: date-time - - name: to - in: query - required: true - schema: - type: string - format: date-time + - name: target_ward_code + in: path + required: true + schema: + type: string + - name: from + in: query + required: true + schema: + type: string + format: date-time + - name: to + in: query + required: true + schema: + type: string + format: date-time responses: "200": description: OK @@ -4623,26 +4623,26 @@ paths: schema: type: array items: - $ref: '#/components/schemas/MovementWardDTO' + $ref: "#/components/schemas/MovementWardDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockward/current/{ward_code}: get: tags: - - Medical Stock Ward + - Medical Stock Ward operationId: getCurrentQuantityInWard parameters: - - name: ward_code - in: path - required: true - schema: - type: string - - name: med_id - in: query - required: true - schema: - type: integer - format: int32 + - name: ward_code + in: path + required: true + schema: + type: string + - name: med_id + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4652,11 +4652,11 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements: get: tags: - - Stock Movements + - Stock Movements operationId: getMovements_4 responses: "200": @@ -4666,20 +4666,20 @@ paths: schema: type: array items: - $ref: '#/components/schemas/MovementDTO' + $ref: "#/components/schemas/MovementDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/{ref}: get: tags: - - Stock Movements + - Stock Movements operationId: getMovements_5 parameters: - - name: ref - in: path - required: true - schema: - type: string + - name: ref + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -4688,21 +4688,21 @@ paths: schema: type: array items: - $ref: '#/components/schemas/MovementDTO' + $ref: "#/components/schemas/MovementDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/lot/{med_code}: get: tags: - - Stock Movements + - Stock Movements operationId: getLotByMedical_1 parameters: - - name: med_code - in: path - required: true - schema: - type: integer - format: int32 + - name: med_code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4711,72 +4711,72 @@ paths: schema: type: array items: - $ref: '#/components/schemas/LotDTO' + $ref: "#/components/schemas/LotDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/filter/v2: get: tags: - - Stock Movements + - Stock Movements operationId: getMovements_6 parameters: - - name: med_code - in: query - required: false - schema: - type: integer - format: int32 - - name: med_type - in: query - required: false - schema: - type: string - - name: ward_id - in: query - required: false - schema: - type: string - - name: mov_type - in: query - required: false - schema: - type: string - - name: mov_from - in: query - required: false - schema: - type: string - format: date-time - - name: mov_to - in: query - required: false - schema: - type: string - format: date-time - - name: lot_prep_from - in: query - required: false - schema: - type: string - format: date-time - - name: lot_prep_to - in: query - required: false - schema: - type: string - format: date-time - - name: lot_due_from - in: query - required: false - schema: - type: string - format: date-time - - name: lot_due_to - in: query - required: false - schema: - type: string - format: date-time + - name: med_code + in: query + required: false + schema: + type: integer + format: int32 + - name: med_type + in: query + required: false + schema: + type: string + - name: ward_id + in: query + required: false + schema: + type: string + - name: mov_type + in: query + required: false + schema: + type: string + - name: mov_from + in: query + required: false + schema: + type: string + format: date-time + - name: mov_to + in: query + required: false + schema: + type: string + format: date-time + - name: lot_prep_from + in: query + required: false + schema: + type: string + format: date-time + - name: lot_prep_to + in: query + required: false + schema: + type: string + format: date-time + - name: lot_due_from + in: query + required: false + schema: + type: string + format: date-time + - name: lot_due_to + in: query + required: false + schema: + type: string + format: date-time responses: "200": description: OK @@ -4785,32 +4785,32 @@ paths: schema: type: array items: - $ref: '#/components/schemas/MovementDTO' + $ref: "#/components/schemas/MovementDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/filter/v1: get: tags: - - Stock Movements + - Stock Movements operationId: getMovements_7 parameters: - - name: ward_id - in: query - required: true - schema: - type: string - - name: from - in: query - required: true - schema: - type: string - format: date-time - - name: to - in: query - required: true - schema: - type: string - format: date-time + - name: ward_id + in: query + required: true + schema: + type: string + - name: from + in: query + required: true + schema: + type: string + format: date-time + - name: to + in: query + required: true + schema: + type: string + format: date-time responses: "200": description: OK @@ -4819,27 +4819,27 @@ paths: schema: type: array items: - $ref: '#/components/schemas/MovementDTO' + $ref: "#/components/schemas/MovementDTO" security: - - bearerAuth: [] + - bearerAuth: [] /medicalstockmovements/critical/check: get: tags: - - Stock Movements + - Stock Movements operationId: alertCriticalQuantity_1 parameters: - - name: med_code - in: query - required: true - schema: - type: integer - format: int32 - - name: qty - in: query - required: true - schema: - type: integer - format: int32 + - name: med_code + in: query + required: true + schema: + type: integer + format: int32 + - name: qty + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4848,39 +4848,39 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /medicals/{code}: get: tags: - - Medicals + - Medicals operationId: getMedical parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/MedicalDTO' + $ref: "#/components/schemas/MedicalDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Medicals + - Medicals operationId: deleteMedical parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -4889,35 +4889,35 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /medicals/filter: get: tags: - - Medicals + - Medicals operationId: filterMedicals parameters: - - name: desc - in: query - required: false - schema: - type: string - - name: type - in: query - required: false - schema: - type: string - - name: critical - in: query - required: false - schema: - type: boolean - default: false - - name: name_sorted - in: query - required: false - schema: - type: boolean - default: false + - name: desc + in: query + required: false + schema: + type: string + - name: type + in: query + required: false + schema: + type: string + - name: critical + in: query + required: false + schema: + type: boolean + default: false + - name: name_sorted + in: query + required: false + schema: + type: boolean + default: false responses: "200": description: OK @@ -4926,20 +4926,20 @@ paths: schema: type: array items: - $ref: '#/components/schemas/MedicalDTO' + $ref: "#/components/schemas/MedicalDTO" security: - - bearerAuth: [] + - bearerAuth: [] /malnutritions/{id_admission}: get: tags: - - Malnutritions + - Malnutritions operationId: getMalnutrition parameters: - - name: id_admission - in: path - required: true - schema: - type: string + - name: id_admission + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -4948,34 +4948,34 @@ paths: schema: type: array items: - $ref: '#/components/schemas/MalnutritionDTO' + $ref: "#/components/schemas/MalnutritionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /malnutritions/last/{id_patient}: get: tags: - - Malnutritions + - Malnutritions operationId: getLastMalnutrition parameters: - - name: id_patient - in: path - required: true - schema: - type: integer - format: int32 + - name: id_patient + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/MalnutritionDTO' + $ref: "#/components/schemas/MalnutritionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/materials: get: tags: - - Laboratories + - Laboratories operationId: getMaterials responses: "200": @@ -4987,104 +4987,104 @@ paths: items: type: string security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/exams: get: tags: - - Laboratories + - Laboratories operationId: getLaboratoryForPrint parameters: - - name: examName - in: query - required: false - schema: - type: string - default: "" - - name: dateFrom - in: query - required: true - schema: - type: string - - name: dateTo - in: query - required: true - schema: - type: string - - name: patientCode - in: query - required: false - schema: - type: integer - format: int32 - default: 0 - - name: status - in: query - required: false - schema: - type: string - default: "" - - name: page - in: query - required: false - schema: - type: integer - format: int32 - default: 0 - - name: size - in: query - required: false - schema: - type: integer - format: int32 - default: 80 - - name: paged - in: query - required: false - schema: - type: boolean - default: false + - name: examName + in: query + required: false + schema: + type: string + default: "" + - name: dateFrom + in: query + required: true + schema: + type: string + - name: dateTo + in: query + required: true + schema: + type: string + - name: patientCode + in: query + required: false + schema: + type: integer + format: int32 + default: 0 + - name: status + in: query + required: false + schema: + type: string + default: "" + - name: page + in: query + required: false + schema: + type: integer + format: int32 + default: 0 + - name: size + in: query + required: false + schema: + type: integer + format: int32 + default: 80 + - name: paged + in: query + required: false + schema: + type: boolean + default: false responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/PageLabWithRowsDTO' + $ref: "#/components/schemas/PageLabWithRowsDTO" security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/exams/{code}: get: tags: - - Laboratories + - Laboratories operationId: getExamWithRowsById parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/LabWithRowsDTO' + $ref: "#/components/schemas/LabWithRowsDTO" security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/examRequest/patient/{patId}: get: tags: - - Laboratories + - Laboratories operationId: getLaboratoryExamRequest_1 parameters: - - name: patId - in: path - required: true - schema: - type: integer - format: int32 + - name: patId + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5093,21 +5093,21 @@ paths: schema: type: array items: - $ref: '#/components/schemas/LaboratoryDTO' + $ref: "#/components/schemas/LaboratoryDTO" security: - - bearerAuth: [] + - bearerAuth: [] /laboratories/byPatientId/{patId}: get: tags: - - Laboratories + - Laboratories operationId: getLaboratory_1 parameters: - - name: patId - in: path - required: true - schema: - type: integer - format: int32 + - name: patId + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5116,13 +5116,13 @@ paths: schema: type: array items: - $ref: '#/components/schemas/LabWithRowsDTO' + $ref: "#/components/schemas/LabWithRowsDTO" security: - - bearerAuth: [] + - bearerAuth: [] /hospitals: get: tags: - - Hospitals + - Hospitals operationId: getHospital responses: "200": @@ -5130,13 +5130,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/HospitalDTO' + $ref: "#/components/schemas/HospitalDTO" security: - - bearerAuth: [] + - bearerAuth: [] /hospitals/currencyCode: get: tags: - - Hospitals + - Hospitals operationId: getHospitalCurrencyCode responses: "200": @@ -5146,18 +5146,18 @@ paths: schema: type: string security: - - bearerAuth: [] + - bearerAuth: [] /exams/description/{description}: get: tags: - - Exams + - Exams operationId: getExams_1 parameters: - - name: description - in: path - required: true - schema: - type: string + - name: description + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -5166,21 +5166,21 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ExamDTO' + $ref: "#/components/schemas/ExamDTO" security: - - bearerAuth: [] + - bearerAuth: [] /examrows/{code}: get: tags: - - Exam Rows + - Exam Rows operationId: getExamRowsByCode parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5189,20 +5189,20 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ExamRowDTO' + $ref: "#/components/schemas/ExamRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Exam Rows + - Exam Rows operationId: deleteExam_2 parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5211,24 +5211,24 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /examrows/search: get: tags: - - Exam Rows + - Exam Rows operationId: getExamRowsByCodeAndDescription parameters: - - name: code - in: query - required: true - schema: - type: integer - format: int32 - - name: description - in: query - required: true - schema: - type: string + - name: code + in: query + required: true + schema: + type: integer + format: int32 + - name: description + in: query + required: true + schema: + type: string responses: "200": description: OK @@ -5237,20 +5237,20 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ExamRowDTO' + $ref: "#/components/schemas/ExamRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /examrows/byExamCode/{examCode}: get: tags: - - Exam Rows + - Exam Rows operationId: getExamRowsByExamCode parameters: - - name: examCode - in: path - required: true - schema: - type: string + - name: examCode + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -5259,111 +5259,111 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ExamRowDTO' + $ref: "#/components/schemas/ExamRowDTO" security: - - bearerAuth: [] + - bearerAuth: [] /examinations/lastNByPatId: get: tags: - - Examinations + - Examinations operationId: getLastNByPatID parameters: - - name: limit - in: query - required: true - schema: - type: integer - format: int32 - - name: patId - in: query - required: true - schema: - type: integer - format: int32 + - name: limit + in: query + required: true + schema: + type: integer + format: int32 + - name: patId + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/PagePatientExaminationDTO' + $ref: "#/components/schemas/PagePatientExaminationDTO" security: - - bearerAuth: [] + - bearerAuth: [] /examinations/lastByPatientId/{patId}: get: tags: - - Examinations + - Examinations operationId: getLastByPatientId parameters: - - name: patId - in: path - required: true - schema: - type: integer - format: int32 + - name: patId + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/PatientExaminationDTO' + $ref: "#/components/schemas/PatientExaminationDTO" security: - - bearerAuth: [] + - bearerAuth: [] /examinations/fromLastPatientExamination/{id}: get: tags: - - Examinations + - Examinations operationId: getFromLastPatientExamination parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/PatientExaminationDTO' + $ref: "#/components/schemas/PatientExaminationDTO" security: - - bearerAuth: [] + - bearerAuth: [] /examinations/defaultPatientExamination: get: tags: - - Examinations + - Examinations operationId: getDefaultPatientExamination parameters: - - name: patId - in: query - required: true - schema: - type: integer - format: int32 + - name: patId + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/PatientExaminationDTO' + $ref: "#/components/schemas/PatientExaminationDTO" security: - - bearerAuth: [] + - bearerAuth: [] /examinations/byPatientId/{patId}: get: tags: - - Examinations + - Examinations operationId: getByPatientId parameters: - - name: patId - in: path - required: true - schema: - type: integer - format: int32 + - name: patId + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5372,39 +5372,39 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PatientExaminationDTO' + $ref: "#/components/schemas/PatientExaminationDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases/{code}: get: tags: - - Diseases + - Diseases operationId: getDiseaseByCode parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] delete: tags: - - Diseases + - Diseases operationId: deleteDisease parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -5415,11 +5415,11 @@ paths: additionalProperties: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /diseases/opd: get: tags: - - Diseases + - Diseases operationId: getDiseasesOpd responses: "200": @@ -5429,20 +5429,20 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases/opd/{typecode}: get: tags: - - Diseases + - Diseases operationId: getDiseasesOpdByCode parameters: - - name: typecode - in: path - required: true - schema: - type: string + - name: typecode + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -5451,13 +5451,13 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases/ipd/out: get: tags: - - Diseases + - Diseases operationId: getDiseasesIpdOut responses: "200": @@ -5467,20 +5467,20 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases/ipd/out/{typecode}: get: tags: - - Diseases + - Diseases operationId: getDiseasesIpdOutByCode parameters: - - name: typecode - in: path - required: true - schema: - type: string + - name: typecode + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -5489,13 +5489,13 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases/ipd/in: get: tags: - - Diseases + - Diseases operationId: getDiseasesIpdIn responses: "200": @@ -5505,20 +5505,20 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases/ipd/in/{typecode}: get: tags: - - Diseases + - Diseases operationId: getDiseasesIpdInByCode parameters: - - name: typecode - in: path - required: true - schema: - type: string + - name: typecode + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -5527,13 +5527,13 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases/both: get: tags: - - Diseases + - Diseases operationId: getDiseases responses: "200": @@ -5543,20 +5543,20 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases/both/{typecode}: get: tags: - - Diseases + - Diseases operationId: getDiseases_1 parameters: - - name: typecode - in: path - required: true - schema: - type: string + - name: typecode + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -5565,13 +5565,13 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /diseases/all: get: tags: - - Diseases + - Diseases operationId: getAllDiseases responses: "200": @@ -5581,21 +5581,21 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" security: - - bearerAuth: [] + - bearerAuth: [] /bills/pending: get: tags: - - Bills + - Bills operationId: getPendingBills parameters: - - name: patient_code - in: query - required: true - schema: - type: integer - format: int32 + - name: patient_code + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5604,21 +5604,21 @@ paths: schema: type: array items: - $ref: '#/components/schemas/BillDTO' + $ref: "#/components/schemas/BillDTO" security: - - bearerAuth: [] + - bearerAuth: [] /bills/pending/affiliate: get: tags: - - Bills + - Bills operationId: getPendingBillsAffiliate parameters: - - name: patient_code - in: query - required: true - schema: - type: integer - format: int32 + - name: patient_code + in: query + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5627,31 +5627,31 @@ paths: schema: type: array items: - $ref: '#/components/schemas/BillDTO' + $ref: "#/components/schemas/BillDTO" security: - - bearerAuth: [] + - bearerAuth: [] /bills/payments: get: tags: - - Bills + - Bills operationId: searchBillsPayments parameters: - - name: datefrom - in: query - required: true - schema: - type: string - - name: dateto - in: query - required: true - schema: - type: string - - name: patient_code - in: query - required: false - schema: - type: integer - format: int32 + - name: datefrom + in: query + required: true + schema: + type: string + - name: dateto + in: query + required: true + schema: + type: string + - name: patient_code + in: query + required: false + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5660,21 +5660,21 @@ paths: schema: type: array items: - $ref: '#/components/schemas/BillPaymentsDTO' + $ref: "#/components/schemas/BillPaymentsDTO" security: - - bearerAuth: [] + - bearerAuth: [] /bills/payments/{bill_id}: get: tags: - - Bills + - Bills operationId: getPaymentsByBillId parameters: - - name: bill_id - in: path - required: true - schema: - type: integer - format: int32 + - name: bill_id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5683,13 +5683,13 @@ paths: schema: type: array items: - $ref: '#/components/schemas/BillPaymentsDTO' + $ref: "#/components/schemas/BillPaymentsDTO" security: - - bearerAuth: [] + - bearerAuth: [] /bills/items: get: tags: - - Bills + - Bills operationId: getDistinctItems responses: "200": @@ -5699,21 +5699,21 @@ paths: schema: type: array items: - $ref: '#/components/schemas/BillItemsDTO' + $ref: "#/components/schemas/BillItemsDTO" security: - - bearerAuth: [] + - bearerAuth: [] /bills/items/{bill_id}: get: tags: - - Bills + - Bills operationId: getItems parameters: - - name: bill_id - in: path - required: true - schema: - type: integer - format: int32 + - name: bill_id + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5722,42 +5722,42 @@ paths: schema: type: array items: - $ref: '#/components/schemas/BillItemsDTO' + $ref: "#/components/schemas/BillItemsDTO" security: - - bearerAuth: [] + - bearerAuth: [] /agetypes/{index}: get: tags: - - AgeTypes + - AgeTypes operationId: getAgeTypeByIndex parameters: - - name: index - in: path - required: true - schema: - type: integer - format: int32 + - name: index + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK content: application/json: schema: - $ref: '#/components/schemas/AgeType' + $ref: "#/components/schemas/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": description: OK @@ -5768,19 +5768,19 @@ paths: additionalProperties: type: string security: - - bearerAuth: [] + - bearerAuth: [] /admissions/patient/{patientCode}: get: tags: - - Admissions + - Admissions operationId: getAdmissions_1 parameters: - - name: patientCode - in: path - required: true - schema: - type: integer - format: int32 + - name: patientCode + in: path + required: true + schema: + type: integer + format: int32 responses: "400": description: Bad Request @@ -5791,20 +5791,20 @@ paths: schema: type: array items: - $ref: '#/components/schemas/AdmissionDTO' + $ref: "#/components/schemas/AdmissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /admissions/getNextProgressiveIdInYear: get: tags: - - Admissions + - Admissions operationId: getNextYProg parameters: - - name: wardcode - in: query - required: true - schema: - type: string + - name: wardcode + in: query + required: true + schema: + type: string responses: "400": description: Bad Request @@ -5816,18 +5816,18 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] /admissions/getBedsOccupationInWard: get: tags: - - Admissions + - Admissions operationId: getUsedWardBed parameters: - - name: wardid - in: query - required: true - schema: - type: string + - name: wardid + in: query + required: true + schema: + type: string responses: "400": description: Bad Request @@ -5839,34 +5839,34 @@ paths: type: integer format: int32 security: - - bearerAuth: [] + - bearerAuth: [] /admissions/discharges: get: tags: - - Admissions + - Admissions operationId: getDischarges parameters: - - name: dischargerange - in: query - required: true - schema: - type: array - items: - type: string - - name: page - in: query - required: false - schema: - type: integer - format: int32 - default: 0 - - name: size - in: query - required: false - schema: - type: integer - format: int32 - default: 80 + - name: dischargerange + in: query + required: true + schema: + type: array + items: + type: string + - name: page + in: query + required: false + schema: + type: integer + format: int32 + default: 0 + - name: size + in: query + required: false + schema: + type: integer + format: int32 + default: 80 responses: "400": description: Bad Request @@ -5875,21 +5875,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PageAdmissionDTO' + $ref: "#/components/schemas/PageAdmissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /admissions/current: get: tags: - - Admissions + - Admissions operationId: getCurrentAdmission parameters: - - name: patientCode - in: query - required: true - schema: - type: integer - format: int32 + - name: patientCode + in: query + required: true + schema: + type: integer + format: int32 responses: "400": description: Bad Request @@ -5898,35 +5898,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AdmissionDTO' + $ref: "#/components/schemas/AdmissionDTO" security: - - bearerAuth: [] + - bearerAuth: [] /admissions/admittedPatients: get: tags: - - Admissions + - Admissions operationId: getAdmittedPatients parameters: - - 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: + - 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 responses: "400": description: Bad Request @@ -5937,20 +5937,20 @@ paths: schema: type: array items: - $ref: '#/components/schemas/AdmittedPatientDTO' + $ref: "#/components/schemas/AdmittedPatientDTO" security: - - bearerAuth: [] + - bearerAuth: [] /wards/{code}: delete: tags: - - Wards + - Wards operationId: deleteWard parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -5959,19 +5959,19 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /visits/delete/{patID}: delete: tags: - - Visit + - Visit operationId: deleteVisitsRelatedToPatient parameters: - - name: patID - in: path - required: true - schema: - type: integer - format: int32 + - name: patID + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -5980,18 +5980,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /vaccinetypes/{code}: delete: tags: - - Vaccine Type + - Vaccine Type operationId: deleteVaccineType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -6000,18 +6000,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /vaccines/{code}: delete: tags: - - Vaccines + - Vaccines operationId: deleteVaccine parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -6020,19 +6020,19 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /operations/rows/{code}: delete: tags: - - Operations + - Operations operationId: deleteOperationRow parameters: - - name: code - in: path - required: true - schema: - type: integer - format: int32 + - name: code + in: path + required: true + schema: + type: integer + format: int32 responses: "200": description: OK @@ -6041,18 +6041,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /medicaltypes/{code}: delete: tags: - - Medical Types + - Medical Types operationId: deleteMedicalType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -6061,18 +6061,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /diseasetypes/{code}: delete: tags: - - Disease Types + - Disease Types operationId: deleteDiseaseType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -6083,18 +6083,18 @@ paths: additionalProperties: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /dischargetypes/{code}: delete: tags: - - DischargeType + - DischargeType operationId: deleteDischargeType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -6103,18 +6103,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /deliverytypes/{code}: delete: tags: - - Delivery Type + - Delivery Type operationId: deleteDeliveryType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -6123,18 +6123,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /deliveryresulttypes/{code}: delete: tags: - - Delivery Result Type + - Delivery Result Type operationId: deleteDeliveryResultType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -6143,18 +6143,18 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /admissiontypes/{code}: delete: tags: - - AdmissionTypes + - AdmissionTypes operationId: deleteAdmissionType parameters: - - name: code - in: path - required: true - schema: - type: string + - name: code + in: path + required: true + schema: + type: string responses: "200": description: OK @@ -6163,19 +6163,19 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] /admissions/{id}: delete: tags: - - Admissions + - Admissions operationId: deleteAdmissionType_1 parameters: - - name: id - in: path - required: true - schema: - type: integer - format: int32 + - name: id + in: path + required: true + schema: + type: integer + format: int32 responses: "400": description: Bad Request @@ -6186,16 +6186,16 @@ paths: schema: type: boolean security: - - bearerAuth: [] + - bearerAuth: [] components: schemas: WardDTO: required: - - beds - - description - - docs - - nurs - - visitDuration + - beds + - description + - docs + - nurs + - visitDuration type: object properties: code: @@ -6245,14 +6245,14 @@ components: type: boolean PatientDTO: required: - - age - - bloodType - - city - - fatherName - - firstName - - motherName - - secondName - - sex + - age + - bloodType + - city + - fatherName + - firstName + - motherName + - secondName + - sex type: object properties: code: @@ -6290,8 +6290,8 @@ components: description: Sex example: M enum: - - M - - F + - M + - F address: maxLength: 50 type: string @@ -6325,8 +6325,8 @@ components: description: "Mother's status (D=dead, A=alive)" example: A enum: - - D - - A + - D + - A fatherName: maxLength: 50 type: string @@ -6337,35 +6337,35 @@ components: description: "Father's status (D=dead, A=alive)" example: D enum: - - D - - A + - D + - A bloodType: type: string description: "Blood type (0-/+, A-/+ , B-/+, AB-/+)" example: A+ enum: - - 0- - - 0+ - - A- - - A+ - - B- - - B+ - - AB- - - AB+ + - 0- + - 0+ + - A- + - A+ + - B- + - B+ + - AB- + - AB+ hasInsurance: type: string description: "HasInsurance (Y=Yes, N=no)" example: "N" enum: - - "Y" - - "N" + - "Y" + - "N" parentTogether: type: string description: "Parent together (Y=Yes, N=no)" example: "N" enum: - - "Y" - - "N" + - "Y" + - "N" taxCode: maxLength: 30 type: string @@ -6400,8 +6400,8 @@ components: description: Status example: I enum: - - I - - O + - I + - O consensusFlag: type: boolean description: Consensus flag @@ -6413,8 +6413,8 @@ components: description: Class representing a patient VisitDTO: required: - - date - - patient + - date + - patient type: object properties: visitID: @@ -6422,7 +6422,7 @@ components: description: The visit's ID format: int32 patient: - $ref: '#/components/schemas/PatientDTO' + $ref: "#/components/schemas/PatientDTO" date: type: string description: Date of the visit @@ -6435,7 +6435,7 @@ components: type: boolean description: Sms of the visit ward: - $ref: '#/components/schemas/WardDTO' + $ref: "#/components/schemas/WardDTO" duration: type: integer description: Duration of the visit @@ -6447,8 +6447,8 @@ components: description: Class representing a vaccine type VaccineTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -6464,9 +6464,9 @@ components: description: Class representing a vaccine type VaccineDTO: required: - - code - - description - - vaccineType + - code + - description + - vaccineType type: object properties: code: @@ -6480,7 +6480,7 @@ components: description: Description of the vaccine example: BCG vaccineType: - $ref: '#/components/schemas/VaccineTypeDTO' + $ref: "#/components/schemas/VaccineTypeDTO" lock: type: integer description: Lock @@ -6489,10 +6489,10 @@ components: description: Class representing a vaccine UserSettingDTO: required: - - configName - - configValue - - id - - user + - configName + - configValue + - id + - user type: object properties: id: @@ -6515,8 +6515,8 @@ components: description: The value of the user PermissionDTO: required: - - description - - id + - description + - id type: object properties: name: @@ -6532,9 +6532,9 @@ components: description: List of group's permissions UserDTO: required: - - passwd - - userGroupName - - userName + - passwd + - userGroupName + - userName type: object properties: userName: @@ -6543,7 +6543,7 @@ components: description: The username (must be unique) example: John Doe userGroupName: - $ref: '#/components/schemas/UserGroupDTO' + $ref: "#/components/schemas/UserGroupDTO" passwd: maxLength: 50 type: string @@ -6556,7 +6556,7 @@ components: example: Lab chief technician UserGroupDTO: required: - - code + - code type: object properties: code: @@ -6573,7 +6573,7 @@ components: type: array description: List of group's permissions items: - $ref: '#/components/schemas/PermissionDTO' + $ref: "#/components/schemas/PermissionDTO" description: The user's group UserProfileDTO: type: object @@ -6585,7 +6585,7 @@ components: items: type: string userGroup: - $ref: '#/components/schemas/UserGroupDTO' + $ref: "#/components/schemas/UserGroupDTO" GroupPermissionsDTO: type: object properties: @@ -6593,16 +6593,16 @@ components: type: array description: List of permissions' ids example: - - 48 - - 24 + - 48 + - 24 items: type: integer description: List of permissions' ids format: int32 SupplierDTO: required: - - supId - - supName + - supId + - supName type: object properties: supId: @@ -6644,11 +6644,11 @@ components: description: The supplier's notes PricesOthersDTO: required: - - code - - daily - - description - - ipdInclude - - opdInclude + - code + - daily + - description + - ipdInclude + - opdInclude type: object properties: id: @@ -6711,8 +6711,8 @@ components: description: Class representing a price list PregnantTreatmentTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -6730,10 +6730,10 @@ components: description: Class representing a pregnant treatment type PatientVaccineDTO: required: - - patient - - progr - - vaccine - - vaccineDate + - patient + - progr + - vaccine + - vaccineDate type: object properties: code: @@ -6748,9 +6748,9 @@ components: type: string description: The vaccine date patient: - $ref: '#/components/schemas/PatientDTO' + $ref: "#/components/schemas/PatientDTO" vaccine: - $ref: '#/components/schemas/VaccineDTO' + $ref: "#/components/schemas/VaccineDTO" lock: type: integer description: Lock @@ -6762,7 +6762,7 @@ components: readOnly: true PatientConsensusDTO: required: - - patientId + - patientId type: object properties: consensusFlag: @@ -6778,8 +6778,8 @@ components: description: Class representing a patient consensus OperationTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -6792,11 +6792,11 @@ components: description: The operation type OperationDTO: required: - - code - - description - - major - - opeFor - - type + - code + - description + - major + - opeFor + - type type: object properties: code: @@ -6808,15 +6808,15 @@ components: type: string description: The operation description type: - $ref: '#/components/schemas/OperationTypeDTO' + $ref: "#/components/schemas/OperationTypeDTO" opeFor: type: string description: The operation context example: opd_admission enum: - - opd_admission - - admission - - opd + - opd_admission + - admission + - opd major: type: integer description: The operation major @@ -6828,10 +6828,10 @@ components: example: 0 AdmissionDTO: required: - - admDate - - admitted - - deleted - - type + - admDate + - admitted + - deleted + - type type: object properties: id: @@ -6849,36 +6849,36 @@ components: description: Type of admission example: "N" ward: - $ref: '#/components/schemas/WardDTO' + $ref: "#/components/schemas/WardDTO" patient: - $ref: '#/components/schemas/PatientDTO' + $ref: "#/components/schemas/PatientDTO" admDate: type: string description: Admission date admType: - $ref: '#/components/schemas/AdmissionTypeDTO' + $ref: "#/components/schemas/AdmissionTypeDTO" diseaseIn: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" diseaseOut1: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" diseaseOut2: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" diseaseOut3: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" operation: - $ref: '#/components/schemas/OperationDTO' + $ref: "#/components/schemas/OperationDTO" opDate: type: string description: Operation date opResult: type: string - description: 'Operation result value is ''P'' or ''N'' ' + description: "Operation result value is 'P' or 'N' " example: "N" disDate: type: string description: Discharge date disType: - $ref: '#/components/schemas/DischargeTypeDTO' + $ref: "#/components/schemas/DischargeTypeDTO" note: maxLength: 65535 type: string @@ -6891,14 +6891,14 @@ components: type: string description: Visit date pregTreatmentType: - $ref: '#/components/schemas/PregnantTreatmentTypeDTO' + $ref: "#/components/schemas/PregnantTreatmentTypeDTO" deliveryDate: type: string description: Delivery date deliveryType: - $ref: '#/components/schemas/DeliveryTypeDTO' + $ref: "#/components/schemas/DeliveryTypeDTO" deliveryResult: - $ref: '#/components/schemas/DeliveryResultTypeDTO' + $ref: "#/components/schemas/DeliveryResultTypeDTO" weight: type: number description: Weight @@ -6928,16 +6928,16 @@ components: type: string description: "Flag record deleted, values are 'Y' OR 'N' " example: "N" - fhu: - type: string yprog: type: integer format: int32 + fhu: + type: string description: The admission AdmissionTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -6952,22 +6952,22 @@ 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: type: integer format: int32 patient: - $ref: '#/components/schemas/PatientDTO' + $ref: "#/components/schemas/PatientDTO" listId: type: integer format: int32 @@ -7016,8 +7016,8 @@ components: description: Class representing a bill DeliveryResultTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -7032,8 +7032,8 @@ components: description: Delivery result type DeliveryTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -7048,8 +7048,8 @@ components: description: Delivery type DischargeTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -7064,12 +7064,12 @@ components: description: DisChargeType DiseaseDTO: required: - - code - - description - - diseaseType - - ipdInInclude - - ipdOutInclude - - opdInclude + - code + - description + - diseaseType + - ipdInInclude + - ipdOutInclude + - opdInclude type: object properties: code: @@ -7082,7 +7082,7 @@ components: type: string description: Disease description diseaseType: - $ref: '#/components/schemas/DiseaseTypeDTO' + $ref: "#/components/schemas/DiseaseTypeDTO" opdInclude: type: boolean description: Indicates whether the disease is an OPD disease @@ -7107,8 +7107,8 @@ components: description: Class representing a disease DiseaseTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -7122,11 +7122,11 @@ components: description: Class representing a disease type OpdDTO: required: - - age - - newPatient - - note - - sex - - ward + - age + - newPatient + - note + - sex + - ward type: object properties: code: @@ -7172,11 +7172,11 @@ components: format: int32 example: 18 disease: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" disease2: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" disease3: - $ref: '#/components/schemas/DiseaseDTO' + $ref: "#/components/schemas/DiseaseDTO" newPatient: type: string description: New(N) or Reattendance(R) patient @@ -7217,21 +7217,21 @@ components: type: string description: Prescription ward: - $ref: '#/components/schemas/WardDTO' + $ref: "#/components/schemas/WardDTO" description: The opd OperationRowDTO: required: - - opDate - - opResult - - operation - - prescriber + - opDate + - opResult + - operation + - prescriber type: object properties: id: type: integer format: int32 operation: - $ref: '#/components/schemas/OperationDTO' + $ref: "#/components/schemas/OperationDTO" prescriber: maxLength: 150 type: string @@ -7248,11 +7248,11 @@ components: type: string description: The remark of the operation admission: - $ref: '#/components/schemas/AdmissionDTO' + $ref: "#/components/schemas/AdmissionDTO" opd: - $ref: '#/components/schemas/OpdDTO' + $ref: "#/components/schemas/OpdDTO" bill: - $ref: '#/components/schemas/BillDTO' + $ref: "#/components/schemas/BillDTO" transUnit: type: number description: The transunit @@ -7265,16 +7265,16 @@ components: type: object properties: opdDTO: - $ref: '#/components/schemas/OpdDTO' + $ref: "#/components/schemas/OpdDTO" operationRows: type: array items: - $ref: '#/components/schemas/OperationRowDTO' + $ref: "#/components/schemas/OperationRowDTO" MovementTypeDTO: required: - - code - - description - - type + - code + - description + - type type: object properties: code: @@ -7293,8 +7293,8 @@ components: example: "-" MedicalTypeDTO: required: - - code - - description + - code + - description type: object properties: code: @@ -7321,7 +7321,7 @@ components: description: The product code example: PARA type: - $ref: '#/components/schemas/MedicalTypeDTO' + $ref: "#/components/schemas/MedicalTypeDTO" description: maxLength: 100 type: string @@ -7359,10 +7359,10 @@ components: example: 0 MalnutritionDTO: required: - - admission - - dateSupp - - height - - weight + - admission + - dateSupp + - height + - weight type: object properties: code: @@ -7379,7 +7379,7 @@ components: description: The date of the next malnutrition control example: 1979-05-01T11:20:33 admission: - $ref: '#/components/schemas/AdmissionDTO' + $ref: "#/components/schemas/AdmissionDTO" height: type: number description: The height of the patient @@ -7417,9 +7417,9 @@ components: maxLength: 50 type: string description: Exam Default Result - example: '>=12 (NORMAL)' + example: ">=12 (NORMAL)" examtype: - $ref: '#/components/schemas/ExamTypeDTO' + $ref: "#/components/schemas/ExamTypeDTO" lock: type: integer description: Lock @@ -7443,7 +7443,7 @@ components: type: object properties: laboratoryDTO: - $ref: '#/components/schemas/LaboratoryDTO' + $ref: "#/components/schemas/LaboratoryDTO" laboratoryRowList: type: array items: @@ -7460,7 +7460,7 @@ components: description: Laboratory Material example: Blood exam: - $ref: '#/components/schemas/ExamDTO' + $ref: "#/components/schemas/ExamDTO" registrationDate: type: string description: Laboratory Registration Date @@ -7492,8 +7492,8 @@ components: description: Laboratory Patient InOut example: "0" enum: - - I - - O + - I + - O age: type: integer description: Laboratory Patient Age @@ -7507,11 +7507,11 @@ components: description: Laboratory status example: DRAFT enum: - - draft - - open - - done - - invalid - - deleted + - draft + - open + - done + - invalid + - deleted HospitalDTO: type: object properties: @@ -7560,10 +7560,29 @@ components: description: Lock format: int32 example: 0 + ExamWithRowsDTO: + required: + - exam + type: object + properties: + exam: + $ref: "#/components/schemas/ExamDTO" + rows: + type: array + description: + Possible result for the exam(only for exams with procedure + 1 and 2) + example: "['>=12 (NORMAL)', 'IRREGULAR']" + items: + type: string + description: + Possible result for the exam(only for exams with procedure + 1 and 2) + example: "['>=12 (NORMAL)', 'IRREGULAR']" PatientExaminationDTO: required: - - patientCode - - pex_date + - patientCode + - pex_date type: object properties: pex_ID: @@ -7616,12 +7635,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 @@ -7635,14 +7654,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 @@ -7652,18 +7671,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: @@ -7708,10 +7727,10 @@ components: description: Class representing a billItem BillPaymentsDTO: required: - - amount - - billId - - date - - user + - amount + - billId + - date + - user type: object properties: id: @@ -7742,27 +7761,27 @@ components: description: Class representing a billPayment FullBillDTO: required: - - bill - - billItems + - bill + - billItems type: object properties: bill: - $ref: '#/components/schemas/BillDTO' + $ref: "#/components/schemas/BillDTO" billItems: type: array description: List of bill items elements items: - $ref: '#/components/schemas/BillItemsDTO' + $ref: "#/components/schemas/BillItemsDTO" billPayments: type: array description: List of bill payments elements items: - $ref: '#/components/schemas/BillPaymentsDTO' + $ref: "#/components/schemas/BillPaymentsDTO" AgeTypeDTO: required: - - description - - from - - to + - description + - from + - to type: object properties: code: @@ -7785,16 +7804,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: @@ -7803,7 +7822,7 @@ components: format: int32 example: 1 patID: - $ref: '#/components/schemas/PatientDTO' + $ref: "#/components/schemas/PatientDTO" startDate: type: string description: The start date of therapy @@ -7844,7 +7863,8 @@ components: example: Sample note notifyInt: type: integer - description: "the notify flag: 1 if the notification need to be activated,\ + description: + "the notify flag: 1 if the notification need to be activated,\ \ 0 otherwise" format: int32 example: 0 @@ -7855,17 +7875,17 @@ components: example: 0 Patient: required: - - age - - birthDate - - bloodType - - city - - deleted - - fatherName - - firstName - - motherName - - name - - secondName - - sex + - age + - birthDate + - bloodType + - city + - deleted + - fatherName + - firstName + - motherName + - name + - secondName + - sex type: object properties: createdBy: @@ -7940,9 +7960,9 @@ components: type: integer format: int32 patientProfilePhoto: - $ref: '#/components/schemas/PatientProfilePhoto' + $ref: "#/components/schemas/PatientProfilePhoto" patientConsensus: - $ref: '#/components/schemas/PatientConsensus' + $ref: "#/components/schemas/PatientConsensus" searchString: type: string informations: @@ -7971,12 +7991,12 @@ components: serviceFlag: type: boolean patient: - $ref: '#/components/schemas/Patient' + $ref: "#/components/schemas/Patient" PatientProfilePhoto: type: object properties: patient: - $ref: '#/components/schemas/Patient' + $ref: "#/components/schemas/Patient" photo: type: array items: @@ -8313,10 +8333,7 @@ components: properties: empty: type: boolean - "y": - type: number - format: double - x: + height: type: number format: double minX: @@ -8325,10 +8342,13 @@ components: minY: type: number format: double - height: + width: type: number format: double - width: + x: + type: number + format: double + "y": type: number format: double maxX: @@ -8348,10 +8368,7 @@ components: properties: empty: type: boolean - "y": - type: number - format: double - x: + height: type: number format: double minX: @@ -8360,10 +8377,13 @@ components: minY: type: number format: double - height: + width: type: number format: double - width: + x: + type: number + format: double + "y": type: number format: double maxX: @@ -8473,10 +8493,7 @@ components: properties: empty: type: boolean - "y": - type: number - format: double - x: + height: type: number format: double minX: @@ -8485,10 +8502,13 @@ components: minY: type: number format: double - height: + width: type: number format: double - width: + x: + type: number + format: double + "y": type: number format: double maxX: @@ -8508,10 +8528,7 @@ components: properties: empty: type: boolean - "y": - type: number - format: double - x: + height: type: number format: double minX: @@ -8520,10 +8537,13 @@ components: minY: type: number format: double - height: + width: type: number format: double - width: + x: + type: number + format: double + "y": type: number format: double maxX: @@ -8562,10 +8582,7 @@ components: properties: empty: type: boolean - "y": - type: number - format: double - x: + height: type: number format: double minX: @@ -8574,10 +8591,13 @@ components: minY: type: number format: double - height: + width: type: number format: double - width: + x: + type: number + format: double + "y": type: number format: double maxX: @@ -8632,10 +8652,7 @@ components: properties: empty: type: boolean - "y": - type: number - format: double - x: + height: type: number format: double minX: @@ -8644,10 +8661,13 @@ components: minY: type: number format: double - height: + width: type: number format: double - width: + x: + type: number + format: double + "y": type: number format: double maxX: @@ -8667,10 +8687,7 @@ components: properties: empty: type: boolean - "y": - type: number - format: double - x: + height: type: number format: double minX: @@ -8679,10 +8696,13 @@ components: minY: type: number format: double - height: + width: type: number format: double - width: + x: + type: number + format: double + "y": type: number format: double maxX: @@ -8719,16 +8739,16 @@ components: deprecated: true TherapyRow: required: - - endDate - - freqInDay - - freqInPeriod - - medicalId - - notifyInt - - patient - - qty - - smsInt - - startDate - - unitID + - endDate + - freqInDay + - freqInPeriod + - medicalId + - notifyInt + - patient + - qty + - smsInt + - startDate + - unitID type: object properties: createdBy: @@ -8748,7 +8768,7 @@ components: type: integer format: int32 patient: - $ref: '#/components/schemas/Patient' + $ref: "#/components/schemas/Patient" startDate: type: string format: date-time @@ -8778,13 +8798,13 @@ components: smsInt: type: integer format: int32 + medical: + type: integer + format: int32 notify: type: boolean sms: type: boolean - medical: - type: integer - format: int32 TherapyDTO: type: object properties: @@ -8802,14 +8822,14 @@ 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 format: date-time medical: - $ref: '#/components/schemas/MedicalDTO' + $ref: "#/components/schemas/MedicalDTO" qty: type: number description: The quantity of the medical @@ -8830,19 +8850,21 @@ components: example: Sample note notify: type: boolean - description: "The notify flag: true if the notification need to be activated,\ + description: + "The notify flag: true if the notification need to be activated,\ \ false otherwise" example: false sms: type: boolean - description: "The sms flag: true if sms need to be sent to patient, false\ + description: + "The sms flag: true if sms need to be sent to patient, false\ \ otherwise" example: false LotDTO: required: - - code - - dueDate - - preparationDate + - code + - dueDate + - preparationDate type: object properties: code: @@ -8865,11 +8887,11 @@ components: description: The lot MovementDTO: required: - - date - - medical - - quantity - - refNo - - type + - date + - medical + - quantity + - refNo + - type type: object properties: code: @@ -8878,13 +8900,13 @@ components: format: int32 example: 1 medical: - $ref: '#/components/schemas/MedicalDTO' + $ref: "#/components/schemas/MedicalDTO" type: - $ref: '#/components/schemas/MovementTypeDTO' + $ref: "#/components/schemas/MovementTypeDTO" ward: - $ref: '#/components/schemas/WardDTO' + $ref: "#/components/schemas/WardDTO" lot: - $ref: '#/components/schemas/LotDTO' + $ref: "#/components/schemas/LotDTO" date: type: string description: The movement date @@ -8895,19 +8917,19 @@ components: format: int32 example: 50 supplier: - $ref: '#/components/schemas/SupplierDTO' + $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: @@ -8953,11 +8975,11 @@ components: description: SMS module Id MovementWardDTO: required: - - date - - description - - quantity - - units - - ward + - date + - description + - quantity + - units + - ward type: object properties: code: @@ -8966,14 +8988,14 @@ components: format: int32 example: 1 ward: - $ref: '#/components/schemas/WardDTO' + $ref: "#/components/schemas/WardDTO" date: type: string description: The movement ward's date format: date example: 2020-06-07 patient: - $ref: '#/components/schemas/PatientDTO' + $ref: "#/components/schemas/PatientDTO" age: type: integer description: The patient's age in case the movement is associated to a patient @@ -8981,7 +9003,8 @@ components: example: 21 weight: type: number - description: The patient's weight in case the movement is associated to + description: + The patient's weight in case the movement is associated to a patient format: float example: 75 @@ -8990,7 +9013,7 @@ components: description: The description of the movement example: stock transfer from pharmacy to laboratory medical: - $ref: '#/components/schemas/MedicalDTO' + $ref: "#/components/schemas/MedicalDTO" quantity: type: number description: The quantity of the medical concerned by the movement @@ -9001,9 +9024,9 @@ components: description: The measure's unit of the medical concerned by the movement example: pct wardTo: - $ref: '#/components/schemas/WardDTO' + $ref: "#/components/schemas/WardDTO" wardFrom: - $ref: '#/components/schemas/WardDTO' + $ref: "#/components/schemas/WardDTO" ExamRowDTO: type: object properties: @@ -9017,7 +9040,7 @@ components: description: Exam Row Code example: NEGATIVE exam: - $ref: '#/components/schemas/ExamDTO' + $ref: "#/components/schemas/ExamDTO" TokenRefreshRequest: type: object properties: @@ -9043,8 +9066,8 @@ components: description: Class representing a Login response LoginRequest: required: - - password - - username + - password + - username type: object properties: username: @@ -9057,18 +9080,18 @@ components: example: admin PriceDTO: required: - - description - - group - - item - - list - - price + - description + - group + - item + - list + - price type: object properties: id: type: integer format: int32 list: - $ref: '#/components/schemas/PriceList' + $ref: "#/components/schemas/PriceList" group: type: string description: The group @@ -9095,10 +9118,10 @@ components: description: Class representing a prices PriceList: required: - - code - - currency - - description - - name + - code + - currency + - description + - name type: object properties: createdBy: @@ -9154,23 +9177,23 @@ components: data: type: array items: - $ref: '#/components/schemas/PatientDTO' + $ref: "#/components/schemas/PatientDTO" pageInfo: - $ref: '#/components/schemas/PageInfoDTO' + $ref: "#/components/schemas/PageInfoDTO" PageOpdDTO: type: object properties: data: type: array items: - $ref: '#/components/schemas/OpdDTO' + $ref: "#/components/schemas/OpdDTO" pageInfo: - $ref: '#/components/schemas/PageInfoDTO' + $ref: "#/components/schemas/PageInfoDTO" MedicalWardDTO: type: object properties: id: - $ref: '#/components/schemas/MedicalWardIdDTO' + $ref: "#/components/schemas/MedicalWardIdDTO" in_quantity: type: number description: The in-quantity @@ -9183,14 +9206,14 @@ components: example: 89 MedicalWardIdDTO: required: - - medical - - ward + - medical + - ward type: object properties: ward: - $ref: '#/components/schemas/WardDTO' + $ref: "#/components/schemas/WardDTO" medical: - $ref: '#/components/schemas/MedicalDTO' + $ref: "#/components/schemas/MedicalDTO" description: The medical ward's id example: 1 PageLabWithRowsDTO: @@ -9199,23 +9222,23 @@ components: data: type: array items: - $ref: '#/components/schemas/LabWithRowsDTO' + $ref: "#/components/schemas/LabWithRowsDTO" pageInfo: - $ref: '#/components/schemas/PageInfoDTO' + $ref: "#/components/schemas/PageInfoDTO" PagePatientExaminationDTO: type: object properties: data: type: array items: - $ref: '#/components/schemas/PatientExaminationDTO' + $ref: "#/components/schemas/PatientExaminationDTO" pageInfo: - $ref: '#/components/schemas/PageInfoDTO' + $ref: "#/components/schemas/PageInfoDTO" AgeType: required: - - description - - from - - to + - description + - from + - to type: object properties: createdBy: @@ -9247,16 +9270,16 @@ components: data: type: array items: - $ref: '#/components/schemas/AdmissionDTO' + $ref: "#/components/schemas/AdmissionDTO" pageInfo: - $ref: '#/components/schemas/PageInfoDTO' + $ref: "#/components/schemas/PageInfoDTO" AdmittedPatientDTO: type: object properties: patient: - $ref: '#/components/schemas/PatientDTO' + $ref: "#/components/schemas/PatientDTO" admission: - $ref: '#/components/schemas/AdmissionDTO' + $ref: "#/components/schemas/AdmissionDTO" securitySchemes: bearerAuth: type: http diff --git a/cypress/integrations/admin_activities/exams_activities/add_exam_activity.cy.ts b/cypress/integrations/admin_activities/exams_activities/add_exam_activity.cy.ts index 4b96c4ca9..c20abbb8c 100644 --- a/cypress/integrations/admin_activities/exams_activities/add_exam_activity.cy.ts +++ b/cypress/integrations/admin_activities/exams_activities/add_exam_activity.cy.ts @@ -18,9 +18,8 @@ describe("Add exam Activity specs", () => { cy.byId("examtype").click(); cy.get('.MuiAutocomplete-popper li[data-option-index="0"]').click(); cy.byId("selectedType").last().click(); - cy.get('.MuiPopover-paper li[data-value="1"]').last().click(); + cy.get('.MuiPopover-paper li[data-value="3"]').last().click().click(); cy.byId("description").type("Children exam"); - cy.byId("defaultResult").type("POSITIVE"); cy.dataCy("submit-form").click(); cy.dataCy("info-box").contains("Fail"); }); diff --git a/src/components/accessories/admin/exams/editExam/EditExam.tsx b/src/components/accessories/admin/exams/editExam/EditExam.tsx index df28de2b4..16da0c526 100644 --- a/src/components/accessories/admin/exams/editExam/EditExam.tsx +++ b/src/components/accessories/admin/exams/editExam/EditExam.tsx @@ -1,22 +1,40 @@ import { useAppDispatch, useAppSelector } from "libraries/hooks/redux"; -import React from "react"; +import React, { useEffect } from "react"; import { useTranslation } from "react-i18next"; import { Navigate, useLocation, useParams } from "react-router"; import { PATHS } from "../../../../../consts"; import { ExamDTO } from "../../../../../generated"; -import { updateExam } from "../../../../../state/exams"; -import { getInitialFields } from "../examForm/consts"; +import { getExamRows, updateExam } from "../../../../../state/exams"; import ExamForm from "../examForm/ExamForm"; +import { getInitialFields } from "../examForm/consts"; export const EditExam = () => { const dispatch = useAppDispatch(); const { t } = useTranslation(); const { state }: { state: ExamDTO | undefined } = useLocation(); const { id } = useParams(); - const update = useAppSelector((state) => state.operations.update); + const update = useAppSelector((state) => state.exams.examUpdate); + + const examRows: string[] | undefined = useAppSelector((state) => + state.exams.examRowsByExamCode.data?.map((row) => row.description!) + ); + + useEffect(() => { + if (id) { + dispatch(getExamRows(id)); + } + }, [dispatch, id]); - const handleSubmit = (examDTO: ExamDTO) => { - dispatch(updateExam({ code: examDTO.code!!, examDTO })); + const handleSubmit = ({ + rows, + ...examDTO + }: ExamDTO & { rows: string[] | undefined }) => { + dispatch( + updateExam({ + code: examDTO.code!!, + examWithRowsDTO: { exam: examDTO, rows }, + }) + ); }; if (state?.code !== id) { @@ -30,7 +48,7 @@ export const EditExam = () => { isLoading={!!update.isLoading} resetButtonLabel={t("common.cancel")} submitButtonLabel={t("exam.updateExam")} - fields={getInitialFields(state)} + fields={getInitialFields(state, examRows)} /> ); }; diff --git a/src/components/accessories/admin/exams/examForm/ExamForm.tsx b/src/components/accessories/admin/exams/examForm/ExamForm.tsx index 839d9b6d9..7b0585e45 100644 --- a/src/components/accessories/admin/exams/examForm/ExamForm.tsx +++ b/src/components/accessories/admin/exams/examForm/ExamForm.tsx @@ -1,7 +1,10 @@ +import classnames from "classnames/dedupe"; import { useFormik } from "formik"; -import { get, has } from "lodash"; +import { get, has, isEmpty } from "lodash"; import React, { + ChangeEvent, FC, + Fragment, useCallback, useEffect, useMemo, @@ -10,7 +13,7 @@ import React, { } from "react"; import { useTranslation } from "react-i18next"; import { useNavigate } from "react-router"; -import { number, object, string } from "yup"; +import { array, number, object, string } from "yup"; import checkIcon from "../../../../../assets/check-icon.png"; import warningIcon from "../../../../../assets/warning-icon.png"; import { PATHS } from "../../../../../consts"; @@ -28,6 +31,8 @@ import TextField from "../../../textField/TextField"; import "./styles.scss"; import { IExamProps } from "./types"; +import { AddCircle, Delete } from "@mui/icons-material"; +import { IconButton, Radio, RadioGroup } from "@mui/material"; import { useAppDispatch, useAppSelector } from "libraries/hooks/redux"; import AutocompleteField from "../../../autocompleteField/AutocompleteField"; import InfoBox from "../../../infoBox/InfoBox"; @@ -60,6 +65,15 @@ const ExamForm: FC = ({ [examTypeState.data] ); + const procedureOptions = useMemo( + () => [ + { value: "1", label: t("exam.procedures.1") }, + { value: "2", label: t("exam.procedures.2") }, + { value: "3", label: t("exam.procedures.3") }, + ], + [t] + ); + const errorMessage = useMemo( () => (creationMode @@ -79,6 +93,19 @@ const ExamForm: FC = ({ code: string().required(t("common.required")), description: string().required(t("common.required")), examtype: string().required(t("common.required")), + rows: array().of(string().required(t("common.required"))), + defaultResult: string().test({ + name: "procedure-1", + exclusive: true, + test: function (value) { + return ( + this.parent.procedure !== 1 || + (!isEmpty(value) && + (this.parent.rows as string[]).some((item) => item == value)) + ); + }, + message: t("exam.invalidDefaultResult"), + }), procedure: number() .test({ name: "onetwothree", @@ -93,6 +120,7 @@ const ExamForm: FC = ({ initialValues, validationSchema, enableReinitialize: true, + validateOnChange: true, onSubmit: (values) => { const formattedValues = formatAllFieldValues(fields, values); formattedValues.examtype = examTypeState.data?.find( @@ -119,6 +147,20 @@ const ExamForm: FC = ({ navigate(-1); }; + const addExamRow = useCallback(() => { + formik.setFieldValue("rows", [...formik.values.rows, ""]); + }, [formik]); + + const removeExamRow = useCallback( + (index: number) => () => { + formik.setFieldValue( + "rows", + (formik.values.rows as string[]).toSpliced(index, 1) + ); + }, + [formik] + ); + const onBlurCallback = useCallback( (fieldName: string) => (e: React.FocusEvent, value: string) => { @@ -128,6 +170,28 @@ const ExamForm: FC = ({ [handleBlur, setFieldValue] ); + const handleProcedureChange = useCallback( + (value: string) => { + setFieldValue("procedure", value); + const rows = formik.values.rows as string[]; + if (value === "3") { + setFieldValue("rows", []); + } else if (rows.length < 2) { + setFieldValue("rows", rows.length === 1 ? [rows[0], ""] : ["", ""]); + } + setFieldValue("defaultResult", ""); + }, + [handleBlur, setFieldValue] + ); + + const handleDefaultResultChange = useCallback( + (e: ChangeEvent) => { + formik.setFieldValue("defaultResult", e.target.value); + formik.setFieldError("defaultResult", ""); + }, + [formik, dispatch] + ); + const cleanUp = useCallback(() => { if (creationMode) { dispatch(createExamReset()); @@ -193,39 +257,83 @@ const ExamForm: FC = ({ fieldName="selectedType" fieldValue={formik.values.procedure} label={t("exam.procedure")} - options={[ - { - label: '1: a list of available "string" results', - value: "1", - }, - { label: '2: a list of all "boolean" results', value: "2" }, - { - label: - "3: exact value (it will be typed in by the laboratorist)", - value: "3", - }, - ]} + options={procedureOptions} errorText={getErrorText("procedure")} isValid={isValid("procedure")} - onChange={(v) => formik.setFieldValue("procedure", v)} - onBlur={formik.handleBlur} - disabled={isLoading} - /> - -
-
+ {formik.values.procedure !== "2" && ( +
+ +
+ )} + {["1", "2"].includes(formik.values.procedure) && ( + + {t("exam.possibleValues")} + {formik.values.procedure === "1" && ( + {t("exam.defaultValue")} + )} + {(formik.values.rows as string[]).map((row, index) => ( + +
+ +
+ {(formik.values.rows as string[]).length > 2 && ( + + + + )} + {formik.values.procedure === "1" && ( + + )} +
+ ))} + + + +
+ )}