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

v0.1.2 #95

Merged
merged 54 commits into from
Feb 28, 2024
Merged

v0.1.2 #95

merged 54 commits into from
Feb 28, 2024

Conversation

samamorgan
Copy link
Collaborator

No description provided.

Copy link
Contributor

@code-review-doctor code-review-doctor bot left a comment

Choose a reason for hiding this comment

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

Some food for thought. View full project report here.

def get(self, patient_id: str, encounter_id: str, *args, **kwargs):
return super().get(
f"{self._client.instance}/patients/{patient_id}/encounters/{encounter_id}/"
f"assessments",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
f"assessments",
"assessments",

f-string is unnecessary here. This can just be a string. More details.

assert args.varkw is not None, f"{v}.get must accept variable kwargs"
if cls in Patient.subresources:
try:
assert args.args.index("patient_id") == 1, f"patient_id must be first"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
assert args.args.index("patient_id") == 1, f"patient_id must be first"
assert args.args.index("patient_id") == 1, "patient_id must be first"

f-string is unnecessary here. This can just be a string. More info.

@samamorgan samamorgan merged commit 6142068 into main Feb 28, 2024
8 checks passed
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