{: diagnostics = [None, None, None, None, None, None]}
{: final=-1}
{for: d in event.diagnosises}
{if: d.type.code in ('1', '2') and d.speciality.name in (u'Терапевт', u'Общая практика')}
{: diagnostics[0] = d}
{if: d.type.code == '1'}{: final=0}{end:}
{elif: d.type.code in ('1', '2') and d.speciality.name == u'Акушер- гинеколог'}
{: diagnostics[1] = d}
{if: d.type.code == '1'}{: final=1}{end:}
{elif: d.type.code in ('1', '2') and d.speciality.name == u'Невролог'}
{: diagnostics[2] = d}
{if: d.type.code == '1'}{: final=2}{end:}
{elif: d.type.code in ('1', '2') and d.speciality.name == u'Хирург'}
{: diagnostics[3] = d}
{if: d.type.code == '1'}{: final=3}{end:}
{elif: d.type.code in ('1', '2') and d.speciality.name == u'Офтальмолог'}
{: diagnostics[4] = d}
{if: d.type.code == '1'}{: final=4}{end:}
{elif: d.type.code in ('1', '2')}
{: diagnostics[5] = d}
{if: d.type.code == '1'}{: final=5}{end:}
{end:}
{end:}
Специальность врача | № с т р о к и | Код врача | да- та
ос- мо- тра | Заболевания (код по МКБ - 10) | Результат ДД | Ф.И.О. (подпись врача) |
ранее известное хроническое | выявленное во время дополнительной диспансеризации | в том числе на поздней стадии | пра- кти- чес- ки
здо- ров (I гр.) | риск
раз- ви- тия
за- бо- ле- ва- ния (II гр.) | Нуждается в дополнительном лечении, обследовании |
амбула- торном (III гр.) | в том числе, заболе- вания, выяв- ленные при ДД | стацио- нарном (IV гр.) | В оказании высоко- техноло- гичной медиц- инской помощи (V гр.) | Санаторно- курортном |
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
{if: diagnostics[0]}
{u'Терапевт' if diagnostics[0].speciality.name == u'Терапевт' else u'Врач общей практики'} | 01 | {diagnostics[0].person.code} | {diagnostics[0].endDate.date.toString("dd.MM.yy")} | {if: diagnostics[0].character.code in ('3','4')}{if: final==0}{end:}{diagnostics[0].MKB}{if: final==0}{end:}{end:} | {if: diagnostics[0].character.code in ('1','2')}{if: final==0}{end:}{diagnostics[0].MKB}{if: final==0}{end:}{end:} | | {: hg = diagnostics[0].healthGroup.code}{'+' if hg == '1' else '-'} | {'+' if hg=='2' else '-'} | {'+' if hg=='3' else '-'} | {'-'} | {'+' if hg=='4' else '-'} | {'+' if hg=='5' else '-'} | {'+' if diagnostics[0].sanatorium else '-'} | {diagnostics[0].person.shortName} |
{else:}
Терапевт | 01 | | | | | | | | | | | | | |
{end:}
{if: diagnostics[1]}
Акушер-гинеколог | 02 | {diagnostics[1].person.code} | {diagnostics[1].endDate.date.toString("dd.MM.yy")} | {if: diagnostics[1].character.code in ('3','4')}{if: final==1}{end:}{diagnostics[1].MKB}{if: final==1}{end:}{end:} | {if: diagnostics[1].character.code in ('1','2')}{if: final==1}{end:}{diagnostics[1].MKB}{if: final==1}{end:}{end:} | | {: hg = diagnostics[1].healthGroup.code}{'+' if hg == '1' else '-'} | {'+' if hg=='2' else '-'} | {'+' if hg=='3' else '-'} | {'-'} | {'+' if hg=='4' else '-'} | {'+' if hg=='5' else '-'} | {'+' if diagnostics[1].sanatorium else '-'} | {diagnostics[1].person.shortName} |
{else:}
Акушер-гинеколог | 02 | | | | | | | | | | | | | |
{end:}
{if: diagnostics[2]}
Невролог | 03 | {diagnostics[2].person.code} | {diagnostics[2].endDate.date.toString("dd.MM.yy")} | {if: diagnostics[2].character.code in ('3','4')}{if: final==2}{end:}{diagnostics[2].MKB}{if: final==2}{end:}{end:} | {if: diagnostics[2].character.code in ('1','2')}{if: final==2}{end:}{diagnostics[2].MKB}{if: final==2}{end:}{end:} | | {: hg = diagnostics[2].healthGroup.code}{'+' if hg == '1' else '-'} | {'+' if hg=='2' else '-'} | {'+' if hg=='3' else '-'} | {'-'} | {'+' if hg=='4' else '-'} | {'+' if hg=='5' else '-'} | {'+' if diagnostics[2].sanatorium else '-'} | {diagnostics[2].person.shortName} |
{else:}
Невролог | 03 | | | | | | | | | | | | | |
{end:}
{if: diagnostics[3]}
Хирург | 04 | {diagnostics[3].person.code} | {diagnostics[3].endDate.date.toString("dd.MM.yy")} | {if: diagnostics[3].character.code in ('3','4')}{if: final==3}{end:}{diagnostics[3].MKB}{if: final==3}{end:}{end:} | {if: diagnostics[3].character.code in ('1','2')}{if: final==3}{end:}{diagnostics[3].MKB}{if: final==3}{end:}{end:} | | {: hg = diagnostics[3].healthGroup.code}{'+' if hg == '1' else '-'} | {'+' if hg=='2' else '-'} | {'+' if hg=='3' else '-'} | {'-'} | {'+' if hg=='4' else '-'} | {'+' if hg=='5' else '-'} | {'+' if diagnostics[3].sanatorium else '-'} | {diagnostics[3].person.shortName} |
{else:}
Хирург | 04 | | | | | | | | | | | | | |
{end:}
{if: diagnostics[4]}
Офтальмолог | 05 | {diagnostics[4].person.code} | {diagnostics[4].endDate.date.toString("dd.MM.yy")} | {if: diagnostics[4].character.code in ('3','4')}{if: final==4}{end:}{diagnostics[4].MKB}{if: final==4}{end:}{end:} | {if: diagnostics[4].character.code in ('1','2')}{if: final==4}{end:}{diagnostics[4].MKB}{if: final==4}{end:}{end:} | | {: hg = diagnostics[4].healthGroup.code}{'+' if hg == '1' else '-'} | {'+' if hg=='2' else '-'} | {'+' if hg=='3' else '-'} | {'-'} | {'+' if hg=='4' else '-'} | {'+' if hg=='5' else '-'} | {'+' if diagnostics[4].sanatorium else '-'} | {diagnostics[4].person.shortName} |
{else:}
Офтальмолог | 05 | | | | | | | | | | | | | |
{end:}
{if: diagnostics[5]}
Дополнительные консультации врачей- специалистов (вписать)
| 06 | {diagnostics[5].person.code} | {diagnostics[5].endDate.date.toString("dd.MM.yy")} | {if: diagnostics[5].character.code in ('3','4')}{if: final==5}{end:}{diagnostics[5].MKB}{if: final==5}{end:}{end:} | {if: diagnostics[5].character.code in ('1','2')}{if: final==5}{end:}{diagnostics[5].MKB}{if: final==5}{end:}{end:} | | {: hg = diagnostics[5].healthGroup.code}{'+' if hg == '1' else '-'} | {'+' if hg=='2' else '-'} | {'+' if hg=='3' else '-'} | {'-'} | {'+' if hg=='4' else '-'} | {'+' if hg=='5' else '-'} | {'+' if diagnostics[5].sanatorium else '-'} | {diagnostics[5].person.shortName} |
{else:}
Дополнительные консультации врачей- специалистов (вписать)
| 06 | | | | | | | | | | | | | |
| | | | | | | | | | | | | | |
{end:}