Добавлен эндпоинт 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

View File

@ -608,3 +608,23 @@ class ELNsModel(BaseModel):
PatientELNs: list[PatientELNModel] = Field(
title='Список электронных листов нетрудоспособности'
)
class PatientFLGModel(BaseModel):
id: str = Field(
title='Идентификатор пациента',
examples=['0bf2e271-e565-42a8-924e-0017bcdedecd'],
)
SNILS: str = Field(title='СНИЛС', examples=['127-192-834 66'])
LastFgDate: str = Field(
title='Дата последнего флюрографического осмотра',
examples=['2020-09-24'],
)
NextPrgDate: str = Field(
title='Дата следующего флюорографического осмотра',
examples=['2021-09-24'],
)
PrgContingent: str = Field(
title='Контингент (флюорография)',
examples=['Неорганизованное население'],
)