{
  "openapi": "3.0.1",
  "info": {
    "title": "PublicApi v1.0",
    "description": "Публичный API версии 1.0",
    "version": "v1.0"
  },
  "paths": {
    "/PublicApi/Workers": {
      "get": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Получение списка работников",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/Worker": {
      "get": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Получение информации по работнику",
        "parameters": [
          {
            "name": "guid",
            "in": "query",
            "description": "Идентификатор работника",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/FindWorkerByFio": {
      "get": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Поиск работника по ФИО",
        "parameters": [
          {
            "name": "firstname",
            "in": "query",
            "description": "Имя",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lastname",
            "in": "query",
            "description": "Фамилия",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "middlename",
            "in": "query",
            "description": "Отчество",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/FindWorkerByFiod": {
      "get": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Поиск работника по ФИОД",
        "parameters": [
          {
            "name": "firstname",
            "in": "query",
            "description": "Имя",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lastname",
            "in": "query",
            "description": "Фамилия",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "middlename",
            "in": "query",
            "description": "Отчество",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "birthday",
            "in": "query",
            "description": "Дата рождения",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/FindWorkerByTabNumber": {
      "get": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Поиск работника по табельному номеру",
        "parameters": [
          {
            "name": "tabNumber",
            "in": "query",
            "description": "Табельный номер",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "organisationGuid",
            "in": "query",
            "description": "Идентификатор организации",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/FindWorkerByNfcCode": {
      "get": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Поиск работника по личному коду",
        "parameters": [
          {
            "name": "nfcCode",
            "in": "query",
            "description": "Личный код",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "organisationGuid",
            "in": "query",
            "description": "Идентификатор организации",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/AddWorker": {
      "post": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Добавление работника",
        "requestBody": {
          "description": "Информация о работнике",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/AddWorkerWithDepartment": {
      "post": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Добавление работника",
        "requestBody": {
          "description": "Информация о работнике",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorkerWithDepartment"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorkerWithDepartment"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorkerWithDepartment"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorkerWithDepartment"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/UpdateWorker": {
      "put": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Изменение информации работника",
        "requestBody": {
          "description": "Информация о работнике",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorker"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/PublicApi/UpdateWorkerWithDepartment": {
      "put": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Изменение информации работника",
        "requestBody": {
          "description": "Информация о работнике",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorkerWithDepartment"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorkerWithDepartment"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorkerWithDepartment"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiWorkerWithDepartment"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/PublicApi/DeleteWorker": {
      "delete": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Удаление работника",
        "parameters": [
          {
            "name": "guid",
            "in": "query",
            "description": "Идентификатор работника",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/AddOrUpdateWorkerSign": {
      "post": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Добавление или обновление подписи работника",
        "requestBody": {
          "description": "Информация о подписи работника",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.PublicApiSignForWorker"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.PublicApiSignForWorker"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.PublicApiSignForWorker"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.PublicApiSignForWorker"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/PublicApi/WorkerPhoto": {
      "get": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Получение фотографии работника",
        "parameters": [
          {
            "name": "guid",
            "in": "query",
            "description": "Идентификатор работника",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/UpdateWorkerPhoto": {
      "put": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Изменение фотографии работника",
        "parameters": [
          {
            "name": "guid",
            "in": "query",
            "description": "Идентификатор работника",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "Фотография в формате base64",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "type": "string"
              }
            },
            "application/json": {
              "schema": {
                "type": "string"
              }
            },
            "text/json": {
              "schema": {
                "type": "string"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/PublicApi/Employees": {
      "get": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Получение списка пользователей",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiEmployee"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiEmployee"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiEmployee"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/Employee": {
      "get": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Получение информации о пользователе",
        "parameters": [
          {
            "name": "guid",
            "in": "query",
            "description": "Идентификатор пользователя",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiEmployee"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiEmployee"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiEmployee"
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/AddEmployee": {
      "post": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Добавление пользователя",
        "requestBody": {
          "description": "Информация о пользователе",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiEmployee"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiEmployee"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiEmployee"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiEmployee"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/PublicApi/UpdateEmployee": {
      "put": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Изменение информации пользователя",
        "requestBody": {
          "description": "Информация о пользователе",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiEmployee"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiEmployee"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiEmployee"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiEmployee"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/PublicApi/DeleteEmployee": {
      "delete": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Удаление пользователя",
        "parameters": [
          {
            "name": "guid",
            "in": "query",
            "description": "Идентификатор пользователя",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/PublicApi/DeviceInfoByExamination": {
      "get": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Получение информации о приборе, на котором прошел осмотр",
        "parameters": [
          {
            "name": "guid",
            "in": "query",
            "description": "Уникальный идентификатор осмотра",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiDevice"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiDevice"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiDevice"
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/Templates": {
      "get": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Получение списка шаблонов осмотров",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.PublicApiTemplate"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.PublicApiTemplate"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.PublicApiTemplate"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/Template": {
      "get": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Получение информации о шаблоне осмотра",
        "parameters": [
          {
            "name": "guid",
            "in": "query",
            "description": "Идентификатор шаблона",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.PublicApiTemplate"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.PublicApiTemplate"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.PublicApiTemplate"
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/UpdateTemplate": {
      "put": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Изменение информации шаблона осмотра",
        "requestBody": {
          "description": "Инфмормация о шаблоне осмотра",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.PublicApiTemplate"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.PublicApiTemplate"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.PublicApiTemplate"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.PublicApiTemplate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/PublicApi/DeleteTemplate": {
      "delete": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Удаление шаблона осмотра",
        "parameters": [
          {
            "name": "guid",
            "in": "query",
            "description": "Идентификатор шаблона",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/PublicApi/Examinations": {
      "put": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Получение списка осмотров",
        "requestBody": {
          "description": "Фильтр осмотров",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.GetExaminationsFilter"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.GetExaminationsFilter"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.GetExaminationsFilter"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Common.PublicApi.v10.GetExaminationsFilter"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.v10.GetExaminationsResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.v10.GetExaminationsResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.v10.GetExaminationsResult"
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/Examination": {
      "get": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Получение информации об осмотре",
        "parameters": [
          {
            "name": "guid",
            "in": "query",
            "description": "Идентификатор осмотра",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiExamination"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiExamination"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiExamination"
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/ExaminationSignInfo": {
      "get": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Получение данных об ЭЦП медработника для конкретного осмотра",
        "parameters": [
          {
            "name": "guid",
            "in": "query",
            "description": "Идентификатор осмотра",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiSignInfo"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiSignInfo"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiSignInfo"
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/Organisations": {
      "get": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Получение списка организаций",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiOrganisation"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiOrganisation"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiOrganisation"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/GetOrCreateOrganisation": {
      "get": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Получение идентификатора организации по имени",
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "description": "Сокращенное наименование организации",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        }
      }
    },
    "/PublicApi/UpdateWorkerFromIntegration": {
      "put": {
        "tags": [
          "PublicApiV10"
        ],
        "summary": "Вызов хука для сотрудника",
        "parameters": [
          {
            "name": "tabNumber",
            "in": "query",
            "description": "Табельный номер",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "nfcCode",
            "in": "query",
            "description": "Личный код",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Common.Core.Examinations.ExaminationConclusions": {
        "enum": [
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "description": "Заключение осмотра ( 1 - Допущен, 2 - Отстранен, 3 - Повтор, 4 - Повтор у медработника)",
        "format": "int32"
      },
      "Common.Core.Examinations.ExaminationType": {
        "enum": [
          1,
          2,
          3,
          4,
          5,
          6
        ],
        "type": "integer",
        "description": "Тип осмотра",
        "format": "int32"
      },
      "Common.PublicApi.PublicApiSignForWorker": {
        "required": [
          "Base64Sign",
          "Guid"
        ],
        "type": "object",
        "properties": {
          "Guid": {
            "type": "string",
            "description": "Идентификатор работника",
            "format": "uuid"
          },
          "Base64Sign": {
            "minLength": 1,
            "type": "string",
            "description": "Подпись в формате base64"
          }
        },
        "additionalProperties": false,
        "description": "Подпись работника"
      },
      "Common.PublicApi.PublicApiTemplate": {
        "type": "object",
        "properties": {
          "Guid": {
            "type": "string",
            "description": "Идентификатор шаблона",
            "format": "uuid"
          },
          "Name": {
            "type": "string",
            "description": "Наименование шаблона",
            "nullable": true,
            "example": "Предсменный осмотр"
          }
        },
        "additionalProperties": false,
        "description": "Шаблон осмотра"
      },
      "Common.PublicApi.v10.GetExaminationsFilter": {
        "type": "object",
        "properties": {
          "DateStart": {
            "type": "string",
            "description": "Дата от",
            "format": "date-time",
            "nullable": true
          },
          "DateEnd": {
            "type": "string",
            "description": "Дата до",
            "format": "date-time",
            "nullable": true
          },
          "WorkersGuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Список идентификаторов работников",
            "nullable": true
          },
          "WorkersTabNumbers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Список табельных номеров работников",
            "nullable": true,
            "example": [
              "4497",
              "5684",
              "4597"
            ]
          },
          "WorkersPersonalCodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Список личных кодов работников",
            "nullable": true,
            "example": [
              "0006718842",
              "00042151356"
            ]
          },
          "OrganisationsGuids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Список идентификаторов организаций",
            "nullable": true
          },
          "OrganisationsNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Список сокращенных наименований организаций",
            "nullable": true,
            "example": [
              "Прометей",
              "Орхидея"
            ]
          },
          "Offset": {
            "type": "integer",
            "description": "Смещение",
            "format": "int32",
            "nullable": true
          },
          "Count": {
            "type": "integer",
            "description": "Количество",
            "format": "int32",
            "nullable": true
          },
          "ExamResults": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Common.Core.Examinations.ExaminationConclusions"
            },
            "description": "Список заключений",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Фильтр осмотров"
      },
      "Common.PublicApi.v10.GetExaminationsResult": {
        "type": "object",
        "properties": {
          "Examinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Common.PublicApi.v10.PublicApiExamination"
            },
            "description": "Список полученных осмотров",
            "nullable": true
          },
          "TotalCount": {
            "type": "integer",
            "description": "Общее количество осмотров",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Результат запроса осмотров"
      },
      "Common.PublicApi.v10.PublicApiDevice": {
        "type": "object",
        "properties": {
          "Guid": {
            "type": "string",
            "description": "Идентификатор устройства",
            "format": "uuid"
          },
          "Name": {
            "type": "string",
            "description": "Наименование устройства",
            "nullable": true,
            "example": "HD-9528"
          },
          "Identificator": {
            "type": "string",
            "description": "Токен устройства",
            "nullable": true,
            "example": "hd9528"
          },
          "DeviceRoom": {
            "type": "string",
            "description": "Помещение",
            "nullable": true,
            "example": "Кабинет 1"
          },
          "Address": {
            "type": "string",
            "description": "Сетевой адрес устройства",
            "nullable": true,
            "example": "127.0.0.1"
          }
        },
        "additionalProperties": false,
        "description": "Устройство"
      },
      "Common.PublicApi.v10.PublicApiEmployee": {
        "type": "object",
        "properties": {
          "Guid": {
            "type": "string",
            "description": "Идентификатор пользователя",
            "format": "uuid"
          },
          "Lastname": {
            "type": "string",
            "description": "Фамилия",
            "nullable": true,
            "example": "Васильева"
          },
          "Firstname": {
            "type": "string",
            "description": "Имя",
            "nullable": true,
            "example": "Ольга"
          },
          "Middlename": {
            "type": "string",
            "description": "Отчество",
            "nullable": true,
            "example": "Анатольевна"
          },
          "Sex": {
            "$ref": "#/components/schemas/Common.SexType"
          },
          "BirthDate": {
            "type": "string",
            "description": "Дата рождения",
            "format": "date-time",
            "nullable": true,
            "example": "1970-12-20T00:00:00.000Z"
          },
          "Email": {
            "type": "string",
            "description": "Электронная почта",
            "nullable": true,
            "example": "olga.vasilevna1970@examplemail.com"
          }
        },
        "additionalProperties": false,
        "description": "Пользователь"
      },
      "Common.PublicApi.v10.PublicApiExamination": {
        "type": "object",
        "properties": {
          "Guid": {
            "type": "string",
            "description": "Идентификатор осмотра",
            "format": "uuid"
          },
          "DateTime": {
            "type": "string",
            "description": "Дата и время осмотра",
            "format": "date-time"
          },
          "ExaminationType": {
            "$ref": "#/components/schemas/Common.Core.Examinations.ExaminationType"
          },
          "TemplateGuid": {
            "type": "string",
            "description": "Идентификатор шаблона осмотра",
            "format": "uuid",
            "nullable": true
          },
          "WorkerGuid": {
            "type": "string",
            "description": "Идентификатор работника",
            "format": "uuid"
          },
          "WorkerFio": {
            "type": "string",
            "description": "ФИО работника",
            "nullable": true,
            "example": "Щукин Николай Эдуардович"
          },
          "WorkerCode": {
            "type": "string",
            "description": "Табельный номер работника",
            "nullable": true,
            "example": "4848"
          },
          "Complaints": {
            "type": "string",
            "description": "Жалобы",
            "nullable": true,
            "example": "жалоб нет"
          },
          "Temperature": {
            "type": "number",
            "description": "Температура, °C",
            "format": "double",
            "nullable": true,
            "example": 36.6
          },
          "Alcohol": {
            "type": "number",
            "description": "Концентрация паров этанола в выдыхаемом воздухе, мг/л",
            "format": "double",
            "nullable": true,
            "example": 0
          },
          "SystolicBloodPressure": {
            "type": "integer",
            "description": "Систолическое давление, мм рт. ст.",
            "format": "int32",
            "nullable": true,
            "example": 120
          },
          "DistolicBloodPressure": {
            "type": "integer",
            "description": "Диастолическое давление, мм рт. ст.",
            "format": "int32",
            "nullable": true,
            "example": 80
          },
          "Pulse": {
            "type": "integer",
            "description": "Пульс, уд/мин",
            "format": "int32",
            "nullable": true,
            "example": 80
          },
          "IsArythmia": {
            "type": "boolean",
            "description": "Наличие аритмии",
            "nullable": true
          },
          "WsrResult": {
            "type": "string",
            "description": "Результат теста на вариабельность сердечного ритма",
            "nullable": true,
            "example": "не норма"
          },
          "PupilometryResult": {
            "type": "string",
            "description": "Результат пупиллометрии",
            "nullable": true,
            "example": "норма"
          },
          "AttentionTestResult": {
            "type": "string",
            "description": "Результат теста на внимание",
            "nullable": true,
            "example": "пройден"
          },
          "ExamResult": {
            "$ref": "#/components/schemas/Common.Core.Examinations.ExaminationConclusions"
          }
        },
        "additionalProperties": false,
        "description": "Осмотр"
      },
      "Common.PublicApi.v10.PublicApiOrganisation": {
        "type": "object",
        "properties": {
          "Guid": {
            "type": "string",
            "description": "Идентификатор организации",
            "format": "uuid"
          },
          "Name": {
            "type": "string",
            "description": "Полное наименование организации",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Организация"
      },
      "Common.PublicApi.v10.PublicApiSignInfo": {
        "type": "object",
        "properties": {
          "EcpCertificate": {
            "type": "string",
            "description": "Сертификат ЭЦП",
            "nullable": true
          },
          "EcpCertificateOwner": {
            "type": "string",
            "description": "Владелец сертификата ЭЦП",
            "nullable": true
          },
          "EcpCertificateDateTo": {
            "type": "string",
            "description": "Действителен до",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Данные ЭЦП"
      },
      "Common.PublicApi.v10.PublicApiWorker": {
        "type": "object",
        "properties": {
          "Guid": {
            "type": "string",
            "description": "Идентификатор работника",
            "format": "uuid"
          },
          "Lastname": {
            "type": "string",
            "description": "Фамилия",
            "nullable": true,
            "example": "Щукин"
          },
          "Firstname": {
            "type": "string",
            "description": "Имя",
            "nullable": true,
            "example": "Николай"
          },
          "Middlename": {
            "type": "string",
            "description": "Отчество",
            "nullable": true,
            "example": "Эдуардович"
          },
          "Sex": {
            "$ref": "#/components/schemas/Common.SexType"
          },
          "BirthDate": {
            "type": "string",
            "description": "Дата рождения",
            "format": "date-time",
            "nullable": true,
            "example": "1990-12-15T00:00:00.000Z"
          },
          "Email": {
            "type": "string",
            "description": "Электронная почта",
            "nullable": true,
            "example": "shchukov.nikolaj1990@examplemail.com"
          },
          "Profession": {
            "type": "string",
            "description": "Профессия",
            "nullable": true,
            "example": "Токарь-полуавтоматчик"
          },
          "Code": {
            "type": "string",
            "description": "Личный код",
            "nullable": true,
            "example": "10152275"
          },
          "TabNumber": {
            "type": "string",
            "description": "Табельный номер",
            "nullable": true,
            "example": "4848"
          },
          "OrganisationGuid": {
            "type": "string",
            "description": "Идентификатор организации",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Работник"
      },
      "Common.PublicApi.v10.PublicApiWorkerWithDepartment": {
        "type": "object",
        "properties": {
          "Guid": {
            "type": "string",
            "description": "Идентификатор работника",
            "format": "uuid"
          },
          "Lastname": {
            "type": "string",
            "description": "Фамилия",
            "nullable": true,
            "example": "Щукин"
          },
          "Firstname": {
            "type": "string",
            "description": "Имя",
            "nullable": true,
            "example": "Николай"
          },
          "Middlename": {
            "type": "string",
            "description": "Отчество",
            "nullable": true,
            "example": "Эдуардович"
          },
          "Sex": {
            "$ref": "#/components/schemas/Common.SexType"
          },
          "BirthDate": {
            "type": "string",
            "description": "Дата рождения",
            "format": "date-time",
            "nullable": true,
            "example": "1990-12-15T00:00:00.000Z"
          },
          "Email": {
            "type": "string",
            "description": "Электронная почта",
            "nullable": true,
            "example": "shchukov.nikolaj1990@examplemail.com"
          },
          "Profession": {
            "type": "string",
            "description": "Профессия",
            "nullable": true,
            "example": "Токарь-полуавтоматчик"
          },
          "Code": {
            "type": "string",
            "description": "Личный код",
            "nullable": true,
            "example": "10152275"
          },
          "TabNumber": {
            "type": "string",
            "description": "Табельный номер",
            "nullable": true,
            "example": "4848"
          },
          "WorkDepartment": {
            "type": "string",
            "description": "Наименование подразделения",
            "nullable": true,
            "example": "Цех 1"
          },
          "OrganisationName": {
            "type": "string",
            "description": "Сокращенное наименование организации",
            "nullable": true,
            "example": "ООО ЧОО ЩУКИН"
          }
        },
        "additionalProperties": false,
        "description": "Работник"
      },
      "Common.SexType": {
        "enum": [
          1,
          2,
          3
        ],
        "type": "integer",
        "description": "Пол ( 1 - Мужской, 2 - Женский, 3 - Не определенный)",
        "format": "int32"
      }
    },
    "securitySchemes": {
      "basic": {
        "type": "http",
        "description": "Basic authorization header.",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "basic": [ ]
    }
  ]
}