1 / 89

XML/ Sechma /XSLT 技術

XML/ Sechma /XSLT 技術. 大綱. 電子病歷標準制定過程 CDA R2 實作問題 XML 技術簡介 XML Schema 技術 XSLT 技術 XSLT 語法 XPATH 語法 編寫技巧. 電子病歷標準 制定過程. 背景說明. 為什麼醫療院所需要知道電子病歷標準制定流程? 108 張夠用嗎? 不夠?那到底要幾張? 那弄 2000 張好了? 誰來定,誰付錢? 就算衛生署買單,那你買帳嗎?. 電子病歷標準設計流程. 紙本病歷. 欄位需求清單 xls /doc. 實作指引標準書 doc/PDF. 整理. 定義. 設計. 規則.

krikor
Télécharger la présentation

XML/ Sechma /XSLT 技術

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. XML/Sechma/XSLT技術

  2. 大綱 • 電子病歷標準制定過程 • CDAR2實作問題 • XML技術簡介 • XML Schema技術 • XSLT技術 • XSLT語法 • XPATH語法 • 編寫技巧

  3. 電子病歷標準制定過程

  4. 背景說明 • 為什麼醫療院所需要知道電子病歷標準制定流程? • 108張夠用嗎? • 不夠?那到底要幾張? • 那弄2000張好了? • 誰來定,誰付錢? • 就算衛生署買單,那你買帳嗎?

  5. 電子病歷標準設計流程 紙本病歷 欄位需求清單 xls/doc 實作指引標準書 doc/PDF 整理 定義 設計 規則 參照 內容驗證檔 sch 需求 規範 欄位變數對應檔 xsl XML範例 xml 結構定義檔 xsd XPath 驗證用編碼 比照 匯入 除錯 病歷呈現樣式檔html 呈現樣式轉換檔 xsl 字彙控制檔 xml 複製 呈現用編碼

  6. 紙本病歷 由需求單位提出

  7. 欄位需求清單 xls/doc 由病歷管理單位整理 並經電子病歷委員會認可

  8. 實作指引標準書 doc/PDF 由標準管理單位編寫 若是全國通用,則可至電子病歷標準管理系統下載。

  9. 病歷呈現樣式檔html 由實作執行單位與病歷管理單位共同合作編寫

  10. 此為CDAR2標準文件。 由實作執行單位從電子病歷標準管理系統下載取得。 結構定義檔 xsd

  11. XML範例 xml 由標準管理單位與實作執行單位共同編輯設計。

  12. 欄位變數對應檔 xsl • 由下列三個單位共同設計: • 病歷管理單位 • 標準管理單位 • 實作執行單位

  13. 呈現樣式轉換檔 xsl 可由電子病歷標準管理系統下載參考。 實作執行單位編輯設計。

  14. 字彙控制檔 xml 可經由電子病歷標準管理系統取得。 由標準管理單位負責維護。 由實作執行單位負責編輯。

  15. 內容驗證檔 sch 由實作執行單位依據實作指引標準書之內容編輯。 若為全國通用者,則可至電子病歷標準管理系統下載。

  16. 最後成果

  17. 電子病歷實作問題

  18. 實踐電子病歷之問題所在 電子病歷設計管理 電子病歷文件管理 電子病歷流程管理 電子病歷應用管理

  19. 專注在「產生」電子病歷文件

  20. 實作可能模式 • XML編輯器 • 軟體有:微軟XML Notepad 2007、AltovaXMLSPY、oXygenXML等。 • 對終端使用者不友善。 • 電子表單軟體 • 軟體有:微軟InfoPath、Adobe等 • 可設計符合使用者介面之資料輸入介面。 • SOA/EAI工具 • 軟體工具很多。微軟BizTalk。 • 須從系統流程整合角度切入使用。 • 程式設計 • 可配合實際需求撰寫。 • 需要程式設計開發人員。

  21. namespaces CDA.xsd POCD_MT000040.xsd datatypes.xsd datatypes-base.xsd header V3 voc.xsd NarrativeBlock.xsd CDA narrative entries 技術簡述 – 標準類 • 臨床類: • LOINC:文件類型與區段代碼。 • SNOMED:區段內容代碼。 • ICD:區段內容代碼。 • 其他:如藥品等,區段內容代碼。 • 技術類: • XHTML:臨床文件呈現格式 • CSS:XHTML呈現樣式 • XML:臨床文件儲存格式 • SCHEMA:XML結構驗證 • SCHEMATRON:XML內容驗證 • XSLT:XML轉成XHTML • XPATH:定義XML各元素之位置(XSLT與Schematron中會用到) • HL7類: RIM 、DataType、Vocabulary、RMIM、CDA body 區段

  22. Cdar2與資料來源的關係 資料庫 資料 來源 不變值:資料來源是如何就如何。如姓名。 表單 限定值:資料來源需經過轉碼。如性別。 檔案 訊息 系統值:由CDA R2程式所產生。如文件產生時間。 資料 來源 固定值:由CDA R2決定。只要是實作CDA R2就是這個碼。如typeID 預設值:由實作指引標準書決定。只要實作哪份單張就會決定碼。如code

  23. 基本概念 CDA XSLT HTML

  24. XML技術簡介

  25. 什麼是XML • XML 是指eXtensibleMarkup Language。 • XML 是設計用來攜帶資料,不是顯示資料之用。 • XML的標籤( tag)並未事先定義,你必須設計定義自己的標籤。 • XML被設計為可以自我描述內容。 • XML是W3C 所推薦標準。

  26. 簡單的XML範例 <note> <to>同學</to> <from>老師</from> <heading>注意事項</heading> <body>下週二小考</body></note> • 注意: • XML沒有特殊規範,只是一個文字檔。 • 你可以自行創造各種標籤名稱。 • 他提供了一種與軟體、硬體獨立的交換情境。

  27. XML衍生之應用 • 在網際網路上,因為XML而擴展之應用 • XHTML the latest version of HTML  • WSDL for describing available web services • WAP and WML as markup languages for handheld devices • RSS languages for news feeds • RDF and OWL for describing resources and ontology • SMIL for describing multimedia for the web

  28. XML在產業的應用 • http://www.oasis-open.org/cover/xml.html#applications • Web Servers: apacheXML parsers, XSL, web publishing • Travel: openTravel information for airlines, hotels, and car rental places • News: NewsML creation, transfer and delivery of news • Voice: VoxML markup language for voice applications • Wireless: WAP (Wireless Application Protocol) wireless devices on the World Wide Web • Weather: OMF Weather Observation Markup Format (simulation) • Healthcare: HL7 DTDs for prescriptions, policies & procedures, clinical trials • Math: MathML (Mathematical Markup Language)

  29. 術語說明 Rootelement type element type element Attribute (name,value) <bibliography> <paper ID="object-fusion"> <authors> <author>Y.Papakonstantinou</author> <author>S. Abiteboul</author> <author>H. Garcia-Molina</author> </authors> <fullPaper source="fusion"/> <title>Object Fusion in Mediator Systems</title> <booktitle>VLDB 96</booktitle> </paper> </bibliography> element content Emptyelement character content

  30. XML之規則 • All XML Elements Must Have a Closing Tag • XML Tags are Case Sensitive • XML Elements Must be Properly Nested <p>This is a paragraph</p><p>This is another paragraph</p> <Message>This is incorrect</message><message>This is correct</message> <b><i>This text is bold and italic</i></b>

  31. XML之規則 • XML Documents Must Have a Root Element • XML Attribute Values Must be Quoted • Entity References <root>  <child>    <subchild>.....</subchild>  </child></root> <note date="12/11/2007">  <to>Tove</to>  <from>Jani</from></note> &lt; < less than &gt; > greater than &amp; & ampersand  &apos; ' apostrophe &quot; “ quotation mark

  32. XML之規則 • Comments in XML • White-space is Preserved in XML • XML Stores New Line as LF <!-- This is a comment -->

  33. XML之驗證 • Well Formed XML Documents • XML documents must have a root element • XML elements must have a closing tag • XML tags are case sensitive • XML elements must be properly nested • XML attribute values must be quoted • Valid XML Documents • 符合DTD規範或 • XML Schema • XML Namespaces • identify your vocabulary

  34. XMLSchema技術

  35. 為什麼需要xmlschema

  36. XML與schema

  37. 建立schema檔 • Xml文件宣告 • <?xmlversion=“1.0”?> • 建立root element • <xs:schema> • 宣告namespace • http://www.w3.org/2001/XMLSchema

  38. Xml檔案之引用

  39. XmlSchema 的註解 • 透過xml編輯器,可以將此段文字顯示出來。有即時說明的作用。

  40. 定義簡易型態元素 正確 錯誤

  41. 簡易型態

  42. 固定值與預設值 Valid Valid Valid Valid Novalid Valid

  43. 自定簡易型態 在元素中定義 可重複使用

  44. 限定範圍值 ─ 列舉

  45. 複雜型態

  46. 基本說明 • Xml的元素可以分成簡單型態與複雜型態 • 屬於複雜型態的元素,可以有子元素與屬性。 • 簡單型態不行有子元素與屬性。 • 複雜型態又可以在分成簡單內容與複雜內容 • 簡單內容就只能放字串。 • 複雜內容則可以有子元素。 • Xml範例

  47. 定義子元素 • Inorder

  48. 定義子元素 • Inanyorder

  49. 定義子元素 • Choices

More Related