DRAFT1.2 Methods
Total Page:16
File Type:pdf, Size:1020Kb
HL7 v3.0 Data Types Specification - Version 0.9 Table of Contents Abstract . 1 1 Introduction . 2 1.1 Goals . 3 DRAFT1.2 Methods . 6 1.2.1 Analysis of Semantic Fields . 7 1.2.2 Form of Data Type Definitions . 10 1.2.3 Generalized Types . 11 1.2.4 Generic Types . 12 1.2.5 Collections . 15 1.2.6 The Meta Model . 18 1.2.7 Implicit Type Conversion . 22 1.2.8 Literals . 26 1.2.9 Instance Notation . 26 1.2.10 Typus typorum: Boolean . 28 1.2.11 Incomplete Information . 31 1.2.12 Update Semantics . 33 2 Text . 36 2.1 Introduction . 36 2.1.1 From Characters to Strings . 36 2.1.2 Display Properties . 37 2.1.3 Encoding of appearance . 37 2.1.4 From appearance of text to multimedial information . 39 2.1.5 Pulling the pieces together . 40 2.2 Character String . 40 2.2.1 The Unicode . 41 2.2.2 No Escape Sequences . 42 2.2.3 ITS Responsibilities . 42 2.2.4 HL7 Applications are "Black Boxes" . 43 2.2.5 No Penalty for Legacy Systems . 44 2.2.6 Unicode and XML . 47 2.3 Free Text . 47 2.3.1 Multimedia Enabled Free Text . 48 2.3.2 Binary Data . 55 2.3.3 Outstanding Issues . 57 3 Things, Concepts, and Qualities . 58 3.1 Overview of the Problem Space . 58 3.1.1 Concept vs. Instance . 58 3.1.2 Real World vs. Artificial Technical World . 59 3.1.3 Segmentation of the Semantic Field . 60 DRAFT version 1.0 22 Mar 1999 i 3.2 Technical Instances . 62 3.2.1 Technical Instance Identifier . 65 3.2.2 ISO Object Identifiers . 67 3.2.3 Technical Instance Locator . 71 3.2.4 Outstanding Issues . 72 3.3 Real World Instances . 73 3.3.1 Real World Instance Identifier . 74 DRAFT3.3.2 Postal and Residential Address . 84 Examples . 88 3.3.3 Person Name . 94 3.3.4 Organization Name . 114 3.4 Technical Concepts and the Code Value . 116 3.4.1 Outstanding Issues . 118 3.5 Real World Concepts . 120 3.5.1 The Concept Descriptor . 122 3.5.2 Code Translation . 123 3.5.3 Code Phrase . 124 3.5.4 Examples . 124 3.5.5 Outstanding Issues . 128 4 Quantities . 132 4.1 Overview . 132 4.2 Integer Number . 133 4.3 Floating Point Number . 134 4.4 Ratio . 137 4.5 Measurements . 138 4.5.1 Physical Quantities . 139 4.5.2 Monetary Quantities: Currencies . 140 4.5.3 Things as Pseudo Units . 143 4.6 Time . 144 4.6.1 Point in Time . 144 4.6.2 Time Durations . 147 4.6.3 Other issues and curiosities about Time . 147 4.6.4 Calendar Modulus Expressions . 148 5 Orthogonal Issues . 149 5.1 Interval . 149 5.2 General Annotations . 152 5.3 The Historical Dimension . 154 5.3.1 Generic Data Type for Information History . 154 5.3.2 Generic Data Type "History Item" . 155 5.4 Uncertainty of Information . 156 5.4.1 Uncertain Discrete Values . 158 5.4.2 Non-Parametric Probability Distribution . 159 5.4.3 Parametric Probability Distribution . 161 ii 22 Mar 1999 DRAFT version 1.0 5.4.4 Uncertain Value using Narrative Expressions of Confidence . 169 DRAFTAppendix A: All Data Types At a Glance . 171 DRAFT version 1.0 22 Mar 1999 iii DRAFT Abstract HL7 v3.0 Data Types Specification Version 0.9 Gunther Schadow DRAFTRegenstrief Institute for Health Care Abstract This document is a proposal for a complete redesigned set of data types to be used by HL7. Whereas in version 2.x data types where considered "formats" of character strings that would appear in HL7 data fields, this proposal assumes a more fundamental position: data types are the constituents of all meaning that can ever be communicated in messages. In HL7 v2.x, data types where defined a posteriori on an as-needed basis. Conversely this redesign defines data types a priori searching for fundamental semantic units in the space of all possible data types. This redesign work is heavily based on experiences with HL7 v2.x. Data types are defined for (1) character strings and multimedia enabled free text; (2) codes and identifiers for concepts and instances both of the real world and of technical artifacts; (3) all kinds of quantities including integer and floating point numbers, physical measurements with units, various kinds of time. Data types are classified (generalized) in various ways with respect to certain properties of interest. A number of issues have been identified to be equally applicable to many if not all data types. Intervals (of ordered types), uncertain information, incomplete information, update semantics, historic information, and general annotations are defined as generic data types, that can be used to enhance the meaning of any other type. Although this type system is precisely defined, it has a lot of flexibility not found in many other type systems. Precise conversions are defined between types so that data of one type can be used instead of another if there is a conversion. As a special case, character string literals are defined for most types which allows an instance of composite types to be sent in one compact character string. Copyright © 1999, Regenstrief Institute for Health Care. All rights reserved. DRAFT version 1.0 22 Mar 1999 1 HL7 v3.0 Data Types Specification - Version 0.9 Gunther Schadow 1 Introduction This document proposes a redesigned system of HL7 data types to be used for HL7 version 3. It is the result of a task force group spawned off Control Query at the San Diego Meeting in September 1998. Since then, that group has been meeting in weekly phone conferences, chaired by Gunther Schadow. The following people (mentioned in alphabetic order) contributed to this endeavor: James Case (University of California, Davis), Norman Daoust (Health Partners), DRAFTLaticia Fitzpatrick (Kaiser Permanente), Mike Henderson (Kaiser Permanente), Stan Huff (Intermountain Health Care), Matt Huges, Irma Jongeneel (HL7 The Netherlands), Anthony Julian (Mayo), Joann Larson (Kaiser Permanente), Randy Marbach (Kaiser Permanente), John Molina (SMS), Richard Ohlmann (HBO & Company), Larry Reis (Wizdom Systems), Dawid Rowed (HL7 Australia), Carlos Sanroman, Mark Shafarman (Oacis Healthcare Systems), Greg Thomas (Kaiser Permanente), Mark Tucker (Regenstrief Institute), Klaus Veil (Macquarie Health Corp., HL7 Australia), David Webber, and Robin Zimmerman (Kaiser Permanente). This task force planned to conclude its work by January 1999. Although we made tremendous progress due to the commitment of the task force members, we were not completely finished. By January (Orlando meeting) we were about 80% finished. By April 1999 (Toronto), we have about 90% of the work done. As usual, the last parts of a project consume the most amount of time and energy. However, all data types are defined by now and the remaining work is to polish and refine. This report is divided into two major parts. (1) The remainder of this introductory section explains the concepts and ideas that govern this proposed system of data types, while (2) the sections 2 through 5 will define the data types in detail. This document was compiled from the notes of the twentyfour (???) conferences. The conference notes where issued in Hypertext (HTML) and publicly available for browsing (http://aurora.rg.iupui.edu/v3dt). In the notes I heavily utilized the unique advantages of the hypertext medium, namely the ease by which one can follow cross references. It so happened that general concepts and detailed definitions were mixed together as they came up in the conferences. Hyperlinks have been an invaluable tool to recall definitions and explanations from earlier notes and to show how ideas evolved over time. This report is written as Hypertext too, but it is delivered to the general HL7 working group as a paper document, which required to bring the material into a systematic order. However, the division into a first part, explaining the overall concepts, and a second part, defining the data types in detail, is problematic, since the usefulness of the general concepts are illustrated only by how those concepts are actually used in the definitions of the data types. The definitions of the data types, however, depend on general rules. Thus the reader faces a kind of "hermeneutic circle", where one has to know about the first part before one can fully comprehend the second part and vice versa. The Hypertext version of this report contains numerous forward and backward links, which, in the printed form appear as cross references to page numbers in square 2 22 Mar 1999 DRAFT version 1.0 1.1 Goals brackets. This ordering of the material comes in handy for the "impatient reader" who can explore everything just by following cross references. The reader who wants to see just some actual type definitions can use the index [p. 171] and directly proceed to the types he or she is interested in. The reader who wants to read through all the data type definitions can directly proceed to the sections of the second part [p. 36] and, if necessary, follow links back to the explanation of DRAFTgeneral concepts. Those who want to read through all of the text from the beginning can start with the general concepts and will be guided forward to the points where each concept is actually used. A final word of acknowledgment. Many of the great ideas reported here are born in numerous and intense discussions that Mark Tucker and I had before and after the conference calls. Without Mark Tucker, this whole type system work would have never evolved to a useful state.