From 9e4f629921c1a4b6b9c0f5eab2307d3d674f79e0 Mon Sep 17 00:00:00 2001 From: Lav Patel Date: Fri, 12 Mar 2021 11:43:02 -0600 Subject: [PATCH] created synonym to read patient_dim from i2b2MetaData schema (oracle) --- .../scripts/procedures/oracle/pat_count_visits.sql | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/edu.harvard.i2b2.data/Release_1-7/NewInstall/Metadata/scripts/procedures/oracle/pat_count_visits.sql b/edu.harvard.i2b2.data/Release_1-7/NewInstall/Metadata/scripts/procedures/oracle/pat_count_visits.sql index 91742d5f..67f6ee02 100644 --- a/edu.harvard.i2b2.data/Release_1-7/NewInstall/Metadata/scripts/procedures/oracle/pat_count_visits.sql +++ b/edu.harvard.i2b2.data/Release_1-7/NewInstall/Metadata/scripts/procedures/oracle/pat_count_visits.sql @@ -1,3 +1,8 @@ +-- If your i2b2MetaData schema cant read i2b2Data schema +-- grant select on "&&DataSchemaName"."PATIENT_DIMENSION" to "&&schemaName"; +create synonym PATIENT_DIMENSION for "&&DataSchemaName"."PATIENT_DIMENSION"; + + create or replace PROCEDURE pat_count_visits (metadataTable IN VARCHAR, schemaName IN VARCHAR, errorMsg OUT VARCHAR) IS @@ -133,4 +138,4 @@ execute immediate 'insert into totalnum(c_fullname, agg_date, agg_count, typefla EXECUTE IMMEDIATE 'drop table ontPatVisitDims'; -END; \ No newline at end of file +END;