Добавлен эндпоинт 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
|
||||
|
||||
@ -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=['Неорганизованное население'],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user