Import patients zip file API via POST- /admin/patients is not working

9 views
Skip to first unread message

Shardul Banker

unread,
Sep 25, 2019, 9:56:15 AM9/25/19
to popHealth-talk

Hi,

I am testing POST- /admin/patients API using postman. I am passing below parameters as form data. If

  1. file - patient's zip file containing CDA XML file
  2. practice_id - Provider's ID
  3. practice_name - Provider Name

It is throwing below error.

Started POST "/api/admin/patients/" for 10.10.0.80 at 2019-09-25 08:57:28 -0400
Processing by Api::Admin::PatientsController#create as /
Can't verify CSRF token authenticity
Completed 500 Internal Server Error in 453ms

NoMethodError (undefined method read' for nil:NilClass): app/controllers/api/admin/patients_controller.rb:47:in block in create'
app/controllers/api/admin/patients_controller.rb:47:in open' app/controllers/api/admin/patients_controller.rb:47:in create'

However, when I try same zip file from popHealth UI it is working as expected and imported the patient. It increments the patients count and verify the same in MongoDB database in 'records' collection also.


I am using below popHealth version and measure bundle.


last tag: v6.0.0.rc1
bundle 2017.0.4


Please look into it and suggest way forward as API is not working.


Thanks and regards,
Shardul

Reply all
Reply to author
Forward
0 new messages