242
HL7 v3 HL7 v3 教教教教教教 教教教教教教 HL7 Taiwan 協協 協協協 協協協 [email protected] HL7 Taiwan Google 協協 : http://groups.google.com/group /hl7-taiwan 教教教教教教 教教教教教教 96 96 教教教教教教教教教教教教 教教教教教教教教教教教教 協協協協 協協協協協協協協協協協協協協協

HL7 v3 教育訓練計畫

  • Upload
    jafari

  • View
    94

  • Download
    2

Embed Size (px)

DESCRIPTION

行政院衛生署 96 年度醫療資訊標準推動計畫. HL7 v3 教育訓練計畫. 版權所有:台灣健康資訊交換第七層協定協會. HL7 Taiwan 協會 秘書長 范士展 [email protected] HL7 Taiwan Google 論壇 : http://groups.google.com/group/hl7-taiwan. 致謝. HL7 協會承行政院衛生署委託舉辦「 96 年度醫療資訊標準推動計畫 」 感謝行政院衛生署補助教育訓練費用,本年度 HL7 協會舉辦之「 HL7 v3 教育訓練」課程完全免費。. 議程表. - PowerPoint PPT Presentation

Citation preview

Page 1: HL7 v3 教育訓練計畫

HL7 v3HL7 v3 教育訓練計教育訓練計畫畫

HL7 Taiwan 協會秘書長 范士展

[email protected] Taiwan Google 論壇 :

http://groups.google.com/group/hl7-taiwan

行政院衛生署行政院衛生署 9696 年度醫療資訊標準推動計畫 年度醫療資訊標準推動計畫

版權所有:台灣健康資訊交換第七層協定協會

Page 2: HL7 v3 教育訓練計畫

致謝 HL7 協會承行政院衛生署委託舉辦「 96 年度醫療資訊標準推動計畫」

感謝行政院衛生署補助教育訓練費用,本年度 HL7 協會舉辦之「 HL7 v3 教育訓練」課程完全免費。

Page 3: HL7 v3 教育訓練計畫

議程表

Page 4: HL7 v3 教育訓練計畫

Version 3 Tutorial Track Introduction to Version 3

Part-1: V3 Fundamentals Part-2: Version 3 Messaging

XML ITS and Data Types Message Wrappers and Transport Version 3 Documents

Clinical Document Architecture Introduction Clinical Document Architecture Advanced

Implementation Classes Part-1: Analysis and Specification Part-2: Implementation Mechanics

Tools Domain Specific Classes (eg., Clinical Genomics)

Page 5: HL7 v3 教育訓練計畫

V3 Fundamentals

Page 6: HL7 v3 教育訓練計畫

位元世界 1/2 一個位元 (bit) 可以代表一個

事實的兩個狀態。例如: 電燈的“開”或“關” 性別的”男”或”女”(只有

這樣子嗎?)。 兩個位元則可四種狀態

00 、 01 、 10 、 11 賦予意義:方向

00 代表東 01 代表西 10 代表南 11 代表北

三個位元…

2 Bit

01

01

00

01

23

11

21 20

3 Bit

01

01

00

01

23

11

0000

21 2022

01

45

00

01

67

11

1111

20

1 Bit

01

01

4 Bit

01

01

00

01

23

11

0000

01

45

00

01

67

11

1111

00000000

01

89

00

01

AB

11

0000

01

CD

00

01

EF

11

1111

11111111

21 202223

Page 7: HL7 v3 教育訓練計畫

位元世界 2/2 n 個字元就具備有 2n個狀態。 n=8 時,稱之為位元組 (Byte) ,共 256 個狀態。分別給予指定的文數字或符號,稱之為ASCII 碼,美國訊息交換標準代碼。

Char Dec Oct Hex

! 33 0041 0x21

+ 43 0053 0x2b

0 48 0060 0x30

1 49 0061 0x31

A 65 0101 0x41

B 66 0102 0x42

a 97 0141 0x61

b 98 0142 0x62交換標準始焉!!交換標準始焉!!

Page 8: HL7 v3 教育訓練計畫

資訊的層級 事實 fact

所關心的某一事件。描述方向、性別。 資料 data

此事件可以攜帶的資料。 00 代表往東、 01 代表往西, 10 代表往南, 11 代表往北。

資訊 information資料經過有目的處理。某人從原點 (0,0) 出發,收集 {00, 00, 10, 00}資料,得知離開原點至座標 (1,3)

知識 knowledge學習所得,前往該點有哪些路徑。 {00,10,00,00} 也可到座標 (1,3) 。資訊重現。

智慧 wisdom可以產生新的路徑資訊創新

但!資料但!資料 (( 訊訊 )) 交換在哪一層級交換在哪一層級但!資料但!資料 (( 訊訊 )) 交換在哪一層級交換在哪一層級從人的角度從人的角度從人的角度從人的角度從電腦的角度從電腦的角度從電腦的角度從電腦的角度

Page 9: HL7 v3 教育訓練計畫

Data – medical datum

12080 120/80 120/80 mmHg(Systolic/Diastolic)

But, it’s hard to be recognized by computerBut, it’s hard to be recognized by computerSo, We need Context and Content

130/90Blood-pressure

Page 10: HL7 v3 教育訓練計畫

資訊涵義 句法方面 (Syntactic Aspect)

描述語法、儲存或訊息傳輸的文法或語法有關。 語意方面 (Semantic Aspect)

資訊所呈現的意義 實用方面 (Pragmatic Aspect)

意圖或將被達成的目標

台灣大勝日本 台灣大勝日本 V.S. V.S. 台灣大敗日本台灣大敗日本

但!電腦傳遞的資訊是?但!電腦傳遞的資訊是?

Page 11: HL7 v3 教育訓練計畫

資訊系統抽象過程

真實世界觀點 電腦世界觀點

Logical Model

抽象觀念 實做觀念 Physical Model

真實 世界

電腦 世界

需求 問題

使用 操作

需求書 規格書 程式碼

Page 12: HL7 v3 教育訓練計畫

相同資料、不同思考

資料來源: Niilo Saranummi , PICNIC ARCHITECTURE

Page 13: HL7 v3 教育訓練計畫

相同語意、不同見解

Requirement:Create a means to transport a singleindividual from home to place of work.

ManagementInterpretation

I TInterpretation

UserInterpretation

我們需要一個訊息參考架構

我們需要一個訊息參考架構

我們需要一個訊息參考架構

我們需要一個訊息參考架構

資料來源: Bentley Dittman , SYSTEMS ANALYSIS AND DESIGN METHODS , 5th Edition

Page 14: HL7 v3 教育訓練計畫

What Is HL7?

HL7 組織起源於 1987 。

1997/6 成為 ANSI 授權之標準發展組織 (SDO, standards development organization)

Page 15: HL7 v3 教育訓練計畫

Canada

NewZealand

Finland Germany

Netherlands

Japan

United States

United Kingdom

India

Taiwan

China

Czech Republic

And growing

Mexico

France

Argentina

Brazil

Australia

Denmark Greece

Ireland

Italy

SpainSweden

Switzerland

SouthKorea

Turkey

Uruguay

27 International Affiliates

Page 16: HL7 v3 教育訓練計畫

HL7 訊息標準 (V2 and V3)

“醫療行為的電子資料交換標準” 讓醫療院所的不同系統及資料結構之間作溝通的方式

Page 17: HL7 v3 教育訓練計畫

HL7 (Health Level Seven)

ISO-OSI Communication Architecture ModelISO-OSI Communication Architecture Model

1 Physical 1 Physical 2 Data Link 2 Data Link 3 Network 3 Network 4 Transport 4 Transport

CommunicationCommunicationCommunicationCommunication

5 Session 5 Session 6 Presentation 6 Presentation 7 Application 7 Application

FunctionFunctionFunctionFunction

Page 18: HL7 v3 教育訓練計畫

ISO-OSI (Open System Interconnection)

Page 19: HL7 v3 教育訓練計畫

為何使用新版本 ? V2 的問題

V2 主要的問題點 V3 已修正

•特別設計的方法論•太多的例外狀況•曖昧不明確 – 缺乏定義•人為保留作為與舊版本相容•不能明確指出或自動相容性測試•複雜,神秘的編碼規則•沒有標準的詞彙

Page 20: HL7 v3 教育訓練計畫

An HL7 V2.3 Message

MSH|^~\&|LABGL1||DMCRES||199812300100||ORU^R01|LABGL1199510221838581|P|2.3|||NE|NE

PID|||6910828^Y^C8||Newman^Alfred^E||19720812|M||W|25 Centscheap Ave^^Whatmeworry^UT^85201^^P||(555)777-6666|(444)677-7777||M||773789090

OBR||110801^LABGL|387209373^DMCRES|18768-2^CELL COUNTS+DIFFERENTIAL TESTS (COMPOSITE)^LN|||199812292128||35^ML|||||||IN2973^Schadow^Gunther^^^^MD^UPIN||||||||||^Once||||||CA20837^Spinosa^John^^^^MD^UPIN

OBX||NM|4544-3^HEMATOCRIT (AUTOMATED)^LN||45||39-49||||F|||199812292128||CA20837

OBX||NM|789-8^ERYTHROCYTES COUNT (AUTOMATED)^LN||4.94|10*12/mm3|4.30-5.90||||F|||199812292128||CA20837

A sample results message

Page 21: HL7 v3 教育訓練計畫

<Labrs3P00 T="Labrs3P00"> <Labrs3P00.PTP T="PTP"> <PTP.primrPrsnm T="PN"> <fmn T="ST">Sample</fmn> <gvn T="ST">George</gvn> <mdn T="ST">H</mdn> </PTP.primrPrsnm> </Labrs3P00.PTP> <Labrs3P00.SIOO_L T="SIOO_L"> <SIOO_L.item T="SIOO"> <SIOO.filrOrdId T="IID">LABGL110801</SIOO.filrOrdId> <SIOO.placrOrdId T="IID">DMCRES387209373</SIOO.placrOrdId> <SIOO.InsncOf T="MSRV"> <MSRV.unvSvcId T="CE">18768-2</MSRV.unvSvcId> <MSRV.svcDesc T="TX">CELL COUNTS+DIFFERENTIAL TESTS (COMPOSITE)</MSRV.svcDesc> </SIOO.InsncOf> <SIOO.SRVE_L T="SRVE_L"> <SRVE_L.item T="SRVE"> <SRVE.name T="CE">4544-3</SRVE.name> <SRVE.svcEvntDesc T="ST">HEMATOCRIT (AUTOMATED)</SRVE.svcEvntDesc> <SRVE.CLOB T="CLOB"> <CLOB.obsvnValu T="NM">45</CLOB.obsvnValu> <CLOB.refsRng T="ST">39-49</CLOB.refsRng> <CLOB.clnRlvnBgnDtm T="DTM">199812292128</CLOB.clnRlvnBgnDtm> </SRVE.CLOB> <SRVE.spcmRcvdDtm T="DTM">199812292315</SRVE.spcmRcvdDtm> </SRVE_L.item> </SIOO_L.item> </Labrs3P00.SIOO_L></Labrs3P00>

V3 XML Prototype - same data

Page 22: HL7 v3 教育訓練計畫

V3 對 HL7 的好處降低可選項目:其結果為更明確的訊息對於應用系統邊界的隱含假設予以揭露 讓定義更清楚、更完善、一致性宣告

HL7 V3.0Certified

Page 23: HL7 v3 教育訓練計畫

面對複雜的健康照護環境:

V3 對 Providers 的好處

協助整合異質系統 增加選擇創新方案中的最佳解決方案

支援整合現有系統 提供可靠地驗證供應商一致性宣告

IBMIBM

Page 24: HL7 v3 教育訓練計畫

V3 對 Vendors 的好處 提供改良過協定來整合異質系統 減少安裝的時間

降低 site-specific 之協調 簡化介面程式

Vendor 可以將有發展特定產品,在區隔化市場中找到利基

Page 25: HL7 v3 教育訓練計畫

Version 3 目標提供事件、資料元素與訊息架構增進清楚且精確的定義規範改進標準適應於改變試圖達成 “ plug and play” 目標

Page 26: HL7 v3 教育訓練計畫

受認可之原則 Explicit Scope, Target Users Support for Legacy Systems Loosely Coupled Systems Internationalization Compatibility with Versions 2.X (limited) Management - ANSI and by-laws Uniform Trigger Event Model Information System Role

Page 27: HL7 v3 教育訓練計畫

受認可之原則 (continued)

Conformance Claims The Version 3 Development Process Project Scope Version 3 Methodology - MDF Quality Assurance Processes Process Support Confidentiality of Patient Information Authenticated Authorization for Services Security, Privacy, and Integrity

Page 28: HL7 v3 教育訓練計畫

方法論的使命 在標準發展過程中採用現代化軟體工程技術,如物件導向分析設計、正規化建模技術

為訊息標準提供高品質、易讀性、與彈性

結合抽象概念與行為模型,使用角色定義在嚴格的工作產品中。

廣泛使用 UML 圖示來描述標準。

Page 29: HL7 v3 教育訓練計畫

Version 3 新增項目 HL7 V3 adopts an Object Oriented (OO)

approach using Unified Modeling Language (UML) principles.

HL7 isn't just Level 7 any more!

HDF - HL7 Development Framework

Page 30: HL7 v3 教育訓練計畫

September 2007 publication/ballot

http://www.hl7.org/v3ballot/html/index.htm

Page 31: HL7 v3 教育訓練計畫

September 2007 publication/ballot

Page 32: HL7 v3 教育訓練計畫

Types of Documents in the V3 Publication

Page 33: HL7 v3 教育訓練計畫

各章節說明

Page 34: HL7 v3 教育訓練計畫

An HL7 Version 2.X Spec

Common Specs

Common Specs

Chapter-Specific Specs

Chapter-Specific Specs

Chapter-Specific Specs

Chapter-Specific Specs

Chapter-Specific Specs

Chapter-Specific Specs

Chapters2 and 8

Chapters 3, 4, 6, ...

Trigger Event and Messages

Trigger Event and Messages

Segments and FieldsSegments and Fields

Page 35: HL7 v3 教育訓練計畫

Contents of Existing HL7 V2.3

Trigger events Actions or occurrences

Messages Information content

Segments Repeating structures

Data elements Data representation

Page 36: HL7 v3 教育訓練計畫

An HL7 Version 3.X Spec

Common Specs

Chapter-Specific Specs

Use Case Use Case ModelModel

Use Case Use Case ModelModel

Information Information ModelModel

Information Information ModelModel

Message ModelMessage ModelMessage ModelMessage Model

2-nd Order 1 choice of 0-n Drug 0-1 Nursing

2-nd Order 1 choice of 0-n Drug 0-1 Nursing

Implementable Implementable Message Message

SpecificationSpecification

EDIFACT*EDIFACT*

Implementable Implementable Message Message

SpecificationSpecification

EDIFACT*EDIFACT*

*Future Consideration

Implementable Implementable Message Message

SpecificationSpecification

OLE/CORBAOLE/CORBA

Implementable Implementable Message Message

SpecificationSpecification

OLE/CORBAOLE/CORBA

Implementable Implementable Message Message

SpecificationSpecification

XML/ER7/…XML/ER7/…

Implementable Implementable Message Message

SpecificationSpecification

XML/ER7/…XML/ER7/…

HL7 Reference

Model

HL7 Reference

Model

Interaction Interaction ModelModel

Interaction Interaction ModelModel

Page 37: HL7 v3 教育訓練計畫

HL7 ModelingAbstractions:

ActivitiesActivities(Use Case Model)(Use Case Model)

Dispense Medications

Manage Care

Perform Lab Tests

Review Utilization

Objects Objects (Information (Information

Model)Model)

AccountAccount PatientPatient ProviderProvider EncounterEncounter OrderOrder

CommunicationCommunication (Interaction and (Interaction and Message Models)Message Models)

ADT PharmacyFinance

HALHAL

Version 2.x focused its energies at the communication level and covered the other abstractions only loosely in the specifications.

By demanding analysis of the requirements and information content, Version 3 assures consistency in and enhances the value of the resulting messages.

HL7 messageHL7 message

Page 38: HL7 v3 教育訓練計畫

茶敘10:10 ~ 10:30

Page 39: HL7 v3 教育訓練計畫

Defining V3 Messaging…

Page 40: HL7 v3 教育訓練計畫

Version 3 Terminology

Page 41: HL7 v3 教育訓練計畫

V3 DomainsWhere the functional content is… 相似需求功能之集合範例:

病患管理檢驗室

與 V2.x Chapter類似

Page 42: HL7 v3 教育訓練計畫

Messaging Components

V3 使用 Messaging ComponentsMessaging Components 方式來表達每一個 DomainDomain 在訊息裡的行為及結構。

Page 43: HL7 v3 教育訓練計畫

Messaging Components

Storyboard Application Role Trigger Event Interaction

Domain Message Information Model (DMIM) Refined Message Information Model (RMIM) Hierarchical Message Descriptor (HMD) Message Type (MT)

STATIC

DYNAMIC

DYNAMIC :說明系統間互動 STATIC :說明傳遞訊息的內容

Page 44: HL7 v3 教育訓練計畫

V3 Message Development Methodology

Page 45: HL7 v3 教育訓練計畫

A SystemA System

V3 Dynamic Model

B SystemB System

• Storyboard• Application Role• Trigger Event• Interaction

Page 46: HL7 v3 教育訓練計畫

Storyboards: The V3 Drama

Bill BeakerEric Emergency

Karl Kid

Sara Specialize

Boris Bleeder

Carl Cutter

Page 47: HL7 v3 教育訓練計畫

Emergency Encounter: Storyboard

急診 Check In Adam由救護車送抵好望醫院的急診室。他有呼吸道疼痛 及心跳加速。值班醫師 Dr. Eric認為需要立即進行處理。急診室文書 Christopher在 Person Registry找出 Adam先生的病歷並完成急診 check-in

更新急診檢傷 急診醫師檢查 Adam先生並請胸腔科的 Dr. Penny Puffer 醫師來會診。

Check Out Adam先生的病情穩定後便辦理出院。

Post Check Out 出院檢視病歷時發現有診斷碼的錯誤並更正病歷內容。

Page 48: HL7 v3 教育訓練計畫

如何實作這個故事?

V3

V3

V3

Page 49: HL7 v3 教育訓練計畫

從 Storyboard 開始

Page 50: HL7 v3 教育訓練計畫

Trigger Events

如同 V2.x中, trigger events是解釋兩個系統間實際發生的溝通事件 .

範例 :急診檢傷開始

Emergency Encounter

Page 51: HL7 v3 教育訓練計畫

Example Trigger Event

Page 52: HL7 v3 教育訓練計畫

Dynamic Tie In: Trigger Events are often State Transition Based Trigger events are often based on state

transitions of core classes, especially the ACT class.Emergency Encounter Started (Admit)

Emergency Encounter Completed (Discharge)

NULL NULL ACTIVEACTIVE

ACTIVE ACTIVE COMPLETEDCOMPLETED

Page 53: HL7 v3 教育訓練計畫
Page 54: HL7 v3 教育訓練計畫

Emergency Encounter Trigger Events:

Emergency Encounter StartedNull -> Active

Emergency Encounter CompletedActive -> Completed

Emergency Encounter RevisedActive -> ActiveCompleted -> Completed

Emergency Encounter AbortedActive -> Aborted

Emergency Encounter NullifiedAny State -> Nullified

Page 55: HL7 v3 教育訓練計畫

Application Roles

系統角色是描述傳送及或接收訊息的系統成員 。

一個系統可扮演多個角色。 系統角色 Stereotypes:

Placer FulfillerInformer Tracker

範例 : 檢驗醫令開立者 (placer)檢驗提供資料者 (Fulfiller)

Page 56: HL7 v3 教育訓練計畫

Application Roles範例

OrderPlacer

Clinicians write orders for laboratory services

Laboratory determines if can perform the test and either rejects the order or promises to perform it.

Order Filler

Page 57: HL7 v3 教育訓練計畫

V3 新加入項目: Interactions

唯一的定義,用以連接 A Trigger Event Receiver Responsibilities

- AND – Static Message Definition

列出 參與的 app roles Sending Application Roles Receiving Application Roles

STATIC

DYNAMIC

Page 58: HL7 v3 教育訓練計畫

Application Role 與 Interaction

Page 59: HL7 v3 教育訓練計畫

Interactions:連結 Static與 Dynamic Messaging Components

DYNDYNSTATSTATSTATSTATSTATSTAT

DYNDYNDYNDYNDYNDYNDYNDYN

Page 60: HL7 v3 教育訓練計畫

認清你的角色:可知道一切

Each Domain Provides an Interaction Index Each Domain Provides an Interaction Index By Application RoleBy Application Role

To Conformance

Page 61: HL7 v3 教育訓練計畫

善用文件

Domain

Interaction

Sub domain(Topic)

Page 62: HL7 v3 教育訓練計畫

Artifact Identification SystemHealth & Clinical Management Domains

Subsection: Operations (PO)     Domain: Laboratory (POLB)     Domain: Pharmacy (PORX)

Subsection: Records (RC)     Domain: Medical Records (RCMR)

Administrative Management Domains

Subsection: Practice (PR)     Domain: Patient Administration (PRPA)     Domain: Scheduling (PRSC)     Domain: Personnel Management (PRPM)

Subsection: Financial (FI)     Domain: Claims & Reimbursement (FICR)     Domain: Accounting & Billing (FIAB)

Specification Infrastructure

Subsection: Message Control (MC)     Domain: Message Control Infrastructure (MCCI)     Domain: Message Act Infrastructure (MCAI)

Subsection: Master File (MF)     Domain: Master File Management Infrastructure (MFMI)

Subsection: Query (QU)     Domain: Query Infrastructure (QUQI)

Subsection: Common Content (CO)     Domain: Common Message Elements (COCT)     Domain: Common Message Content (COMT)

Page 63: HL7 v3 教育訓練計畫

Artifact Identification System

Artifact Code

Application Role AR

D-MIM (Domain Information Model) DM

HMD (Hierarchical Message Descriptor) HD

Interaction IN

Message Type MT

R-MIM (Refined Message Information Model) RM

Storyboard ST

Storyboard Narrative SN

Trigger Event TE

Page 64: HL7 v3 教育訓練計畫

Artifact Identification System 範例  PRPA_AR00001UV00   Where:      PR = Subsection: Practice      PA = Domain: Patient Administration      AR = Artifact: Application Role      00001 = 6 digit non-meaningful number assigned by

the TC to ensure uniqueness      UV = Realm (the only current value is UV for unive

rsal)      00 = Current version number

Page 65: HL7 v3 教育訓練計畫

SENDINGAPPLICATION

ROLE

V3 Message Definition

RECEIVINGAPPLICATION

ROLE

?TRIGGER EVENT

INTERACTIONINTERACTION

Where’s the Content?

STORYBOARDSTORYBOARD

Page 66: HL7 v3 教育訓練計畫

Interaction:The “Static” Parts

Page 67: HL7 v3 教育訓練計畫

V3 Static Model

?

• Domain Message Information Model (DMIM)• Refined Message Information Model (RMIM)• Hierarchical Message Descriptor (HMD)• Message Type (MT) Message Type (MT)

PatientPatient NamePatient Date of Birth

(XML/SCHEMA/ELEMENT/ATTRIBUTE)(XML/SCHEMA/ELEMENT/ATTRIBUTE)

Page 68: HL7 v3 教育訓練計畫

Message Type (MT)

A Message Type specifies what data may appear as elements of the message and the order in which they will appear. Individual instances of a message are validated and decoded by referring to the definition of the message type.

All HL7 Version 3 Message Types are derived from a single data model - The Reference Information Model (RIM).

MT MT MT MT MT MT MT MT MT MT

RIM

DMIM DMIM

RMIM RMIM RMIM RMIM

HMD HMD HMD HMD HMD HMD

Page 69: HL7 v3 教育訓練計畫

靜態模型結構

Page 70: HL7 v3 教育訓練計畫

All Messages Based on the RIM(Reference Information Model) A harmonized information

model containing all the information specified in HL7 V3 messages.

In UML (Unified Modeling Language) format.

The “BIG” Picture

Page 71: HL7 v3 教育訓練計畫

The “BIG” Picture

Page 72: HL7 v3 教育訓練計畫

Information Modeling Language

Patient

name : PNDOB : Dateaddress : AD

Class defines things represents important concepts of

your domain concepts = things and ideas that

exist in your business important = subject of multiple

transactions like the definition of a data base

“record”

Name “compartment” of class

Attribute “compartment” of class• attributes are the data we record about

the things of interest• attributes are values that exist only with

with respect to the class.• attributes have a name and a data type• like the definition of a data field in a data

base record

Page 73: HL7 v3 教育訓練計畫

Patient

name : PNDOB : Dateaddress : AD Patient

name = John DoeDOB = 10-Apr-1966address = Calgary

Patientname = Jane SmithDOB = 1-Oct-1956address = Toronto

Patientname = Bart SimpsonDOB = 5-Sep-1975address = Springfield

Information Modeling Language Class defines things Objects are instances

individuals of which classes are a definition

have values assigned to attributes have identity that’s invariant when

other values change like the “records” of a data base

Page 74: HL7 v3 教育訓練計畫

Patient

name : PNDOB : Dateaddress : AD

Doctor

name : PNspecialty : CDphone : TEL

seeks care at

provides care for0..*

1..*

Information Modeling Language Class defines things Objects are instances Associations relate things

describe the way things relate to other things

“Association role name”

cardinality or “multiplicity”• specifies how many such association instances

each object instance can/must have

Page 75: HL7 v3 教育訓練計畫

Patient

name : PNDOB : Dateaddress : AD

Doctor

name : PNspecialty : CDphone : TEL

seeks care at

provides care for0..*

1..*

Information Modeling Language Class defines things Objects are instances Associations relate things

describe the way things relate to other things

“Every Patient … seeks care at … 1 to many … Doctors”

“Reading” associations in plain English:

“Every Doctor … provides care for ... zero to many … Patients”

Page 76: HL7 v3 教育訓練計畫

Information Modeling Language

Patient

name : PNDOB : Dateaddress : AD

Doctor

name : PNspecialty : CDphone : TEL

seeks care at

provides care for0..*

1..*

Encounter

type : CVtime : IVLTSreason : CD

Class defines things Objects are instances Associations relate things Associative classes add properties

to relationships attributes about association more relationships

Page 77: HL7 v3 教育訓練計畫

Information Modeling Language

Patient

name : PNDOB : Dateaddress : AD

Doctor

name : PNspecialty : CDphone : TEL

1

1..*

Encounter

type : CVtime : IVLTSreason : CD

Class defines things Objects are instances Associations relate things Associative classes add properties

to relationships attributes about association more relationships

1

0..*

Page 78: HL7 v3 教育訓練計畫

Information Modeling Language

Patient

gender : CDdonor : BLV.I.P. : BL

Doctor

specialty : CDphone : TELprivileges: CV

Person

name : PNDOB : Dateaddress : AD

1

1..*

Encounter

type : CVtime : IVLTSreason : CD

1

0..*

Class defines things Objects are instances Associations relate things Associative classes Generalization classes

Generalization classes can simplify the model through reuse of common concepts express logical truths of the application domain work the other way as “specialization classes”

Page 79: HL7 v3 教育訓練計畫

Information Modeling Language

Patient

gender : CDdonor : BLV.I.P. : BL

Doctor

specialty : CDphone : TELprivileges: CV

Person

name : PNDOB : Dateaddress : AD

1

1..*

Encounter

type : CVtime : IVLTSreason : CD

1

0..*

0..10..1

follow-up

Class defines things Objects are instances Associations relate things Associative classes Generalization classes Reflexive associations

Reflexive associations structure instances of one classchain (predecessor-successor,) hierarchy (parent-child,) or network

Page 80: HL7 v3 教育訓練計畫

第二節第一小時結束

Page 81: HL7 v3 教育訓練計畫

Six Core Classes Act - Actions

Order, Observe, Encounter, Account

Entity - People, Places, Things Person, Location, Blood

Role Patient, Location of Care,

Specimen.

Act_Relationship Connects Acts.

Participation Connects Roles to Acts.

Role_Link Connects Roles.

Entity

Role

Page 82: HL7 v3 教育訓練計畫

RIM Classes

Act

Act_Relationship

Entity Role

Participation

Role_Link

Non CoreNon CoreNon Core

particip

ates in

playshas

scopes has targethas

sourcehas

targethas

source

Page 83: HL7 v3 教育訓練計畫

Associations between Roles and Entities: “Played and Scoped”

Doctor Patient

DowntownHospital

Uptown Hospital

Joe Smith

Plays Plays

Scoped

By

Scoped

By

Yellow colored on Models

Page 84: HL7 v3 教育訓練計畫

Roles Specified by Class Code Examples:

LIC – Licensed Entity PROV – Healthcare Provider ASSIGNED – Assigned Entity NOK – Next of Kin GUAR – Guarantor PAT – Patient IDENT – Identified Entity SDLOC – Service Delivery Location SPEC - Specimen

Page 85: HL7 v3 教育訓練計畫

Entity詳細說明 (與 Role 相似 )

Page 86: HL7 v3 教育訓練計畫

Act

classCode: CS moodCode: CS id: SET<II> code: CD statusCode: SET <CS> etc.

V3: All About Acts

Orange colored on Models

Page 87: HL7 v3 教育訓練計畫

Acts Have Class ENC - Encounter OBS - Observation (lab) SBADM - Substance Administration (pharmacy -admin) SPLY - Supply (pharmacy - dispense)

Act.classCode :: CS (1..1) Mandatory

Vocabulary domain: ActClass

Page 88: HL7 v3 教育訓練計畫

Acts Have States

Act.statusCode :: SET<CS> (0..*)

Vocabulary domain: ActStatus

Page 89: HL7 v3 教育訓練計畫

Acts Have Moods

ProposalPRP

Order/RequestRQO

PromisePRMS

EventEVN

你為什麼不整理你的房間 ?

快去整理房間 !

我會的 !

房間已整理完畢 .

Act.moodCode :: CS (1..1) Mandatory

Vocabulary domain: ActMood

Page 90: HL7 v3 教育訓練計畫

Appointment Mood

AppointmentAPT

今天的房間整理安排下午三時

Page 91: HL7 v3 教育訓練計畫

More Moods...

Definition - DEFfrom master file

Event Criterion - EVN.CRTprecondition, such as “if pain”

“整理房間” 指把床整理好 , 把衣服放在洗衣機 , 及把玩具收拾好 .

如果你想吃冰淇淋 , 那你趕快把房間整理好… .

Page 92: HL7 v3 教育訓練計畫

V3 Lab Moods

Observation Placer Order V2 Placer Order

Observation Filler Order (Promise) V2 Filler Order

Observation Result (Event) V2 Observation

做 CBC 檢驗

我會幫你做你要求的 CBC 檢驗

這是你的 CBC 檢驗結果

CBC = Complete Blood Count

Page 93: HL7 v3 教育訓練計畫

V3 Patient Encounter Moods

New Inpatient Encounter Appointment

Active Inpatient Encounter

新預約的住院病患

病患已經入院

Page 94: HL7 v3 教育訓練計畫

Acts Can Have Codes

External coding systems: Lab Observation Act Codes

could be LOINC codes.

HL7 defined: Encounter Type are Act

Codes.

Encounter TypeInpatient

EmergencyAmbulatory

Home Health

<code code="1554-5" codeSystemName="LN" displayName="Serum Glucose“/>

Act.code :: CD (0..1)

Vocabulary domain: ActCode

Page 95: HL7 v3 教育訓練計畫

Acts have Ids: Act.id Going Global in V3

II:•identifier that uniquely identifies a thing or object.•Examples include medical record number, order id, service catalog item id, etc.•Usually based on ISO Object Identifier (“OID”)

•OID Registry: http://www.hl7.org/oid/index.cfm

Not to be confused with code – which describes the KIND of Act.

id [1..1] (M) Act (II)

Page 96: HL7 v3 教育訓練計畫

Properties of the II Data Type

<hl7:id root="2.16.840.1.113883.19.3.2409" extension="12345" >

Page 97: HL7 v3 教育訓練計畫

補充說明

Page 98: HL7 v3 教育訓練計畫

Associations between Acts and Roles: Relations and Participants

Acts are related to other acts via Act

RelationShips.

Entities in Roles participate in acts via Participations.

Page 99: HL7 v3 教育訓練計畫

ActRelationship

把兩個 acts聯結在一起 包含從簡單的 act群組到複雜的,如依時間計畫執行的 act 。

範例 : inFulfillmentOf [an order] componentOf [an encounter]

Salmon colored on Models

Page 100: HL7 v3 教育訓練計畫

Types of Act Relationships

COMP - has component PERT - has pertinent info SEQL - is sequel OPTN - has option FLFS - fulfills RSON - has reason INST - instantiates PRCN - has precondition

OUTC - has outcome SUCC - succeeds RPLC - replaces OCCR - occurrence REFV - has reference values AUTH - authorized by COST - has cost GOAL - has goal PREV - has previous instance

ActRelationship.typeCode :: CS (1..1) Mandatory

Vocabulary domain: ActRelationshipType

Page 101: HL7 v3 教育訓練計畫

Participation

Describes the involvement of an entity in an act. The entity is playing a role

(Joe Smith plays doctor). The role participates in an act. Examples:

Author [of an order]

(Ordering Doctor)

Admitter [of an encounter]

(Admitting Doctor)

Sky Blue Colored on Models

Page 102: HL7 v3 教育訓練計畫

Types of Participations AUT - author ENT - data entry person CBC - call back contact PATSBJ - patient subject ADM - admitter PRF - performer ATND - attender CNS - consentor DIS - Discharger

SPC - specimen LOC - location ELOC - entry location DST - destination DEV - device TPA - therapeutic agent CSM - consumable RESPROV - responsible

providerParticipation.typeCode :: CS (1..1) Mandatory Vocabulary domain: ParticipationType

Page 103: HL7 v3 教育訓練計畫

Adam’s Emergency:

Adam Everyman在 2006/5/2早上 10 點,經由救護車送達 Good Health Hospital 的急診處。 Everyman先生呼吸道疼痛及心跳加速的症狀。值班醫師 Eric Emergency ,認為他需要被緊急處理,並且要求胸腔科的 Dr. Penny Puffer 醫師前來會診。Adam 已經完成掛號。

Page 104: HL7 v3 教育訓練計畫

Quiz: Adam’s Emergency Identify the main Act (focal Act):

Act.classCode = Act.Code = Act.Status = Act.Mood = Act.effectiveTime =

What Role does Adam play? Role.classCode =

Penny and Eric both play the doctor Role. How do these doctors Participate in Adam’s Emergency Encounter? Eric’s Participation.Type = Penny’s Participation.Type =

Adam arrived at the hospital via ambulance. His transportation is modeled as an Act. What is the ActRelationShip between Transportation and his Encounter? ActRelationship.Type =

Page 105: HL7 v3 教育訓練計畫

Quiz: Adam’s Emergency 定義主要的 Act (focal Act):

Act.ClassCode = “ENC” Act.code =“EMER” Act.Status =“active” Act.moodCode =“EVN” Act.effectiveTime = “200605021000”

Adam 扮演甚麼角色 ? Role.classCode =“ASSIGNED”

Penny 與 Eric 都是扮演醫師角色。他們是如何參與 Adam’s Emergency Encounter? Eric’s Participation.typeCode =“ATND” Penny’s Participation.typeCode =“CON”

Adam arrived at the hospital via ambulance. His transportation is modeled as an Act. What is the ActRelationShip between Transportation and his Encounter? ActRelationship.typeCode =“ARR”

Page 106: HL7 v3 教育訓練計畫

Attributes have Data Types and sometimes Vocabulary Domains

• ANY

• BL

• BN

• ED

• ST

• CD

• CS

• CO

• CE

• SC

• II

• TEL

• AD

• EN

• TN

• PN

• BAG

• IVL

• HIST

• UVP

• PIVL

• EIVL

• GTS

• PPD

180+ V3 Vocabulary Domains

AcknowledgementCondition..

WorkPlaceAddressUse

33 V3 Data Types

• ON

• INT

• REAL

• RTO

• PQ

• MO

• TS

• SET

• LIST

Page 107: HL7 v3 教育訓練計畫

Many Attributesalso have Vocabulary Domains

180+ V3 Vocabulary Domains

AcknowledgementCondition..

WorkPlaceAddressUse

Coding Strength:

(for attributes with Vocabularies)

CNE = Coded No Exceptions

CWE = Coded With Exceptions

Act.classCode :: CS (1..1) Mandatory

Vocabulary domain: ActClass (CNE)

bind HL7 attributes to value sets from external or internal terminologies8

Page 108: HL7 v3 教育訓練計畫

Attributes can be MandatoryAttributes have Cardinality

Mandatory Flag: If an attribute is

Mandatory, it must be valued

or your message is not

valid V3.

Cardinality: How many?

(0..1)(1..1)(1..3)(1..*)

Act.classCode :: CS (1..1) Mandatory

Vocabulary domain: ActClass (CNE)

Page 109: HL7 v3 教育訓練計畫

The RIM is too general to specify the requirements of a specific V3 object

Using V3 methodology, refinements of the RIM are

created for specific functional contexts.

Page 110: HL7 v3 教育訓練計畫

More specific information models are derived from the RIM.

The The “Constraint “Constraint

Cycle”Cycle”

Page 111: HL7 v3 教育訓練計畫

Domain Message Information Model (DMIM)是由 RIM延伸出來的。 所有都是針對特有 domain 建構而成 ( 例如 “ Patient Administration”) 。

會有多個“ entry points” 。屬性是有限制的。

Page 112: HL7 v3 教育訓練計畫

Refined Message Information Model (RMIM) 資訊模型顯示在特定訊息或訊息集合中所有資料。

衍生自 DMIM ,是 DMIM 之子集合。屬性會進一步限制。 只會有一個“ Entry Point”連接到特定焦點或主題類別。

Patient Administration DMIM

Active Emergency Encounter RMIM

New PersonRMIM

Page 113: HL7 v3 教育訓練計畫

Hence, the Refined Message Information Model (RMIM) The RMIM is an Information model that shows all the

data for a particular message or message set. An RMIM can also be used to show the structure for a

clinical document. All RMIMs are derived from the RIM. Attributes constrained and refined based on functional

context. RMIMs have One Entry Point which points to a single

“focal” or “subject” class. While there is only one RIM, there are many many RM

IMs. Understanding RMIMs is KEY to understanding V3.

Page 114: HL7 v3 教育訓練計畫

Example RMIM: Active Emergency Encounter

Entry PointFocal Class

Page 115: HL7 v3 教育訓練計畫

How to Read RMIMs RMIMs are in an HL7 “proprietary” modeling format, not

UML. Classes cloned and renamed to improve readability Color matters ActRelationship and Participation represented as block arro

ws: makes models more compact. Source points to target

Roles Solid line = played Dashed line = scoped

Special Choice Box Representation Constraint boxes

For more information on RMIM modeling conventions, refer to the V3 Guide RMIM Messaging Component section (3.5)

Page 116: HL7 v3 教育訓練計畫

Reading RMIMs:Classes are Cloned and Color Coded

Acts:EncounterEvent

A_EncounterValuablesLocation

A_ConsentA_ObservationDx

A_AccountAccomodationEvent

PatientTransportation

Entities:E_Organization

E_Place

Roles:R_NotificationParty

R_AssignedPerson

R_AssignedEntity

R_Patient

ServiceDeliveryLocation

R_AssignedOrganization

Participations:notificationContact

attenderconsultant

referrersubjectlocation

responsiblePartyadmitter

ActRelationships:componentOf

pertinentInformation2Authorization

pertinentInformation1ReferencesequelTo

arrivedBy

Page 117: HL7 v3 教育訓練計畫

Vocabulary Domain

Reading RMIMs:Class Attribute Conventions

Bold means Mandatory

Data TypeCoding

Strength

Default Value

Cardinality

Page 118: HL7 v3 教育訓練計畫

Asterisk * means required

After attribute After association

If you’ve got it, you gotta send it

• Its considered a conformance indicator. From a conformance perspective, an attribute can be required or optional or not permitted.

Page 119: HL7 v3 教育訓練計畫

RMIMs can reference CMETS(Common Message Element Types)

一個 CMET 只是訊息的片段,並非一個完整的訊息

它包含了共同可重複使用的概念 CMETs 只是一些訊息的相關資料 – 並不是針對訊息本身例如 : 醫令訊息裡的 “ Encounter” 及 “ Pat

ient”

Page 120: HL7 v3 教育訓練計畫

CMETs are defined by their own RMIMs. Example:R_Assigned_ Entity (contact)

CMETs can reference other CM

ETs

Choice Box:Can be a person,

device, or an organization.

Solid Line: Played By

Dotted Line:

Scoped By

Constraint

Page 121: HL7 v3 教育訓練計畫

Refinement Review

Page 122: HL7 v3 教育訓練計畫

Hierarchical Message Descriptors (HMD)and Message Types (MT) HMD’s are derived from

an RMIM. HMDs are subsets of the

RMIM. Further constrained. Similarly, Message Type

s are subsets of an HMD with further constraints.

MT MT MT MT MT MT MT MT MT MT

RIM

DMIM DMIM

RMIM RMIM RMIM RMIM

HMD HMD HMD HMD HMD HMD

Page 123: HL7 v3 教育訓練計畫

Reading HMDs and MTs:The Tabular Views:

Results in a linear list of attributes and associations. Closest analogy to V2 message and segment layouts.

Do the “Walk”

Page 124: HL7 v3 教育訓練計畫

HMD/MT: Attributes are defined in a similar manner as on RMIM

Cardinality: [1..1] Mandatory flag: (M) Class: Act Data Type: (CS) Coding Strength+Vocabulary Domain: {CNE:ACT} Default Value: Fixed “ACT”

Or Fixed Value if Mandatory and Vocabulary domain constrained to a single value

Other constraints and notes

classCode [1..1] (M) Act (CS) {CNE:ACT} Fixed: "ACT"

Page 125: HL7 v3 教育訓練計畫

Field Definitions: Peering into the Foundation

Links to RIM for class and attribute definition.

Links to Data Types for type definition

Links to Vocabulary for valid values and value definition.

code [0..1] Act (CE) {CWE:ActCode}

Page 126: HL7 v3 教育訓練計畫

HMD and MTs: Three different “views”

Table View Excel View Schema View

Page 127: HL7 v3 教育訓練計畫

Example: Active Emergency Encounter HMD – Table View

Page 128: HL7 v3 教育訓練計畫

Example: Active Emergency Encounter MT – Table View

Page 129: HL7 v3 教育訓練計畫

午餐時間

12:00~13:30

Page 130: HL7 v3 教育訓練計畫

Introduction to the Introduction to the Clinical Document ArchitectureClinical Document Architecture

Page 131: HL7 v3 教育訓練計畫

CDA

Clinical Document Architecture ANSI/HL7 CDA R1.0-2000 ANSI/HL7 CDA R2.0-2005 Created & maintained by HL7 Structured Documents

Technical Committee (SDTC) A specification for document exchange using

XML, the HL7 Reference Information Model (RIM) Version 3 methodology and vocabulary (SNOMED, ICD, local,…)

Page 132: HL7 v3 教育訓練計畫

CDA: A Document Exchange Specification

This is a CDA and this and this and this and this and this and this

Page 133: HL7 v3 教育訓練計畫

CDA: A Document Exchange Specification CDA 可以是

Discharge SummaryCare Record SummaryProgress NoteH&PPublic health report

… 任何帶有簽章的內容

Page 134: HL7 v3 教育訓練計畫

CDA: What is a document?

從 XML角度,任何一種都是“ document”

直覺的角度, documents是 :表現出歷史醫療記錄格式把分散的資料及片斷病歷敍述整合在一起

CDA 給一系列的 healthcare documents 一些規範

Page 135: HL7 v3 教育訓練計畫

CDA Release 2, section 2.1: A clinical document ... 有以下的特色 :

Persistence 永久性 Stewardship管理性 Potential for authentication鑑別性 Context 關連性 Wholeness 完整性 Human readability閱讀性

因此 CDA documents 不是 : data 碎片除非已簽核 出生至死亡的記錄 已簽章文件的集合

The CDA document defined

Page 136: HL7 v3 教育訓練計畫

Relationship to HL7 messages

CDA 補足 HL7 messaging 的規格 CDA 文件是已被定義且完整的資訊物件。他可以存在與訊息本體之外。

CDA 文件可用 MIME編碼放入 HL7 message 中

Page 137: HL7 v3 教育訓練計畫

Messages

can be the same

differ

Messages

can be the same

differ

Documents

can be the same

differ

Documents

can be the same

differ

Content

Intent & use cases

CDA documents::HL7 messages

Page 138: HL7 v3 教育訓練計畫

CDA documents::HL7 messages

Messages

temporary

system-to-system

... not messages

signed?legally accepted?

designed per use case

Messages

temporary

system-to-system

... not messages

signed?legally accepted?

designed per use case

Documents

persistent

human-to-human

care-givers are trained to create documents ...

have legal standing

defined by precedent

Documents

persistent

human-to-human

care-givers are trained to create documents ...

have legal standing

defined by precedent

Lifetime

Commu-nication

Relationto care-givers

Legalaspects

Source

Page 139: HL7 v3 教育訓練計畫

HL7 V2.x

MSH|...EVN|...PID|...PV1|...TXA|...OBX|1|ED|...

|...

CDA documents are encapsulated as MIME packages within HL7 messages

Relationship to HL7 messages

HL7 V3

<Act.Code code="11488-4" codeSystem="2.16.840.1.113883.6.1" displayName="Consultation note"/>

<Act.text type="multipart/related"> MIME-Version: 1.0 Content-Type: multipart/related; boundary="HL7-CDA-boundary"; type="text/xml"; start="10.12.45567.43" Content-Transfer-Encoding: BASE64

Page 140: HL7 v3 教育訓練計畫

General Relationship to Messaging

CDA can be the payload in any kind of message

And can be passed from one kind to another

V2

V3

X12

XDS

Page 141: HL7 v3 教育訓練計畫

CDA = header + body

CDA Header Metadata required for document discovery, management,

retrieval

CDA Body Clinical report

Discharge Summary Care Record Summary Progress Note H&P Public health report

… any content that carries a signature

Page 142: HL7 v3 教育訓練計畫

CDA Header

The header describes: The document itself (unique ID, document type

classification, version)Participants (providers, authors, patients…)Document relationships (to orders, other

documents…) Metadata sufficient for document management

Page 143: HL7 v3 教育訓練計畫

XML Body: two types of markup

Human-readable “narrative block”, all that is required to reproduce the legal, clinical content

Optional machine-readable CDA Entries, which drive automated processes

Page 144: HL7 v3 教育訓練計畫

Header Body

Readable: required Computable: optional

Sample CDA

Page 145: HL7 v3 教育訓練計畫

CDA Header: Metadata

Identify Patient Provider Document type...

Sufficient for Medical records management Document management Registry/repositoryg Record locator service Store, query, retrieve

required

Page 146: HL7 v3 教育訓練計畫

CDA Body: Human-readable report

Any type of clinical document H&P Consult Op note Discharge Summary...

Format: tif, PDF, HTML, XML: Paragraph List Table Caption Link Content Presentation

required

Page 147: HL7 v3 教育訓練計畫

CDA Body: Machine Processible Model-based computable semantics:

Observation Procedure Organizer Supply Encounter Substance Administration Observation Media Region Of Interest Act

Optional

Page 148: HL7 v3 教育訓練計畫

CDA: Incremental Computability

Standard HL7 metadata

Simple XML for point of care human readability

RIM semantics for reusable computability (“semantic interoperability”)

Page 149: HL7 v3 教育訓練計畫

Investing in Information

CDA XML 可以簡單 CDA XML 可以複雜簡單的編碼相對的花費很少而複雜的編碼則須花費很少但你投入多少將得到多少 :

就像電池更替越詳細的編碼重複使用的機會就越高

Page 150: HL7 v3 教育訓練計畫

CDA: How to Create

creating CDA documentseForms transcriptionknowledge basedynamic queryHL7 message conversion (V2 & V3)DICOM Structured Report transformEHR

Page 151: HL7 v3 教育訓練計畫

eForms: Microsoft InfoPath

Page 152: HL7 v3 教育訓練計畫

Adobe: Import CDA from Epic

Page 153: HL7 v3 教育訓練計畫

Adobe: CDA Data from Epic

Page 154: HL7 v3 教育訓練計畫

CDA from dictation

Dictaphone

Page 155: HL7 v3 教育訓練計畫

CDA in desktop app

Page 156: HL7 v3 教育訓練計畫

CDA from DICOM SR

GE RA600 created CDA as transformation from DICOM SR

Page 157: HL7 v3 教育訓練計畫

The Simplest CDA

Enterminimal metadata

Point to document body

See HL7.org NLM Project

Page 158: HL7 v3 教育訓練計畫

The CDA Spec Itself

Prose document (pdf or html) RMIM: Refined model (Visio or gif) HMD: Hierarchical Descriptor (table or spread

sheet) Data types: abstract and XML NOTE: W3C xsd schemas informative

Page 159: HL7 v3 教育訓練計畫

CDA 文件

Page 160: HL7 v3 教育訓練計畫
Page 161: HL7 v3 教育訓練計畫

How the CDA is developed and maintained: just enough HL7 Development FrameworkReference Information Model

RMIM

Hierarchical Description

XML Schema

• linearization• additional constraints

• algorithm

• subset of RIM• tighten constraints

Page 162: HL7 v3 教育訓練計畫

CDA Model

CDA Header CDA Body,Section, andNarrative Block

Ext'l Refs CDA Entries

Page 163: HL7 v3 教育訓練計畫

The CDA Hierarchical Descriptor

Page 164: HL7 v3 教育訓練計畫

R-MIM

CDA Header CDA Body, Section, and Narrative Block

CDA Entries Ext'l Refs

Page 165: HL7 v3 教育訓練計畫

CDA Revisions & Addenda

Page 166: HL7 v3 教育訓練計畫

CDA HeaderGood Health Clinic Consultation note Consultant: Robert Dolin, MDDate: April 7, 2000Patient: Henry Levin, the 7th MRN: 12345 Sex: MaleBirthdate: September 24, 1932

<?xml version="1.0"?><ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:voc="urn:hl7-org:v3/voc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 CDA.ReleaseTwo.CommitteeBallot01.July.2003.xsd"><!-- ******************************************************** CDA Header********************************************************-->

Page 167: HL7 v3 教育訓練計畫

Header ElementsGood Health Clinic Consultation note Consultant: Robert Dolin, MDDate: April 7, 2000Patient:Henry Levin, the 7th MRN: 12345 Sex: MaleBirthdate: September 24, 1932

<id extension="c266" root="2.16.840.1.113883.3.933"/><code code="11488-4“codeSystem="2.16.840.1.113883.6.1“ displayName="Consultation note"/><title>Good Health Clinic Consultation Note</title><effectiveTime value="20000407"/><setId extension="BB35" root="2.16.840.1.113883.3.933"/><versionNumber value="2"/><relatedDocument typeCode="RPLC"> <parentDocument> <id extension="a123" root="2.16.840.1.113883.3.933"/> <setId extension="BB35"root="2.16.840.1.113883.3.933"/> <versionNumber value="1"/> </parentDocument> </relatedDocument>

<documnetationOf><inFulfillmentOf><authorization><componentOf>

Page 168: HL7 v3 教育訓練計畫

R-MIM

CDA Header CDA Body, Section, and Narrative Block

CDA Entries Ext'l Refs

Page 169: HL7 v3 教育訓練計畫

Header ElementsGood Health Clinic Consultation note Consultant: Robert Dolin, MDDate: April 7, 2000Patient: Henry Levin, the 7th MRN: 12345 Sex: MaleBirthdate: September 24, 1932

<recordTarget><patientRole>

<id extension="12345" root="2.16.840.1.113883.3.933"/><patientPatient><name>

<given>Henry</given><family>Levin</family><suffix>the 7th</suffix></name>

<administrativeGenderCode code="M" codeSystem="2.16.840.1.113883.5.1"/>

<birthTime value="19320924"/></patientPatient></patientRole>

</recordTarget>

Page 170: HL7 v3 教育訓練計畫

R-MIM

CDA Header CDA Body, Section, and Narrative Block

CDA Entries Ext'l Refs

Page 171: HL7 v3 教育訓練計畫

CDA Body

History of Present IllnessHenry Levin, the 7th is a 67 year old male referred for further asthma management. Onset of asthma in his twenties teens. He was hospitalized twice last year, and already twice this year. He has not been able to be weaned off steroids for the past several months. Past Medical HistoryAsthmaHypertension (see HTN.cda for details) Osteoarthritis, right kneeMedicationsTheodur 200mg BIDAlbuterol inhaler 2puffs QID PRNPrednisone 20mg qdHCTZ 25mg qd

<!-- ******************************************************** CDA Body********************************************************-->

<component><StructuredBody>

<!--

Page 172: HL7 v3 教育訓練計畫

R-MIM

CDA Header CDA Body, Section, and Narrative Block

CDA Entries Ext'l Refs

Page 173: HL7 v3 教育訓練計畫

CDA Section Narrative Block

History of Present IllnessHenry Levin, the 7th is a 67 year old male referred for further asthma management. Onset of asthma in his twenties teens. He was hospitalized twice last year, and already twice this year. He has not been able to be weaned off steroids for the past several months. Past Medical HistoryAsthmaHypertension (see HTN.cda for details) Osteoarthritis, right kneeMedicationsTheodur 200mg BIDAlbuterol inhaler 2puffs QID PRNPrednisone 20mg qdHCTZ 25mg qd

<!-- ******************************************************** History of Present Illness section********************************************************--><component>

<section><code code="10164-2" codeSystem="2.16.840.1.113883.6.1" codeSystemN

ame="LOINC"/><text>Henry Levin, the 7th is a 67 year old male referred for further asthma manage

ment. Onset of asthma in his <delete>twenties</delete><insert>teens</insert>. He was hospitalized twice last year, and already twice this year. He has not been able to be weaned off steroids for the past several months. </text>

<title>History of Present Illness</title></section>

</component>

<content> <link><renderMultiMedia> <paragraph> <list> <item> <table> <tr> <th> <td><caption>

Page 174: HL7 v3 教育訓練計畫

CDA Section Narrative BlockPast Medical History•Asthma•Hypertension (see HTN.cda for details) •Osteoarthritis, right kneeMedications•Theodur 200mg BID•Albuterol inhaler 2puffs QID PRNPrednisone 20mg qdHCTZ 25mg qdAllergies & Adverse ReactionsPenicillin - HivesAspirin - WheezingCodeine – Itching and nausea

<component> <section> <code code="10153-2" codeSystem="2.16.840.1.113883.6.1“ codeSystemName="LOINC"/> <text> <list> <item><content ID="a1">Asthma</content></item> <item><content ID="a2">Hypertension (see HTN.cda for details)</content></item> <item><content ID="a3">Osteoarthritis, <content ID="a4">right knee</content></content></item> </list> </text> <title>Past Medical History</title> <component1>

<Observation classCode="COND"><code code="G-1001" codeSystem="2.16.840.1.113883.6.5" codeSystemName="SNOMED" disp

layName="Prior dx"/> <effectiveTime value="1950"/> <value xsi:type="CD" code="D2-00036"

CDA Entries

Page 175: HL7 v3 教育訓練計畫

XML File

Page 176: HL7 v3 教育訓練計畫

How the XSDs fit together Namespace declar

ations Header Entries Narrative Datatypes

POCD_MT000040.xsd

CDA.xsd

NarrativeBlock.xsd

datatypes.xsd

datatypes-base.xsd

voc.xsd

entries

narrative

header

namespaces

Page 177: HL7 v3 教育訓練計畫

The CDA Header

Document identification and classification

Participants

Related documents/events

Page 178: HL7 v3 教育訓練計畫

The CDA Body

XML or non-XML

Page 179: HL7 v3 教育訓練計畫

Non-XML body

Page 180: HL7 v3 教育訓練計畫

XML Body

Series of recursive sections

Sections establish context and include narrative and entries

identify

set context

Page 181: HL7 v3 教育訓練計畫

Section Narrative

Page 182: HL7 v3 教育訓練計畫

CDA & V3 Data Types

CDAData type

Page 183: HL7 v3 教育訓練計畫

茶敘15:00~15:30

Page 184: HL7 v3 教育訓練計畫

Tools Overview

15:30~17:00

Page 185: HL7 v3 教育訓練計畫

V3 process is documented in the Message Development Framework (MDF)

Use Case Model

Information Model

Interaction Model

2-nd Order 1 choice of 0-n Drug 0-1 Nursing

2-nd Order 1 choice of 0-n Drug 0-1 Nursing

Message Specification

• Captures healthcare requirements

• Defines scope for TSC approval

• Specifies data and its semantics

• Specifies major state transitions

• Specifies vocabulary for domains

• Defines information flows

• Defines communication roles

• Forms basis for conformance claims

• Defines message contents

• Apply constraints to the

information model and vocabulary

Page 186: HL7 v3 教育訓練計畫

Message Development Framework (MDF) Is a Methodology for building HL7 models Is a description for defining HL7 standard

messages Full instruction book for HL7 participants Basis for member training Five years in development Continues to evolve as we gain experience

Page 187: HL7 v3 教育訓練計畫

Reference Model RepositoryReference Model RepositoryReference Model RepositoryReference Model Repository

RequirementsRequirementsAnalysisAnalysis

Use CaseUse CaseModelModel(UCM)(UCM)

RequirementsRequirementsAnalysisAnalysis

Use CaseUse CaseModelModel(UCM)(UCM)

DomainDomainAnalysisAnalysis

DomainDomainInformation Information

ModelModel(DIM)(DIM)

DomainDomainAnalysisAnalysis

DomainDomainInformation Information

ModelModel(DIM)(DIM)

AnalysisAnalysisAnalysisAnalysis DesignDesignDesignDesign

InteractionInteractionDesignDesign

InteractionInteractionModelModel(IM)(IM)

InteractionInteractionDesignDesign

InteractionInteractionModelModel(IM)(IM)

MessageMessageDesignDesign

HierarchicalHierarchicalMessageMessage

DescriptionsDescriptions(HMD)(HMD)

MessageMessageDesignDesign

HierarchicalHierarchicalMessageMessage

DescriptionsDescriptions(HMD)(HMD)

ApprovalApproval

BallotsBallots

ApprovalApproval

BallotsBallots

VotingVotingVotingVoting

RIMRIMRIMRIM

2-nd Order2-nd Order 1 choice of1 choice of 0-n Drug0-n Drug

0-1 Nursing0-1 Nursing

2-nd Order2-nd Order 1 choice of1 choice of 0-n Drug0-n Drug

0-1 Nursing0-1 Nursing

MDF Model Relationships

Page 188: HL7 v3 教育訓練計畫

Models developed in Phases

Use Case ModelUse Case ModelUse Case ModelUse Case Model

Use Case Diagram

Spec

UCM Spec

Information ModelInformation ModelInformation ModelInformation Model

Spec

DIM Spec

State DiagramClass Diagram

Message DesignMessage DesignMessage DesignMessage Design

2-nd Order 1 choice of 0-n Drug 0-1 Nursing

2-nd Order 1 choice of 0-n Drug 0-1 Nursing

h//mt:50”d”………

h//mt:50”d”………

Identify Actors & Events

Develop ScopeCreate Use Cases

Model new concepts

Harmonize withRIM

Draw initial contents from RIM

Develop MessageInformation Model

Develop Message Object Diagram

Specify HMD

Define Trigger Events

Define Application Roles

DefineInteractions

Create Conformance Claims

Interaction ModelInteraction ModelInteraction ModelInteraction Model

Interaction Diagram

Spec

Inter Spec

Page 189: HL7 v3 教育訓練計畫

V3 Message Development Methodology

Page 190: HL7 v3 教育訓練計畫

Use Case Modeling

Produce a storyboard example by writing a simple example for your domain that illustrates where information is (or should be) transferred to accomplish a clinical scenario. This is to help you understand who is involved & how, what they need to know & when, and how they use computers to accomplish their tasks.

Generalize the storyboard example into a storyboard

Page 191: HL7 v3 教育訓練計畫

Interaction Modeling Define application roles:

Look at the storyboard and decide where communication between systems will be needed. Consider the kind of system involved (HIS, lab, etc.) and include possible “decomposition” (e.g. if a hospital has a monolithic system, consider sub-functions like ADT and lab).

Use arrows to signify the information exchanges implied in the story board (e.g. A queries B for results, B responds.)

Review the communications and determine the primary content or subject of each (e.g. patient admission, x-ray results, orders, etc.)

Use the above to list application roles (e.g. order manager, admission tracker, etc.)

Page 192: HL7 v3 教育訓練計畫

Interaction Modeling

Define interactionsLay out a rough collaboration diagram, in which

the application roles are boxes, and the information flows are directed arrows between them

Each arrow is an interaction. Label it with: An identifier The name of the trigger event The name or a summary of the message content to be

transferred

Page 193: HL7 v3 教育訓練計畫

Information Modeling

Define classes, attributes, data types, and relationships

Define vocabulary domains, code systems, and value sets

Define states, trigger events, and transitions

Page 194: HL7 v3 教育訓練計畫

Message Design

Define D-MIM, CMETs, and R-MIMs Define HMD and Message Types

Page 195: HL7 v3 教育訓練計畫

Models are used to build the HMDUse Case Model

InteractionModel

HierarchicalMessage

Description

ReferenceInformation Model

MessageInformation

Model

CommonMessageElementTypes

DomainInformation

Model

Inpatient_encounter

actual_days_qtyestimated_days_qtyPatient_admission

admission_dttmadmission_reason_cdadmission_referral_cdadmission_source_cdadmission_type_cdpre_admit_test_indreadmission_ind

1

1is_preceded_by

1

preceded

1

Encounter_practitioner

participation_type_cdPerson_as_IHCP

phon : TIL

Person_name_for_IHCP

cd : CVpurpose_cd : CVtype_cd : CVnm : PN

1

1

has1

is_for

1

Patient_billing_account

id : TIIs tatus_cd : CVbilling_status_cd : CVpatient_financial_class_cd : CVprice_schedule_id : TII

Patient_encounter

id : TIIs tatus_cd : CVencounter_classification_cd : CVstart_dttmend_dttmexpected_insurance_plan_qty : NMfirst_similar_illness_dttm

1..*

1

is_associated_with

1..*

has_as_participant 1Individual_healthcare_practitioner

id : TII

0..*

1

is_participant_for 0..*

participates_as1

1

1

is_a_role_of

1

takes_on_role_of1

Patient

id : TIIs tatus_cd : CVnewborn_baby_indmultiple_birth_indorgan_donor_ind

0..1

1

belongs_to

0..1

has1

1

1

involves

1

is_involved_in

1

0..*

0..1

has_a_primary_provider0..*

is_the_primary_provider_for0..1Person_as_Patient

birth_dttm : TSbirthplace_addr : STdeceased_dttm : TSeducation_level_cd : CVgender_cd : CVmarital_s tatus_cd : CVrace_cd : CVreligious_affiliation_cd : CVphon : TIL

1..1

1..1

is_a_role_of

1..1

takes_on_role_of

1..1

Person_name_for_Patient

nm : PNeffective_dt : TScd : CVpurpose_cd : CVtermination_dt : TStype_cd : CV

1

1..*

has

1

is_for1..*

Exactly one occurrence

Domain Specification Database

Page 196: HL7 v3 教育訓練計畫

10 Steps to V3 – Interactions from Storyboards1. Storyboard – Write a simple example for your domain that illustrates wh

ere information is (or should be) transferred to accomplish a clinical scenario. This is to help you understand who is involved & how, what they need to know & when, and how they use computers to accomplish their tasks.

2. Application roles –a. Look at the storyboard and decide where communication between systems

will be needed. Consider the kind of system involved (HIS, lab, etc.) and include possible “decomposition” (e.g. if a hospital has a monolithic system, consider sub-functions like ADT and lab.)

b. Use arrows to signify the information exchanges implied in the story board. (e.g. A queries B for results, B responds.)

c. Review the communications and determine the primary content or subject of each.(e.g. patient admission, x-ray results, orders, etc.)

d. Use the above to list application roles (e.g.order manager, admission tracker, etc.)

Page 197: HL7 v3 教育訓練計畫

10 Steps to V3 – Interactions from Storyboards3. Interactions

a. Lay out a rough collaboration diagram, in which the application roles are boxes, and the information flows are directed arrows between them

b. Each arrow is an interaction. Label it with:i. An identifierii. The name of the trigger eventiii. The name or a summary of the message content to be transferred

4. Fill out the PubDB for the Trigger Events, Application Roles, Message Types and Interactions you have defined.

Page 198: HL7 v3 教育訓練計畫

10 Steps to V3 – R-MIM design from Interactions5. Consider the message contents for the interactions you have just defined.

For each, summarize in list form, using common terms the information elements that need to be transferred. (e.g. Admission including patient demographics, MRN, Admitting MD; an order for a tele-health specialty consultation; query for lab and radiology results for last ten days; etc.)

6. Order and structure the lists from the previous step to indicate what is subordinate to what, how the information elements might be grouped, etc.

7. For the information groupings, identify which ones your team will need to design, and which you can develop by constraining or extending existing V3 designs.

Page 199: HL7 v3 教育訓練計畫

10 Steps to V3 – R-MIM design from Interactions8. For the information groupings you will design, further classify them by th

eir likely RIM (R-MIM) representations: -Acts ActRelationships Participations -Roles Entities Other or undetermined

9. Use the Visio R-MIM notation (perhaps on flip charts) to diagram the R-MIM fragment for each of your groupings. Include the likely or critical attributes for each. And specify the type code for each class, and the mood code for each Act.

10. Move your sketch to the RMIM Designer in Visio.

Page 200: HL7 v3 教育訓練計畫

Tools Suite RoseTree: The RoseTree is a Visual Basic (VB) application that functions

as an interface to the HL7 repository, provides a browser for the HL7 RIM and Vocabulary; builds R-MIMs and HMDs from Visio designs and manages the repository storage of these; and generates the needed XML extracts from the repository to allow further processing. It requires Microsoft's MSXML4 to perform XML extracts from the repository.

R-MIM Designer: The HL7 R-MIM design templates provide a suite of Visual Basic software that works in conjunction with the RoseTree software to provide an interactive design capability for HL7 R-MIMs. The tools draw their source from the RIM and assure that all elements are appropriately defined using the RIM as a base.

Page 201: HL7 v3 教育訓練計畫

Tools Suite PubDb: The PubDb is a set of linked forms in Access supported by

additional VBA code. It serves as a vehicle to document the dynamic or interaction model of a technical committee's design, and provides a structured documentation environment that enforces the HL7 methodology. Data from the PubDb is published using XML files extracted with the PublishingWidget and RoseTree DLLs. These functions also permit desktop publishing of the content for review by editors. The database also work with XMLSpy to provide WYSISYG editing of the limited mark-up that is permitted in the PubDb.

Design Repository: The HL7 design repository performs the central function within the current HL7 tools suite of maintaining the "authentic" representation of all HL7 normative artifacts for Version 3. This is a database designed in Microsoft Access. Its tables are structured in a hierarchy that mirrors the structure of the artifacts that it holds, as defined in the meta-model for the HL7 methodology. The file is in a ZIP archive.

Page 202: HL7 v3 教育訓練計畫

Tools Suite V3 Generator: The V3 Generator, formally known as Schema Generator,

is implemented using Ant and Saxon as XSLT processor. The V3 Generator accepts the XML expressions of an HMD (exported from the repository by RoseTree) and, through a series of transforms, generates HL7 artifacts including: Static schemas, Interaction schemas, HTML table views, CSV files for Excel views and MIF files for static models, data types, and vocabulary. The tools are in a ZIP file. Extraction of the ZIP file must preserve the directory structure of the archive.

CMETinfo.txt: CMETinfo.txt file is used by the R-MIM design tools (in Visio) to specify the CMETs that may be included in a design. This file should be downloaded and placed in your Visio "Solutions\HL7" directory if it is more recently released than the Visio R-MIM Designer tools

FormalNamingSource: The file "HL7FormalNamersSourceFile.xml" in this archive is used by the HL7 R-MIM Designer (in Visio). This file holds the source data for the algorithms that automatically name clones and associations in an R-MIM design.

Page 203: HL7 v3 教育訓練計畫

Hardware Requirements

Computer:

PC with 1.2 gigahertz (GHz) or higher processor clock speed recommended; 1 GHz minimum required (single or dual processor system); Intel Pentium/Celeron family, or AMD K6/Athlon/Duron family, or compatible processor recommended

Operating Systems:

Windows XP (recommended) Windows 2000 Professional (recommended)Windows NT 4.0 Workstation (SP 6.0a or later)*Windows 98*

Disk Space:

1.5 gigabytes (GB) of free hard disk space

Memory:128 megabytes (MB) of RAM or higher recommended (64 MB minimum supported; may limit performance and some features)

Monitor:Super VGA (800 x 600) or higher resolution with 256 colors; 16 or 32-bit color recommended

Compact Disc

CD-ROM or DVD drive

Internet:Any internet connection; broadband (cable or DSL) connection (recommended for downloading the HL7 software distribution)

Page 204: HL7 v3 教育訓練計畫

軟體需求說明 Altova XMLSpy: This is required for WYSIWYG editing from the PubDb, and is

very useful for reviewing and manipulating schemas, XML exports, etc. XMLSpy is the "tool of choice" for these functions. HL7 has XMLSpy licenses that it can distribute to committee members developing the standards. A full-function version of XML Spy can be downloaded for 30-day evaluation at http://www.altova.com/download.html

MSXML 4: This XML support software from Microsoft is required for both the R-MIM Designer in Visio and RoseTree. It is installed as part of the RoseTree installation.

Saxon: Saxon is an XSLT processor that is required by the HL7 V3 Generator to convert XML output of the HMD designs (from RoseTree) into XSD files. A Saxon JAR file is installed as part of the V3 Generator package. It is the XSLT processor-of-choice for both HL7 publications, and for the V3 Generator.

Java Runtime Environment (download): The Saxon processor requires a Java runtime environment (JRE) version 1.4.2 from Sun Microsystems, which is distributed free of charge.

Page 205: HL7 v3 教育訓練計畫

軟體需求說明 Windows Installer (download): The Windows Installer is a standard comp

onent of Windows 2000 and Windows XP. It installs applications distributed in an "msi" file format. Most users of earlier Windows releases have this installer on their machines from previous installations. If, when you try to install RoseTree, you find that you do not have it on your machine, you can download it from the above hyperlink or you can go to the MS site and search for "Windows installer".

Microsoft Office: The Microsoft Office suite, particularly Excel and Access, support various expressions of the HTML and HL7 artifacts. Excel is useful and is required to provide a tabular (grid) view of the HL7 HMD definitions. Access is also useful and is required to run the PubDb.

Microsoft Visio: Microsoft Visio, either version 2000 or 2002, is the foundation for the HL7 R-MIM designer. The current R-MIM Designer tool does not run on Visio 2003. HL7 cannot provide license for Visio.

Page 206: HL7 v3 教育訓練計畫

軟體安裝注意事項 RoseTree must be installed before the R-MIM

Designer (in Visio). It also installs MSXML4, which is used by the R-MIM Designer and Visio.

Design Repository should be installed before the R-MIM Designer (in Visio).

Altova XMLSpy should be installed before the PubDb

Page 207: HL7 v3 教育訓練計畫

Tools/data architecture (2005)

Page 208: HL7 v3 教育訓練計畫

DEMO

Page 209: HL7 v3 教育訓練計畫

Methodology Steps

HL7 tool suite could be divided into three categories: ScopeDynamic ModelStatic Model

Page 210: HL7 v3 教育訓練計畫

Scope

本步驟要回答下列三個問題: What is communicated? What happens? Who is involved?

Storyboard Example: A clinician, using a local medical office support system, or

ders a lab test for one of her patients. The test will be performed on a specimen collected at her office. She will send the specimen by courier, and expects to receive a confirmation that the test will be performed, and a result of the test.

Page 211: HL7 v3 教育訓練計畫

Dynamic Model

The dynamic model involves two steps: (a) Blocking out the Interactions

(b) Documenting the Interactions

Page 212: HL7 v3 教育訓練計畫

Blocking out the Interactions The following critical questions need to be

answered when you decide to block out your interactions from the storyboard.

Who sends and receives? When to communicate? What is sent? Response obligations?

Page 213: HL7 v3 教育訓練計畫

Blocking out the Interactions storyboard example

Initial order from MdOffice to LabMgmt; when the order is ready;

Content: patient, orderer, specimen, performer (lab), test; expect confirmation

Confirmation from LabMgmt to MdOffice; upon receipt and acceptance;

Content: order reference; performer; expected completionResult from LabMgmt to MdOffice; when test done;

Content: order reference; patient reference; findings; specimen status

Page 214: HL7 v3 教育訓練計畫

Documenting the Interactions

The documentation of the interactions involves:

A. Defining or finding application roles for sender and receiver

B. Specifying the “trigger event” that initiates communication

C. Characterizing the interaction (types)

D. Documenting the message type required.

Page 215: HL7 v3 教育訓練計畫

Documenting the Interactions

storyboard exampleA. McDuffie -> 1) Lab Order Placer; 2) Lab Confirmation

Receiver; 3) Lab Observation Event Tracker; LabMgmt -> 1) Lab order fulfiller; 2) Lab Promise confirmer; 3) Lab Observation Event Informer

B. 1) Order activate; 2) Promise activate; 3) Event completeC. 1) Request for action; 2) Request response; 3) Event notif

icationD. 1) Lab observation order; 2) Lab observation promise; 3)

Lab observation event

Page 216: HL7 v3 教育訓練計畫

Static Model

The static model involves three steps:(a) Defining Subject-specific Information Model,

(b) Defining Message Design in an HMD

(c) Documenting the Message Design

Page 217: HL7 v3 教育訓練計畫

Defining Subject-specific Information Model you should:

Identify a domain and or R-MIM to use as starting point Establish the clones, their attributes, and associations Aggregate or collect from a Domain Message Information

Model (D-MIM) Reference “Common” Types, as required Document the R-MIM Save to repository

Page 218: HL7 v3 教育訓練計畫

Defining Message Design in an HMD This methodology step involves:

Walking the graph to serialize the R-MIMDefining message types based on (within) the

HMDDefining R-MIM constraintsSaving to repositoryExpressing HMD as XML, and/or CSV files

Page 219: HL7 v3 教育訓練計畫

Documenting the Message Design

The final step in the methodology process is to use your defined message design to:Publish designs in ExcelCreate schemasPublish in HTML

Page 220: HL7 v3 教育訓練計畫

Design Walkthrough

Page 221: HL7 v3 教育訓練計畫

What RIM Classes Do We Need? Act (order) – Order

Participation – Author Role - Physician

Entity - Dr. Smith in the MD office Participation – Performer

Role – Laboratory Entity - The lab that will perform the test

Participation – Subject Role – Specimen

Participation – Record target Role – Patient in whose record the result goes

Act relationship – Definition Act (definition) – Ordered Test

Page 222: HL7 v3 教育訓練計畫

Design Diagram

We have two options to work on this design: (a) Using Starter Diagram (參考別人)

http://hcxw2k1.nist.gov:8080/hl7services/index.jsp

(b) Designing from Scratch. (自己慢慢畫)

Page 223: HL7 v3 教育訓練計畫

Understanding Basic Shapes 1/8

EntryPoint

Act & Entity Class

Page 224: HL7 v3 教育訓練計畫

Understanding Basic Shapes 2/8

Role Class

Page 225: HL7 v3 教育訓練計畫

Understanding Basic Shapes 3/8

Relationship Classes

Page 226: HL7 v3 教育訓練計畫

Understanding Basic Shapes 4/8

Recursive Relationships

Page 227: HL7 v3 教育訓練計畫

Understanding Basic Shapes 5/8

Non-Core Classes

Non-Core Associations

Page 228: HL7 v3 教育訓練計畫

Understanding Basic Shapes 6/8

Choice

Page 229: HL7 v3 教育訓練計畫

Understanding Basic Shapes 7/8

CMETs

Constraint

Page 230: HL7 v3 教育訓練計畫

Understanding Basic Shapes 8/8

Notes

Page boxes & Page references

Page 231: HL7 v3 教育訓練計畫

Attribute Conventions

Page 232: HL7 v3 教育訓練計畫

The problem

Storyboard: A clinician, using a local medical office support system, orders a lab test for one of her patients. The test will be performed on a specimen collected at her office. She will send the specimen by courier, and expects to receive a confirmation that the test will be performed, and a result of the test.

Page 233: HL7 v3 教育訓練計畫

What do we need? Act (order) – Order

Participation – Author Role - Physician

Entity - Dr. Smith in the MD office Participation – Performer

Role – LaboratoryEntity - The lab that will perform the test

Participation – Subject Role – Specimen

Participation – Record target Role – Patient in whose record the result goes

Act relationship – Definition Act (definition) – Ordered Test

This order …

…was authored by …

…a physician role played by…

Suzy Smith.

… of this order.

… was the author …

… in her role as a physician …

Suzy Smith …

Page 234: HL7 v3 教育訓練計畫

HL7 Graphic representation

Foundation of HL7 modeling is defined in a UML profile, but we use an alternate graphic representation that better represents our “messages”

Persistent elements are in “square boxes” All attributes shown All constraints shown on the diagram

Phrases are shown as “Arrows” linking elements All attributes shown All constraints shown on the diagram

Page 235: HL7 v3 教育訓練計畫

An Act constrained:by classCode to be an observation,

by moodCode to be an order

An Act constrained:by classCode to be an observation,

by moodCode to be a definition.

Common (reusable) types represent roles of patient, specimen,

healthcare workers

Building messages – persistent elements

Page 236: HL7 v3 教育訓練計畫

Building messages – contextual phrases

Page 237: HL7 v3 教育訓練計畫

Building messages – relational phraseThe author of the order is an assigned

entity role (healthcare worker)

The subject of the observation is a specimen role

Page 238: HL7 v3 教育訓練計畫

1

2

4

6

8

3

5

7

9

10

11

OrderOrder

PhysicianPhysician

PerformerPerformer LaboratoryLaboratory

SubjectSubjectSpecimenSpecimen

Record targetRecord target PatientPatient

DefinitionDefinition

Ordered TestOrdered Test

AuthorAuthor

Automated serializing of graphic designOrder

Definition

Performer

Author

Record target

Patient

Laboratory

Physician

Ordered test

Subject

Specimen

Page 239: HL7 v3 教育訓練計畫

Automated serializing of graphic designOrder

Definition

Performer

Author

Record target

Patient

Laboratory

Physician

Ordered test

Subject

Specimen

Page 240: HL7 v3 教育訓練計畫

Automated serializing of graphic designOrder

Definition

Performer

Author

Record target

Patient

Laboratory

Physician

Ordered test

Subject

Specimen

Page 241: HL7 v3 教育訓練計畫

Our example schemaThe subject

of the order

is a specimen

Page 242: HL7 v3 教育訓練計畫

課程全部結束