© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
GETTING STARTED WITH
FHIR
INTERNATIONAL DEVDAYS 2015 – Beginners Track
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
Relative – No technology can make integration as fast as we’d like
That’s why we’re here
Building blocks – more on these to follow
The Acronym
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
FHIR – DSTU2
3
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
4
FHIR – Nightly build
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
F..H..I..Resources
 Have defined behaviour and meaning
 Are FHIR’s unit of exchange
 Known identity / location
Examples
 Administrative: Patient, Location, Encounter, Organization, Episode
 Clinical Concepts: AllergyIntolerance, Questionnaire, Observation
 Devices: Metric, DeviceComponent
 Scheduling: Appointment, Availability, Slot
 Financial: Claim, Account, Coverage
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
Defined meaning
Let’s look at Resources in the spec….
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
(Complex) Datatypes
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
Extensions
8
Yes, but where are:
• citizenship
• mothersmaidenname,
• us-core-race
Don’t worry, you can add extensions: your own
elements – FHIR even defines a few favorite
ones!
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
The Case for Extensions
 Simple choice
 design for absolutely everything
 Or go for “the 80%” and allow extensions
 Everyone needs extensions, everyone
hates them
 Define, publish, find extensions
 Repository
 Documented just like resources
 Can be fetched & interpreted by clients
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
Standard extensions
10
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
Community Registry
11
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
Unit of Exchange
(XML example)
<Patient xmlns="http://hl7.org/fhir">
<id value="patient1"/>
<meta>
<versionId value="v2"/>
</meta>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
<p>Henry Levin the 7th</p>
</div>
</text>
<extension url="http://hl7.org/fhir/StructureDefinition/patient-birthTime">
<valueDateTime value="1932-09-24T14:35:45-05:00"/>
</extension>
<identifier>
<use value="usual"/>
<system value="http://acme.org/identifiers/mrn"/>
<value value="12345"/>
</identifier>
<name>
<family value="Levin"/>
<given value="Henry"/>
</name>
<gender value="male"/>
<birthDate value="1932-09-24"/>
<managingOrganization>
<reference value="Organization/123xyz"/>
<display value="Good Health Clinic"/>
</managingOrganization>
<active value="true"/>
</Patient>
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
A Resource’s identity
 In fact: a URL
http://server.org/fhir/Patient/example
endpoint
resource type
logical id
Can even paste this in a browser!
http://spark-dstu2.furore.com/fhir/Patient/example
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
Just a quick GET
GET /fhir/Patient/1 HTTP/1.1
HTTP/1.1 200 OK
Content-Type: application/xml+fhir;charset=utf-8
Content-Length: 787
Content-Location:
http://spark.furore.com/fhir/Patient/1/_history/12
Last-Modified: Tue, 29 May 2012 23:45:32 GMT
<?xml version="1.0" encoding="UTF-8"?>
<Patient xmlns="http://hl7.org/fhir"><identifier><label>SSN</label><identifier><system>
http://hl7.org/fhir/sid/usssn</system><id>444222222</id></identifier></identifier><name><use>official
</use><family>Everywoman</family><given>Eve</given></name><telecom><system>phone</system><value>555-
555 2003</value><use>work</use></telecom><gender><system>http://hl7.org/fhir/sid/v2-0001</system>
<code>F</code></gender><birthDate>1973-05-31</birthDate><address><use>home</use><line>2222 Home
Street</line></address><text><status>generated</status><div
xmlns="http://www.w3.org/1999/xhtml">Everywoman, Eve. SSN:444222222</div></text></Patient>
UTF-8
encoded
HTTP Verb + path
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
Diagnostic
Report Patient
Practitioner
Observation
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
Resource Reference
Example: part of DiagnosticReport
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
It’s all about combining
resources . . .
Diagnostic
Report
Patient
Practitioner
Observation
mpi.hospitalA.org/Practitioner/87
lab.hospitalA.org/DiagRep/4445
lab.hospitalA.org/Observation/3ff27
On the same
lab system
Organizational MPI
National patient
registry
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
REST:“Repository”
model of healthcare
18
Hospital System
POST
Patient
POST
Order
Notify new
Lab results
UPDATE
Patient
Lab System
POST
Lab resultGET
Orders
FHIR server
Observation
Patient Observation
Observation
Diagnostic
Report
Order
Order
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
REST in the spec…
19
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
Bundling resources
20
FHIR server
Obs
Dx
Report
Lab System
Post
Lab resultQuery
Orders
Order OrderOrder
Practitioner Practitioner
Order
Obs
Obs
“searchset Bundle” “transaction Bundle”
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
Bundle..is a resource!
21
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
On the wire…
 http://spark-dstu2.furore.com/fhir/Patient
 _format = xml, _format = json
 Notice the <link>
 And then <entry>, <entry>, ….
22
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
Summary
23
Read
Search
FHIR server
Observation
Patient
Diagnostic
Report
Update
Order
DeleteCreate
Bundle
Resource
ElementsMetadata
Narrative
Extension
Data Types
History
Transaction
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
Help!!
24
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
The cast…
 http://hl7.org/fhir/
 http://hl7.org/fhir/resourcelist.html
 http://hl7.org/fhir/datatypes.html
 http://hl7.org/fhir/patient-extensions.html
 http://simplifier.net
 http://hl7.org/fhir/http.html
 http://hl7.org/fhir/bundle.html
 http://fhir.furore.com/cheatsheet
25
© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
Questions?
26

FHIR DevDays 2015 - introduction to FHIR

  • 1.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. GETTING STARTED WITH FHIR INTERNATIONAL DEVDAYS 2015 – Beginners Track
  • 2.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. Relative – No technology can make integration as fast as we’d like That’s why we’re here Building blocks – more on these to follow The Acronym
  • 3.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. FHIR – DSTU2 3
  • 4.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. 4 FHIR – Nightly build
  • 5.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. F..H..I..Resources  Have defined behaviour and meaning  Are FHIR’s unit of exchange  Known identity / location Examples  Administrative: Patient, Location, Encounter, Organization, Episode  Clinical Concepts: AllergyIntolerance, Questionnaire, Observation  Devices: Metric, DeviceComponent  Scheduling: Appointment, Availability, Slot  Financial: Claim, Account, Coverage
  • 6.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. Defined meaning Let’s look at Resources in the spec….
  • 7.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. (Complex) Datatypes
  • 8.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. Extensions 8 Yes, but where are: • citizenship • mothersmaidenname, • us-core-race Don’t worry, you can add extensions: your own elements – FHIR even defines a few favorite ones!
  • 9.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. The Case for Extensions  Simple choice  design for absolutely everything  Or go for “the 80%” and allow extensions  Everyone needs extensions, everyone hates them  Define, publish, find extensions  Repository  Documented just like resources  Can be fetched & interpreted by clients
  • 10.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. Standard extensions 10
  • 11.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. Community Registry 11
  • 12.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. Unit of Exchange (XML example) <Patient xmlns="http://hl7.org/fhir"> <id value="patient1"/> <meta> <versionId value="v2"/> </meta> <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"> <p>Henry Levin the 7th</p> </div> </text> <extension url="http://hl7.org/fhir/StructureDefinition/patient-birthTime"> <valueDateTime value="1932-09-24T14:35:45-05:00"/> </extension> <identifier> <use value="usual"/> <system value="http://acme.org/identifiers/mrn"/> <value value="12345"/> </identifier> <name> <family value="Levin"/> <given value="Henry"/> </name> <gender value="male"/> <birthDate value="1932-09-24"/> <managingOrganization> <reference value="Organization/123xyz"/> <display value="Good Health Clinic"/> </managingOrganization> <active value="true"/> </Patient>
  • 13.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. A Resource’s identity  In fact: a URL http://server.org/fhir/Patient/example endpoint resource type logical id Can even paste this in a browser! http://spark-dstu2.furore.com/fhir/Patient/example
  • 14.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. Just a quick GET GET /fhir/Patient/1 HTTP/1.1 HTTP/1.1 200 OK Content-Type: application/xml+fhir;charset=utf-8 Content-Length: 787 Content-Location: http://spark.furore.com/fhir/Patient/1/_history/12 Last-Modified: Tue, 29 May 2012 23:45:32 GMT <?xml version="1.0" encoding="UTF-8"?> <Patient xmlns="http://hl7.org/fhir"><identifier><label>SSN</label><identifier><system> http://hl7.org/fhir/sid/usssn</system><id>444222222</id></identifier></identifier><name><use>official </use><family>Everywoman</family><given>Eve</given></name><telecom><system>phone</system><value>555- 555 2003</value><use>work</use></telecom><gender><system>http://hl7.org/fhir/sid/v2-0001</system> <code>F</code></gender><birthDate>1973-05-31</birthDate><address><use>home</use><line>2222 Home Street</line></address><text><status>generated</status><div xmlns="http://www.w3.org/1999/xhtml">Everywoman, Eve. SSN:444222222</div></text></Patient> UTF-8 encoded HTTP Verb + path
  • 15.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. Diagnostic Report Patient Practitioner Observation
  • 16.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. Resource Reference Example: part of DiagnosticReport
  • 17.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. It’s all about combining resources . . . Diagnostic Report Patient Practitioner Observation mpi.hospitalA.org/Practitioner/87 lab.hospitalA.org/DiagRep/4445 lab.hospitalA.org/Observation/3ff27 On the same lab system Organizational MPI National patient registry
  • 18.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. REST:“Repository” model of healthcare 18 Hospital System POST Patient POST Order Notify new Lab results UPDATE Patient Lab System POST Lab resultGET Orders FHIR server Observation Patient Observation Observation Diagnostic Report Order Order
  • 19.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. REST in the spec… 19
  • 20.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. Bundling resources 20 FHIR server Obs Dx Report Lab System Post Lab resultQuery Orders Order OrderOrder Practitioner Practitioner Order Obs Obs “searchset Bundle” “transaction Bundle”
  • 21.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. Bundle..is a resource! 21
  • 22.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. On the wire…  http://spark-dstu2.furore.com/fhir/Patient  _format = xml, _format = json  Notice the <link>  And then <entry>, <entry>, …. 22
  • 23.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. Summary 23 Read Search FHIR server Observation Patient Diagnostic Report Update Order DeleteCreate Bundle Resource ElementsMetadata Narrative Extension Data Types History Transaction
  • 24.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. Help!! 24
  • 25.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. The cast…  http://hl7.org/fhir/  http://hl7.org/fhir/resourcelist.html  http://hl7.org/fhir/datatypes.html  http://hl7.org/fhir/patient-extensions.html  http://simplifier.net  http://hl7.org/fhir/http.html  http://hl7.org/fhir/bundle.html  http://fhir.furore.com/cheatsheet 25
  • 26.
    © 2012 HL7® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. Questions? 26