OMOP/output/oracle/oracle testCleanUp v5_3_1.sql

48 lines
2.1 KiB
SQL

DROP TABLE OHDSI.PERSON CASCADE CONSTRAINTS;
DROP TABLE OHDSI.OBSERVATION_PERIOD CASCADE CONSTRAINTS;
DROP TABLE OHDSI.VISIT_OCCURRENCE CASCADE CONSTRAINTS;
DROP TABLE OHDSI.VISIT_DETAIL CASCADE CONSTRAINTS;
DROP TABLE OHDSI.CONDITION_OCCURRENCE CASCADE CONSTRAINTS;
DROP TABLE OHDSI.DRUG_EXPOSURE CASCADE CONSTRAINTS;
DROP TABLE OHDSI.PROCEDURE_OCCURRENCE CASCADE CONSTRAINTS;
DROP TABLE OHDSI.DEVICE_EXPOSURE CASCADE CONSTRAINTS;
DROP TABLE OHDSI.MEASUREMENT CASCADE CONSTRAINTS;
DROP TABLE OHDSI.OBSERVATION CASCADE CONSTRAINTS;
DROP TABLE OHDSI.DEATH CASCADE CONSTRAINTS;
DROP TABLE OHDSI.NOTE CASCADE CONSTRAINTS;
DROP TABLE OHDSI.NOTE_NLP CASCADE CONSTRAINTS;
DROP TABLE OHDSI.SPECIMEN CASCADE CONSTRAINTS;
DROP TABLE OHDSI.FACT_RELATIONSHIP CASCADE CONSTRAINTS;
DROP TABLE OHDSI.LOCATION CASCADE CONSTRAINTS;
DROP TABLE OHDSI.CARE_SITE CASCADE CONSTRAINTS;
DROP TABLE OHDSI.PROVIDER CASCADE CONSTRAINTS;
DROP TABLE OHDSI.PAYER_PLAN_PERIOD CASCADE CONSTRAINTS;
DROP TABLE OHDSI.COST CASCADE CONSTRAINTS;
DROP TABLE OHDSI.DRUG_ERA CASCADE CONSTRAINTS;
DROP TABLE OHDSI.DOSE_ERA CASCADE CONSTRAINTS;
DROP TABLE OHDSI.CONDITION_ERA CASCADE CONSTRAINTS;
DROP TABLE OHDSI.METADATA CASCADE CONSTRAINTS;
DROP TABLE OHDSI.CDM_SOURCE CASCADE CONSTRAINTS;
DROP TABLE OHDSI.CONCEPT CASCADE CONSTRAINTS;
DROP TABLE OHDSI.VOCABULARY CASCADE CONSTRAINTS;
DROP TABLE OHDSI.DOMAIN CASCADE CONSTRAINTS;
DROP TABLE OHDSI.CONCEPT_CLASS CASCADE CONSTRAINTS;
DROP TABLE OHDSI.CONCEPT_RELATIONSHIP CASCADE CONSTRAINTS;
DROP TABLE OHDSI.RELATIONSHIP CASCADE CONSTRAINTS;
DROP TABLE OHDSI.CONCEPT_SYNONYM CASCADE CONSTRAINTS;
DROP TABLE OHDSI.CONCEPT_ANCESTOR CASCADE CONSTRAINTS;
DROP TABLE OHDSI.SOURCE_TO_CONCEPT_MAP CASCADE CONSTRAINTS;
DROP TABLE OHDSI.DRUG_STRENGTH CASCADE CONSTRAINTS;
DROP TABLE OHDSI.COHORT_DEFINITION CASCADE CONSTRAINTS;
DROP TABLE OHDSI.ATTRIBUTE_DEFINITION CASCADE CONSTRAINTS;
--cdm v6.0 tables
--DROP TABLE OHDSI.survey_conduct CASCADE CONSTRAINTS;
--DROP TABLE OHDSI.location_historyCASCADE CONSTRAINTS;