Добавлен эндпоинт getPatFLG
All checks were successful
Build And Push / publish (push) Successful in 7m31s

This commit is contained in:
2025-09-30 11:20:11 +03:00
parent ce36e07266
commit 422adfd503
3 changed files with 40 additions and 5 deletions

View File

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