Code Monkey home page Code Monkey logo

Comments (9)

ChristopheLambert avatar ChristopheLambert commented on August 31, 2024

Can you specify whether you are using postgreSQL on Windows or Linux or some other OS, and what version of postgreSQL you are using? Can you post the first 3 lines of your drug_strength file? It sounds like the drug_strength table does not have the same fields as the drug_strength file. A field, denominator_value, was added to the drug_strength table in 5.0.1 of the CDM. Is it possible your drug_strength table does not have that field? I think the latest vocabulary download will be 5.0.1. I also think that the code we provided to create the vocabulary tables was for 5.0.1, whereas we kept with version 5.0 for the cost tables. Did you use our create_CDMv5_tables.sql code to create the tables?

from etl-cms.

hajarhomayouni avatar hajarhomayouni commented on August 31, 2024

I am using postgres on Linux and I use version (9.5.4). I use your create_CDMv5_tables.sql code and I received the download link for vocabularies from OMOP Vocabulary website.

I attached some first lines of DRUG_STRENGTH csv file.

1

from etl-cms.

ChristopheLambert avatar ChristopheLambert commented on August 31, 2024

Your DRUG_STRENGTH.csv file has a column called BOX_SIZE which is not documented in either v5.0.0 or v5.0.1 of the CDM at this time. Assuming you got DRUG_STRENGTH.csv from the athena.ohdsi.org web site, it would appear they have made a change to the vocabulary. I would ask @Christian_Reich about this. In the meantime, you could strip out that column and try loading again, or add this field to the table creation code. There is a post about the box_size field on the OHDSI forums here: http://forums.ohdsi.org/t/run-the-vocabimport-script-fail-for-cmd-v5/1625/4, where I have also followed up.

from etl-cms.

hajarhomayouni avatar hajarhomayouni commented on August 31, 2024

Thank you Christopher, I added BOX_SIZE to table DRUG_STRENGTH, and ran the following command again:

\COPY synpuf5.drug_strength FROM '/home/lambert/Dropbox/Research/vocab_download_v5/DRUG_STRENGTH.csv' WITH DELIMITER E' ' CSV HEADER QUOTE E'\b';

This time I see this error message:

sql:load_CDMv5_vocabulary.sql:17: ERROR: invalid input syntax for integer: "42478670 913782 2 8576 20150817 20991231 "
CONTEXT: COPY drug_strength, line 2, column drug_concept_id: "42478670 913782 2 8576 20150817 20991231 "

I think something is wrong with the delimiter? What is the correct delimiter I should use?

from etl-cms.

ChristopheLambert avatar ChristopheLambert commented on August 31, 2024

It should be tab delimited. You also need to set the path to where your file is stored.

from etl-cms.

ChristopheLambert avatar ChristopheLambert commented on August 31, 2024

Have you resolved this issue, and can we close it out?

from etl-cms.

ChristopheLambert avatar ChristopheLambert commented on August 31, 2024

Closing issue for lack of response.

from etl-cms.

cgreich avatar cgreich commented on August 31, 2024

Is that a legitimate reason, @ChristopheLambert? :) Let me draw the attention of the Athena team to this.

from etl-cms.

Tuntufye4 avatar Tuntufye4 commented on August 31, 2024

Have you resolved this issue, and can we close it out?

I am having the same issue

from etl-cms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.