-
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
IF send-laboratory-order #3204
IF send-laboratory-order #3204
Conversation
integration_framework/utils.py
Outdated
@@ -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 |
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 🐶
'django.db.transaction' imported but unused
return Response({"ok": False, "message": "patient.snils: не прошёл валидацию"}) | ||
|
||
|
||
lastname = str(patient.get("lastname") or "") |
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] <303> reported by reviewdog 🐶
too many blank lines (2)
integration_framework/views.py
Outdated
if not individual and snils: | ||
individuals = Individual.objects.filter(document__number=snils, document__document_type__title="СНИЛС") | ||
individual = individuals.first() | ||
individual_status = "snils" |
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 'individual_status' is assigned to but never used
card.save(update_fields=["main_address", "fact_address"]) | ||
|
||
|
||
if not card: |
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] <303> reported by reviewdog 🐶
too many blank lines (2)
integration_framework/views.py
Outdated
if snils and not petrovna.validate_snils(snils): | ||
return Response({"ok": False, "message": "patient.snils: не прошёл валидацию"}) | ||
|
||
|
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 🐶
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>
integration_framework/views.py
Outdated
hospital, | ||
patient['internalId'], | ||
patient['email'], | ||
patient['phone'] |
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 🐶
patient['phone'] | |
patient['phone'], |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
integration_framework/views.py
Outdated
hospital, | ||
patient['internalId'], | ||
patient['email'], | ||
patient['phone'] |
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 🐶
patient['phone'] | |
patient['phone'], |
Описание изменений
REST if/send-laboratory-order