-
Notifications
You must be signed in to change notification settings - Fork 14
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
030 17 #3157
030 17 #3157
Conversation
results/forms/forms111.py
Outdated
import json | ||
|
||
from hospitals.models import Hospitals | ||
from reportlab.platypus import Paragraph, Spacer, Table, TableStyle, HRFlowable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[flake8] <401> reported by reviewdog 🐶
'reportlab.platypus.HRFlowable' imported but unused
results/forms/forms111.py
Outdated
from reportlab.lib import colors | ||
from reportlab.lib.units import mm | ||
from copy import deepcopy | ||
from reportlab.lib.enums import TA_CENTER, TA_LEFT, TA_JUSTIFY, TA_RIGHT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[flake8] <401> reported by reviewdog 🐶
'reportlab.lib.enums.TA_LEFT' imported but unused
results/forms/forms111.py
Outdated
from reportlab.pdfbase.ttfonts import TTFont | ||
|
||
from laboratory.utils import current_time | ||
from utils.dates import normalize_date |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[flake8] <401> reported by reviewdog 🐶
'utils.dates.normalize_date' imported but unused
results/forms/forms111.py
Outdated
""" | ||
|
||
hospital: Hospitals = direction.hospital | ||
hospital_name = hospital.safe_short_title |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[flake8] <841> reported by reviewdog 🐶
local variable 'hospital_name' is assigned to but never used
results/forms/forms111.py
Outdated
|
||
hospital: Hospitals = direction.hospital | ||
hospital_name = hospital.safe_short_title | ||
hospital_address = hospital.safe_address |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[flake8] <841> reported by reviewdog 🐶
local variable 'hospital_address' is assigned to but never used
results/forms/forms111.py
Outdated
) | ||
objs.append( | ||
Paragraph( | ||
"16.5.4. Дополнительные консультации и исследования выполнены: да, нет (нужное подчеркнуть); если «да»: в амбулаторных условиях, в условиях дневного стационара, в стационарных условиях (нужное подчеркнуть).", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [flake8] <501> reported by reviewdog 🐶
line too long (220 > 190 characters)
results/forms/forms111.py
Outdated
) | ||
objs.append( | ||
Paragraph( | ||
"16.5.6. Медицинская реабилитация и (или) санаторно-курортное лечение назначены: да, нет (нуж-ное подчеркнуть); если «да»: в амбулаторных условиях, в условиях дневного стационара, в стационарных условиях (нужное подчеркнуть).", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [flake8] <501> reported by reviewdog 🐶
line too long (239 > 190 characters)
results/forms/forms111.py
Outdated
) | ||
objs.append( | ||
Paragraph( | ||
"16.6.3. Дополнительные консультации и исследования назначены: да, нет (нужное подчеркнуть); если «да»: в амбулаторных условиях, в условиях дневного стационара, в стационарных условиях (нужное подчеркнуть).", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [flake8] <501> reported by reviewdog 🐶
line too long (220 > 190 characters)
results/forms/forms111.py
Outdated
) | ||
objs.append( | ||
Paragraph( | ||
"16.6.4. Дополнительные консультации и исследования выполнены: да, нет (нужное подчеркнуть); если «да»: в амбулаторных условиях, в условиях дневного стационара, в стационарных условиях (нужное подчеркнуть).", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [flake8] <501> reported by reviewdog 🐶
line too long (220 > 190 characters)
results/forms/forms111.py
Outdated
) | ||
objs.append( | ||
Paragraph( | ||
"16.6.6. Медицинская реабилитация и (или) санаторно-курортное лечение назначены: да, нет (нуж-ное подчеркнуть); если «да»: в амбулаторных условиях, в условиях дневного стационара, в стационарных условиях (нужное подчеркнуть).", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [flake8] <501> reported by reviewdog 🐶
line too long (239 > 190 characters)
directions/views.py
Outdated
|
||
|
There was a problem hiding this comment.
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 🐶
results/forms/forms111.py
Outdated
к приказу Министерства здравоохранения Российской Федерации от 10 августа 2017 г. N 514н | ||
""" | ||
|
||
hospital: Hospitals = direction.hospital |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[flake8] <841> reported by reviewdog 🐶
local variable 'hospital' is assigned to but never used
results/forms/forms111.py
Outdated
) | ||
) | ||
objs.append( | ||
Paragraph( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [flake8] <122> reported by reviewdog 🐶
continuation line missing indentation or outdented
results/forms/forms111.py
Outdated
"в амбулаторных условиях, в условиях дневного стационара, в стационарных условиях (нужное подчеркнуть).", | ||
style, | ||
) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [flake8] <122> reported by reviewdog 🐶
continuation line missing indentation or outdented
results/forms/forms111.py
Outdated
Paragraph( | ||
"16.6.4. Дополнительные консультации и исследования выполнены: да, нет (нужное подчеркнуть); если «да»: " | ||
"в амбулаторных условиях, в условиях дневного стационара, в стационарных условиях (нужное подчеркнуть).", | ||
style, | ||
) | ||
) | ||
objs.append( | ||
Paragraph( | ||
"16.6.5. Лечение назначено: да, нет (нужное подчеркнуть); если «да»: в амбулаторных условиях, в условиях дневного стационара, " | ||
"в стационарных условиях (нужное подчеркнуть).", |
There was a problem hiding this comment.
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 🐶
Paragraph( | |
"16.6.4. Дополнительные консультации и исследования выполнены: да, нет (нужное подчеркнуть); если «да»: " | |
"в амбулаторных условиях, в условиях дневного стационара, в стационарных условиях (нужное подчеркнуть).", | |
style, | |
) | |
) | |
objs.append( | |
Paragraph( | |
"16.6.5. Лечение назначено: да, нет (нужное подчеркнуть); если «да»: в амбулаторных условиях, в условиях дневного стационара, " | |
"в стационарных условиях (нужное подчеркнуть).", | |
Paragraph( | |
"16.6.4. Дополнительные консультации и исследования выполнены: да, нет (нужное подчеркнуть); если «да»: " | |
"в амбулаторных условиях, в условиях дневного стационара, в стационарных условиях (нужное подчеркнуть).", | |
style, | |
) | |
) | |
objs.append( | |
Paragraph( | |
"16.6.5. Лечение назначено: да, нет (нужное подчеркнуть); если «да»: в амбулаторных условиях, в условиях дневного стационара, " "в стационарных условиях (нужное подчеркнуть).", |
results/forms/forms111.py
Outdated
@@ -0,0 +1,848 @@ | |||
import json | |||
|
|||
from hospitals.models import Hospitals |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[flake8] <401> reported by reviewdog 🐶
'hospitals.models.Hospitals' imported but unused
Описание изменений
загрузка данных в протокол из Экселя