FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR...

35
HL7®, FHIR® and the flame Design mark are the registered trademarks of Health Level Seven International and are used with per mission. Amsterdam, November 20 - 22 | @HL7 @FirelyTeam | #fhirdevdays | www.devdays.com/us FHIR Documents René Spronk, trainer/training coordinator, Firely/Ringholm

Transcript of FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR...

Page 1: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

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

Amsterdam, November 20 - 22 | @HL7 @FirelyTeam | #fhirdevdays | www.devdays.com/us

FHIR Documents

René Spronk, trainer/training coordinator, Firely/Ringholm

Page 2: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

1

Agenda

• FHIR Documents – core components

• Document Profiling

• FHIR Exchange Patterns

• CDA and FHIR Documents

• Document Metadata / IHE XDS

• Documents v. Clinical Notes

This presentation is focused on FHIR Douments. Knowledge of the HL7 CDA standard is not required.

Page 3: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

2

FHIR Example: Narrative with low level of coding

2

Page 4: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

3

Text vs. Coding

3

• Two extremes in today's data processing

• “Narrative text” vs. “Fields in a database”

• What’s the optimal hybrid mixture ?

Page 5: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

4

FHIR Documents

• Focus is on persistence

• No workflow involved

• other than post/retrieve document

• Need tight rules over authenticated content

• Want to communicate multiple resources with control over how data is presented

• Data spans multiple resources

Page 6: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

5

Adam Everyman use case - let’s document the follow-up Encounter

Page 7: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

6

Document Example – Adam Everyman

Page 8: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

7

Document Structure = a bundle

Page 9: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

8

The Composition resource

8

Page 10: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

9

Narrative

• Narrative text can be in several places

• Rules control how the document is presented (for humans) so the text has a consistent order:

• The subject resource, Patient.text

• The Composition resource, Composition.text

• All the section.text(s)

• The presentation of the document is called the 'attested content' of the document • For implications see “Document Presentation”

http://hl7.org/fhir/documents.html

Page 11: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

10

FHIR Documents: Human interoperability guaranteed

1 0

Page 12: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

11

ACP on Clinical Documentation

• Structured data should be captured only where they are useful in care delivery or essential for quality assessment or reporting.

• .. where the data element cannot be readily abstracted from the note with sufficient accuracy by using natural language processing

Source (Jan. 2015): Clinical Documentation in the 21st Century: A Policy Position Paper From the

American College of Physicians, http://annals.org/data/Journals/AIM/0/0000605-201502030-00193.pdf

Page 13: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

12

<section>

<text>

</text>

<entry>

<reference value="Observation/12486"/>

<!– Observation: systolic = 120 --> </entry>

<entry>

<reference value=" Observation/86499"/>

<!– Observation: diasystolic = 80 --> </entry>

</section>

Generated text narrative is fully derived from structured content

Blood

Pressure 120 80

Database

... ...

systolicBP int

diastolicBP int

... ...

<status value="generated"/>

<div xmlns="http://www.w3.org/1999/xhtml">

<p>Blood pressure 120/80</p>

</div>

Page 14: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

13

<section>

<text>

<status value="additional"/>

<div xmlns="http://www.w3.org/1999/xhtml">

<p>Patient with onset of asthma

in his teens</p>

</div>

</text>

</section>

13

Narrative based narrative is richer than structured content (‘additional’ information)

Database

... ...

familyHistory text

... ...

Family

History:

Patient with onset of

asthma in his teens

<entry>

<reference value=" Observation/12486"/>

<!- Observation: asthma -->

</entry>

</section>

Page 15: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

14

What are the “medical document principles” ?

• Persistence – A document continues to exist in an unaltered state

• Stewardship – A document is maintained by an organization entrusted with its care.

• Potential for authentication - A document is an assemblage of information that is intended to be legally authenticated.

• Context - A document establishes the default context for its contents.

• Wholeness - Authentication of a document applies to the whole and does not apply to portions of the document without the full context of the document.

• Human readability – A document is human readable.

Source: HL7 CDA specification

FHIR Documents certainly meet these criteria.

Page 16: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

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

Document Profiling

Page 17: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

16

Document Profile

• Profile of the Composition resource

• Profiles of the section content

• StructureDefinition

• GraphDefinition

• Implementation Guide

• E.g. IPS, http://hl7.org/fhir/uv/ips/2018Sep/

1 6

Composition structured and coded

Sections •Salutation

•Problem/Subjective

•History

•Physcial/Objective

•Diagnoses

•Epicrise

•Plan

•............

•Family History

•Past Medical History

•Admission diagnosis

•Nursing diagnosis

•Discharge diagnosis

coded entry (ICD 10)

Page 18: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

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

FHIR Exchange Patterns

17

Page 19: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

18

Paradigms

• FHIR supports 4 exchange patterns

REST Documents

Messages Services

Page 20: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

19

When to avoid Documents?

•Need for workflow • Request/response, decision support

•Data is dynamic

• i.e. want view of data now, not at time of authorship

• Multiple contributors over time

•Resources need to be accessed/manipulated independently

Page 21: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

20

Exchange patterns - characteristics

Document

Persisting attested content

Rules for rendering

No workflow support

No dynamic data

Unit of work = * resources

REST

CRUD, lightweight

Client driven orchestration

Unit of work = single resource

‘Natural’ servers

Messaging

Event driven

Behavioral expectation

Always request/response Async option

Server driven orchestration

Stuff other than CRUD Unit of work = * resources

Page 22: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

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

CDA and FHIR Documents

21

Page 23: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

22

CDA to FHIR

Document bridge

Hospital System A

FHIR

Documents

Note: Documents are compositions,

• No update semantics

• Context?

• Wholeness?

FHIR

Repository

FHIR

REST

FHIR Document

processor

CDA and FHIR

Page 24: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

23

Mapping

• FHIR Documents have a wider scope than CDA (e.g. subjects other than a patient)

• Made more complex by human-readable nature

• In FHIR presentation determined by author, not by user of the document (as is the case with CDA)

• Best practice

• CDA header to Composition mapping

• CDA Template to resource mapping

• CDA Narrative to XHTML mapping

Page 25: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

24

Mapping CDA to FHIR

• Mapping includes

• Profile of the Composition resource

• Mapping of CDA header to Composition

• High-level mapping of CDA templates to FHIR profiles

• Main interest in this mapping in the US

• C-CDA to FHIR, http://wiki.hl7.org/index.php?title=C-CDA_on_FHIR

• Comparison:

• http://hl7.org/fhir/comparison-cda.html

• Video:

• https://vimeo.com/141875366

Page 26: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

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

Document Metadata / XDS

Page 27: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

26

DocumentReference • Describes a document; metadata of the document

Contains, or

references,

a document

Page 28: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

27

Matadata

• Mainly a mapping of FHIR Header data elements to DocumentReference data elements • However: they need not be the same on some cases; document

lifecycle status

• Rich Metadata is essential for document management (DMS applications, IHE XDS) • E.g. Query, access control, provenance

Page 29: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

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

Document v. Clinical Notes

Page 30: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

29

Varying Formats of Clinical Notes

Text or XHTML

RTF or PDF or .doc

Mixed document: structured FHIR resources, and narrative

Slide courtesy of Michelle Miller / Brett Marquard

Page 31: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

30

DocumentReference – Mixed structure and narrative May have 2:

1 Binary Resource (e.g. C-CDA, text, PDF, rtf)

2 Composition (if there’s strutured content)

[base]/Binary

[base]/Composition

Slide courtesy of Michelle Miller / Brett Marquard

Page 32: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

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

Summary

Page 33: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

32

Summary

• FHIR Documents

• The Document exchange mechanism should be used if the focus is on persistence, and on narrative which is the authenticated content.

• Functionality of CDA, and more.

• Profiling (Implemetation Guide) is a necessity

• DocumentReference resource

• DMS archives, IHE XDS, Clinical Notes

Page 34: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

33

Example: Discharge Letter for Adam Everyman

• XML + HTML View

• STU3 Example

• https://bit.ly/2lE4KQx (zip)

Page 35: FHIR Documents · 2019-12-10 · 1 Agenda FHIR Documents t core components Document Profiling FHIR Exchange Patterns CDA and FHIR Documents Document Metadata / IHE XDS Documents v.

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

Amsterdam, November 20 - 22 | @HL7 @FirelyTeam | #fhirdevdays | www.devdays.com/us

FHIR Documents

René Spronk, trainer/training coordinator, Firely/Ringholm