-
Notifications
You must be signed in to change notification settings - Fork 2
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.2.9 part 4 demographics api #308
Conversation
…art-4-demographics-api
elcid/api.py
Outdated
class DemographicsSearch(LoginRequiredViewset): | ||
base_name = 'demographics_search' | ||
PATIENT_FOUND_IN_ELCID = "patient_found_in_elcid" | ||
PATIENT_FOUND_IN_HOSPITAL = "patient_found_in_hospital" |
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.
Can we rename this PATIENT_FOUND_UPSTREAM ?
elcid/api.py
Outdated
else: | ||
demographics = None | ||
|
||
if settings.ADD_PATIENT_DEMOGRAPHICS: |
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.
Can we rename this something like USE_UPSTREAM_DEMOGRAPHICS
@@ -57,7 +57,7 @@ <h4>Hospital number</h4> | |||
<div class="col-sm-12"> | |||
<div class="row"> | |||
<div class="col-md-4"> | |||
<b>Hospital #[[ demographics.hospital_number ]]</b> | |||
<b>Hospital</b> |
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.
Not sure we should remove the # ?
intrahospital_api/apis/prod_api.py
Outdated
|
||
|
||
DEMOGRAPHICS_QUERY = "SELECT top(1) * FROM {view} WHERE Patient_Number = \ | ||
'{hospital_number}' ORDER BY last_updated DESC;" |
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.
There is a pytds api for not having to do this...
No description provided.