Добавлен эндпоинт getCurrHosp
This commit is contained in:
@ -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]
|
||||
|
||||
Reference in New Issue
Block a user