A gem for communicating with the FOTO Patient Inquiry API http://share.patient-inquiry.com.
Add this line to your application's Gemfile:
gem 'foto'
And then execute:
$ bundle
Or install it yourself as:
$ gem install foto
Foto.configure do |config|
config.api_key = '41B4333G-FF2E-41B9-2M24-2G31381D237T'
config.base_api_uri = 'http://devs.patient-inquiry.com'
config.base_ui_uri = 'http://staging.fotoinc.com'
end
foto_patient = Foto::Patient.new({
:first_name => patient.first_name,
:last_name => patient.last_name,
:middle_initial => patient.middle_initial,
:date_of_birth => patient.birth_date,
:email => patient.email,
:gender => patient.gender,
:language => 'en',
:external_id => patient.id,
:external_site_id => patient.external_site_id,
})
foto_patient.save
foto_patient = Foto::Patient.new({
:api_key => '41B4333G-FF2E-41B9-2M24-2G31381D237T',
:first_name => patient.first_name,
:last_name => patient.last_name,
...
})
foto_patient.save
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request