hl7 v3 教育訓練系列教材
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 PresentationTRANSCRIPT
HL7 v3HL7 v3 教育訓練系列教材教育訓練系列教材
HL7 Taiwan 協會秘書長 范士展
HL7 Taiwan Google 論壇 :http://groups.google.com/group/hl7-taiwan
教育訓練委員會Education Technical Committees
版權所有:台灣健康資訊交換第七層協定協會
Reference Reference Information ModelInformation Model
1. 資訊模型概念2. RIM 模型架構3. RIM 模型詳述4. 定義範例
資訊模型概念
資訊模型語言 類別定義事情:
表達在領域中重要性觀念 觀念 = 在你事業範疇中之事務
或想法 重要性 = 多樣 ( 重複 ) 交易
的主體 類似在資料庫中”記錄”的定義。
Patient
name : PNDOB : Dateaddress : AD
類別名稱
類別屬性• 屬性是對我們有興趣的事,記錄下資料。• 屬性是對應於該類別才有的內容值。• 屬性有名稱與資料型態。• 類似在資料庫紀錄的欄位。
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
資訊模型語言 類別定義事情 物件是衍生案例
對類別個體的定義 有確定值指派給屬性 會有不變的辨識值 ( 主鍵值 ) 類似資料庫中的一筆記錄
Patient
name : PNDOB : Dateaddress : AD
Doctor
name : PNspecialty : CDphone : TEL
seeks care at
provides care for0..*
1..*
資訊模型語言 類別定義事情 物件是衍生案例 相關事情連結
描述某事情會以甚麼方式與其他事情連結
關聯角色名稱
基數 (cardinality) or 重複性 (multiplicity)
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”
資訊模型語言 類別定義事情 物件是衍生案例 相關事情連結 連結類別補充說明關聯
關聯的屬性 更多關聯性
Patient
name : PNDOB : Dateaddress : AD
Doctor
name : PNspecialty : CDphone : TEL
seeks care at
provides care for0..*
1..*
Encounter
type : CVtime : IVLTSreason : CD
資訊模型語言 類別定義事情 物件是衍生案例 相關事情連結 連結類別補充說明關聯
關聯的屬性 更多關聯性
Patient
name : PNDOB : Dateaddress : AD
Doctor
name : PNspecialty : CDphone : TEL
1
1..*
Encounter
type : CVtime : IVLTSreason : CD
1
0..*
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..*
一般化類別可簡化模型 共用相同觀念 表達應用領域之邏輯真實性 相對的是特殊化類別
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
RIM 模型架構
六個核心物件 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.
RIM 類別關係
Act
Act_Relationship
Entity Role
Participation
Role_Link
Non CoreNon CoreNon Core
particip
ates in
playshas
scopes has targethas
sourcehas
targethas
source
Roles 與 Entities 之關聯 “ Played and Scoped”
Doctor Patient
DowntownHospital
Uptown Hospital
Joe Smith
Plays Plays
ScopedBy
ScopedBy
Acts 與 Roles 之關聯 Relations and Participants
Acts are related to other acts via
ActRelationShips.
Entities in Roles participate in acts via Participations.
RIM 之 UML 模型 ( 簡圖 )
RIM 之編碼概念
RIM 之限制式概念
RIM 模型詳述
類別說明類別名稱 此類別擁
有之屬性
此類別有關聯者
此類別之父類別
此類別之子類別
此類別之狀態圖
此類別定義說明
屬性說明所屬類別 屬性名稱 資料型態 重複性
強制性
概念領域
定義說明
許多屬性有概念領域
AcknowledgementMessageCodeAcknowledgementType
ActClassActCode
…ValueSetStatus
VocabularyDomainQualifierX_ActMoodPermPermrq
注意:這部分是改版甚多詳細描述請參考【 Data Type 與Vocabulary 】
屬性可以有 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..*)
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
Concept Domain
用 RoseTree 查
查 Vocabulary
Entity 與 Role 相似
Act
classCode: CS moodCode: CS id: SET<II> code: CD statusCode: SET <CS> etc.
V3 最重要的類別 -Acts
Acts 有 Class Code ENC - Encounter OBS - Observation (lab) SBADM - Substance Administration (pharmacy -
admin) SPLY - Supply (pharmacy - dispense)
Acts 有 States Code
Acts 有 Moods Code Proposal
PRP Order/Request
RQO Promise
PRMS Event
EVN
你為什麼不整理你的房間 ?
快去整理房間 !
我會的 !
房間已整理完畢 .
Mood 範例 Appointment
APT Definition - DEF
from master file Event Criterion - EVN.CRT
precondition, such as “if pain”
今天的房間整理安排下午三時
“整理房間” 指把床整理好 , 把衣服放在洗衣機 ,
及把玩具收拾好 .
如果你想吃冰淇淋 , 那你趕快把房間整理好… .
Acts 可以有 Codes 外部編碼系統
如 LOINC 編碼 HL7 編碼
例如: Encounter Type are Act Codes.
Encounter TypeInpatient
EmergencyAmbulatory
Home Health
<code code="1554-5" codeSystemName="LN" displayName="Serum Glucose“/>
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.
Properties of the II Data Type
<hl7:id root="2.16.840.1.113883.19.3.2409" extension="12345" >
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
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)
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
定義範例
Adam’s Emergency:
Adam Everyman 在 2006/5/2 早上 10 點,經由救護車送達 Good Health Hospital 的急診處。 Everyman 先生呼吸道疼痛及心跳加速的症狀。值班醫師 Eric Emergency ,認為他需要被緊急處理,並且要求胸腔科的 Dr. Penny Puffer 醫師前來會診。Adam 已經完成掛號。
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 =
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”
感謝聆聽 Reference Information ModelReference Information Model
下一場: Data Type 與 Vocabulary