Skip to content

Instantly share code, notes, and snippets.

@bwallace
Last active August 29, 2015 14:07
Show Gist options
  • Save bwallace/d7095f9cc049ddf78fec to your computer and use it in GitHub Desktop.
Save bwallace/d7095f9cc049ddf78fec to your computer and use it in GitHub Desktop.
Grabbing study data for PMID
from cochranenlp.readers.biviewer import PDFBiViewer
dat = PDFBiViewer()
# this will take a relatively long time the first
# time it is invoked (it caches the dict)
study = dat.get_study_from_pmid("16467647")
print study.cochrane['CHARACTERISTICS']
''' (something like):
{'CHAR_INTERVENTIONS': 'Tailored dietary intervention to encourage a decrease in sodium intake and an increase in vitamin C and carotene intake via increasing F&V consumption. Dietary goals were to decrease salt to less than 8 and 10g/day in women and men respectively and increase carotene intake to more than 5000 \xc2\xb5g/day and vitamin C intake to more than 200mg/day. The intervention consisted of 2 individualised dietary counselling sessions at baseline and 5 months (15 minutes each), a group lecture half-way through the intervention, and 2 newsletters. Control subjects recieved the intervention at 12 months (cross-over period). Follow-up data were presented at 12 months.',
'CHAR_METHODS': 'RCT of cross-over design but data analysed and presented as a parallel group design at time of cross-over at 12 months.',
'CHAR_NOTES': '',
'CHAR_OUTCOMES': 'SBP and DBP (mmHg), fruit and vegetable intake (g/day converted to servings/day using a typical 80g serving), dietary fibre (g/day), dietary intake of vitamin C (mg/day), alpha and beta-carotene (\xc2\xb5g/day).',
'CHAR_PARTICIPANTS': 'Participants from 2 rural villages in Japan recruited through public magazines and posters. Individuals were eligible if they were aged between 40 and 69 and had physician permission to participate if under medical treatment or dietary control. 550 participants randomised, 32% men, mean age 56 years. Of the participants in the control group at baseline, 9.6% had hypertension, 2.9% had diabetes and 9.6% had hyperlipidaemia.'}
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment