-
Notifications
You must be signed in to change notification settings - Fork 482
Closed
Labels
Description
I'm trying to set up the cdm in postgres, and have run into a few issues, some of which others have mentioned. I'll consolidate them here--let me know if they should be broken out into separate issues.
- ddl on Postgres #96 There is an issue with the naming of "offset" in the note_nlp table in the DDL postgres file.
- ddl postgres visit_occurrence.discharge_to_concept_id bug #97 There is a bug in the declaration of "discharge_to_concept_id" in the visit_occurrence table in the DDL postgres file. It is defined as "INTEGER(50)", and should probably just be INTEGER.
- In constraints postgres file, there is a syntax error in line 129 caused by the word "NONCLUSTERED". I assume the appropriate fix is to just remove that word.
- In indexes required postgres file, there is a reference to "person_id" in the note_nlp table, but person_id is not defined in the note_nlp table by the ddl file. Perhaps person_id needs to be added to that table in the ddl file.
- In constraints postgres file, the foreign key "dose_unit_concept_id" does not exist in the DDL postgres file. (the closest thing i could find in the ddl file is "dose_unit_source_value", which, coincidentally, is not referenced in the constraints file).