Catching FHIR - HL7 › wp-content › uploads › 2015 › 03 › HL7... · using...

Post on 05-Jul-2020

16 views 0 download

Transcript of Catching FHIR - HL7 › wp-content › uploads › 2015 › 03 › HL7... · using...

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Catching FHIRHL7 FHIR

Hands-on Training Course

Ewout Kramer

March 2015

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Who am I?

Name: Ewout Kramer

Company: Furore, Amsterdam

Background:

FHIR core team, RIMBAA

Software developer & healthcare

architect

Contact:

e.kramer@furore.com

www.thefhirplace.com

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Program

Introduction to FHIR

The Resource and REST

Exercise - Requesting a Patient resource

Deconstructing the FHIR data model

Exercise - Editing a Resource Instance

Bundles

Simple search and search demo

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

INTRODUCTION TO FHIR

© 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 Manifesto

Focus on implementers

Keep common scenarios simple

Leverage existing technologies

Provide human readability

Make content freely available

Demonstrate best practice governance

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Implementer Focus

Specification is written for one target audience:

implementers

Rationale, modeling approaches, etc. kept elsewhere

Multiple reference implementations from day 1

Publicly available test servers

Starter APIs published with spec

Delphi, C#, Java – more to come

Connectathons to verify specification approaches

Instances you can read and understand

Lots of examples (and they’re valid too)

using HL7.Fhir.Instance.Model;using HL7.Fhir.Instance.Parsers;using HL7.Fhir.Instance.Support;

XmlReader xr = XmlReader.Create(new StreamRead

IFhirReader r = new XmlFhirReader

// JsonTextReader jr = new JsonTe// new StreamRead// IFhirReader r = new JsonFhirRe

ErrorList errors = new ErrorList(LabReport rep = (LabReport)ResourAssert.IsTrue(errors.Count() == 0

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

WHAT’S IN THE BOX?

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Patient Prescription

Resources

© 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 80/20 rule

Design for the 80%, not 100%

Only include data elements in the artifacts if 80%

of all implementers of that artifact will use the data

element

Allow easy extension for the remaining 20%

of elements

which often make up 80% of current specs

Vocabulary approach to extension definition

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

+ =

Extensibility

© 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 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.

HTTP/1.1 200 OKContent-Type: application/json;charset=utf-8

Content-Length: 627

Content-Location: /fhir/Patient/1/history/1

Last-Modified: Sat, 03 May 2014 16:28:55 GMT

{"resourceType":"Patient","identifier":[{"use":"usu

al","label":"MRN","system":"urn:oid:1.2.36.146.59

5.217.0.1","value":"12345","period":{"start":"2001-

Transport

© 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 follow the industry...

Exchanges use XML & JSON

Collections represented using ATOM

Same technology that gives you your daily news

summary

Out-of-the-box publish/subscribe

Support for REST: Web calls work the same

way they do for Facebook & Twitter

Rely on HTTPS, OAuth, etc. for security

functions

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Paradigms

FHIR supports 4 interoperability paradigms

REST Documents

Messages Services

© 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

Repository

Regardless of paradigm

the content is the same

Lab System

Receive a lab result in a message…

FHIR MessageFHIR Document

…Package it in a discharge summary document

National

Exchange

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

DESIGN OF THE RESOURCE

Looking at FHIR Resources from a software engineering perspective

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Resources

“Resources” are:

Small logically discrete units of exchange

Defined behaviour and meaning

Known identity / location

Smallest unit of transaction

“of interest” to healthcare

V2: Sort of like Segments

V3: Sort of like CMETs

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

What is/isn’t a Resource?

Examples

Administrative

Patient, Location,

Encounter, Organization,

Clinical Concepts

AllergyIntolerance,

Questionnaire, Observation

Infrastructure

Document, Message,

Profile, Conformance

Non-examples

Gender

Too small

Blood Pressure

Too specific

Pregnancy

Too broad

Electronic Health Record

Too big

© 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

Narrative

Elements

ExtensionsExtensions

Structure of a Resource

Metadata

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Structure of a Resource(XML 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.

Human Readable

CDA taught HL7 a very important lesson

Even if the computers don’t understand 99% of

what you’re sending, that’s ok if they can properly

render it to a human clinician

This doesn’t just hold for documents –

important for messages, services, etc.

In FHIR, every resource is required to

have a human-readable expression

Can be direct rendering or human entered

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Resources in the spec

Let’s take a look at some Resources in

the specification….

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Composition vs. reference

FHIR makes composition and references

explicit:

References are in between Resources. No

context conduction across references – safe

retrieval as individual resources.

Composition is within a Resource: Components

have no meaning outside resource, no identity, no

separate access path except through resource

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Composition of a Resource

Resource Root

Resource Component

Simple & Complex

elements (may be

repeating)

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Composition

© 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

Practitioner

Patient

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.

http://fhirblog.com/2014/01/24/modelling-

encounters-with-fhir/

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Not a hierarchy!

Patient

Episode Episode

VisitVisit

Observation Order

Not an “electronic” version of a patient file…

© 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: an URL

http://server.org/fhir/Patient/1

endpoint

resource type

identifier

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

“Business” identifiers

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Patient

MRN 22234

“Ewout Kramer”

30-11-1972

Amsterdam

Resource metadata

Metadata

Resource Identities

http://fhir.hl7.org/Patient/23E455A3B

http://fhir.hl7.org/Patient/23E455A3B/_history/4

Last updated

2013-12-23T23:33:01+01:00

http://hl7.org/fhir/tag/profile

http://hl7.org/fhir/Profile/us-core

http://hl7.org/fhir/tag

http://example.org/fhir/Status#Test

© 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 SERVICE INTERFACEHow FHIR uses RESTful principles to communicate Resources

© 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?

“REpresentational State Transfer”

Represent your data as “resources”

Make “Resources” URI addressable

Use HTTP to do CRUD operations

Resources may be exchanged using

different representations

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Possibly distributed…

FHIR server @ hospitalA.org

Practitioner

Practitioner/87Organization

Organization/1

FHIR server @ lab.hospitalA.org

DiagnosticReport

DiagnosticReport/4445

Observation

Observation/3ff27

FHIR server @ pat.registry.org

Patient

Patient/223

subject

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

“Repository” model of healthcare

FHIR server

Patient ObservationPatientPatient Observation

Observation

DiagnosticReportOrganization

CreateUpdate

Query

Lab System

CreateUpdate

Hospital System

CreateUpdate

Query Subscribe

© 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

See the BOM?

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.

A Resource’s REST identity

In fact: an URL

http://server.org/fhir/Patient/1

endpoint

resource type

identifier

Note: This URL resolves to the current version of a resource

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Patient

MRN 22234

“Ewout Kramer”

30-11-1972

Amsterdam

Remember metadata?

Metadata

Resource Identities

http://fhir.hl7.org/Patient/23E455A3B

http://fhir.hl7.org/Patient/23E455A3B/_history/4

Last updated

2013-12-23T23:33:01+01:00

http://hl7.org/fhir/tag/profile

http://hl7.org/fhir/Profile/us-core

http://hl7.org/fhir/tag

http://example.org/fhir/Status#Test

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Tag metadata

GET /fhir/Patient/1 HTTP/1.1

HTTP/1.1 200 OK

Content-Location: http://server.com/fhir/Patient/1/_history/12

Last-Modified: Tue, 29 May 2012 23:45:32 GMT

Category: http://example.org/fhir/Status#Test; scheme="http://hl7.org/fhir/tag"; label="Our test tag"

http://hl7.org/fhir/tag A general tag

http://hl7.org/fhir/tag/profile

A profile tag - a claim that the Resource

conforms to the profile identified in the

term

http://hl7.org/fhir/tag/security A security label

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Mapping (meta)data toHTTP

Resource data

Resource id

Resource version

Last update date

Tags

http body

Url

Content-Location

header

Last-Modified header

Category header

© 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 “representations”

GET /fhir/Patient/1?_format=json HTTP/1.1

HTTP/1.1 200 OK

Content-Type: application/json+fhir;charset=utf-8

Content-Length: 787

GET /fhir/Patient/1 HTTP/1.1

Accept: application/json+fhir

HTTP/1.1 200 OK

Content-Type: application/json+fhir;charset=utf-8

Content-Length: 787

© 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 – CRUD & VERSIONSUpdating, creating & deleting single resources using REST

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

One more look at the header

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/12Last-Modified: Tue, 29 May 2012 23:45:32 GMT

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

For a specific version…

We have the version-specific URL

http://server.org/fhir/ (continued)

Patient/1/_history/4

endpoint

resource type

identifier version id

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Question

DO I REALLY HAVE TO IMPLEMENT

VERSIONS?

NO, You are not required to keep history, and may return

410 (Gone) on a “vread” for any request for an older version

than the current one!

© 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

Let’s look at these operations in the

specification….

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Mapping to verbs

create 2.1.10 The create interaction creates a new resource in a server assigned location. The create interaction is performed by an HTTP POST operation as shown:

POST [service-url]/[resourcetype] (?_format=mimeType)

read 2.1.6 The read interaction accesses the current contents of a resource. The interaction is performed by an HTTP GET operation as shown:

GET [service-url]/[resourcetype]/{id} (?_format=mimeType)

update 2.1.8 The update interaction creates a new current version for an existing resource or creates a new resource if no resource already exists for the given id. The update interaction is performed by an HTTP PUT operation as shown:

PUT [service-url]/[resourcetype]/{id} (?_format=mimeType)

delete 2.1.9 The delete interaction removes an existing resource. The interaction is performed by an HTTP DELETE operation as shown:

DELETE [service-url]/[resourcetype]/{id}

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Exercise #1

Fiddling around with Fiddler

&

Getting data from a FHIR test server

(20 minutes)

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Exercise #1

Install Fiddler2

Try getting a single patient:

• GET a patient with id ‘example’ (on spark.furore.com/fhir)

• Look at the response headers and validate that they are correct.

• Look at the xml and try to find an extension

• Find a resource reference and fetch the referenced Resource

• Try to get the same patient in JSON

‒ Using the _format parameter

‒ Using an Accept header

When you do a GET on a resource, there is another URL presentin the header. What happens if you try to GET that url?

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

DECONSTRUCTING THE FHIR DATAMODEL

The basic building blocks of FHIR

© 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 FHIR Elements

Resource

Narrative

Extensions

Metadata

Elements

Extensions

Primitives(integer, boolean,

string, instant)

Derived

Primitives(oid, uuid,

code, id)

Composite

Datatypes(HumanName,

Quantity, Period,

Address, Identifier )

Constrained

Types(Quantity:

Distance, Count,

Duration, Money)

use

use

use

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Start at the bottom: Primitives

boolean xs:boolean Values can be either true or false

integer xs:int A signed 32-bit integer

decimal xs:decimalA rational number. A true decimal, with

inbuilt precision (e.g. Java BigDecimal)

base64Binary xs:base64Binary A stream of bytes, base64 encoded

instant xs:dateTime

An instant in time - known at least to the

second and always includes a

timezone.

string xs:string A sequence of Unicode characters.

uri xs:anyURI A Uniform Resource Identifier Reference.

date

union of xs:date,

xs:gYearMonth,

xs:gYear

A date, or partial date as used in

human communication. No time zone.

dateTime

union of xs:dateTime,

xs:date,

xs:gYearMonth,

xs:gYear

A date, date-time or partial date as used

in human communication. If hours and

minutes are specified, a time zone must

be populated.

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Derived primitives

Using the ISO date/time with timezone

“1951”, “1951-06” and “1951-06-04”

“1951-06-04T10:57:34.0321+01”

“1951-06-04T10:57:34.0321Z”

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Level up: Composite 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.

Datatypes

Let’s take a look at the “Data Types” section of the FHIR

specification at

http://www.hl7.org/implement/standards/fhir/datatypes.html

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Coded types

Codes are defined in code systems

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Coded types

When used in a Resource, the modelers

include Bindings

Bindings specify which codes can be used

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

62

• Publication meta-

data

• Concepts from 1 or

more existing

systems

• Additional concepts

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Level up: resources

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

“Choice” properties

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

References

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Quick look at extensions

Resource

Narrative

Extensions

Metadata

Elements

Extensions

© 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

Organization“ACME Hospital”National Drive 322Orlando, FL

PatientMRN 22234“Ewout Kramer”30-11-1972Amsterdam

+ Haircolor BROWN

+ Taxoffice Id NLOB33233

You can extend:

- Resources

- Elements of Resources

- FHIR 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.

Extending a multiple birth

Key = location of formal definition

Value = value according to definition

© 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 extensions

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Quick look at narrative

Resource

Narrative

Extensions

Metadata

Elements

Extensions

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Narrative

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Exercise #2

Editing a Resource Instance -

by hand!

(45 minutes)

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Exercise #2

Store the patient from last exercise somewhere on your machine.

Look up the Patient resource and update it to match your own situation.Lookup the specification of Patient to see if there are other relevant elements you could use

Try to add an extension for your hair color

Try creating a new patient on the FHIR server withthis data

Why is hair color not a standard element on Patient?Would you make an extension for it? Are there (better?) alternatives for communicating a hair color?

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

BUNDLESHow FHIR uses Atom to communicate sets of resources

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Communicating lists

We need to communicate lists of Resources

Search result

History

Documents or messages

Multiple-resource inserts (“batches”)

So, we need an industry-standard to

represent lists, and a place to put our

metadata

© 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

Resource

Narrative

Elements

ExtensionsExtensions

Resource

Metadata

Bundle

Metadata

Resource

Resource

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Bundles

Atom RFC 4287 + Tombstones RFC 6721

Poll-based protocol for keeping up-to-date

with newsfeeds (RSS and Atom)

You can “subscribe” to a FHIR feed and get

updates

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

An example 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.

Patient

MRN 22234

“Ewout Kramer”

30-11-1972

Amsterdam

Resource metadata

Metadata

Resource Identity

http://fhir.hl7.org/Patient/23E455A3B

Last updated

2013-12-23T23:33:01+01:00

http://hl7.org/fhir/tag/profile

http://hl7.org/fhir/Profile/us-core

http://hl7.org/fhir/tag

http://example.org/fhir/Status#Test

© 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 Entry

Resource id

Last modified

Resource content

Human-readable form,

just like Resource.text

Tags

Version specific id

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

SEARCH FUNCTIONALITY

© 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 “all” patients

http://server.org/fhir/Patient

Always returns a paged feed

Use _count to indicate number of results per page

Special case of the “real” search operation:

http://server.org/fhir/Patient/_search?name=eve

http://server.org/fhir/Patient?name=eve

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Search (patient)

Each resource has a set of “standard”

search operations, so not every element

can be searched!:

Our last search

used this one

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Demo

Performing simple searches

Let’s try this out

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

WHAT’S NEXT?

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

Next Steps for you

Read the spec: http://hl7.org/fhir

Try implementing it

Come to a Connectathon!

fhir@lists.hl7.org

#FHIR

Implementor’s Skype Channel

StackOverflow: hl7 fhir tag

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

International Working Group Meeting

Mark Your Calendar and Join Us!

Paris, France

May 10 – 15

88

© 2012 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

International HL7 FHIR Developer DaysNovember 18-20, 2015 in Amsterdam

Education

Tutorials

Connectathon

Meet fellow developers

Put FHIR to the test

Networking

FHIR experts and authors on hand

http://fhir.furore.com/devdays

© 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 End –

Questions?