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

This commit is contained in:
2025-09-30 10:58:51 +03:00
parent da772336ee
commit d553b93825
3 changed files with 117 additions and 5 deletions

View File

@ -104,6 +104,16 @@ async def get_hosp_examinations():
)
@router.get('/getCurrHosp')
async def get_curr_hosp():
"""
Get current hospitalization.
"""
return await c.vitacore_api.getCurrHosp(
'b708e782-4f83-4f3b-8639-512c0c9637bf'
)
@router.post('/measurement', status_code=status.HTTP_202_ACCEPTED)
async def measurement(
user: Annotated[str, Depends(login)],
@ -183,11 +193,6 @@ async def get_diagnostic_results(user: Annotated[str, Depends(login)]):
return mock.diagnosticResults
@router.get('/getCurrHosp')
async def get_curr_hosp(user: Annotated[str, Depends(login)]):
return mock.currHosp[0]
@router.get('/getPatFLG')
async def get_pat_flg(user: Annotated[str, Depends(login)]):
return mock.patFLG[0]