Skip to content
Snippets Groups Projects
Commit d238c8a0 authored by Josef Hardi's avatar Josef Hardi
Browse files

style: rename variables

parent 033e089a
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,7 @@ class Optum:
# SQL template for getting a population within zip codes
_LOCATION_POPULATIONS = """
WITH {person_module},
WITH {person_table},
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_module}, {person_claims_module}, {condition_occurrence_module}
WITH {person_table}, {person_claims_table}, {condition_occurrence_table}
SELECT DISTINCT
t3.person_id,
t3.gender_source_value,
......@@ -287,7 +287,7 @@ class Optum:
query = textwrap.dedent(
self._LOCATION_POPULATIONS.format(
person_module=self._PERSON,
person_table=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_module=self._PERSON,
person_claims_module=self._PERSON_CLAIMS,
condition_occurrence_module=self._CONDITION_OCCURRENCE,
person_table=self._PERSON,
person_claims_table=self._PERSON_CLAIMS,
condition_occurrence_table=self._CONDITION_OCCURRENCE,
zipcode_valueset=",".join(str(z) for z in zips),
event_occurrence=event_occurrence_sql))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment