Prescriptions and MAR: Disallow users to perform edits on discharged encounters #3514
Annotations
10 errors
Ruff (EM101):
care/facility/api/serializers/prescription.py#L36
care/facility/api/serializers/prescription.py:36:17: EM101 Exception must not use a string literal, assign to variable first
|
Ruff (EM101):
care/facility/api/serializers/prescription.py#L40
care/facility/api/serializers/prescription.py:40:17: EM101 Exception must not use a string literal, assign to variable first
|
Ruff (RET506):
care/facility/api/serializers/prescription.py#L53
care/facility/api/serializers/prescription.py:53:9: RET506 Unnecessary `elif` after `raise` statement
|
Ruff (SIM102):
care/facility/api/serializers/prescription.py#L110
care/facility/api/serializers/prescription.py:110:9: SIM102 Use a single `if` statement instead of nested `if` statements
|
Ruff (ARG002):
care/facility/api/viewsets/prescription.py#L52
care/facility/api/viewsets/prescription.py:52:41: ARG002 Unused method argument: `name`
|
Ruff (ARG002):
care/facility/api/viewsets/prescription.py#L81
care/facility/api/viewsets/prescription.py:81:33: ARG002 Unused method argument: `args`
|
Ruff (ARG002):
care/facility/api/viewsets/prescription.py#L81
care/facility/api/viewsets/prescription.py:81:41: ARG002 Unused method argument: `kwargs`
|
Ruff (ARG002):
care/facility/api/viewsets/prescription.py#L144
care/facility/api/viewsets/prescription.py:144:37: ARG002 Unused method argument: `args`
|
Ruff (ARG002):
care/facility/api/viewsets/prescription.py#L144
care/facility/api/viewsets/prescription.py:144:45: ARG002 Unused method argument: `kwargs`
|
Ruff (ARG002):
care/facility/api/viewsets/prescription.py#L171
care/facility/api/viewsets/prescription.py:171:36: ARG002 Unused method argument: `args`
|