Skip to content

Commit

Permalink
Merge pull request #1 from radamson/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
eedrummer authored Aug 19, 2022
2 parents 2de0bcc + 9f2994f commit 09ff2b9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# CODI Schema
This project reads in the [PCORnet Common Data Model v4.1 Parseable Spreadsheet Format](https://github.com/CDMFORUM/CDM-GUIDANCE/raw/master/Files%20for%20CDM%20page/2018-12-05-PCORnet-Common-Data-Model-v4dot1-parseable.xlsx) and will create database tables to represent the CDM.

This project has been updated to support [PCORnet Common Data Model v6.0 Parseable Spreadsheet Format](https://pcornet.org/wp-content/uploads/2021/05/2021_04_12_PCORnet_Common_Data_Model_v6dot0_parseable.xlsx)
This project reads in the [PCORnet Common Data Model v6.0 Parseable Spreadsheet Format](https://pcornet.org/wp-content/uploads/2021/11/2021_11_29_PCORnet_Common_Data_Model_v6dot0_parseable.xlsx) and will create database tables to represent the CDM.

This application is written in Ruby and it uses the [Sequel](http://sequel.jeremyevans.net/index.html) library to generate the appropriate DDL.

Expand Down Expand Up @@ -33,9 +31,19 @@ To create the schema, just run the script:

It assumes that the database has been created and is empty. It will create all of the columns after that.

### Postgres

The Postgres user must have `CONNECT` and `CREATE` privileges in order for this script to run successfully. A user can be granted these scopes with:

```sql
GRANT CONNECT ON DATABASE codi_db TO codi;
GRANT CREATE ON DATABASE codi_db TO codi;
```

[Postgres Privileges](https://www.postgresql.org/docs/current/ddl-priv.html)

## Notice

Copyright 2022 The MITRE Corporation.

Approved for Public Release; Distribution Unlimited. Case Number 19-2008
Approved for Public Release; Distribution Unlimited. Case Number 19-2008

0 comments on commit 09ff2b9

Please sign in to comment.