Changes between Version 33 and Version 34 of Onyx Export and Purge


Ignore:
Timestamp:
10/03/11 17:50:23 (13 years ago)
Author:
jeff.lusted
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Onyx Export and Purge

    v33 v34  
    166166=== On Filtering using a Date ===
    167167
    168 A further experiment revealed that the filter illustrated below worked, selecting participants with a status of completed where the conclusion questionnaire end date was some time in January, and the participant hadn't been exported before. All the valueTables within the export config file had the same filter. It doesn't take much imagination to work out how to add a further condition to test for year.
    169 
     168A further experiment revealed that the filter illustrated below worked, selecting participants with a status of completed where the conclusion questionnaire end date was some time in January, and the participant hadn't been exported before. All the valueTables within the export config file had the same filter.
    170169
    171170{{{
     
    187186}}}
    188187
     188I 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
     209Incremental 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')
     213and so on
     214
     215The 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
    189217=== On Editing the Export Configuration File ===
    190218