{setPageSize('A5')} {setOrientation('Portrait')} {setMargins(5)} {if:len(client.socStatuses)}
Л {client.socStatuses[-1].code}
{end:}   код: {client.id} *{client.id}* {currentOrganisation.shortName}
  {currentDate}ТАЛОН АМБУЛАТОРНОГО ПАЦИЕНТА
  ФИО: {client.fullName}
  ДР: {client.birthDate} ({client.age}), Пол: {client.sex}, СНИЛС: {client.SNILS}
  {client.document}.
 Полис: {client.policy}
  Рег.: {client.regAddress}
  Прож.: {client.locAddress}
  Тел.: {client.phones}

  {visit.type}
  {person.fullName} ({person.specialityName}) прием {visit.timeRange}
  явиться {visit.date} в кабинет № {visit.office}. Время: {visit.time}, #{visit.num}