Need help importing test data

122 views
Skip to first unread message

ron.t...@medicaid.alabama.gov

unread,
Oct 24, 2014, 12:03:29 PM10/24/14
to popheal...@googlegroups.com
I'm successfully installed PopHealth

popHealth commit: cdcbe7
last tag: v3.0.0.rc1
bundle 2.5.0
Office of the National Coordinator for Health Information

However I'm encountering an error importing data from bundle-latest.zip -
 

pophealth@ubuntu-taylor:~/popHealth$ bundle exec rake bundle:import[/Home/popHealth/bundle-latest.zip, false, false, '*', 'true', 'true'] --trace
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8
/home/pophealth/popHealth/lib/tasks/sharding.rake:4: warning: class variable access from toplevel
rake aborted!
Don't know how to build task 'bundle:import[/Home/popHealth/bundle-latest.zip,'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/task_manager.rb:62:in `[]'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb:149:in `invoke_task'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb:106:in `each'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb:106:in `block in top_level'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in run'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.1.2/bin/rake:23:in `load'
/usr/local/rvm/gems/ruby-2.1.2/bin/rake:23:in `<main>'
/usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'
pophealth@ubuntu-taylor:~/popHealth$


I'm new to PopHealth -

Any guidance yo can provide will be greatly appreciated

Thanks!!

Ron

Gregorowicz, Andrew J.

unread,
Oct 24, 2014, 1:16:59 PM10/24/14
to popheal...@googlegroups.com
Ron,

Please try without the spaces between the parameters in the square brackets. So, no space between "zip, false”, etc.

~Andy

--
You received this message because you are subscribed to the Google Groups "popHealth-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pophealth-tal...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ron.t...@medicaid.alabama.gov

unread,
Oct 27, 2014, 10:21:59 AM10/27/14
to popheal...@googlegroups.com
Hi Andy,

That worked, however the rake aborted with a message that a bundle with version 2.5.0 already exists in the database.

When I run popHealth I don't see any patients or providers.  I've also queried the providers collection within mongo for db pophealth-development and don't see any providers there. 

When I query bundles I do see documents for patients and measures - am I just missing a step?





Here's the trace


pophealth@ubuntu-taylor:~/popHealth$ bundle exec rake bundle:import[bundle-latest.zip,false,false,'*',true,true] --trace

WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8
/home/pophealth/popHealth/lib/tasks/sharding.rake:4: warning: class variable access from toplevel
** Invoke bundle:import (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute bundle:import
rake aborted!
A bundle with version 2.5.0 already exists in the database.
/usr/local/rvm/gems/ruby-2.1.2/gems/health-data-standards-3.5.0/lib/health-data-standards/import/bundle/importer.rb:36:in `block in import'
/usr/local/rvm/gems/ruby-2.1.2/gems/rubyzip-0.9.9/lib/zip/zip_file.rb:90:in `open'
/usr/local/rvm/gems/ruby-2.1.2/gems/health-data-standards-3.5.0/lib/health-data-standards/import/bundle/importer.rb:30:in `import'
/usr/local/rvm/gems/ruby-2.1.2/gems/health-data-standards-3.5.0/lib/health-data-standards/tasks/bundle.rake:43:in `block (2 levels) in <top (required)>'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/task.rb:240:in `call'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/task.rb:240:in `block in execute'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/task.rb:235:in `each'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/task.rb:235:in `execute'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/task.rb:165:in `invoke'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb:150:in `invoke_task'

/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb:106:in `each'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb:106:in `block in top_level'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb:78:in `block in run'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
/usr/local/rvm/gems/ruby-2.1.2/gems/rake-10.3.2/bin/rake:33:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.1.2/bin/rake:23:in `load'
/usr/local/rvm/gems/ruby-2.1.2/bin/rake:23:in `<main>'
/usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => bundle:import

ron.t...@medicaid.alabama.gov

unread,
Oct 27, 2014, 11:04:26 AM10/27/14
to popheal...@googlegroups.com
Well, getting real close

I removed the records out of the  bundle collection and re-ran the rake import -

I got the following

Successfully imported bundle at: bundle-latest.zip
         Imported into environment: DEVELOPMENT
         Loaded * measures
         Sub-Measures Loaded: 155
         Test Patients Loaded: 0
         Extensions Loaded: 2
         Value Sets Loaded: 799
pophealth@ubuntu-taylor:~/popHealth$

Is there a bundle available to load test patients?

Thanks for your help!!

-rt
Reply all
Reply to author
Forward
0 new messages