hl7 v3 教育訓練系列教材

46
HL7 v3 HL7 v3 教教教教教教教教 教教教教教教教教 HL7 Taiwan 協協 協協協 協協協 [email protected] HL7 Taiwan Google 協協 : http://groups.google.com/ group/hl7-taiwan 教教教教教教教 Education Technical Committees 協協協協 協協協協協協協協協協協協協協協

Upload: ivi

Post on 22-Jan-2016

118 views

Category:

Documents


1 download

DESCRIPTION

教育訓練委員會 Education Technical Committees. HL7 v3 教育訓練系列教材. 版權所有:台灣健康資訊交換第七層協定協會. HL7 Taiwan 協會 秘書長 范士展 [email protected] HL7 Taiwan Google 論壇 : http://groups.google.com/group/hl7-taiwan. Reference Information Model. 資訊模型概念 RIM 模型架構 RIM 模型詳述 定義範例. 資訊模型概念. 類別定義事情: 表達在領域中重要性觀念 - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: HL7 v3 教育訓練系列教材

HL7 v3HL7 v3 教育訓練系列教材教育訓練系列教材

HL7 Taiwan 協會秘書長 范士展

[email protected]

HL7 Taiwan Google 論壇 :http://groups.google.com/group/hl7-taiwan

教育訓練委員會Education Technical Committees

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

Page 2: HL7 v3 教育訓練系列教材

Reference Reference Information ModelInformation Model

1. 資訊模型概念2. RIM 模型架構3. RIM 模型詳述4. 定義範例

Page 3: HL7 v3 教育訓練系列教材

資訊模型概念

Page 4: HL7 v3 教育訓練系列教材

資訊模型語言 類別定義事情:

表達在領域中重要性觀念 觀念 = 在你事業範疇中之事務

或想法 重要性 = 多樣 ( 重複 ) 交易

的主體 類似在資料庫中”記錄”的定義。

Patient

name : PNDOB : Dateaddress : AD

類別名稱

類別屬性• 屬性是對我們有興趣的事,記錄下資料。• 屬性是對應於該類別才有的內容值。• 屬性有名稱與資料型態。• 類似在資料庫紀錄的欄位。

Page 5: 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

資訊模型語言 類別定義事情 物件是衍生案例

對類別個體的定義 有確定值指派給屬性 會有不變的辨識值 ( 主鍵值 ) 類似資料庫中的一筆記錄

Page 6: HL7 v3 教育訓練系列教材

Patient

name : PNDOB : Dateaddress : AD

Doctor

name : PNspecialty : CDphone : TEL

seeks care at

provides care for0..*

1..*

資訊模型語言 類別定義事情 物件是衍生案例 相關事情連結

描述某事情會以甚麼方式與其他事情連結

關聯角色名稱

基數 (cardinality) or 重複性 (multiplicity)

Page 7: HL7 v3 教育訓練系列教材

Patient

name : PNDOB : Dateaddress : AD

Doctor

name : PNspecialty : CDphone : TEL

seeks care at

provides care for0..*

1..*

資訊模型語言 類別定義事情 物件是衍生案例 相關事情連結

描述某事情會以甚麼方式與其他事情連結

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

以英文方式閱讀關聯:

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

Page 8: HL7 v3 教育訓練系列教材

資訊模型語言 類別定義事情 物件是衍生案例 相關事情連結 連結類別補充說明關聯

關聯的屬性 更多關聯性

Patient

name : PNDOB : Dateaddress : AD

Doctor

name : PNspecialty : CDphone : TEL

seeks care at

provides care for0..*

1..*

Encounter

type : CVtime : IVLTSreason : CD

Page 9: HL7 v3 教育訓練系列教材

資訊模型語言 類別定義事情 物件是衍生案例 相關事情連結 連結類別補充說明關聯

關聯的屬性 更多關聯性

Patient

name : PNDOB : Dateaddress : AD

Doctor

name : PNspecialty : CDphone : TEL

1

1..*

Encounter

type : CVtime : IVLTSreason : CD

1

0..*

Page 10: 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..*

一般化類別可簡化模型 共用相同觀念 表達應用領域之邏輯真實性 相對的是特殊化類別

Page 11: 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

反身關聯是一個類別的案例結構chain (predecessor-successor,) hierarchy (parent-child,) or network

Page 12: HL7 v3 教育訓練系列教材

RIM 模型架構

Page 13: HL7 v3 教育訓練系列教材
Page 14: HL7 v3 教育訓練系列教材

六個核心物件 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.

Page 15: HL7 v3 教育訓練系列教材

RIM 類別關係

Act

Act_Relationship

Entity Role

Participation

Role_Link

Non CoreNon CoreNon Core

particip

ates in

playshas

scopes has targethas

sourcehas

targethas

source

Page 16: HL7 v3 教育訓練系列教材

Roles 與 Entities 之關聯 “ Played and Scoped”

Doctor Patient

DowntownHospital

Uptown Hospital

Joe Smith

Plays Plays

ScopedBy

ScopedBy

Page 17: HL7 v3 教育訓練系列教材

Acts 與 Roles 之關聯 Relations and Participants

Acts are related to other acts via

ActRelationShips.

Entities in Roles participate in acts via Participations.

Page 18: HL7 v3 教育訓練系列教材

RIM 之 UML 模型 ( 簡圖 )

Page 19: HL7 v3 教育訓練系列教材

RIM 之編碼概念

Page 20: HL7 v3 教育訓練系列教材

RIM 之限制式概念

Page 21: HL7 v3 教育訓練系列教材

RIM 模型詳述

Page 22: HL7 v3 教育訓練系列教材

類別說明類別名稱 此類別擁

有之屬性

此類別有關聯者

此類別之父類別

此類別之子類別

此類別之狀態圖

此類別定義說明

Page 23: HL7 v3 教育訓練系列教材

屬性說明所屬類別 屬性名稱 資料型態 重複性

強制性

概念領域

定義說明

Page 24: HL7 v3 教育訓練系列教材

許多屬性有概念領域

AcknowledgementMessageCodeAcknowledgementType

ActClassActCode

…ValueSetStatus

VocabularyDomainQualifierX_ActMoodPermPermrq

注意:這部分是改版甚多詳細描述請參考【 Data Type 與Vocabulary 】

Page 25: HL7 v3 教育訓練系列教材

屬性可以有 Mandatory( 強制性 )屬性有 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..*)

Page 26: HL7 v3 教育訓練系列教材

Roles 以 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 27: HL7 v3 教育訓練系列教材

Concept Domain

Page 28: HL7 v3 教育訓練系列教材

用 RoseTree 查

Page 29: HL7 v3 教育訓練系列教材

查 Vocabulary

Page 30: HL7 v3 教育訓練系列教材

Entity 與 Role 相似

Page 31: HL7 v3 教育訓練系列教材

Act

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

V3 最重要的類別 -Acts

Page 32: HL7 v3 教育訓練系列教材

Acts 有 Class Code ENC - Encounter OBS - Observation (lab) SBADM - Substance Administration (pharmacy -

admin) SPLY - Supply (pharmacy - dispense)

Page 33: HL7 v3 教育訓練系列教材

Acts 有 States Code

Page 34: HL7 v3 教育訓練系列教材

Acts 有 Moods Code Proposal

PRP Order/Request

RQO Promise

PRMS Event

EVN

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

快去整理房間 !

我會的 !

房間已整理完畢 .

Page 35: HL7 v3 教育訓練系列教材

Mood 範例 Appointment

APT Definition - DEF

from master file Event Criterion - EVN.CRT

precondition, such as “if pain”

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

“整理房間” 指把床整理好 , 把衣服放在洗衣機 ,

及把玩具收拾好 .

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

Page 36: HL7 v3 教育訓練系列教材

Acts 可以有 Codes 外部編碼系統

如 LOINC 編碼 HL7 編碼

例如: Encounter Type are Act Codes.

Encounter TypeInpatient

EmergencyAmbulatory

Home Health

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

Page 37: HL7 v3 教育訓練系列教材

Acts 有 Ids:

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.

Page 38: HL7 v3 教育訓練系列教材

Properties of the II Data Type

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

Page 39: HL7 v3 教育訓練系列教材

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

Page 40: 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)

Page 41: 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 provider

Page 42: HL7 v3 教育訓練系列教材

定義範例

Page 43: HL7 v3 教育訓練系列教材

Adam’s Emergency:

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

Page 44: HL7 v3 教育訓練系列教材

Quiz: Adam’s Emergency

定義主要的 Act(focal Act): Act.classCode = Act.Code = Act.Status = Act.Mood = Act.effectiveTime =

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

Penny 與 Eric 都是扮演醫師角色 . 他們是如何參與 Adam’s Emergency Encounter? Eric’s Participation.Type = Penny’s Participation.Type =

Adam 是經由救護車來到醫院。他的交通工具應以 Act 表達。那如何用 ActRelationShip 來表達此交通工具與他此次就診的關係? ActRelationship.Type =

Page 45: 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 =“PAT ”

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

Adam 是經由救護車來到醫院。他的交通工具應以 Act 表達。那如何用 ActRelationShip 來表達此交通工具與他此次就診的關係? ActRelationship.typeCode =“ARR”

Page 46: HL7 v3 教育訓練系列教材

感謝聆聽 Reference Information ModelReference Information Model

下一場: Data Type 與 Vocabulary