1 / 46

HL7 v3 教育訓練系列教材

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

ivi
Download Presentation

HL7 v3 教育訓練系列教材

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 教育訓練委員會 Education Technical Committees HL7 v3教育訓練系列教材 版權所有:台灣健康資訊交換第七層協定協會 HL7 Taiwan 協會 秘書長 范士展 sjvann@gmail.com HL7 Taiwan Google論壇: http://groups.google.com/group/hl7-taiwan

  2. Reference Information Model 資訊模型概念 RIM模型架構 RIM模型詳述 定義範例

  3. 資訊模型概念

  4. 類別定義事情: 表達在領域中重要性觀念 觀念 = 在你事業範疇中之事務或想法 重要性 = 多樣(重複)交易的主體 類似在資料庫中”記錄”的定義。 類別名稱 Patient name : PN DOB : Date address : AD 資訊模型語言 • 類別屬性 • 屬性是對我們有興趣的事,記錄下資料。 • 屬性是對應於該類別才有的內容值。 • 屬性有名稱與資料型態。 • 類似在資料庫紀錄的欄位。

  5. 類別定義事情 物件是衍生案例 對類別個體的定義 有確定值指派給屬性 會有不變的辨識值(主鍵值) 類似資料庫中的一筆記錄 Patient name : PN DOB : Date address : AD Patient name = John Doe DOB = 10-Apr-1966 address = Calgary Patient name = Jane Smith DOB = 1-Oct-1956 address = Toronto Patient name = Bart Simpson DOB = 5-Sep-1975 address = Springfield 資訊模型語言

  6. 類別定義事情 物件是衍生案例 相關事情連結 描述某事情會以甚麼方式與其他事情連結 Patient Doctor 0..* provides care for name : PN DOB : Date address : AD name : PN specialty : CD phone : TEL 1..* seeks care at 資訊模型語言 關聯角色名稱 基數 (cardinality) or 重複性 (multiplicity)

  7. 類別定義事情 物件是衍生案例 相關事情連結 描述某事情會以甚麼方式與其他事情連結 Patient Doctor 0..* provides care for name : PN DOB : Date address : AD name : PN specialty : CD phone : TEL 1..* seeks care at 資訊模型語言 以英文方式閱讀關聯: “Every Patient…seeks care at…1 to many…Doctors” “EveryDoctor…provides care for...zerotomany … Patients”

  8. 類別定義事情 物件是衍生案例 相關事情連結 連結類別補充說明關聯 關聯的屬性 更多關聯性 Patient Doctor 0..* provides care for name : PN DOB : Date address : AD name : PN specialty : CD phone : TEL 1..* seeks care at Encounter type : CV time : IVLTS reason : CD 資訊模型語言

  9. 類別定義事情 物件是衍生案例 相關事情連結 連結類別補充說明關聯 關聯的屬性 更多關聯性 Patient Doctor 0..* 1 name : PN DOB : Date address : AD name : PN specialty : CD phone : TEL 1 1..* Encounter type : CV time : IVLTS reason : CD 資訊模型語言

  10. 類別定義事情 物件是衍生案例 相關事情連結 連結類別 一般化類別 Person name : PN DOB : Date address : AD Patient Doctor 0..* 1 gender : CD donor : BL V.I.P. : BL specialty : CD phone : TEL privileges : CV 1 1..* Encounter type : CV time : IVLTS reason : CD Information Modeling Language • 一般化類別可簡化模型 • 共用相同觀念 • 表達應用領域之邏輯真實性 • 相對的是特殊化類別

  11. 類別定義事情 物件是衍生案例 相關事情連結 連結類別 一般化類別 反身關聯 Person name : PN DOB : Date address : AD Patient Doctor 1 gender : CD donor : BL V.I.P. : BL specialty : CD phone : TEL privileges : CV 1..* 0..1 Encounter 0..1 follow-up type : CV time : IVLTS reason : CD Information Modeling Language 0..* 1 • 反身關聯是一個類別的案例結構 • chain (predecessor-successor,) hierarchy (parent-child,) or network

  12. RIM模型架構

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

  14. Non Core Non Core Non Core has participates in plays scopes has source has target has target has source RIM類別關係 Participation Entity Role Act Role_Link Act_Relationship

  15. Roles與Entities之關聯 “Played and Scoped” Downtown Hospital Uptown Hospital Scoped By Scoped By Joe Smith Doctor Patient Plays Plays

  16. Acts與Roles之關聯 Relations and Participants Participating Roles Related Acts Act Entities in Roles participate in acts via Participations. Acts are related to other acts via ActRelationShips.

  17. RIM之UML模型(簡圖)

  18. RIM之編碼概念

  19. RIM之限制式概念

  20. RIM模型詳述

  21. 類別說明 類別名稱 此類別擁有之屬性 此類別有關聯者 此類別之父類別 此類別之子類別 此類別之狀態圖 此類別 定義說明

  22. 屬性說明 所屬類別 屬性名稱 資料型態 重複性 強制性 概念領域 定義說明

  23. 許多屬性有概念領域 AcknowledgementMessageCodeAcknowledgementTypeActClassActCode … ValueSetStatusVocabularyDomainQualifierX_ActMoodPermPermrq 注意: 這部分是改版甚多 詳細描述請參考 【Data Type與Vocabulary】

  24. 屬性可以有Mandatory(強制性)屬性有Cardinality(重複性)屬性可以有Mandatory(強制性)屬性有Cardinality(重複性) Cardinality: How many? (0..1) (1..1) (1..3) (1..*) Mandatory Flag: If an attribute is Mandatory, it must be valued or your message is not valid V3.

  25. 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

  26. Concept Domain

  27. 用RoseTree查

  28. 查Vocabulary

  29. Entity與Role相似

  30. Act classCode: CS moodCode: CS id: SET<II> code: CD statusCode: SET <CS> etc. V3最重要的類別-Acts

  31. Acts有ClassCode • ENC - Encounter • OBS - Observation (lab) • SBADM - Substance Administration (pharmacy -admin) • SPLY - Supply (pharmacy - dispense)

  32. Acts 有 StatesCode

  33. Acts有MoodsCode • Proposal • PRP • Order/Request • RQO • Promise • PRMS • Event • EVN 你為什麼不整理你的房間? 快去整理房間! 我會的! 房間已整理完畢.

  34. Mood範例 今天的房間整理安排下午三時 • Appointment • APT • Definition - DEF • from master file • Event Criterion - EVN.CRT • precondition, such as “if pain” “整理房間” 指把床整理好, 把衣服放在洗衣機, 及把玩具收拾好. 如果你想吃冰淇淋, 那你趕快把房間整理好….

  35. 外部編碼系統 如LOINC編碼 HL7編碼 例如:Encounter Type are Act Codes. Acts 可以有Codes <code code="1554-5" codeSystemName="LN" displayName="Serum Glucose“ /> Encounter Type Inpatient Emergency Ambulatory Home Health

  36. 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.

  37. Properties of the II Data Type <hl7:id root="2.16.840.1.113883.19.3.2409" extension="12345" >

  38. 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 Act Relationships的類型

  39. 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)

  40. 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 Types of Participations

  41. 定義範例

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

  43. 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 =

  44. 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”

  45. 感謝聆聽Reference Information Model 下一場:Data Type與Vocabulary

More Related