Project

foto

0.0
No commit activity in last 3 years
No release in over 3 years
Provides an interface for communicating with FOTO Patient Inquiry API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

Foto

A gem for communicating with the FOTO Patient Inquiry API http://share.patient-inquiry.com.

Installation

Add this line to your application's Gemfile:

gem 'foto'

And then execute:

$ bundle

Or install it yourself as:

$ gem install foto

Usage

Configure the gem:

Foto.configure do |config|
  config.api_key = '41B4333G-FF2E-41B9-2M24-2G31381D237T'
  config.base_uri = 'http://devs.patient-inquiry.com'
end

Update or create a patient:

foto_patient = Foto::Patient.new({
      :first_name    => patient.first_name,
      :last_name     => patient.last_name,
      :date_of_birth => patient.birth_date,
      :email         => patient.email,
      :gender        => patient.gender,
      :language      => 'en',
      :external_id   => patient.id
    })
foto_patient.save

You can also specify an api key per request:

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

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request