SlideShare a Scribd company logo
1 of 134
© 2016 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.
HL7 FHIR for Developers
HL7 New Zealand
Auckland, June 2016
Brian Postlethwaite
David Hay
Peter Jordan
Page 2 • HL7 New Zealand
Programme
Page 3 • HL7 New Zealand
Optional afternoon sessions
• a) Exporting/publishing legacy content
• b) FHIR based Referrals – Demonstrations of the maturity
Questionnaire
• c) FHIR Provider Directories – The global position
• d) Integrating SMART on FHIR
• e) How clinFHIR integrates with FHIR
• f) streams for chat
• Anything else you might want…
Page 4 • HL7 New Zealand
SNOMED CT Expo 2016
27-28 October
Te Papa Tongarewa
Wellington NZ
www.snomedexpo.org
@SnomedCT
International audience
Four presentation streams
Hackathon starts August
FHIR: a deep dive for developers
Page 6 • HL7 New Zealand
Elevator speech
• FHIR is
– About clinical information exchange
– Resources to represent clinical ‘things’
– A well defined API supporting all paradigms
– An incredible community
– A platform for expansion
• Ecosystem
• Decision support
• Quality metrics
• Conversion
– Spreading like <insert pun here>
6
Page 7 • HL7 New Zealand
Contents of this tutorial
• Agenda
– General Comments
– Resources
– Profiling
– Exchange
– Moving on
• Assumption
– You have basic familiarity with FHIR
General comments
Page 9 • HL7 New Zealand
DSTU/STU?
• It’s a release/publication status
– Draft Standard For Trial Use – relabelled STU
• Current version is STU2
– This presentation is based on STU2
• Next version (unfinished) is STU3
– Ballot end of year
– Will describe main changes at end
• FHIR Maturity model
Page 10 • HL7 New Zealand
Test Servers & tools
• Public test servers
– Varying capability
– HAPI CLI
• (http://jamesagnew.github.io/hapi-fhir/doc_cli.html)
– Invaluable to experiment and learn
• Libraries
– C#, Java, others
• Tools you need
– Modern web browser
– REST client
– XML/Json editor
– IDE of choice
10
Page 11 • HL7 New Zealand
clinFHIR
• An educational tool
– Built to support Clinician Connectathon
• clinFHIR.com
– Resource Builder
– Simple Profile Builder
– Extension Definition
– ValueSet
11
Page 12 • HL7 New Zealand
The community
• http://www.fhir.org/
• https://chat.fhir.org/
– NZ Stream
• http://community.fhir.org/
• fhir@lists.hl7.org
• http://wiki.hl7.org/index.php?title=FHIR
• http://wiki.hl7.org/index.php?title=FHIR_gForge_Tracker
12
Page 13 • HL7 New Zealand
The specification is your friend: Hl7.org/fhir
13
Page 14 • HL7 New Zealand
The core
• Content
– Resources
• Exchange - API
– FHIR supports 4 interoperability
paradigms
– Same resources for all
REST Documents
Messages Services
Page 15 • HL7 New Zealand
Architectures
15
FHIR
Broker
v3
v2
PHR
FHIR
App
Comm.
Interface
DB
FHIR
Page 16 • HL7 New Zealand
Repository model – NZ EHR
Vendor Neutral Repository
FHIRFHIRFHIR
GP Hospital Mobile
N
Notify
(Subscription)
FHIR resources
Page 18 • HL7 New Zealand
Resources
Technically, all resources defined in StructureDefinition
(also used for profiling)
Page 19 • HL7 New Zealand
Resource Type Hierarchy
19
Page 20 • HL7 New Zealand
Resource
Narrative
Elements
ExtensionsExtensions
Structure of a Domain Resource
Metadata
Page 21 • HL7 New Zealand
Resource Example
Page 22 • HL7 New Zealand
Specification
• Review in Spec
– Patient
Page 23 • HL7 New Zealand
References between resources
Coded Properties
type
bodySuite
indication
performer.role
complication
relatedItem.type
Other Properties
identifier (Identifier)
outcome (String)
PROCEDURE
PATIENT
DIAGNOSTIC REPORTCONDITION
Subject
ReportRelatedItem
Encounter Performer
ENCOUNTER PRACTITIONER
Page 25 • HL7 New Zealand
References
Page 26 • HL7 New Zealand
Contained versus reference
• References to external
resources
– When can be identified
– Preferred
• More flexible
• Contained resources
– When can’t be identified
– Complete resource
• No text
– Only useable within parent
<Patient>
…
<managingOrganization>
<reference value="Organization/1"/>
</managingOrganization>
…
</Patient>
<Patient>
<contained>
<Organization>
<id value="org1"/>
</Organization>
</contained>
…
<managingOrganization>
<reference value="#org1"/>
</managingOrganization>
…
</Patient>
Page 27 • HL7 New Zealand
XML & JSON
27 Interconversion requires structure knowledge
Page 28 • HL7 New Zealand
A Resource’s identity
• In fact: an URL
– http://server.org/fhir/Patient/1
endpoint
resource type
id
Note: This URL resolves to the current version of a resource
on a given server
Page 29 • HL7 New Zealand
“Business” identifiers
Page 30 • HL7 New Zealand
Patient
MRN 22234
“Ewout Kramer”
30-11-1972
Amsterdam
Resource metadata
Metadata
…
<id value="4705149-patient"/>
<meta>
<versionId value="4"/>
<lastUpdated value="2016-08-10T16:18:46Z"/>
<profile value=… />
<security value=…/>
<tags value=…/>
</meta>
…
Page 31 • HL7 New Zealand
The FHIR Elements
Resource
Narrative
Extensions
Metadata
Elements
Extensions
Primitives
(integer, boolean,
string, instant)
Derived
Primitives
(oid, uuid,
code, id)
Complex
Datatypes
(HumanName,
Quantity, Period,
Address, Identifier )
Constrained
Types
(Quantity:
Distance, Count,
Duration, Money)
use
use
use
http://www.hl7.org/implement/standards/fhir/datatypes.html
Page 32 • HL7 New Zealand
Element Hierarchy
32
Page 33 • HL7 New Zealand
Primitive data types
instant
decimal
integer
unsignedInt postiveInt code id
oid
markdown
base64Binary string url
boolean
dateTimetime date
Element
Page 34 • HL7 New Zealand
Complex data types
Ratio
Timing
Coding
Age Distance SimpleQuantity Duration Count
AttachmentPeriod Range
Element
Identifier
Signature
CodeableConcept Quantity SampledData ContactPoint
HumanName
Annotation
Address
Money
Page 36 • HL7 New Zealand
CodeableConcept
Page 37 • HL7 New Zealand
“Choice” properties
Page 38 • HL7 New Zealand
Narrative
Page 39 • HL7 New Zealand
NamingSystem resource
• Define the ‘system’ element
– CodeableConcept / Coding
– Identifier
• Some systems defined in spec
– (No NamingSystem required)
• Governance
– Many should be national – eg for NHI, HPI
Page 41 • HL7 New Zealand
Coded types
• code, Coding, CodeableConcept, (Quantity)
• Possible values defined in ValueSet resource
– Binding Strength
• Required (must come from set)
• Extensible (may use alternate if have to)
• Preferred (don’t have to, but should)
• Example (set isn’t specified)
– Profile can tighten
Page 43 • HL7 New Zealand
Examples
• Code: "status" : "confirmed"
• Coding: {
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"code": "C3214954",
"display": "cashew nut allergenic extract Injectable"
}
• CodeableConcept: {
"coding": [{
"system": "http://snomed.info/sct",
"code": "39579001",
"display": "Anaphylactic reaction“
}],
"text" : "Anaphylaxis"
}
Page 44 • HL7 New Zealand
ValueSet resource
• Defines list of possible values for a particular context
• Can reference external Terminology/s
– Or define own sets
• Why?
– A common valueSet improves recording consistency
– Improves user experience (pick lists)
• Examples in New Zealand
– ED diagnoses (derived from SNOMED)
– NZ POCS (Pathology Observation Code Set) (derived from LOINC)
– List of NZ Iwi (defined in ValueSet)
Page 45 • HL7 New Zealand
Terminology Sub-system
• SNOMED CT / LOINC / RxNORM
• HGVS, ICPC, MIMS + 100s more
• ICD-X+
• ANZSCO, METEOR
• A drug formulary
• A config table in an application
• A list of enums in a java class
• Australian state codes
Code System:
Defines a set
of concepts
with a
coherent
meaning
Code
Display
Definition
Page 46 • HL7 New Zealand
Terminology Sub-system
Value Set:
A selection of a
set of codes for
use in a
particular
context
Code System:
Defines a set
of concepts
with a
coherent
meaning
Code
Display
Definition
Page 47 • HL7 New Zealand
Terminology Sub-system
Code System:
Defines a set
of concepts
with a
coherent
meaning
Code
Display
Definition
Element
Definition:
Type and
Value set
reference
Value Set:
A selection of a
set of codes for
use in a
particular
context
Binds
Page 48 • HL7 New Zealand
Terminology Sub-system
Code System:
Defines a set
of concepts
with a
coherent
meaning
Code
Display
Definition
Element
Definition:
Type and
Value set
reference
Value Set:
A selection of a
set of codes for
use in a
particular
context
Binds
Element:
code/
Coding/
CodeableConcept
Conforms
Page 49 • HL7 New Zealand
ValueSet for condition.code
{
"resourceType": "ValueSet",
"id": "valueset-condition-code",
"meta": {
"versionId": "1",
"lastUpdated": "2015-05-08T16:18:23Z",
},
"text": {
"status": "generated",
"div": ”Condition.code sample ValueSet"
},
"url": "http://hl7.org/fhir/vs/condition-code",
"version": "0.5.0",
"name": "Condition/Problem/Diagnosis Codes",
"publisher": "FHIR Project team",
"contact": [
{
"telecom": [
{
"system": "url",
"value": "http://hl7.org/fhir"
}
]
}
],
"description": "Example value set for
Condition/Problem/Diagnosis codes",
"copyright": "This value set includes content
from SNOMED CT, which is copyright © 2002+
International Health Terminology Standards
Development Organisation (IHTSDO), and
distributed by agreement between IHTSDO and
HL7. Implementer use of SNOMED CT is not
covered by this agreement",
"status": "draft",
"experimental": true,
"compose": {
"include": [
{
"system": "http://snomed.info/sct",
"filter": [
{
"property": "concept",
"op": "is-a",
"value": "404684003"
}
]
}
]
}
}
Page 50 • HL7 New Zealand
Terminology Server
• Provides ‘services’ for consumers to access terminology
– Hide the complex stuff from a consumer
• Uses Operations framework
– Get definition for a concept
– Find a concept
• Within a ValueSet
http://hl7.org/fhir/2015May/terminology-service.html
• Find Terms
• Get Term
Definition
Profiles
Page 52 • HL7 New Zealand
Profiling
• The basic resources are not enough
– Many different contexts in healthcare
• Specific implementations / Use Cases need to:
– Extend resources
– Constrain resources
– Specify code sets / terminologies
– Specify resources used
• Multiple supporting artifacts in FHIR
– ‘Conformance’ resources
• FHIR is a platform specification
– Profiles adapt it to specific purposes
– Doesn’t change wire format
• Discoverability / Manage expectations
• Profiling increasingly important
– Allows clinicians to express reqirements
– Tooling supports Clinicians and Analysts involvement
• Whole spec build on profiling infrastructure
Page 53 • HL7 New Zealand
Claiming conformance
• Profiles are like a template
– Servers indicate what profiles they support
– Clients can interrogate servers
• Conformance resource lists supported profiles
• http://107.170.196.80/resourceCreator.html?conformance=ohConforman
ce&hideNav
• Resource instances can ‘claim conformance’ to 1 or more
profiles
– Libraries developed to test this
– Can be conformant without claiming
• Cannot set defaults
– Can state what a value should be
Page 54 • HL7 New Zealand
Extensions
• Only most common elements in base resource
– Keeps the resources small
– (Adding everything was the problem with version 3)
• Extensions allow other elements to be defined
– Same capabilities (dataType) as core elements
• Including resource references and terminology bindings
– Can extend properties and datatypes as well as the resource
• Extensions are normal
– Expect all real implementations to use extensions
• ‘normal’ and modifierExtensions
– Normal extensions can be ignored by a recipient
– Unknown modifierExtensions cannot be ignored
Page 55 • HL7 New Zealand
Modifier Extensions
• Also a core part of FHIR
– Needed because some extensions can’t be safely ignored
– Can’t compute on an element containing an unrecognized modifier
extension. However, can:
• Reject instance
• Remove element containing unrecognized modifier extension
• Just display narrative
• Retrieve definition & seek human review
55
Page 56 • HL7 New Zealand
Extending a multiple birth
Key = location of formal definit
Value = value according to definition
Page 57 • HL7 New Zealand
Complex extensions
Page 58 • HL7 New Zealand
Profiling a resource
Specify that the identifier uses the
NHI – and is required
Limit names to just 1 (instead of 0..*)
Limit maritalStatus to different set of
codes (ValueSet)
Multiple Birth indicator only boolean
Indicate photo not supported
Add an extension to support
“Ethnicity”
Note: hardly any mandatory elements
in the core spec!
Page 59 • HL7 New Zealand
Slicing
• Specifying repeating elements
– Eg Blood Pressure (Observation.component)
– Composition (document sections)
• Constraining datatypes
– Eg MedicationDispense.medication
59
Page 60 • HL7 New Zealand
Forge
60
Page 61 • HL7 New Zealand
‘Conformance’ resources
• StructureDefinition
– The resource that ‘defines’ a resource
• core and ‘profiled’
• also used for extensions
• describes binding to ValueSets
• ValueSet
– Options for coded elements
• NamingSystem
– Defines system for Coding, Identifier
– Some in spec - somenot
61
Canonical URL
Page 62 • HL7 New Zealand
Relationships between conformance resources
62
URI vs URL
Canonical URL
Page 63 • HL7 New Zealand
A profiled resource Instance
63
{
"resourceType": "AllergyIntolerance",
"meta": {
"profile": [
"http://fhir.hl7.org.nz/dstu2/StructureDefinition/ohAllergyIntolerance"
]
},
"extension": [
{
"url": http://fhir.hl7.org.nz/dstu2/StructureDefinition/al-certainty”,
"valueCodeableConcept": {
"text": "really sure"
}
}
],
"patient": {
"reference": "Patient/14317",
"display": "Eve E. Everywoman "
}
}
Page 64 • HL7 New Zealand
Validating a conformance claim
• It’s only a claim…
• Tooling (java) that can check
– One resource can be conformant to multiple profiles
• For design, use $validate operation
– http://hl7.org/fhir/resource-operations.html#validate
– Or use XML schema / schematron
– Or java validator
64
Page 65 • HL7 New Zealand
Implementation Guide:
Data Access Framework
65
http://hl7.org/fhir/daf/d
af.html
Page 66 • HL7 New Zealand
Practical steps exposing FHIR data
• Gap analysis
– Extensions required
– Elements unsupported
• Find or Create extension definitions (StructureDefinition)
– Prefer re-use
– In Spec or Registry (simplifier)
– Create using forge/clinFHIR
• Local save – and/or to simplifier
• Any other ‘conformance’ resources
– NamingSystem (no tooling)
– ValueSet (clinFHIR for simple, NEHTA working on official tool)
• Build profile
– Forge at present (clinFHIR to come for simple)
• Update Conformance resource
• Create samples
– Can use clinFHIR
Page 67 • HL7 New Zealand
Viewing Profiles: clinFHIR
• Select Profile
– Look at structure
– Build resource
• http://107.170.196.80/resourceCreator.html
67
Page 68 • HL7 New Zealand
Naming things…
• All conformance resources need URL
– Note: ‘canonical’ URL – or URI
– What ‘base’ server?
• Currently HL7 NZ, but needs review
• ? National ‘governance’
– Is there a ‘naming convention’
– How will versioning work
• Server infrastructure
– Should NZ have its own registry?
Exchange (API)
Page 70 • HL7 New Zealand
Paradigms
• FHIR supports 4 interoperability paradigms
REST Documents
Messages Services
Page 71 • HL7 New Zealand
FHIR
Repository
Regardless of paradigm, the content is the same
Lab System
Receive a lab result in a message…
FHIR
Message
FHIR
Document
…Package it in a discharge summary docum
National
Exchange
Page 72 • HL7 New Zealand
REST SERVICE INTERFACE
How FHIR uses RESTful principles to communicate Resources
Page 73 • HL7 New Zealand
Possibly distributed…
FHIR server @ hospitalA.org
Practitioner
Practitioner/87
Organization
Organization/1
FHIR server @ lab.hospitalA.org
Diagnostic
Report
DiagnosticReport/4445
Observation
Observation/3ff27
FHIR server @ pat.registry.org
Patient
Patient/223
subject
Page 74 • HL7 New Zealand
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://fhir.furore.com/fhir/Patient/1/_history/1
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
Page 75 • HL7 New Zealand
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}
Page 76 • HL7 New Zealand
A Resource’s identity
• In fact: an URL
– http://server.org/fhir/Patient/1
endpoint
resource type
id
Note: This URL resolves to the current version of a resource
on a given server
Page 77 • HL7 New Zealand
Versioning
• Optional for a server (per resource)
• Can get history by
– Server
– Type
– Instance
• Id is url with /_history/{version) appended
• Search:
– [host]/_history
– [host]/Patient/_history
– [host]/Patient/1/_history
• Instance
– [host]/Patient/1/_history/2
Page 78 • HL7 New Zealand
Searching
• A big topic!
– Afternoon session
– Return Bundle
• In the spec
– Each resource has defined search parameters
– Types & qualifiers
• Custom search
Page 79 • HL7 New Zealand
Conformance resource
• Which FHIR version?
• Who can I contact?
• What’s the name of the software?
• Which Resources?
• What search operations?
• What formats?
• History
http://www.hl7.org/fhir/conformance.htm
Page 80 • HL7 New Zealand
OPERATIONS
80
Page 81 • HL7 New Zealand
FHIR Operations
• When more complex server logic required than simple CRUD
– Midway between REST & SOAP
• Some defined in spec. e.g.:
– Get all data for a patient
• /Patient/{id}/$everything
– Expand/filter terminology
• /ValueSet/{id}/$expand?filter=
• Can define custom services
– Still using FHIR resources
– Resources to define / inputs
Page 82 • HL7 New Zealand
SOA
• Using FHIR resources with SOA patterns
• More complex environments
• In the spec: http://hl7.org/fhir/services.html
82
Page 83 • HL7 New Zealand
DOCUMENTS
http://hl7.org/fhir/documents.html
83
Page 84 • HL7 New Zealand
Documents – are bundles
84
Observation
Resource
Composition Resource
Section
Device Resource
Condition Resource
List Resource
<Bundle>
<entry>
<Composition />
</entry>
<entry>
<Observation />
</entry>
<entry>
<Device />
</entry>
<entry>
<List/>
</entry>
<entry>
<Condition/>
</entry>
</Bundle>
AttesterMetadata Section
Section
Equivalent to CDA
Page 85 • HL7 New Zealand
Storing documents
• You can store your document using REST
– /Bundle (whole thing) - search supported
– /Binary (whole thing) – no search
– /Composition – composition only
• Note defined operation to reassemble
– / (server root)
• Process as individual – but ‘reassembly’ should be possible
Page 86 • HL7 New Zealand
MESSAGES
http://hl7.org/fhir/messaging.html
86
Page 87 • HL7 New Zealand
Messages – are bundles
87
Observation
Resource
MessageHeader Resource
source destination
Device Resource
Patient Resource
<Bundle>
<entry>
<MessageHeader />
</entry>
<entry>
<Observation />
</entry>
<entry>
<Patient />
</entry>
<entry>
<Device />
</entry>
</Bundle>
event
Equivalent to v2
Page 88 • HL7 New Zealand
Sending messages
• Again, REST not necessary, but…
• There is an explicit REST operation:
– [base]/$process-message
– No storage implied. Might be a router, converted to v2, etc. etc.
• The server can process them based on the event code and
return the response as another message (again a bundle).
Page 89 • HL7 New Zealand
MOVING ON…
Page 90 • HL7 New Zealand
In FHIR
• Implementation Guides
• Workflow
• FluentPath
– https://github.com/ewoutkramer/fhirpath
• FHIR Mapping Language
– http://hl7.org/fhir/2016May/mapping-language.html
• CDS Hooks
90
Page 91 • HL7 New Zealand
SMART
Page 92 • HL7 New Zealand
Security
• FHIR is not a security standard
– Leverages existing standards
• Security tags
• Specialized resources
– Provenance, AuditEvent
• http://hl7.org/fhir/security.html
92
Page 94 • HL7 New Zealand
STU3
• Expected end of this year
• Main Changes (from https://onfhir.hl7.org/)
– formats: no change to XML & JSON formats, but we will generate JSON
schema. Introduction of RDF, tied to an ontological base
– RESTful API: no change to existing API, bar some clarifications around
transactions. Maybe add Patch?
– Conformance – split out CodeSystem from Value set and minor changes to
other resources, including the use of FluentPath instead of XPath
– Core Clinical, Administrative & Financial resources – ongoing minor
changes in response to trial use and improved quality
– Continuing improvements to the Clinical Decision Support / Quality
Measure framework
– A new framework for workflow / task management
– Draft mapping framework and CCDA/FHIR mapping guides
Page 95 • HL7 New Zealand
National Infrastructure / ecosystem
• FHIR interfaces to
– NHI (Patient)
– HPI (Practitioner)
• ‘Conformance’ registries
– Profiles
– ValueSet
– NamingSystem
• Common services
– Terminology
– Audit
• Security / Privacy
– OAuth2
– Relationships
Page 96 • HL7 New Zealand
SNOMED CT Expo 2016
27-28 October
Te Papa Tongarewa
Wellington NZ
www.snomedexpo.org
@SnomedCT
International audience
Four presentation streams
Hackathon starts August
Page 97 • HL7 New Zealand
THANK YOU - QUESTIONS?
Afternoon session: Searching
Page 99 • HL7 New Zealand
ADVANCED SEARCH
http://hl7.org/fhir/2016May/search.html
Page 100 • HL7 New Zealand
Searching
• In the spec
– Relationship to path (in resource)
– Describe filters on each type
• Custom
– SearchParameter resource
– Reference in Conformance
• Servers
– Declare which searches they support
– Can be really hard!
• Use the test servers!
– clinFHIR to create demo data
Page 101 • HL7 New Zealand
Combining parameters
• Can search by GET & POST
• Always return a bundle
• Multiple parameters
– Specifying multiple parameters finds resources matching all params 
“AND”
• http://fhirtest.uhn.ca/baseDstu3/Patient?name=jones&gender=fe
male
– Parameters may list multiple values  “OR”
• http://fhirtest.uhn.ca/baseDstu3/Patient?name=patel,jones
Page 102 • HL7 New Zealand
Example: Patient
Page 103 • HL7 New Zealand
SearchParameter resource
Page 104 • HL7 New Zealand
SearchParameter example
http://fhir3.healthintersections.com.au/open/SearchParameter/Patient-Name
Page 105 • HL7 New Zealand
Advanced search
• Common Parameters
– _id
– _lastUpdated
– _tag
– _profile
– _security
– _text
– _content
– _list
– _type
– _query
105
• Search Result
Parameters
– sort
– count
– include
– revinclude
– summary
– elements
– contained
– containedType
Page 106 • HL7 New Zealand
Common parameters - I
• _id
– Query by Id (string)
• _lastUpdated
– When the resource was last updated (date)
• _tag
– From the appropriate meta element (token)
• _profile
– From the appropriate meta element (url)
• _security
– From the appropriate meta element (token)
106
Page 107 • HL7 New Zealand
Common parameters - II
• _text
– Search in text element (string)
• _content
– Search for text across the entire resource (string)
• _list
– Return resources referenced by a List resource
– Can use ‘current lists’ and other query
• http://hl7.org/fhir/lifecycle.html#current
• _query
– Custom named query
– Use OperationDefinition to define
107
Page 108 • HL7 New Zealand
Search Result Parameters - I
• _sort
– The order of returned results (format changing in STU-3)
• _count
– Specify a number of resources to include
• _include
– Include other resources (more detail soon)
• _revinclude
– Include resources that reference this one
• Eg provenance
Page 109 • HL7 New Zealand
Search Result Parameters - II
• _summary
– Return a subset
– true, false, text, data, count
– Resources marked as ‘SUBSETTED’
• _elements
– Specify elements to return (+mandatory)
– Resources marked as ‘SUBSETTED’
• _contained
– Whether search should include contained resources
– False (default), true, both
• _containedType
– With _contained – whether to return the container
Page 110 • HL7 New Zealand
Chained searches
• Search ‘within’ a resource
– Patient has a search for “name” and “identifier”.
– Observation has a search for “subject” (the id of the Patient, Group or
Device)
• [host]/Observation?subject.name={x}
• [host]/Observation?subject.identifier={y}
• But note: this still only works on the predefined search
parameters. You cannot just use any property of the
resource.
http://fhirtest.uhn.ca/baseDstu3/Observation?subject.name=patel
Page 111 • HL7 New Zealand
_Include
• Include related resources in the response
• Based on search parameters
• Server declares in conformance
• Format
– [host]/{type}?_include={source type}:{search parameter}:{target type}
• Eg
– [host]/MedicationOrder?_include=MedicationOrder:patient&criteria...
http://fhirtest.uhn.ca/baseDstu3/Observation?_id=99267&_include=Observation:encounter
Page 112 • HL7 New Zealand
Compartment
• Syntactic sugar for queries
• Resources that share common property
– Eg patient
• Purpose:
– Access mechanism for finding a set of related resources quickly
– Provide a definitional basis for applying access control to resources
quickly
• http://hl7.org/fhir/compartments.html
112
Page 113 • HL7 New Zealand
Meta tag
Page 114 • HL7 New Zealand
REST STUFF
And finally, the last REST operation (for now):
Page 115 • HL7 New Zealand
Possibly distributed…
FHIR server @ hospitalA.org
Practitioner
Practitioner/87
Organization
Organization/1
FHIR server @ lab.hospitalA.org
Diagnostic
Report
DiagnosticReport/4445
Observation
Observation/3ff27
FHIR server @ pat.registry.org
Patient
Patient/223
subject
Page 116 • HL7 New Zealand
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://fhir.furore.com/fhir/Patient/1/_history/1
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
Page 117 • HL7 New Zealand
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}
Page 118 • HL7 New Zealand
A Resource’s REST identity
• In fact: an URL
– http://server.org/fhir/Patient/1
endpoint
resource type
id
Note: This URL resolves to the current version of a resource
Page 119 • HL7 New Zealand
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://fhir.furore.com/fhir/Patient/1/_history/12
Last-Modified: Tue, 29 May 2012 23:45:32 GMT
Page 120 • HL7 New Zealand
For a specific version…
• We have the version-specific URL
http://server.org/fhir/ (continued)
Patient/1/_history/4
base path
resource type
identifier version id
Page 121 • HL7 New Zealand
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
Page 122 • HL7 New Zealand
To create a resource
• You POST the contents to an url which indicates the resource
type:
– E.g. http://server.org/fhir/Patient
• Supply body’s format in Content-Type header
• Server returns 201 (Created).
• Returns only the newly assigned version id URL in the
Location header.
Page 123 • HL7 New Zealand
To update a resource
• Use PUT on the resource’s URL, with the new contents in the
body
• Tell server the body’s format (xml/json) in the Content-Type
header
• Server returns 200 and the URL to new version in the
Content-Location header.
Page 124 • HL7 New Zealand
Using PUT to create
• Server might/might not allow you to PUT to an id that does
not yet exist.
• If it does: Server returns 201 and resource gets created at
that location
 client determines resource’s id!
• If it does not: server returns 405 (Method not allowed)
Page 125 • HL7 New Zealand
Version-aware updates
• Use eTag & ‘if-match’ header
– Server requires client to send ‘if-match’ header with current
eTag
– Server uses this to check whether you are updating the latest
version.
– Server will then return 409 (Conflict) if it has been updated
by someone else in the meantime
• http://hl7.org/fhir/http.html#versionaware
Page 126 • HL7 New Zealand
Conditional operations
• Eg create if not exist
– Search query in ‘if-none-exist’ header
• Especially useful in transactions, messages
• Create / Update / Delete
126
http://hl7.org/fhir/http.html
Page 127 • HL7 New Zealand
What’s a ‘deleted’ Resource?
• DELETE method
• Trying read operations will return in a 410 (Gone) result
instead of 404 (Not Found)
• The resource will not be returned by the search operation
• You can “undelete” by doing an update with fresh content
• Just a “marker” in a resource’s history
Page 128 • HL7 New Zealand
Version history - deletions
33, v12 – 2012-12-04
33, v13 – 2012-12-05
33, v14 – 2012-12-08
/server.org/fhir/Patient/33/_history/12
/server.org/fhir/Patient/33/_history/14
/server.org/fhir/Patient/33/_history/13
/server.org/fhir/Patient/33/_history/15
/server.org/fhir/Patient/33
33, v15 – 2012-12-09
33, v16 – 2012-12-10
DELETION
/server.org/fhir/Patient/33/_history/16
Page 129 • HL7 New Zealand
Version history - revival
33, v13 – 2012-12-05
33, v14 – 2012-12-08
/server.org/fhir/Patient/33/_history/14
/server.org/fhir/Patient/33/_history/13
/server.org/fhir/Patient/33/_history/15
/server.org/fhir/Patient/33
33, v15 – 2012-12-09
33, v16 – 2012-12-10
/server.org/fhir/Patient/33/_history/16
33, v17 – 2012-12-11
/server.org/fhir/Patient/33/_history/17
Page 130 • HL7 New Zealand
Operation Outcome
• When something goes wrong….return the
OperationOutcome Resource!
Page 131 • HL7 New Zealand
Lists of things
• Current Allergies, Medications, Conditions
• Use the List resource
• Can query through _current
• http://hl7.org/fhir/lifecycle.html#current
131
GET [base]/AllergyIntolerance?patient=42&_list=$current-alle
Page 132 • HL7 New Zealand
The Binary Endpoint
• Accepts any kind of content
• Stores the content as is, along with the content type
provided by the HTTP headers.
• Acts just like the normal Resource endpoints (but there is no
search)
• http://server.org/fhir/Binary/
Page 133 • HL7 New Zealand
Useful for Attachments
/Binary/23344
Page 134 • HL7 New Zealand
BUNDLES
Page 135 • HL7 New Zealand
Communicating lists
• We need to communicate lists of Resources
– Search result
– History
– Documents or messages
– Multiple-resource inserts (batches or transactions)
• Descend from Resource (not DomainResource)
– No text, extensions, contained
Page 136 • HL7 New Zealand
Query response
Page 137 • HL7 New Zealand
Example: Keeping in sync
• History of all resources on server
– http://server.org/fhir/_history
• History of all patient resources on server
– http://server.org/fhir/Patient/_history
• History of specific patient on server
– http://server.org/fhir/Patient/1/_history
• A history of all changes: updates and deletions, ordered by
newest first
• Limit with _since and _count
Page 138 • HL7 New Zealand
Transactions / Batches
• Multiple operations at once
– Transaction
• Related resources - Referential integrity
– Batch
• Unrelated
• Return bundle with outcomes
138
Page 139 • HL7 New Zealand
Bundles in a Library
• C# hides the processing of bundle
Bundle result = new Bundle() { Title = "Demo bundle" };
result.Entries.Add(new ResourceEntry<Patient>()
{ LastUpdated=DateTimeOffset.Now, Content = new Patient() });
result.Entries.Add(new DeletedEntry()
{ Id = new Uri("http://..."), When = DateTime.Now });
var bundleXml = FhirSerializer.SerializeBundleToXml(result);

More Related Content

What's hot

FHIR architecture overview for non-programmers by René Spronk
FHIR architecture overview for non-programmers by René SpronkFHIR architecture overview for non-programmers by René Spronk
FHIR architecture overview for non-programmers by René SpronkFurore_com
 
Session 4 - Bringing the pieces together - Detailed review of a reference ex...
Session 4 -  Bringing the pieces together - Detailed review of a reference ex...Session 4 -  Bringing the pieces together - Detailed review of a reference ex...
Session 4 - Bringing the pieces together - Detailed review of a reference ex...FIWARE
 
Rolling out FHIR - architecture and implementation considerations by Lloyd Mc...
Rolling out FHIR - architecture and implementation considerations by Lloyd Mc...Rolling out FHIR - architecture and implementation considerations by Lloyd Mc...
Rolling out FHIR - architecture and implementation considerations by Lloyd Mc...FHIR Developer Days
 
Patient matching in FHIR
Patient matching in FHIRPatient matching in FHIR
Patient matching in FHIRGrahame Grieve
 
Introduction to FHIR™
Introduction to FHIR™Introduction to FHIR™
Introduction to FHIR™Grahame Grieve
 
FHIR API for Java programmers by James Agnew
FHIR API for Java programmers by James AgnewFHIR API for Java programmers by James Agnew
FHIR API for Java programmers by James AgnewFHIR Developer Days
 
Session 1 - Introduction to i4Trust Data Spaces, building blocks, and roles |...
Session 1 - Introduction to i4Trust Data Spaces, building blocks, and roles |...Session 1 - Introduction to i4Trust Data Spaces, building blocks, and roles |...
Session 1 - Introduction to i4Trust Data Spaces, building blocks, and roles |...FIWARE
 
FHIR Documents by Lloyd McKenzie
FHIR Documents by Lloyd McKenzieFHIR Documents by Lloyd McKenzie
FHIR Documents by Lloyd McKenzieFHIR Developer Days
 
Session 5 - NGSI-LD Advanced Operations | Train the Trainers Program
Session 5 -  NGSI-LD Advanced Operations | Train the Trainers ProgramSession 5 -  NGSI-LD Advanced Operations | Train the Trainers Program
Session 5 - NGSI-LD Advanced Operations | Train the Trainers ProgramFIWARE
 
Fhir basics session 1 Introduction to Interoperabilty & Principles of FHIR
Fhir basics session 1 Introduction to Interoperabilty & Principles of FHIRFhir basics session 1 Introduction to Interoperabilty & Principles of FHIR
Fhir basics session 1 Introduction to Interoperabilty & Principles of FHIRKumar Satyam
 
Authoring Profiles in FHIR
Authoring Profiles in FHIRAuthoring Profiles in FHIR
Authoring Profiles in FHIREwout Kramer
 
Terminology, value-sets, codesystems by Lloyd McKenzie
Terminology, value-sets, codesystems by Lloyd McKenzieTerminology, value-sets, codesystems by Lloyd McKenzie
Terminology, value-sets, codesystems by Lloyd McKenzieFHIR Developer Days
 
FHIR API for .Net programmers by Mirjam Baltus
FHIR API for .Net programmers by Mirjam BaltusFHIR API for .Net programmers by Mirjam Baltus
FHIR API for .Net programmers by Mirjam BaltusFHIR Developer Days
 
Understanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsUnderstanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsTessa Mero
 
FHIR Profiles
FHIR ProfilesFHIR Profiles
FHIR ProfilesDavid Hay
 
Building an Integrated Healthcare Platform with FHIR®
Building an Integrated Healthcare Platform with FHIR®Building an Integrated Healthcare Platform with FHIR®
Building an Integrated Healthcare Platform with FHIR®WSO2
 
FHIR Profiling tutorial
FHIR Profiling tutorialFHIR Profiling tutorial
FHIR Profiling tutorialEwout Kramer
 

What's hot (20)

FHIR architecture overview for non-programmers by René Spronk
FHIR architecture overview for non-programmers by René SpronkFHIR architecture overview for non-programmers by René Spronk
FHIR architecture overview for non-programmers by René Spronk
 
Session 4 - Bringing the pieces together - Detailed review of a reference ex...
Session 4 -  Bringing the pieces together - Detailed review of a reference ex...Session 4 -  Bringing the pieces together - Detailed review of a reference ex...
Session 4 - Bringing the pieces together - Detailed review of a reference ex...
 
Rolling out FHIR - architecture and implementation considerations by Lloyd Mc...
Rolling out FHIR - architecture and implementation considerations by Lloyd Mc...Rolling out FHIR - architecture and implementation considerations by Lloyd Mc...
Rolling out FHIR - architecture and implementation considerations by Lloyd Mc...
 
Patient matching in FHIR
Patient matching in FHIRPatient matching in FHIR
Patient matching in FHIR
 
Introduction to FHIR™
Introduction to FHIR™Introduction to FHIR™
Introduction to FHIR™
 
FHIR API for Java programmers by James Agnew
FHIR API for Java programmers by James AgnewFHIR API for Java programmers by James Agnew
FHIR API for Java programmers by James Agnew
 
Hl7 & FHIR
Hl7 & FHIRHl7 & FHIR
Hl7 & FHIR
 
Session 1 - Introduction to i4Trust Data Spaces, building blocks, and roles |...
Session 1 - Introduction to i4Trust Data Spaces, building blocks, and roles |...Session 1 - Introduction to i4Trust Data Spaces, building blocks, and roles |...
Session 1 - Introduction to i4Trust Data Spaces, building blocks, and roles |...
 
Introduction to HL7 FHIR
Introduction to HL7 FHIRIntroduction to HL7 FHIR
Introduction to HL7 FHIR
 
FHIR Documents by Lloyd McKenzie
FHIR Documents by Lloyd McKenzieFHIR Documents by Lloyd McKenzie
FHIR Documents by Lloyd McKenzie
 
Session 5 - NGSI-LD Advanced Operations | Train the Trainers Program
Session 5 -  NGSI-LD Advanced Operations | Train the Trainers ProgramSession 5 -  NGSI-LD Advanced Operations | Train the Trainers Program
Session 5 - NGSI-LD Advanced Operations | Train the Trainers Program
 
An Introduction to HL7 FHIR
An Introduction to HL7 FHIRAn Introduction to HL7 FHIR
An Introduction to HL7 FHIR
 
Fhir basics session 1 Introduction to Interoperabilty & Principles of FHIR
Fhir basics session 1 Introduction to Interoperabilty & Principles of FHIRFhir basics session 1 Introduction to Interoperabilty & Principles of FHIR
Fhir basics session 1 Introduction to Interoperabilty & Principles of FHIR
 
Authoring Profiles in FHIR
Authoring Profiles in FHIRAuthoring Profiles in FHIR
Authoring Profiles in FHIR
 
Terminology, value-sets, codesystems by Lloyd McKenzie
Terminology, value-sets, codesystems by Lloyd McKenzieTerminology, value-sets, codesystems by Lloyd McKenzie
Terminology, value-sets, codesystems by Lloyd McKenzie
 
FHIR API for .Net programmers by Mirjam Baltus
FHIR API for .Net programmers by Mirjam BaltusFHIR API for .Net programmers by Mirjam Baltus
FHIR API for .Net programmers by Mirjam Baltus
 
Understanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple StepsUnderstanding REST APIs in 5 Simple Steps
Understanding REST APIs in 5 Simple Steps
 
FHIR Profiles
FHIR ProfilesFHIR Profiles
FHIR Profiles
 
Building an Integrated Healthcare Platform with FHIR®
Building an Integrated Healthcare Platform with FHIR®Building an Integrated Healthcare Platform with FHIR®
Building an Integrated Healthcare Platform with FHIR®
 
FHIR Profiling tutorial
FHIR Profiling tutorialFHIR Profiling tutorial
FHIR Profiling tutorial
 

Viewers also liked

Introduction to FHIR - New Zealand Seminar, June 2014
Introduction to FHIR - New Zealand Seminar, June 2014Introduction to FHIR - New Zealand Seminar, June 2014
Introduction to FHIR - New Zealand Seminar, June 2014David Hay
 
Overview of the New Zealand Maternity Clinical Information System
Overview of the New Zealand Maternity Clinical Information SystemOverview of the New Zealand Maternity Clinical Information System
Overview of the New Zealand Maternity Clinical Information SystemHealth Informatics New Zealand
 
GNU Health and HL7
GNU Health and HL7GNU Health and HL7
GNU Health and HL7e2jk
 
Potential uses for FHIR in New Zealand by Peter Jordan
Potential uses for FHIR in New Zealand by  Peter JordanPotential uses for FHIR in New Zealand by  Peter Jordan
Potential uses for FHIR in New Zealand by Peter JordanDavid Hay
 
Hl7 2016 baltimore connectathon provider directories and scheduling
Hl7 2016 baltimore connectathon provider directories and schedulingHl7 2016 baltimore connectathon provider directories and scheduling
Hl7 2016 baltimore connectathon provider directories and schedulingDavid Hay
 
Fhir seminar hinz 2015
Fhir seminar hinz 2015Fhir seminar hinz 2015
Fhir seminar hinz 2015David Hay
 
Fhir your applications
Fhir your applicationsFhir your applications
Fhir your applicationsVictor Chai
 
Redox Webinar Slides
Redox Webinar SlidesRedox Webinar Slides
Redox Webinar SlidesRedox Engine
 
SMART on FHIR by Scot Post van der Burg
SMART on FHIR by Scot Post van der BurgSMART on FHIR by Scot Post van der Burg
SMART on FHIR by Scot Post van der BurgFHIR Developer Days
 
HL7 Clinical Document Architecture: Overview and Applications
HL7 Clinical Document Architecture: Overview and ApplicationsHL7 Clinical Document Architecture: Overview and Applications
HL7 Clinical Document Architecture: Overview and ApplicationsNawanan Theera-Ampornpunt
 
The Austin Health Diabetes Discovery Initiative: Using technology to support ...
The Austin Health Diabetes Discovery Initiative: Using technology to support ...The Austin Health Diabetes Discovery Initiative: Using technology to support ...
The Austin Health Diabetes Discovery Initiative: Using technology to support ...Health Informatics New Zealand
 
02 oemrbasico2 130604094041-phpapp02
02 oemrbasico2 130604094041-phpapp0202 oemrbasico2 130604094041-phpapp02
02 oemrbasico2 130604094041-phpapp02Sergio Sanchez
 
Hl7 Standards, Reference Information Model & Clinical Document Architecture
Hl7 Standards, Reference Information Model & Clinical Document ArchitectureHl7 Standards, Reference Information Model & Clinical Document Architecture
Hl7 Standards, Reference Information Model & Clinical Document ArchitectureNawanan Theera-Ampornpunt
 
Fundamentals of HL7 CDA & Implementing HL7 CDA
Fundamentals of HL7 CDA & Implementing HL7 CDAFundamentals of HL7 CDA & Implementing HL7 CDA
Fundamentals of HL7 CDA & Implementing HL7 CDAHL7 New Zealand
 
The Innovation Doctor Is In: How SMART on FHIR Will Evolve EHRs
The Innovation Doctor Is In: How SMART on FHIR Will Evolve EHRsThe Innovation Doctor Is In: How SMART on FHIR Will Evolve EHRs
The Innovation Doctor Is In: How SMART on FHIR Will Evolve EHRsMedullan
 
The FHIR burns brighter (what's new in DSTU2)
The FHIR burns brighter (what's new in DSTU2)The FHIR burns brighter (what's new in DSTU2)
The FHIR burns brighter (what's new in DSTU2)Ewout Kramer
 

Viewers also liked (20)

Introduction to FHIR - New Zealand Seminar, June 2014
Introduction to FHIR - New Zealand Seminar, June 2014Introduction to FHIR - New Zealand Seminar, June 2014
Introduction to FHIR - New Zealand Seminar, June 2014
 
Overview of the New Zealand Maternity Clinical Information System
Overview of the New Zealand Maternity Clinical Information SystemOverview of the New Zealand Maternity Clinical Information System
Overview of the New Zealand Maternity Clinical Information System
 
GNU Health and HL7
GNU Health and HL7GNU Health and HL7
GNU Health and HL7
 
Potential uses for FHIR in New Zealand by Peter Jordan
Potential uses for FHIR in New Zealand by  Peter JordanPotential uses for FHIR in New Zealand by  Peter Jordan
Potential uses for FHIR in New Zealand by Peter Jordan
 
Hl7 2016 baltimore connectathon provider directories and scheduling
Hl7 2016 baltimore connectathon provider directories and schedulingHl7 2016 baltimore connectathon provider directories and scheduling
Hl7 2016 baltimore connectathon provider directories and scheduling
 
Fhir seminar hinz 2015
Fhir seminar hinz 2015Fhir seminar hinz 2015
Fhir seminar hinz 2015
 
Fhir your applications
Fhir your applicationsFhir your applications
Fhir your applications
 
Introduction to hl7 v3
Introduction to hl7 v3Introduction to hl7 v3
Introduction to hl7 v3
 
Smart on FHIR
Smart on FHIRSmart on FHIR
Smart on FHIR
 
Redox Webinar Slides
Redox Webinar SlidesRedox Webinar Slides
Redox Webinar Slides
 
Cda
CdaCda
Cda
 
SMART on FHIR by Scot Post van der Burg
SMART on FHIR by Scot Post van der BurgSMART on FHIR by Scot Post van der Burg
SMART on FHIR by Scot Post van der Burg
 
HL7 Clinical Document Architecture: Overview and Applications
HL7 Clinical Document Architecture: Overview and ApplicationsHL7 Clinical Document Architecture: Overview and Applications
HL7 Clinical Document Architecture: Overview and Applications
 
The Austin Health Diabetes Discovery Initiative: Using technology to support ...
The Austin Health Diabetes Discovery Initiative: Using technology to support ...The Austin Health Diabetes Discovery Initiative: Using technology to support ...
The Austin Health Diabetes Discovery Initiative: Using technology to support ...
 
02 oemrbasico2 130604094041-phpapp02
02 oemrbasico2 130604094041-phpapp0202 oemrbasico2 130604094041-phpapp02
02 oemrbasico2 130604094041-phpapp02
 
Hl7 Standards, Reference Information Model & Clinical Document Architecture
Hl7 Standards, Reference Information Model & Clinical Document ArchitectureHl7 Standards, Reference Information Model & Clinical Document Architecture
Hl7 Standards, Reference Information Model & Clinical Document Architecture
 
Fundamentals of HL7 CDA & Implementing HL7 CDA
Fundamentals of HL7 CDA & Implementing HL7 CDAFundamentals of HL7 CDA & Implementing HL7 CDA
Fundamentals of HL7 CDA & Implementing HL7 CDA
 
The Innovation Doctor Is In: How SMART on FHIR Will Evolve EHRs
The Innovation Doctor Is In: How SMART on FHIR Will Evolve EHRsThe Innovation Doctor Is In: How SMART on FHIR Will Evolve EHRs
The Innovation Doctor Is In: How SMART on FHIR Will Evolve EHRs
 
The FHIR burns brighter (what's new in DSTU2)
The FHIR burns brighter (what's new in DSTU2)The FHIR burns brighter (what's new in DSTU2)
The FHIR burns brighter (what's new in DSTU2)
 
Wado and FHIR
Wado and FHIRWado and FHIR
Wado and FHIR
 

Similar to HL7 New Zealand: FHIR for developers

Accessing SNOMED CT With FHIR Terminology Services
Accessing SNOMED CT With FHIR Terminology ServicesAccessing SNOMED CT With FHIR Terminology Services
Accessing SNOMED CT With FHIR Terminology ServicesPeter Jordan
 
Christchurch presentation
Christchurch presentationChristchurch presentation
Christchurch presentationDavid Hay
 
FHIR for implementers in New Zealand
FHIR for implementers in New ZealandFHIR for implementers in New Zealand
FHIR for implementers in New ZealandDavid Hay
 
FHIR - as a new currency of exchange in New Zealand
FHIR - as a new currency of exchange in New ZealandFHIR - as a new currency of exchange in New Zealand
FHIR - as a new currency of exchange in New ZealandDavid Hay
 
FHIR intro and background at HL7 Germany 2014
FHIR intro and background at HL7 Germany 2014FHIR intro and background at HL7 Germany 2014
FHIR intro and background at HL7 Germany 2014Ewout Kramer
 
Fire and Ice - FHIR in New Zealand - David Hay
Fire and Ice - FHIR in New Zealand - David HayFire and Ice - FHIR in New Zealand - David Hay
Fire and Ice - FHIR in New Zealand - David HayHL7 New Zealand
 
Fhir foundation (grahame)
Fhir foundation (grahame)Fhir foundation (grahame)
Fhir foundation (grahame)DevDays
 
FHIR Client Development with .NET
FHIR Client Development with .NETFHIR Client Development with .NET
FHIR Client Development with .NETBrian Postlethwaite
 
BizTalk on FHIR
BizTalk on FHIRBizTalk on FHIR
BizTalk on FHIRBizTalk360
 
FHIR for Hackers
FHIR for HackersFHIR for Hackers
FHIR for HackersJames Agnew
 
Smart cities no ai without ia
Smart cities   no ai without iaSmart cities   no ai without ia
Smart cities no ai without iaFredric Landqvist
 
DataCite and its DOI infrastructure - IASSIST 2013
DataCite and its DOI infrastructure - IASSIST 2013DataCite and its DOI infrastructure - IASSIST 2013
DataCite and its DOI infrastructure - IASSIST 2013Frauke Ziedorn
 
DataCite – Bridging the gap and helping to find, access and reuse data – Herb...
DataCite – Bridging the gap and helping to find, access and reuse data – Herb...DataCite – Bridging the gap and helping to find, access and reuse data – Herb...
DataCite – Bridging the gap and helping to find, access and reuse data – Herb...OpenAIRE
 
ICIC 2014 New Product Introduction ProQuest
ICIC 2014 New Product Introduction ProQuestICIC 2014 New Product Introduction ProQuest
ICIC 2014 New Product Introduction ProQuestDr. Haxel Consult
 
Health Information Exchange Standards - Compliance via Integration Testing
Health Information Exchange Standards  -  Compliance via Integration TestingHealth Information Exchange Standards  -  Compliance via Integration Testing
Health Information Exchange Standards - Compliance via Integration TestingHealth Informatics New Zealand
 
Intro_To_FHIR.pptx
Intro_To_FHIR.pptxIntro_To_FHIR.pptx
Intro_To_FHIR.pptxPierluigi10
 
Jisc UK ORCID Support: onboarding webinar
Jisc UK ORCID Support: onboarding webinarJisc UK ORCID Support: onboarding webinar
Jisc UK ORCID Support: onboarding webinarJisc
 
Devdays 2017 implementation guide authoring - ardon toonstra
Devdays 2017  implementation guide authoring - ardon toonstraDevdays 2017  implementation guide authoring - ardon toonstra
Devdays 2017 implementation guide authoring - ardon toonstraDevDays
 

Similar to HL7 New Zealand: FHIR for developers (20)

Accessing SNOMED CT With FHIR Terminology Services
Accessing SNOMED CT With FHIR Terminology ServicesAccessing SNOMED CT With FHIR Terminology Services
Accessing SNOMED CT With FHIR Terminology Services
 
Christchurch presentation
Christchurch presentationChristchurch presentation
Christchurch presentation
 
FHIR for implementers in New Zealand
FHIR for implementers in New ZealandFHIR for implementers in New Zealand
FHIR for implementers in New Zealand
 
FHIR - as a new currency of exchange in New Zealand
FHIR - as a new currency of exchange in New ZealandFHIR - as a new currency of exchange in New Zealand
FHIR - as a new currency of exchange in New Zealand
 
FHIR intro and background at HL7 Germany 2014
FHIR intro and background at HL7 Germany 2014FHIR intro and background at HL7 Germany 2014
FHIR intro and background at HL7 Germany 2014
 
Fire and Ice - FHIR in New Zealand - David Hay
Fire and Ice - FHIR in New Zealand - David HayFire and Ice - FHIR in New Zealand - David Hay
Fire and Ice - FHIR in New Zealand - David Hay
 
FHIR & Ice
FHIR & IceFHIR & Ice
FHIR & Ice
 
ELIXIR TCG update
ELIXIR TCG updateELIXIR TCG update
ELIXIR TCG update
 
Fhir foundation (grahame)
Fhir foundation (grahame)Fhir foundation (grahame)
Fhir foundation (grahame)
 
FHIR Client Development with .NET
FHIR Client Development with .NETFHIR Client Development with .NET
FHIR Client Development with .NET
 
BizTalk on FHIR
BizTalk on FHIRBizTalk on FHIR
BizTalk on FHIR
 
FHIR for Hackers
FHIR for HackersFHIR for Hackers
FHIR for Hackers
 
Smart cities no ai without ia
Smart cities   no ai without iaSmart cities   no ai without ia
Smart cities no ai without ia
 
DataCite and its DOI infrastructure - IASSIST 2013
DataCite and its DOI infrastructure - IASSIST 2013DataCite and its DOI infrastructure - IASSIST 2013
DataCite and its DOI infrastructure - IASSIST 2013
 
DataCite – Bridging the gap and helping to find, access and reuse data – Herb...
DataCite – Bridging the gap and helping to find, access and reuse data – Herb...DataCite – Bridging the gap and helping to find, access and reuse data – Herb...
DataCite – Bridging the gap and helping to find, access and reuse data – Herb...
 
ICIC 2014 New Product Introduction ProQuest
ICIC 2014 New Product Introduction ProQuestICIC 2014 New Product Introduction ProQuest
ICIC 2014 New Product Introduction ProQuest
 
Health Information Exchange Standards - Compliance via Integration Testing
Health Information Exchange Standards  -  Compliance via Integration TestingHealth Information Exchange Standards  -  Compliance via Integration Testing
Health Information Exchange Standards - Compliance via Integration Testing
 
Intro_To_FHIR.pptx
Intro_To_FHIR.pptxIntro_To_FHIR.pptx
Intro_To_FHIR.pptx
 
Jisc UK ORCID Support: onboarding webinar
Jisc UK ORCID Support: onboarding webinarJisc UK ORCID Support: onboarding webinar
Jisc UK ORCID Support: onboarding webinar
 
Devdays 2017 implementation guide authoring - ardon toonstra
Devdays 2017  implementation guide authoring - ardon toonstraDevdays 2017  implementation guide authoring - ardon toonstra
Devdays 2017 implementation guide authoring - ardon toonstra
 

More from David Hay

Payer extract connectathonupdate
Payer extract connectathonupdatePayer extract connectathonupdate
Payer extract connectathonupdateDavid Hay
 
Genomics connectathon
Genomics connectathonGenomics connectathon
Genomics connectathonDavid Hay
 
itx presentation: FHIR and the New Zealand EHR - deeper dive
itx presentation: FHIR and the New Zealand EHR - deeper diveitx presentation: FHIR and the New Zealand EHR - deeper dive
itx presentation: FHIR and the New Zealand EHR - deeper diveDavid Hay
 
itx presentation: FHIR and the New Zealand EHR
itx presentation: FHIR and the New Zealand EHRitx presentation: FHIR and the New Zealand EHR
itx presentation: FHIR and the New Zealand EHRDavid Hay
 
FHIR for clinicians
FHIR for clinicians FHIR for clinicians
FHIR for clinicians David Hay
 
Archetypes and FHIR by Koray Atalag
Archetypes and FHIR by Koray AtalagArchetypes and FHIR by Koray Atalag
Archetypes and FHIR by Koray AtalagDavid Hay
 
Ihic preso v2
Ihic preso v2Ihic preso v2
Ihic preso v2David Hay
 

More from David Hay (7)

Payer extract connectathonupdate
Payer extract connectathonupdatePayer extract connectathonupdate
Payer extract connectathonupdate
 
Genomics connectathon
Genomics connectathonGenomics connectathon
Genomics connectathon
 
itx presentation: FHIR and the New Zealand EHR - deeper dive
itx presentation: FHIR and the New Zealand EHR - deeper diveitx presentation: FHIR and the New Zealand EHR - deeper dive
itx presentation: FHIR and the New Zealand EHR - deeper dive
 
itx presentation: FHIR and the New Zealand EHR
itx presentation: FHIR and the New Zealand EHRitx presentation: FHIR and the New Zealand EHR
itx presentation: FHIR and the New Zealand EHR
 
FHIR for clinicians
FHIR for clinicians FHIR for clinicians
FHIR for clinicians
 
Archetypes and FHIR by Koray Atalag
Archetypes and FHIR by Koray AtalagArchetypes and FHIR by Koray Atalag
Archetypes and FHIR by Koray Atalag
 
Ihic preso v2
Ihic preso v2Ihic preso v2
Ihic preso v2
 

Recently uploaded

Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...ggsonu500
 
Gurgaon Sector 68 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
Gurgaon Sector 68 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...Gurgaon Sector 68 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
Gurgaon Sector 68 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...ggsonu500
 
Basics of Anatomy- Language of Anatomy.pptx
Basics of Anatomy- Language of Anatomy.pptxBasics of Anatomy- Language of Anatomy.pptx
Basics of Anatomy- Language of Anatomy.pptxAyush Gupta
 
Russian Call Girls in Goa Samaira 7001305949 Independent Escort Service Goa
Russian Call Girls in Goa Samaira 7001305949 Independent Escort Service GoaRussian Call Girls in Goa Samaira 7001305949 Independent Escort Service Goa
Russian Call Girls in Goa Samaira 7001305949 Independent Escort Service Goanarwatsonia7
 
Russian Call Girls Hyderabad Indira 9907093804 Independent Escort Service Hyd...
Russian Call Girls Hyderabad Indira 9907093804 Independent Escort Service Hyd...Russian Call Girls Hyderabad Indira 9907093804 Independent Escort Service Hyd...
Russian Call Girls Hyderabad Indira 9907093804 Independent Escort Service Hyd...delhimodelshub1
 
Escorts in Gurgaon Aarohi 9711199171 VIP Call Girl in Gurgaon Personal Number
Escorts in Gurgaon Aarohi 9711199171 VIP Call Girl in Gurgaon Personal NumberEscorts in Gurgaon Aarohi 9711199171 VIP Call Girl in Gurgaon Personal Number
Escorts in Gurgaon Aarohi 9711199171 VIP Call Girl in Gurgaon Personal NumberCall Girls Service Gurgaon
 
Call Girls in Hyderabad Lavanya 9907093804 Independent Escort Service Hyderabad
Call Girls in Hyderabad Lavanya 9907093804 Independent Escort Service HyderabadCall Girls in Hyderabad Lavanya 9907093804 Independent Escort Service Hyderabad
Call Girls in Hyderabad Lavanya 9907093804 Independent Escort Service Hyderabaddelhimodelshub1
 
Leading transformational change: inner and outer skills
Leading transformational change: inner and outer skillsLeading transformational change: inner and outer skills
Leading transformational change: inner and outer skillsHelenBevan4
 
Low Rate Call Girls In Bommanahalli Just Call 7001305949
Low Rate Call Girls In Bommanahalli Just Call 7001305949Low Rate Call Girls In Bommanahalli Just Call 7001305949
Low Rate Call Girls In Bommanahalli Just Call 7001305949ps5894268
 
Gurgaon iffco chowk 🔝 Call Girls Service 🔝 ( 8264348440 ) unlimited hard sex ...
Gurgaon iffco chowk 🔝 Call Girls Service 🔝 ( 8264348440 ) unlimited hard sex ...Gurgaon iffco chowk 🔝 Call Girls Service 🔝 ( 8264348440 ) unlimited hard sex ...
Gurgaon iffco chowk 🔝 Call Girls Service 🔝 ( 8264348440 ) unlimited hard sex ...soniya singh
 
Call Girls Hyderabad Kirti 9907093804 Independent Escort Service Hyderabad
Call Girls Hyderabad Kirti 9907093804 Independent Escort Service HyderabadCall Girls Hyderabad Kirti 9907093804 Independent Escort Service Hyderabad
Call Girls Hyderabad Kirti 9907093804 Independent Escort Service Hyderabaddelhimodelshub1
 
hyderabad call girl.pdfRussian Call Girls in Hyderabad Amrita 9907093804 Inde...
hyderabad call girl.pdfRussian Call Girls in Hyderabad Amrita 9907093804 Inde...hyderabad call girl.pdfRussian Call Girls in Hyderabad Amrita 9907093804 Inde...
hyderabad call girl.pdfRussian Call Girls in Hyderabad Amrita 9907093804 Inde...delhimodelshub1
 
Kukatpally Call Girls Services 9907093804 High Class Babes Here Call Now
Kukatpally Call Girls Services 9907093804 High Class Babes Here Call NowKukatpally Call Girls Services 9907093804 High Class Babes Here Call Now
Kukatpally Call Girls Services 9907093804 High Class Babes Here Call NowHyderabad Call Girls Services
 
VIP Call Girl Sector 25 Gurgaon Just Call Me 9899900591
VIP Call Girl Sector 25 Gurgaon Just Call Me 9899900591VIP Call Girl Sector 25 Gurgaon Just Call Me 9899900591
VIP Call Girl Sector 25 Gurgaon Just Call Me 9899900591adityaroy0215
 
No Advance 9053900678 Chandigarh Call Girls , Indian Call Girls For Full Ni...
No Advance 9053900678 Chandigarh  Call Girls , Indian Call Girls  For Full Ni...No Advance 9053900678 Chandigarh  Call Girls , Indian Call Girls  For Full Ni...
No Advance 9053900678 Chandigarh Call Girls , Indian Call Girls For Full Ni...Vip call girls In Chandigarh
 

Recently uploaded (20)

Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
Gurgaon Sector 90 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
 
Gurgaon Sector 68 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
Gurgaon Sector 68 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...Gurgaon Sector 68 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
Gurgaon Sector 68 Call Girls ( 9873940964 ) Book Hot And Sexy Girls In A Few ...
 
College Call Girls Dehradun Kavya 🔝 7001305949 🔝 📍 Independent Escort Service...
College Call Girls Dehradun Kavya 🔝 7001305949 🔝 📍 Independent Escort Service...College Call Girls Dehradun Kavya 🔝 7001305949 🔝 📍 Independent Escort Service...
College Call Girls Dehradun Kavya 🔝 7001305949 🔝 📍 Independent Escort Service...
 
Basics of Anatomy- Language of Anatomy.pptx
Basics of Anatomy- Language of Anatomy.pptxBasics of Anatomy- Language of Anatomy.pptx
Basics of Anatomy- Language of Anatomy.pptx
 
Russian Call Girls in Goa Samaira 7001305949 Independent Escort Service Goa
Russian Call Girls in Goa Samaira 7001305949 Independent Escort Service GoaRussian Call Girls in Goa Samaira 7001305949 Independent Escort Service Goa
Russian Call Girls in Goa Samaira 7001305949 Independent Escort Service Goa
 
Russian Call Girls South Delhi 9711199171 discount on your booking
Russian Call Girls South Delhi 9711199171 discount on your bookingRussian Call Girls South Delhi 9711199171 discount on your booking
Russian Call Girls South Delhi 9711199171 discount on your booking
 
Russian Call Girls in Dehradun Komal 🔝 7001305949 🔝 📍 Independent Escort Serv...
Russian Call Girls in Dehradun Komal 🔝 7001305949 🔝 📍 Independent Escort Serv...Russian Call Girls in Dehradun Komal 🔝 7001305949 🔝 📍 Independent Escort Serv...
Russian Call Girls in Dehradun Komal 🔝 7001305949 🔝 📍 Independent Escort Serv...
 
Russian Call Girls Hyderabad Indira 9907093804 Independent Escort Service Hyd...
Russian Call Girls Hyderabad Indira 9907093804 Independent Escort Service Hyd...Russian Call Girls Hyderabad Indira 9907093804 Independent Escort Service Hyd...
Russian Call Girls Hyderabad Indira 9907093804 Independent Escort Service Hyd...
 
Escorts in Gurgaon Aarohi 9711199171 VIP Call Girl in Gurgaon Personal Number
Escorts in Gurgaon Aarohi 9711199171 VIP Call Girl in Gurgaon Personal NumberEscorts in Gurgaon Aarohi 9711199171 VIP Call Girl in Gurgaon Personal Number
Escorts in Gurgaon Aarohi 9711199171 VIP Call Girl in Gurgaon Personal Number
 
Call Girl Dehradun Aashi 🔝 7001305949 🔝 💃 Independent Escort Service Dehradun
Call Girl Dehradun Aashi 🔝 7001305949 🔝 💃 Independent Escort Service DehradunCall Girl Dehradun Aashi 🔝 7001305949 🔝 💃 Independent Escort Service Dehradun
Call Girl Dehradun Aashi 🔝 7001305949 🔝 💃 Independent Escort Service Dehradun
 
Call Girls in Hyderabad Lavanya 9907093804 Independent Escort Service Hyderabad
Call Girls in Hyderabad Lavanya 9907093804 Independent Escort Service HyderabadCall Girls in Hyderabad Lavanya 9907093804 Independent Escort Service Hyderabad
Call Girls in Hyderabad Lavanya 9907093804 Independent Escort Service Hyderabad
 
Leading transformational change: inner and outer skills
Leading transformational change: inner and outer skillsLeading transformational change: inner and outer skills
Leading transformational change: inner and outer skills
 
Low Rate Call Girls In Bommanahalli Just Call 7001305949
Low Rate Call Girls In Bommanahalli Just Call 7001305949Low Rate Call Girls In Bommanahalli Just Call 7001305949
Low Rate Call Girls In Bommanahalli Just Call 7001305949
 
Gurgaon iffco chowk 🔝 Call Girls Service 🔝 ( 8264348440 ) unlimited hard sex ...
Gurgaon iffco chowk 🔝 Call Girls Service 🔝 ( 8264348440 ) unlimited hard sex ...Gurgaon iffco chowk 🔝 Call Girls Service 🔝 ( 8264348440 ) unlimited hard sex ...
Gurgaon iffco chowk 🔝 Call Girls Service 🔝 ( 8264348440 ) unlimited hard sex ...
 
Call Girls Hyderabad Kirti 9907093804 Independent Escort Service Hyderabad
Call Girls Hyderabad Kirti 9907093804 Independent Escort Service HyderabadCall Girls Hyderabad Kirti 9907093804 Independent Escort Service Hyderabad
Call Girls Hyderabad Kirti 9907093804 Independent Escort Service Hyderabad
 
Call Girls in Lucknow Esha 🔝 8923113531 🔝 🎶 Independent Escort Service Lucknow
Call Girls in Lucknow Esha 🔝 8923113531  🔝 🎶 Independent Escort Service LucknowCall Girls in Lucknow Esha 🔝 8923113531  🔝 🎶 Independent Escort Service Lucknow
Call Girls in Lucknow Esha 🔝 8923113531 🔝 🎶 Independent Escort Service Lucknow
 
hyderabad call girl.pdfRussian Call Girls in Hyderabad Amrita 9907093804 Inde...
hyderabad call girl.pdfRussian Call Girls in Hyderabad Amrita 9907093804 Inde...hyderabad call girl.pdfRussian Call Girls in Hyderabad Amrita 9907093804 Inde...
hyderabad call girl.pdfRussian Call Girls in Hyderabad Amrita 9907093804 Inde...
 
Kukatpally Call Girls Services 9907093804 High Class Babes Here Call Now
Kukatpally Call Girls Services 9907093804 High Class Babes Here Call NowKukatpally Call Girls Services 9907093804 High Class Babes Here Call Now
Kukatpally Call Girls Services 9907093804 High Class Babes Here Call Now
 
VIP Call Girl Sector 25 Gurgaon Just Call Me 9899900591
VIP Call Girl Sector 25 Gurgaon Just Call Me 9899900591VIP Call Girl Sector 25 Gurgaon Just Call Me 9899900591
VIP Call Girl Sector 25 Gurgaon Just Call Me 9899900591
 
No Advance 9053900678 Chandigarh Call Girls , Indian Call Girls For Full Ni...
No Advance 9053900678 Chandigarh  Call Girls , Indian Call Girls  For Full Ni...No Advance 9053900678 Chandigarh  Call Girls , Indian Call Girls  For Full Ni...
No Advance 9053900678 Chandigarh Call Girls , Indian Call Girls For Full Ni...
 

HL7 New Zealand: FHIR for developers

  • 1. © 2016 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg. U.S. TM Office. HL7 FHIR for Developers HL7 New Zealand Auckland, June 2016 Brian Postlethwaite David Hay Peter Jordan
  • 2. Page 2 • HL7 New Zealand Programme
  • 3. Page 3 • HL7 New Zealand Optional afternoon sessions • a) Exporting/publishing legacy content • b) FHIR based Referrals – Demonstrations of the maturity Questionnaire • c) FHIR Provider Directories – The global position • d) Integrating SMART on FHIR • e) How clinFHIR integrates with FHIR • f) streams for chat • Anything else you might want…
  • 4. Page 4 • HL7 New Zealand SNOMED CT Expo 2016 27-28 October Te Papa Tongarewa Wellington NZ www.snomedexpo.org @SnomedCT International audience Four presentation streams Hackathon starts August
  • 5. FHIR: a deep dive for developers
  • 6. Page 6 • HL7 New Zealand Elevator speech • FHIR is – About clinical information exchange – Resources to represent clinical ‘things’ – A well defined API supporting all paradigms – An incredible community – A platform for expansion • Ecosystem • Decision support • Quality metrics • Conversion – Spreading like <insert pun here> 6
  • 7. Page 7 • HL7 New Zealand Contents of this tutorial • Agenda – General Comments – Resources – Profiling – Exchange – Moving on • Assumption – You have basic familiarity with FHIR
  • 9. Page 9 • HL7 New Zealand DSTU/STU? • It’s a release/publication status – Draft Standard For Trial Use – relabelled STU • Current version is STU2 – This presentation is based on STU2 • Next version (unfinished) is STU3 – Ballot end of year – Will describe main changes at end • FHIR Maturity model
  • 10. Page 10 • HL7 New Zealand Test Servers & tools • Public test servers – Varying capability – HAPI CLI • (http://jamesagnew.github.io/hapi-fhir/doc_cli.html) – Invaluable to experiment and learn • Libraries – C#, Java, others • Tools you need – Modern web browser – REST client – XML/Json editor – IDE of choice 10
  • 11. Page 11 • HL7 New Zealand clinFHIR • An educational tool – Built to support Clinician Connectathon • clinFHIR.com – Resource Builder – Simple Profile Builder – Extension Definition – ValueSet 11
  • 12. Page 12 • HL7 New Zealand The community • http://www.fhir.org/ • https://chat.fhir.org/ – NZ Stream • http://community.fhir.org/ • fhir@lists.hl7.org • http://wiki.hl7.org/index.php?title=FHIR • http://wiki.hl7.org/index.php?title=FHIR_gForge_Tracker 12
  • 13. Page 13 • HL7 New Zealand The specification is your friend: Hl7.org/fhir 13
  • 14. Page 14 • HL7 New Zealand The core • Content – Resources • Exchange - API – FHIR supports 4 interoperability paradigms – Same resources for all REST Documents Messages Services
  • 15. Page 15 • HL7 New Zealand Architectures 15 FHIR Broker v3 v2 PHR FHIR App Comm. Interface DB FHIR
  • 16. Page 16 • HL7 New Zealand Repository model – NZ EHR Vendor Neutral Repository FHIRFHIRFHIR GP Hospital Mobile N Notify (Subscription)
  • 18. Page 18 • HL7 New Zealand Resources Technically, all resources defined in StructureDefinition (also used for profiling)
  • 19. Page 19 • HL7 New Zealand Resource Type Hierarchy 19
  • 20. Page 20 • HL7 New Zealand Resource Narrative Elements ExtensionsExtensions Structure of a Domain Resource Metadata
  • 21. Page 21 • HL7 New Zealand Resource Example
  • 22. Page 22 • HL7 New Zealand Specification • Review in Spec – Patient
  • 23. Page 23 • HL7 New Zealand References between resources Coded Properties type bodySuite indication performer.role complication relatedItem.type Other Properties identifier (Identifier) outcome (String) PROCEDURE PATIENT DIAGNOSTIC REPORTCONDITION Subject ReportRelatedItem Encounter Performer ENCOUNTER PRACTITIONER
  • 24. Page 25 • HL7 New Zealand References
  • 25. Page 26 • HL7 New Zealand Contained versus reference • References to external resources – When can be identified – Preferred • More flexible • Contained resources – When can’t be identified – Complete resource • No text – Only useable within parent <Patient> … <managingOrganization> <reference value="Organization/1"/> </managingOrganization> … </Patient> <Patient> <contained> <Organization> <id value="org1"/> </Organization> </contained> … <managingOrganization> <reference value="#org1"/> </managingOrganization> … </Patient>
  • 26. Page 27 • HL7 New Zealand XML & JSON 27 Interconversion requires structure knowledge
  • 27. Page 28 • HL7 New Zealand A Resource’s identity • In fact: an URL – http://server.org/fhir/Patient/1 endpoint resource type id Note: This URL resolves to the current version of a resource on a given server
  • 28. Page 29 • HL7 New Zealand “Business” identifiers
  • 29. Page 30 • HL7 New Zealand Patient MRN 22234 “Ewout Kramer” 30-11-1972 Amsterdam Resource metadata Metadata … <id value="4705149-patient"/> <meta> <versionId value="4"/> <lastUpdated value="2016-08-10T16:18:46Z"/> <profile value=… /> <security value=…/> <tags value=…/> </meta> …
  • 30. Page 31 • HL7 New Zealand The FHIR Elements Resource Narrative Extensions Metadata Elements Extensions Primitives (integer, boolean, string, instant) Derived Primitives (oid, uuid, code, id) Complex Datatypes (HumanName, Quantity, Period, Address, Identifier ) Constrained Types (Quantity: Distance, Count, Duration, Money) use use use http://www.hl7.org/implement/standards/fhir/datatypes.html
  • 31. Page 32 • HL7 New Zealand Element Hierarchy 32
  • 32. Page 33 • HL7 New Zealand Primitive data types instant decimal integer unsignedInt postiveInt code id oid markdown base64Binary string url boolean dateTimetime date Element
  • 33. Page 34 • HL7 New Zealand Complex data types Ratio Timing Coding Age Distance SimpleQuantity Duration Count AttachmentPeriod Range Element Identifier Signature CodeableConcept Quantity SampledData ContactPoint HumanName Annotation Address Money
  • 34. Page 36 • HL7 New Zealand CodeableConcept
  • 35. Page 37 • HL7 New Zealand “Choice” properties
  • 36. Page 38 • HL7 New Zealand Narrative
  • 37. Page 39 • HL7 New Zealand NamingSystem resource • Define the ‘system’ element – CodeableConcept / Coding – Identifier • Some systems defined in spec – (No NamingSystem required) • Governance – Many should be national – eg for NHI, HPI
  • 38. Page 41 • HL7 New Zealand Coded types • code, Coding, CodeableConcept, (Quantity) • Possible values defined in ValueSet resource – Binding Strength • Required (must come from set) • Extensible (may use alternate if have to) • Preferred (don’t have to, but should) • Example (set isn’t specified) – Profile can tighten
  • 39. Page 43 • HL7 New Zealand Examples • Code: "status" : "confirmed" • Coding: { "system": "http://www.nlm.nih.gov/research/umls/rxnorm", "code": "C3214954", "display": "cashew nut allergenic extract Injectable" } • CodeableConcept: { "coding": [{ "system": "http://snomed.info/sct", "code": "39579001", "display": "Anaphylactic reaction“ }], "text" : "Anaphylaxis" }
  • 40. Page 44 • HL7 New Zealand ValueSet resource • Defines list of possible values for a particular context • Can reference external Terminology/s – Or define own sets • Why? – A common valueSet improves recording consistency – Improves user experience (pick lists) • Examples in New Zealand – ED diagnoses (derived from SNOMED) – NZ POCS (Pathology Observation Code Set) (derived from LOINC) – List of NZ Iwi (defined in ValueSet)
  • 41. Page 45 • HL7 New Zealand Terminology Sub-system • SNOMED CT / LOINC / RxNORM • HGVS, ICPC, MIMS + 100s more • ICD-X+ • ANZSCO, METEOR • A drug formulary • A config table in an application • A list of enums in a java class • Australian state codes Code System: Defines a set of concepts with a coherent meaning Code Display Definition
  • 42. Page 46 • HL7 New Zealand Terminology Sub-system Value Set: A selection of a set of codes for use in a particular context Code System: Defines a set of concepts with a coherent meaning Code Display Definition
  • 43. Page 47 • HL7 New Zealand Terminology Sub-system Code System: Defines a set of concepts with a coherent meaning Code Display Definition Element Definition: Type and Value set reference Value Set: A selection of a set of codes for use in a particular context Binds
  • 44. Page 48 • HL7 New Zealand Terminology Sub-system Code System: Defines a set of concepts with a coherent meaning Code Display Definition Element Definition: Type and Value set reference Value Set: A selection of a set of codes for use in a particular context Binds Element: code/ Coding/ CodeableConcept Conforms
  • 45. Page 49 • HL7 New Zealand ValueSet for condition.code { "resourceType": "ValueSet", "id": "valueset-condition-code", "meta": { "versionId": "1", "lastUpdated": "2015-05-08T16:18:23Z", }, "text": { "status": "generated", "div": ”Condition.code sample ValueSet" }, "url": "http://hl7.org/fhir/vs/condition-code", "version": "0.5.0", "name": "Condition/Problem/Diagnosis Codes", "publisher": "FHIR Project team", "contact": [ { "telecom": [ { "system": "url", "value": "http://hl7.org/fhir" } ] } ], "description": "Example value set for Condition/Problem/Diagnosis codes", "copyright": "This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement", "status": "draft", "experimental": true, "compose": { "include": [ { "system": "http://snomed.info/sct", "filter": [ { "property": "concept", "op": "is-a", "value": "404684003" } ] } ] } }
  • 46. Page 50 • HL7 New Zealand Terminology Server • Provides ‘services’ for consumers to access terminology – Hide the complex stuff from a consumer • Uses Operations framework – Get definition for a concept – Find a concept • Within a ValueSet http://hl7.org/fhir/2015May/terminology-service.html • Find Terms • Get Term Definition
  • 48. Page 52 • HL7 New Zealand Profiling • The basic resources are not enough – Many different contexts in healthcare • Specific implementations / Use Cases need to: – Extend resources – Constrain resources – Specify code sets / terminologies – Specify resources used • Multiple supporting artifacts in FHIR – ‘Conformance’ resources • FHIR is a platform specification – Profiles adapt it to specific purposes – Doesn’t change wire format • Discoverability / Manage expectations • Profiling increasingly important – Allows clinicians to express reqirements – Tooling supports Clinicians and Analysts involvement • Whole spec build on profiling infrastructure
  • 49. Page 53 • HL7 New Zealand Claiming conformance • Profiles are like a template – Servers indicate what profiles they support – Clients can interrogate servers • Conformance resource lists supported profiles • http://107.170.196.80/resourceCreator.html?conformance=ohConforman ce&hideNav • Resource instances can ‘claim conformance’ to 1 or more profiles – Libraries developed to test this – Can be conformant without claiming • Cannot set defaults – Can state what a value should be
  • 50. Page 54 • HL7 New Zealand Extensions • Only most common elements in base resource – Keeps the resources small – (Adding everything was the problem with version 3) • Extensions allow other elements to be defined – Same capabilities (dataType) as core elements • Including resource references and terminology bindings – Can extend properties and datatypes as well as the resource • Extensions are normal – Expect all real implementations to use extensions • ‘normal’ and modifierExtensions – Normal extensions can be ignored by a recipient – Unknown modifierExtensions cannot be ignored
  • 51. Page 55 • HL7 New Zealand Modifier Extensions • Also a core part of FHIR – Needed because some extensions can’t be safely ignored – Can’t compute on an element containing an unrecognized modifier extension. However, can: • Reject instance • Remove element containing unrecognized modifier extension • Just display narrative • Retrieve definition & seek human review 55
  • 52. Page 56 • HL7 New Zealand Extending a multiple birth Key = location of formal definit Value = value according to definition
  • 53. Page 57 • HL7 New Zealand Complex extensions
  • 54. Page 58 • HL7 New Zealand Profiling a resource Specify that the identifier uses the NHI – and is required Limit names to just 1 (instead of 0..*) Limit maritalStatus to different set of codes (ValueSet) Multiple Birth indicator only boolean Indicate photo not supported Add an extension to support “Ethnicity” Note: hardly any mandatory elements in the core spec!
  • 55. Page 59 • HL7 New Zealand Slicing • Specifying repeating elements – Eg Blood Pressure (Observation.component) – Composition (document sections) • Constraining datatypes – Eg MedicationDispense.medication 59
  • 56. Page 60 • HL7 New Zealand Forge 60
  • 57. Page 61 • HL7 New Zealand ‘Conformance’ resources • StructureDefinition – The resource that ‘defines’ a resource • core and ‘profiled’ • also used for extensions • describes binding to ValueSets • ValueSet – Options for coded elements • NamingSystem – Defines system for Coding, Identifier – Some in spec - somenot 61 Canonical URL
  • 58. Page 62 • HL7 New Zealand Relationships between conformance resources 62 URI vs URL Canonical URL
  • 59. Page 63 • HL7 New Zealand A profiled resource Instance 63 { "resourceType": "AllergyIntolerance", "meta": { "profile": [ "http://fhir.hl7.org.nz/dstu2/StructureDefinition/ohAllergyIntolerance" ] }, "extension": [ { "url": http://fhir.hl7.org.nz/dstu2/StructureDefinition/al-certainty”, "valueCodeableConcept": { "text": "really sure" } } ], "patient": { "reference": "Patient/14317", "display": "Eve E. Everywoman " } }
  • 60. Page 64 • HL7 New Zealand Validating a conformance claim • It’s only a claim… • Tooling (java) that can check – One resource can be conformant to multiple profiles • For design, use $validate operation – http://hl7.org/fhir/resource-operations.html#validate – Or use XML schema / schematron – Or java validator 64
  • 61. Page 65 • HL7 New Zealand Implementation Guide: Data Access Framework 65 http://hl7.org/fhir/daf/d af.html
  • 62. Page 66 • HL7 New Zealand Practical steps exposing FHIR data • Gap analysis – Extensions required – Elements unsupported • Find or Create extension definitions (StructureDefinition) – Prefer re-use – In Spec or Registry (simplifier) – Create using forge/clinFHIR • Local save – and/or to simplifier • Any other ‘conformance’ resources – NamingSystem (no tooling) – ValueSet (clinFHIR for simple, NEHTA working on official tool) • Build profile – Forge at present (clinFHIR to come for simple) • Update Conformance resource • Create samples – Can use clinFHIR
  • 63. Page 67 • HL7 New Zealand Viewing Profiles: clinFHIR • Select Profile – Look at structure – Build resource • http://107.170.196.80/resourceCreator.html 67
  • 64. Page 68 • HL7 New Zealand Naming things… • All conformance resources need URL – Note: ‘canonical’ URL – or URI – What ‘base’ server? • Currently HL7 NZ, but needs review • ? National ‘governance’ – Is there a ‘naming convention’ – How will versioning work • Server infrastructure – Should NZ have its own registry?
  • 66. Page 70 • HL7 New Zealand Paradigms • FHIR supports 4 interoperability paradigms REST Documents Messages Services
  • 67. Page 71 • HL7 New Zealand FHIR Repository Regardless of paradigm, the content is the same Lab System Receive a lab result in a message… FHIR Message FHIR Document …Package it in a discharge summary docum National Exchange
  • 68. Page 72 • HL7 New Zealand REST SERVICE INTERFACE How FHIR uses RESTful principles to communicate Resources
  • 69. Page 73 • HL7 New Zealand Possibly distributed… FHIR server @ hospitalA.org Practitioner Practitioner/87 Organization Organization/1 FHIR server @ lab.hospitalA.org Diagnostic Report DiagnosticReport/4445 Observation Observation/3ff27 FHIR server @ pat.registry.org Patient Patient/223 subject
  • 70. Page 74 • HL7 New Zealand 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://fhir.furore.com/fhir/Patient/1/_history/1 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
  • 71. Page 75 • HL7 New Zealand 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}
  • 72. Page 76 • HL7 New Zealand A Resource’s identity • In fact: an URL – http://server.org/fhir/Patient/1 endpoint resource type id Note: This URL resolves to the current version of a resource on a given server
  • 73. Page 77 • HL7 New Zealand Versioning • Optional for a server (per resource) • Can get history by – Server – Type – Instance • Id is url with /_history/{version) appended • Search: – [host]/_history – [host]/Patient/_history – [host]/Patient/1/_history • Instance – [host]/Patient/1/_history/2
  • 74. Page 78 • HL7 New Zealand Searching • A big topic! – Afternoon session – Return Bundle • In the spec – Each resource has defined search parameters – Types & qualifiers • Custom search
  • 75. Page 79 • HL7 New Zealand Conformance resource • Which FHIR version? • Who can I contact? • What’s the name of the software? • Which Resources? • What search operations? • What formats? • History http://www.hl7.org/fhir/conformance.htm
  • 76. Page 80 • HL7 New Zealand OPERATIONS 80
  • 77. Page 81 • HL7 New Zealand FHIR Operations • When more complex server logic required than simple CRUD – Midway between REST & SOAP • Some defined in spec. e.g.: – Get all data for a patient • /Patient/{id}/$everything – Expand/filter terminology • /ValueSet/{id}/$expand?filter= • Can define custom services – Still using FHIR resources – Resources to define / inputs
  • 78. Page 82 • HL7 New Zealand SOA • Using FHIR resources with SOA patterns • More complex environments • In the spec: http://hl7.org/fhir/services.html 82
  • 79. Page 83 • HL7 New Zealand DOCUMENTS http://hl7.org/fhir/documents.html 83
  • 80. Page 84 • HL7 New Zealand Documents – are bundles 84 Observation Resource Composition Resource Section Device Resource Condition Resource List Resource <Bundle> <entry> <Composition /> </entry> <entry> <Observation /> </entry> <entry> <Device /> </entry> <entry> <List/> </entry> <entry> <Condition/> </entry> </Bundle> AttesterMetadata Section Section Equivalent to CDA
  • 81. Page 85 • HL7 New Zealand Storing documents • You can store your document using REST – /Bundle (whole thing) - search supported – /Binary (whole thing) – no search – /Composition – composition only • Note defined operation to reassemble – / (server root) • Process as individual – but ‘reassembly’ should be possible
  • 82. Page 86 • HL7 New Zealand MESSAGES http://hl7.org/fhir/messaging.html 86
  • 83. Page 87 • HL7 New Zealand Messages – are bundles 87 Observation Resource MessageHeader Resource source destination Device Resource Patient Resource <Bundle> <entry> <MessageHeader /> </entry> <entry> <Observation /> </entry> <entry> <Patient /> </entry> <entry> <Device /> </entry> </Bundle> event Equivalent to v2
  • 84. Page 88 • HL7 New Zealand Sending messages • Again, REST not necessary, but… • There is an explicit REST operation: – [base]/$process-message – No storage implied. Might be a router, converted to v2, etc. etc. • The server can process them based on the event code and return the response as another message (again a bundle).
  • 85. Page 89 • HL7 New Zealand MOVING ON…
  • 86. Page 90 • HL7 New Zealand In FHIR • Implementation Guides • Workflow • FluentPath – https://github.com/ewoutkramer/fhirpath • FHIR Mapping Language – http://hl7.org/fhir/2016May/mapping-language.html • CDS Hooks 90
  • 87. Page 91 • HL7 New Zealand SMART
  • 88. Page 92 • HL7 New Zealand Security • FHIR is not a security standard – Leverages existing standards • Security tags • Specialized resources – Provenance, AuditEvent • http://hl7.org/fhir/security.html 92
  • 89. Page 94 • HL7 New Zealand STU3 • Expected end of this year • Main Changes (from https://onfhir.hl7.org/) – formats: no change to XML & JSON formats, but we will generate JSON schema. Introduction of RDF, tied to an ontological base – RESTful API: no change to existing API, bar some clarifications around transactions. Maybe add Patch? – Conformance – split out CodeSystem from Value set and minor changes to other resources, including the use of FluentPath instead of XPath – Core Clinical, Administrative & Financial resources – ongoing minor changes in response to trial use and improved quality – Continuing improvements to the Clinical Decision Support / Quality Measure framework – A new framework for workflow / task management – Draft mapping framework and CCDA/FHIR mapping guides
  • 90. Page 95 • HL7 New Zealand National Infrastructure / ecosystem • FHIR interfaces to – NHI (Patient) – HPI (Practitioner) • ‘Conformance’ registries – Profiles – ValueSet – NamingSystem • Common services – Terminology – Audit • Security / Privacy – OAuth2 – Relationships
  • 91. Page 96 • HL7 New Zealand SNOMED CT Expo 2016 27-28 October Te Papa Tongarewa Wellington NZ www.snomedexpo.org @SnomedCT International audience Four presentation streams Hackathon starts August
  • 92. Page 97 • HL7 New Zealand THANK YOU - QUESTIONS?
  • 94. Page 99 • HL7 New Zealand ADVANCED SEARCH http://hl7.org/fhir/2016May/search.html
  • 95. Page 100 • HL7 New Zealand Searching • In the spec – Relationship to path (in resource) – Describe filters on each type • Custom – SearchParameter resource – Reference in Conformance • Servers – Declare which searches they support – Can be really hard! • Use the test servers! – clinFHIR to create demo data
  • 96. Page 101 • HL7 New Zealand Combining parameters • Can search by GET & POST • Always return a bundle • Multiple parameters – Specifying multiple parameters finds resources matching all params  “AND” • http://fhirtest.uhn.ca/baseDstu3/Patient?name=jones&gender=fe male – Parameters may list multiple values  “OR” • http://fhirtest.uhn.ca/baseDstu3/Patient?name=patel,jones
  • 97. Page 102 • HL7 New Zealand Example: Patient
  • 98. Page 103 • HL7 New Zealand SearchParameter resource
  • 99. Page 104 • HL7 New Zealand SearchParameter example http://fhir3.healthintersections.com.au/open/SearchParameter/Patient-Name
  • 100. Page 105 • HL7 New Zealand Advanced search • Common Parameters – _id – _lastUpdated – _tag – _profile – _security – _text – _content – _list – _type – _query 105 • Search Result Parameters – sort – count – include – revinclude – summary – elements – contained – containedType
  • 101. Page 106 • HL7 New Zealand Common parameters - I • _id – Query by Id (string) • _lastUpdated – When the resource was last updated (date) • _tag – From the appropriate meta element (token) • _profile – From the appropriate meta element (url) • _security – From the appropriate meta element (token) 106
  • 102. Page 107 • HL7 New Zealand Common parameters - II • _text – Search in text element (string) • _content – Search for text across the entire resource (string) • _list – Return resources referenced by a List resource – Can use ‘current lists’ and other query • http://hl7.org/fhir/lifecycle.html#current • _query – Custom named query – Use OperationDefinition to define 107
  • 103. Page 108 • HL7 New Zealand Search Result Parameters - I • _sort – The order of returned results (format changing in STU-3) • _count – Specify a number of resources to include • _include – Include other resources (more detail soon) • _revinclude – Include resources that reference this one • Eg provenance
  • 104. Page 109 • HL7 New Zealand Search Result Parameters - II • _summary – Return a subset – true, false, text, data, count – Resources marked as ‘SUBSETTED’ • _elements – Specify elements to return (+mandatory) – Resources marked as ‘SUBSETTED’ • _contained – Whether search should include contained resources – False (default), true, both • _containedType – With _contained – whether to return the container
  • 105. Page 110 • HL7 New Zealand Chained searches • Search ‘within’ a resource – Patient has a search for “name” and “identifier”. – Observation has a search for “subject” (the id of the Patient, Group or Device) • [host]/Observation?subject.name={x} • [host]/Observation?subject.identifier={y} • But note: this still only works on the predefined search parameters. You cannot just use any property of the resource. http://fhirtest.uhn.ca/baseDstu3/Observation?subject.name=patel
  • 106. Page 111 • HL7 New Zealand _Include • Include related resources in the response • Based on search parameters • Server declares in conformance • Format – [host]/{type}?_include={source type}:{search parameter}:{target type} • Eg – [host]/MedicationOrder?_include=MedicationOrder:patient&criteria... http://fhirtest.uhn.ca/baseDstu3/Observation?_id=99267&_include=Observation:encounter
  • 107. Page 112 • HL7 New Zealand Compartment • Syntactic sugar for queries • Resources that share common property – Eg patient • Purpose: – Access mechanism for finding a set of related resources quickly – Provide a definitional basis for applying access control to resources quickly • http://hl7.org/fhir/compartments.html 112
  • 108. Page 113 • HL7 New Zealand Meta tag
  • 109. Page 114 • HL7 New Zealand REST STUFF And finally, the last REST operation (for now):
  • 110. Page 115 • HL7 New Zealand Possibly distributed… FHIR server @ hospitalA.org Practitioner Practitioner/87 Organization Organization/1 FHIR server @ lab.hospitalA.org Diagnostic Report DiagnosticReport/4445 Observation Observation/3ff27 FHIR server @ pat.registry.org Patient Patient/223 subject
  • 111. Page 116 • HL7 New Zealand 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://fhir.furore.com/fhir/Patient/1/_history/1 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
  • 112. Page 117 • HL7 New Zealand 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}
  • 113. Page 118 • HL7 New Zealand A Resource’s REST identity • In fact: an URL – http://server.org/fhir/Patient/1 endpoint resource type id Note: This URL resolves to the current version of a resource
  • 114. Page 119 • HL7 New Zealand 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://fhir.furore.com/fhir/Patient/1/_history/12 Last-Modified: Tue, 29 May 2012 23:45:32 GMT
  • 115. Page 120 • HL7 New Zealand For a specific version… • We have the version-specific URL http://server.org/fhir/ (continued) Patient/1/_history/4 base path resource type identifier version id
  • 116. Page 121 • HL7 New Zealand 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
  • 117. Page 122 • HL7 New Zealand To create a resource • You POST the contents to an url which indicates the resource type: – E.g. http://server.org/fhir/Patient • Supply body’s format in Content-Type header • Server returns 201 (Created). • Returns only the newly assigned version id URL in the Location header.
  • 118. Page 123 • HL7 New Zealand To update a resource • Use PUT on the resource’s URL, with the new contents in the body • Tell server the body’s format (xml/json) in the Content-Type header • Server returns 200 and the URL to new version in the Content-Location header.
  • 119. Page 124 • HL7 New Zealand Using PUT to create • Server might/might not allow you to PUT to an id that does not yet exist. • If it does: Server returns 201 and resource gets created at that location  client determines resource’s id! • If it does not: server returns 405 (Method not allowed)
  • 120. Page 125 • HL7 New Zealand Version-aware updates • Use eTag & ‘if-match’ header – Server requires client to send ‘if-match’ header with current eTag – Server uses this to check whether you are updating the latest version. – Server will then return 409 (Conflict) if it has been updated by someone else in the meantime • http://hl7.org/fhir/http.html#versionaware
  • 121. Page 126 • HL7 New Zealand Conditional operations • Eg create if not exist – Search query in ‘if-none-exist’ header • Especially useful in transactions, messages • Create / Update / Delete 126 http://hl7.org/fhir/http.html
  • 122. Page 127 • HL7 New Zealand What’s a ‘deleted’ Resource? • DELETE method • Trying read operations will return in a 410 (Gone) result instead of 404 (Not Found) • The resource will not be returned by the search operation • You can “undelete” by doing an update with fresh content • Just a “marker” in a resource’s history
  • 123. Page 128 • HL7 New Zealand Version history - deletions 33, v12 – 2012-12-04 33, v13 – 2012-12-05 33, v14 – 2012-12-08 /server.org/fhir/Patient/33/_history/12 /server.org/fhir/Patient/33/_history/14 /server.org/fhir/Patient/33/_history/13 /server.org/fhir/Patient/33/_history/15 /server.org/fhir/Patient/33 33, v15 – 2012-12-09 33, v16 – 2012-12-10 DELETION /server.org/fhir/Patient/33/_history/16
  • 124. Page 129 • HL7 New Zealand Version history - revival 33, v13 – 2012-12-05 33, v14 – 2012-12-08 /server.org/fhir/Patient/33/_history/14 /server.org/fhir/Patient/33/_history/13 /server.org/fhir/Patient/33/_history/15 /server.org/fhir/Patient/33 33, v15 – 2012-12-09 33, v16 – 2012-12-10 /server.org/fhir/Patient/33/_history/16 33, v17 – 2012-12-11 /server.org/fhir/Patient/33/_history/17
  • 125. Page 130 • HL7 New Zealand Operation Outcome • When something goes wrong….return the OperationOutcome Resource!
  • 126. Page 131 • HL7 New Zealand Lists of things • Current Allergies, Medications, Conditions • Use the List resource • Can query through _current • http://hl7.org/fhir/lifecycle.html#current 131 GET [base]/AllergyIntolerance?patient=42&_list=$current-alle
  • 127. Page 132 • HL7 New Zealand The Binary Endpoint • Accepts any kind of content • Stores the content as is, along with the content type provided by the HTTP headers. • Acts just like the normal Resource endpoints (but there is no search) • http://server.org/fhir/Binary/
  • 128. Page 133 • HL7 New Zealand Useful for Attachments /Binary/23344
  • 129. Page 134 • HL7 New Zealand BUNDLES
  • 130. Page 135 • HL7 New Zealand Communicating lists • We need to communicate lists of Resources – Search result – History – Documents or messages – Multiple-resource inserts (batches or transactions) • Descend from Resource (not DomainResource) – No text, extensions, contained
  • 131. Page 136 • HL7 New Zealand Query response
  • 132. Page 137 • HL7 New Zealand Example: Keeping in sync • History of all resources on server – http://server.org/fhir/_history • History of all patient resources on server – http://server.org/fhir/Patient/_history • History of specific patient on server – http://server.org/fhir/Patient/1/_history • A history of all changes: updates and deletions, ordered by newest first • Limit with _since and _count
  • 133. Page 138 • HL7 New Zealand Transactions / Batches • Multiple operations at once – Transaction • Related resources - Referential integrity – Batch • Unrelated • Return bundle with outcomes 138
  • 134. Page 139 • HL7 New Zealand Bundles in a Library • C# hides the processing of bundle Bundle result = new Bundle() { Title = "Demo bundle" }; result.Entries.Add(new ResourceEntry<Patient>() { LastUpdated=DateTimeOffset.Now, Content = new Patient() }); result.Entries.Add(new DeletedEntry() { Id = new Uri("http://..."), When = DateTime.Now }); var bundleXml = FhirSerializer.SerializeBundleToXml(result);