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

030 17 #3157

Merged
merged 10 commits into from
Oct 24, 2023
Merged

030 17 #3157

merged 10 commits into from
Oct 24, 2023

Conversation

urchinpro
Copy link
Collaborator

Описание изменений

загрузка данных в протокол из Экселя

import json

from hospitals.models import Hospitals
from reportlab.platypus import Paragraph, Spacer, Table, TableStyle, HRFlowable
Copy link
Contributor

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

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
Copy link
Contributor

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

from reportlab.pdfbase.ttfonts import TTFont

from laboratory.utils import current_time
from utils.dates import normalize_date
Copy link
Contributor

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

"""

hospital: Hospitals = direction.hospital
hospital_name = hospital.safe_short_title
Copy link
Contributor

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


hospital: Hospitals = direction.hospital
hospital_name = hospital.safe_short_title
hospital_address = hospital.safe_address
Copy link
Contributor

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

)
objs.append(
Paragraph(
"16.5.4. Дополнительные консультации и исследования выполнены: да, нет (нужное подчеркнуть); если «да»: в амбулаторных условиях, в условиях дневного стационара, в стационарных условиях (нужное подчеркнуть).",
Copy link
Contributor

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)

)
objs.append(
Paragraph(
"16.5.6. Медицинская реабилитация и (или) санаторно-курортное лечение назначены: да, нет (нуж-ное подчеркнуть); если «да»: в амбулаторных условиях, в условиях дневного стационара, в стационарных условиях (нужное подчеркнуть).",
Copy link
Contributor

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)

)
objs.append(
Paragraph(
"16.6.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] <501> reported by reviewdog 🐶
line too long (220 > 190 characters)

)
objs.append(
Paragraph(
"16.6.4. Дополнительные консультации и исследования выполнены: да, нет (нужное подчеркнуть); если «да»: в амбулаторных условиях, в условиях дневного стационара, в стационарных условиях (нужное подчеркнуть).",
Copy link
Contributor

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)

)
objs.append(
Paragraph(
"16.6.6. Медицинская реабилитация и (или) санаторно-курортное лечение назначены: да, нет (нуж-ное подчеркнуть); если «да»: в амбулаторных условиях, в условиях дневного стационара, в стационарных условиях (нужное подчеркнуть).",
Copy link
Contributor

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)

Comment on lines 1057 to 1058


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

к приказу Министерства здравоохранения Российской Федерации от 10 августа 2017 г. N 514н
"""

hospital: Hospitals = direction.hospital
Copy link
Contributor

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

)
)
objs.append(
Paragraph(
Copy link
Contributor

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

"в амбулаторных условиях, в условиях дневного стационара, в стационарных условиях (нужное подчеркнуть).",
style,
)
)
Copy link
Contributor

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

Comment on lines 661 to 670
Paragraph(
"16.6.4. Дополнительные консультации и исследования выполнены: да, нет (нужное подчеркнуть); если «да»: "
"в амбулаторных условиях, в условиях дневного стационара, в стационарных условиях (нужное подчеркнуть).",
style,
)
)
objs.append(
Paragraph(
"16.6.5. Лечение назначено: да, нет (нужное подчеркнуть); если «да»: в амбулаторных условиях, в условиях дневного стационара, "
"в стационарных условиях (нужное подчеркнуть).",
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
Paragraph(
"16.6.4. Дополнительные консультации и исследования выполнены: да, нет (нужное подчеркнуть); если «да»: "
"в амбулаторных условиях, в условиях дневного стационара, в стационарных условиях (нужное подчеркнуть).",
style,
)
)
objs.append(
Paragraph(
"16.6.5. Лечение назначено: да, нет (нужное подчеркнуть); если «да»: в амбулаторных условиях, в условиях дневного стационара, "
"в стационарных условиях (нужное подчеркнуть).",
Paragraph(
"16.6.4. Дополнительные консультации и исследования выполнены: да, нет (нужное подчеркнуть); если «да»: "
"в амбулаторных условиях, в условиях дневного стационара, в стационарных условиях (нужное подчеркнуть).",
style,
)
)
objs.append(
Paragraph(
"16.6.5. Лечение назначено: да, нет (нужное подчеркнуть); если «да»: в амбулаторных условиях, в условиях дневного стационара, " "в стационарных условиях (нужное подчеркнуть).",

@@ -0,0 +1,848 @@
import json

from hospitals.models import Hospitals
Copy link
Contributor

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

@mikhailprivalov mikhailprivalov merged commit b841ad0 into develop Oct 24, 2023
6 checks passed
@delete-merged-branch delete-merged-branch bot deleted the 030_17 branch October 24, 2023 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants