No commit activity in last 3 years
No release in over 3 years
The National Library of Medicine API, "Medlineplus Connect", can be somewhat cantankerous to work with. Query params are non sensical to end users, query format is from a bygone era, and the resulting responses often contain large amounts of superficial information. The response structures are somewhat inconsistant, and are always non intuitive. This gem simplifies querying the NLM API, and parses the responses into something more sane and structured for the average Ruby dev to use. Note that at this time, the only feature available through this gem is querying descriptions for ICD-10 codes, more API interfaces TBD.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
>= 0
~> 10.0
~> 3.6
~> 3.0.1

Runtime

~> 2.1.0
~> 2.0.2
 Project Readme

medlineplus_ruby

Gem Version

🚧 Under Development

💎 This Rubygem facilitates retrieval of data from the National Libray of Medicine's Medlineplus Connect API. The NLM API is non intuitive to work with. This gem provides an easier to use interface, and parses the responses to a more meaningful hash for the modern Ruby developer.

Installation

👍 Add this line to your application's Gemfile:

gem 'medlineplus_ruby'

And then execute:

$ bundle

Or install it yourself as:

$ gem install medlineplus_ruby

Usage

🏃 Currently there is one feature, retrieving a set of descriptions associated with an ICD-10 diagnosis code. This can be demonstrated through the pry REPL, via the ./bin/console script in the gem root dir:

client       = MedlineplusRuby::Client.new
descriptions = client.description_data_for_code 'J01.01'

💫 Example usage can also be found in the wrapper application, Medlineplus Connect Demo, which is currently hosted on Heroku.

Tests

💂‍♂️ Download the gem locally, and run rspec spec to run the test suite.

Development

😐 After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

💻 To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

:trollface: Bug reports and PRs from forks are welcome on GitHub at https://github.com/stratigos/medlineplus_ruby.

License

👮 The gem is available as open source under the terms of the MIT License.