You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi - We're setting up Achilles to run on top of our delta lake through Databricks. I was having issues running the analysis through R, so I generated the SQL scripts and copied them over to Databricks. The generated script failed to complete when referencing the discharge_to_concept_id field because it was missing. In actuality, it looks like it changed from discharge to discharged.
And an example of the incorrect column reference in the generated SQL.
SELECT1203AS analysis_id,
CAST(vo.discharge_to_concept_idAS STRING) AS stratum_1,
CAST(NULLAS STRING) AS stratum_2,
CAST(NULLAS STRING) AS stratum_3,
CAST(NULLAS STRING) AS stratum_4,
CAST(NULLAS STRING) AS stratum_5,
COUNT(*) AS count_value
FROMhive_metastore.omop.visit_occurrence vo
JOINhive_metastore.omop.observation_period op
ONvo.person_id=op.person_idANDvo.visit_start_date>=op.observation_period_start_dateANDvo.visit_start_date<=op.observation_period_end_dateWHEREvo.discharge_to_concept_id!=0GROUP BYvo.discharge_to_concept_id;
OPTIMIZE hive_metastore.omop.bajhxbnws_tmpach_1203
ZORDER BY stratum_1;
The text was updated successfully, but these errors were encountered:
It also generated the following incorrect column reference:
[UNRESOLVED_COLUMN.WITH_SUGGESTION] A column, variable, or function parameter with name admitting_source_concept_id cannot be resolved. Did you mean one of the following? [visit_source_concept_id, admitted_from_concept_id, visit_type_concept_id, discharged_to_concept_id, visit_concept_id].; line 65 pos 197
Assuming admitting_source_concept_id should actually be admitted_from_concept_id.
Should we create a new issue for each or keep a list here?
Hi - We're setting up Achilles to run on top of our delta lake through Databricks. I was having issues running the analysis through R, so I generated the SQL scripts and copied them over to Databricks. The generated script failed to complete when referencing the discharge_to_concept_id field because it was missing. In actuality, it looks like it changed from discharge to discharged.
https://ohdsi.github.io/CommonDataModel/cdm54.html#visit_occurrence
We're using OMOP CDM 5.4.1. It looks like this issue was reported last year in May, but has been closed and is still present. #702
Here's the r script we used to generate the queries. I think it's pretty standard....
And an example of the incorrect column reference in the generated SQL.
The text was updated successfully, but these errors were encountered: