31
台台台台台台台台台台台台台台台 台台台台 HL7 台台台台台台台台 HL7 台台台台 台台台台台台台 Education Technical Co mmittees 台台台 台台台 台台台台台台台

台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

Embed Size (px)

Citation preview

Page 1: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

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

HL7 教育訓練課程教材 HL7 訊息驗證

教育訓練委員會Education Technical Committees

秘書長 范士展 改編自總會教材

Page 2: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

2

講授大綱

背景說明 Message Profiling 定義 Message Profiling 內容

Page 3: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

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

背景說明

Page 4: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

4

HL7 交換情境

Page 5: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

5

HL7 之價值

Page 6: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

6

但是! Abstract Message Model

有 Optional 有 Repeat

Page 7: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

7

是同一件事嗎?

Page 8: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

8

HL7 實作問題

Page 9: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

9

需要 Message Profiling

Page 10: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

10

Message Profiling 之好處

顯示假設 ( Reveal Assumptions ) 減少模糊 ( Reduce Ambiguity ) 凸顯衝突 ( Highlight Conflicts ) 鞏固觀點 ( Consolidate Viewpoints )

Page 11: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

11

Conformance vs. Compliance

Compliance (遵守) : adherence to a particular version of the standard

Conformance (一致) : adherence to the constraints of a precise, unambiguous specification (message profile)

Conformance statement: a claim that an application or module agrees with the constraints stated in one or more profiles

Page 12: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

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

Message Profiling 定義

Page 13: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

13

標準階層架構

HL7 StandardLevel 0 The Standard

Sp

ec

ific

ity

InterestGroup

Vendor #1Implementation

Level 1 Constrainable Profile

Level 2 Developers ProfileImplementation in software

Software Interface

SiteImplementation

N

N

InterestGroupInterest

Group

N

Level 3 Implementation Profile

The Standard

Realm Constrainable Profile

Vendor Constrainable Profile

Implementation Profile資料來源: Bas M. van Poppel, HL7 Conformance Status Overview (Draft)

Page 14: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

14

訊息規格規範書之定義

Unambiguous specification of a standard HL7 message for use within a particular set of requirements.

– Prescribes a set of precise constraints upon one or more standard messages

– Supported by use case analysis and interaction modeling

Measurable– What data will be passed in a message– The format in which the data will be passed– The acknowledgement responsibilities of the sender and

receiver

Page 15: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

15

訊息規格規範書之定義

Based on HL7, although may further constrain– Static structure and content of each message– The dynamic interactions

Parts of a valid message profile– Use Case Model– Static Definition– Dynamic Definition

Represented as an XML document– Can be registered with HL7– May be reused by other HL7 users– May be used for documentation

HL7 V2.6 HL7 V2.6 已增設 已增設 2.b2.b 章規範章規範 conformanceconformance

Page 16: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

16

No More “Optionality”

HL7 Optionality Allowed Conformance Usage

R – Require R

O – Optional R, RE, C, CE, X

C – Condition C, CE, R, RE

X – Not Supported X

B – Backward Compatibility R, RE, C, CE, X

W - Withdrawn X

Page 17: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

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

Message Profiling 內容

Page 18: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

18

Message Profile 組成

Page 19: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

19

Static Definition – Field Level

Vocabulary

SEQ LEN DT Usage Cardinality TBL# ITEM# ELEMENT NAME

1 4 SI X 00104 Set ID - PID

2 20 CX RE [1..1] 00105 Patient ID

3 20 CX R [1..*] 00106 Patient Identifier List

4 20 CX X 00107 Alternate Patient ID - PID

5 48 XPN R [1..*] 00108 Patient Name

6 48 XPN RE [1..*] 00109 Mother’s Maiden Name

7 26 TS RE 00110 Date/Time of Birth

8 1 IS RE 0001 00111 Sex

9 48 XPN X 00112 Patient Alias

10 80 CE X 0005 00113 Race

11 106 XAD RE [1..3] 00114 Patient Address

12 4 IS X 0289 00115 County Code

13 40 XTN RE [1..3] 00116 Phone Number - Home

14 40 XTN RE [1..3] 00117 Phone Number - Business

15 60 CE X 0296 00118 Primary Language

16 80 CE X 0002 00119 Marital Status

17 80 CE X 0006 00120 Religion

18 20 CX X 00121 Patient Account Number

19 16 ST RE 00122 SSN Number - Patient

20 25 DLN X 00123 Driver's License Number - Patient

21 20 CX X 00124 Mother's Identifier

22 80 CE X 0189 00125 Ethnic Group

23 60 ST RE 00126 Birth Place

24 1 ID X 0136 00127 Multiple Birth Indicator

25 2 NM X 00128 Birth Order

26 80 CE X 0171 00129 Citizenship

27 60 CE X 0172 00130 Veterans Military Status

28 80 CE X 0212 00739 Nationality

29 26 TS X 00740 Patient Death Date and Time

30 1 ID X 0136 00741 Patient Death Indicator

: ADT System : ADT Notification Recipient

ADT^A01

ACK^A01

Interaction Model

Segment ADT Message Usage Cardinality Chapter

MSH Message Header R [1..1] 2

EVN Event Type R [1..1] 3 PID Patient Identification R [1..1] 3 [ PD1 ] Additional Demographics X [0..0] 3 [{ ROL }] Role X [0..0] 12 [{ NK1 }] Next of Kin / Associated

Parties RE [0..3] 3

PV1 Patient Visit R [1..1] 3 [ PV2 ] Patient Visit - Additional

Info. RE [0..1] 3

[{ ROL }] Role X [0..0] 12 [{ DB1 }] Disability Information X [0..0] 3 [{ OBX }] Observation/Result X [0..0] 7 [{ AL1 }] Allergy Information RE [0..*] 3 [{ DG1 }] Diagnosis Information X [0..0] 6 [ DRG ] Diagnosis Related Group X [0..0] 6 [{ X [0..0] PR1 Procedures X [0..0] 6 [{ ROL }]

Role X [0..0] 12

}] [{ GT1 }] Guarantor X [0..0] 6 [{ X [0..0] IN1 Insurance X [0..0] 6 [ IN2 ] Insurance Additional Info. X [0..0] 6 [{ IN3 }]

Insurance Additional Info - Cert.

X [0..0] 6

[{ ROL }]

Role X [0..0] 12

}] [ ACC ] Accident Information X [0..0] 6 [ UB1 ] Universal Bill Information X [0..0] 6 [ UB2 ] Universal Bill 92 Information X [0..0] 6 [ PDA ] Patient Death and Autopsy X [0..0] 3

Dynamic Definition

Static Definition – Segment Level

Patient

Physician

ADT Notification Recipient

ADT System

Admit/Visit Notification

is subject ofauthorizes

receives notificationsends notification

Registrartriggers

Use Case Model

Static Definition – Message Level

1 Use Case Model

1.1 Use Case: Admit/Visit Notification

2. Dynamic Interaction Model

3 Dynamic Definition: ADT/ACK (Event A01)

3.1 ADT^A013.2 ACK^A01

4 Static Definition: - Message Level -ADT/ACK (event A01)

4.1 ADT^A014.2 ACK^A01

5 Static Defintiion - Segment Level

5.1 MSH – Message Header Segment Definition5.2 EVN - Event Type Segment Definition5.3 PID (Y) - Patient Demographics Segment Definition5.4 PD1 – Patient Additional Demographic Segment Definition5.5 NK1 - Next of kin Segment Definition5.6 PV1 (2) - Admit Visit Info Segment Definition5.7 AL1 - Allergy Segment Definition5.8 MSA - Message Acknowledgment Segment Definition5.9 ERR - Error Segment Definition

6 Static Definition - Field Level

6.1 Table 0001 – Sex6.2 Table 0002 – Marital Status6.3 Table 0003 – Event Type Code6.4 Table 0004 – Patient Class6.5 Table 0005 – Race6.6 Table 0006 – Religion6.7 Table 0007 – Admission Type6.8 Table 0008 – Acknowledgement Code6.9 Table 0009 – Ambulatory Status

Page 20: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

20

Message Profile Parts

Required parts– Use Case Analysis (1)– Dynamic Definitions (1+)– Static Definitions (1+)

Optional parts– Publish/subscribe topics– A unique identifier to facilitate reference

Page 21: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

21

Use Case Model Definition

Documents the scope and requirements for an HL7 message profile or set of profiles

May be a use case diagram with text, or just a textual description

Page 22: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

22

Use Case Model Requirements

A name that clearly and concisely defines the exchange The purpose for each message exchange Definitions for each actor, including the sending and

receiving applications The flow of events (including derived events) The situations in which a particular exchange is required

Page 23: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

23

Use Case Model Example

Scope:The Patient Registration transaction conveys the patient demographic and visit information that was captured at the point of encounter. . . .

Actors and Roles– Actor: ADT System

Role: Transmits demographic and encounter information . . .

– Actor: PACS . . .

AdmissionsSystem PACS

PatientRegistration

Page 24: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

24

Dynamic Definition

An interaction specification for a conversation between 2 or more systems

Elements– Interaction Model

May be literal and graphical form, or just literal (narrative)– Dynamic Message Definition

Specifies whether an accept or application acknowledgment is in use

May document multiple static definitions

Page 25: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

25

Dynamic Definition: Interaction Model Example

Page 26: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

26

Static Definition

An exhaustive specification for a single message structure

Elements– Message level– Segment level– Field level

Page 27: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

27

Static Definition

Details constraints for usage and cardinality of all message elements (including segments and fields not used)

– Minimum and maximum cardinality must be documented in all cases

– Cardinality may be any nonzero integer value, but…– …in certain circumstances, maximum cardinality may have no pr

actical limit (use *) May retain some optionality except in implementable prof

ile

Page 28: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

28

Message Level

Page 29: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

29

Segment Level

Page 30: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

30

Field level

Field Definitions– Each individual field is completely defined to

eliminate any possible ambiguity– If HL7 2.x field description are not sufficient, a precise

semantic definition shall be specified Exact allowed value set shall be specified

– Code Values (ID and IS) HL7 Table may be extended User defined may be redefined and/or extended

– Coded Entry (CE, CD, CWE, and CNE)

Page 31: 台灣健康資訊交換第七層協定協會 版權所有 HL7 教育訓練課程教材 HL7 訊息驗證 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材

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

感謝聆聽 HL7 教育訓練課程教材─ HL7 訊息驗證

下一場:考試說明與題庫講解