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

This commit is contained in:
2025-09-30 11:07:48 +03:00
parent 4be216375c
commit 5d84ea567d
3 changed files with 46 additions and 6 deletions

View File

@ -133,3 +133,15 @@ class VITACORE_API(AsyncClient):
case _:
self.logger.error(req.json())
raise e.UnknownException
async def getHospRecommendations(self, patId: str):
req = await self.get(
'/getHospRecommendations', params={'patId': patId}
)
match req.status_code:
case st.HTTP_200_OK:
return s.HospRecommendationsModel.model_validate(req.json())
case _:
self.logger.error(req.json())
raise e.UnknownException