API101
API101
Brief introduction to modern internet enabled APIs and their use in healthcare
Session Goal and Agenda
• Part 1 :
» Presented by Avinash Shanbhag, ONC
» Provide basic understanding of modern internet enabled APIs and describe the
key technical terms developers commonly use when describing APIs
• Part 2:
» Presented by Mark Scrimshire, Entrepreneur-in-Residence, CMS
2
21st Century Cures Act (Sec 4002)
3
Things are heating up for FHIR APIs
Application API
Usually contains a lot of functionality that Usually designed to perform few small
are geared towards end users being able tasks that are geared towards software
to perform complex tasks. developers being able to use it in their
software programs.
5
Google Maps – Example of an Application
http://maps.google.com
6
API Example – Google Geocode API
• https://maps.googleapis.com/maps/api/geocode/json?address=Maryland
• https://maps.googleapis.com/maps/api/geocode/json?address=Maryland&key=AIza
SyDBtwiXKlYQR9E1OvyopnrmaU6qrNXCZ7A
7
Google Map API – Example of API
• https://developers.google.com/maps/
8
Differences between “Application” and “API” – Google Maps
Application API
http://maps.google.com https://maps.googleapis.com/maps/api/ge
ocode/json?address=Maryland
Accessible via user interface such as web Does not have user interface. But, is
browsers (e.g. Internet Explorer). embedded inside another software
program. For example, Lyft, Allstate, etc.
Contains a lot of functionality such as Contains only subset of functionality that is
distance, alternate routes, road conditions, needed for rich experience. But, makes it
etc. easy for developers to use.
9
What are the benefits of providing API vs developing application
• Organizations can make use of APIs to obtain the capability rather than
having to build it again.
• Everyone wins!
10
Anatomy of modern API – REST and JSON
– API user (software program) calls the API using the standard HTTP(s)
protocol which is the same protocol used for accessing web site.
• https://maps.googleapis.com/maps/api/geocode/json?address=Maryl
and
» You can use the “search parameters” field in the HTTP request string to get
different information
– https://maps.googleapis.com/maps/api/geocode/json?address=Maryla
nd&language=fr
11
Anatomy of modern API – REST and JSON
12
So… What are the benefits of RESTful APIs
• Easy for API developers to develop and deploy, since they use the same
underlying capabilities as a web site
• JSON data structures are easy to read and compute using software
programs
13
How is this related to APIs used in health care?
• Fast Healthcare Interoperability Resource (FHIR) is the most widely used API
standard in health care
14
To Recap
Part 1:
Part 2:
15
Now to Part 2..
@ONC_HealthIT @HHSONC