This commit is contained in:
@ -59,7 +59,7 @@ async def get_entries():
|
||||
Get list of entries for user by id.
|
||||
"""
|
||||
return await c.vitacore_api.getEntries(
|
||||
'b172ddc1-bd94-407f-885f-725193dcc502'
|
||||
'6c7978f0-c573-4ccf-8c6e-f0cd9aceb1e1'
|
||||
)
|
||||
|
||||
|
||||
@ -170,6 +170,24 @@ async def get_pat_flg():
|
||||
)
|
||||
|
||||
|
||||
# @router.post('/measurement', status_code=status.HTTP_202_ACCEPTED)
|
||||
# async def measurement(tdn_access_token: Annotated[str, Depends(token)]):
|
||||
# patientId = '6debe050-b57e-442b-9b0e-8d304ca382b0'
|
||||
# observations = await c.tdn_api.observations_search(
|
||||
# tdn_access_token, patientId
|
||||
# )
|
||||
|
||||
# if observations.total == 0:
|
||||
# raise e.NotFoundException(detail='No observations found')
|
||||
|
||||
# observation = observations.items[-1]
|
||||
# observation_measurements = await c.tdn_api.observations_measurement_search(
|
||||
# tdn_access_token, observation.uid
|
||||
# )
|
||||
|
||||
# return observation_measurements
|
||||
|
||||
|
||||
@router.post('/measurement', status_code=status.HTTP_202_ACCEPTED)
|
||||
async def measurement(
|
||||
user: Annotated[str, Depends(login)],
|
||||
|
||||
Reference in New Issue
Block a user