+ All Categories
Home > Documents > Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX...

Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX...

Date post: 30-May-2020
Category:
Upload: others
View: 4 times
Download: 0 times
Share this document with a friend
60
HL7®, FHIR® and the flame Design mark are the registered trademarks of Health Level Seven International and are used with per mission. Boston, 19-21 June | @HL7 @FirelyTeam | #fhirdevdays18 | www.fhirdevdays.com Terminology Services on FHIR Robert Hausam MD
Transcript
Page 1: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

HL7®, FHIR® and the flame Design mark are the registered trademarks of Health Level Seven International and are used with per mission.

Boston, 19-21 June | @HL7 @FirelyTeam | #fhirdevdays18 | www.fhirdevdays.com

Terminology Services on FHIR

Robert Hausam MD

Page 2: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® This presentation

Is licensed for use under the Creative Commons, specifically:

Creative Commons Attribution 3.0 Unported License

(Do with it as you wish – just give credit)

2

Page 3: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Who am I?

Name: Rob Hausam MD

Company: Hausam Consulting LLC

Background:

Co-chair of Vocabulary and Orders and Observations WGs

FHIR specification and Terminology Module editor

Actively involved in HL7 and terminology standards/development and modeling for 16+ years

3

Page 4: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Who Are You?

Background

Clinical

Technical

Familiar With Clinical Terminologies?

Getting started

Moderately familiar

Expert

Used Terminology Services in an application?

In FHIR?

4

Page 5: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Agenda

Where do you find the terminology stuff in the FHIR spec?

Brief overview and review of handling coded data in FHIR

Terminology Services and FHIR

Why do we need terminology services – and why should you use them?

What was here before? – a small bit of history

What’s available in the FHIR Terminology Service

How can we use these capabilities now in our applications?

5

Page 6: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

®

FINDING TERMINOLOGY AND TERMINOLOGY SERVICES IN THE FHIR SPECIFICATION

6

Page 7: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Terminologies link

Terminologies link

The last link on the right in the top-level (red) navigation bar

The quick and easy way to get to the terminology content in the FHIR specification – code systems, value sets, concept maps

7

Page 8: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

®

8

Page 9: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Terminology Module

Level 2 on the Home page

The primary organizing place in the FHIR specification for terminology specifications, guidance and content

http://hl7.org/fhir/terminology-module.html

9

Page 10: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

®

10

Page 11: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

®

11

The terminology-specific resources

The coded data types

The terminology service and operations

Page 12: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

®

CODED DATA IN FHIR OVERVIEW/REVIEW

12

Page 13: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Code System and Value Set

Code System: Defines the concepts

Value Set: Selects a set of concepts (codes) for a particular use (provides the context of use)

Code System: Defines a set of concepts with a

coherent meaning

Code Display

Definition

Value Set: A selection of a set of codes for

use in a particular context

13

Page 14: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Coded Data (instance)

Code System: Defines a set of concepts with a

coherent meaning

Code Display

Definition

Value Set: A selection of a set of codes for

use in a particular context

Binds

Element (instance): Coded Data Type

code/ Coding/

CodeableConcept

Element Definition: Data element and

binding characteristics and value set reference

There is not a reference from an instance of coded data directly to a value set (except by the valueset-reference extension)

14

Page 15: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Binding Strength

required: You must use the specified codes

Or omit the element if no code applies for the concept

extensible: You must use the specified codes if they apply Free to use other codes or text if the value set doesn’t cover the concept

preferred: You SHOULD use the specified codes

But if you have a good reason, you can use something else instead – it is not required to use the specified codes in order to be conformant

example: These codes just give an idea of what you might use No expectation (or recommendation) of use

15

Page 16: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Binding vs. Data element instance

A binding specifies a value set

Observation.code is bound to:

valueSetReference = http://hl7.org/fhir/ValueSet/observation-codes

• Definition of ‘observation-codes’ = “This value set includes all LOINC codes”

A data element instance specifies a code system Observation.code.coding.system = http://loinc.org

Observation.code.coding.code = 15074-8

Observation.code.coding.display = Glucose [Moles/volume] in Blood

16

Page 17: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Coded Data Types

code

Just the ‘code’ itself - code system and value set are fixed

Used for standard (international) required “structural” elements

Coding

‘code’ + ‘system’ (both are optional, but are both generally present) Plus ‘display’, ‘version’, ‘userSelected’ (also optional)

CodeableConcept

One or more Coding instances plus optional text

Text as entered or chosen by the user 17

Page 18: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® CodeSystem Resource

Declares the existence of a code system and its key properties

May list some or all of the concepts in the code system, along with their basic properties (code, display, definition), plus designations and additional properties

Not intended to support the process of maintaining a code system

Not intended for distributing important existing (large) code systems (SNOMED CT, LOINC, RxNorm, ICD, etc.)

18

Page 19: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® ValueSet Resource

Value sets reference code systems (by uri)

May (or may not) be a FHIR CodeSystem resource

Value sets specify the allowable contents for coded elements

Aligned with Value Set Definition (VSD) spec

Some parts of VSD are in extensions

The ‘compose’ element represents the VSD "Content Logical Definition” (CLD)

Expansion (.expansion)

What’s actually in the value set today, under local conditions

19

Page 20: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Selecting Concepts (ValueSet.compose)

Name the code system (‘system’, with optional ‘version’) If just a ‘system’, then all codes are included

List codes

Can provide alternate descriptions, if desired

Select codes by property (‘filter’) Property Name – defined by the code system

Operation – ‘=’, ‘is-a’, ‘in’, ‘regex’, etc. Value – the value of the property

Example (LOINC): COMPONENT = “Sodium” 20

Page 21: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® ConceptMap

A list of mappings between concepts from two different value sets (normally from different code systems or models)

Provides mapping data for the $translate operation

21

A mapping between the FHIR and HL7 v3 AddressUse Code systems

Page 22: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Terminology-Based Search

You can use terminology to search on:

Token – system|code

Modifiers

Based on token: text, not (exclude)

Based on value set: in, not in

Based on subsumption (is-a) relationships: above, below

22

Page 23: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Well-known Terminologies

Terminologies such as SNOMED CT, LOINC, RxNorm, UCUM (and others) have specific mappings into FHIR terminology resources

Standard CodeSystem resources

Standard CodeSystem filters/properties

Implicit ValueSets

Implicit ConceptMaps

23

Page 24: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® LOINC in FHIR

System URI: http://loinc.org

Canonical CodeSystem resource:

https://loinc.org/fhir/loinc.xml or GET https://fhir.loinc.org/CodeSystem/loinc

Properties: Parts (6 LOINC axes and others)

Filters: Property, Copyright (LOINC | 3rdParty), Multi-axial Hierarchy

Value Sets: Answer lists (LA), Groups (LG) (new!) (example)

Implicit Value Set – All LOINC codes: http://loinc.org/vs 24

Page 25: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® SNOMED CT in FHIR

System URI: http://snomed.info/sct(/[edition](/version/[date]))

Canonical CodeSystem resource: http://hl7.org/fhir/codesystem-snomedct.html

Properties: inactive, sufficientlyDefined, moduleId, normalForm, normalFormTerse, subtypes of “Attribute” (246061005)

Filters: subsumption, refset, ECL (expression constraint language) query expression, “expressions” (whether post-coordination is allowed)

25

Page 26: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® SNOMED CT in FHIR (cont.)

Implicit Value Sets

All codes: http://snomed.info/sct?fhir_vs

By subsumption: http://snomed.info/sct?fhir_vs=isa/195967001

List of refsets: http://snomed.info/sct?fhir_vs=refset

All codes in a refset: http://snomed.info/sct?fhir_vs=refset/734138000

Implicit ConceptMaps

Historical associations: (SAME AS) http://snomed.info/sct?fhir_cm=900000000000527005

26

Page 27: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® SNOMED CT Subsumption Example

Subtypes of “Hypertensive disorder, systemic arterial” (38341003)

SNOMED CT browser view

Value set definition (intensional): http://ontoserver.csiro.au/stu3-latest/ValueSet?url=http://www.healthintersections.com.au/fhir/ValueSet/intensional-case-2

Value set expansion: (coming in the next section)

27

Page 28: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

®

FHIR TERMINOLOGY SERVICES

28

Page 29: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Why Do We Need Terminology Services?

And why should I use them?

There’s lots of complexity with coded data

But many (or most) applications are much simpler

So,

Delegate the complexity to specialist software

Provide a set of services that do what applications need

It becomes “easy” (or at least a lot easier) to write applications that do terminology well

29

Page 30: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® A Brief Bit of History

Where were we before FHIR Terminology Services?

We’ve been recognizing the need for a long time

In HL7 we worked along with OMG to develop the Common Terminology Services (CTS) Release 2 specification

But it hasn’t been widely adopted

30

Page 31: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® So Why Do Terminology Services in FHIR?

FHIR and Terminology Services go together – and they need each other

FHIR provides a platform and is a significant enabler for deploying standardized terminology services

And any FHIR application that uses coded clinical data (i.e. pretty much all of them!) can benefit from using these services to help manage the complexity in the terminology world

Working together they enable each other to do their job better

And you need FHIR Terminology Services to do your job better, too!

31

Page 32: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Some Application Needs

Give me a list of codes

e.g., to populate my dropdown list

Is this code valid?

e.g., is the code that I received from an outside source a member of the required value set?

How do I display a code?

e.g., I need to show the preferred display term for my application context

32

Page 33: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® More Application Needs

Translate this code to a different code system

e.g., I coded the diagnosis in SNOMED CT and now I need to submit the claim in ICD-10

Integrate terminology search into my application

e.g., my type-ahead search to enter data into the allergy list needs the value set expansion for the list of codes that should be included

How do I manage all of the changes and versions?!

33

Page 34: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Terminology Service Operations - Overview

ValueSet

$expand

$validate-code

CodeSystem

$lookup

$subsumes

$compose

$validate-code

ConceptMap

$translate

$closure

34

$validate-code already was included in ValueSet, but is a new addition for CodeSystem in R4

Page 35: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® $expand

Takes a ValueSet reference or resource and returns another ValueSet resource containing the expansion (code set)

Default is the current expansion (as of “now”) GET/POST http://....ValueSet/someId$expand (instance)

GET/POST http://...ValueSet$expand?url=[someURL] (type)

POST http://...ValueSet (pass ValueSet in body)

Some additional parameters include:

filter: Only include concepts with display name containing string

This is a good way to search for a code 35

Page 36: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® $expand (cont.)

date: Generate the expansion as of the specified date

$expand operation parameters

url, valueSet, valueSetVersion, filter, data, includeDesignations, activeOnly, excludePostCoordinated … , etc.

Used to configure the behaviour of a terminology server when it processes ValueSet resources to generate expansions

36

Page 37: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® $expand example

Subtypes of “Hypertensive disorder, systemic arterial” (38341003)

SNOMED CT browser view

Value set definition (intensional): http://ontoserver.csiro.au/stu3-latest/ValueSet?url=http://www.healthintersections.com.au/fhir/ValueSet/intensional-case-2

Value set expansion: http://ontoserver.csiro.au/stu3-latest/ValueSet/intensional-case-2/$expand

37

Page 38: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® $validate-code

Takes a code/Coding/CodeableConcept and checks if it’s valid against a value set or a code system (as of R4)

Specify value set (same as for $expand)

Code to validate – either code+system (with or without version, display), Coding or CodeableConcept

date – date to validate as of

Outputs: true/false

message if not valid, display name (optional) if valid

The primary method for validating coded data 38

Page 39: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® $validate-code example

FHIR condition-category “problem-list-item” http://fhirtest.uhn.ca/baseDstu3/ValueSet/$validate-

code?url=http://hl7.org/fhir/ValueSet/condition-category&system=http://hl7.org/fhir/condition-category&code=problem-list-item

SNOMED CT “Pneumonia” (233604007) Note: Easier to view Terminz server output in Postman or another tool

http://its.patientsfirst.org.nz/RestService.svc/Terminz/CodeSystem/$validate-code?system=http://snomed.info/sct&code=233604007

New R4 capability on the CodeSystem resource 39

Page 40: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® $lookup

Takes a code+system(version) or Coding and returns additional details about the concept

Name, version, preferred display string, properties and designations

Designations are additional representations for the concept

Some additional parameters include:

property: Only include concepts with display name containing string

date: return information as of the specified date

40

Page 41: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® $lookup

$lookup can also be used to determine whether a code exists in the CodeSystem

Provides similar capability to using $validate-code with CodeSystem, but returns an OperationOutcome (error) if the code does not exist

Returns the details if the lookup is successful

Only needs one operation, rather than two

41

Page 42: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® $lookup example

SNOMED CT “Pneumonia” (233604007)

Note: Different servers will display different details!

http://ontoserver.csiro.au/stu3-latest/CodeSystem/$lookup?system=http://snomed.info/sct&code=233604007

http://tx.fhir.org/r3/CodeSystem/$lookup?system=http://snomed.info/sct&code=233604007

42

Page 43: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® $subsumes

Test whether codeA / codingA subsumes (or is subsumed by) codeB / codingB

Based on the semantics of subsumption in the underlying code system (e.g. SNOMED CT)

Returns one of four possible codes:

equivalent, subsumes, subsumed-by, and not-subsumed

If unable to determine the relationship between codes, returns an error

43

Page 44: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® $subsumes example

SNOMED CT “Viral hepatitis” (3738000), “Disorder of liver” (235856003)

Is code A subsumed by code B?

http://tx.fhir.org/r3/CodeSystem/$subsumes?system=http://snomed.info/sct&codeA=3738000&codeB=235856003

http://tx.fhir.org/r3/CodeSystem/$subsumes?system=http://snomed.info/sct&codeB=3738000&codeA=235856003

44

Page 45: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® $translate

Can you translate this code to another code system?

Uses ConceptMap to translate the code(s)

http://...ConceptMap/id$translate

code, Coding or CodeableConcept passed (as per $validate-code)

Output:

True if can be translated

Message if can’t be translated

Translated coding if it can be translated

45

Page 46: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® $translate example

FHIR address-use to V3 AddressUse value sets (tx.fhir.org)

What is the code in the “v2 Address Type” (table 0190) value set (the target) that corresponds to the code ‘home’ in the FHIR “AddressUse” value set (the source)?

http://tx.fhir.org/r3/ConceptMap/cm-address-use-v2/$translate?system=http://hl7.org/fhir/address-use&code=home&source=http://hl7.org/fhir/ValueSet/address-use&target=http://hl7.org/fhir/ValueSet/v2-0190

ConceptMap resource used in the example: http://tx.fhir.org/r3/ConceptMap/cm-address-use-v2

46

Page 47: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Some Useful Ideas

Paging

Search results can be paged

http://hl7.org/fhir/search.html, see the _count parameter

$expand results have a separate paging mechanism (count, offset)

May improve performance by requesting specific elements

‘includeDefinition’ or ‘includeDesignations’ on $expand

‘property’ to specify which properties to return on $lookup

‘_elements’ to request specific elements to be returned on search/read operation results

47

Page 48: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Other Useful Ideas

Batch Processing

Many terminology operations are small

It maybe more efficient to send them as a batch and deal with the result when it comes back

http://hl7.org/fhir/http.html#transaction

Manage content types (Content-Type, Accept, _format)

JSON or XML

Accept-Encoding: gzip

48

Page 49: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Future Possibilities? R5?

“Chaining” of $expand and $lookup operation

E.g. “pipe” the output of $expand to $lookup

Would eliminate many additional calls to the server

Grahame is working on it!

49

Page 50: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

®

SCENARIOS AND STRATEGIES FOR USING TERMINOLOGY SERVICES

50

Page 51: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® If I am …

Designing a data entry interface

Choose code systems (ideally standard)

Choose or define the value sets

For small value sets, you may populate a picklist using $expand

For large value sets, you may want to use $expand?filter=xxx for type-ahead search

51

Page 52: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® If I am …

Creating a profile

Choose or define the code systems and value sets

Determine the binding strength

Set up the code system and value set maintenance and update processes

Concepts can become deprecated over time – you need to watch and plan for this!

You may be able to use ConceptMaps to find the concepts that have changed

52

Page 53: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® If I am …

Analyzing or validating coded data

Choose or define the code systems and value sets

Use $validate-code to check whether the codes are valid in your context, and whether the display text is correct

Clinical systems often allow users to change the display term

Use $translate to map local or non-standard coded data to the standard code systems / value sets for analysis

53

Page 54: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® If I am …

Exploring concept relationships

You can use $lookup to retrieve the properties and display them in a table (or other useful format)

You can navigate the hierarchy between concepts using the ‘child’ and ‘parent’ properties or by $subsumes (or $closure)

54

Page 55: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Questions?

Connect with the FHIR community: FHIR Zulip chat terminology stream

https://chat.fhir.org/#narrow/stream/terminology

Contact me: Rob Hausam

[email protected]

55

Page 56: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

®

SERVERS AND TOOLS (BONUS)

56

Page 57: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Some Publicly Available Terminology Servers

Health Intersections (Grahame Grieve)

http://tx.fhir.org/r3

http://tx.fhir.org/r4

HAPI (University Health Network – James Agnew)

http://fhirtest.uhn.ca/baseDstu3

http://fhirtest.uhn.ca/baseR4

Terminz (Patients First – New Zealand – Peter Jordan)

http://its.patientsfirst.org.nz/RestService.svc/Terminz

57

Page 58: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Some Publicly Available Terminology Servers

OntoServer (CSIRO – Australia – Michael Lawley)

http://ontoserver.csiro.au/stu3-latest

Value Set Authority Center (VSAC) – US National Library of Medicine (NLM)

https://cts.nlm.nih.gov/fhir/

Link to other publicly available FHIR servers (general and terminology)

http://wiki.hl7.org/index.php?title=Publicly_Available_FHIR_Servers_for_testing

58

Page 59: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Some Useful Tools

clinFHIR (David Hay)

CodeSystem builder

http://clinfhir.com/codeSystem.html

ValueSet explorer

http://clinfhir.com/valuesetCreator.html

Query Tool

http://clinfhir.com/query.html

Postman

https://www.getpostman.com/ 59

Page 60: Terminology Services on FHIR - Home - FHIR DevDays · 2019-03-19 · +/ , QW¶O / LFHQVHGX QGHU&UHDWLYH&RPPRQV +/ +HDOWK/ HYHO6HYHQ )+,5 I ODPHORJRDUHU H JLVWHUHGW UDGHPDUNVR I Health

© 2015 HL7 ® Int’l. Licensed under Creative Commons. HL7, Health Level Seven, FHIR & flame logo are registered trademarks of Health Level Seven International. Reg. U.S. TM Office.

® Some Useful Tools (cont.)

Shrimp SNOMED CT browser (CSIRO)

http://ontoserver.csiro.au/shrimp

CSIRO Value Set Comparison Tool

http://ontoserver.csiro.au/vstool

60


Recommended