{"openapi":"3.0.1","servers":[{"url":"http://api.radvisor.ai","description":"Generated server url"}],"security":[{"bearerAuth":[]}],"paths":{"/api/v1/report-answers/{id}":{"get":{"tags":["report-answer-controller"],"operationId":"getById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"sessionId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReportAnswerDto"}}}}}},"put":{"tags":["report-answer-controller"],"operationId":"update","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"sessionId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportAnswerUpdateRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReportAnswerDto"}}}}}},"delete":{"tags":["report-answer-controller"],"operationId":"delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"sessionId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"}}}},"/api/v1/report-answers/{id}/approve":{"put":{"tags":["report-answer-controller"],"operationId":"approve","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"sessionId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReportAnswerDto"}}}}}}},"/api/v1/declaration-acceptances/current":{"get":{"tags":["declaration-acceptance-controller"],"operationId":"getCurrentStatus","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DeclarationAcceptanceStatusDto"}}}}}},"put":{"tags":["declaration-acceptance-controller"],"operationId":"acceptCurrent","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeclarationAcceptanceRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DeclarationAcceptanceStatusDto"}}}}}}},"/api/v1/admin/users/{userId}/role":{"put":{"tags":["admin-controller"],"operationId":"updateUserRole","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUpdateRoleRequestDto"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/v1/sessions/{sessionId}/mark-used":{"post":{"tags":["session-controller"],"operationId":"markSessionUsed","parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"}}}},"/api/v1/sessions/dashboard":{"post":{"tags":["session-controller"],"operationId":"createDashboardSession","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionCredentialsRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SessionResponseDto"}}}}}}},"/api/v1/sessions/create-report":{"post":{"tags":["session-controller"],"operationId":"createReportSession","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSessionRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SessionResponseDto"}}}}}}},"/api/v1/report-answers":{"get":{"tags":["report-answer-controller"],"operationId":"getAll","parameters":[{"name":"sessionId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReportAnswerDto"}}}}}}},"post":{"tags":["report-answer-controller"],"operationId":"create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportAnswerCreateRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReportAnswerDto"}}}}}}},"/api/v1/report-answers/patient-id":{"post":{"tags":["report-answer-controller"],"operationId":"reservePatientId","parameters":[{"name":"sessionId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/v1/report-answers/lite":{"post":{"tags":["report-answer-controller"],"operationId":"createWithSession","parameters":[{"name":"sessionId","in":"query","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportAnswerCreateRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReportAnswerDto"}}}}}}},"/api/v1/auth/register":{"post":{"tags":["auth-controller"],"operationId":"register","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreateRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}}}},"/api/v1/auth/refresh-token":{"post":{"tags":["auth-controller"],"operationId":"refreshToken","parameters":[{"name":"refreshToken","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/JwtResponse"}}}}}}},"/api/v1/auth/login":{"post":{"tags":["auth-controller"],"operationId":"login","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/JwtResponse"}}}}}}},"/api/v1/admin/users":{"get":{"tags":["admin-controller"],"operationId":"getCompanyUsers","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserDto"}}}}}}},"post":{"tags":["admin-controller"],"operationId":"addUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCreateUserRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDto"}}}}}}},"/api/v1/sessions/{sessionId}/validate":{"get":{"tags":["session-controller"],"operationId":"validateSession","parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ValidateSessionResponseDto"}}}}}}},"/api/v1/report-answers/{id}/history":{"get":{"tags":["report-answer-controller"],"operationId":"getHistory","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"sessionId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReportAnswerHistoryDto"}}}}}}}},"/api/v1/report-answers/count":{"get":{"tags":["report-answer-controller"],"operationId":"getCount","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["PENDING","APPROVED","CANCELLED","DRAFT"]}},{"name":"sessionId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"integer","format":"int64"}}}}}}}},"components":{"schemas":{"ReportAnswerUpdateRequestDto":{"required":["answers","gender","modality","patientType","reportCode","reportName"],"type":"object","properties":{"reportCode":{"type":"string"},"reportName":{"type":"string"},"processNo":{"type":"string"},"patientType":{"type":"string"},"gender":{"type":"string","enum":["MALE","FEMALE"]},"status":{"type":"string","enum":["PENDING","APPROVED","CANCELLED","DRAFT"]},"modality":{"type":"string"},"answers":{"type":"string"}}},"ReportAnswerDto":{"required":["answers","gender","modality","patientType","reportCode","reportName"],"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","format":"int32"},"createdBy":{"type":"string"},"modifiedBy":{"type":"string"},"createdTime":{"type":"string","format":"date-time"},"modifiedTime":{"type":"string","format":"date-time"},"reportCode":{"type":"string"},"reportName":{"type":"string"},"patientId":{"type":"string"},"processNo":{"type":"string"},"gender":{"type":"string","enum":["MALE","FEMALE"]},"patientType":{"type":"string"},"status":{"type":"string","enum":["PENDING","APPROVED","CANCELLED","DRAFT"]},"modality":{"type":"string"},"answers":{"type":"string"},"assignedDoctor":{"type":"string"},"approvingDoctor":{"type":"string"}}},"DeclarationAcceptanceRequestDto":{"required":["version"],"type":"object","properties":{"version":{"type":"string"}}},"DeclarationAcceptanceStatusDto":{"type":"object","properties":{"accepted":{"type":"boolean"},"version":{"type":"string"},"acceptedAt":{"type":"string","format":"date-time"}}},"AdminUpdateRoleRequestDto":{"required":["role"],"type":"object","properties":{"role":{"type":"string","enum":["ADMIN","SUPERVISOR","SENIOR","JUNIOR"]}}},"SessionCredentialsRequestDto":{"required":["password","username"],"type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"}}},"SessionResponseDto":{"type":"object","properties":{"sessionId":{"type":"string","format":"uuid"},"sessionType":{"type":"string","enum":["CREATE_REPORT","DASHBOARD"]},"status":{"type":"string","enum":["ACTIVE","USED","EXPIRED"]},"patientData":{"type":"string"},"reportCode":{"type":"string"},"token":{"type":"string"}}},"CreateSessionRequestDto":{"required":["password","username"],"type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"},"reportCode":{"type":"string"},"patientData":{"type":"string"}}},"ReportAnswerCreateRequestDto":{"required":["answers","gender","modality","patientType","reportCode","reportName"],"type":"object","properties":{"reportCode":{"type":"string"},"reportName":{"type":"string"},"patientId":{"type":"string"},"patientType":{"type":"string"},"gender":{"type":"string","enum":["MALE","FEMALE"]},"processNo":{"type":"string"},"modality":{"type":"string"},"answers":{"type":"string"},"status":{"type":"string","enum":["PENDING","APPROVED","CANCELLED","DRAFT"]}}},"UserCreateRequestDto":{"required":["active","email","password","role","username"],"type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"},"email":{"type":"string"},"role":{"type":"string"},"active":{"type":"boolean"}}},"UserDto":{"required":["active","email","role","username"],"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer","format":"int32"},"createdBy":{"type":"string"},"modifiedBy":{"type":"string"},"createdTime":{"type":"string","format":"date-time"},"modifiedTime":{"type":"string","format":"date-time"},"username":{"type":"string"},"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"displayName":{"type":"string"},"role":{"type":"string"},"active":{"type":"boolean"}}},"JwtResponse":{"type":"object","properties":{"accessToken":{"type":"string"},"refreshToken":{"type":"string"},"issuedAt":{"type":"string","format":"date-time"},"expiration":{"type":"string","format":"date-time"},"expiresIn":{"type":"integer","format":"int64"}}},"LoginRequestDto":{"type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"}}},"AdminCreateUserRequestDto":{"required":["email","password","role","username"],"type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"},"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"role":{"type":"string","enum":["ADMIN","SUPERVISOR","SENIOR","JUNIOR"]}}},"ValidateSessionResponseDto":{"type":"object","properties":{"valid":{"type":"boolean"},"token":{"type":"string"},"patientData":{"type":"string"},"reportCode":{"type":"string"},"message":{"type":"string"}}},"ReportAnswerHistoryDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"reportAnswerId":{"type":"string","format":"uuid"},"version":{"type":"integer","format":"int32"},"answers":{"type":"string"},"modifiedBy":{"type":"string"},"modifiedTime":{"type":"string","format":"date-time"},"createdTime":{"type":"string","format":"date-time"},"reportCode":{"type":"string"},"reportName":{"type":"string"}}}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}}}