Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PHS Data Library
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Josef Hardi
PHS Data Library
Commits
d238c8a0
Commit
d238c8a0
authored
5 years ago
by
Josef Hardi
Browse files
Options
Downloads
Patches
Plain Diff
style: rename variables
parent
033e089a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
phs/data/optum.py
+6
-6
6 additions, 6 deletions
phs/data/optum.py
with
6 additions
and
6 deletions
phs/data/optum.py
+
6
−
6
View file @
d238c8a0
...
...
@@ -132,7 +132,7 @@ class Optum:
# SQL template for getting a population within zip codes
_LOCATION_POPULATIONS
=
"""
WITH {person_
modu
le},
WITH {person_
tab
le},
person_within_zipcodes AS (
SELECT
t0.*
...
...
@@ -186,7 +186,7 @@ class Optum:
# SQL template for getting a population with a certain disease
_ENTRY_CRITERIA
=
"""
WITH {person_
modu
le}, {person_claims_
modu
le}, {condition_occurrence_
modu
le}
WITH {person_
tab
le}, {person_claims_
tab
le}, {condition_occurrence_
tab
le}
SELECT DISTINCT
t3.person_id,
t3.gender_source_value,
...
...
@@ -287,7 +287,7 @@ class Optum:
query
=
textwrap
.
dedent
(
self
.
_LOCATION_POPULATIONS
.
format
(
person_
modu
le
=
self
.
_PERSON
,
person_
tab
le
=
self
.
_PERSON
,
valueset
=
"
,
"
.
join
(
str
(
z
)
for
z
in
zips
),
filters
=
filters_sql
))
...
...
@@ -311,9 +311,9 @@ class Optum:
entry_criteria_sql
=
textwrap
.
dedent
(
self
.
_ENTRY_CRITERIA
.
format
(
person_
modu
le
=
self
.
_PERSON
,
person_claims_
modu
le
=
self
.
_PERSON_CLAIMS
,
condition_occurrence_
modu
le
=
self
.
_CONDITION_OCCURRENCE
,
person_
tab
le
=
self
.
_PERSON
,
person_claims_
tab
le
=
self
.
_PERSON_CLAIMS
,
condition_occurrence_
tab
le
=
self
.
_CONDITION_OCCURRENCE
,
zipcode_valueset
=
"
,
"
.
join
(
str
(
z
)
for
z
in
zips
),
event_occurrence
=
event_occurrence_sql
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment