-
Notifications
You must be signed in to change notification settings - Fork 1
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
ID Triplet Feature #146
base: main
Are you sure you want to change the base?
ID Triplet Feature #146
Conversation
9bee5d0
to
5ebabcd
Compare
e2a9f43
to
a9bb607
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #146 +/- ##
==========================================
+ Coverage 97.21% 97.46% +0.25%
==========================================
Files 30 31 +1
Lines 1328 1501 +173
==========================================
+ Hits 1291 1463 +172
- Misses 37 38 +1 ☔ View full report in Codecov by Sentry. |
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.
Good start @cbrinson-rise8
671bae2
to
c7f7c66
Compare
13db043
to
e42578f
Compare
6d835b2
to
1796e96
Compare
@@ -51,7 +51,7 @@ def compare( | |||
details: dict[str, typing.Any] = {"patient.reference_id": str(patient.reference_id)} | |||
for e in evals: | |||
# TODO: can we do this check earlier? | |||
feature = getattr(schemas.Feature, e.feature, None) | |||
feature = schemas.Feature.parse(e.feature) |
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.
calling the parse method here means we have to evaluate the string every time we run a feature comparison, which can add up. If we do it in say the bound_evaluators
call, we only have to do it once per request. I know that simple change would create a model->schema dependency which isn't ideal, but can you think of another way to do this earlier in the stack?
Description
Related Issues
closes #125
Additional Notes
/link
endpoint to accept an identifier tripletIDENTIFIER
valuesIDENTIFIER
and/orIDENTIFIER:XXX
values<--------------------- REMOVE THE LINES BELOW BEFORE MERGING --------------------->
Checklist
Please review and complete the following checklist before submitting your pull request:
Checklist for Reviewers
Please review and complete the following checklist during the review process: