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

IF send-laboratory-order #3204

Merged
merged 5 commits into from
Nov 10, 2023
Merged

IF send-laboratory-order #3204

merged 5 commits into from
Nov 10, 2023

Conversation

urchinpro
Copy link
Collaborator

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

REST if/send-laboratory-order

@@ -27,6 +27,7 @@
from utils.dates import normalize_dots_date
from directions.models import Napravleniya
from utils.nsi_directories import NSI
from django.db import transaction
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 🐶
'django.db.transaction' imported but unused

return Response({"ok": False, "message": "patient.snils: не прошёл валидацию"})


lastname = str(patient.get("lastname") or "")
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)

if not individual and snils:
individuals = Individual.objects.filter(document__number=snils, document__document_type__title="СНИЛС")
individual = individuals.first()
individual_status = "snils"
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 'individual_status' is assigned to but never used

card.save(update_fields=["main_address", "fact_address"])


if not card:
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)

integration_framework/views.py Outdated Show resolved Hide resolved
if snils and not petrovna.validate_snils(snils):
return Response({"ok": False, "message": "patient.snils: не прошёл валидацию"})


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

integration_framework/views.py Outdated Show resolved Hide resolved
integration_framework/views.py Outdated Show resolved Hide resolved
urchinpro and others added 3 commits November 10, 2023 15:45
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
hospital,
patient['internalId'],
patient['email'],
patient['phone']
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
patient['phone']
patient['phone'],

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
hospital,
patient['internalId'],
patient['email'],
patient['phone']
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
patient['phone']
patient['phone'],

@mikhailprivalov mikhailprivalov merged commit 438718d into develop Nov 10, 2023
5 checks passed
@delete-merged-branch delete-merged-branch bot deleted the ifRestCreateOrder branch November 10, 2023 08:27
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