{setPageSize('A3')} {setOrientation('P')} {setLeftMargin(5)} {setTopMargin(5)} {setBottomMargin(5)} {setRightMargin(5)} {: QDate = type(client.birthDate.date)}
Министерство здравоохранения и социального
развития Российской Федерации
{: string = currentOrganisation.shortName}{ " "*(27-len(string)/2) + string + " "*(28-(len(string)+1)/2) }
(наименование медицинского учреждения)
{:string = currentOrganisation.address[0:55]}{" "*(27-len(string)/2) + string + " "*(28-(len(string)+1)/2)}
{:string = currentOrganisation.address[55:100]}{" "*(27-len(string)/2) + string + " "*(28-(len(string)+1)/2)}
(адрес)
Код ОГРН
{currentOrganisation.OGRN}
Медицинская документация

Форма № 025-12/у_____

утверждена приказом Минздравсоцразвития России
от 22.11.2004 №255
ТАЛОН АМБУЛАТОРНОГО ПАЦИЕНТА
№ медицинской карты{client.id}Дата
{event.execDate.date.toString("dd.MM.yy")}
1. Код категории льготы
{if: len(client.socStatuses)}{: string = client.socStatuses[-1].code}{else:}{: string=""}{end:}{string + " "*(3 - len(string)) }
2. Номер страхового полиса ОМС
{client.policy.serial + ' ' + client.policy.number + u' выдан ' + client.policy.insurer.title}
3. СНИЛС
{: string = client.SNILS}{ " "*0 + string + " "*(20-len(string)) }
4. Пациент: код{client.id}ф.и.о. {client.fullName}
5. Пол: {if: client.sex == u'М'}{end:}1 - муж.{if: client.sex == u'М'}{end:}; {if: client.sex == u'Ж' }{end:}2 - жен. {if: client.sex == u'Ж' }{end:}6. Дата рождения{str(client.birthDate) + u" (возраст " + unicode(client.age) + ")"}
7. Документ, удостоверяющий личность (название, серия и номер): {client.document.type + u" серия " + client.document.serial + u" № " + client.document.number}
8. Адрес регистрации по месту жительства: { unicode(client.regAddress)[0:100]}
{unicode(client.regAddress)[100:200]}
9. Житель: {:incity = (str(client.locAddress.KLADRCode)[8:11] == '000')}{if: incity}1 - город; 2 - сел{else:}1 - город; 2 - сел{end:}
10. Социальный статус, в т.ч., занятость: {if: client.birthDate.date.month() < 9}{: schoolDate = QDate(client.birthDate.date.year() + 7, 9, 1)}{else:}{: schoolDate = QDate(client.birthDate.date.year() + 8, 9, 1)}{end:} {if: schoolDate > QDate.currentDate()}{end:}1. - дошкольник{if: schoolDate > QDate.currentDate()}{end:}: 1.1.- организован, 1.2.- неорганизован, {if: schoolDate <= QDate.currentDate() and schoolDate.addYears(10) > QDate.currentDate()}{end:}2 - учащийся{if: schoolDate < QDate.currentDate() and schoolDate.addYears(10) > QDate.currentDate()}{end:}, {if: unicode(client.work) != ''}{end:}3 - работающий{if: unicode(client.work) != ''}{end:},
{if: schoolDate.addYears(10) <= QDate.currentDate() and unicode(client.work) == ''}{end:}4 - неработающий{if: schoolDate.addYears(10) <= QDate.currentDate() and unicode(client.work) == ''}{end:}; {: pens = ((client.sexCode == 1 and client.birthDate.date.addYears(60) <= QDate.currentDate()) or (client.sexCode == 2 and client.birthDate.date.addYears(55) <= QDate.currentDate()))}{if: pens}{end:}5 - пенсионер{if: pens}{end:}; 6 - военнослужащий, код
7 - член семьи военнослужащего; {if: unicode(client.regAddress) == ''}{end:}8 - без определенного места жительства{if: unicode(client.regAddress) == ''}{end:}
11. Инвалидность: {if: len(client.socStatuses)}{: socCode=client.socStatuses[-1].code}{else:}{: socCode='0'}{end:} {if: socCode == '081'}{end:}1 - I гр.{if: socCode == '081'}{end:}, {if: socCode == '082'}{end:}2 - II гр.{if: socCode == '082'}{end:}, {if: socCode == '083'}{end:}3 - III гр.{if: socCode == '083'}{end:}, 4 - установлена впервые в жизни, {if: socCode >= '081' and socCode <= '083'}{end:}5 степень инвалидности - {if: socCode >= '081' and socCode <= '083'}{str(int(socCode) - 80)}{end:}{if: socCode >= '081' and socCode <= '083'}{end:}, {if: socCode == '09' or socCode == '084'}{end:}6 - ребенок-инвалид{if: socCode=='09' or socCode == '084'}{end:}, 7 - инвалид с детства, 8 - снята
12. Специалист: код{event.execPerson.code}ф.и.о. {event.execPerson.longName}
13. Специалист: кодф.и.о.
14. Вид оплаты: {: vf = event.visits[-1].finance.code} {if: vf=='2'}{end:}1 - ОМС{if: vf=='2'}{end:}; {if: vf=='1'}{end:}2 - бюджет{if: vf=='1'}{end:}; {if: vf=='3' or vf=='4'}{end:}3 - платные услуги{if: vf=='3' or vf=='4'}{end:}, в.т.ч. {if: vf=='3'}{end:}4 - ДМС{if: vf=='3'}{end:}; {if: vf=='5' or vf==''}{end:}5 - другое{if: vf=='5' or vf==''}{end:}
15. Место обслуживания: {: vs = event.visits[-1].scene.code} {if: vs=='1'}{end:}1 - поликлиника{if: vs=='1'}{end:}, {if: vs=='2' or vs=='3'}{end:}2 - на дому{if: vs=='2' or vs=='3'}{end:}, в.т.ч. {if: vs=='3'}{end:}3 - актив{if: vs=='3'}{end:}
16. Цель посещения: {: vt = event.visits[-1].type.code} {if: vt==''}{end:}1 - заболевание{if: vt==''}{end:}; {if: vt==u'П'}{end:}2 - профосмотр{if: vt==u'П'}{end:}; 3 - патронаж; {if: vt==u'Д' or vt==u'ДД' or vt==u'ДН'}{end:}4 - другое{if: vt==u'Д' or vt==u'ДД' or vt==u'ДН'}{end:}
17. Результат обращения: {: er = event.result.code} {if: event.result.continued=='0'}{end:}случай закончен{if: event.result.continued=='0'}{end:}: {if: er=='01'}{end:}1 - выздоровл.{if: er=='01'}{end:}; {if: er=='02'}{end:}2 - улучшение{if: er=='02'}{end:}; {if: er=='03'}{end:}3 - динамическое набл.{if: er=='03'}{end:}, {if: er>='04' and er<='08'}{end:}направлен{if: er>='04' and er<='08'}{end:}: {if: er=='04'}{end:}4 - на госпитализацию{if: er=='04'}{end:}, {if: er=='05'}{end:}5 - в дневной стационар{if: er=='05'}{end:}, {if: er=='06'}{end:}6 - стационар на дому{if: er=='06'}{end:}, {if: er=='07'}{end:}7 - на консульта-{if: er=='07'}{end:}
{if: er=='07'}{end:}цию{if: er=='07'}{end:}, {if: er=='08'}{end:}8 - на консультацию в др. ЛПУ{if: er=='08'}{end:}, {if: er=='09'}{end:}9 - справка для получения путевки{if: er=='09'}{end:}, {if: er=='10'}{end:}10 - санаторно-курортная карта{if: er=='10'}{end:}
См. на обороте
Оборотная сторона Талона амбулаторного пациента
18. Диагноз код МКБ - 10{if: len(event.diagnosises) > 0}{event.diagnosises[0].MKB}{end:}{if: len(event.diagnosises) > 0}{event.diagnosises[0].MKB.descr}{end:}
19. Код мед. услуги (посещения, СМП, КЭС):
20. Характер заболевания: {if: len(event.diagnosises) > 0}{:dc=event.diagnosises[0].character.code}{else:}{:dc='0'}{end:} {if: dc=='1'}{end:}1 - острое (+){if: dc=='1'}{end:}, {if: dc=='2'}{end:}впервые в жизни установленное хроническое (+){if: dc=='2'}{end:}; {if: dc=='3' or dc=='4'}{end:}2 - диагноз установлен в предыдущ. году или ранее (-){if: dc=='3' or dc=='4'}{end:}
21. Диспансерный учет: {if: len(event.diagnosises) > 0}{:du=event.diagnosises[0].dispanser.code}{else:}{:du=''}{end:} {if: du=='1'}{end:}1 - состоит{if: du=='1'}{end:}, {if: du=='2'}{end:}2 - взят{if: du=='2'}{end:}, {if: du=='3' or du=='4'}{end:}3 - снят{if: du=='3' or du=='4'}{end:}, в т.ч. {if: du=='4'}{end:}4 - по выздоровлению{if: du=='4'}{end:}
22. Травма: {if: len(event.diagnosises) > 0}{:tr=event.diagnosises[0].traumaType.code}{else:}{:tr='0'}{end:} {if: tr>='01' and tr<='05'}{end:}- производственная{if: tr>='01' and tr<='05'}{end:}: {if: tr=='01'}{end:}1 - промышленная{if: tr=='01'}{end:}; {if: tr=='03'}{end:}2 - транспортная{if: tr=='03'}{end:}, в т.ч. {if: tr=='03'}{end:}3 - ДТП{if: tr=='03'}{end:}; {if: tr=='04'}{end:}4 - сельскохозяйственная{if: tr=='04'}{end:}; {if: tr=='02' or tr=='05'}{end:}5 - прочие{if: tr=='02' or tr=='05'}{end:}
{if: tr>='06' and tr<='12'}{end:}не производственная{if: tr>='06' and tr<='12'}{end:}: {if: tr=='06'}{end:}6 - бытовая{if: tr=='06'}{end:}; {if: tr=='07'}{end:}7 - уличная{if: tr=='07'}{end:}; {if: tr=='08'}{end:}8 - транспортная{if: tr=='08'}{end:}, в т.ч. {if: tr=='08'}{end:}9 - ДТП{if: tr=='08'}{end:}; {if: tr=='09'}{end:}10 - школьная{if: tr=='09'}{end:}; {if: tr=='10'}{end:}11 - спортивная{if: tr=='10'}{end:}; {if: tr=='11'}{end:}12 - прочие{if: tr=='11'}{end:};
{if: tr=='12'}{end:}13 - полученная в результате террористических действий{if: tr=='12'}{end:}
23. Диагноз код МКБ - 10{if: len(event.diagnosises) > 1}{event.diagnosises[1].MKB}{end:}{if: len(event.diagnosises) > 1}{event.diagnosises[1].MKB.descr}{end:}
19. Код мед. услуги (посещения, СМП, КЭС):
25. Характер заболевания: {if: len(event.diagnosises) > 1}{:dc=event.diagnosises[1].character.code}{else:}{:dc='0'}{end:} {if: dc=='1'}{end:}1 - острое (+){if: dc=='1'}{end:}, {if: dc=='2'}{end:}впервые в жизни установленное хроническое (+){if: dc=='2'}{end:}; {if: dc=='3' or dc=='4'}{end:}2 - диагноз установлен в предыдущ. году или ранее (-){if: dc=='3' or dc=='4'}{end:}
26. Диспансерный учет: {if: len(event.diagnosises) > 1}{:du=event.diagnosises[1].dispanser.code}{else:}{:du='0'}{end:} {if: du=='1'}{end:}1 - состоит{if: du=='1'}{end:}, {if: du=='2'}{end:}2 - взят{if: du=='2'}{end:}, {if: du=='3' or du=='4'}{end:}3 - снят{if: du=='3' or du=='4'}{end:}, в т.ч. {if: du=='4'}{end:}4 - по выздоровлению{if: du=='4'}{end:}
27. Заполняется только при изменении диагноза: ранее зарегистрированный диагноз
Код МКБ - 10
Дата регистрации изменяемого диагноза:
28. Документ временной нетрудоспособности: {: tic=tempInvalid.closed} 1 - открыт; 2 - закрыт;
29. Причина выдачи: {: tir=tempInvalid.reason.code} {if: tir>='1' and tir<='4'}{end:}1 - заболевание{if: tir>='1' and tir<='4'}{end:}; {if: tir=='5'}{end:}2 - по уходу{if: tir=='5'}{end:}; {if: tir=='6'}{end:}3 - карантин{if: tir=='6'}{end:}; 4 - прерывание беременности; {if: tir=='9' or tir=='10'}{end:}5 - отпуск по беременности и родам{if: tir=='9' or tir=='10'}{end:}; {if: tir=='8'}{end:}6 - санаторно-курортное лечение{if: tir=='8'}{end:}
29.1 по уходу: пол {: tis=tempInvalid.sex} {if: tis=='1'}{end:}1 - муж.{if: tis=='1'}{end:}; {if: tis=='2'}{end:}2 - жен.{if: tis=='2'}{end:}(возраст лица, получившего документ в/н)
{if: len(tempInvalid.age) > 0}{tempInvalid.age[0]}{end:}{if: len(tempInvalid.age) > 1}{tempInvalid.age[1]}{end:}
30. Рецептурный бланк серия и №, дата выписки: 30.1_____________________________; 30.2___________________________;
30.3_____________________________; 30.4_____________________________.