Version 2 (modified by 13 years ago) ( diff ) | ,
---|
Query Tool and Analysis Types
The Query Tool tables are contained in distribution files crc_create_query_sqlserver.sql or crc_create_query_oracle.sql within the Demodata scripts. You can find the 1.5 versions at edu.harvard.i2b2.data/Release_1-5/NewInstall/Demodata/scripts within the demodata distribution.
These will repay some study.
When you query using the Query Tool (workbench or web client) it is possible to run a query against one or more analysis types; eg: age, race, vital status or gender. Beware that control data for analysis types is provided in so-called seed data held within the above files...
insert into QT_BREAKDOWN_PATH(name,value,create_date) values ('PATIENT_GENDER_COUNT_XML','\\i2b2\i2b2\Demographics\Gender\',getdate()) insert into QT_BREAKDOWN_PATH(name,value,create_date) values ('PATIENT_RACE_COUNT_XML','\\i2b2\i2b2\Demographics\Race\',getdate()) insert into QT_BREAKDOWN_PATH(name,value,create_date) values ('PATIENT_VITALSTATUS_COUNT_XML','\\i2b2\i2b2\Demographics\Vital Status\',getdate()) insert into QT_BREAKDOWN_PATH(name,value,create_date) values('PATIENT_AGE_COUNT_XML','\\i2b2\i2b2\Demographics\Age\',getdate())
There are implications to the above.
- Analysis breakdowns do not work if the ontology details are incorrect.
- Presumably, analysis types do need to be of the enumerated variety within the ontology tree in order to provide some structure for the histograms within the analysis view. So for example, gender must be an enumeration of male/female, race must be an enumeration of ethnic types, age must be an enumeration of age ranges, and so on.