HL7教育訓練課程教材 資料型態說明 - V 2.5 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材 台灣健康資訊交換第七層協定協會 版權所有 講授大綱     資料型態的規則 資料型態的應用 資料型態的說明 認證考試的講解 資料型態的規則 台灣健康資訊交換第七層協定協會 版權所有.

Download Report

Transcript HL7教育訓練課程教材 資料型態說明 - V 2.5 教育訓練委員會 Education Technical Committees 秘書長 范士展 改編自總會教材 台灣健康資訊交換第七層協定協會 版權所有 講授大綱     資料型態的規則 資料型態的應用 資料型態的說明 認證考試的講解 資料型態的規則 台灣健康資訊交換第七層協定協會 版權所有.

HL7教育訓練課程教材
資料型態說明 - V 2.5
教育訓練委員會
Education Technical Committees
秘書長 范士展
改編自總會教材
台灣健康資訊交換第七層協定協會 版權所有
講授大綱




2
資料型態的規則
資料型態的應用
資料型態的說明
認證考試的講解
資料型態的規則
台灣健康資訊交換第七層協定協會 版權所有
資料型態的規則~Refer to 2.A

Beginning in v 2.5 maximum lengths are being assigned
to data types. The follow rules apply to the setting of data
type length:

A) The upper bound maximum length of a
data type is the sum of:
–
–
–
4
The combined length of all components (including those not
required) that are not mutually exclusive.
The combined length of the largest set of mutually exclusive
components.
The combined length of message delimiters that are required to
construct the field, based on Section 2.6-Message construction
Rules.
資料型態的規則~Refer to 2.A
B) The lower bound maximum length of a
data type is the sum of:

–
–
–
5
The combined length of all required components that are not
mutually exclusive.
The combined length of the largest set of mutually exclusive
required components.
The combined length of message delimiters that are required to
construct the field, based on Section 2.6-Message construction
Rules.
資料型態的應用
台灣健康資訊交換第七層協定協會 版權所有
V2.x資料型態之呈現方式

V2.4 對於資料型態:AD (Address)的定義與屬
性說明:
2.9.1 AD - address
Components: <street address (ST)> ^ < other designation (ST)> ^ <city (ST)> ^
<state or province (ST)> ^ <zip or postal code (ST)> ^ <country (ID)> ^
<address type (ID)> ^ <other geographic designation (ST)>
元件順序不容易清楚識別,不易讀
V2.5 其資料型態的定義與屬性說明是以「表格(HL7
component table)」的方式呈現。
7
如何閱讀HL7 component table
資料型態的定義與屬性說明
8
SEQ:欄位中該元件的順序
LEN:元件的資料長度
DT:元件的資料型態
OPT: 元件屬性
此資料型態下包含哪些元件,
各個元件的定義與屬性說明。
TBL:參照的表格(HL7 or User define)
COMPONENT NAME: 元件名稱
COMMENTS:備註說明
SEC.REF. :對應到相關的資料型態
資料型態之對照

9
ADT/ACK - Admit/Visit Notification (Event A01)
資料型態之對照
PID.11 Field
10
資料型態之對照
PID.11.1 Component
11
資料型態之對照
PID.11.1.1 Sub-Component
12
Preliminary Type





13
DT - date
DTM - date/time
FT - formatted text data
GTS – general timing
specification
ID - coded value for HL7
defined tables






IS - coded value for userdefined tables
NM - numeric
SI - sequence ID
ST - string data
TM – time
TX - text data
資料型態的說明
台灣健康資訊交換第七層協定協會 版權所有
97 Data Types
資料類別
15
資料型態
資料類別
資料型態
Alphanumeric
ST TX FT SRT
Waveform
CD MA NA ED
Numeric
CQ MO NM SI SN
Price Data
CP
Identifier
ID IS HD EI RP PL PT VID
ADT/Finance
FC
Date/Time
DT TM TS
Extended Queries
QSC QIP RCD
Coded Values
CE CF CN CX XCN CNE
CWE
Master Files
DLN JCC VH
Demographics
AD PN TN XAD XPN
XON XTN SAD FN
Medical Records
PPN
Time Series
DR RI SCV TQ
Alphanumeric
(ST, TX, FT)


Any printable ASCII character allowed
Escape sequences allowed.
|\H\M\T\Ms\N\|
16
Alphanumeric
(ST, TX, FT)

ST - String
–
–

TX - Text
–
–
–

Meant for user display
Allows leading spaces and paragraphing
Typically a larger block than ST (up to 64K)
FT - Formatted Text
–
17
Left justified, trailing spaces optional
Small block of text (<200 characters)
TX that allows embedded “formatting codes”
Formatted Text Codes
Used within Health Level Seven
Code
Meaning
.sp # End current line and skip # lines
.br
Begin new output line
.fi
Begin word wrap (default)
.nf
Begin no-wrap mode
.in # Indent # of spaces
.ti # Temporarily indent # of spaces
.ce
End current line and center next line
18
Formatted Text
|Observation:\.sp\\.in+4\\.ti-4\1. The cardio
mediastinal silhouette is now within normal
limits.\.sp\\.ti-4\2. Lung fields show minimal ground
glass appearance.|
19
Observation:
1. The cardio mediastinal
silhouette is now within
normal limits.
2. Lung fields show minimal
ground glass appearance.
Observation:
1. The cardio
mediastinal
silhouette is
now within
normal limits.
2. Lung fields
show minimal
ground glass
appearance.
SRT - Sort Order

Used for sorting query results
|LastName^A~FirstName^A|
20
Numeric





21
CQ - Composite Quantity With Units
MO - Money
NM - Numeric
SI - Sequence ID
SN - Structured Numeric
56271890
Numeric
(NM, SI)

NM - Numeric
–
–
–

SI - Sequence ID
–
–
22
A series of ASCII numeric characters
Optional leading sign (+ or -)
Optional decimal point
|-999.99|
Positive Integer
|5|
Data type used for “Set ID” fields for repeating
segments.
OBX|1|…<CR>
OBX|2|…<CR>
OBX|3|…<CR>
Numeric
(CQ, MO)

CQ - Composite Quantity
|123.7^kg|

23
|150^lb&pound&ANS+|
MO - Money
|99.50^USD|
Numeric
(SN)

SN - Structured Numeric
|>^100|
greater than 100
|^100^-^200| equal to range of 100 through 200
24
|^1^:^128|
ratio of 1 to 128, e.g., a serological test result
|^2^+|
categorical response, e.g., occult blood positivity
Date/time

DT: Date
–

YYYY[MM[DD]]
HH[MM[SS[.S[S[S[S]]]]]][+/-ZZZZ]
TS: Time stamp
–
25
4
TM: Time
–

4
YYYY[MM[DD[HH[MM[SS[.S[S[S[S]]]]]]]][+/ZZZZ]^ <degree of precision> ZZZZ = offset from the
coordinated universal
time (previously known
as Greenwich Mean
Time) Data Types (Part 1)
Identifiers







26
ID - value from HL7 defined table
IS - value from uSer defined table
HD - Hierarchic Designator
EI - Entity Identifier
RP - Reference Pointer
PL - Patient Location
PT - Processing Type
Identifiers
(ID versus IS)

ID - HL7 defined value
HL7 Table 0136 - Yes/no indicator
set
Value
Y
N

Description
Yes
No
IS - User defined value set
User-defined Table 0001 - Administrative Sex
27
Value
F
M
O
U
Description
Female
Male
Other
Unknown
HD - Hierarchic Designator



28
Identifies an entity that is responsible for managing
or assigning identifiers
Used for MSH Sending and Receiving Application
and Facility
Used for Assigning Authority for Patient Identifiers:
MRN^^^Facility A
HD - Hierarchic Designator Notes #1
User-defined table
0300-Namespace ID
for suggested values
29
If it’s an entity defined locally,
only <namespace ID> will be
valued; example, “Hospital A.”
HD - Hierarchic Designator Notes #2
Value Description
30
DNS
GUID
HCD
HL7
ISO
L,M,N
Random
URI
x400
x500
Internet dotted name (ASCII or integers)
Same as UUID DCE Universal Unique Identifier
CEN Healthcare Coding Scheme Designator.
Reserved for future HL7 schemes
ISO Object Identifier (OID)
Local coding schemes
Base64 encoded string of bits
Uniform Resource Identifier
X.400 MHS format identifier
If the entity
X.500 directory name
UID Type within
which the ID is
unique see
Table 0301 for
valid values
is assigned publicly,
the last two components are used.
HD - Hierarchic Designator Notes #3
An ID which is unique over
time within the ID Type
^1.2.34.4.1.5.1.5.1.1.13143143.131.3131.1^ISO
^14344.14144321.4122344.14434.654^GUID
LAB1^1.2.3.3.4.6.7^ISO
^falcon.iupui.edu^DNS
31
^1.2.344.24.1.1.3^ISO
PathLab^UCF.UC^L
^40C983F09183B0295822009258A3290582^R
HD – Hierarchic Designator
MSH-4-Sending Facility Example

Sending Facility is General Hospital
–
–
–
MSH-4 has Data Type HD
Definition of MSH-4 in Chapter 2 specifies that Table
362 will be used for Component 1, Namespace ID
General Hospital is known by entry
Genhosp
in Table 362
–
General Hospital has been assigned ISO Object
Identifier
1.2.344.24.1.1.362155
32
HD – Hierarchic Designator
MSH-4-Sending Facility Example

Using only Component 1 of data type HD (Namespace ID)
MSH|^~\&|Newreg|Genhosp|…

Using only Component 2 (Universal ID) and Component 3 (Universal
ID Type)
MSH|^~\&|Newreg|^1.2.344.24.1.1.362155^ISO|…

Using Components 1, 2, and 3
MSH|^~\&|Newreg|Genhosp^1.2.344.24.1.1.362155^ISO|…
(Note that this example only populates Component 1 of MSH-3-Sending Application)
33
EI - Entity Identifier

A unique identifier across the specified entity
Examples: Accession Number, Filler Order Number,
Episode of Care ID, Authorization ID, External
Referral ID, Facility ID, etc.
34
RP - Reference Pointer

Transmits information about data stored on another
system.
Example Types of Data:
Audio, JPEG, RF, TX, DICOM,
HTML, Application
35
Pointer is unique within the object
defined by the application ID (HD)
PL - Patient Location
Logically the sequence is:
1. person location type (IS)
2. facility (HD)
3. building (IS)
4. floor (IS)
36
5. point of care (IS)
6. room (IS)
7. bed (IS)
PT - Processing Type


Indicates whether message is to be processed under production
or other rules as defined in HL7 Application Processing rules.
Used in MSH-11-Processing ID
Table 0103 - Processing ID
Value
Description
D
Debugging
P
Production
T
Training
37
Table 0207 - Processing mode
Value
Description
A
Archive
R
Restore from archive
I
Initial load
not present
Default; equates to
current processing
Coded Values







38
CE - Coded Element
CF - Coded Element with Formatted Values
CNE - Coded no Exceptions
CWE - Coded with Exceptions
CX - Extended Composite ID w/check digit
CN - Composite ID Number and Name
XCN - Extended Composite ID Number and
Name
Coded Elements
39

CE - Coded Entry

Retained for backward compatibility
only as of V2.5. Use CWE and CNE
instead for new structures.

CF - Coded Entry With
Formatted Values.
|F-11380^CREATININE^I9^2148-6^CREATININE^LN|
CNE/CWE
40

Replaces CE for new structures

CNE - Coded No Exceptions

CWE - Coded With Exceptions
CX - Extended Composite ID
with check digit

Introduced in Version 2.3 as replacement for CK
|12345674^4^M11^ADT01^MR^University Hospital|
41
HL7 Table 0061、0203之需注意
XCN - Extended Composite ID Number
and Name

Introduced in V2.3 to
replace CN
(Composite Name)

Associates an ID
number with a name.

Used for physicians
and staff.
|1234567^Smith^John^^^DR^MD|
42
Demographics

XAD - Extended Address
–

XPN - Extended Person Name
–

43
Replaced PN as of Version 2.3
XTN - Extended Telecommunications Number
–

Replaced AD as of Version 2.3
Replaced TN as of Version 2.3
XON - Extended Composite Name and ID
Number for Organizations
XAD – Extended Address
44
|10 CASTLE ROAD^^PLEASANT TOWN^HAPPY
STATE^48132^CHARMING LAND|
XPN – Extended Person Name
Hello My Name is
45
|Charming^Cinderella^^^
Princess|
Princess
Cinderella
Charming
XON - Extended Composite Name and ID
Number for Organizations

46
Similar to XCN except for organizations.
XTN – Extended Telecommunications
Number
|^WPN^PH^^1^415^9250121^305|
|^NET^X.400^[email protected]|
47
|(404)234-4532CWEEKENDS|
Data Types (Part 2)
Waveforms

CD - Channel Definition
–

MA - Multiplexed Array
–

Used to represent a series (array) of numeric values
ED - Encapsulated Data
–
48
Used to represent channel multiplexed waveform data.
NA - Numeric Array
–

Used for labeling digital waveform data.
Transmits encapsulated Data from a source system to a
destination system.
Waveform Data Types
NA (Numeric Array)

Definition
–

<value1> ^ <value2> ^ <value3> ^ <value4> ^ …
Examples
–
|125^34^-22^-234^569^442^-212^6|

–
|1.2^-3.5^5.2~2.0^3.1^6.2~3.5^7.8^-1.3|

–
3 x 3 array of numbers
|^2^3^4~5^^^8~9^10~~17^18^19^20|

49
vector of 8 numbers
5 x 4 array of numbers with the values in positions
(1,1), (2,2), (2,3), (3,3), (3,4), (4,1), (4,2), (4,3), and
(4,4) not present
1 . 2

2 .0

 3 . 5


5

9


17

3 .5
3 .1
7 .8
2
5 .2 

6 .2

 1 . 3 
3
10
18
19
4 

8




20 
Waveform Data Types
MA (Multiplexed Array)

Definition
–
–
–

<sample 1 from channel 1>^<sample 1 from channel 2>^<sample
1 from channel 3> ...~
<sample 2 from channel 1>^<sample 2 from channel 2>^<sample
2 from channel 3> ...~
...
Examples
–
|0^0^0~1^1^1~2^2^2~3^3^3~4^4^4~5^5^5|

–
|0~1~2~3~4~5~6~7~8~9~10|

50
3 channels (identical), 6 time-samples
1 channel, 11 time-samples
ED - Encapsulated Data


Transmits encapsulated data from a source system
to a destination system.
Same as RP except that ED includes the data.
Values
A
Hex
Base64
51
Finance

FC - Financial Class
|Medicare^10102005|
52
Medical Records

PPN - Performing
Person Name
–
53
Similar to XCN
with time stamp
and other
components added.
CP - Composite Price

CP - Composite Price
–
54
Superseded MO in Version 2.3
|100.00&USD^UP^^9^min^P~
50.00&USD^UP^10^59^min^P~
10.00&USD^UP^60^999^min^P~
50.00&USD^AP~
200.00&USD^PF~
80.00&USD^DC|
CP - Composite Price
此七種價格型態的
縮寫一定要牢記
55
Extended Queries

QSC - Query Selection Criteria

QIP - Query Input Parameter List

RCD - Row Column Definition
Queries?
56
QSC - Query Selection Criteria

The conditions that qualify the rows to be
returned in the query response
|@PID.16.1^EQ^S^AND|
|@PID.8^EQ^F^AND|
57
|@PID.11.6^EQ^CHARMING LAND|
QIP - Query Input Parameter List

58
Contains the list of parameter names and values to
be passed to the stored procedure
RCD - Row Column Definition

Each repetition of this field consists of three
components
RDF|3|@PID.5.1^ST^[email protected]^ST^[email protected]^ST^5|
Patient’s Family
Name
59
Patient’s Given
Name
ZIP or Postal Code
Used in the RDF Segment
Master Files
DLN - Driver’s License Number
JCC - Job Code/Class
VH - Visiting Hours
60
Time Series
61

DR - Date/Time Range

RI - Repeat Interval

SCV - Scheduling Class value Pair

TQ - Timing Quantity
DR - Date/Time Range
62

The earliest date/time (time stamp) and the latest
date/time in a specified range

Deprecated in V2.5 in favor of separate TS fields
RI - Repeat Interval

The interval between repeating appointments.

Default setting indicates appointment should
occur once, when the component is not valued
|QID^0230,0830,1430,2030|
63
QID
four times a day at institution-specified
times
(e.g., 9AM-11AM-4PM9PM)
SCV - Scheduling Class Value Pair

Used to specify appointment scheduling
preferences.
Mon^OK
Wed^NO
Prefstart^0800
64
TQ - Timing Quantity
65

Describes when a service should be performed
and how frequently.

Deprecated in V2.5 in favor of TQ1 and TQ2
segments and
new message
structures in
Chapter 4
感謝聆聽
HL7教育訓練課程教材─入門介紹
下一場:HL7訊息驗證
台灣健康資訊交換第七層協定協會 版權所有