[EpiData-list] How to: repeat variables for group level entry and clear when group changes

epidata-list at lists.umanitoba.ca epidata-list at lists.umanitoba.ca
Fri Nov 21 04:26:19 CST 2008


Posed indirectly:
>Can anyone help me with the following question?
>Is there a function on EpiData Entry which allows data to be
>repeated from one record to the other (without the data enterer
>having to fill in all the same data again)?
>
>For example, we are interviewing all the family members in 10
>different households. On the record of each household member, the
> 'household' data will be the same, but their individual data will be
> different. We want the household data to appear on each record
>without the data enterer having to re-enter all the data.
>
>Is it possible to put a command in the .chk file so the data is
>re-entered on that record automatically?
>
>For Example:
>Qu: Does this individual belong to the same household as the
>previous record? (If the answer is yes, the 'household data' will
> automatically replicate that of the previous record).
>Thanks in advance for your advice,
>
> Dr Jean-Francois Trani
> Leonard Cheshire Disability and Inclusive Development Centre
> University College London
> Website: www.lcdisability.org/idc

Answer:
This can be done with the "repeat" and "clear" feature. An example has
been uploaded to the page http://www.epidata.dk/examples.php

................................................................................................................
Extract of chk file is:
same
  COMMENT LEGAL USE label_same
  MUSTENTER
  type comment allfields Blue
  AFTER ENTRY
    IF same = 2 THEN
      CLEAR class
      CLEAR school
    ELSE
      GOTO age
    ENDIF
  END
END

school
  COMMENT LEGAL USE label_school
  REPEAT
END
................................................................................................................

regards
Jens Lauritsen
EpiData Association





More information about the EpiData-list mailing list