Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fit 530 titul #4603

Merged
merged 9 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion forms/forms106.py
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,9 @@ def form_02(request_data):
for i in hosp_operation:
operation_template = [""] * 4
operation_template[0] = Paragraph(i["date"] + "<br/>" + i["time_start"] + "-" + i["time_end"], styleTO)
operation_template[1] = Paragraph(f"{i['name_operation']} <br/><font face=\"PTAstraSerifBold\" size=\"8.7\">({i['category_difficult']}), {i['doc_fio']}</font>", styleTO)
operation_template[1] = Paragraph(
f"{i['name_operation']} - {i['code_operation']} <br/><font face=\"PTAstraSerifBold\" size=\"8.7\">({i['category_difficult']}), {i['doc_fio']}</font>", styleTO
)
operation_template[2] = Paragraph(i["anesthesia method"], styleTO)
operation_template[3] = Paragraph(i["complications"], styleTO)
operation_result.append(operation_template.copy())
Expand Down Expand Up @@ -1429,6 +1431,8 @@ def parse_accompanement_diagnos(accompanement_data, style):
accomponement_result.append([Paragraph(f"<u>{result}</u>", style), Paragraph(f"код по МКБ {space_symbol * 3}<u>{result_mkb_code}</u>", style)])
accomponement_result.append([Paragraph("", style), Paragraph("", style)])
opinion.extend(accomponement_result)
if len(opinion) < 1:
opinion = [[Paragraph("", style), Paragraph("", style)]]

tbl_o = Table(
opinion,
Expand Down
15 changes: 10 additions & 5 deletions forms/forms_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,11 @@ def hosp_get_operation_data(num_dir):
'Фенотип донора:',
'Наименование компонента донорской крови',
'№ единицы компонентов крови:',
'Наименование оперативного вмешательства (операции)',
'Дата начала оперативного вмешательства',
'Вид анестезиологического пособия',
'Осложнения, возникшие в ходе оперативного вмешательства (операции)',
'Оперирующий врач'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[black-format] reported by reviewdog 🐶

Suggested change
'Оперирующий врач'
'Оперирующий врач',

]
list_values = []

Expand Down Expand Up @@ -1134,10 +1139,10 @@ def hosp_get_operation_data(num_dir):
operation_data['doc_code'] = ''
category_difficult = ''
for field in fields_operation:
if field[3] == 'Название операции' or field[3] == 'Название манипуляции':
if field[3] == 'Название операции' or field[3] == 'Название манипуляции' or field[3] == 'Наименование оперативного вмешательства (операции)' :
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[black-format] reported by reviewdog 🐶

Suggested change
if field[3] == 'Название операции' or field[3] == 'Название манипуляции' or field[3] == 'Наименование оперативного вмешательства (операции)' :
if field[3] == 'Название операции' or field[3] == 'Название манипуляции' or field[3] == 'Наименование оперативного вмешательства (операции)':

operation_data['name_operation'] = field[2]
continue
if field[3] == 'Дата проведения':
if field[3] == 'Дата проведения' or field[3] == 'Дата начала оперативного вмешательства':
operation_data['date'] = normalize_date(field[2])
continue
if field[3] == 'Время начала':
Expand All @@ -1146,10 +1151,10 @@ def hosp_get_operation_data(num_dir):
if field[3] == 'Время окончания':
operation_data['time_end'] = field[2]
continue
if field[3] == 'Метод обезболивания':
if field[3] == 'Метод обезболивания' or field[3] == 'Вид анестезиологического пособия':
operation_data['anesthesia method'] = field[2]
continue
if field[3] == 'Осложнения' or field[3] == 'Реакции и осложнения:':
if field[3] == 'Осложнения' or field[3] == 'Реакции и осложнения:' or field[3] == 'Осложнения, возникшие в ходе оперативного вмешательства (операции)':
operation_data['complications'] = field[2]
continue
if field[3] == 'Код операции':
Expand All @@ -1176,7 +1181,7 @@ def hosp_get_operation_data(num_dir):
if field[3] == 'МКБ 10':
operation_data['mkb10'] = field[2]
continue
if field[3] == 'Оперировал':
if field[3] == 'Оперировал' or field[3] =='Оперирующий врач':
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [flake8] <225> reported by reviewdog 🐶
missing whitespace around operator

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[black-format] reported by reviewdog 🐶

Suggested change
if field[3] == 'Оперировал' or field[3] =='Оперирующий врач':
if field[3] == 'Оперировал' or field[3] == 'Оперирующий врач':

if field[2]:
operation_data['doc_fio'] = field[2]
continue
Expand Down
Loading