Schema DevV5 with copies of tables concept, concept_relationship and concept_synonym from ProdV5, fully indexed.
SNOMED must be loaded first.
Working directory is MedDRA.
Run create_source_tables.sql
Download the current Meddra from https://www.meddra.org/software-packages (english) and "SNOMED CT – MedDRA Mapping Release Package"
From MedDRA_xy_z_English.zip extract files from the folder "MedAscii":
hlgt_hlt.asc
hlt.asc
hlt_pt.asc
hlgt.asc
llt.asc
mdhier.asc
pt.asc
soc.asc
soc_hlgt.asc
From "SNOMED CT - MedDRA Mapping Release Package DD MONTH YYYY.zip" extract *.xlsx file and rename to meddra_mappings.xlsx
Run in devv5 (with fresh vocabulary date and version):
SELECT sources .load_input_tables (' MedDRA' ,TO_DATE(' 20160901' ,' YYYYMMDD' ),' MedDRA version 19.1' )
Filling stage and basic tables
Perform manual work described in the readme.md file in the 'manual_work' folder.
Run load_stage.sql
Run check_stage_tables function (should retrieve NULL):
SELECT * FROM qa_tests .check_stage_tables ();
Run generic_update:
DO $_$
BEGIN
PERFORM devv5 .GenericUpdate ();
END $_$;
Run basic tables check (should retrieve NULL):
SELECT * FROM qa_tests .get_checks ();
Clean cash:
SELECT * FROM qa_tests .purge_cache ();
Run scripts to get summary, and interpret the results:
SELECT DISTINCT * FROM qa_tests .get_summary (' concept' );
SELECT DISTINCT * FROM qa_tests .get_summary (' concept_relationship' );
Run scripts to collect statistics, and interpret the results:
SELECT DISTINCT * FROM qa_tests .get_domain_changes ();
SELECT DISTINCT * FROM qa_tests .get_newly_concepts ();
SELECT DISTINCT * FROM qa_tests .get_standard_concept_changes ();
SELECT DISTINCT * FROM qa_tests .get_newly_concepts_standard_concept_status ();
SELECT DISTINCT * FROM qa_tests .get_changes_concept_mapping ();
Run manual_checks_after_generic.sql , and interpret the results.