Regarding automatically filling of fields by a helping database
*** *** *** Comments to the suggested procedures:
Regarding Jens Lauritsens' comment- I am working with a great number of 'brand names' of about 3.000. It will be a very big CHK file and a lot of work to do to arrange the file. I did not tried the model. As to Hans' comment- I tried the model and used the following syntax in the MedicineQues.CHK file:
MEDNVN MUSTENTER COMMENT LEGAL AutoFillMedGenATC.rec SHOW TYPE COMMENT MedGen END
MedGen NOENTER END
My NameGenericATC.CHK looked like this:
MedNvn KEY 1 END
GenNvn KEY 2 END
My MedicineQues.QES file looked like this:
MedNvn the name of the Drug ___________________ MedGen The Generic name ___________________ MedATC The ATC code _____________
and my NameGenericATC.REC looked like this:
MedNvn Aspirin MedGen acetylic salicylic acid n02ba01 MedNvn Beuron MedGen acetaminophen n02be01 MedNvn Efferalgan MedGen acetaminophen n02be01 MedNvn Panadol MedGen acetaminophen n02be01 MedNvn Paralen MedGen acetaminophen n02be01 MedNvn Tyelenol MedGen acetaminophen n02be01
However, I could not find out to get the ATC codes to appear on the MedATC field.
You are on the right track, but there are errors in what you have submitted - the field names do not match (MedATC) and the word "autofill" appears in the chk file, but is invalid.
My test files (all attached in full below) work just fine. You won't see the MedATC field until you go to the next entry field in the questionnaire. If these are the last fields on your questionnaire, then MedATC won't get filled in for some reason (in my test). When I added another entry field it will work fine. I don't know if this is in the bug list, but it seems to me that I have run into that before.
I'm using version 3.1 (the current release)
Jamie ********** MedGenATC.qes MedNvn the name of the Drug ___________________ MedGen The Generic name ___________________ MedATC The ATC code _____________ ********** MedGenATC.chk MedNvn KEY 1 END
MedATC KEY 2 END ********** MedGenTest.qes MedNvn the name of the Drug ___________________ MedATC The ATC code _____________ NextField something else here # ********** MedGenTest.chk MEDNVN MUSTENTER COMMENT LEGAL MedGenATC.rec SHOW TYPE COMMENT MedATC END
MedATC NOENTER END **********
However, I could not find out to get the ATC codes to appear on the MedATC field.
participants (1)
-
epidata-list@lists.umanitoba.ca