| 1 | In November 2011 we began work exporting data from Onyx for the first time. |
| 2 | |
| 3 | Recognising that data was likely to be incorrect at least in some way this is not considered to be the definitive export, and NO PURGE WILL TAKE PLACE. |
| 4 | |
| 5 | To manage the load on the server, and limit file sizes, the plan is to manage incremental exports up to date, recognising that this process might need to be repeated later. |
| 6 | |
| 7 | The task of splitting the export into increments is managed in the export-destinations.xml configuration file, as described in the [[Onyx Export and Purge]] page. |
| 8 | |
| 9 | Each incremental export will require a specific export-destinations.xml file with inclusion /exclusion criteria tailored to suit. Each stage in the interview needs to be specifically referenced with a stanza in the export-destinations.xml file. |
| 10 | |
| 11 | |
| 12 | |
| 13 | Strategy is to conduct exports as follows: |
| 14 | |
| 15 | Include only interviews with the status COMPLETE, exclude any previously exported. |
| 16 | |
| 17 | For each increment then have a time window based on the Recruitment Context stage, and specifically the timeStart attribute of the QuestionnaireRun. |
| 18 | |
| 19 | First run limit this to January through to June of the year 2010: |
| 20 | |
| 21 | {{{ |
| 22 | <script type="INCLUDE"> |
| 23 | <javascript> |
| 24 | <![CDATA[($('Participants:Admin.Interview.status').any('COMPLETED')).and($('RecruitmentContextQuestionnaire:QuestionnaireRun.timeStart').year().trim().any('2010')).and($('RecruitmentContextQuestionnaire:QuestionnaireRun.timeStart').month().trim().any('0', '1', '2', '3', '4', '5'))]]> // COMPLETE status only and year = 2010 and month 0 = January through to 5 = June |
| 25 | </javascript> |
| 26 | </script> |
| 27 | <script type="EXCLUDE"> |
| 28 | <javascript> |
| 29 | <![CDATA[$('Participants:Admin.Interview.exportLog.destination').any('BRICCS.Participants')]]> // i.e. exclude if previously exported |
| 30 | </javascript> |
| 31 | </script> |
| 32 | }}} |
| 33 | |
| 34 | |
| 35 | Second run, extend the month limit through to 6 = July |
| 36 | |
| 37 | Third run, extend the month limit through to 7 = August |
| 38 | |
| 39 | Fourth run, extend the month limit through to 8 = September |
| 40 | |
| 41 | Fifth run, extend the month limit through to 9 = October |
| 42 | |
| 43 | Sixth run, extend the month limit through to 10 = November |
| 44 | |
| 45 | Seventh run, extend the month limit through to 11 = December |
| 46 | |
| 47 | Eighth run, remove the year limit, and set month limit back to 0 = January (should include only January 2011 participants) |
| 48 | |
| 49 | Ninth run, extend the month limit through to 1 = February |
| 50 | |
| 51 | Tenth run, extend the month limit through to 2 = March |
| 52 | |
| 53 | Eleventh run, extend the month limit through to 3 = April |
| 54 | |
| 55 | Twelfth run, extend the month limit through to 4 = May |
| 56 | |
| 57 | Thirteenth run, extend the month limit through to 5 = June (will start to possibly pick up 2010 cases again, but not if previously exported) |
| 58 | |
| 59 | Fourteenth run, extend the month limit through to 6 = July |
| 60 | |
| 61 | Fifteenth run, extend the month limit through to 7 = August |
| 62 | |
| 63 | Sixteenth run, extend the month limit through to 8 = September |
| 64 | |
| 65 | Seventeenth run, extend the month limit through to 9 = October |
| 66 | |
| 67 | Eighteenth run, remove both the year and month limits. Should mop up all remaining unexported interviews. |
| 68 | |
| 69 | On completion of the 18 runs, the total number of exported interviews should match the total number of COMPLETE interviews in Onyx. |
| 70 | |