Добавлен эндпоинт getPatFLG
All checks were successful
Build And Push / publish (push) Successful in 7m31s
All checks were successful
Build And Push / publish (push) Successful in 7m31s
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user