Skip to content

Commit

Permalink
add LOCATION_GEOCODE_ID to PROGRAM table
Browse files Browse the repository at this point in the history
  • Loading branch information
radamson committed Aug 18, 2022
1 parent ee42174 commit 171e16f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ancillary_codi_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ CREATE TABLE CODI.PROGRAM
LOCATION_LATITUDE numeric (8) NULL,
--A latitude of the corresponding address location.
LOCATION_LONGITUDE numeric (8) NULL,
LOCATION_GEOCODE_ID varchar NULL,
--A census year for which the corresponding geocode location applies.
LOCATION_BOUNDARY_YEAR numeric (8) NULL,
--A numeric estimate of the percentage of all sessions missing from the SESSION table (based on intended dose) for this program; 0% indicates a belief that the session information is fully populated.
Expand All @@ -139,6 +140,7 @@ CREATE TABLE CODI.PROGRAM
UNIQUE(AFFILIATED_PROGRAMID),
--The PROGRAM table contains one record for each distinct program. A program comprises a collection of interventions intended to produce a particular outcome.
FOREIGN KEY(AFFILIATED_PROGRAMID) REFERENCES CODI.PROGRAM (PROGRAMID)
--FOREIGN KEY(LOCATION_GEOCODE_ID) REFERENCES CODI.CENSUS_DEMOG (GEOCODE)
);

--The REFERRAL table contains one record for each outgoing or incoming referral.
Expand Down

0 comments on commit 171e16f

Please sign in to comment.