Добавлен эндпоинт getDiagnosticResults

This commit is contained in:
2025-09-30 11:14:01 +03:00
parent 355ea5c921
commit 6bc0cf98a3
3 changed files with 56 additions and 5 deletions

View File

@ -144,6 +144,16 @@ async def get_hosp_routes():
)
@router.get('/getDiagnosticResults')
async def get_diagnostic_results():
"""
Get list of diagnostic results.
"""
return await c.vitacore_api.getDiagnosticResults(
'4867cc79-9805-4ae2-98d3-2f822848635e'
)
@router.post('/measurement', status_code=status.HTTP_202_ACCEPTED)
async def measurement(
user: Annotated[str, Depends(login)],
@ -213,11 +223,6 @@ async def get_elns(user: Annotated[str, Depends(login)]):
return mock.elns[0]
@router.get('/getDiagnosticResults')
async def get_diagnostic_results(user: Annotated[str, Depends(login)]):
return mock.diagnosticResults
@router.get('/getPatFLG')
async def get_pat_flg(user: Annotated[str, Depends(login)]):
return mock.patFLG[0]