| 188 | I suggest something along these lines would provide an incremental basis of exporting until the number of participants with completed status has dropped to a manageable extent. |
| 189 | |
| 190 | {{{ |
| 191 | <valueset entityType="Participant" valueTable="Participants"> |
| 192 | <entities> |
| 193 | <excludeAll /> |
| 194 | <script type="INCLUDE"> |
| 195 | <javascript><![CDATA[// Include any ValueSet that has 'COMPLETED' as a value for the 'Participant.Interview.Status' variable |
| 196 | // and the conclusion questionnaire timeEnd is in May or June of 2010 |
| 197 | ($('Participants:Admin.Interview.status').any('COMPLETED')). |
| 198 | and($('ConclusionQuestionnaire:QuestionnaireRun.timeEnd').year().trim().any('2010')). |
| 199 | and($('ConclusionQuestionnaire:QuestionnaireRun.timeEnd').month().trim().any('4', '5')) |
| 200 | ]]></javascript> |
| 201 | </script> |
| 202 | <script type="EXCLUDE"> |
| 203 | <javascript><![CDATA[$('Participants:Admin.Interview.exportLog.destination').any('BRICCS.Participants')]]></javascript> |
| 204 | </script> |
| 205 | </entities> |
| 206 | </valueset> |
| 207 | }}} |
| 208 | |
| 209 | Incremental changes to the above month condition on each export could include a further month and any participants from previous months that had since moved to completed status: |
| 210 | * month().trim().any('4', '5', '6') |
| 211 | * month().trim().any('4', '5', '6', '7') |
| 212 | * month().trim().any('4', '5', '6', '7', '8') |
| 213 | and so on |
| 214 | |
| 215 | The EXCLUDE ensures those already exported will not be exported again. By the time an export got to include December 2010 it would be time for a rethink. |
| 216 | |