Skip to content

Latest commit

 

History

History

CVX

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Update of CVX

Prerequisites:

  • Schema DevV5 with copies of tables concept, concept_relationship and concept_synonym from ProdV5, fully indexed.
  • RxNorm must be loaded first
  1. Run create_source_tables.sql
  2. Download CVX code distrbution file
  1. Load Vaccines administered (CVX) Value Set Updates from https://phinvads.cdc.gov/vads/ValueSetRssFeed.xml?oid=2.16.840.1.114222.4.11.934. Download all versions (in Excel format), except 4.
  2. Sequentially upload data to the database by executing in devv5: SELECT sources.load_input_tables('CVX', TO_DATE('YYYYMMDD', 'yyyymmdd'), 'CVX Code Set '||TO_DATE('YYYYMMDD', 'yyyymmdd')); where YYYYMMDD = date of 'Vaccines administered value set' taken from RSS feed Example:
  • put web_cvx.xlsx and ValueSetConceptDetailResultSummary.xls (version 1) into your upload folder
  • run SELECT sources.load_input_tables('CVX', TO_DATE('20081201', 'yyyymmdd'), 'CVX Code Set '||TO_DATE('20081201', 'yyyymmdd'));
  • leave the web_cvx.xlsx and replace ValueSetConceptDetailResultSummary.xls with ValueSetConceptDetailResultSummary.xls from version 2
  • run SELECT sources.load_input_tables('CVX', TO_DATE('20091015', 'yyyymmdd'), 'CVX Code Set '||TO_DATE('20091015', 'yyyymmdd'));
  • repeat untill last version Note: be careful with dates, because we need a minimum date of each concept code of all the sets
  1. Download "CPT Codes Mapped to CVX Codes" from https://www2a.cdc.gov/vaccines/iis/iisstandards/vaccines.asp?rpt=cpt
  2. Download "Mapping CVX to Vaccine Groups" from https://www2a.cdc.gov/vaccines/iis/iisstandards/vaccines.asp?rpt=vg
Filling stage and basic tables
  1. Run FULL FastRecreate:
SELECT devv5.FastRecreateSchema(main_schema_name=>'devv5', include_concept_ancestor=> false,
                                include_deprecated_rels=> true, include_synonyms=> true);
  1. Run load_stage.sql.
  2. Run check_stage_tables function (should retrieve NULL):
SELECT * FROM qa_tests.check_stage_tables();
  1. Run generic_update:
DO $_$
BEGIN
	PERFORM devv5.GenericUpdate();
END $_$;
  1. Run basic tables check (should retrieve NULL):
SELECT * FROM qa_tests.get_checks();
  1. Perform manual work described in the readme.md file in the 'manual_work' folder.

  2. Repeat steps 11-15.

  3. Run scripts to get summary, and interpret the results:

SELECT * FROM qa_tests.get_summary('concept');
SELECT * FROM qa_tests.get_summary('concept_relationship');
  1. Run scripts to collect statistics, and interpret the results:
SELECT * FROM qa_tests.get_domain_changes();
SELECT * FROM qa_tests.get_newly_concepts();
SELECT * FROM qa_tests.get_standard_concept_changes();
SELECT * FROM qa_tests.get_newly_concepts_standard_concept_status();
SELECT * FROM qa_tests.get_changes_concept_mapping();
  1. Run manual_checks_after_generic.sql, and interpret the results.
  2. If no problems, enjoy!