Skip to content

Commit

Permalink
created synonym to read patient_dim from i2b2MetaData schema (oracle)
Browse files Browse the repository at this point in the history
  • Loading branch information
lav-patel committed Mar 12, 2021
1 parent 26c533f commit 9e4f629
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -133,4 +138,4 @@ execute immediate 'insert into totalnum(c_fullname, agg_date, agg_count, typefla

EXECUTE IMMEDIATE 'drop table ontPatVisitDims';

END;
END;

0 comments on commit 9e4f629

Please sign in to comment.