{setPageSize('A5')} {setOrientation('Portrait')} {setMargins(5)}
 код: {client.id} {currentOrganisation.shortName} *{client.id}*
 {currentDate} Направление на лабораторные исследования {if:len(client.socStatuses)}
Л {client.socStatuses[-1].code}
{end:}

  ФИО: {client.fullName}
  ДР: {client.birthDate} ({client.age}), Пол: {client.sex}, СНИЛС: {client.SNILS}
  {client.document}.  Полис: {client.policy}
  Рег.: {client.regAddress}
  Прож.: {client.locAddress}
{:l = [x for x in action if x.value==u'назначить' and x.norm == u'ЛИ']} {for: i,prop in enumerate( l )} {end:}
Наименование
{ i+1 } { prop.name }

ФИО врача: {action.person.shortName}  подпись______________ печать Дата направления {action.endDate}