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

This commit is contained in:
2025-09-30 10:53:50 +03:00
parent 92b889faf5
commit da772336ee
3 changed files with 71 additions and 0 deletions

View File

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