{
  "openapi": "3.0.0",
  "info": {
    "title": "access-control-example",
    "version": "0.0.1",
    "description": "vet app",
    "contact": {
      "name": "Victor S",
      "email": "semkov@gmail.com"
    }
  },
  "paths": {
    "/analytics/{idOrganization}/appointments-by-month": {
      "get": {
        "x-controller-name": "AnalyticsController",
        "x-operation-name": "getAppointmentsByMonth",
        "tags": [
          "AnalyticsController"
        ],
        "responses": {
          "200": {
            "description": "Количество приемов по месяцам за год",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "month_key": {
                        "type": "string"
                      },
                      "month_name": {
                        "type": "string"
                      },
                      "appointments": {
                        "type": "number"
                      },
                      "doctors_count": {
                        "type": "number"
                      },
                      "clients_count": {
                        "type": "number"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "idOrganization",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "AnalyticsController.getAppointmentsByMonth"
      }
    },
    "/analytics/{idOrganization}/doctors-distribution": {
      "get": {
        "x-controller-name": "AnalyticsController",
        "x-operation-name": "getDoctorsDistribution",
        "tags": [
          "AnalyticsController"
        ],
        "responses": {
          "200": {
            "description": "Распределение приемов по врачам за год",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id_physicant": {
                        "type": "number"
                      },
                      "doctor_name": {
                        "type": "string"
                      },
                      "appointments": {
                        "type": "number"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "idOrganization",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "AnalyticsController.getDoctorsDistribution"
      }
    },
    "/analytics/{idOrganization}/doctors-efficiency": {
      "get": {
        "x-controller-name": "AnalyticsController",
        "x-operation-name": "getDoctorsEfficiency",
        "tags": [
          "AnalyticsController"
        ],
        "responses": {
          "200": {
            "description": "Эффективность сотрудников по среднему чеку за прием",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id_physicant": {
                        "type": "number"
                      },
                      "doctor_name": {
                        "type": "string"
                      },
                      "paid_appointments": {
                        "type": "number"
                      },
                      "total_revenue": {
                        "type": "number"
                      },
                      "average_check": {
                        "type": "number"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "idOrganization",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "AnalyticsController.getDoctorsEfficiency"
      }
    },
    "/analytics/{idOrganization}/revenue-by-month": {
      "get": {
        "x-controller-name": "AnalyticsController",
        "x-operation-name": "getRevenueByMonth",
        "tags": [
          "AnalyticsController"
        ],
        "responses": {
          "200": {
            "description": "Выручка и средний чек по месяцам за год",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "month_key": {
                        "type": "string"
                      },
                      "month_name": {
                        "type": "string"
                      },
                      "operations_count": {
                        "type": "number"
                      },
                      "total_revenue": {
                        "type": "number"
                      },
                      "average_check": {
                        "type": "number"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "idOrganization",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "AnalyticsController.getRevenueByMonth"
      }
    },
    "/analytics/{idOrganization}/top-products": {
      "get": {
        "x-controller-name": "AnalyticsController",
        "x-operation-name": "getTopProducts",
        "tags": [
          "AnalyticsController"
        ],
        "responses": {
          "200": {
            "description": "Топ товаров и медикаментов по продажам за год",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id_nomenclature": {
                        "type": "number"
                      },
                      "name": {
                        "type": "string"
                      },
                      "category_id": {
                        "type": "number"
                      },
                      "total_quantity": {
                        "type": "number"
                      },
                      "total_revenue": {
                        "type": "number"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "idOrganization",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "AnalyticsController.getTopProducts"
      }
    },
    "/anamnes_questions": {
      "get": {
        "x-controller-name": "AnamnesQuestionsController",
        "x-operation-name": "find",
        "tags": [
          "AnamnesQuestionsController"
        ],
        "responses": {
          "200": {
            "description": "Object Anamnes questions model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AnamnesQuestionsView"
                  }
                }
              }
            }
          }
        },
        "operationId": "AnamnesQuestionsController.find"
      }
    },
    "/bank-requisites/count": {
      "get": {
        "x-controller-name": "BankRequisitesController",
        "x-operation-name": "count",
        "tags": [
          "BankRequisitesController"
        ],
        "responses": {
          "200": {
            "description": "BankRequisites model count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "BankRequisites.WhereFilter",
                  "additionalProperties": true,
                  "x-typescript-type": "@loopback/repository#Where<BankRequisites>"
                }
              }
            }
          }
        ],
        "operationId": "BankRequisitesController.count"
      }
    },
    "/bank-requisites/{id}": {
      "put": {
        "x-controller-name": "BankRequisitesController",
        "x-operation-name": "replaceById",
        "tags": [
          "BankRequisitesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "BankRequisites PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankRequisites"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "BankRequisitesController.replaceById"
      },
      "patch": {
        "x-controller-name": "BankRequisitesController",
        "x-operation-name": "updateById",
        "tags": [
          "BankRequisitesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "BankRequisites PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankRequisitesPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "BankRequisitesController.updateById"
      },
      "get": {
        "x-controller-name": "BankRequisitesController",
        "x-operation-name": "findById",
        "tags": [
          "BankRequisitesController"
        ],
        "responses": {
          "200": {
            "description": "BankRequisites model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankRequisitesWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankRequisites.Filter"
                }
              }
            }
          }
        ],
        "operationId": "BankRequisitesController.findById"
      },
      "delete": {
        "x-controller-name": "BankRequisitesController",
        "x-operation-name": "deleteById",
        "tags": [
          "BankRequisitesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "BankRequisites DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "BankRequisitesController.deleteById"
      }
    },
    "/bank-requisites": {
      "post": {
        "x-controller-name": "BankRequisitesController",
        "x-operation-name": "create",
        "tags": [
          "BankRequisitesController"
        ],
        "responses": {
          "200": {
            "description": "BankRequisites model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankRequisites"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewBankRequisites"
              }
            }
          }
        },
        "operationId": "BankRequisitesController.create"
      },
      "get": {
        "x-controller-name": "BankRequisitesController",
        "x-operation-name": "find",
        "tags": [
          "BankRequisitesController"
        ],
        "responses": {
          "200": {
            "description": "Array of BankRequisites model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BankRequisitesWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BankRequisites.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "BankRequisitesController.find"
      }
    },
    "/cashbox": {
      "get": {
        "x-controller-name": "CashboxController",
        "x-operation-name": "find",
        "tags": [
          "CashboxController"
        ],
        "responses": {
          "200": {
            "description": "Array of Cashbox model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CashboxWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/view_cashbox.Filter"
                }
              }
            }
          }
        ],
        "operationId": "CashboxController.find"
      }
    },
    "/clients-autocomplete": {
      "get": {
        "x-controller-name": "ProfileController",
        "x-operation-name": "autocomplete",
        "tags": [
          "ProfileController"
        ],
        "responses": {
          "200": {
            "description": "Array of Clients model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProfilesView"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "ProfileController.autocomplete"
      }
    },
    "/dictionaries": {
      "get": {
        "x-controller-name": "DictionariesController",
        "x-operation-name": "find",
        "tags": [
          "DictionariesController"
        ],
        "responses": {
          "200": {
            "description": "Array of Dictionaries model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DictionariesWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dictionaries.Filter"
                }
              }
            }
          }
        ],
        "operationId": "DictionariesController.find"
      }
    },
    "/document-templates/element/{slug}/{idOrganization}": {
      "get": {
        "x-controller-name": "DocumentTemplatesController",
        "x-operation-name": "findElement",
        "tags": [
          "DocumentTemplatesController"
        ],
        "responses": {
          "200": {
            "description": "Array of DocumentTemplate model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DocumentTemplateWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "idOrganization",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "slug",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "DocumentTemplatesController.findElement"
      }
    },
    "/document-templates/{slug}/{idOrganization}/{idClient}/{idProcedure}": {
      "get": {
        "x-controller-name": "DocumentTemplatesController",
        "x-operation-name": "find",
        "tags": [
          "DocumentTemplatesController"
        ],
        "responses": {
          "200": {
            "description": "Array of DocumentTemplate model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DocumentTemplateWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "idOrganization",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "idProcedure",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "idClient",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "DocumentTemplatesController.find"
      }
    },
    "/document-templates/{slug}/{idOrganization}": {
      "get": {
        "x-controller-name": "DocumentTemplatesController",
        "x-operation-name": "findWithoutProcedureId",
        "tags": [
          "DocumentTemplatesController"
        ],
        "responses": {
          "200": {
            "description": "Array of DocumentTemplate model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DocumentTemplateWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "idOrganization",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "DocumentTemplatesController.findWithoutProcedureId"
      }
    },
    "/document-templates/{id}": {
      "put": {
        "x-controller-name": "DocumentTemplatesController",
        "x-operation-name": "replaceById",
        "tags": [
          "DocumentTemplatesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "DocumentTemplate PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentTemplate"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "DocumentTemplatesController.replaceById"
      },
      "patch": {
        "x-controller-name": "DocumentTemplatesController",
        "x-operation-name": "updateById",
        "tags": [
          "DocumentTemplatesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "DocumentTemplate PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentTemplatePartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "DocumentTemplatesController.updateById"
      },
      "get": {
        "x-controller-name": "DocumentTemplatesController",
        "x-operation-name": "findById",
        "tags": [
          "DocumentTemplatesController"
        ],
        "responses": {
          "200": {
            "description": "DocumentTemplate model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentTemplateWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/document_templates.Filter"
                }
              }
            }
          }
        ],
        "operationId": "DocumentTemplatesController.findById"
      },
      "delete": {
        "x-controller-name": "DocumentTemplatesController",
        "x-operation-name": "deleteById",
        "tags": [
          "DocumentTemplatesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "DocumentTemplate DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "DocumentTemplatesController.deleteById"
      }
    },
    "/document-templates": {
      "post": {
        "x-controller-name": "DocumentTemplatesController",
        "x-operation-name": "create",
        "tags": [
          "DocumentTemplatesController"
        ],
        "responses": {
          "200": {
            "description": "DocumentTemplate model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentTemplate"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewDocumentTemplate"
              }
            }
          }
        },
        "operationId": "DocumentTemplatesController.create"
      },
      "get": {
        "x-controller-name": "DocumentTemplatesController",
        "x-operation-name": "findByLegal",
        "tags": [
          "DocumentTemplatesController"
        ],
        "responses": {
          "200": {
            "description": "Array of DocumentTemplate model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DocumentTemplateWithRelations"
                  }
                }
              }
            }
          }
        },
        "operationId": "DocumentTemplatesController.findByLegal"
      }
    },
    "/employees/user/{id}": {
      "patch": {
        "x-controller-name": "EmployeesController",
        "x-operation-name": "updateEmployessById",
        "tags": [
          "EmployeesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Edit employess"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/EmployeesPartial"
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "EmployeesController.updateEmployessById"
      }
    },
    "/employees/{idOrganization}": {
      "get": {
        "x-controller-name": "EmployeesController",
        "x-operation-name": "findEmployees",
        "tags": [
          "EmployeesController"
        ],
        "responses": {
          "200": {
            "description": "Array of Employee model instances by organizations",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeesView"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "idOrganization",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "roles",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "operationId": "EmployeesController.findEmployees"
      }
    },
    "/employees": {
      "post": {
        "x-controller-name": "EmployeesController",
        "x-operation-name": "addEmployessById",
        "tags": [
          "EmployeesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Add employess"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmployeesPartial"
              }
            }
          }
        },
        "operationId": "EmployeesController.addEmployessById"
      },
      "get": {
        "x-controller-name": "EmployeesController",
        "x-operation-name": "find",
        "tags": [
          "EmployeesController"
        ],
        "responses": {
          "200": {
            "description": "Array of Employee model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmployeesView"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/view_employees.Filter"
                }
              }
            }
          }
        ],
        "operationId": "EmployeesController.find"
      }
    },
    "/files/{subfolder}/{filename}": {
      "get": {
        "x-controller-name": "FileDownloadController",
        "x-operation-name": "downloadFileFromSubfolder",
        "tags": [
          "FileDownloadController"
        ],
        "responses": {
          "200": {
            "description": "The file content",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "subfolder",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "filename",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "FileDownloadController.downloadFileFromSubfolder"
      }
    },
    "/files/{filename}": {
      "get": {
        "x-controller-name": "FileDownloadController",
        "x-operation-name": "downloadFile",
        "tags": [
          "FileDownloadController"
        ],
        "responses": {
          "200": {
            "description": "The file content",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filename",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "FileDownloadController.downloadFile"
      }
    },
    "/files": {
      "post": {
        "x-controller-name": "FileUploadController",
        "x-operation-name": "fileUpload",
        "tags": [
          "FileUploadController"
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Files and fields"
          }
        },
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "x-parser": "stream",
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          },
          "description": "Request body for multipart/form-data based file upload",
          "required": true
        },
        "operationId": "FileUploadController.fileUpload"
      },
      "get": {
        "x-controller-name": "FileDownloadController",
        "x-operation-name": "listFiles",
        "tags": [
          "FileDownloadController"
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            },
            "description": "A list of files"
          }
        },
        "operationId": "FileDownloadController.listFiles"
      }
    },
    "/goods/{id}": {
      "put": {
        "x-controller-name": "GoodsController",
        "x-operation-name": "replaceById",
        "tags": [
          "GoodsController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Goods PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Goods"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "GoodsController.replaceById"
      },
      "patch": {
        "x-controller-name": "GoodsController",
        "x-operation-name": "updateById",
        "tags": [
          "GoodsController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Goods PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GoodsPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "GoodsController.updateById"
      },
      "get": {
        "x-controller-name": "GoodsController",
        "x-operation-name": "findById",
        "tags": [
          "GoodsController"
        ],
        "responses": {
          "200": {
            "description": "Goods model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GoodsWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/view_goods.Filter"
                }
              }
            }
          }
        ],
        "operationId": "GoodsController.findById"
      },
      "delete": {
        "x-controller-name": "GoodsController",
        "x-operation-name": "deleteById",
        "tags": [
          "GoodsController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Goods DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "GoodsController.deleteById"
      }
    },
    "/goods": {
      "post": {
        "x-controller-name": "GoodsController",
        "x-operation-name": "create",
        "tags": [
          "GoodsController"
        ],
        "responses": {
          "200": {
            "description": "Goods model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Goods"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewGoods"
              }
            }
          }
        },
        "operationId": "GoodsController.create"
      },
      "get": {
        "x-controller-name": "GoodsController",
        "x-operation-name": "find",
        "tags": [
          "GoodsController"
        ],
        "responses": {
          "200": {
            "description": "Array of Goods model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GoodsWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/view_goods.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "GoodsController.find"
      }
    },
    "/legals/current": {
      "get": {
        "x-controller-name": "LegalsController",
        "x-operation-name": "getCurrentLegal",
        "tags": [
          "LegalsController"
        ],
        "responses": {
          "200": {
            "description": "Current Legals model instance",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LegalsView"
                  }
                }
              }
            }
          }
        },
        "operationId": "LegalsController.getCurrentLegal"
      }
    },
    "/legals/{id}": {
      "put": {
        "x-controller-name": "LegalsController",
        "x-operation-name": "replaceById",
        "tags": [
          "LegalsController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Legals PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Legals"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "LegalsController.replaceById"
      },
      "patch": {
        "x-controller-name": "LegalsController",
        "x-operation-name": "updateById",
        "tags": [
          "LegalsController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Legals PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LegalsPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "LegalsController.updateById"
      },
      "get": {
        "x-controller-name": "LegalsController",
        "x-operation-name": "findById",
        "tags": [
          "LegalsController"
        ],
        "responses": {
          "200": {
            "description": "Legals model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalsView"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/view_legals.Filter"
                }
              }
            }
          }
        ],
        "operationId": "LegalsController.findById"
      },
      "delete": {
        "x-controller-name": "LegalsController",
        "x-operation-name": "deleteById",
        "tags": [
          "LegalsController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Legals DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "LegalsController.deleteById"
      }
    },
    "/legals": {
      "post": {
        "x-controller-name": "LegalsController",
        "x-operation-name": "create",
        "tags": [
          "LegalsController"
        ],
        "responses": {
          "200": {
            "description": "Legals model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Legals"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewLegals"
              }
            }
          }
        },
        "operationId": "LegalsController.create"
      },
      "get": {
        "x-controller-name": "LegalsController",
        "x-operation-name": "find",
        "tags": [
          "LegalsController"
        ],
        "responses": {
          "200": {
            "description": "Array of Legals model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LegalsView"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/view_legals.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "LegalsController.find"
      }
    },
    "/nomenclatures/count": {
      "get": {
        "x-controller-name": "NomenclaturesController",
        "x-operation-name": "count",
        "tags": [
          "NomenclaturesController"
        ],
        "responses": {
          "200": {
            "description": "Nomenclatures model count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "nomenclature.WhereFilter",
                  "additionalProperties": true,
                  "x-typescript-type": "@loopback/repository#Where<Nomenclatures>"
                }
              }
            }
          }
        ],
        "operationId": "NomenclaturesController.count"
      }
    },
    "/nomenclatures/{id}": {
      "put": {
        "x-controller-name": "NomenclaturesController",
        "x-operation-name": "replaceById",
        "tags": [
          "NomenclaturesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Nomenclatures PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Nomenclatures"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "NomenclaturesController.replaceById"
      },
      "patch": {
        "x-controller-name": "NomenclaturesController",
        "x-operation-name": "updateById",
        "tags": [
          "NomenclaturesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Nomenclatures PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NomenclaturesPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "NomenclaturesController.updateById"
      },
      "get": {
        "x-controller-name": "NomenclaturesController",
        "x-operation-name": "findById",
        "tags": [
          "NomenclaturesController"
        ],
        "responses": {
          "200": {
            "description": "Nomenclatures model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NomenclaturesWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nomenclature.Filter"
                }
              }
            }
          }
        ],
        "operationId": "NomenclaturesController.findById"
      },
      "delete": {
        "x-controller-name": "NomenclaturesController",
        "x-operation-name": "deleteById",
        "tags": [
          "NomenclaturesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Nomenclatures DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "NomenclaturesController.deleteById"
      }
    },
    "/nomenclatures": {
      "post": {
        "x-controller-name": "NomenclaturesController",
        "x-operation-name": "create",
        "tags": [
          "NomenclaturesController"
        ],
        "responses": {
          "200": {
            "description": "Nomenclatures model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Nomenclatures"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewNomenclatures"
              }
            }
          }
        },
        "operationId": "NomenclaturesController.create"
      },
      "get": {
        "x-controller-name": "NomenclaturesController",
        "x-operation-name": "find",
        "tags": [
          "NomenclaturesController"
        ],
        "responses": {
          "200": {
            "description": "Array of Nomenclatures model instances",
            "content": {
              "application/json": {
                "schema": {
                  "data": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/NomenclaturesWithRelations",
                      "definitions": {
                        "NomenclaturesWithRelations": {
                          "$ref": "#/components/schemas/NomenclaturesWithRelations"
                        }
                      }
                    }
                  },
                  "meta": {
                    "type": "object",
                    "properties": {
                      "current_page": {
                        "type": "number"
                      },
                      "items_perpage": {
                        "type": "number"
                      },
                      "items_count": {
                        "type": "number"
                      },
                      "page_count": {
                        "type": "number"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nomenclature.Filter1"
                }
              }
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "NomenclaturesController.find"
      }
    },
    "/nomenclatures-categories/count": {
      "get": {
        "x-controller-name": "NomenclaturesCategoryController",
        "x-operation-name": "count",
        "tags": [
          "NomenclaturesCategoryController"
        ],
        "responses": {
          "200": {
            "description": "NomenclaturesCategory model count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "nomenclature_category.WhereFilter",
                  "additionalProperties": true,
                  "x-typescript-type": "@loopback/repository#Where<NomenclaturesCategory>"
                }
              }
            }
          }
        ],
        "operationId": "NomenclaturesCategoryController.count"
      }
    },
    "/nomenclatures-categories/{id}": {
      "put": {
        "x-controller-name": "NomenclaturesCategoryController",
        "x-operation-name": "replaceById",
        "tags": [
          "NomenclaturesCategoryController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "NomenclaturesCategory PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NomenclaturesCategory"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "NomenclaturesCategoryController.replaceById"
      },
      "patch": {
        "x-controller-name": "NomenclaturesCategoryController",
        "x-operation-name": "updateById",
        "tags": [
          "NomenclaturesCategoryController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "NomenclaturesCategory PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NomenclaturesCategoryPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "NomenclaturesCategoryController.updateById"
      },
      "get": {
        "x-controller-name": "NomenclaturesCategoryController",
        "x-operation-name": "findById",
        "tags": [
          "NomenclaturesCategoryController"
        ],
        "responses": {
          "200": {
            "description": "NomenclaturesCategory model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NomenclaturesCategoryWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nomenclature_category.Filter"
                }
              }
            }
          }
        ],
        "operationId": "NomenclaturesCategoryController.findById"
      },
      "delete": {
        "x-controller-name": "NomenclaturesCategoryController",
        "x-operation-name": "deleteById",
        "tags": [
          "NomenclaturesCategoryController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "NomenclaturesCategory DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "NomenclaturesCategoryController.deleteById"
      }
    },
    "/nomenclatures-categories": {
      "post": {
        "x-controller-name": "NomenclaturesCategoryController",
        "x-operation-name": "create",
        "tags": [
          "NomenclaturesCategoryController"
        ],
        "responses": {
          "200": {
            "description": "NomenclaturesCategory model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NomenclaturesCategory"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewNomenclaturesCategory"
              }
            }
          }
        },
        "operationId": "NomenclaturesCategoryController.create"
      },
      "get": {
        "x-controller-name": "NomenclaturesCategoryController",
        "x-operation-name": "find",
        "tags": [
          "NomenclaturesCategoryController"
        ],
        "responses": {
          "200": {
            "description": "Array of NomenclaturesCategory model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/NomenclaturesCategoryWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nomenclature_category.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "NomenclaturesCategoryController.find"
      }
    },
    "/operation-detail/{id}": {
      "patch": {
        "x-controller-name": "OperationDetailController",
        "x-operation-name": "updateById",
        "tags": [
          "OperationDetailController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "OperationDetail PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OperationDetailPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "OperationDetailController.updateById"
      },
      "get": {
        "x-controller-name": "OperationDetailController",
        "x-operation-name": "findById",
        "tags": [
          "OperationDetailController"
        ],
        "responses": {
          "200": {
            "description": "OperationDetail model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationDetailWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation_detail.Filter"
                }
              }
            }
          }
        ],
        "operationId": "OperationDetailController.findById"
      },
      "delete": {
        "x-controller-name": "OperationDetailController",
        "x-operation-name": "deleteById",
        "tags": [
          "OperationDetailController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "OperationDetail DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "OperationDetailController.deleteById"
      }
    },
    "/operation-detail": {
      "post": {
        "x-controller-name": "OperationDetailController",
        "x-operation-name": "create",
        "tags": [
          "OperationDetailController"
        ],
        "responses": {
          "200": {
            "description": "OperationDetail model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationDetail"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewOperationDetail"
              }
            }
          }
        },
        "operationId": "OperationDetailController.create"
      },
      "get": {
        "x-controller-name": "OperationDetailController",
        "x-operation-name": "find",
        "tags": [
          "OperationDetailController"
        ],
        "responses": {
          "200": {
            "description": "Получить все детальные строки по операции",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OperationDetailWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation_detail.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "OperationDetailController.find"
      }
    },
    "/operations/{id}/pay": {
      "patch": {
        "x-controller-name": "OperationController",
        "x-operation-name": "payOperationById",
        "tags": [
          "OperationController"
        ],
        "responses": {
          "200": {
            "description": "Оплата операции",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OperationPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "OperationController.payOperationById"
      }
    },
    "/operations/{id}/receipt": {
      "get": {
        "x-controller-name": "OperationController",
        "x-operation-name": "findReceiptByOperationId",
        "tags": [
          "OperationController"
        ],
        "responses": {
          "200": {
            "description": "Operation model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation.Filter"
                }
              }
            }
          }
        ],
        "operationId": "OperationController.findReceiptByOperationId"
      }
    },
    "/operations/{id}": {
      "put": {
        "x-controller-name": "OperationController",
        "x-operation-name": "replaceById",
        "tags": [
          "OperationController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Operation PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Operation"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "OperationController.replaceById"
      },
      "patch": {
        "x-controller-name": "OperationController",
        "x-operation-name": "updateById",
        "tags": [
          "OperationController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Operation PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OperationPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "OperationController.updateById"
      },
      "get": {
        "x-controller-name": "OperationController",
        "x-operation-name": "findById",
        "tags": [
          "OperationController"
        ],
        "responses": {
          "200": {
            "description": "Operation model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation.Filter"
                }
              }
            }
          }
        ],
        "operationId": "OperationController.findById"
      },
      "delete": {
        "x-controller-name": "OperationController",
        "x-operation-name": "deleteById",
        "tags": [
          "OperationController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Operation DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "OperationController.deleteById"
      }
    },
    "/operations": {
      "post": {
        "x-controller-name": "OperationController",
        "x-operation-name": "create",
        "tags": [
          "OperationController"
        ],
        "responses": {
          "200": {
            "description": "Operation model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewOperation"
              }
            }
          }
        },
        "operationId": "OperationController.create"
      },
      "get": {
        "x-controller-name": "OperationController",
        "x-operation-name": "find",
        "tags": [
          "OperationController"
        ],
        "responses": {
          "200": {
            "description": "Список операций",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OperationWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "OperationController.find"
      }
    },
    "/organization-bank-requisites/count": {
      "get": {
        "x-controller-name": "OrganizationBankRequisitesController",
        "x-operation-name": "count",
        "tags": [
          "OrganizationBankRequisitesController"
        ],
        "responses": {
          "200": {
            "description": "OrganizationBankRequisites model count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "OrganizationBankRequisites.WhereFilter",
                  "additionalProperties": true,
                  "x-typescript-type": "@loopback/repository#Where<OrganizationBankRequisites>"
                }
              }
            }
          }
        ],
        "operationId": "OrganizationBankRequisitesController.count"
      }
    },
    "/organization-bank-requisites/{id}": {
      "put": {
        "x-controller-name": "OrganizationBankRequisitesController",
        "x-operation-name": "replaceById",
        "tags": [
          "OrganizationBankRequisitesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "OrganizationBankRequisites PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrganizationBankRequisites"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "OrganizationBankRequisitesController.replaceById"
      },
      "patch": {
        "x-controller-name": "OrganizationBankRequisitesController",
        "x-operation-name": "updateById",
        "tags": [
          "OrganizationBankRequisitesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "OrganizationBankRequisites PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrganizationBankRequisitesPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "OrganizationBankRequisitesController.updateById"
      },
      "get": {
        "x-controller-name": "OrganizationBankRequisitesController",
        "x-operation-name": "findById",
        "tags": [
          "OrganizationBankRequisitesController"
        ],
        "responses": {
          "200": {
            "description": "OrganizationBankRequisites model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationBankRequisitesWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationBankRequisites.Filter"
                }
              }
            }
          }
        ],
        "operationId": "OrganizationBankRequisitesController.findById"
      },
      "delete": {
        "x-controller-name": "OrganizationBankRequisitesController",
        "x-operation-name": "deleteById",
        "tags": [
          "OrganizationBankRequisitesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "OrganizationBankRequisites DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "OrganizationBankRequisitesController.deleteById"
      }
    },
    "/organization-bank-requisites": {
      "post": {
        "x-controller-name": "OrganizationBankRequisitesController",
        "x-operation-name": "create",
        "tags": [
          "OrganizationBankRequisitesController"
        ],
        "responses": {
          "200": {
            "description": "OrganizationBankRequisites model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationBankRequisites"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewOrganizationBankRequisites"
              }
            }
          }
        },
        "operationId": "OrganizationBankRequisitesController.create"
      },
      "get": {
        "x-controller-name": "OrganizationBankRequisitesController",
        "x-operation-name": "find",
        "tags": [
          "OrganizationBankRequisitesController"
        ],
        "responses": {
          "200": {
            "description": "Array of OrganizationBankRequisites model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OrganizationBankRequisitesWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationBankRequisites.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "OrganizationBankRequisitesController.find"
      }
    },
    "/organizations/count": {
      "get": {
        "x-controller-name": "OrganizationController",
        "x-operation-name": "count",
        "tags": [
          "OrganizationController"
        ],
        "responses": {
          "200": {
            "description": "Organizations model count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "Organizations.WhereFilter",
                  "additionalProperties": true,
                  "x-typescript-type": "@loopback/repository#Where<Organizations>"
                }
              }
            }
          }
        ],
        "operationId": "OrganizationController.count"
      }
    },
    "/organizations/{id}": {
      "put": {
        "x-controller-name": "OrganizationController",
        "x-operation-name": "replaceById",
        "tags": [
          "OrganizationController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Organizations PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Organizations"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "OrganizationController.replaceById"
      },
      "patch": {
        "x-controller-name": "OrganizationController",
        "x-operation-name": "updateById",
        "tags": [
          "OrganizationController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Organizations PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrganizationsPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "OrganizationController.updateById"
      },
      "get": {
        "x-controller-name": "OrganizationController",
        "x-operation-name": "findById",
        "tags": [
          "OrganizationController"
        ],
        "responses": {
          "200": {
            "description": "Organizations model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationsWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organizations.Filter"
                }
              }
            }
          }
        ],
        "operationId": "OrganizationController.findById"
      },
      "delete": {
        "x-controller-name": "OrganizationController",
        "x-operation-name": "deleteById",
        "tags": [
          "OrganizationController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Organizations DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "OrganizationController.deleteById"
      }
    },
    "/organizations": {
      "post": {
        "x-controller-name": "OrganizationController",
        "x-operation-name": "create",
        "tags": [
          "OrganizationController"
        ],
        "responses": {
          "200": {
            "description": "Organizations model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organizations"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewOrganizations"
              }
            }
          }
        },
        "operationId": "OrganizationController.create"
      },
      "get": {
        "x-controller-name": "OrganizationController",
        "x-operation-name": "find",
        "tags": [
          "OrganizationController"
        ],
        "responses": {
          "200": {
            "description": "Array of Organizations model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OrganizationsWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organizations.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "OrganizationController.find"
      }
    },
    "/patient-analyze": {
      "post": {
        "x-controller-name": "PatientAnalysesController",
        "x-operation-name": "create",
        "tags": [
          "PatientAnalysesController"
        ],
        "responses": {
          "200": {
            "description": "PatientAnalyze model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatientAnalyze"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewPatientAnalyze"
              }
            }
          }
        },
        "operationId": "PatientAnalysesController.create"
      }
    },
    "/patient-analyze-files/{id_patient_analyze}": {
      "post": {
        "x-controller-name": "PatientAnalyzeFilesControllerController",
        "x-operation-name": "create",
        "tags": [
          "PatientAnalyzeFilesControllerController"
        ],
        "responses": {
          "200": {
            "description": "PatientAnalyzeFile model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatientAnalyzeFile"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id_patient_analyze",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "x-parser": "stream",
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          },
          "description": "Request body for multipart/form-data based file upload",
          "required": true,
          "x-parameter-index": 1
        },
        "operationId": "PatientAnalyzeFilesControllerController.create"
      },
      "patch": {
        "x-controller-name": "PatientAnalyzeFilesControllerController",
        "x-operation-name": "updateAll",
        "tags": [
          "PatientAnalyzeFilesControllerController"
        ],
        "responses": {
          "200": {
            "description": "PatientAnalyzeFile PATCH success count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id_patient_analyze",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatientAnalyzeFilePartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "PatientAnalyzeFilesControllerController.updateAll"
      },
      "get": {
        "x-controller-name": "PatientAnalyzeFilesControllerController",
        "x-operation-name": "find",
        "tags": [
          "PatientAnalyzeFilesControllerController"
        ],
        "responses": {
          "200": {
            "description": "Array of PatientAnalyzeFile model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PatientAnalyzeFileWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id_patient_analyze",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "PatientAnalyzeFilesControllerController.find"
      }
    },
    "/patient-analyze-files/{id}": {
      "delete": {
        "x-controller-name": "PatientAnalyzeFilesControllerController",
        "x-operation-name": "deleteById",
        "tags": [
          "PatientAnalyzeFilesControllerController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "PatientAnalyzeFile DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "PatientAnalyzeFilesControllerController.deleteById"
      }
    },
    "/patient-analyzes/{id_procedure}": {
      "post": {
        "x-controller-name": "PatientAnalysesController",
        "x-operation-name": "savePatienAnalyses",
        "tags": [
          "PatientAnalysesController"
        ],
        "responses": {
          "200": {
            "description": "Array of PatientAnalyze model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PatientAnalyze"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id_procedure",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PatientAnalyze"
                }
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "PatientAnalysesController.savePatienAnalyses"
      }
    },
    "/patient-analyzes/{id}": {
      "put": {
        "x-controller-name": "PatientAnalysesController",
        "x-operation-name": "replaceById",
        "tags": [
          "PatientAnalysesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "PatientAnalyze PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatientAnalyze"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "PatientAnalysesController.replaceById"
      },
      "patch": {
        "x-controller-name": "PatientAnalysesController",
        "x-operation-name": "updateById",
        "tags": [
          "PatientAnalysesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "PatientAnalyze PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatientAnalyzePartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "PatientAnalysesController.updateById"
      },
      "get": {
        "x-controller-name": "PatientAnalysesController",
        "x-operation-name": "findById",
        "tags": [
          "PatientAnalysesController"
        ],
        "responses": {
          "200": {
            "description": "PatientAnalyze model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatientAnalyzesViewWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/view_patient_analyzes.Filter"
                }
              }
            }
          }
        ],
        "operationId": "PatientAnalysesController.findById"
      },
      "delete": {
        "x-controller-name": "PatientAnalysesController",
        "x-operation-name": "deleteById",
        "tags": [
          "PatientAnalysesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "PatientAnalyze DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "PatientAnalysesController.deleteById"
      }
    },
    "/patient-analyzes": {
      "get": {
        "x-controller-name": "PatientAnalysesController",
        "x-operation-name": "find",
        "tags": [
          "PatientAnalysesController"
        ],
        "responses": {
          "200": {
            "description": "Array of PatientAnalyze model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PatientAnalyzesView"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/view_patient_analyzes.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "PatientAnalysesController.find"
      }
    },
    "/patient-anamnes/count": {
      "get": {
        "x-controller-name": "PatientAnamnesController",
        "x-operation-name": "count",
        "tags": [
          "PatientAnamnesController"
        ],
        "responses": {
          "200": {
            "description": "PatientAnamnes model count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "patient_anamnesis.WhereFilter",
                  "additionalProperties": true,
                  "x-typescript-type": "@loopback/repository#Where<PatientAnamnes>"
                }
              }
            }
          }
        ],
        "operationId": "PatientAnamnesController.count"
      }
    },
    "/patient-anamnes/{id}": {
      "put": {
        "x-controller-name": "PatientAnamnesController",
        "x-operation-name": "replaceById",
        "tags": [
          "PatientAnamnesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "PatientAnamnes PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatientAnamnes"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "PatientAnamnesController.replaceById"
      },
      "patch": {
        "x-controller-name": "PatientAnamnesController",
        "x-operation-name": "updateById",
        "tags": [
          "PatientAnamnesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "PatientAnamnes PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatientAnamnesPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "PatientAnamnesController.updateById"
      },
      "get": {
        "x-controller-name": "PatientAnamnesController",
        "x-operation-name": "findById",
        "tags": [
          "PatientAnamnesController"
        ],
        "responses": {
          "200": {
            "description": "PatientAnamnes model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatientAnamnesWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/patient_anamnesis.Filter"
                }
              }
            }
          }
        ],
        "operationId": "PatientAnamnesController.findById"
      },
      "delete": {
        "x-controller-name": "PatientAnamnesController",
        "x-operation-name": "deleteById",
        "tags": [
          "PatientAnamnesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "PatientAnamnes DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "PatientAnamnesController.deleteById"
      }
    },
    "/patient-anamnes": {
      "post": {
        "x-controller-name": "PatientAnamnesController",
        "x-operation-name": "create",
        "tags": [
          "PatientAnamnesController"
        ],
        "responses": {
          "200": {
            "description": "PatientAnamnes model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatientAnamnes"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewPatientAnamnes"
              }
            }
          }
        },
        "operationId": "PatientAnamnesController.create"
      },
      "get": {
        "x-controller-name": "PatientAnamnesController",
        "x-operation-name": "find",
        "tags": [
          "PatientAnamnesController"
        ],
        "responses": {
          "200": {
            "description": "Array of PatientAnamnes model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PatientAnamnesWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/patient_anamnesis.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "PatientAnamnesController.find"
      }
    },
    "/patients/{id_user}": {
      "post": {
        "x-controller-name": "PatientsController",
        "x-operation-name": "create",
        "tags": [
          "PatientsController"
        ],
        "responses": {
          "200": {
            "description": "Patients model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Patients"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id_user",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "isOwner",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewPatients"
              }
            }
          }
        },
        "operationId": "PatientsController.create"
      }
    },
    "/patients/{id}": {
      "put": {
        "x-controller-name": "PatientsController",
        "x-operation-name": "replaceById",
        "tags": [
          "PatientsController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Patients PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Patients"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "PatientsController.replaceById"
      },
      "patch": {
        "x-controller-name": "PatientsController",
        "x-operation-name": "updateById",
        "tags": [
          "PatientsController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Patients PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatientsPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "PatientsController.updateById"
      },
      "get": {
        "x-controller-name": "PatientsController",
        "x-operation-name": "findById",
        "tags": [
          "PatientsController"
        ],
        "responses": {
          "200": {
            "description": "Patients model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatientsView"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/view_patients.Filter"
                }
              }
            }
          }
        ],
        "operationId": "PatientsController.findById"
      },
      "delete": {
        "x-controller-name": "PatientsController",
        "x-operation-name": "deleteById",
        "tags": [
          "PatientsController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Patients DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "PatientsController.deleteById"
      }
    },
    "/patients": {
      "get": {
        "x-controller-name": "PatientsController",
        "x-operation-name": "find",
        "tags": [
          "PatientsController"
        ],
        "responses": {
          "200": {
            "description": "Array of Patients model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PatientsView"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/view_patients.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "PatientsController.find"
      }
    },
    "/patients-autocomplete": {
      "get": {
        "x-controller-name": "PatientsController",
        "x-operation-name": "autocomplete",
        "tags": [
          "PatientsController"
        ],
        "responses": {
          "200": {
            "description": "Array of Patients model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PatientsView"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "onwer",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "PatientsController.autocomplete"
      }
    },
    "/pdf/generate": {
      "post": {
        "x-controller-name": "PdfGeneratorController",
        "x-operation-name": "generatePdfFromRawHtml",
        "tags": [
          "PdfGeneratorController"
        ],
        "responses": {
          "200": {
            "description": "Generate PDF from raw HTML content",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "html": {
                    "type": "string",
                    "description": "HTML content to convert to PDF"
                  },
                  "format": {
                    "type": "string",
                    "description": "Page format (A4, Letter, etc.)",
                    "default": "A4"
                  },
                  "landscape": {
                    "type": "boolean",
                    "description": "Landscape orientation",
                    "default": false
                  }
                },
                "required": [
                  "html"
                ]
              }
            }
          }
        },
        "operationId": "PdfGeneratorController.generatePdfFromRawHtml"
      }
    },
    "/pdf/print": {
      "post": {
        "x-controller-name": "PdfGeneratorController",
        "x-operation-name": "printByDataSources",
        "tags": [
          "PdfGeneratorController"
        ],
        "responses": {
          "200": {
            "description": "Generate PDF by slug, save to storage, return download info",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "filename": {
                      "type": "string"
                    },
                    "original_name": {
                      "type": "string"
                    },
                    "download_url": {
                      "type": "string"
                    },
                    "subfolder": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string",
                    "description": "Template slug"
                  },
                  "subfolder": {
                    "type": "string",
                    "description": "Subfolder for temporary storage"
                  },
                  "id_organization": {
                    "type": "number"
                  },
                  "id_employee": {
                    "type": "number"
                  },
                  "id_client": {
                    "type": "number"
                  },
                  "id_patient": {
                    "type": "number"
                  },
                  "id_procedure": {
                    "type": "number"
                  },
                  "id_analyse": {
                    "type": "number"
                  },
                  "id_operation": {
                    "type": "number"
                  }
                },
                "required": [
                  "slug"
                ]
              }
            }
          }
        },
        "operationId": "PdfGeneratorController.printByDataSources"
      }
    },
    "/pdf/test": {
      "get": {
        "x-controller-name": "PdfGeneratorController",
        "x-operation-name": "testPdf",
        "tags": [
          "PdfGeneratorController"
        ],
        "responses": {
          "200": {
            "description": "Test PDF generation - Hello World",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "operationId": "PdfGeneratorController.testPdf"
      }
    },
    "/pdf/{slug}/{idOrganization}/{idClient}/{idProcedure}/{idAnalyse}": {
      "get": {
        "x-controller-name": "PdfGeneratorController",
        "x-operation-name": "generateAnalysePdf",
        "tags": [
          "PdfGeneratorController"
        ],
        "responses": {
          "200": {
            "description": "Generate PDF from document template with analyse data",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "idOrganization",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "idClient",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "idProcedure",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "idAnalyse",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "PdfGeneratorController.generateAnalysePdf"
      }
    },
    "/pdf/{slug}/{idOrganization}/{idClient}/{idProcedure}": {
      "get": {
        "x-controller-name": "PdfGeneratorController",
        "x-operation-name": "generateContractPdf",
        "tags": [
          "PdfGeneratorController"
        ],
        "responses": {
          "200": {
            "description": "Generate PDF from document template with client and procedure data",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "idOrganization",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "idClient",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "idProcedure",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "PdfGeneratorController.generateContractPdf"
      }
    },
    "/pdf/{slug}/{idOrganization}/{idClient}": {
      "get": {
        "x-controller-name": "PdfGeneratorController",
        "x-operation-name": "generateContractPdfWithoutProcedure",
        "tags": [
          "PdfGeneratorController"
        ],
        "responses": {
          "200": {
            "description": "Generate PDF from document template with client data",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "idOrganization",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "idClient",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "PdfGeneratorController.generateContractPdfWithoutProcedure"
      }
    },
    "/pdf/{slug}/{idOrganization}": {
      "get": {
        "x-controller-name": "PdfGeneratorController",
        "x-operation-name": "generatePdfOrganizationOnly",
        "tags": [
          "PdfGeneratorController"
        ],
        "responses": {
          "200": {
            "description": "Generate PDF from document template (organization only)",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "idOrganization",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "PdfGeneratorController.generatePdfOrganizationOnly"
      }
    },
    "/procedure-files/{id_procedure}": {
      "post": {
        "x-controller-name": "ProcedureFilesController",
        "x-operation-name": "create",
        "tags": [
          "ProcedureFilesController"
        ],
        "responses": {
          "200": {
            "description": "ProcedureFile model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcedureFile"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id_procedure",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "x-parser": "stream",
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          },
          "description": "Request body for multipart/form-data based file upload",
          "required": true,
          "x-parameter-index": 1
        },
        "operationId": "ProcedureFilesController.create"
      },
      "get": {
        "x-controller-name": "ProcedureFilesController",
        "x-operation-name": "find",
        "tags": [
          "ProcedureFilesController"
        ],
        "responses": {
          "200": {
            "description": "Array of ProcedureFile model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProcedureFileWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id_procedure",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "ProcedureFilesController.find"
      }
    },
    "/procedure-files/{id}": {
      "delete": {
        "x-controller-name": "ProcedureFilesController",
        "x-operation-name": "deleteById",
        "tags": [
          "ProcedureFilesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ProcedureFile DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "ProcedureFilesController.deleteById"
      }
    },
    "/procedure-statuses/count": {
      "get": {
        "x-controller-name": "ProcedureStatusesController",
        "x-operation-name": "count",
        "tags": [
          "ProcedureStatusesController"
        ],
        "responses": {
          "200": {
            "description": "ProcedureStatuses model count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "procedure_statuses.WhereFilter",
                  "additionalProperties": true,
                  "x-typescript-type": "@loopback/repository#Where<ProcedureStatuses>"
                }
              }
            }
          }
        ],
        "operationId": "ProcedureStatusesController.count"
      }
    },
    "/procedure-statuses/{id}": {
      "put": {
        "x-controller-name": "ProcedureStatusesController",
        "x-operation-name": "replaceById",
        "tags": [
          "ProcedureStatusesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ProcedureStatuses PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcedureStatuses"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "ProcedureStatusesController.replaceById"
      },
      "patch": {
        "x-controller-name": "ProcedureStatusesController",
        "x-operation-name": "updateById",
        "tags": [
          "ProcedureStatusesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ProcedureStatuses PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcedureStatusesPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "ProcedureStatusesController.updateById"
      },
      "get": {
        "x-controller-name": "ProcedureStatusesController",
        "x-operation-name": "findById",
        "tags": [
          "ProcedureStatusesController"
        ],
        "responses": {
          "200": {
            "description": "ProcedureStatuses model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcedureStatusesWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/procedure_statuses.Filter"
                }
              }
            }
          }
        ],
        "operationId": "ProcedureStatusesController.findById"
      },
      "delete": {
        "x-controller-name": "ProcedureStatusesController",
        "x-operation-name": "deleteById",
        "tags": [
          "ProcedureStatusesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ProcedureStatuses DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "ProcedureStatusesController.deleteById"
      }
    },
    "/procedure-statuses": {
      "post": {
        "x-controller-name": "ProcedureStatusesController",
        "x-operation-name": "create",
        "tags": [
          "ProcedureStatusesController"
        ],
        "responses": {
          "200": {
            "description": "ProcedureStatuses model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcedureStatuses"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewProcedureStatuses"
              }
            }
          }
        },
        "operationId": "ProcedureStatusesController.create"
      },
      "get": {
        "x-controller-name": "ProcedureStatusesController",
        "x-operation-name": "find",
        "tags": [
          "ProcedureStatusesController"
        ],
        "responses": {
          "200": {
            "description": "Array of ProcedureStatuses model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProcedureStatusesWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/procedure_statuses.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "ProcedureStatusesController.find"
      }
    },
    "/procedure-types/count": {
      "get": {
        "x-controller-name": "ProcedureTypesController",
        "x-operation-name": "count",
        "tags": [
          "ProcedureTypesController"
        ],
        "responses": {
          "200": {
            "description": "ProcedureTypes model count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "procedure_types.WhereFilter",
                  "additionalProperties": true,
                  "x-typescript-type": "@loopback/repository#Where<ProcedureTypes>"
                }
              }
            }
          }
        ],
        "operationId": "ProcedureTypesController.count"
      }
    },
    "/procedure-types/{id}": {
      "put": {
        "x-controller-name": "ProcedureTypesController",
        "x-operation-name": "replaceById",
        "tags": [
          "ProcedureTypesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ProcedureTypes PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcedureTypes"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "ProcedureTypesController.replaceById"
      },
      "patch": {
        "x-controller-name": "ProcedureTypesController",
        "x-operation-name": "updateById",
        "tags": [
          "ProcedureTypesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ProcedureTypes PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcedureTypesPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "ProcedureTypesController.updateById"
      },
      "get": {
        "x-controller-name": "ProcedureTypesController",
        "x-operation-name": "findById",
        "tags": [
          "ProcedureTypesController"
        ],
        "responses": {
          "200": {
            "description": "ProcedureTypes model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcedureTypesWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/procedure_types.Filter"
                }
              }
            }
          }
        ],
        "operationId": "ProcedureTypesController.findById"
      },
      "delete": {
        "x-controller-name": "ProcedureTypesController",
        "x-operation-name": "deleteById",
        "tags": [
          "ProcedureTypesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ProcedureTypes DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "ProcedureTypesController.deleteById"
      }
    },
    "/procedure-types": {
      "post": {
        "x-controller-name": "ProcedureTypesController",
        "x-operation-name": "create",
        "tags": [
          "ProcedureTypesController"
        ],
        "responses": {
          "200": {
            "description": "ProcedureTypes model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcedureTypes"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewProcedureTypes"
              }
            }
          }
        },
        "operationId": "ProcedureTypesController.create"
      },
      "get": {
        "x-controller-name": "ProcedureTypesController",
        "x-operation-name": "find",
        "tags": [
          "ProcedureTypesController"
        ],
        "responses": {
          "200": {
            "description": "Array of ProcedureTypes model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProcedureTypesWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/procedure_types.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "ProcedureTypesController.find"
      }
    },
    "/procedures/{id}": {
      "put": {
        "x-controller-name": "ProceduresController",
        "x-operation-name": "replaceById",
        "tags": [
          "ProceduresController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Procedures PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Procedures"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "ProceduresController.replaceById"
      },
      "patch": {
        "x-controller-name": "ProceduresController",
        "x-operation-name": "updateById",
        "tags": [
          "ProceduresController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Procedures PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProceduresPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "ProceduresController.updateById"
      },
      "get": {
        "x-controller-name": "ProceduresController",
        "x-operation-name": "findById",
        "tags": [
          "ProceduresController"
        ],
        "responses": {
          "200": {
            "description": "Procedures model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProceduresView"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/view_procedures.Filter"
                }
              }
            }
          }
        ],
        "operationId": "ProceduresController.findById"
      },
      "delete": {
        "x-controller-name": "ProceduresController",
        "x-operation-name": "deleteById",
        "tags": [
          "ProceduresController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Procedures DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "ProceduresController.deleteById"
      }
    },
    "/procedures": {
      "post": {
        "x-controller-name": "ProceduresController",
        "x-operation-name": "create",
        "tags": [
          "ProceduresController"
        ],
        "responses": {
          "200": {
            "description": "Procedures model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Procedures"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewProcedures"
              }
            }
          }
        },
        "operationId": "ProceduresController.create"
      },
      "get": {
        "x-controller-name": "ProceduresController",
        "x-operation-name": "find",
        "tags": [
          "ProceduresController"
        ],
        "responses": {
          "200": {
            "description": "Array of Procedures model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProceduresView"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/view_procedures.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "ProceduresController.find"
      }
    },
    "/profiles/{id}": {
      "put": {
        "x-controller-name": "ProfileController",
        "x-operation-name": "replaceById",
        "tags": [
          "ProfileController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Profile PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Profiles"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "ProfileController.replaceById"
      },
      "patch": {
        "x-controller-name": "ProfileController",
        "x-operation-name": "updateById",
        "tags": [
          "ProfileController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Profile PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfilesPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "ProfileController.updateById"
      },
      "get": {
        "x-controller-name": "ProfileController",
        "x-operation-name": "findById",
        "tags": [
          "ProfileController"
        ],
        "responses": {
          "200": {
            "description": "Profile model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfilesView"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/view_profiles.Filter"
                }
              }
            }
          }
        ],
        "operationId": "ProfileController.findById"
      },
      "delete": {
        "x-controller-name": "ProfileController",
        "x-operation-name": "deleteById",
        "tags": [
          "ProfileController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Profile DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "ProfileController.deleteById"
      }
    },
    "/profiles": {
      "post": {
        "x-controller-name": "ProfileController",
        "x-operation-name": "create",
        "tags": [
          "ProfileController"
        ],
        "responses": {
          "200": {
            "description": "Profile model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Profiles"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewProfile"
              }
            }
          }
        },
        "operationId": "ProfileController.create"
      },
      "get": {
        "x-controller-name": "ProfileController",
        "x-operation-name": "find",
        "tags": [
          "ProfileController"
        ],
        "responses": {
          "200": {
            "description": "Array of Profile model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProfilesView"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/view_profiles.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "ProfileController.find"
      }
    },
    "/roles/count": {
      "get": {
        "x-controller-name": "RolesController",
        "x-operation-name": "count",
        "tags": [
          "RolesController"
        ],
        "responses": {
          "200": {
            "description": "Roles model count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "Roles.WhereFilter",
                  "additionalProperties": true,
                  "x-typescript-type": "@loopback/repository#Where<Roles>"
                }
              }
            }
          }
        ],
        "operationId": "RolesController.count"
      }
    },
    "/roles/{id}": {
      "put": {
        "x-controller-name": "RolesController",
        "x-operation-name": "replaceById",
        "tags": [
          "RolesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Roles PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Roles"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "RolesController.replaceById"
      },
      "patch": {
        "x-controller-name": "RolesController",
        "x-operation-name": "updateById",
        "tags": [
          "RolesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Roles PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RolesPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "RolesController.updateById"
      },
      "get": {
        "x-controller-name": "RolesController",
        "x-operation-name": "findById",
        "tags": [
          "RolesController"
        ],
        "responses": {
          "200": {
            "description": "Roles model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RolesWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Roles.Filter"
                }
              }
            }
          }
        ],
        "operationId": "RolesController.findById"
      },
      "delete": {
        "x-controller-name": "RolesController",
        "x-operation-name": "deleteById",
        "tags": [
          "RolesController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Roles DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "RolesController.deleteById"
      }
    },
    "/roles": {
      "post": {
        "x-controller-name": "RolesController",
        "x-operation-name": "create",
        "tags": [
          "RolesController"
        ],
        "responses": {
          "200": {
            "description": "Roles model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Roles"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewRoles"
              }
            }
          }
        },
        "operationId": "RolesController.create"
      },
      "get": {
        "x-controller-name": "RolesController",
        "x-operation-name": "find",
        "tags": [
          "RolesController"
        ],
        "responses": {
          "200": {
            "description": "Array of Roles model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Roles"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Roles.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "RolesController.find"
      }
    },
    "/service/update": {
      "get": {
        "x-controller-name": "KassatkaController",
        "x-operation-name": "update",
        "tags": [
          "KassatkaController"
        ],
        "responses": {
          "200": {
            "description": "Return value of KassatkaController.update"
          }
        },
        "operationId": "KassatkaController.update"
      }
    },
    "/services/{id}": {
      "put": {
        "x-controller-name": "ServiceController",
        "x-operation-name": "replaceById",
        "tags": [
          "ServiceController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Service PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Service"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "ServiceController.replaceById"
      },
      "patch": {
        "x-controller-name": "ServiceController",
        "x-operation-name": "updateById",
        "tags": [
          "ServiceController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Service PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServicePartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "ServiceController.updateById"
      },
      "get": {
        "x-controller-name": "ServiceController",
        "x-operation-name": "findById",
        "tags": [
          "ServiceController"
        ],
        "responses": {
          "200": {
            "description": "Service model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/view_service.Filter"
                }
              }
            }
          }
        ],
        "operationId": "ServiceController.findById"
      },
      "delete": {
        "x-controller-name": "ServiceController",
        "x-operation-name": "deleteById",
        "tags": [
          "ServiceController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Service DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "ServiceController.deleteById"
      }
    },
    "/services": {
      "post": {
        "x-controller-name": "ServiceController",
        "x-operation-name": "create",
        "tags": [
          "ServiceController"
        ],
        "responses": {
          "200": {
            "description": "Service model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Service"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewService"
              }
            }
          }
        },
        "operationId": "ServiceController.create"
      },
      "get": {
        "x-controller-name": "ServiceController",
        "x-operation-name": "find",
        "tags": [
          "ServiceController"
        ],
        "responses": {
          "200": {
            "description": "Array of Service model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/view_service.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "ServiceController.find"
      }
    },
    "/signup": {
      "post": {
        "x-controller-name": "UserController",
        "x-operation-name": "signUp",
        "tags": [
          "UserController"
        ],
        "responses": {
          "200": {
            "description": "User",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewUser"
              }
            }
          }
        },
        "operationId": "UserController.signUp"
      }
    },
    "/user/check/{email}": {
      "get": {
        "x-controller-name": "UsersController",
        "x-operation-name": "check",
        "tags": [
          "UsersController"
        ],
        "responses": {
          "200": {
            "description": "check unique email address",
            "content": {
              "application/json": {
                "schema": {
                  "type": "String"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "email",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "operationId": "UsersController.check"
      }
    },
    "/users/change-password/{id}": {
      "patch": {
        "x-controller-name": "UsersController",
        "x-operation-name": "changePassword",
        "tags": [
          "UsersController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Users password PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UsersPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "UsersController.changePassword"
      }
    },
    "/users/current": {
      "get": {
        "x-controller-name": "UsersController",
        "x-operation-name": "getCurrentUser",
        "tags": [
          "UsersController"
        ],
        "responses": {
          "200": {
            "description": "Current users model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersWithTokenPartial"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "UsersController.getCurrentUser"
      }
    },
    "/users/login": {
      "post": {
        "x-controller-name": "UserController",
        "x-operation-name": "login",
        "tags": [
          "UserController"
        ],
        "responses": {
          "200": {
            "description": "Token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email",
                  "password"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "password": {
                    "type": "string",
                    "minLength": 3
                  }
                }
              }
            }
          },
          "description": "The input of login function",
          "required": true
        },
        "operationId": "UserController.login"
      }
    },
    "/users/logout": {
      "get": {
        "x-controller-name": "UsersController",
        "x-operation-name": "logoutCurrentUser",
        "tags": [
          "UsersController"
        ],
        "responses": {
          "200": {
            "description": "Logout current users model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersWithTokenPartial"
                }
              }
            }
          }
        },
        "operationId": "UsersController.logoutCurrentUser"
      }
    },
    "/users/refresh-user": {
      "get": {
        "x-controller-name": "UsersController",
        "x-operation-name": "getRefreshUser",
        "tags": [
          "UsersController"
        ],
        "responses": {
          "200": {
            "description": "Refresh Current user",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersWithTokenPartial"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "UsersController.getRefreshUser"
      }
    },
    "/users/signup": {
      "post": {
        "x-controller-name": "UsersController",
        "x-operation-name": "signUp",
        "tags": [
          "UsersController"
        ],
        "responses": {
          "200": {
            "description": "Users model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersWithTokenPartial"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email",
                  "password"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "password": {
                    "type": "string",
                    "minLength": 3
                  }
                }
              }
            }
          },
          "description": "The input of login function",
          "required": true
        },
        "operationId": "UsersController.signUp"
      }
    },
    "/users/{id}/patients": {
      "post": {
        "x-controller-name": "UsersPatientsController",
        "x-operation-name": "create",
        "tags": [
          "UsersPatientsController"
        ],
        "responses": {
          "200": {
            "description": "create a Patients model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Patients"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewPatientsInUsers"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "UsersPatientsController.create"
      },
      "patch": {
        "x-controller-name": "UsersPatientsController",
        "x-operation-name": "patch",
        "tags": [
          "UsersPatientsController"
        ],
        "responses": {
          "200": {
            "description": "Users.Patients PATCH success count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "where",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "Patients.WhereFilter",
                  "additionalProperties": true,
                  "x-typescript-type": "@loopback/repository#Where<Patients>"
                }
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatientsPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "UsersPatientsController.patch"
      },
      "get": {
        "x-controller-name": "UsersPatientsController",
        "x-operation-name": "find",
        "tags": [
          "UsersPatientsController"
        ],
        "responses": {
          "200": {
            "description": "Array of Users has many Patients through UsersPatients",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Patients"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        ],
        "operationId": "UsersPatientsController.find"
      },
      "delete": {
        "x-controller-name": "UsersPatientsController",
        "x-operation-name": "delete",
        "tags": [
          "UsersPatientsController"
        ],
        "responses": {
          "200": {
            "description": "Users.Patients DELETE success count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "where",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "Patients.WhereFilter",
                  "additionalProperties": true,
                  "x-typescript-type": "@loopback/repository#Where<Patients>"
                }
              }
            }
          }
        ],
        "operationId": "UsersPatientsController.delete"
      }
    },
    "/users/{id}/profiles": {
      "post": {
        "x-controller-name": "UsersProfilesController",
        "x-operation-name": "create",
        "tags": [
          "UsersProfilesController"
        ],
        "responses": {
          "200": {
            "description": "Users model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Profiles"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewProfilesInUsers"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "UsersProfilesController.create"
      },
      "patch": {
        "x-controller-name": "UsersProfilesController",
        "x-operation-name": "patch",
        "tags": [
          "UsersProfilesController"
        ],
        "responses": {
          "200": {
            "description": "Users.Profiles PATCH success count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "where",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "Profiles.WhereFilter",
                  "additionalProperties": true,
                  "x-typescript-type": "@loopback/repository#Where<Profiles>"
                }
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfilesPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "UsersProfilesController.patch"
      },
      "get": {
        "x-controller-name": "UsersProfilesController",
        "x-operation-name": "get",
        "tags": [
          "UsersProfilesController"
        ],
        "responses": {
          "200": {
            "description": "Users has one Profiles",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Profiles"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        ],
        "operationId": "UsersProfilesController.get"
      },
      "delete": {
        "x-controller-name": "UsersProfilesController",
        "x-operation-name": "delete",
        "tags": [
          "UsersProfilesController"
        ],
        "responses": {
          "200": {
            "description": "Users.Profiles DELETE success count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "where",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "Profiles.WhereFilter",
                  "additionalProperties": true,
                  "x-typescript-type": "@loopback/repository#Where<Profiles>"
                }
              }
            }
          }
        ],
        "operationId": "UsersProfilesController.delete"
      }
    },
    "/users/{id}": {
      "put": {
        "x-controller-name": "UsersController",
        "x-operation-name": "replaceById",
        "tags": [
          "UsersController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Users PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Users"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "UsersController.replaceById"
      },
      "patch": {
        "x-controller-name": "UsersController",
        "x-operation-name": "updateById",
        "tags": [
          "UsersController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Users PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UsersPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "UsersController.updateById"
      },
      "get": {
        "x-controller-name": "UsersController",
        "x-operation-name": "findById",
        "tags": [
          "UsersController"
        ],
        "responses": {
          "200": {
            "description": "Users model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsersWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Users.Filter"
                }
              }
            }
          }
        ],
        "operationId": "UsersController.findById"
      },
      "delete": {
        "x-controller-name": "UsersController",
        "x-operation-name": "deleteById",
        "tags": [
          "UsersController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Users DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "UsersController.deleteById"
      }
    },
    "/users": {
      "post": {
        "x-controller-name": "UsersController",
        "x-operation-name": "create",
        "tags": [
          "UsersController"
        ],
        "responses": {
          "200": {
            "description": "Employer user model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Users"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/New user"
              }
            }
          }
        },
        "operationId": "UsersController.create"
      },
      "get": {
        "x-controller-name": "UsersController",
        "x-operation-name": "find",
        "tags": [
          "UsersController"
        ],
        "responses": {
          "200": {
            "description": "Array of Users model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UsersWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Users.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "UsersController.find"
      }
    },
    "/whoAmI": {
      "get": {
        "x-controller-name": "UserController",
        "x-operation-name": "whoAmI",
        "tags": [
          "UserController"
        ],
        "responses": {
          "200": {
            "description": "Return current user",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "operationId": "UserController.whoAmI"
      }
    },
    "/worker-plannings/count": {
      "get": {
        "x-controller-name": "WorkerPlanningsController",
        "x-operation-name": "count",
        "tags": [
          "WorkerPlanningsController"
        ],
        "responses": {
          "200": {
            "description": "WorkerPlannings model count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "worker_plannings.WhereFilter",
                  "additionalProperties": true,
                  "x-typescript-type": "@loopback/repository#Where<WorkerPlannings>"
                }
              }
            }
          }
        ],
        "operationId": "WorkerPlanningsController.count"
      }
    },
    "/worker-plannings/{idOrganization}/delete/{year}/{month}": {
      "delete": {
        "x-controller-name": "WorkerPlanningsController",
        "x-operation-name": "deleteWorkerPlannings",
        "tags": [
          "WorkerPlanningsController"
        ],
        "responses": {
          "200": {
            "description": "WorkerPlannings model count",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/loopback.Count"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "idOrganization",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "year",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "month",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "WorkerPlanningsController.deleteWorkerPlannings"
      }
    },
    "/worker-plannings/{id}": {
      "put": {
        "x-controller-name": "WorkerPlanningsController",
        "x-operation-name": "replaceById",
        "tags": [
          "WorkerPlanningsController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "WorkerPlannings PUT success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkerPlannings"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "WorkerPlanningsController.replaceById"
      },
      "patch": {
        "x-controller-name": "WorkerPlanningsController",
        "x-operation-name": "updateById",
        "tags": [
          "WorkerPlanningsController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "WorkerPlannings PATCH success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkerPlanningsPartial"
              }
            }
          },
          "x-parameter-index": 1
        },
        "operationId": "WorkerPlanningsController.updateById"
      },
      "get": {
        "x-controller-name": "WorkerPlanningsController",
        "x-operation-name": "findById",
        "tags": [
          "WorkerPlanningsController"
        ],
        "responses": {
          "200": {
            "description": "WorkerPlannings model instance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkerPlanningsWithRelations"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          },
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/worker_plannings.Filter"
                }
              }
            }
          }
        ],
        "operationId": "WorkerPlanningsController.findById"
      },
      "delete": {
        "x-controller-name": "WorkerPlanningsController",
        "x-operation-name": "deleteById",
        "tags": [
          "WorkerPlanningsController"
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "description": "WorkerPlannings DELETE success"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "number"
            },
            "required": true
          }
        ],
        "operationId": "WorkerPlanningsController.deleteById"
      }
    },
    "/worker-plannings": {
      "post": {
        "x-controller-name": "WorkerPlanningsController",
        "x-operation-name": "saveWorkerPlannings",
        "tags": [
          "WorkerPlanningsController"
        ],
        "responses": {
          "200": {
            "description": "Array of WorkerPlannings model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkerPlannings"
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/WorkerPlannings"
                }
              }
            }
          }
        },
        "operationId": "WorkerPlanningsController.saveWorkerPlannings"
      },
      "get": {
        "x-controller-name": "WorkerPlanningsController",
        "x-operation-name": "find",
        "tags": [
          "WorkerPlanningsController"
        ],
        "responses": {
          "200": {
            "description": "Array of WorkerPlannings model instances",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkerPlanningsWithRelations"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/worker_plannings.Filter1"
                }
              }
            }
          }
        ],
        "operationId": "WorkerPlanningsController.find"
      }
    }
  },
  "components": {
    "securitySchemes": {
      "jwt": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "WorkerPlannings": {
        "title": "WorkerPlannings",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_employee": {
            "type": "number"
          },
          "start_date": {
            "type": "string",
            "format": "date-time"
          },
          "end_date": {
            "type": "string",
            "format": "date-time"
          },
          "id_organization": {
            "type": "number"
          }
        },
        "required": [
          "id_employee"
        ],
        "additionalProperties": false
      },
      "WorkerPlanningsWithRelations": {
        "title": "WorkerPlanningsWithRelations",
        "type": "object",
        "description": "(tsType: WorkerPlanningsWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_employee": {
            "type": "number"
          },
          "start_date": {
            "type": "string",
            "format": "date-time"
          },
          "end_date": {
            "type": "string",
            "format": "date-time"
          },
          "id_organization": {
            "type": "number"
          }
        },
        "required": [
          "id_employee"
        ],
        "additionalProperties": false,
        "x-typescript-type": "WorkerPlanningsWithRelations"
      },
      "WorkerPlanningsPartial": {
        "title": "WorkerPlanningsPartial",
        "type": "object",
        "description": "(tsType: Partial<WorkerPlannings>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_employee": {
            "type": "number"
          },
          "start_date": {
            "type": "string",
            "format": "date-time"
          },
          "end_date": {
            "type": "string",
            "format": "date-time"
          },
          "id_organization": {
            "type": "number"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<WorkerPlannings>"
      },
      "Users": {
        "title": "Users",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "login": {
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "lastlogin_at": {
            "type": "string",
            "format": "date-time"
          },
          "id_role": {
            "type": "number"
          },
          "active": {
            "type": "boolean"
          },
          "emailVerified": {
            "type": "boolean"
          },
          "verificationToken": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Profiles": {
        "title": "Profiles",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_legal": {
            "type": "number"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "second_name": {
            "type": "string"
          },
          "phone": {
            "type": "number"
          },
          "id_messenger_type": {
            "type": "number",
            "nullable": true
          },
          "messenger": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "address": {
            "type": "string"
          },
          "dateofbirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "subscription": {
            "type": "boolean",
            "nullable": true
          },
          "id_document_type": {
            "type": "number"
          },
          "document_number": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "locality": {
            "type": "string",
            "nullable": true
          },
          "street": {
            "type": "string",
            "nullable": true
          },
          "building_number": {
            "type": "string",
            "nullable": true
          },
          "apartment_number": {
            "type": "string",
            "nullable": true
          },
          "id_user": {
            "type": "number"
          },
          "comment": {
            "type": "string"
          }
        },
        "required": [
          "first_name",
          "last_name",
          "second_name",
          "address"
        ],
        "additionalProperties": false
      },
      "New user": {
        "title": "New user",
        "type": "object",
        "description": "(tsType: Partial<UsersCreateModel>, schemaOptions: { title: 'New user', partial: true })",
        "properties": {
          "user": {
            "$ref": "#/components/schemas/Users"
          },
          "profile": {
            "$ref": "#/components/schemas/Profiles"
          },
          "employer": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<UsersCreateModel>"
      },
      "UsersPartial": {
        "title": "UsersPartial",
        "type": "object",
        "description": "(tsType: Partial<Users>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "login": {
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "lastlogin_at": {
            "type": "string",
            "format": "date-time"
          },
          "id_role": {
            "type": "number"
          },
          "active": {
            "type": "boolean"
          },
          "emailVerified": {
            "type": "boolean"
          },
          "verificationToken": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<Users>"
      },
      "UserCredentialsWithRelations": {
        "title": "UserCredentialsWithRelations",
        "type": "object",
        "description": "(tsType: UserCredentialsWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "userId": {
            "type": "string"
          }
        },
        "required": [
          "password",
          "userId"
        ],
        "additionalProperties": true,
        "x-typescript-type": "UserCredentialsWithRelations"
      },
      "ProfilesWithRelations": {
        "title": "ProfilesWithRelations",
        "type": "object",
        "description": "(tsType: ProfilesWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_legal": {
            "type": "number"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "second_name": {
            "type": "string"
          },
          "phone": {
            "type": "number"
          },
          "id_messenger_type": {
            "type": "number",
            "nullable": true
          },
          "messenger": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "address": {
            "type": "string"
          },
          "dateofbirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "subscription": {
            "type": "boolean",
            "nullable": true
          },
          "id_document_type": {
            "type": "number"
          },
          "document_number": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "locality": {
            "type": "string",
            "nullable": true
          },
          "street": {
            "type": "string",
            "nullable": true
          },
          "building_number": {
            "type": "string",
            "nullable": true
          },
          "apartment_number": {
            "type": "string",
            "nullable": true
          },
          "id_user": {
            "type": "number"
          },
          "comment": {
            "type": "string"
          }
        },
        "required": [
          "first_name",
          "last_name",
          "second_name",
          "address"
        ],
        "additionalProperties": false,
        "x-typescript-type": "ProfilesWithRelations"
      },
      "RolesWithRelations": {
        "title": "RolesWithRelations",
        "type": "object",
        "description": "(tsType: RolesWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "RolesWithRelations"
      },
      "PatientsWithRelations": {
        "title": "PatientsWithRelations",
        "type": "object",
        "description": "(tsType: PatientsWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "id_type_sex": {
            "type": "boolean"
          },
          "dateofbirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "id_kinds": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "chip_identy": {
            "type": "string",
            "nullable": true
          },
          "id_breed": {
            "type": "number",
            "nullable": true
          },
          "breed_name": {
            "type": "string"
          },
          "allergies_notes": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "stamp_identy": {
            "type": "string",
            "nullable": true
          },
          "castration": {
            "type": "boolean",
            "nullable": true
          },
          "islive": {
            "type": "boolean",
            "nullable": true
          }
        },
        "required": [
          "name",
          "id_type_sex"
        ],
        "additionalProperties": false,
        "x-typescript-type": "PatientsWithRelations"
      },
      "OrganizationsWithRelations": {
        "title": "OrganizationsWithRelations",
        "type": "object",
        "description": "(tsType: OrganizationsWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "idLegal": {
            "type": "number"
          },
          "idAdministrator": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "adress": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "kpp": {
            "type": "string"
          },
          "inn": {
            "type": "string"
          },
          "locality": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "OrganizationsWithRelations"
      },
      "UsersWithRelations": {
        "title": "UsersWithRelations",
        "type": "object",
        "description": "(tsType: UsersWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "login": {
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "lastlogin_at": {
            "type": "string",
            "format": "date-time"
          },
          "id_role": {
            "type": "number"
          },
          "active": {
            "type": "boolean"
          },
          "emailVerified": {
            "type": "boolean"
          },
          "verificationToken": {
            "type": "string"
          },
          "userCredentials": {
            "$ref": "#/components/schemas/UserCredentialsWithRelations"
          },
          "profiles": {
            "$ref": "#/components/schemas/ProfilesWithRelations"
          },
          "roles": {
            "$ref": "#/components/schemas/RolesWithRelations"
          },
          "patients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PatientsWithRelations"
            }
          },
          "organizations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrganizationsWithRelations"
            }
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "UsersWithRelations"
      },
      "UsersWithTokenPartial": {
        "title": "UsersWithTokenPartial",
        "type": "object",
        "description": "(tsType: Partial<UsersWithToken>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "login": {
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "lastlogin_at": {
            "type": "string",
            "format": "date-time"
          },
          "id_role": {
            "type": "number"
          },
          "active": {
            "type": "boolean"
          },
          "emailVerified": {
            "type": "boolean"
          },
          "verificationToken": {
            "type": "string"
          },
          "token": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<UsersWithToken>"
      },
      "NewProfilesInUsers": {
        "title": "NewProfilesInUsers",
        "type": "object",
        "description": "(tsType: @loopback/repository-json-schema#Optional<Omit<Profiles, 'id'>, 'id_user'>, schemaOptions: { title: 'NewProfilesInUsers', exclude: [ 'id' ], optional: [ 'id_user' ] })",
        "properties": {
          "id_legal": {
            "type": "number"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "second_name": {
            "type": "string"
          },
          "phone": {
            "type": "number"
          },
          "id_messenger_type": {
            "type": "number",
            "nullable": true
          },
          "messenger": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "address": {
            "type": "string"
          },
          "dateofbirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "subscription": {
            "type": "boolean",
            "nullable": true
          },
          "id_document_type": {
            "type": "number"
          },
          "document_number": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "locality": {
            "type": "string",
            "nullable": true
          },
          "street": {
            "type": "string",
            "nullable": true
          },
          "building_number": {
            "type": "string",
            "nullable": true
          },
          "apartment_number": {
            "type": "string",
            "nullable": true
          },
          "id_user": {
            "type": "number"
          },
          "comment": {
            "type": "string"
          }
        },
        "required": [
          "first_name",
          "last_name",
          "second_name",
          "address"
        ],
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository-json-schema#Optional<Omit<Profiles, 'id'>, 'id_user'>"
      },
      "ProfilesPartial": {
        "title": "ProfilesPartial",
        "type": "object",
        "description": "(tsType: Partial<Profiles>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_legal": {
            "type": "number"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "second_name": {
            "type": "string"
          },
          "phone": {
            "type": "number"
          },
          "id_messenger_type": {
            "type": "number",
            "nullable": true
          },
          "messenger": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "address": {
            "type": "string"
          },
          "dateofbirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "subscription": {
            "type": "boolean",
            "nullable": true
          },
          "id_document_type": {
            "type": "number"
          },
          "document_number": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "locality": {
            "type": "string",
            "nullable": true
          },
          "street": {
            "type": "string",
            "nullable": true
          },
          "building_number": {
            "type": "string",
            "nullable": true
          },
          "apartment_number": {
            "type": "string",
            "nullable": true
          },
          "id_user": {
            "type": "number"
          },
          "comment": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<Profiles>"
      },
      "Patients": {
        "title": "Patients",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "id_type_sex": {
            "type": "boolean"
          },
          "dateofbirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "id_kinds": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "chip_identy": {
            "type": "string",
            "nullable": true
          },
          "id_breed": {
            "type": "number",
            "nullable": true
          },
          "breed_name": {
            "type": "string"
          },
          "allergies_notes": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "stamp_identy": {
            "type": "string",
            "nullable": true
          },
          "castration": {
            "type": "boolean",
            "nullable": true
          },
          "islive": {
            "type": "boolean",
            "nullable": true
          }
        },
        "required": [
          "name",
          "id_type_sex"
        ],
        "additionalProperties": false
      },
      "NewPatientsInUsers": {
        "title": "NewPatientsInUsers",
        "type": "object",
        "description": "(tsType: Omit<Patients, 'id'>, schemaOptions: { title: 'NewPatientsInUsers', exclude: [ 'id' ] })",
        "properties": {
          "name": {
            "type": "string"
          },
          "id_type_sex": {
            "type": "boolean"
          },
          "dateofbirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "id_kinds": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "chip_identy": {
            "type": "string",
            "nullable": true
          },
          "id_breed": {
            "type": "number",
            "nullable": true
          },
          "breed_name": {
            "type": "string"
          },
          "allergies_notes": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "stamp_identy": {
            "type": "string",
            "nullable": true
          },
          "castration": {
            "type": "boolean",
            "nullable": true
          },
          "islive": {
            "type": "boolean",
            "nullable": true
          }
        },
        "required": [
          "name",
          "id_type_sex"
        ],
        "additionalProperties": false,
        "x-typescript-type": "Omit<Patients, 'id'>"
      },
      "PatientsPartial": {
        "title": "PatientsPartial",
        "type": "object",
        "description": "(tsType: Partial<Patients>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "id_type_sex": {
            "type": "boolean"
          },
          "dateofbirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "id_kinds": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "chip_identy": {
            "type": "string",
            "nullable": true
          },
          "id_breed": {
            "type": "number",
            "nullable": true
          },
          "breed_name": {
            "type": "string"
          },
          "allergies_notes": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "stamp_identy": {
            "type": "string",
            "nullable": true
          },
          "castration": {
            "type": "boolean",
            "nullable": true
          },
          "islive": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<Patients>"
      },
      "User": {
        "title": "User",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "realm": {
            "type": "string"
          },
          "username": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "emailVerified": {
            "type": "boolean"
          },
          "verificationToken": {
            "type": "string"
          }
        },
        "required": [
          "email"
        ],
        "additionalProperties": true
      },
      "NewUser": {
        "title": "NewUser",
        "type": "object",
        "description": "(tsType: NewUserRequest, schemaOptions: { title: 'NewUser' })",
        "properties": {
          "id": {
            "type": "string"
          },
          "realm": {
            "type": "string"
          },
          "username": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "emailVerified": {
            "type": "boolean"
          },
          "verificationToken": {
            "type": "string"
          },
          "password": {
            "type": "string"
          }
        },
        "required": [
          "email",
          "password"
        ],
        "additionalProperties": true,
        "x-typescript-type": "NewUserRequest"
      },
      "NewUserRequest": {
        "title": "NewUserRequest",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "realm": {
            "type": "string"
          },
          "username": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "emailVerified": {
            "type": "boolean"
          },
          "verificationToken": {
            "type": "string"
          },
          "password": {
            "type": "string"
          }
        },
        "required": [
          "email",
          "password"
        ],
        "additionalProperties": true
      },
      "Service": {
        "title": "Service",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "price": {
            "type": "string"
          },
          "id_unit_types": {
            "type": "number"
          }
        },
        "required": [
          "name",
          "price",
          "id_unit_types"
        ],
        "additionalProperties": true
      },
      "NewService": {
        "title": "NewService",
        "type": "object",
        "description": "(tsType: Omit<Service, 'id'>, schemaOptions: { title: 'NewService', exclude: [ 'id' ] })",
        "properties": {
          "name": {
            "type": "string"
          },
          "price": {
            "type": "string"
          },
          "id_unit_types": {
            "type": "number"
          }
        },
        "required": [
          "name",
          "price",
          "id_unit_types"
        ],
        "additionalProperties": true,
        "x-typescript-type": "Omit<Service, 'id'>"
      },
      "ServiceWithRelations": {
        "title": "ServiceWithRelations",
        "type": "object",
        "description": "(tsType: ServiceWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "price": {
            "type": "string"
          },
          "id_unit_types": {
            "type": "number"
          }
        },
        "required": [
          "name",
          "price",
          "id_unit_types"
        ],
        "additionalProperties": true,
        "x-typescript-type": "ServiceWithRelations"
      },
      "ServicePartial": {
        "title": "ServicePartial",
        "type": "object",
        "description": "(tsType: Partial<Service>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "price": {
            "type": "string"
          },
          "id_unit_types": {
            "type": "number"
          }
        },
        "additionalProperties": true,
        "x-typescript-type": "Partial<Service>"
      },
      "Roles": {
        "title": "Roles",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "NewRoles": {
        "title": "NewRoles",
        "type": "object",
        "description": "(tsType: Omit<Roles, 'id'>, schemaOptions: { title: 'NewRoles', exclude: [ 'id' ] })",
        "properties": {
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Omit<Roles, 'id'>"
      },
      "RolesPartial": {
        "title": "RolesPartial",
        "type": "object",
        "description": "(tsType: Partial<Roles>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<Roles>"
      },
      "NewProfile": {
        "title": "NewProfile",
        "type": "object",
        "description": "(tsType: Omit<Profiles, 'id'>, schemaOptions: { title: 'NewProfile', exclude: [ 'id' ] })",
        "properties": {
          "id_legal": {
            "type": "number"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "second_name": {
            "type": "string"
          },
          "phone": {
            "type": "number"
          },
          "id_messenger_type": {
            "type": "number",
            "nullable": true
          },
          "messenger": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "address": {
            "type": "string"
          },
          "dateofbirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "subscription": {
            "type": "boolean",
            "nullable": true
          },
          "id_document_type": {
            "type": "number"
          },
          "document_number": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "locality": {
            "type": "string",
            "nullable": true
          },
          "street": {
            "type": "string",
            "nullable": true
          },
          "building_number": {
            "type": "string",
            "nullable": true
          },
          "apartment_number": {
            "type": "string",
            "nullable": true
          },
          "id_user": {
            "type": "number"
          },
          "comment": {
            "type": "string"
          }
        },
        "required": [
          "first_name",
          "last_name",
          "second_name",
          "address"
        ],
        "additionalProperties": false,
        "x-typescript-type": "Omit<Profiles, 'id'>"
      },
      "ProfilesView": {
        "title": "ProfilesView",
        "type": "object",
        "description": "(tsType: ProfilesView, schemaOptions: { includeRelations: false })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_legal": {
            "type": "number"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "second_name": {
            "type": "string"
          },
          "organizations": {
            "type": "object"
          },
          "phone": {
            "type": "number"
          },
          "id_messenger_type": {
            "type": "number"
          },
          "messenger": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "dateofbirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "subscription": {
            "type": "boolean"
          },
          "id_document_type": {
            "type": "number"
          },
          "document_number": {
            "type": "number"
          },
          "region": {
            "type": "string"
          },
          "locality": {
            "type": "string"
          },
          "street": {
            "type": "string"
          },
          "building_number": {
            "type": "string"
          },
          "apartment_number": {
            "type": "string"
          },
          "id_user": {
            "type": "number"
          },
          "id_role": {
            "type": "number"
          },
          "role": {
            "type": "object"
          },
          "patients": {
            "type": "object"
          },
          "active": {
            "type": "boolean"
          },
          "comment": {
            "type": "string"
          }
        },
        "required": [
          "first_name",
          "last_name",
          "second_name",
          "address"
        ],
        "additionalProperties": false,
        "x-typescript-type": "ProfilesView"
      },
      "Procedures": {
        "title": "Procedures",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "done_at": {
            "type": "string",
            "format": "date-time"
          },
          "assigned_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "id_creator": {
            "type": "number"
          },
          "id_lastuser": {
            "type": "number"
          },
          "id_patient": {
            "type": "number"
          },
          "id_physicant": {
            "type": "number"
          },
          "id_client": {
            "type": "number"
          },
          "comment": {
            "type": "string"
          },
          "address": {
            "type": "string",
            "nullable": true
          },
          "diagnosis_comment": {
            "type": "string"
          },
          "id_status": {
            "type": "number"
          },
          "id_procedure_type": {
            "type": "number"
          },
          "is_office": {
            "type": "boolean"
          },
          "assign_comment": {
            "type": "string"
          },
          "anamnes": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "anamnesText": {
            "type": "string"
          },
          "id_operation": {
            "type": "number",
            "nullable": true
          },
          "id_organization": {
            "type": "number"
          },
          "cancel_reason": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          }
        },
        "required": [
          "id_creator",
          "id_lastuser",
          "id_patient",
          "id_physicant",
          "id_client",
          "id_status",
          "id_procedure_type",
          "is_office"
        ],
        "additionalProperties": false
      },
      "NewProcedures": {
        "title": "NewProcedures",
        "type": "object",
        "description": "(tsType: Omit<Procedures, 'id'>, schemaOptions: { title: 'NewProcedures', exclude: [ 'id' ] })",
        "properties": {
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "done_at": {
            "type": "string",
            "format": "date-time"
          },
          "assigned_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "id_creator": {
            "type": "number"
          },
          "id_lastuser": {
            "type": "number"
          },
          "id_patient": {
            "type": "number"
          },
          "id_physicant": {
            "type": "number"
          },
          "id_client": {
            "type": "number"
          },
          "comment": {
            "type": "string"
          },
          "address": {
            "type": "string",
            "nullable": true
          },
          "diagnosis_comment": {
            "type": "string"
          },
          "id_status": {
            "type": "number"
          },
          "id_procedure_type": {
            "type": "number"
          },
          "is_office": {
            "type": "boolean"
          },
          "assign_comment": {
            "type": "string"
          },
          "anamnes": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "anamnesText": {
            "type": "string"
          },
          "id_operation": {
            "type": "number",
            "nullable": true
          },
          "id_organization": {
            "type": "number"
          },
          "cancel_reason": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          }
        },
        "required": [
          "id_creator",
          "id_lastuser",
          "id_patient",
          "id_physicant",
          "id_client",
          "id_status",
          "id_procedure_type",
          "is_office"
        ],
        "additionalProperties": false,
        "x-typescript-type": "Omit<Procedures, 'id'>"
      },
      "Server": {},
      "ProceduresView": {
        "title": "ProceduresView",
        "type": "object",
        "description": "(tsType: ProceduresView, schemaOptions: { includeRelations: false })",
        "properties": {
          "id": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "done_at": {
            "type": "string",
            "format": "date-time"
          },
          "assigned_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "id_creator": {
            "type": "number"
          },
          "id_lastuser": {
            "type": "number"
          },
          "id_patient": {
            "type": "number"
          },
          "id_physicant": {
            "type": "number"
          },
          "id_client": {
            "type": "number"
          },
          "comment": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "diagnosis_comment": {
            "type": "string"
          },
          "id_status": {
            "type": "number"
          },
          "id_procedure_type": {
            "type": "number"
          },
          "is_office": {
            "type": "boolean"
          },
          "is_owner": {
            "type": "boolean"
          },
          "assign_comment": {
            "type": "string"
          },
          "patient": {
            "type": "object"
          },
          "physicant": {
            "type": "object"
          },
          "client": {
            "type": "object"
          },
          "anamnes": {
            "type": "object"
          },
          "anamnesText": {
            "type": "string"
          },
          "analyzes": {
            "type": "object"
          },
          "contract": {
            "type": "object"
          },
          "id_operation": {
            "type": "number"
          },
          "id_organization": {
            "type": "number"
          },
          "cancel_reason": {
            "type": "string"
          },
          "duration": {
            "type": "number",
            "nullable": true
          }
        },
        "required": [
          "id_creator",
          "id_lastuser",
          "id_patient",
          "id_physicant",
          "id_client",
          "id_status",
          "id_procedure_type",
          "is_office",
          "is_owner"
        ],
        "additionalProperties": false,
        "x-typescript-type": "ProceduresView"
      },
      "ProceduresPartial": {
        "title": "ProceduresPartial",
        "type": "object",
        "description": "(tsType: Partial<Procedures>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "done_at": {
            "type": "string",
            "format": "date-time"
          },
          "assigned_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "id_creator": {
            "type": "number"
          },
          "id_lastuser": {
            "type": "number"
          },
          "id_patient": {
            "type": "number"
          },
          "id_physicant": {
            "type": "number"
          },
          "id_client": {
            "type": "number"
          },
          "comment": {
            "type": "string"
          },
          "address": {
            "type": "string",
            "nullable": true
          },
          "diagnosis_comment": {
            "type": "string"
          },
          "id_status": {
            "type": "number"
          },
          "id_procedure_type": {
            "type": "number"
          },
          "is_office": {
            "type": "boolean"
          },
          "assign_comment": {
            "type": "string"
          },
          "anamnes": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "anamnesText": {
            "type": "string"
          },
          "id_operation": {
            "type": "number",
            "nullable": true
          },
          "id_organization": {
            "type": "number"
          },
          "cancel_reason": {
            "type": "string",
            "nullable": true
          },
          "duration": {
            "type": "number",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<Procedures>"
      },
      "ProcedureTypes": {
        "title": "ProcedureTypes",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "NewProcedureTypes": {
        "title": "NewProcedureTypes",
        "type": "object",
        "description": "(tsType: Omit<ProcedureTypes, 'id'>, schemaOptions: { title: 'NewProcedureTypes', exclude: [ 'id' ] })",
        "properties": {
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "x-typescript-type": "Omit<ProcedureTypes, 'id'>"
      },
      "ProcedureTypesWithRelations": {
        "title": "ProcedureTypesWithRelations",
        "type": "object",
        "description": "(tsType: ProcedureTypesWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "x-typescript-type": "ProcedureTypesWithRelations"
      },
      "ProcedureTypesPartial": {
        "title": "ProcedureTypesPartial",
        "type": "object",
        "description": "(tsType: Partial<ProcedureTypes>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<ProcedureTypes>"
      },
      "ProcedureStatuses": {
        "title": "ProcedureStatuses",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "NewProcedureStatuses": {
        "title": "NewProcedureStatuses",
        "type": "object",
        "description": "(tsType: Omit<ProcedureStatuses, 'id'>, schemaOptions: { title: 'NewProcedureStatuses', exclude: [ 'id' ] })",
        "properties": {
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "x-typescript-type": "Omit<ProcedureStatuses, 'id'>"
      },
      "ProcedureStatusesWithRelations": {
        "title": "ProcedureStatusesWithRelations",
        "type": "object",
        "description": "(tsType: ProcedureStatusesWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "x-typescript-type": "ProcedureStatusesWithRelations"
      },
      "ProcedureStatusesPartial": {
        "title": "ProcedureStatusesPartial",
        "type": "object",
        "description": "(tsType: Partial<ProcedureStatuses>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<ProcedureStatuses>"
      },
      "ProcedureFile": {
        "title": "ProcedureFile",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_procedure": {
            "type": "number"
          },
          "date_uloaded": {
            "type": "string",
            "format": "date-time"
          },
          "filename": {
            "type": "string"
          },
          "uuid_name": {
            "type": "string"
          }
        },
        "required": [
          "id_procedure",
          "filename",
          "uuid_name"
        ],
        "additionalProperties": false
      },
      "ProcedureFileWithRelations": {
        "title": "ProcedureFileWithRelations",
        "type": "object",
        "description": "(tsType: ProcedureFileWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_procedure": {
            "type": "number"
          },
          "date_uloaded": {
            "type": "string",
            "format": "date-time"
          },
          "filename": {
            "type": "string"
          },
          "uuid_name": {
            "type": "string"
          }
        },
        "required": [
          "id_procedure",
          "filename",
          "uuid_name"
        ],
        "additionalProperties": false,
        "x-typescript-type": "ProcedureFileWithRelations"
      },
      "NewPatients": {
        "title": "NewPatients",
        "type": "object",
        "description": "(tsType: Patients, schemaOptions: { title: 'NewPatients' })",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "id_type_sex": {
            "type": "boolean"
          },
          "dateofbirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "id_kinds": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "chip_identy": {
            "type": "string",
            "nullable": true
          },
          "id_breed": {
            "type": "number",
            "nullable": true
          },
          "breed_name": {
            "type": "string"
          },
          "allergies_notes": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "stamp_identy": {
            "type": "string",
            "nullable": true
          },
          "castration": {
            "type": "boolean",
            "nullable": true
          },
          "islive": {
            "type": "boolean",
            "nullable": true
          }
        },
        "required": [
          "name",
          "id_type_sex"
        ],
        "additionalProperties": false,
        "x-typescript-type": "Patients"
      },
      "PatientsView": {
        "title": "PatientsView",
        "type": "object",
        "description": "(tsType: PatientsView, schemaOptions: { includeRelations: false })",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "id_type_sex": {
            "type": "boolean"
          },
          "dateofbirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "id_kinds": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "chip_identy": {
            "type": "string"
          },
          "id_breed": {
            "type": "number"
          },
          "breed_name": {
            "type": "string",
            "nullable": true
          },
          "allergies_notes": {
            "type": "string"
          },
          "color": {
            "type": "string"
          },
          "stamp_identy": {
            "type": "string"
          },
          "castration": {
            "type": "boolean",
            "nullable": true
          },
          "islive": {
            "type": "boolean",
            "nullable": true
          },
          "clients": {
            "type": "object"
          }
        },
        "required": [
          "name",
          "id_type_sex",
          "id_breed"
        ],
        "additionalProperties": false,
        "x-typescript-type": "PatientsView"
      },
      "PatientAnamnes": {
        "title": "PatientAnamnes",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_procedure": {
            "type": "number"
          },
          "id_anamnes_option": {
            "type": "number"
          },
          "answer": {
            "type": "boolean"
          }
        },
        "required": [
          "id_procedure",
          "id_anamnes_option",
          "answer"
        ],
        "additionalProperties": false
      },
      "NewPatientAnamnes": {
        "title": "NewPatientAnamnes",
        "type": "object",
        "description": "(tsType: Omit<PatientAnamnes, 'id'>, schemaOptions: { title: 'NewPatientAnamnes', exclude: [ 'id' ] })",
        "properties": {
          "id_procedure": {
            "type": "number"
          },
          "id_anamnes_option": {
            "type": "number"
          },
          "answer": {
            "type": "boolean"
          }
        },
        "required": [
          "id_procedure",
          "id_anamnes_option",
          "answer"
        ],
        "additionalProperties": false,
        "x-typescript-type": "Omit<PatientAnamnes, 'id'>"
      },
      "PatientAnamnesWithRelations": {
        "title": "PatientAnamnesWithRelations",
        "type": "object",
        "description": "(tsType: PatientAnamnesWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_procedure": {
            "type": "number"
          },
          "id_anamnes_option": {
            "type": "number"
          },
          "answer": {
            "type": "boolean"
          }
        },
        "required": [
          "id_procedure",
          "id_anamnes_option",
          "answer"
        ],
        "additionalProperties": false,
        "x-typescript-type": "PatientAnamnesWithRelations"
      },
      "PatientAnamnesPartial": {
        "title": "PatientAnamnesPartial",
        "type": "object",
        "description": "(tsType: Partial<PatientAnamnes>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_procedure": {
            "type": "number"
          },
          "id_anamnes_option": {
            "type": "number"
          },
          "answer": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<PatientAnamnes>"
      },
      "PatientAnalyzeFile": {
        "title": "PatientAnalyzeFile",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_patient_analyze": {
            "type": "number"
          },
          "date_uloaded": {
            "type": "string",
            "format": "date-time"
          },
          "filename": {
            "type": "string"
          },
          "uuid_name": {
            "type": "string"
          }
        },
        "required": [
          "id_patient_analyze",
          "filename",
          "uuid_name"
        ],
        "additionalProperties": false
      },
      "PatientAnalyzeFileWithRelations": {
        "title": "PatientAnalyzeFileWithRelations",
        "type": "object",
        "description": "(tsType: PatientAnalyzeFileWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_patient_analyze": {
            "type": "number"
          },
          "date_uloaded": {
            "type": "string",
            "format": "date-time"
          },
          "filename": {
            "type": "string"
          },
          "uuid_name": {
            "type": "string"
          }
        },
        "required": [
          "id_patient_analyze",
          "filename",
          "uuid_name"
        ],
        "additionalProperties": false,
        "x-typescript-type": "PatientAnalyzeFileWithRelations"
      },
      "PatientAnalyzeFilePartial": {
        "title": "PatientAnalyzeFilePartial",
        "type": "object",
        "description": "(tsType: Partial<PatientAnalyzeFile>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_patient_analyze": {
            "type": "number"
          },
          "date_uloaded": {
            "type": "string",
            "format": "date-time"
          },
          "filename": {
            "type": "string"
          },
          "uuid_name": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<PatientAnalyzeFile>"
      },
      "PatientAnalyze": {
        "title": "PatientAnalyze",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_analyzes_type": {
            "type": "number"
          },
          "id_analyzes_status": {
            "type": "number"
          },
          "id_patient": {
            "type": "number"
          },
          "id_procedure": {
            "type": "number"
          },
          "id_laboratory_assistant": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "due_at": {
            "type": "string",
            "format": "date-time"
          },
          "notes": {
            "type": "string"
          },
          "probe_code": {
            "type": "string"
          },
          "result_notes": {
            "type": "string",
            "nullable": true
          },
          "result_data": {
            "type": "string"
          }
        },
        "required": [
          "id_analyzes_type",
          "id_analyzes_status",
          "id_patient",
          "id_procedure"
        ],
        "additionalProperties": false
      },
      "NewPatientAnalyze": {
        "title": "NewPatientAnalyze",
        "type": "object",
        "description": "(tsType: Omit<PatientAnalyze, 'id'>, schemaOptions: { title: 'NewPatientAnalyze', exclude: [ 'id' ] })",
        "properties": {
          "id_analyzes_type": {
            "type": "number"
          },
          "id_analyzes_status": {
            "type": "number"
          },
          "id_patient": {
            "type": "number"
          },
          "id_procedure": {
            "type": "number"
          },
          "id_laboratory_assistant": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "due_at": {
            "type": "string",
            "format": "date-time"
          },
          "notes": {
            "type": "string"
          },
          "probe_code": {
            "type": "string"
          },
          "result_notes": {
            "type": "string",
            "nullable": true
          },
          "result_data": {
            "type": "string"
          }
        },
        "required": [
          "id_analyzes_type",
          "id_analyzes_status",
          "id_patient",
          "id_procedure"
        ],
        "additionalProperties": false,
        "x-typescript-type": "Omit<PatientAnalyze, 'id'>"
      },
      "PatientAnalyzesView": {
        "title": "PatientAnalyzesView",
        "type": "object",
        "description": "(tsType: PatientAnalyzesView, schemaOptions: { includeRelations: false })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_analyzes_type": {
            "type": "number"
          },
          "id_analyzes_status": {
            "type": "number"
          },
          "id_patient": {
            "type": "number"
          },
          "id_procedure": {
            "type": "number"
          },
          "id_laboratory_assistant": {
            "type": "number"
          },
          "patient": {
            "type": "object"
          },
          "physicant": {
            "type": "object"
          },
          "client": {
            "type": "object"
          },
          "laborant": {
            "type": "object"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "due_at": {
            "type": "string",
            "format": "date-time"
          },
          "notes": {
            "type": "string"
          },
          "probe_code": {
            "type": "string"
          },
          "result_notes": {
            "type": "string"
          },
          "result_data": {
            "type": "string"
          },
          "id_organization": {
            "type": "number"
          }
        },
        "required": [
          "id_analyzes_type",
          "id_analyzes_status",
          "id_patient",
          "id_procedure"
        ],
        "additionalProperties": false,
        "x-typescript-type": "PatientAnalyzesView"
      },
      "PatientAnalyzesViewWithRelations": {
        "title": "PatientAnalyzesViewWithRelations",
        "type": "object",
        "description": "(tsType: PatientAnalyzesViewWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_analyzes_type": {
            "type": "number"
          },
          "id_analyzes_status": {
            "type": "number"
          },
          "id_patient": {
            "type": "number"
          },
          "id_procedure": {
            "type": "number"
          },
          "id_laboratory_assistant": {
            "type": "number"
          },
          "patient": {
            "type": "object"
          },
          "physicant": {
            "type": "object"
          },
          "client": {
            "type": "object"
          },
          "laborant": {
            "type": "object"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "due_at": {
            "type": "string",
            "format": "date-time"
          },
          "notes": {
            "type": "string"
          },
          "probe_code": {
            "type": "string"
          },
          "result_notes": {
            "type": "string"
          },
          "result_data": {
            "type": "string"
          },
          "id_organization": {
            "type": "number"
          }
        },
        "required": [
          "id_analyzes_type",
          "id_analyzes_status",
          "id_patient",
          "id_procedure"
        ],
        "additionalProperties": false,
        "x-typescript-type": "PatientAnalyzesViewWithRelations"
      },
      "PatientAnalyzePartial": {
        "title": "PatientAnalyzePartial",
        "type": "object",
        "description": "(tsType: Partial<PatientAnalyze>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_analyzes_type": {
            "type": "number"
          },
          "id_analyzes_status": {
            "type": "number"
          },
          "id_patient": {
            "type": "number"
          },
          "id_procedure": {
            "type": "number"
          },
          "id_laboratory_assistant": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "due_at": {
            "type": "string",
            "format": "date-time"
          },
          "notes": {
            "type": "string"
          },
          "probe_code": {
            "type": "string"
          },
          "result_notes": {
            "type": "string",
            "nullable": true
          },
          "result_data": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<PatientAnalyze>"
      },
      "Organizations": {
        "title": "Organizations",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "idLegal": {
            "type": "number"
          },
          "idAdministrator": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "adress": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "kpp": {
            "type": "string"
          },
          "inn": {
            "type": "string"
          },
          "locality": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "NewOrganizations": {
        "title": "NewOrganizations",
        "type": "object",
        "description": "(tsType: Omit<Organizations, 'id'>, schemaOptions: { title: 'NewOrganizations', exclude: [ 'id' ] })",
        "properties": {
          "idLegal": {
            "type": "number"
          },
          "idAdministrator": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "adress": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "kpp": {
            "type": "string"
          },
          "inn": {
            "type": "string"
          },
          "locality": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Omit<Organizations, 'id'>"
      },
      "OrganizationsPartial": {
        "title": "OrganizationsPartial",
        "type": "object",
        "description": "(tsType: Partial<Organizations>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "idLegal": {
            "type": "number"
          },
          "idAdministrator": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "adress": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "kpp": {
            "type": "string"
          },
          "inn": {
            "type": "string"
          },
          "locality": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<Organizations>"
      },
      "OrganizationBankRequisites": {
        "title": "OrganizationBankRequisites",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "idOrganization": {
            "type": "number"
          },
          "idBankRequisites": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "idOrganization",
          "idBankRequisites"
        ],
        "additionalProperties": false
      },
      "NewOrganizationBankRequisites": {
        "title": "NewOrganizationBankRequisites",
        "type": "object",
        "description": "(tsType: Omit<OrganizationBankRequisites, 'y'>, schemaOptions: { title: 'NewOrganizationBankRequisites', exclude: [ 'y' ] })",
        "properties": {
          "id": {
            "type": "number"
          },
          "idOrganization": {
            "type": "number"
          },
          "idBankRequisites": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "idOrganization",
          "idBankRequisites"
        ],
        "additionalProperties": false,
        "x-typescript-type": "Omit<OrganizationBankRequisites, 'y'>"
      },
      "OrganizationBankRequisitesWithRelations": {
        "title": "OrganizationBankRequisitesWithRelations",
        "type": "object",
        "description": "(tsType: OrganizationBankRequisitesWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "idOrganization": {
            "type": "number"
          },
          "idBankRequisites": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "idOrganization",
          "idBankRequisites"
        ],
        "additionalProperties": false,
        "x-typescript-type": "OrganizationBankRequisitesWithRelations"
      },
      "OrganizationBankRequisitesPartial": {
        "title": "OrganizationBankRequisitesPartial",
        "type": "object",
        "description": "(tsType: Partial<OrganizationBankRequisites>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "idOrganization": {
            "type": "number"
          },
          "idBankRequisites": {
            "type": "number"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<OrganizationBankRequisites>"
      },
      "NomenclatureVersionsWithRelations": {
        "title": "NomenclatureVersionsWithRelations",
        "type": "object",
        "description": "(tsType: NomenclatureVersionsWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_nomenclature_category": {
            "type": "number"
          },
          "id_nomenclature": {
            "type": "number"
          },
          "id_external": {
            "type": "number"
          },
          "id_legal": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "barcode": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "articul": {
            "type": "string"
          },
          "price": {
            "type": "number"
          },
          "free_price": {
            "type": "boolean"
          },
          "id_unit_type": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time"
          },
          "valid_from": {
            "type": "string",
            "format": "date-time"
          },
          "valid_to": {
            "type": "string",
            "format": "date-time"
          },
          "created_by": {
            "type": "number"
          },
          "version": {
            "type": "number"
          }
        },
        "required": [
          "name",
          "price",
          "free_price"
        ],
        "additionalProperties": false,
        "x-typescript-type": "NomenclatureVersionsWithRelations"
      },
      "OperationDetailWithRelations": {
        "title": "OperationDetailWithRelations",
        "type": "object",
        "description": "(tsType: OperationDetailWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "count": {
            "type": "number"
          },
          "id_operation": {
            "type": "number"
          },
          "id_nomenclature": {
            "type": "number"
          },
          "operation": {
            "$ref": "#/components/schemas/OperationWithRelations"
          },
          "nomenclature": {
            "$ref": "#/components/schemas/NomenclatureVersionsWithRelations"
          }
        },
        "required": [
          "count"
        ],
        "additionalProperties": true,
        "x-typescript-type": "OperationDetailWithRelations"
      },
      "OperationWithRelations": {
        "title": "OperationWithRelations",
        "type": "object",
        "description": "(tsType: OperationWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_procedures": {
            "type": "number"
          },
          "created_date": {
            "type": "string",
            "format": "date-time"
          },
          "id_operation_type": {
            "type": "number"
          },
          "paid": {
            "type": "boolean"
          },
          "payment_date": {
            "type": "string",
            "format": "date-time"
          },
          "id_organization": {
            "type": "number"
          },
          "operationDetail": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OperationDetailWithRelations"
            }
          }
        },
        "required": [
          "id_operation_type"
        ],
        "additionalProperties": true,
        "x-typescript-type": "OperationWithRelations"
      },
      "Operation": {
        "title": "Operation",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_procedures": {
            "type": "number"
          },
          "created_date": {
            "type": "string",
            "format": "date-time"
          },
          "id_operation_type": {
            "type": "number"
          },
          "paid": {
            "type": "boolean"
          },
          "payment_date": {
            "type": "string",
            "format": "date-time"
          },
          "id_organization": {
            "type": "number"
          }
        },
        "required": [
          "id_operation_type"
        ],
        "additionalProperties": true
      },
      "NewOperation": {
        "title": "NewOperation",
        "type": "object",
        "description": "(tsType: Omit<Operation, 'id'>, schemaOptions: { title: 'NewOperation', exclude: [ 'id' ] })",
        "properties": {
          "id_procedures": {
            "type": "number"
          },
          "created_date": {
            "type": "string",
            "format": "date-time"
          },
          "id_operation_type": {
            "type": "number"
          },
          "paid": {
            "type": "boolean"
          },
          "payment_date": {
            "type": "string",
            "format": "date-time"
          },
          "id_organization": {
            "type": "number"
          }
        },
        "required": [
          "id_operation_type"
        ],
        "additionalProperties": true,
        "x-typescript-type": "Omit<Operation, 'id'>"
      },
      "OperationPartial": {
        "title": "OperationPartial",
        "type": "object",
        "description": "(tsType: Partial<Operation>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_procedures": {
            "type": "number"
          },
          "created_date": {
            "type": "string",
            "format": "date-time"
          },
          "id_operation_type": {
            "type": "number"
          },
          "paid": {
            "type": "boolean"
          },
          "payment_date": {
            "type": "string",
            "format": "date-time"
          },
          "id_organization": {
            "type": "number"
          }
        },
        "additionalProperties": true,
        "x-typescript-type": "Partial<Operation>"
      },
      "OperationDetail": {
        "title": "OperationDetail",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "count": {
            "type": "number"
          },
          "id_operation": {
            "type": "number"
          },
          "id_nomenclature": {
            "type": "number"
          }
        },
        "required": [
          "count"
        ],
        "additionalProperties": true
      },
      "NewOperationDetail": {
        "title": "NewOperationDetail",
        "type": "object",
        "description": "(tsType: Omit<OperationDetail, 'id'>, schemaOptions: { title: 'NewOperationDetail', exclude: [ 'id' ] })",
        "properties": {
          "count": {
            "type": "number"
          },
          "id_operation": {
            "type": "number"
          },
          "id_nomenclature": {
            "type": "number"
          }
        },
        "required": [
          "count"
        ],
        "additionalProperties": true,
        "x-typescript-type": "Omit<OperationDetail, 'id'>"
      },
      "OperationDetailPartial": {
        "title": "OperationDetailPartial",
        "type": "object",
        "description": "(tsType: Partial<OperationDetail>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "count": {
            "type": "number"
          },
          "id_operation": {
            "type": "number"
          },
          "id_nomenclature": {
            "type": "number"
          }
        },
        "additionalProperties": true,
        "x-typescript-type": "Partial<OperationDetail>"
      },
      "Nomenclatures": {
        "title": "Nomenclatures",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_nomenclature_category": {
            "type": "number"
          },
          "id_version": {
            "type": "number"
          },
          "id_external": {
            "type": "number"
          },
          "id_legal": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "barcode": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "articul": {
            "type": "string"
          },
          "price": {
            "type": "number"
          },
          "free_price": {
            "type": "boolean"
          },
          "id_unit_type": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time"
          },
          "is_active": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "price",
          "free_price",
          "is_active"
        ],
        "additionalProperties": false
      },
      "NewNomenclatures": {
        "title": "NewNomenclatures",
        "type": "object",
        "description": "(tsType: Omit<Nomenclatures, 'id'>, schemaOptions: { title: 'NewNomenclatures', exclude: [ 'id' ] })",
        "properties": {
          "id_nomenclature_category": {
            "type": "number"
          },
          "id_version": {
            "type": "number"
          },
          "id_external": {
            "type": "number"
          },
          "id_legal": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "barcode": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "articul": {
            "type": "string"
          },
          "price": {
            "type": "number"
          },
          "free_price": {
            "type": "boolean"
          },
          "id_unit_type": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time"
          },
          "is_active": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "price",
          "free_price",
          "is_active"
        ],
        "additionalProperties": false,
        "x-typescript-type": "Omit<Nomenclatures, 'id'>"
      },
      "NomenclaturesWithRelations": {
        "title": "NomenclaturesWithRelations",
        "type": "object",
        "description": "(tsType: NomenclaturesWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_nomenclature_category": {
            "type": "number"
          },
          "id_version": {
            "type": "number"
          },
          "id_external": {
            "type": "number"
          },
          "id_legal": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "barcode": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "articul": {
            "type": "string"
          },
          "price": {
            "type": "number"
          },
          "free_price": {
            "type": "boolean"
          },
          "id_unit_type": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time"
          },
          "is_active": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "price",
          "free_price",
          "is_active"
        ],
        "additionalProperties": false,
        "x-typescript-type": "NomenclaturesWithRelations"
      },
      "NomenclaturesPartial": {
        "title": "NomenclaturesPartial",
        "type": "object",
        "description": "(tsType: Partial<Nomenclatures>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_nomenclature_category": {
            "type": "number"
          },
          "id_version": {
            "type": "number"
          },
          "id_external": {
            "type": "number"
          },
          "id_legal": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "barcode": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "articul": {
            "type": "string"
          },
          "price": {
            "type": "number"
          },
          "free_price": {
            "type": "boolean"
          },
          "id_unit_type": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time"
          },
          "is_active": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<Nomenclatures>"
      },
      "NomenclaturesCategory": {
        "title": "NomenclaturesCategory",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_external": {
            "type": "number"
          },
          "id_parent": {
            "type": "number"
          },
          "id_legal": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "order_by": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time"
          },
          "is_active": {
            "type": "boolean"
          }
        },
        "required": [
          "id_legal",
          "name",
          "is_active"
        ],
        "additionalProperties": false
      },
      "NewNomenclaturesCategory": {
        "title": "NewNomenclaturesCategory",
        "type": "object",
        "description": "(tsType: Omit<NomenclaturesCategory, 'id'>, schemaOptions: { title: 'NewNomenclaturesCategory', exclude: [ 'id' ] })",
        "properties": {
          "id_external": {
            "type": "number"
          },
          "id_parent": {
            "type": "number"
          },
          "id_legal": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "order_by": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time"
          },
          "is_active": {
            "type": "boolean"
          }
        },
        "required": [
          "id_legal",
          "name",
          "is_active"
        ],
        "additionalProperties": false,
        "x-typescript-type": "Omit<NomenclaturesCategory, 'id'>"
      },
      "NomenclaturesCategoryWithRelations": {
        "title": "NomenclaturesCategoryWithRelations",
        "type": "object",
        "description": "(tsType: NomenclaturesCategoryWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_external": {
            "type": "number"
          },
          "id_parent": {
            "type": "number"
          },
          "id_legal": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "order_by": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time"
          },
          "is_active": {
            "type": "boolean"
          }
        },
        "required": [
          "id_legal",
          "name",
          "is_active"
        ],
        "additionalProperties": false,
        "x-typescript-type": "NomenclaturesCategoryWithRelations"
      },
      "NomenclaturesCategoryPartial": {
        "title": "NomenclaturesCategoryPartial",
        "type": "object",
        "description": "(tsType: Partial<NomenclaturesCategory>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_external": {
            "type": "number"
          },
          "id_parent": {
            "type": "number"
          },
          "id_legal": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "order_by": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time"
          },
          "is_active": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<NomenclaturesCategory>"
      },
      "Legals": {
        "title": "Legals",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "post_address": {
            "type": "string"
          },
          "ogrn": {
            "type": "string"
          },
          "inn": {
            "type": "string"
          },
          "kpp": {
            "type": "string"
          },
          "type": {
            "type": "number"
          },
          "tax_type": {
            "type": "number"
          },
          "id_owner": {
            "type": "number"
          },
          "email": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "second_name": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "address",
          "post_address",
          "ogrn",
          "inn",
          "kpp",
          "type",
          "tax_type",
          "id_owner",
          "email",
          "phone",
          "first_name",
          "last_name",
          "second_name"
        ],
        "additionalProperties": false
      },
      "NewLegals": {
        "title": "NewLegals",
        "type": "object",
        "description": "(tsType: Omit<Legals, 'id'>, schemaOptions: { title: 'NewLegals', exclude: [ 'id' ] })",
        "properties": {
          "name": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "post_address": {
            "type": "string"
          },
          "ogrn": {
            "type": "string"
          },
          "inn": {
            "type": "string"
          },
          "kpp": {
            "type": "string"
          },
          "type": {
            "type": "number"
          },
          "tax_type": {
            "type": "number"
          },
          "id_owner": {
            "type": "number"
          },
          "email": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "second_name": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "address",
          "post_address",
          "ogrn",
          "inn",
          "kpp",
          "type",
          "tax_type",
          "id_owner",
          "email",
          "phone",
          "first_name",
          "last_name",
          "second_name"
        ],
        "additionalProperties": false,
        "x-typescript-type": "Omit<Legals, 'id'>"
      },
      "LegalsView": {
        "title": "LegalsView",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "post_address": {
            "type": "string"
          },
          "ogrn": {
            "type": "string"
          },
          "inn": {
            "type": "string"
          },
          "kpp": {
            "type": "string"
          },
          "type": {
            "type": "number"
          },
          "tax_type": {
            "type": "number"
          },
          "id_owner": {
            "type": "number"
          },
          "email": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "second_name": {
            "type": "string"
          },
          "owner": {
            "type": "string"
          },
          "organizations": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "address",
          "post_address",
          "ogrn",
          "inn",
          "kpp",
          "type",
          "tax_type",
          "id_owner",
          "email",
          "phone",
          "first_name",
          "last_name",
          "second_name"
        ],
        "additionalProperties": false
      },
      "LegalsPartial": {
        "title": "LegalsPartial",
        "type": "object",
        "description": "(tsType: Partial<Legals>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "post_address": {
            "type": "string"
          },
          "ogrn": {
            "type": "string"
          },
          "inn": {
            "type": "string"
          },
          "kpp": {
            "type": "string"
          },
          "type": {
            "type": "number"
          },
          "tax_type": {
            "type": "number"
          },
          "id_owner": {
            "type": "number"
          },
          "email": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "second_name": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<Legals>"
      },
      "GoodsWithRelations": {
        "title": "GoodsWithRelations",
        "type": "object",
        "description": "(tsType: GoodsWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "price": {
            "type": "string"
          },
          "id_unit_types": {
            "type": "number"
          }
        },
        "required": [
          "name",
          "price",
          "id_unit_types"
        ],
        "additionalProperties": true,
        "x-typescript-type": "GoodsWithRelations"
      },
      "Goods": {
        "title": "Goods",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "price": {
            "type": "string"
          },
          "id_unit_types": {
            "type": "number"
          }
        },
        "required": [
          "name",
          "price",
          "id_unit_types"
        ],
        "additionalProperties": true
      },
      "NewGoods": {
        "title": "NewGoods",
        "type": "object",
        "description": "(tsType: Omit<Goods, 'id'>, schemaOptions: { title: 'NewGoods', exclude: [ 'id' ] })",
        "properties": {
          "name": {
            "type": "string"
          },
          "price": {
            "type": "string"
          },
          "id_unit_types": {
            "type": "number"
          }
        },
        "required": [
          "name",
          "price",
          "id_unit_types"
        ],
        "additionalProperties": true,
        "x-typescript-type": "Omit<Goods, 'id'>"
      },
      "GoodsPartial": {
        "title": "GoodsPartial",
        "type": "object",
        "description": "(tsType: Partial<Goods>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "price": {
            "type": "string"
          },
          "id_unit_types": {
            "type": "number"
          }
        },
        "additionalProperties": true,
        "x-typescript-type": "Partial<Goods>"
      },
      "EmployeesView": {
        "title": "EmployeesView",
        "type": "object",
        "description": "(tsType: EmployeesView, schemaOptions: { includeRelations: false })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_legal": {
            "type": "number"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "second_name": {
            "type": "string"
          },
          "phone": {
            "type": "number"
          },
          "id_messenger_type": {
            "type": "number"
          },
          "messenger": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "dateofbirth": {
            "type": "string",
            "format": "date-time"
          },
          "subscription": {
            "type": "boolean"
          },
          "id_document_type": {
            "type": "number"
          },
          "document_number": {
            "type": "number"
          },
          "region": {
            "type": "string"
          },
          "locality": {
            "type": "string"
          },
          "street": {
            "type": "string"
          },
          "building_number": {
            "type": "string"
          },
          "apartment_number": {
            "type": "string"
          },
          "id_user": {
            "type": "number"
          },
          "id_role": {
            "type": "number"
          },
          "role": {
            "type": "object"
          },
          "organizations": {
            "type": "object"
          },
          "active": {
            "type": "boolean"
          }
        },
        "required": [
          "first_name",
          "last_name",
          "second_name",
          "address",
          "dateofbirth"
        ],
        "additionalProperties": false,
        "x-typescript-type": "EmployeesView"
      },
      "EmployeesPartial": {
        "title": "EmployeesPartial",
        "type": "object",
        "description": "(tsType: Partial<Employees>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_user": {
            "type": "number"
          },
          "id_employee_type": {
            "type": "number",
            "nullable": true
          },
          "id_organization": {
            "type": "number"
          },
          "id_legal": {
            "type": "number",
            "nullable": true
          },
          "is_active": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<Employees>"
      },
      "Employees": {
        "title": "Employees",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_user": {
            "type": "number"
          },
          "id_employee_type": {
            "type": "number",
            "nullable": true
          },
          "id_organization": {
            "type": "number"
          },
          "id_legal": {
            "type": "number",
            "nullable": true
          },
          "is_active": {
            "type": "boolean",
            "nullable": true
          }
        },
        "required": [
          "id_user",
          "id_organization"
        ],
        "additionalProperties": false
      },
      "DocumentTemplate": {
        "title": "DocumentTemplate",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_legal": {
            "type": "number"
          },
          "type": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "name": {
            "type": "string"
          },
          "template": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "show_in": {
            "type": "string"
          },
          "data_sources": {
            "type": "string"
          }
        },
        "required": [
          "id_legal",
          "type",
          "name",
          "template",
          "slug"
        ],
        "additionalProperties": false
      },
      "NewDocumentTemplate": {
        "title": "NewDocumentTemplate",
        "type": "object",
        "description": "(tsType: Omit<DocumentTemplate, 'id' | 'id_legal' | 'created_at'>, schemaOptions: { title: 'NewDocumentTemplate', exclude: [ 'id', 'id_legal', 'created_at' ] })",
        "properties": {
          "type": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "template": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "show_in": {
            "type": "string"
          },
          "data_sources": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "name",
          "template",
          "slug"
        ],
        "additionalProperties": false,
        "x-typescript-type": "Omit<DocumentTemplate, 'id' | 'id_legal' | 'created_at'>"
      },
      "DocumentTemplateWithRelations": {
        "title": "DocumentTemplateWithRelations",
        "type": "object",
        "description": "(tsType: DocumentTemplateWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_legal": {
            "type": "number"
          },
          "type": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "name": {
            "type": "string"
          },
          "template": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "show_in": {
            "type": "string"
          },
          "data_sources": {
            "type": "string"
          }
        },
        "required": [
          "id_legal",
          "type",
          "name",
          "template",
          "slug"
        ],
        "additionalProperties": false,
        "x-typescript-type": "DocumentTemplateWithRelations"
      },
      "DocumentTemplatePartial": {
        "title": "DocumentTemplatePartial",
        "type": "object",
        "description": "(tsType: Partial<DocumentTemplate>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_legal": {
            "type": "number"
          },
          "type": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "name": {
            "type": "string"
          },
          "template": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "show_in": {
            "type": "string"
          },
          "data_sources": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<DocumentTemplate>"
      },
      "DictionariesWithRelations": {
        "title": "DictionariesWithRelations",
        "type": "object",
        "description": "(tsType: DictionariesWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "messenger_types": {
            "type": "object"
          },
          "kinds": {
            "type": "object"
          },
          "employee_types": {
            "type": "object"
          },
          "document_types": {
            "type": "object"
          },
          "breed": {
            "type": "object"
          },
          "analyze_types": {
            "type": "object"
          },
          "analyze_status": {
            "type": "object"
          },
          "patient_observer_types": {
            "type": "object"
          },
          "procedure_statuses": {
            "type": "object"
          },
          "procedure_types": {
            "type": "object"
          },
          "roles": {
            "type": "object"
          },
          "schedule_task_types": {
            "type": "object"
          },
          "unit_types": {
            "type": "object"
          },
          "categories": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "DictionariesWithRelations"
      },
      "CashboxWithRelations": {
        "title": "CashboxWithRelations",
        "type": "object",
        "description": "(tsType: CashboxWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "id_organization": {
            "type": "number"
          },
          "fio_client": {
            "type": "string"
          },
          "name_patient": {
            "type": "string"
          },
          "list_nomenclatures": {
            "type": "string"
          },
          "sum_price": {
            "type": "number"
          },
          "status": {
            "type": "string"
          },
          "payment_date": {
            "type": "string",
            "format": "date-time"
          },
          "id_status": {
            "type": "number"
          },
          "procedure_id": {
            "type": "number"
          },
          "assigned_at": {
            "type": "string",
            "format": "date-time"
          },
          "paid": {
            "type": "boolean"
          },
          "created_date": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "CashboxWithRelations"
      },
      "BankRequisites": {
        "title": "BankRequisites",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "bankName": {
            "type": "string"
          },
          "bankAddress": {
            "type": "string"
          },
          "inn": {
            "type": "string"
          },
          "correspondentAccount": {
            "type": "string"
          },
          "checkingAccount": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "NewBankRequisites": {
        "title": "NewBankRequisites",
        "type": "object",
        "description": "(tsType: Omit<BankRequisites, 'y'>, schemaOptions: { title: 'NewBankRequisites', exclude: [ 'y' ] })",
        "properties": {
          "id": {
            "type": "number"
          },
          "bankName": {
            "type": "string"
          },
          "bankAddress": {
            "type": "string"
          },
          "inn": {
            "type": "string"
          },
          "correspondentAccount": {
            "type": "string"
          },
          "checkingAccount": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false,
        "x-typescript-type": "Omit<BankRequisites, 'y'>"
      },
      "BankRequisitesWithRelations": {
        "title": "BankRequisitesWithRelations",
        "type": "object",
        "description": "(tsType: BankRequisitesWithRelations, schemaOptions: { includeRelations: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "bankName": {
            "type": "string"
          },
          "bankAddress": {
            "type": "string"
          },
          "inn": {
            "type": "string"
          },
          "correspondentAccount": {
            "type": "string"
          },
          "checkingAccount": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false,
        "x-typescript-type": "BankRequisitesWithRelations"
      },
      "BankRequisitesPartial": {
        "title": "BankRequisitesPartial",
        "type": "object",
        "description": "(tsType: Partial<BankRequisites>, schemaOptions: { partial: true })",
        "properties": {
          "id": {
            "type": "number"
          },
          "bankName": {
            "type": "string"
          },
          "bankAddress": {
            "type": "string"
          },
          "inn": {
            "type": "string"
          },
          "correspondentAccount": {
            "type": "string"
          },
          "checkingAccount": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "Partial<BankRequisites>"
      },
      "AnamnesQuestionsView": {
        "title": "AnamnesQuestionsView",
        "type": "object",
        "description": "(tsType: AnamnesQuestionsView, schemaOptions: { includeRelations: false })",
        "properties": {
          "id": {
            "type": "number"
          },
          "anamnes_questions": {
            "type": "object"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "AnamnesQuestionsView"
      },
      "loopback.Count": {
        "type": "object",
        "title": "loopback.Count",
        "x-typescript-type": "@loopback/repository#Count",
        "properties": {
          "count": {
            "type": "number"
          }
        }
      },
      "BankRequisites.Filter": {
        "type": "object",
        "title": "BankRequisites.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "bankName": {
                    "type": "boolean"
                  },
                  "bankAddress": {
                    "type": "boolean"
                  },
                  "inn": {
                    "type": "boolean"
                  },
                  "correspondentAccount": {
                    "type": "boolean"
                  },
                  "checkingAccount": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "bankName",
                    "bankAddress",
                    "inn",
                    "correspondentAccount",
                    "checkingAccount"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "BankRequisites.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<BankRequisites>"
      },
      "BankRequisites.Filter1": {
        "type": "object",
        "title": "BankRequisites.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "BankRequisites.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "bankName": {
                    "type": "boolean"
                  },
                  "bankAddress": {
                    "type": "boolean"
                  },
                  "inn": {
                    "type": "boolean"
                  },
                  "correspondentAccount": {
                    "type": "boolean"
                  },
                  "checkingAccount": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "bankName",
                    "bankAddress",
                    "inn",
                    "correspondentAccount",
                    "checkingAccount"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "BankRequisites.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<BankRequisites>"
      },
      "view_cashbox.Filter": {
        "type": "object",
        "title": "view_cashbox.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "view_cashbox.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "id_organization": {
                    "type": "boolean"
                  },
                  "fio_client": {
                    "type": "boolean"
                  },
                  "name_patient": {
                    "type": "boolean"
                  },
                  "list_nomenclatures": {
                    "type": "boolean"
                  },
                  "sum_price": {
                    "type": "boolean"
                  },
                  "status": {
                    "type": "boolean"
                  },
                  "payment_date": {
                    "type": "boolean"
                  },
                  "id_status": {
                    "type": "boolean"
                  },
                  "procedure_id": {
                    "type": "boolean"
                  },
                  "assigned_at": {
                    "type": "boolean"
                  },
                  "paid": {
                    "type": "boolean"
                  },
                  "created_date": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "id_organization",
                    "fio_client",
                    "name_patient",
                    "list_nomenclatures",
                    "sum_price",
                    "status",
                    "payment_date",
                    "id_status",
                    "procedure_id",
                    "assigned_at",
                    "paid",
                    "created_date"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "view_cashbox.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Cashbox>"
      },
      "Dictionaries.Filter": {
        "type": "object",
        "title": "Dictionaries.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "Dictionaries.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "messenger_types": {
                    "type": "boolean"
                  },
                  "kinds": {
                    "type": "boolean"
                  },
                  "employee_types": {
                    "type": "boolean"
                  },
                  "document_types": {
                    "type": "boolean"
                  },
                  "breed": {
                    "type": "boolean"
                  },
                  "analyze_types": {
                    "type": "boolean"
                  },
                  "analyze_status": {
                    "type": "boolean"
                  },
                  "patient_observer_types": {
                    "type": "boolean"
                  },
                  "procedure_statuses": {
                    "type": "boolean"
                  },
                  "procedure_types": {
                    "type": "boolean"
                  },
                  "roles": {
                    "type": "boolean"
                  },
                  "schedule_task_types": {
                    "type": "boolean"
                  },
                  "unit_types": {
                    "type": "boolean"
                  },
                  "categories": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "messenger_types",
                    "kinds",
                    "employee_types",
                    "document_types",
                    "breed",
                    "analyze_types",
                    "analyze_status",
                    "patient_observer_types",
                    "procedure_statuses",
                    "procedure_types",
                    "roles",
                    "schedule_task_types",
                    "unit_types",
                    "categories"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "Dictionaries.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Dictionaries>"
      },
      "document_templates.Filter": {
        "type": "object",
        "title": "document_templates.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "id_legal": {
                    "type": "boolean"
                  },
                  "type": {
                    "type": "boolean"
                  },
                  "created_at": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  },
                  "template": {
                    "type": "boolean"
                  },
                  "slug": {
                    "type": "boolean"
                  },
                  "show_in": {
                    "type": "boolean"
                  },
                  "data_sources": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "id_legal",
                    "type",
                    "created_at",
                    "name",
                    "template",
                    "slug",
                    "show_in",
                    "data_sources"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "document_templates.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<DocumentTemplate>"
      },
      "view_employees.Filter": {
        "type": "object",
        "title": "view_employees.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "view_employees.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "id_legal": {
                    "type": "boolean"
                  },
                  "first_name": {
                    "type": "boolean"
                  },
                  "last_name": {
                    "type": "boolean"
                  },
                  "second_name": {
                    "type": "boolean"
                  },
                  "phone": {
                    "type": "boolean"
                  },
                  "id_messenger_type": {
                    "type": "boolean"
                  },
                  "messenger": {
                    "type": "boolean"
                  },
                  "email": {
                    "type": "boolean"
                  },
                  "address": {
                    "type": "boolean"
                  },
                  "dateofbirth": {
                    "type": "boolean"
                  },
                  "subscription": {
                    "type": "boolean"
                  },
                  "id_document_type": {
                    "type": "boolean"
                  },
                  "document_number": {
                    "type": "boolean"
                  },
                  "region": {
                    "type": "boolean"
                  },
                  "locality": {
                    "type": "boolean"
                  },
                  "street": {
                    "type": "boolean"
                  },
                  "building_number": {
                    "type": "boolean"
                  },
                  "apartment_number": {
                    "type": "boolean"
                  },
                  "id_user": {
                    "type": "boolean"
                  },
                  "id_role": {
                    "type": "boolean"
                  },
                  "role": {
                    "type": "boolean"
                  },
                  "organizations": {
                    "type": "boolean"
                  },
                  "active": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "id_legal",
                    "first_name",
                    "last_name",
                    "second_name",
                    "phone",
                    "id_messenger_type",
                    "messenger",
                    "email",
                    "address",
                    "dateofbirth",
                    "subscription",
                    "id_document_type",
                    "document_number",
                    "region",
                    "locality",
                    "street",
                    "building_number",
                    "apartment_number",
                    "id_user",
                    "id_role",
                    "role",
                    "organizations",
                    "active"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "view_employees.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<EmployeesView>"
      },
      "view_goods.Filter": {
        "type": "object",
        "title": "view_goods.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  },
                  "price": {
                    "type": "boolean"
                  },
                  "id_unit_types": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": true
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "view_goods.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Goods>"
      },
      "view_goods.Filter1": {
        "type": "object",
        "title": "view_goods.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "view_goods.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  },
                  "price": {
                    "type": "boolean"
                  },
                  "id_unit_types": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": true
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "view_goods.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Goods>"
      },
      "view_legals.Filter": {
        "type": "object",
        "title": "view_legals.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  },
                  "address": {
                    "type": "boolean"
                  },
                  "post_address": {
                    "type": "boolean"
                  },
                  "ogrn": {
                    "type": "boolean"
                  },
                  "inn": {
                    "type": "boolean"
                  },
                  "kpp": {
                    "type": "boolean"
                  },
                  "type": {
                    "type": "boolean"
                  },
                  "tax_type": {
                    "type": "boolean"
                  },
                  "id_owner": {
                    "type": "boolean"
                  },
                  "email": {
                    "type": "boolean"
                  },
                  "phone": {
                    "type": "boolean"
                  },
                  "first_name": {
                    "type": "boolean"
                  },
                  "last_name": {
                    "type": "boolean"
                  },
                  "second_name": {
                    "type": "boolean"
                  },
                  "owner": {
                    "type": "boolean"
                  },
                  "organizations": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "name",
                    "address",
                    "post_address",
                    "ogrn",
                    "inn",
                    "kpp",
                    "type",
                    "tax_type",
                    "id_owner",
                    "email",
                    "phone",
                    "first_name",
                    "last_name",
                    "second_name",
                    "owner",
                    "organizations"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "view_legals.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<LegalsView>"
      },
      "view_legals.Filter1": {
        "type": "object",
        "title": "view_legals.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "view_legals.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  },
                  "address": {
                    "type": "boolean"
                  },
                  "post_address": {
                    "type": "boolean"
                  },
                  "ogrn": {
                    "type": "boolean"
                  },
                  "inn": {
                    "type": "boolean"
                  },
                  "kpp": {
                    "type": "boolean"
                  },
                  "type": {
                    "type": "boolean"
                  },
                  "tax_type": {
                    "type": "boolean"
                  },
                  "id_owner": {
                    "type": "boolean"
                  },
                  "email": {
                    "type": "boolean"
                  },
                  "phone": {
                    "type": "boolean"
                  },
                  "first_name": {
                    "type": "boolean"
                  },
                  "last_name": {
                    "type": "boolean"
                  },
                  "second_name": {
                    "type": "boolean"
                  },
                  "owner": {
                    "type": "boolean"
                  },
                  "organizations": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "name",
                    "address",
                    "post_address",
                    "ogrn",
                    "inn",
                    "kpp",
                    "type",
                    "tax_type",
                    "id_owner",
                    "email",
                    "phone",
                    "first_name",
                    "last_name",
                    "second_name",
                    "owner",
                    "organizations"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "view_legals.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<LegalsView>"
      },
      "nomenclature.Filter": {
        "type": "object",
        "title": "nomenclature.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "id_nomenclature_category": {
                    "type": "boolean"
                  },
                  "id_version": {
                    "type": "boolean"
                  },
                  "id_external": {
                    "type": "boolean"
                  },
                  "id_legal": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  },
                  "barcode": {
                    "type": "boolean"
                  },
                  "articul": {
                    "type": "boolean"
                  },
                  "price": {
                    "type": "boolean"
                  },
                  "free_price": {
                    "type": "boolean"
                  },
                  "id_unit_type": {
                    "type": "boolean"
                  },
                  "created_at": {
                    "type": "boolean"
                  },
                  "updated_at": {
                    "type": "boolean"
                  },
                  "deleted_at": {
                    "type": "boolean"
                  },
                  "is_active": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "id_nomenclature_category",
                    "id_version",
                    "id_external",
                    "id_legal",
                    "name",
                    "barcode",
                    "articul",
                    "price",
                    "free_price",
                    "id_unit_type",
                    "created_at",
                    "updated_at",
                    "deleted_at",
                    "is_active"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "nomenclature.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Nomenclatures>"
      },
      "nomenclature.Filter1": {
        "type": "object",
        "title": "nomenclature.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "nomenclature.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "id_nomenclature_category": {
                    "type": "boolean"
                  },
                  "id_version": {
                    "type": "boolean"
                  },
                  "id_external": {
                    "type": "boolean"
                  },
                  "id_legal": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  },
                  "barcode": {
                    "type": "boolean"
                  },
                  "articul": {
                    "type": "boolean"
                  },
                  "price": {
                    "type": "boolean"
                  },
                  "free_price": {
                    "type": "boolean"
                  },
                  "id_unit_type": {
                    "type": "boolean"
                  },
                  "created_at": {
                    "type": "boolean"
                  },
                  "updated_at": {
                    "type": "boolean"
                  },
                  "deleted_at": {
                    "type": "boolean"
                  },
                  "is_active": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "id_nomenclature_category",
                    "id_version",
                    "id_external",
                    "id_legal",
                    "name",
                    "barcode",
                    "articul",
                    "price",
                    "free_price",
                    "id_unit_type",
                    "created_at",
                    "updated_at",
                    "deleted_at",
                    "is_active"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "nomenclature.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Nomenclatures>"
      },
      "nomenclature_category.Filter": {
        "type": "object",
        "title": "nomenclature_category.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "id_external": {
                    "type": "boolean"
                  },
                  "id_parent": {
                    "type": "boolean"
                  },
                  "id_legal": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  },
                  "order_by": {
                    "type": "boolean"
                  },
                  "created_at": {
                    "type": "boolean"
                  },
                  "updated_at": {
                    "type": "boolean"
                  },
                  "deleted_at": {
                    "type": "boolean"
                  },
                  "is_active": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "id_external",
                    "id_parent",
                    "id_legal",
                    "name",
                    "order_by",
                    "created_at",
                    "updated_at",
                    "deleted_at",
                    "is_active"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "nomenclature_category.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<NomenclaturesCategory>"
      },
      "nomenclature_category.Filter1": {
        "type": "object",
        "title": "nomenclature_category.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "nomenclature_category.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "id_external": {
                    "type": "boolean"
                  },
                  "id_parent": {
                    "type": "boolean"
                  },
                  "id_legal": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  },
                  "order_by": {
                    "type": "boolean"
                  },
                  "created_at": {
                    "type": "boolean"
                  },
                  "updated_at": {
                    "type": "boolean"
                  },
                  "deleted_at": {
                    "type": "boolean"
                  },
                  "is_active": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "id_external",
                    "id_parent",
                    "id_legal",
                    "name",
                    "order_by",
                    "created_at",
                    "updated_at",
                    "deleted_at",
                    "is_active"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "nomenclature_category.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<NomenclaturesCategory>"
      },
      "operation_detail.ScopeFilter": {
        "type": "object",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "uniqueItems": true
              }
            ]
          },
          "include": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": false,
        "title": "operation_detail.ScopeFilter"
      },
      "operation_detail.IncludeFilter.Items": {
        "title": "operation_detail.IncludeFilter.Items",
        "type": "object",
        "properties": {
          "relation": {
            "type": "string",
            "enum": [
              "operation",
              "nomenclature"
            ]
          },
          "scope": {
            "$ref": "#/components/schemas/operation_detail.ScopeFilter"
          }
        }
      },
      "operation_detail.Filter": {
        "type": "object",
        "title": "operation_detail.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "count": {
                    "type": "boolean"
                  },
                  "id_operation": {
                    "type": "boolean"
                  },
                  "id_nomenclature": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": true
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "operation_detail.Fields"
          },
          "include": {
            "title": "operation_detail.IncludeFilter",
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/operation_detail.IncludeFilter.Items"
                },
                {
                  "type": "string"
                }
              ]
            }
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<OperationDetail>"
      },
      "operation_detail.Filter1": {
        "type": "object",
        "title": "operation_detail.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "operation_detail.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "count": {
                    "type": "boolean"
                  },
                  "id_operation": {
                    "type": "boolean"
                  },
                  "id_nomenclature": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": true
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "operation_detail.Fields"
          },
          "include": {
            "title": "operation_detail.IncludeFilter",
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/operation_detail.IncludeFilter.Items"
                },
                {
                  "type": "string"
                }
              ]
            }
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<OperationDetail>"
      },
      "Operation.ScopeFilter": {
        "type": "object",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "uniqueItems": true
              }
            ]
          },
          "include": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": false,
        "title": "Operation.ScopeFilter"
      },
      "Operation.IncludeFilter.Items": {
        "title": "Operation.IncludeFilter.Items",
        "type": "object",
        "properties": {
          "relation": {
            "type": "string",
            "enum": [
              "operationDetail"
            ]
          },
          "scope": {
            "$ref": "#/components/schemas/Operation.ScopeFilter"
          }
        }
      },
      "Operation.Filter": {
        "type": "object",
        "title": "Operation.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "id_procedures": {
                    "type": "boolean"
                  },
                  "created_date": {
                    "type": "boolean"
                  },
                  "id_operation_type": {
                    "type": "boolean"
                  },
                  "paid": {
                    "type": "boolean"
                  },
                  "payment_date": {
                    "type": "boolean"
                  },
                  "id_organization": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": true
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "Operation.Fields"
          },
          "include": {
            "title": "Operation.IncludeFilter",
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Operation.IncludeFilter.Items"
                },
                {
                  "type": "string"
                }
              ]
            }
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Operation>"
      },
      "Operation.Filter1": {
        "type": "object",
        "title": "Operation.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "Operation.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "id_procedures": {
                    "type": "boolean"
                  },
                  "created_date": {
                    "type": "boolean"
                  },
                  "id_operation_type": {
                    "type": "boolean"
                  },
                  "paid": {
                    "type": "boolean"
                  },
                  "payment_date": {
                    "type": "boolean"
                  },
                  "id_organization": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": true
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "Operation.Fields"
          },
          "include": {
            "title": "Operation.IncludeFilter",
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Operation.IncludeFilter.Items"
                },
                {
                  "type": "string"
                }
              ]
            }
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Operation>"
      },
      "OrganizationBankRequisites.Filter": {
        "type": "object",
        "title": "OrganizationBankRequisites.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "idOrganization": {
                    "type": "boolean"
                  },
                  "idBankRequisites": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "idOrganization",
                    "idBankRequisites"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "OrganizationBankRequisites.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<OrganizationBankRequisites>"
      },
      "OrganizationBankRequisites.Filter1": {
        "type": "object",
        "title": "OrganizationBankRequisites.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "OrganizationBankRequisites.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "idOrganization": {
                    "type": "boolean"
                  },
                  "idBankRequisites": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "idOrganization",
                    "idBankRequisites"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "OrganizationBankRequisites.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<OrganizationBankRequisites>"
      },
      "Organizations.Filter": {
        "type": "object",
        "title": "Organizations.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "idLegal": {
                    "type": "boolean"
                  },
                  "idAdministrator": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  },
                  "adress": {
                    "type": "boolean"
                  },
                  "phone": {
                    "type": "boolean"
                  },
                  "kpp": {
                    "type": "boolean"
                  },
                  "inn": {
                    "type": "boolean"
                  },
                  "locality": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "idLegal",
                    "idAdministrator",
                    "name",
                    "adress",
                    "phone",
                    "kpp",
                    "inn",
                    "locality"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "Organizations.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Organizations>"
      },
      "Organizations.Filter1": {
        "type": "object",
        "title": "Organizations.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "Organizations.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "idLegal": {
                    "type": "boolean"
                  },
                  "idAdministrator": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  },
                  "adress": {
                    "type": "boolean"
                  },
                  "phone": {
                    "type": "boolean"
                  },
                  "kpp": {
                    "type": "boolean"
                  },
                  "inn": {
                    "type": "boolean"
                  },
                  "locality": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "idLegal",
                    "idAdministrator",
                    "name",
                    "adress",
                    "phone",
                    "kpp",
                    "inn",
                    "locality"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "Organizations.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Organizations>"
      },
      "view_patient_analyzes.Filter": {
        "type": "object",
        "title": "view_patient_analyzes.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "id_analyzes_type": {
                    "type": "boolean"
                  },
                  "id_analyzes_status": {
                    "type": "boolean"
                  },
                  "id_patient": {
                    "type": "boolean"
                  },
                  "id_procedure": {
                    "type": "boolean"
                  },
                  "id_laboratory_assistant": {
                    "type": "boolean"
                  },
                  "patient": {
                    "type": "boolean"
                  },
                  "physicant": {
                    "type": "boolean"
                  },
                  "client": {
                    "type": "boolean"
                  },
                  "laborant": {
                    "type": "boolean"
                  },
                  "created_at": {
                    "type": "boolean"
                  },
                  "due_at": {
                    "type": "boolean"
                  },
                  "notes": {
                    "type": "boolean"
                  },
                  "probe_code": {
                    "type": "boolean"
                  },
                  "result_notes": {
                    "type": "boolean"
                  },
                  "result_data": {
                    "type": "boolean"
                  },
                  "id_organization": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "id_analyzes_type",
                    "id_analyzes_status",
                    "id_patient",
                    "id_procedure",
                    "id_laboratory_assistant",
                    "patient",
                    "physicant",
                    "client",
                    "laborant",
                    "created_at",
                    "due_at",
                    "notes",
                    "probe_code",
                    "result_notes",
                    "result_data",
                    "id_organization"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "view_patient_analyzes.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<PatientAnalyzesView>"
      },
      "view_patient_analyzes.Filter1": {
        "type": "object",
        "title": "view_patient_analyzes.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "view_patient_analyzes.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "id_analyzes_type": {
                    "type": "boolean"
                  },
                  "id_analyzes_status": {
                    "type": "boolean"
                  },
                  "id_patient": {
                    "type": "boolean"
                  },
                  "id_procedure": {
                    "type": "boolean"
                  },
                  "id_laboratory_assistant": {
                    "type": "boolean"
                  },
                  "patient": {
                    "type": "boolean"
                  },
                  "physicant": {
                    "type": "boolean"
                  },
                  "client": {
                    "type": "boolean"
                  },
                  "laborant": {
                    "type": "boolean"
                  },
                  "created_at": {
                    "type": "boolean"
                  },
                  "due_at": {
                    "type": "boolean"
                  },
                  "notes": {
                    "type": "boolean"
                  },
                  "probe_code": {
                    "type": "boolean"
                  },
                  "result_notes": {
                    "type": "boolean"
                  },
                  "result_data": {
                    "type": "boolean"
                  },
                  "id_organization": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "id_analyzes_type",
                    "id_analyzes_status",
                    "id_patient",
                    "id_procedure",
                    "id_laboratory_assistant",
                    "patient",
                    "physicant",
                    "client",
                    "laborant",
                    "created_at",
                    "due_at",
                    "notes",
                    "probe_code",
                    "result_notes",
                    "result_data",
                    "id_organization"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "view_patient_analyzes.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<PatientAnalyzesView>"
      },
      "patient_anamnesis.Filter": {
        "type": "object",
        "title": "patient_anamnesis.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "id_procedure": {
                    "type": "boolean"
                  },
                  "id_anamnes_option": {
                    "type": "boolean"
                  },
                  "answer": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "id_procedure",
                    "id_anamnes_option",
                    "answer"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "patient_anamnesis.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<PatientAnamnes>"
      },
      "patient_anamnesis.Filter1": {
        "type": "object",
        "title": "patient_anamnesis.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "patient_anamnesis.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "id_procedure": {
                    "type": "boolean"
                  },
                  "id_anamnes_option": {
                    "type": "boolean"
                  },
                  "answer": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "id_procedure",
                    "id_anamnes_option",
                    "answer"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "patient_anamnesis.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<PatientAnamnes>"
      },
      "view_patients.Filter": {
        "type": "object",
        "title": "view_patients.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  },
                  "id_type_sex": {
                    "type": "boolean"
                  },
                  "dateofbirth": {
                    "type": "boolean"
                  },
                  "id_kinds": {
                    "type": "boolean"
                  },
                  "created_at": {
                    "type": "boolean"
                  },
                  "chip_identy": {
                    "type": "boolean"
                  },
                  "id_breed": {
                    "type": "boolean"
                  },
                  "breed_name": {
                    "type": "boolean"
                  },
                  "allergies_notes": {
                    "type": "boolean"
                  },
                  "color": {
                    "type": "boolean"
                  },
                  "stamp_identy": {
                    "type": "boolean"
                  },
                  "castration": {
                    "type": "boolean"
                  },
                  "islive": {
                    "type": "boolean"
                  },
                  "clients": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "name",
                    "id_type_sex",
                    "dateofbirth",
                    "id_kinds",
                    "created_at",
                    "chip_identy",
                    "id_breed",
                    "breed_name",
                    "allergies_notes",
                    "color",
                    "stamp_identy",
                    "castration",
                    "islive",
                    "clients"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "view_patients.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<PatientsView>"
      },
      "view_patients.Filter1": {
        "type": "object",
        "title": "view_patients.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "view_patients.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  },
                  "id_type_sex": {
                    "type": "boolean"
                  },
                  "dateofbirth": {
                    "type": "boolean"
                  },
                  "id_kinds": {
                    "type": "boolean"
                  },
                  "created_at": {
                    "type": "boolean"
                  },
                  "chip_identy": {
                    "type": "boolean"
                  },
                  "id_breed": {
                    "type": "boolean"
                  },
                  "breed_name": {
                    "type": "boolean"
                  },
                  "allergies_notes": {
                    "type": "boolean"
                  },
                  "color": {
                    "type": "boolean"
                  },
                  "stamp_identy": {
                    "type": "boolean"
                  },
                  "castration": {
                    "type": "boolean"
                  },
                  "islive": {
                    "type": "boolean"
                  },
                  "clients": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "name",
                    "id_type_sex",
                    "dateofbirth",
                    "id_kinds",
                    "created_at",
                    "chip_identy",
                    "id_breed",
                    "breed_name",
                    "allergies_notes",
                    "color",
                    "stamp_identy",
                    "castration",
                    "islive",
                    "clients"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "view_patients.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<PatientsView>"
      },
      "procedure_statuses.Filter": {
        "type": "object",
        "title": "procedure_statuses.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "name"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "procedure_statuses.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<ProcedureStatuses>"
      },
      "procedure_statuses.Filter1": {
        "type": "object",
        "title": "procedure_statuses.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "procedure_statuses.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "name"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "procedure_statuses.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<ProcedureStatuses>"
      },
      "procedure_types.Filter": {
        "type": "object",
        "title": "procedure_types.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "name"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "procedure_types.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<ProcedureTypes>"
      },
      "procedure_types.Filter1": {
        "type": "object",
        "title": "procedure_types.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "procedure_types.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "name"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "procedure_types.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<ProcedureTypes>"
      },
      "view_procedures.Filter": {
        "type": "object",
        "title": "view_procedures.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "created_at": {
                    "type": "boolean"
                  },
                  "done_at": {
                    "type": "boolean"
                  },
                  "assigned_at": {
                    "type": "boolean"
                  },
                  "updated_at": {
                    "type": "boolean"
                  },
                  "id_creator": {
                    "type": "boolean"
                  },
                  "id_lastuser": {
                    "type": "boolean"
                  },
                  "id_patient": {
                    "type": "boolean"
                  },
                  "id_physicant": {
                    "type": "boolean"
                  },
                  "id_client": {
                    "type": "boolean"
                  },
                  "comment": {
                    "type": "boolean"
                  },
                  "address": {
                    "type": "boolean"
                  },
                  "diagnosis_comment": {
                    "type": "boolean"
                  },
                  "id_status": {
                    "type": "boolean"
                  },
                  "id_procedure_type": {
                    "type": "boolean"
                  },
                  "is_office": {
                    "type": "boolean"
                  },
                  "is_owner": {
                    "type": "boolean"
                  },
                  "assign_comment": {
                    "type": "boolean"
                  },
                  "patient": {
                    "type": "boolean"
                  },
                  "physicant": {
                    "type": "boolean"
                  },
                  "client": {
                    "type": "boolean"
                  },
                  "anamnes": {
                    "type": "boolean"
                  },
                  "anamnesText": {
                    "type": "boolean"
                  },
                  "analyzes": {
                    "type": "boolean"
                  },
                  "contract": {
                    "type": "boolean"
                  },
                  "id_operation": {
                    "type": "boolean"
                  },
                  "id_organization": {
                    "type": "boolean"
                  },
                  "cancel_reason": {
                    "type": "boolean"
                  },
                  "duration": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "created_at",
                    "done_at",
                    "assigned_at",
                    "updated_at",
                    "id_creator",
                    "id_lastuser",
                    "id_patient",
                    "id_physicant",
                    "id_client",
                    "comment",
                    "address",
                    "diagnosis_comment",
                    "id_status",
                    "id_procedure_type",
                    "is_office",
                    "is_owner",
                    "assign_comment",
                    "patient",
                    "physicant",
                    "client",
                    "anamnes",
                    "anamnesText",
                    "analyzes",
                    "contract",
                    "id_operation",
                    "id_organization",
                    "cancel_reason",
                    "duration"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "view_procedures.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<ProceduresView>"
      },
      "view_procedures.Filter1": {
        "type": "object",
        "title": "view_procedures.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "view_procedures.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "created_at": {
                    "type": "boolean"
                  },
                  "done_at": {
                    "type": "boolean"
                  },
                  "assigned_at": {
                    "type": "boolean"
                  },
                  "updated_at": {
                    "type": "boolean"
                  },
                  "id_creator": {
                    "type": "boolean"
                  },
                  "id_lastuser": {
                    "type": "boolean"
                  },
                  "id_patient": {
                    "type": "boolean"
                  },
                  "id_physicant": {
                    "type": "boolean"
                  },
                  "id_client": {
                    "type": "boolean"
                  },
                  "comment": {
                    "type": "boolean"
                  },
                  "address": {
                    "type": "boolean"
                  },
                  "diagnosis_comment": {
                    "type": "boolean"
                  },
                  "id_status": {
                    "type": "boolean"
                  },
                  "id_procedure_type": {
                    "type": "boolean"
                  },
                  "is_office": {
                    "type": "boolean"
                  },
                  "is_owner": {
                    "type": "boolean"
                  },
                  "assign_comment": {
                    "type": "boolean"
                  },
                  "patient": {
                    "type": "boolean"
                  },
                  "physicant": {
                    "type": "boolean"
                  },
                  "client": {
                    "type": "boolean"
                  },
                  "anamnes": {
                    "type": "boolean"
                  },
                  "anamnesText": {
                    "type": "boolean"
                  },
                  "analyzes": {
                    "type": "boolean"
                  },
                  "contract": {
                    "type": "boolean"
                  },
                  "id_operation": {
                    "type": "boolean"
                  },
                  "id_organization": {
                    "type": "boolean"
                  },
                  "cancel_reason": {
                    "type": "boolean"
                  },
                  "duration": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "created_at",
                    "done_at",
                    "assigned_at",
                    "updated_at",
                    "id_creator",
                    "id_lastuser",
                    "id_patient",
                    "id_physicant",
                    "id_client",
                    "comment",
                    "address",
                    "diagnosis_comment",
                    "id_status",
                    "id_procedure_type",
                    "is_office",
                    "is_owner",
                    "assign_comment",
                    "patient",
                    "physicant",
                    "client",
                    "anamnes",
                    "anamnesText",
                    "analyzes",
                    "contract",
                    "id_operation",
                    "id_organization",
                    "cancel_reason",
                    "duration"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "view_procedures.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<ProceduresView>"
      },
      "view_profiles.Filter": {
        "type": "object",
        "title": "view_profiles.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "id_legal": {
                    "type": "boolean"
                  },
                  "first_name": {
                    "type": "boolean"
                  },
                  "last_name": {
                    "type": "boolean"
                  },
                  "second_name": {
                    "type": "boolean"
                  },
                  "organizations": {
                    "type": "boolean"
                  },
                  "phone": {
                    "type": "boolean"
                  },
                  "id_messenger_type": {
                    "type": "boolean"
                  },
                  "messenger": {
                    "type": "boolean"
                  },
                  "email": {
                    "type": "boolean"
                  },
                  "address": {
                    "type": "boolean"
                  },
                  "dateofbirth": {
                    "type": "boolean"
                  },
                  "subscription": {
                    "type": "boolean"
                  },
                  "id_document_type": {
                    "type": "boolean"
                  },
                  "document_number": {
                    "type": "boolean"
                  },
                  "region": {
                    "type": "boolean"
                  },
                  "locality": {
                    "type": "boolean"
                  },
                  "street": {
                    "type": "boolean"
                  },
                  "building_number": {
                    "type": "boolean"
                  },
                  "apartment_number": {
                    "type": "boolean"
                  },
                  "id_user": {
                    "type": "boolean"
                  },
                  "id_role": {
                    "type": "boolean"
                  },
                  "role": {
                    "type": "boolean"
                  },
                  "patients": {
                    "type": "boolean"
                  },
                  "active": {
                    "type": "boolean"
                  },
                  "comment": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "id_legal",
                    "first_name",
                    "last_name",
                    "second_name",
                    "organizations",
                    "phone",
                    "id_messenger_type",
                    "messenger",
                    "email",
                    "address",
                    "dateofbirth",
                    "subscription",
                    "id_document_type",
                    "document_number",
                    "region",
                    "locality",
                    "street",
                    "building_number",
                    "apartment_number",
                    "id_user",
                    "id_role",
                    "role",
                    "patients",
                    "active",
                    "comment"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "view_profiles.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<ProfilesView>"
      },
      "view_profiles.Filter1": {
        "type": "object",
        "title": "view_profiles.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "view_profiles.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "id_legal": {
                    "type": "boolean"
                  },
                  "first_name": {
                    "type": "boolean"
                  },
                  "last_name": {
                    "type": "boolean"
                  },
                  "second_name": {
                    "type": "boolean"
                  },
                  "organizations": {
                    "type": "boolean"
                  },
                  "phone": {
                    "type": "boolean"
                  },
                  "id_messenger_type": {
                    "type": "boolean"
                  },
                  "messenger": {
                    "type": "boolean"
                  },
                  "email": {
                    "type": "boolean"
                  },
                  "address": {
                    "type": "boolean"
                  },
                  "dateofbirth": {
                    "type": "boolean"
                  },
                  "subscription": {
                    "type": "boolean"
                  },
                  "id_document_type": {
                    "type": "boolean"
                  },
                  "document_number": {
                    "type": "boolean"
                  },
                  "region": {
                    "type": "boolean"
                  },
                  "locality": {
                    "type": "boolean"
                  },
                  "street": {
                    "type": "boolean"
                  },
                  "building_number": {
                    "type": "boolean"
                  },
                  "apartment_number": {
                    "type": "boolean"
                  },
                  "id_user": {
                    "type": "boolean"
                  },
                  "id_role": {
                    "type": "boolean"
                  },
                  "role": {
                    "type": "boolean"
                  },
                  "patients": {
                    "type": "boolean"
                  },
                  "active": {
                    "type": "boolean"
                  },
                  "comment": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "id_legal",
                    "first_name",
                    "last_name",
                    "second_name",
                    "organizations",
                    "phone",
                    "id_messenger_type",
                    "messenger",
                    "email",
                    "address",
                    "dateofbirth",
                    "subscription",
                    "id_document_type",
                    "document_number",
                    "region",
                    "locality",
                    "street",
                    "building_number",
                    "apartment_number",
                    "id_user",
                    "id_role",
                    "role",
                    "patients",
                    "active",
                    "comment"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "view_profiles.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<ProfilesView>"
      },
      "Roles.Filter": {
        "type": "object",
        "title": "Roles.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "name"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "Roles.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Roles>"
      },
      "Roles.Filter1": {
        "type": "object",
        "title": "Roles.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "Roles.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "name"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "Roles.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Roles>"
      },
      "view_service.Filter": {
        "type": "object",
        "title": "view_service.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  },
                  "price": {
                    "type": "boolean"
                  },
                  "id_unit_types": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": true
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "view_service.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Service>"
      },
      "view_service.Filter1": {
        "type": "object",
        "title": "view_service.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "view_service.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "boolean"
                  },
                  "price": {
                    "type": "boolean"
                  },
                  "id_unit_types": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": true
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "view_service.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Service>"
      },
      "Users.ScopeFilter": {
        "type": "object",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "uniqueItems": true
              }
            ]
          },
          "include": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": false,
        "title": "Users.ScopeFilter"
      },
      "Users.IncludeFilter.Items": {
        "title": "Users.IncludeFilter.Items",
        "type": "object",
        "properties": {
          "relation": {
            "type": "string",
            "enum": [
              "userCredentials",
              "profiles",
              "roles",
              "patients",
              "organizations"
            ]
          },
          "scope": {
            "$ref": "#/components/schemas/Users.ScopeFilter"
          }
        }
      },
      "Users.Filter": {
        "type": "object",
        "title": "Users.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "login": {
                    "type": "boolean"
                  },
                  "password": {
                    "type": "boolean"
                  },
                  "created_at": {
                    "type": "boolean"
                  },
                  "lastlogin_at": {
                    "type": "boolean"
                  },
                  "id_role": {
                    "type": "boolean"
                  },
                  "active": {
                    "type": "boolean"
                  },
                  "emailVerified": {
                    "type": "boolean"
                  },
                  "verificationToken": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "login",
                    "password",
                    "created_at",
                    "lastlogin_at",
                    "id_role",
                    "active",
                    "emailVerified",
                    "verificationToken"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "Users.Fields"
          },
          "include": {
            "title": "Users.IncludeFilter",
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Users.IncludeFilter.Items"
                },
                {
                  "type": "string"
                }
              ]
            }
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Users>"
      },
      "Users.Filter1": {
        "type": "object",
        "title": "Users.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "Users.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "login": {
                    "type": "boolean"
                  },
                  "password": {
                    "type": "boolean"
                  },
                  "created_at": {
                    "type": "boolean"
                  },
                  "lastlogin_at": {
                    "type": "boolean"
                  },
                  "id_role": {
                    "type": "boolean"
                  },
                  "active": {
                    "type": "boolean"
                  },
                  "emailVerified": {
                    "type": "boolean"
                  },
                  "verificationToken": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "login",
                    "password",
                    "created_at",
                    "lastlogin_at",
                    "id_role",
                    "active",
                    "emailVerified",
                    "verificationToken"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "Users.Fields"
          },
          "include": {
            "title": "Users.IncludeFilter",
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Users.IncludeFilter.Items"
                },
                {
                  "type": "string"
                }
              ]
            }
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<Users>"
      },
      "worker_plannings.Filter": {
        "type": "object",
        "title": "worker_plannings.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "id_employee": {
                    "type": "boolean"
                  },
                  "start_date": {
                    "type": "boolean"
                  },
                  "end_date": {
                    "type": "boolean"
                  },
                  "id_organization": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "id_employee",
                    "start_date",
                    "end_date",
                    "id_organization"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "worker_plannings.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<WorkerPlannings>"
      },
      "worker_plannings.Filter1": {
        "type": "object",
        "title": "worker_plannings.Filter",
        "properties": {
          "offset": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "example": 100
          },
          "skip": {
            "type": "integer",
            "minimum": 0
          },
          "order": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "where": {
            "title": "worker_plannings.WhereFilter",
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "boolean"
                  },
                  "id_employee": {
                    "type": "boolean"
                  },
                  "start_date": {
                    "type": "boolean"
                  },
                  "end_date": {
                    "type": "boolean"
                  },
                  "id_organization": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "id",
                    "id_employee",
                    "start_date",
                    "end_date",
                    "id_organization"
                  ],
                  "example": "id"
                },
                "uniqueItems": true
              }
            ],
            "title": "worker_plannings.Fields"
          }
        },
        "additionalProperties": false,
        "x-typescript-type": "@loopback/repository#Filter<WorkerPlannings>"
      }
    }
  },
  "security": [
    {
      "jwt": []
    }
  ],
  "servers": [
    {
      "url": "https://www.api-new.vet29help.ru/api/v1"
    }
  ]
}