hl7 v2.6 style guide · web viewco-chair: helen stevens mckesson hboc co-chair: klaus d. veil...

71
1. HL7 V2.6 Style Guide Co-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting 1.1 STYLE GUIDE CONTENTS 1.1 STYLE GUIDE CONTENTS..................................................1-1 1.2 PURPOSE...............................................................1-3 1.3 GENERAL RULES.........................................................1-3 1.3.1 Exceptions........................................................1-4 1.3.2 General Specifications and Settings...............................1-4 1.3.3 Heading Capitalization............................................1-4 1.3.4 Enabling Macros...................................................1-4 1.3.5 Definitions.......................................................1-5 1.3.6 Auto Correction...................................................1-5 1.4 GRAMMAR...............................................................1-5 1.4.1 Use of Commas in Series...........................................1-5 1.4.2 A/an Conventions..................................................1-5 1.4.3 "Version" Language Convention.....................................1-6 1.4.4 ANSI approval language............................................1-6 1.5 DOCUMENT STRUCTURE....................................................1-6 1.5.1 Introductory Page.................................................1-6 1.5.2 Table of Contents.................................................1-6 1.5.3 Statement of Purpose..............................................1-7 1.5.4 Notes to Balloters................................................1-7 Health Level Seven, Version 2.5 © 2002. All rights reserved Page 1 Draft 34 Aug. 2004

Upload: others

Post on 25-Feb-2021

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

1.HL7 V2.6 Style Guide

Co-Chair: Helen StevensMcKesson HBOC

Co-Chair: Klaus D. VeilHL7S&S

Editor: Frank OemigRingholm GmbH Integration Consulting

1.1 STYLE GUIDE CONTENTS1.1 STYLE GUIDE CONTENTS...........................................................................................................................1-1

1.2 PURPOSE..........................................................................................................................................................1-3

1.3 GENERAL RULES...........................................................................................................................................1-3

1.3.1 Exceptions....................................................................................................................................................1-41.3.2 General Specifications and Settings.............................................................................................................1-41.3.3 Heading Capitalization.................................................................................................................................1-41.3.4 Enabling Macros...........................................................................................................................................1-41.3.5 Definitions....................................................................................................................................................1-51.3.6 Auto Correction............................................................................................................................................1-5

1.4 GRAMMAR.......................................................................................................................................................1-5

1.4.1 Use of Commas in Series.............................................................................................................................1-51.4.2 A/an Conventions.........................................................................................................................................1-51.4.3 "Version" Language Convention..................................................................................................................1-61.4.4 ANSI approval language..............................................................................................................................1-6

1.5 DOCUMENT STRUCTURE............................................................................................................................1-6

1.5.1 Introductory Page.........................................................................................................................................1-61.5.2 Table of Contents..........................................................................................................................................1-61.5.3 Statement of Purpose....................................................................................................................................1-71.5.4 Notes to Balloters.........................................................................................................................................1-71.5.5 Preparing documents for publishing.............................................................................................................1-81.5.6 Event/Message and Segment Definition......................................................................................................1-91.5.7 Field Definitions...........................................................................................................................................1-9

1.6 DOCUMENT PROPERTIES...........................................................................................................................1-9

1.7 FORMATTING.................................................................................................................................................1-9Health Level Seven, Version 2.5 © 2002. All rights reserved Page 1Draft 34 Aug. 2004

Page 2: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

1.7.1 Text Indentation............................................................................................................................................1-91.7.2 Message Definitions.....................................................................................................................................1-91.7.3 Segment Definitions...................................................................................................................................1-111.7.4 Field Definitions.........................................................................................................................................1-121.7.5 Field Component Definition.......................................................................................................................1-121.7.6 Data Type Component Table......................................................................................................................1-121.7.7 Data Type Component Definition..............................................................................................................1-131.7.8 Table Definitions........................................................................................................................................1-141.7.9 Table Value Definitions..............................................................................................................................1-151.7.10 Notes.........................................................................................................................................................1-161.7.11 Hyperlinks................................................................................................................................................1-161.7.12 Examples for messages............................................................................................................................1-171.7.13 Other Examples........................................................................................................................................1-171.7.14 Page Headers............................................................................................................................................1-171.7.15 Page Footers.............................................................................................................................................1-171.7.16 Setting Bookmarks...................................................................................................................................1-20

1.8 LISTS................................................................................................................................................................1-21

1.9 INDEXING.......................................................................................................................................................1-22

1.9.1 Data Types..................................................................................................................................................1-221.9.2 Data Elements.............................................................................................................................................1-221.9.3 Segments....................................................................................................................................................1-221.9.4 Attribute Tables..........................................................................................................................................1-221.9.5 Events.........................................................................................................................................................1-221.9.6 Tables..........................................................................................................................................................1-221.9.7 Message Types............................................................................................................................................1-22

1.10 CONFORMANCE STATEMENTS.............................................................................................................1-23

1.10.1 Distinct Parts of a Conformance Statement.............................................................................................1-231.10.2 Formatting the different parts of a conformance statement with styles...................................................1-23

1.11 OTHER EDITING TASKS AND ISSUES..................................................................................................1-26

2.1 AUTHORIZED PARAGRAPH STYLES FOR THE HL7-2 TEMPLATE...................................................27

2.1.1 Style Name Notes..........................................................................................................................................342.1.2 Font................................................................................................................................................................342.1.3 Kern...............................................................................................................................................................342.1.4 Line Spacing..................................................................................................................................................342.1.5 Space Before..................................................................................................................................................342.1.6 Space After.....................................................................................................................................................342.1.7 Justification....................................................................................................................................................342.1.8 Other..............................................................................................................................................................342.1.9 Indent.............................................................................................................................................................342.1.10 Tabs..............................................................................................................................................................342.1.11 Base Style....................................................................................................................................................342.1.12 Style for Following Paragraph.....................................................................................................................34

2.2 AUTHORIZED CHARACTER STYLES FOR THE HL7-2 TEMPLATE..................................................35

2.3 WITHDRAWN STYLES FOR THE HL7-2 TEMPLATE..............................................................................35

2.4 LIST OF NEW STYLES FOR THE CONFORMANCE STATEMENT......................................................35

2.5 LIST OF COLUMN WIDTHS FOR ALL TABLES........................................................................................37

2.6 LIST OF ADDITIONAL PROPOERTIES FOR ALL TABLES....................................................................37Page 2 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 3: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

2.7 REMARKS..........................................................................................................................................................38

2.8 A NOTE ON HTML STYLE SHEETS.............................................................................................................39

2.9 FORMATTING MACROS (STYLE FIXER)..................................................................................................40

2.9.1 Enabling Macros............................................................................................................................................402.9.2 General Remarks...........................................................................................................................................402.9.3 Adjust the properties of the styles..................................................................................................................412.9.4 Format all Tables within the document..........................................................................................................412.9.5 References......................................................................................................................................................412.9.6 Adjust the numbering of the headings...........................................................................................................422.9.7 Adjust the Number Gallery............................................................................................................................422.9.8 Delete unused styles......................................................................................................................................422.9.9 Convert message tables into 5 column format...............................................................................................422.9.10 Move group name from 3rd column to 2nd....................................................................................................432.9.11 Add 3rd column to tables..............................................................................................................................432.9.12 Reformat Message table..............................................................................................................................432.9.13 What table is this..........................................................................................................................................432.9.14 Goto a specific table....................................................................................................................................442.9.15 Correct Curly Quotes...................................................................................................................................442.9.16 Requirements to run the macros..................................................................................................................442.9.17 Manually Correcting Styles.........................................................................................................................442.9.18 Component Model Work.............................................................................................................................44

2.10 PROCEDURES.................................................................................................................................................45

2.10.1 Procedure for Troubleshooting Normal List Alpha.....................................................................................452.10.2 Troubleshooting styles that change erratically............................................................................................462.10.3 Procedure for inserting a picture..................................................................................................................462.10.4 Troubleshooting the macro Format All Tables............................................................................................472.10.5 Getting new data element or table numbers from HQ.................................................................................472.10.6 Procedure for de-activating “Replace straight quotes with smart quotes”..................................................482.10.7 Generating Table of Contents......................................................................................................................482.10.8 Fixing an Erratic Document Map................................................................................................................492.10.9 Automatic Capitalization.............................................................................................................................51

2.11 QUESTIONS/ERRORS...................................................................................................................................51

2.12 History (last changes at the end).........................................................................................................................52

1.2 PURPOSEThis document describes how HL7 Version 2.5 Chapters should be formatted in order to get a uniform layout, which in turn allows automatic generation of the HL7 v2.5 Database. For the automatic scanning and data extraction processing it is important to maintain consistency across all HL7 chapters.

To demonstrate the styles this document uses the same formatting rules.

All formatting is set by MS Word “styles”. (The use of a MS Word .DOT template file was found to be too unreliable). A set of macros is available (see the end of this document) to apply the styles to the document.

1.3 GENERAL RULESTo reduce the amount of formatting effort and to allow easy processing of HL7 Chapters no direct formatting should be applied. All necessary formatting shall be done by the help of MS Word “styles”.

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 3Draft 34 Aug. 2004

Page 4: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

1.3.1 ExceptionsOnly a few exceptions are accepted. One is the numbering of the chapter. Others are identified later.

1.3.2 General Specifications and SettingsThis HL7 Style Guide is for HL7 v2.5 documents.

This Style Guide assumes the use of MS Word 97 SR-2 or a later version of MS word (Office 2000, etc.).

Some settings are standard:

The language is American English

Hyphenation is enabled.

Paper orientation is portrait

“Fast saves” are disabled (keeps the documents to a minimum size)

“Templates and Add-Ins automatic updates” is disabled.

Smart vs. Straight quotes: (The XML SIG/TC defines the requirements.)

1.3.2.1 Page SetupTop margin: 0.4" (1,016 cm)

Bottom margin: 0.5" (1.27 cm)

Left margin: 0.75" (1.905 cm)

Right margin: 0.75" (1.905 cm)

Gutter (for binding): 0.5" (1.27 cm)

Header: 0.6” (1.524 cm)

Footer: 0.6” (1.524 cm)

1.3.2.2 Filename Conventions

The naming convention for the files is:

Ch<99>.doc for the chapters including a two digit chapter number

Appendix<X>.doc for the appendices including a one character appendix number

This convention is necessary to achieve hyperlinking across the different chapters.

1.3.3 Heading CapitalizationCapitalize the first letter of each word except articles, prepositions, the to in infinitives and coordinate conjunctions (such as “and”, “but”, “or” and “yet2).

The same should be applied to data elements and segment names.

1.3.4 Enabling MacrosRegarding disabled macros. Word 97 (I don't know about later versions) will (is suppose to ask) if you want to enable/disable macros when you open a document that contains macros. The prompt can be turned on/off by checking/unchecking Macro Virus Protection in the General tab of Tools:Options. But, it you are not getting the prompt, the macros are suppose to be enabled.

Page 4 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 5: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

You can get to the macros directly (not using the buttons) by going to Tools:Macro:Macros or pressing Alt+F8. The window will list the available macros. If the window is empty, then the macros have been disabled via Word's virus protection: Enable Macro Virus Protection (check it) in Tools:Options:General, then close and re-openthe document and click Enable on the dialog. If the dialog still doesn't show up then get a "fresh" copy of the style guide either re-extract it from the zip or download the zip again. (On the copy that I use I don't get the macro disable dialog, but I do get the dialog when I open a new copy out of the zip file.)

1.3.5 DefinitionsAll segments, segment fields, data types and data type components should have a simple 1 sentence definition. The dictionary style of using fragments is to be avoided. The definition may be followed by 1 or more sentences clarifying usage. This guideline is to be applied to new items or existing ones that are being modified. We are not doing a sweep and clean-up of all definitions for this release.

1.3.6 Auto CorrectionNormally, Word provides a functionality called "auto correction". This feature automatically exchanges words typed in by another representation, e.g. smileys. In order not to get problems when converting the documents some of the entries must be deleted:

entry normally corrected to... ...

1.4 GRAMMAR

1.4.1 Use of Commas in SeriesDo not use comma before last and unless the last item in a list contains the word “and (e.g., the main causes of death are heart attacks, drownings, and hit and run accidents).

Here’s what the AP style manual says: Use commas to separate elements in a series, but do not put a comma before the conjunction in a simple series:

The flag is red, white and blue.

He would nominate Tom, Dick or Harry.

Put a comma before the concluding conduction in a series if an integral element of the series requires a conjunction:

I had orange juice, toast, and steak and eggs for breakfast.

Use a comma before the concluding conjunction in a complex series of phrases:

The main points to consider are whether the athletes are skillful enough to compete, whether they have the stamina to endure the training, and whether they have the proper mental attitude.

Guideline source: Associate Press Style Guide.

1.4.2 A/an ConventionsUse the article "an" before words or abbreviations that begin with a consonant but sound like a vowel (e.g. an ST data type or an NM data type).

Guideline source: Associate Press Style Guide.

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 5Draft 34 Aug. 2004

Page 6: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

1.4.3 "Version" Language ConventionUse a lower case "v" rather than spelling out the word "version" only if the version number appears, e.g., "v2.5". Otherwise, spell out the word version, e.g., "in earlier versions of the standard".

1.4.4 ANSI approval languageUse "ANSI approval of" not "ANSI approval for" when speaking of ANSI approval.

1.5 DOCUMENT STRUCTURE

1.5.1 Introductory PageEvery chapter begins with an introductory page which names the number of the chapter, the name of the chapter and the responsible chairs and editors.

1.5.2 Table of ContentsA Table of Contents appears after the introductory information.

The TOC lists the chapter contents at the Heading 2 and Heading 3 levels.

The TOC is constructed as described in section 2.9.7 in the English version of WORD.Heading 2

3.2 CHAPTER xx CONTENTS{ VERZEICHNIS \T "Heading 2,1,Heading 3,2,Heading 4,3" }

Another important issue is to move the level down, i.e. make “Heading 2” “TOC 1”.

Page 6 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 7: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

1.5.3 Statement of PurposeExcept for chapter 2, the first paragraph specifies the purpose of the chapter. The formatting is as follows:

Heading 1 (consists of a soft end of line [SHIIFT+RETURN] and the heading, but is auto-numbered and sets the number "base" for the whole chapter)

3.Patient Administration

Chapter Chair: Freida B. HallErnest & Young

Chapter Chair: Michael HawverEclipsys Corporation

Editor: Klaus D. VeilHL7S&S

3.2 PURPOSE Heading 2

The black horizontal line is built up by a graphical box across the page with 5 mm in height. The list of chairs and the editors is a table with no borderlines. This allows for easy alignment.

To set the "base" numbering for a chapter, set the number a *one* place in each chapter, namely in the actual chapter number ("3.") with the style of "Heading 1". Go to Format->Bullets and Numbering->Customize->Start at.

Heading 3

1.5.4 Notes to BallotersPreparing a document for balloting often requires some additional information which should be taken care of when reading the document. This initial section appears directly below the list of co-chairs and editors, but before the table of contents. This ensures that everybody is aware of this additional information.

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 7Draft 34 Aug. 2004

Page 8: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

Notes to Balloters

This is the Member Ballot for v2.x.

Please ballot on chapter content only. The formatting of the chapters is mainly driven by the requirement to automatically extract data for automatic consistency checking and to build the HL7 v2.4 Database. The format has been reviewed by the HL7 Architectural Review Board. As HL7 also intends to publish the Standard in PDF and HTML/XML format, variations in presentation may not be avoidable. For this reason, not all style enhancements have change marks.

HL7 HQ, the TC Chairs and the International Affiliates thank you for your consideration!

This section is makes use of the available styles.

Afterwards the whole section (without a section heading) is shaded in grey 15% and border lines are 1½ points. In order to get a single box around all the paragraph indentation must be the same.

1.5.5 Preparing documents for publishinga) Run Macros

b) Clear number gallery (seep rocedure in section 1.7.1)

c) Correct typos

d) Make technical corrections approved by ARB that do not need to be balloted

e) Make any sections moves that do not involve content change

f) Make any other styleguide changes that do not involve content change

g) Set place holders for new sections

h) Check and correct bookmarks

i) Check that Header is correct

j) Check that the Footer indicates the proper ballot name or final name and the date

k) Turn Tracking (Checkmarking) on

l) Make content changes as needed

In order to make identification of new tables and data elements easier – it is not only necessary to replace them in a single spot – a naming scheme reduces checking efforts to find corresponding places:

Instead of naming them “?????” or “nnnn” something like “0aa_” for tables and “0ee__” for data elements with “_” a letter running from “a” to “z”. E.g.:

Oaaa

Oaab

Oaac

...

And

OeeaPage 8 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 9: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

Oeeb

...

1.5.6 Event/Message and Segment DefinitionThe structure of the HL7 chapters consists of two parts. The first lists events, triggers and messages with the relevant message structures; the second part defines the segments, elements, components and subcomponents in detail.

1.5.7 Field DefinitionsThe field definitions for a segment have to be appended to the segment definition. It starts with the level 4 heading naming the segment after which the fields/elements are defined. No text is necessary.

Heading 4

1.5.7.0 PID-1 Set ID - PID (SI) 00104

All field definitions start with a level 4 heading consisting of four parts:

1) The data element identifier

2) the name of the data element

3) the type of the data element (in brackets)

4) the data element ID number

5) The four heading parts are separated by three spaces each.

The field definition header also contains an invisible entry for index generation. Look at the “Set ID – PID” heading above with Tools -> Options -> View -> All checked on.

1.6 DOCUMENT PROPERTIESTitle: The contents of this document, i.e. the name of the chapter

Topic: “HL7” and the corresponding version number

Author: The name of the editors.

1.7 FORMATTING

1.7.1 Text IndentationText following headings level 1 and 2 are flush left with no indentation; the MS Word style is “Normal”.

Text following level 3 headings and lower is formatted using "Normal Indented", indented 1/4" (0.63cm).

1.7.2 Message DefinitionsMessage definitions are in form of a table to simplify the document data extraction This table consists of four columns and as many rows as necessary.

The first row (“Msg Table Header”) describes:

in the first column the message type, the event/trigger code and the message structure ID

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 9Draft 34 Aug. 2004

Page 10: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

separated by "^",

in the second column a short description

in the third column a status concerning backward compatibility

in the fourth column the corresponding HL7 chapter.

All subsequent rows are used for the message description (“Msg Table Body”). The segments used and structure symbols are listed in the left column. The second column holds the segment name and the group name to identify logical groups of segments. The latter is written in the form "--- ", the name of the group in capital letters and "begin" or "end" according to the place.

If this message applies to more than one event, all event codes are listed within the second field of the first column in the first row. Ranges are separated by dashes (“-“) and single values by commas.

The message definition tables are indented by 1/4" (0.63cm).

Msg Table Header Hyperlink to “EVN” Msg Table Body

ADT^A01^ADT_A01 ADT Message Status ChapterMSH Message Header 2EVN Event Type 3PID Patient Identification 3[PD1] Additional Demographics 3[ { NK1 } ] Next of Kin /Associated Parties 3PV1 Patient Visit 3[ PV2 ] Patient Visit - Additional Info. 3[ { DB1 } ] Disability Information 3[ { OBX } ] Observation/Result 7[ { AL1 } ] Allergy Information 3[ { DG1 } ] Diagnosis Information 6[ DRG ] Diagnosis Related Group 6[ { --- PROCEDURE begin PR1 Procedures 6 [{ROL}] Role 12} ] --- PROCEDURE end[ { GT1 } ] Guarantor 6[ { --- INSURANCE begin IN1 Insurance 6 [ IN2 ] Insurance Additional Info. 6 [ {IN3} ] Insurance Additional Info. - Cert. 6} ] --- INSURANCE end

Columns 1 and 2 are left justified – and columns 3 and 4 are centered.

It is required that all segments in the message structure that are defined in the same chapter have a hyperlink to the segment attribute table.

Segment Group Names:

Whenever brackets are used for one segment only they should appear within the same cell. Otherwise separate rows should be used:

The Segment Group Name (SGN) will appear in the segment name column on it's own line. It will be preceded by 3 dashes and followed by the word begin or end depending on context.

Indentation can use tabs or spaces. The latter are preferred. If possible the closing brackets should appear below the corresponding opening bracket.

Page 10 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 11: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

"{[" and "[{" are semantically identical. But the latter is preferred. (The "{[" and "]}" bracket pairs will be replaced with "[{" and "}]".)

Furthermore,

ADT^A01^ADT_A01 ADT Message Status Chapter...[ { --- INSURANCE begin IN1 Insurance 6 [ IN2 ] Insurance Additional Info. 6 [ {IN3} ] Insurance Additional Info. - Cert. 6} ] --- INSURANCE end

and

ADT^A01^ADT_A01 ADT Message Status Chapter...[ --- INSURANCE begin { IN1 Insurance 6 [ IN2 ] Insurance Additional Info. 6 [ {IN3} ] Insurance Additional Info. - Cert. 6 }] --- INSURANCE end

are the same. The first one requires less editing efforts than the second and is the preferred representation by the publishing committee, but the second one allows for easier checking of message structure correct-ness.

1.7.3 Segment DefinitionsAttribute headers start on a new page. The attribute tables, i.e. the list of data elements used, are indented 1/4" (0.63cm) and should be formatted as follows:

Attribute Table Caption

Attribute Table Header

Attribute Table Body Bookmark (“EVN”) Index information

Hyperlink to “ID”

HL7 Attribute Table – EVN – Events {XE “HL7 Attribute Table: EVN” }{XE “EVN attributes”}

SEQ LEN DT OPT RP/# TBL# ITEM# ELEMENT NAME1 3 ID B 0003 00099 Event Type Code2 26 TS R 00100 Recorded Date/Time 3 26 TS O 00101 Date/Time Planned Event4 3 IS O 0062 00102 Event Reason Code5 60 XCN O Y 0188 00103 Operator ID6 26 TS O 01278 Event Occurred

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 11Draft 34 Aug. 2004

Page 12: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

The attribute table caption line information is used to generate the index of HL7 attribute tables. Therefore the complete caption is repeated in the index field. To facilitate the generation of the database the index field must be positioned at the end of the line!

The attribute table caption line must be bookmarked with the 3-letter segment ID (i.e. "EVN") for referencing by the message structure tables.

The header is shaded 10%.

The attribute table grid lines are ¾ points, and the border is a dual ¾ point line.

Additional index information is added at the end of the paragraph. This kind of information is hidden and therefore only visible when switching on “all” in Extras->Options->non-printable characters. (The information above is formatted as normal text so it appears in the printed version of this document.)

The narrative should precede the Segment Attribute table. In the future we may identify distinct parts of the narrative such as: definition, explanation/description, usage notes, use cases and examples.

The fifth column for repeatability is populated only when the field can repeat. Otherwise it should be left blank.

1.7.4 Field DefinitionsStyle “Heading 4” 1.5.10.0 starts with zero to ensure that “field definitions” after a HL7 Attribute Table are automatically renumbered. Where a zero-numbered heading is not desired, hide it with Format -> Font -> Hidden.

The Field Definition heading now consists of 5 components:

1) Section heading number: 3.3.2.3 (automatically generated by Word)

2) Element name: PID-3

3) Element description: Patient Identifier List (Use Title Case)

4) Element data type: (CX)

5) Unique data element identifier: 00106

The 5 heading components are separated by 3 spaces each. The complete heading looks as follows:

3.3.2.3 PID-3 Patient Identifier List (CX) 00106

1.7.5 Field Component DefinitionWhenever a data element consists of components, they are defined first within the description. This definition is done in a paragraph like form. This definition also applies for subcomponents.

Components: <identifier (ST)> ^ <text (ST)> ^ <name of coding system (ST)> ^ <alternate identifier (ST)> ^ <alternate text (ST)> ^ <name of alternate coding system (ST)>

Components

The component definition, i.e. the list of components, is not repeated within each field definition since this functionality can be reached by hyperlinking! This change reduces drastically the amount of pages necessary for printing.

1.7.6 Data Type Component TableThe components which make up a data type are specified in form of a table like segments or real tables.

Page 12 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 13: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

Component Table Caption

Component Table Header

Component Table Body Bookmark (“DTCE”) Index information

Hyperlink to “ST”

HL7 Component Table - CE – coded element{XE “HL7 Component Table - CE ” }

SEQ LEN DT OPT TBL# COMPONENT NAME COMMENTS SEC.REF.

1 ST R Identifier

2 ST O Text

3 IS R 0396 Name Of Coding System

4 ST O Alternate Identifier

5 ST O Alternate Text

6 IS O 0396 Name Of Alternate Coding System

Length: 250

Example:|F-11380^CREATININE^I9^2148-5^CREATININE^LN|

The header is shaded 10%.

Columns 6 and 7 are left justified.

The attribute table grid lines are ¾ points, and the border is a dual ¾ point line.

Within the comments column there is no hint whether this component is itself a complex data type. The user can find out by checking the underlying data type. Within the narrative a hint (note) can be found to give an indication the data type which embeds the current one. But this should only apply to sparsely use data types.

1.7.7 Data Type Component DefinitionStyle “Heading 4” 1.5.10.0 starts with zero to ensure that “component definitions” after a HL7 Component Table are automatically renumbered. Where a zero-numbered heading is not desired, hide it with Format -> Font -> Hidden.

The Component Definition heading now consists of 4 components:

1) Section heading number: 3.3.2.3 (automatically generated by Word)

2) Component name: CE.1

3) Component description: Identifier (Use Title Case)

4) Component data type: (ST)

The 4 heading components are separated by 3 spaces each. The complete heading looks as follows:

3.3.2.3 CE.1 Identifier (ST)

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 13Draft 34 Aug. 2004

Page 14: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

1.7.8 Table DefinitionsWhenever a table is referenced within a field description the first time (according to the sequence of chapters) the corresponding values have to be defined in form of a table. If no values can be identified this table should contain one entry saying “no suggested values”.

1.7.8.1 General rules

Tables with double borders are normative, tables with single borders are user-defined.

Each table consists of a caption, a header and a body.

The header part is shaded.

Table structures are to be inserted in the standard, even if values have not been determined.

1.7.8.2 HL7 Tables

HL7 Table Caption

HL7 Table Header

HL7 Table Body Bookmark (“HL70103”) Index information

HL7 Table 0103 – Processing ID{XE “HL7 Table: 0103 - Processing ID ” }Value Description Comment

01 Patient request02 Physician order03 Census management

Note the index field in the HL7 table caption above.

The HL7 table caption line must be bookmarked with the 7-character table ID (ie. "HL70103", see 2.8.3.3) for referencing by all references (ie. HL7 Table 0103 – Processing ID) to that table within the same chapter.

The header is shaded 10%.

HL7 table grid lines are ¾ points, and the border is a dual ¾ point line.

As the width of HL7 tables changes, they are centered.

Note: HL7 Table 0136 - Yes/no Indicator should not be repeated with different values, rather the interpretations should be given in a “normal list” style. (This avoids the duplication of HL7 table 0136 with differing values.) Example:

Definition: This field indicates whether or not the patient’s identity is known. Refer to HL7 Table 0136 - Yes/no indicator for suggested values. Y the patient’s identity is unknown

N the patient’s identity is known

1.7.8.3 User-defined Tables

User Table Caption

User Table Header

User Table Body Bookmark (“HL70062”) Index information

Page 14 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 15: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

User-defined Table 0062 - Event reason{XE “ User-defined Table: 0062-Event reason ” }

Value Description Comment01 Patient request02 Physician order03 Census management

Note the index field in the User Table caption above.

The user-defined table caption line must be bookmarked with the 7-character table ID (ie. "HL70062", see 2.8.3.3) for referencing by all references (ie. User-defined Table 0062 – Event Reason) to that table within the same chapter.

The header is shaded 10%.

User Table grid lines are ¾ points, and the border is a 1½ point line.

As the width of User-defined tables changes, they are centered.

It is a requirement that all user-defined tables are included in a chapter, even if values have not been determined. The tables should be formatted the same as any other user-defined table, but there should be only one "User Table Body" row, which should read: "No suggested values defined."

1.7.8.4 Imported Tables

Imported Tables are formatted like HL7 tables.

1.7.8.5 External Tables

Imported Tables are formatted like HL7 tables.

1.7.8.6 Other Tables

All other tables use the styles

Other Table Caption

Other Table Header

Other Table Body

1.7.9 Table Value DefinitionsWe propose the following notation:

The basic structure of a table is value in the left-most column and the description in the 2nd-leftmost column. Only one value pair per row is allowed. If comments, etc. are required, these can be entered in additional columns on the right.

A range of values is indicated by three dots separated by spaces from the first and last value: <first value> … <last value>A dash ("-") seems to be a bad solution because it may indicate a negative value.

Different values with the same description can be separated by commas, eg. NO, NIL, NONE.

If a table is used more than once, only the original one should maintain the valid values.

If the same table, i.e. one with the same number occurs somewhere else and this one should reflect the same values, a reference to the other table should be set by defining no value and the text "see chapter n.n.n" in the second column.

If no values can be defined, use the statement "no suggested values".

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 15Draft 34 Aug. 2004

Page 16: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

1.7.10 NotesNote

Note: The official title of UB is “National Uniform Billing Data Element Specifications.” Most of the codes added came from the UB-92 specification, but some came from the UB-82.

The “note” box is aligned with the text indentation. The bolded initial text "Note:" is followed by two spaces after the colon.

The “Note” style has 4 points before and 3 after each paragraph.

Another note style with indentation:

Note Indented

Note: The official title of UB is “National Uniform Billing Data Element Specifications.” Most of the codes added came from the UB-92 specification, but some came from the UB-82.

1.7.11 HyperlinksThree different styles for hyperlinks are necessary. Otherwise the properties for the styles must be overwritten by hand:

Used Style Used in Required attributes

HL70062 Hyperlink Table Attribute Tables (Segment Definition) Arial, 8 pts

HL70062 Hyperlink Text normal Text Times New Roman, 10 pts

HL70062 Hyperlink Message Tables (Message Definition) Courier New, 8 pts

The hyperlinks are valid for all sorts of references.

1.7.11.1 Referencing Fields

The standard method of referencing a segment field in a chapter is by its segment code, sequence number and its full text name. The code and sequence number are separated by a hyphen as are the sequence number and name. The reference is to be italicized, and the name is in title case. The style "Hyperlink Text" is provided therefore. Example: PID-3 - Patient Identifier List. On occasion, if the data element is well understood in context, the code may appear by itself and not italicized. Example: PID-3.

The standard method of referencing a segment field component in a chapter is by its segment code, sequence number, component sequence and its full text name. The code and sequence number are separated by a hyphen; the sequence number and the component sequence are separated by a period. The component sequence number and name are separated by a hyphen. The reference is to be italicized, and the name is in title case using "Hyperlink Text". Example: PID-3.2 – Check Digit. On occasion, if the data type component is well understood in context, the code may appear by itself and not italicized. Example: PID-3.2.

1.7.11.2 Referencing Data Types

See Bookmark procedure for setting a Bookmark in the caption. The name of the bookmark should be "DT" followed by the name of the data type.

The standard method of referencing a data type in a chapter is by its code followed by its full text name. The reference is to be italicized, and the name is in title case. To achieve this aim the style "Hyperlink Text" should be used. Example: CNE Coded With No Exceptions. On occasion, if the data type is well understood in context, the code may appear by itself. Example: CNE.

Page 16 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 17: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

The standard method of referencing a data type component in a chapter is by its code, sequence number, and its full text name. The code and sequence number are separated by a period. The reference is to be italicized, and the name is in title case. Here the same style should be used. Example: CNE.3 Name of Coding System. On occasion, if the data type component is well understood in context, the code may appear by itself. Example: CNE.3.

1.7.12 Examples for messagesIf an example for a message is necessary to illustrate the meaning of a message the style “Example” should be used.

Example

MSH|.|..|...EVN|..|..|...PID|||..........

Examples and use cases should be placed as close to the relevant chapter section as possible.

1.7.13 Other ExamplesSome chapters require other examples like message, attribute, HL7 or user-defined tables. For that purpose 4 additional styles are available, which can be used instead of the header. It has the same name, but with the addition “Example”:

Attribute Table Header Example

Msg Table Header Example

HL7 Table Header Example

User Table Header Example

1.7.14 Page HeadersThe header line consists of a ¾ point border line below. It merely names the document.

1.7.14.1 First Page Headers

The first page does not have a header.

1.7.14.2 Odd Page Headers

Chapter 3: Patient Administration

The number and name of the chapter is shown in the page header, right justified

1.7.14.3 Even Page Headers

Chapter 3: Patient Administration

The number and name of the chapter is shown in the page header, left justified.

1.7.15 Page FootersFooter lines consist of two lines. The first lists a copyright statement and the page number with total number separated by a dash. The second line contains the status of this document as well as the issue date.

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 17Draft 34 Aug. 2004

Page 18: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

1.7.15.1 Odd pages and first page

The footer consists of different parts:

1) the copyright notice including the year and "All rights reserved."

2) a reference to Health Level Seven, Inc.

3) the version number

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 3-5Ballot May 2002

4) the release status (i.e. one of: “Draft”, “Ballot”, “Final Standard”)

5) the chapter and page number formatted as “<chapter>-<page>”.

6) the month and year of release, Yk2 compliant and internationally readable.

1.7.15.2 Even pages

Page 3-6 Health Level Seven, Version 2.5 © 2002. All rights reservedMay 2002 Ballot

Introducing additional document properties, which can be changed by "File -> Properties", no more changes to footer is necessary. These properties maintain the variable information for the footer. Maintaining them this way requires only a single change without updating all footers individually. This is especially helpful when having more than one section (e.g. portrait and landscape formats).

The corresponding field function is called "DOCPROPERTY".

The dialog box will look as follows:

Page 18 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 19: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

You can insert references to the document property as follows:

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 19Draft 34 Aug. 2004

Page 20: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

The footer itself now contains only references. Therefore, it is NOT necessary to update the footer any more. The same can be achieved by modifying the document properties.

1.7.15.3 Page Numbering

The chapter number should be included into the page numbering. This feature can be enabled via "Insert -> Page Numbers":

The format button opens a new dialog, where the chapter numbers can be included into the page numbering.

1.7.16 Setting BookmarksWord gives only limited help on how to set bookmarks. The following list might assist you:

1) Highlight the text that you want to bookmark

2) Go to the Insert->Bookmark

3) Enter the name of your bookmark

4) Select ADD

Page 20 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 21: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

5) The text will appear in brackets [ ] when you have the “bookmark view” or “all hidden characters” turned on

1.8 LISTSFor listing items we provide four different styles:

“Normal List”

a) “Normal List Alpha”

1) “Normal List Numbered”

I) “Normal List Roman”

“Normal List Bullets”

Here is some technical information on lists:

List Gallery

Normal -

Alpha Number 5

Numbered Number 2

Roman Number 7

Bullet Bullet 7

Lists should be standardized in its usage. Alpha, numbered and roman lists represents a hierarchy, also in their indentation. Therefore, whenever possible try to use alpha lists first.

Use Normal List Alpha under the following circumstances:

The items occur in a definite sequential order

A large number of items are being enumerated.

Use Normal List Numbered under the following circumstances:

Steps in a procedure or process are being enumerated

Lists embedded within alpha lists

Use Normal List Bullets under the following circumstances:

Fewer than 6 (or perhaps 7 or fewer) items are listed and they do not meet above criteria

Avoid using the Normal List. Consider using a table instead.

Avoid deeply indented lists.

Please the procedures section for trouble shooting.Health Level Seven, Version 2.5 © 2002. All rights reserved Page 21Draft 34 Aug. 2004

Page 22: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

1.9 INDEXINGAnother important point for documentation is the generation of an index. For this a lot of additional information is necessary. To get a consistent result some rules have to be established how to formulate such entries.

In order not to interrupt the parsing process this information must be placed at specific points within the text.

The use of a colon (“:”) build up groups like a list of all tables.

1.9.1 Data Types1) „Data Types:“ + <Data Type> + “ - “ + <Data Type Description>

2) <Data Type> + “ - “ + <Data Type Description>

3) <Data Type Description>

1.9.2 Data ElementsThe name of the data element is repeated within the title.

1.9.3 SegmentsWithin the title three different entries are necessary:

1) <Segment Identifier>

2) “Segments:” + <Segment Identifier>

3) <Name of the segment> + “ (“ + <Segment Identifier> +”)”

1.9.4 Attribute TablesThe index information must be added at the end of the paragraph (i.e. line).

1) <Segment Identifier>

2) “HL7 Attribute Table:“ + <Segment Identifier>

1.9.5 Events1) <Event description>

2) “Events:” + <Event Code>

1.9.6 Tables1) “Tables: User-defined or HL7:” + <Table No.> + “ - “ + <Table description>

2) <Table description>” + “ (“ + <Table No.> +”)”

1.9.7 Message Types1) <Message Type>

Page 22 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 23: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

2) “Message Types:” + <Message Type>

1.10 CONFORMANCE STATEMENTSConformance Statements are a new construct in version 2.4.

Three different conformance statements do exist:

Query with tabular response

Query with segment pattern response

Query with display response

Every conformance statement consists of several distinct parts identified within the next section.

1.10.1 Distinct Parts of a Conformance StatementThe numbers within the right three columns specify the sequence order of the part within the conformance statement.

No. Part Tabular response

Segment pattern response

Display response

1 Introduction (= main table conformance statement) 1 1 1

2 Query grammar 2 2 2

3 Response grammar 3 3 3

4 QPD input parameter specification 4 4 4

5 QPD input parameter field description and commentary 5 5 5

6 Output specification and commentary 6 6

7 Virtual table 7

8 RCP Response Control Parameter Field Description and Commentary 8

1.10.2 Formatting the different parts of a conformance statement with styles Some fields are divided into two parts, i.e. the row now contains more cells

A style is assigned to each field

Some rows are inserted due to layout

Some fields are spread over separate rows due to storage reasons for the database

The applied styles are inserted into the text and marked in red.

Some rows can be repeated as often as necessary. These rows are marked by a red arrow on the right side.

The table border is a dual ¾ point line. The grid lines are ¾ points single line.

1.10.2.1 Introduction

Conformance Statement (Qry Table Caption)Health Level Seven, Version 2.5 © 2002. All rights reserved Page 23Draft 34 Aug. 2004

Page 24: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

Query Statement ID: Q31 (Qry Table ID)

Type: Query (or Publish) (Qry Table Type)

Query Name: Dispense History (Qry Table Name)

Query Trigger (= MSH-9): QBP^Q11^QBP_Q31 (Qry Table Trigger Query)

Query Mode: Both (Qry Table Mode)

Response Trigger (= MSH-9): RSP^K31^RSP_K31 (Qry Table Response Trigger)

Query Characteristics: Returns response sorted by Medication Dispensed unless otherwise specified. (Qry Table Characteristics Query)

Purpose: Find medications dispensed between specified date range for specified medical record numbers (Qry Table Purpose)

Response Characteristics: Returns response sorted by Medication Dispensed unless otherwise specified. (Qry Table Characteristics Response)

Based on Segment Pattern: RDS_O01 (Qry Table Segment Pattern)

Response Control Characteristics: [RCP segment options go here] (Qry Table Response Control Characteristics)

RCP Constraints: (Qry Table RP Constraints)

Modify Indicator: (Qry Table Modify Indicator)

1.10.2.2 Query Grammar

The query grammar is exactly the same as any normal message definition. This is especially true for the used styles. If a message should be used, which is defined somewhere else no additional definition is required because the definition in the main table refers to it.

Please see section 1.5.2.

1.10.2.3 QPD Input Parameter Specification

Field Seq

Field Name (Qry Table Input Header)

Key/Search

Sort

LEN TYPE Opt

Rep

Match Op

TBL Segment Field Name

LOINC or HL7 Code

Element Name

1 PatientList (Qry Table Input)

S Y 20 CX O PID-3 Patient Identifier List

2 MedicationDispensed

S Y 100 CE O = RXD-2 Dispense/Give Code

3 DispenseDate.LL

S Y 26 TS O >=

RXD-3 Date/Time Dispensed

4 DispenseDate.UL

S Y 26 TS O <=

RXD-3 Date/Time Dispensed

5 SortControl SRT O NNNN

1.10.2.4 QPD Input Parameter Field Description and Commentary

Input Parameter (Qry Table Input Param Header)

Comp. Name

DT Description

PatientList (Qry Table Input Param)

CX

Components: <ID (ST)> ^ <check digit (ST)> ^ <code identifying the check digit scheme employed (ID)> ^ < assigning authority (HD)> ^ <identifier type code (IS)> ^ < assigning facility (HD)>The combination of values for PatientID, and PatientIDAssigningAuthority, are intended to identify a unique entry on the PATIENT_MASTER table. The

Page 24 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 25: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

Input Parameter (Qry Table Input Param Header)

Comp. Name

DT Description

PatientIDTypeCode is useful for further filtering or to supply uniqueness in the event that the assigning authority may have more than one coding system. (The PATIENT_MASTER table contains a constraint that prevents multiple patients from being identified by the same combination of field values.) This PATIENT_MASTER entry will be searched against on the PHARMACY_DISPENSE_TRANSACTION table to retrieve the rows fulfilling the query conditions.If this field is not valued, all values for this field are considered to be a match.

ID ST If this field, PID.3.1, is not valued, all values for this field are considered to be a match.

Assigning Authority

HD If this field, PID.3.4, is not valued, all values for this field are considered to be a match.

1.10.2.5 Response Grammar

The response grammar is much like any normal message definition, except the three additional columns. Please see section 1.5.2.

If a conformance statements can make use of response message definition which is defined somewhere else, no additional specification is necessary.

1.10.2.6 Output specification and commentary

If the message contains a DSP segment for displaying data it looks like the next table. Please consider that each line is represented by one row.

The data will display as follows: (Q13) (Qry Table DisplayLine Header)DSP|| GENERAL HOSPITAL – PHARMACY DEPARTMENT DATE:mm-dd-yy (Qry Table DisplayLine)DSP|| DISPENSE HISTORY REPORT PAGE nDSP||MRN Patient Name MEDICATION DISPENSED DISP-DATEDSP||XXXXX XXXXXx, XXXXX XXXXXXXXXXXXXXXX mm/dd/ccyy…DSP|| << END OF REPORT >>

1.10.2.7 RCP Response Control Parameter Field Description and Commentary

Field Seq

Name Component Name

LEN

DT Description

1 Query Priority 1 ID D(eferred) or I(mmediate). Default is I2 Quantity Limited Request 10 CQ

Quantity NM Number of unitsUnits CE CH, LI, PG, RD. Default is LI.

3 Response Modality 60 CE

1.10.2.8 Virtual Table

A virtual is identical to the input parameter specification. In order to distinguish both, please use different styles:

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 25Draft 34 Aug. 2004

Page 26: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

Column Name (Qry Table Virtual Header)

Key/Search

Sort

LEN TYPE Opt

Rep Match Op

TBL Segment Field Name

LOINC or HL7 Code

Element Name

PatientList (Qry Table Virtual)

S Y 20 CX O PID-3 Patient Identifier List

MedicationDispensed

S Y 100 CE O = RXD-2 Dispense/Give Code

DispenseDate.LL

S Y 26 TS O >=

RXD-3 Date/Time Dispensed

DispenseDate.UL

S Y 26 TS O <=

RXD-3 Date/Time Dispensed

SortControl SRT O NNNN

1.11 OTHER EDITING TASKS AND ISSUES Ensure any new or changed datatypes are communicated to the C/Q TC for inclusion in

Chapter 2.

Check if any changes to the datatypes are required to any other chapters.

Check example messages for compliance with any changes made to the chapter content.

Any new triggers must be included in Table 0354 (Message Structure, the 3rd component of MSH-9) in Chapter 2.

Any new style elements introduced into the standard must be checked with the Publishing Committee to ensure a uniform layout and future integration into the database.

Page 26 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 27: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

2.HL7 STYLE SHEET2.1 AUTHORIZED PARAGRAPH STYLES FOR THE HL7-2 TEMPLATE

Style Name Attributes(Where none listed, follows base style)

Font Size Attr. Kern Line Spacing

Space Before

Space After

Justifi-cation

Other Indent Tabs Base Style

Style for following Paragraph

Attribute Table Body

Arial 8 pt 8 pt 9 pt 2 pt 1.5 pt Centered Normal

Attribute Table Caption

Times New Roman 10 pt 9 pt 3 pt Centered Keep with next

Attribute Table Body

Attribute Table Header

Arial 8 pt Bold 2 pt 1 pt Centered Keep with next

Attribute Table Caption

Attribute Table Header Example

Attribute Table Header

Components Courier New 8 pt 7 pt 8 pt 6 pt 6 pt Keep lines together

Left 0.75”Hanging 0.75”

Normal

Component Table Body

Arial 8 pt 8 pt 9 pt 3 pt 0 pt Centered Normal

Component Table Caption

Arial 10 pt 9 pt 3 pt Centered Keep with next

Component Table Body

Component Table Arial 8 pt Bold 2 pt 1 pt Centered Keep with Compone

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 27Draft 34 Aug. 2004

Page 28: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

Style Name Attributes(Where none listed, follows base style)

Font Size Attr. Kern Line Spacing

Space Before

Space After

Justifi-cation

Other Indent Tabs Base Style

Style for following Paragraph

Header next nt Table Caption

Example LinePrinter (no proofing)

8 pt 8.5 pt 0 pt 0 pt Keep lines together

Left 1.3”Hanging 0.25”

Normal

Footer Arial 8 pt 0 pt 0 pt 6.5” right flush

9.5” right flush

Normal

Footnote text Arial 8 pt 10 pt Hanging 0.25” 0.25 Normal

Header Arial Bold 10 pt 0 pt 18 pt Border: bottom (single solid line); Border spacing: 1 pt

6.35” right flush

Normal

Heading 1 Right Times New Roman 36 pt bold 36 pt 12 pt Flush right

None Heading 1

HL7 Table Body Arial 8 pt 1 pt 0.5 pt Normal

HL7 Table Caption

Times New Roman 9 pt 3 pt Centered Keep with next

HL7 Table Body

HL7 Table Header Arial 8 pt Bold 2 pt 1 pt Centered Keep with next

HL7 Table Caption

HL7 Table Header Example

HL7 Table Header

Page 28 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 29: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

Style Name Attributes(Where none listed, follows base style)

Font Size Attr. Kern Line Spacing

Space Before

Space After

Justifi-cation

Other Indent Tabs Base Style

Style for following Paragraph

Msg Table Body Courier New 8 pt single 0 pt 0 pt Normal

Msg Table Caption

Times New Roman 9 pt 0 pt 3 pt Keep with next

Msg Table Body

Msg Table Header Courier New 8 pt Bold, Underline

2 pt 1 pt Keep with next

Msg Table Caption

Msg Table Header Example

Msg Table Header

Normal Times New Roman 10 pt 10 pt single 0 pt 6 pt Flush left Widow /orphan controlOutline level body text

Normal Indented “ “ “ 0 pt 6 pt “ “ Left 0.5” Normal

Normal List “ “ “ 0 pt 6 pt “ “ Left 0.5” Normal

Normal List Alpha

“ “ “ 6 pt 6 pt “ Numbered (alpha):a), b), c)

Left 0.7”Hanging 0.2”

.95” left Normal Normal List Alpha

Normal List Numbered

“ “ “ 6 pt 6 pt “ Numbered (arabian numerals)1), 2), 3)

Left 0.9”Hanging 0.2”

Normal Normal List Numbered

Normal List Roman

“ “ “ 6 pt 6 pt “ Numbered (roman numerals)i), ii), iii)

Left 1.4”Hanging 0.3”

Normal Normal List Roman

Normal List Bullets

“ “ “ 6 pt 6 pt “ Bulleted Left 0.7”Hanging 0.25”

Normal Normal List

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 29Draft 34 Aug. 2004

Page 30: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

Style Name Attributes(Where none listed, follows base style)

Font Size Attr. Kern Line Spacing

Space Before

Space After

Justifi-cation

Other Indent Tabs Base Style

Style for following Paragraph

Bullets

Note Arial 9 pt 8 pt 4 pt 3 pt Border single solid line ¾ pt line width

Left 0” 0.5” left1” left

Normal

Note Indented Arial 9 pt 4 pt 3 pt Border single solid line ¾ pt line width

Left 0.5” Note Normal Indented

Other Table Body

Other Table Caption

Other Table Header

TOC1 Arial 12 pt Bold, all caps

18 pt 0 pt 0.5” left6.5” right flush

Normal

TOC2 Arial 10 pt Bold, all caps

6 pt 6 pt Left 0.14” 6.5” right flush

TOC1

TOC3 Arial 10 pt Bold, small caps

0 pt 0 pt Left 0.28” 6.5” right flush

TOC2

TOC4 Arial 9 pt 0 pt 0 pt Left 0.42” 6.5” right

TOC3

Page 30 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 31: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

Style Name Attributes(Where none listed, follows base style)

Font Size Attr. Kern Line Spacing

Space Before

Space After

Justifi-cation

Other Indent Tabs Base Style

Style for following Paragraph

flush

TOC5 0 pt 0 pt Left 0.56” 6.5” right flush

TOC4

TOC6 0 pt 0 pt Left 0.69” 6.5” right flush

TOC5

TOC7 0 pt 0 pt Left 0.83” 6.5” right flush

TOC6

TOC8 0 pt 0 pt Left 0.97” 6.5” right flush

TOC7

TOC9 0 pt 0 pt Left 1.11” 6.5” right flush

TOC8

User Table Body Arial 8 pt 1 pt 0.5 pt Normal

User Table Caption

Times New Roman 10 pt 9 pt 3 pt Keep with next

0.63” Normal

User Table Header Arial 8 pt Bold 2 pt 1 pt Centered Keep with next

Normal

Heading 1 Times New Roman 36 pt Bold 14 pt 18 pt 6 pt Flush right

Keep with nextLevel 1 outline numbered.Follow with nothing.

None None Normal Normal

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 31Draft 34 Aug. 2004

Page 32: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

Style Name Attributes(Where none listed, follows base style)

Font Size Attr. Kern Line Spacing

Space Before

Space After

Justifi-cation

Other Indent Tabs Base Style

Style for following Paragraph

Heading 2 Arial 14 pt Bold, all caps

Single 18 pt 3 pt Keep with nextLevel 2 outline numbered.Follow with tab.

Hanging 0.7” 0.7” left Heading 1 Normal

Heading 3 Arial 12 pt Bold 12 pt 3 pt Keep with nextLevel 3 outline numbered.Follow with tab.

Hanging 0.7” 0.7” left Heading 2 Normal Indented

Heading 4 * Arial 10 pt 6 pt 3 pt No widow /orphanKeep with nextLevel 4 outline numbered.Follow with tab.

Hanging 0.7” 0.7” left Heading 3 Normal Indented

Heading 5 Arial 10 pt Italics 6 pt 3 pt Keep with nextLevel 5 outline numbered.Follow with tab.

Hanging 0.7” 0.7” left Heading 4 Normal Indented

Heading 6 Arial 10 pt Italics Hanging 0.7” Heading 5

Page 32 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 33: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

Style Name Attributes(Where none listed, follows base style)

Font Size Attr. Kern Line Spacing

Space Before

Space After

Justifi-cation

Other Indent Tabs Base Style

Style for following Paragraph

Heading 7 Arial 10 pt italics Hanging 0.7” Heading 6

Style “Heading 4” N.N.N.0 starts with zero to ensure that “field definitions” after a HL7 Attribute Table are automatically renumbered. Where a zero-numbered heading is not desired, hide it with Format -> Font -> Hidden.

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 33Draft 34 Aug. 2004

Page 34: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

2.1.1 Style Name NotesStyle “Heading 4” N.N.N.0 starts with zero to ensure that “field definitions” after a HL7 Attribute Table are automatically renumbered. Where a zero-numbered heading is not desired, hide it with "Format -> Font -> Hidden".

2.1.2 FontWhere set: Format/Style/Modify/Font

2.1.3 KernWhere set: Format/Style/Modify/Font/Character Spacing

2.1.4 Line SpacingWhere set: Format/Style/Modify/Paragraph/Indents and Spacing/Spacing:Line Spacing box

2.1.5 Space BeforeWhere set: Format/Style/Modify/ Paragraph/Indents and Spacing/Spacing:Before box

2.1.6 Space AfterWhere set: Format/Style/Modify/ Paragraph/Indents and Spacing/Spacing:After box

2.1.7 JustificationWhere set: Format/Style/Modify/ Paragraph/Indents and Spacing/Alignment

2.1.8 OtherThis includes notes for text control, borders and shading

Text control Where set: Format/Style/Modify/paragraphs/Line and Page Breaks

Border control Where set: Format/Style/Modify/Border

2.1.9 IndentWhere set: Format/Style/Modify/ Paragraph/Indents and Spacing/Indentation: Left

Where set: Format/Style/Modify/ Paragraph/Indents and Spacing/Indentation: Special and By

2.1.10 TabsWhere set: Format/Style/Modify/Tabs

2.1.11 Base StyleWhere set: Format/Style/Modify/Based On

2.1.12 Style for Following ParagraphWhere set: Format/Style/Modify/Style for Following Paragraph

Page 34 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 35: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

2.2 AUTHORIZED CHARACTER STYLES FOR THE HL7-2 TEMPLATE

Style Name Attributes (Where none listed, follows Normal)

Font Size Other Base Style

Default Paragraph Font Times New Roman 10 pt -

Hyperlink Courier New 8 pt Default Paragraph Font

Hyperlink Text Times New Roman 10 pt Italics Hyperlink

Hyperlink Table Arial 8 pt Hyperlink

Reference Attribute Times New Roman 10 pt Hyperlink Text

Reference HL7 Table Times New Roman 10 pt Italics Hyperlink Text

Reference User Table Times New Roman 10 pt Italics Hyperlink Text

Reference Data Type Times New Roman 10 pt Italics Hyperlink Text

2.3 WITHDRAWN STYLES FOR THE HL7-2 TEMPLATE

Indent Normal Normal Indented

MsgHeader Msg Table Header

MsgStructure Msg Table Body

Attribute Table Heading Attribute Table Header

Msg Table Heading Msg Table Header

2.4 LIST OF NEW STYLES FOR THE CONFORMANCE STATEMENTIndent: 0”

No tabs used.

Other: nothing special

Style Name Font Line Spacing

Space Before

Space After

Justification Base Style

Qry Table Caption Times New Roman 12pt bold

6 6 Centered Qry Table Header

Qry Table Characteristics Query

Arial 8pt 1 0,5 Qry Table Name

Qry Table Characteristics Response

Arial 8pt 1 0,5 Qry Table Name

Qry Table DisplayLine Courier New 8pt 1 0,5 Qry Table Name

Qry Table DisplayLine Header

Courier New 8pt 2 1 Qry Table Header

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 35Draft 34 Aug. 2004

Page 36: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

Style Name Font Line Spacing

Space Before

Space After

Justification Base Style

Qry Table Header Arial 8pt bold 2 1 Standard

Qry Table ID Arial 8pt 1 0,5 Qry Table Name

Qry Table Input Arial 8pt 1 0,5 Qry Table Name

Qry Table Input Header Arial 8pt bold 2 1 Qry Table Header

Qry Table Input Param Arial 8pt 1 0,5 Qry Table Name

Qry Table Input Param Header

Arial 8pt bold 2 1 Qry Table Header

Qry Table Mode Arial 8pt 1 0,5 Qry Table Name

Qry Table Modify Indicator

Arial 8pt 1 0,5 Qry Table Name

Qry Table Name Arial 8pt 1 0,5 Standard

Qry Table Purpose Arial 8pt 1 0,5 Qry Table Name

Qry Table RCP Arial 8pt 1 0,5 Qry Table Name

Qry Table RCP Header Arial 8pt bold 2 1 Qry Table Header

Qry Table RCP Constraints

Arial 8pt 1 0,5 Qry Table Name

Qry Table Response Trigger

Arial 8pt 1 0,5 Qry Table Name

Qry Table Response Control Characteristics

Arial 8pt 1 0,5 Qry Table Name

Qry Table Segment Pattern

Arial 8pt 1 0,5 Qry Table Name

Qry Table Trigger Query Arial 8pt 1 0,5 Qry Table Name

Qry Table Type Arial 8pt 1 0,5 Qry Table Name

Qry Table Virtual Arial 8pt 1 0,5 Qry Table Name

Qry Table Virtual Header Arial 8pt bold 2 1 Qry Table Header

Page 36 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 37: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

2.5 LIST OF COLUMN WIDTHS FOR ALL TABLESThis table reflects the widths (in inches) of the different tables.

Column

Table

1 2 3 4 5 6 7 8 9 10 11 12 13

Attribute Table 0.45 0.45 0.45 0.45 0.45 0.6 0.5 3 - - - - -

Component Table 0.45 0.4 0.5 0.4 0.5 2 1 0.7 - - - - -

HL7 Table ? ? ? - - - - - - - - - -

Msg Table 2 3 0.6 0.7 - - - - - - - - -

Qry Table 2 3.2 - - - - - - - - - - -

Qry Table Input 0.45 0.9 0.55 0.2 0.4 0.5 0.2 0.2 0.5 0.5 0.6 0.5 0.7

Qry Table Input Param 1.1 0.7 0.4 4 - - - - - - - - -

Qry Table DisplayLine 6 - - - - - - - - - - - -

Qry Table Virtual 1 0.6 0.2 0.4 0.5 0.2 0.4 0.5 0.5 0.65 0.7 0.6 -

Qry Table RCP 0.5 1.5 0.6 0.3 0.3 2 - - - - - - -

User-defined Table ? ? ? - - - - - - - - - -

2.6 LIST OF ADDITIONAL PROPOERTIES FOR ALL TABLESThis table reflects additional properties of the different tables.

Property

Table

LeftPadding/ inch

RightPadding/ inch

Attribute Table 0.05 0.05

Component Table 0.05 0.05

HL7 Table

Msg Table

Qry Table

Qry Table Input

Qry Table Input Param

Qry Table DisplayLine

Qry Table Virtual

Qry Table RCP

User-defined Table

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 37Draft 34 Aug. 2004

Page 38: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

2.7 REMARKS

Page 38 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 39: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

2.8 A NOTE ON HTML STYLE SHEETS

Larry devised a style sheet that uses SOME of the above styles, with suitable modifications, for applying to HTML documents. Copies of this style sheet can be found in the HTML subdirectories where the HTML copies of the Standards Guide and Implementation Guide are saved.

To imbed the style sheet into an HTML document, make sure it is copied into the same directory as that document. Then, just above the </head> tag, type the following sequence:

<link rel=“stylesheet” href=“style.css” type=“text/css”>

Styles for Heading 1-Heading 5 are in this sheet as modified -- since HTML does not support outline numbering, numbers must be manually added.

The HL7 style “Components” is incorporated into the HTML stylesheet as “definition.”

The HL7 style “Example” is incorporated into the HTML stylesheet as “defined term.” This has been modified to be in System font rather than LinePrinter, because the font the viewer sees it in depend on the fonts available on his machine; therefore Larry thinks it advisable to only use the most common fonts.

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 39Draft 34 Aug. 2004

Page 40: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

2.9 FORMATTING MACROS (STYLE FIXER)This part of this document contains the macros which help formatting the HL7 standard documents. These pages provide an easy access to the macros.

In order to make use of the macros you have to enable them during loading this file.

The macros operate on open files. Therefore the document(s) onto which these macros should be applied should be opened first.

Macro OverviewSequence Macro Name Comment Run

1 Adjust All Formats Once

2 Adjust Chapter Number once, if numbering is corrupted

3 Adjust Number Gallery I found this needs to be done manually. See section 2.8

once, if numbering is corrupted

4 Delete Unused Styles for old documents once

5 Convert Message Tables into New Format once

6 Add 3rd Column to Tables once

7 Format All Tables You will get an error if you do this one before Convert Message Tables into New Format

every time a table needs formatting

Format Reference Entries Use hyperlinking instead.

What table is this Get the table number of a marked table. This allows to run "format table" just for a single table

Go to specific table If you know the number of a (broken) table, e.g. as a result of formatting, you can use this macro to go there.

fix curly quote once to finish editing

2.9.1 Enabling MacrosIf you are not prompted to enable macros when opening this document, select Tools, Macro, Security and verify that your security level is not set to High (which automatically disables all macros). Medium makes Word ask you every time you are going to open a document which contain macros whether you trust them.

2.9.2 General RemarksIt is not such easy to do some auto-format an already formatted documents. We can try to format tables if an indication is available. We also can try to adjust the properties of styles according to the rules established by the publishing committee. But I can not guarantee that this will work in any case since Word has a built-in automatism which tries to correct the actions we execute.

Additionally some documents make intensive use of direct formatting, especially when creating numeric, alpha-numeric or bulleted lists without using the style “Normal List xxxx”.

Page 40 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 41: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

Another fact to mention is that these macros apply a huge amount of corrections. As a result an error may occur saying that Word is not able to keep track of all changes. A possible solution is to save the file to disc.

Formatting tables assumes that the tables are “real” tables with the same number of columns each row (except conformance statements). Furthermore all cells within the same column should have the same width. If this requirement is NOT acceptable please let me know. I can change that but it would increase computation time!

So, PLEASE execute these macros on safe copy of the document!

2.9.3 Adjust the properties of the stylesThis macro was generated by the help of “Get All Formats”. In contrast to it this one adjusts the properties according to the style guide.

Adjust

Double click here. Whenever such a button-like frame appears, it hides the macros which can be activated by double-clicking onto the text inside!

Currently the styles for lists do not adjust the numbering or bulleting due to problems with the rest of the styles! A lot of paragraphs are formatted directly so that such an approach surprisingly displays funny results.

2.9.4 Format all Tables within the documentThis macro formats all relevant tables. First of all the user is asked for the document to which the formatting should be applied. For this purpose a combo box will be displayed. After selecting the file out of the list a new dialog box will appear asking the user for the range of tables. Per default all tables are formatted, but the user can also reduce the set of tables. On ok the formatting rules will be applied to all the requested tables within this document.

Up to now I haven’t found a method to align the whole cell like it can be done by “Table->Mark whole table” and “center”, so this is left for manual correction. The correct rules are determined out of the formatting of the upper left cell of each table:

Format

This task will take up to 5 to 10 minutes to apply the rules to all tables!

2.9.5 ReferencesThe next macro provides a dialog which allows for modifying the reference entries. It starts with a combo box for selecting the document. Next a dialog will be shown which guides through the formatting process:

Format

This Macro applies the styles! We have decided to use hyperlinks for references. Therefore this macro will NOT produce the desired result.

If the necessary character styles are not available they will be created automatically.

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 41Draft 34 Aug. 2004

Page 42: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

The button “next” searches for the next text which corresponds to the format specified in the top frame (italics or bolded) and is not formatted as a reference (at least the left part of it). According to the text found the action to be performed will be selected automatically. The user has the opportunity to modify this selection by hand. On the one hand he can modify the action to be performed. On the other hand he can expand or shrink the selected text be the help of the four buttons at the top right corner of this dialog.

The button “apply” performs the specified modification of the styles on the selected text.

At this place it is important to mention that the styles are assigned to the exact selected text. Otherwise the usage of styles becomes worthless.

2.9.6 Adjust the numbering of the headingsThe numbering of the different chapters requires a manual adaptation of the corresponding properties. This macro asks for the chapter number.

Adjust

This macro currently does not adjust the tab stops. Therefor this macro should be applied before the following one.

2.9.7 Adjust the Number GalleryTo use lists (alpha, numeric or roman) requires to adjust the properties of the built-in galleries. It is possible to create own ones, but it seems to be too difficult to maintain them. This macro helps to adjust the number galleries 2, 5 and 7.

Adjust

2.9.8 Delete unused stylesThis macro deletes all styles which are not used an more.

Delete

This task will take up to 3 hours to check each paragraph separately! It would be quicker just to delete the styles, but we want to keep the layout information we have entered so far. This is the only solution if the old and the new style are used in parallel.

2.9.9 Convert message tables into 5 column formatThis macro should be used to convert the message tables into the five column format. It also reformats the table and assigns the correct styles as well as inserts the necessary headings.

The editor has to fill in the missing information by hand.

In case of the six column representation the column with the comments will be deleted. The column for the support indicator will be reused for the status information.

convert

Page 42 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 43: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

2.9.10 Move group name from 3rd column to 2nd

This macro moves the group name from the 3rd column to the 2nd, if there is no definition within the 2nd column. If the 3rd column now does not contain any valid values any more it must be removed by hand. Formatting the tables will then readjust the column width to the correct values.

If the 3rd column still hold values, they must be moved by hand. Normally it is forced by a non-empty cell in the 2nd column. You can insert a new row and move the brackets by hand. Running this macro again will then move the cell content.

move

2.9.11 Add 3rd column to tablesThis macro should be used to add a third column to the tables containing table values. It also reformats the table and assigns the correct styles as well as inserts the necessary headings.

The editor can now fill in the missing information (comments) by hand.

Add

2.9.12 Reformat Message tableThis and the next macro has been provided by Scott Robertson:

Well, this is my “standard,” segment groups are indented two spaces for each grouping. [{/{[ and }]/]} order is standardized. Segment identifiers within group line up. Unbalanced [/]/{/} are reported and stop at the point that the problem is noted (the actual problem will probably be somewhere above that point.)

Note: the result looks really ugly if you have tracking on. Accepting (or hiding) the changes shows the nice, consistent

Warning: this macro will remove any hyperlinking in the message structure

1) Place the insertion point in the message structure table to adjust (any column/row/cell)

2) Back in this document, double click on the shaded portion above

3) You will be asked to select the document

4) The message syntax will be adjusted to a standard form (left hand column of the message syntax table). While processing, the current message line will be displayed in the Status Bar at the bottom of the Work window.

Reformat

2.9.13 What table is this1) Place the insertion point in the table in question.

2) Back in this document, double click on the shaded portion above

3) You will be asked to select the document Health Level Seven, Version 2.5 © 2002. All rights reserved Page 43Draft 34 Aug. 2004

Page 44: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

4) The table number for the insertion point in that document will be determined and displayed in a dialog box (during the search, progress will be noted in the Status Bar at the bottom of the Word window

What

2.9.14 Goto a specific tableIt is almost not possible to select the current table. This macro should be used to jump to a specific table according to its number. By “Try and Error” one can approach the table he/she desires. The dialog provides to complete range. Please use the left field to enter the desired number.

go

2.9.15 Correct Curly QuotesThis macro should be used to replace the curly quotes by stright quotes. It should be applied to if the option for an automatic replacement has been on during editing.

Fix

The macro will change the quotes as follows:quote character replaced by comment

‘ 145 ' Single left curly quote

’ 146 ' Single right curly quote

‚ 130 ' Single low-9 quote

‛ Unicode 201B ' Single high-reversed-9 quote

“ 147 " Double left curly quote

” 148 " Double right curly quote

„ 132 " Double low-9 quote

2.9.16 Requirements to run the macrosRunning of the macros above requires VBA.

2.9.17 Manually Correcting StylesThe styles can be corrected by hand, too. Using “Format => Styles” displays a list of all used styles. Here you can modify the name of the styles by just typing in the correct name. Wherever the styles is used the new name is assigned.

2.9.18 Component Model WorkScott Robertson, Kaiser Permanente (Revised/Updated Wednesday, August 04, 2004)

The macros will create a Data Type document from Chapter 2 (part 2, with the data type definitions) and build a component model based upon the component table. A second macro will apply the component

Page 44 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 45: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

models to a target chapter, adding the component model between the header line and definition/narrative for each segment-field.

Create

Double-click on this to build the component models. You will be asked to select the Chap 2/Data Type Chapter to use as a source. The source file must be open in Word in order to select it.

Insert

Double click on this to insert the component models into a target chapter. You will be asked to select the Data Type Model source file (created above) and the target chapter. Both chapters must be open in Word in order to select them.

[another macro exists that has to be run on ch05 in addition to this macro, click.]

2.10 PROCEDURESThis section is intended to give some hints how to fight Word best.

2.10.1 Procedure for Troubleshooting Normal List Alpha

Clearing Number Gallery

Step ID Step Description Result Comment

1 After running the macros go to the first instance of Normal List Alpha in your document.

2 Highlight the first item and go to the Format tab. (You may optionally do a right click)

3 Select "Bullets and Numbering"

4 Select the Numbering tab 8 boxes will appear

5 Select each box, in turn, except for "None" and do "Reset".

6 Select the "lower case alpha" box and go to customize

7 On the "Customized Numbered List", set Number Position Aligned At to .7

8 Set Text Position Indent At to .9

9 Return to previous window and select "Okay" This should clear the "gallery"

10 Go to the next instance of your Normal Alpha List

11 If the style looks correct except for the number, select

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 45Draft 34 Aug. 2004

Page 46: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

Format -> Bullets and Numbering->

12 Select the correct box (lower case alpha) and select Restart Numbering

13 If the style was not correct in step 11, re-apply the style before going to step 13.

2.10.2 Troubleshooting styles that change erraticallyProblem: A change is manually applied to the Style. When the document is saved and then re-opened, the style change is lost.

Clearing Previous Templates

Step ID Step Description Result Comment

1 Select Tools/Templates and Add-Ins Templates and Add-Ins window will display

2 Inspect Document Template box. Delete HL73.dot if it is there.

HL73.dot was the template for the previous version.

3 Inspect the Automatically Update Document Styles indicator. It should not be activated.

4 Select okay If you later return to this window you may find that Word has assigned the normal.dot template. However, this does not seem to interfere. The important thing is that the Auto Update flag is de-activated.

5 Return to document and manually correct any styles that are not right.

In particular you may need to reset galleries. See table above.

2.10.3 Procedure for inserting a pictureThis procedure should work for pictures, diagrams or flowcharts.

Preparing and Inserting a Picture

Step ID Step Description Result Comment

1 Create and save the picture in the appropriate application, e.g., Visio

2 Open the chapter and go to the place you want to insert the picture.

HL73.dot was the template for the previous version.

3 Choose Insert/Object/Create From File Your visio file should be one of the choices

4 Open Your picture should display.

It should be visible in the normal view mode.

2.10.4 Troubleshooting the macro Format All Tables

Page 46 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 47: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

Format All Tables: Common Errors

Error ID Description Action Required Comment

4605 This command is not available

Go to Debug and read message

"ForegroundPatternColorIndex = wdAuto"

This statement seemed to be in the General Section; Format Tables in a subsection on formatting borders.

I just went on to the next macro assuming I would take care of the problem manually later.

Query tables in my chapter that do not conform to the standard formatting.

I just had to re-start the macro with a table number past the messed up table.

the table did not have columns with consistent widths.

This took a little more investigation. I finally found that some of the added rows had an extra column at the end that was set to a 0" width. I had to insert some more rows, move the cells contents I wanted to keep, and then delete the offending rows.

"Message Table does not contain 5 columns! Abort?"

Run "convert message tables into new format"

first?

5941 The requested member of the collection does not exist.

Go to Debug

2.10.5 Getting new data element or table numbers from HQSome changes require the introduction of new data element of table numbers. In order to continue the work temporary numbers as described above should be used. When knowing the amount of new numbers they can be obtained by HQ. Just send a request to Karen van Hentenryck asking for the amount of numbers you need, e.g. "I need 4 data element and 2 table number.". Karen will give the numbers as requested. You as the editor can assign the numbers to the new items. The final assignment should be sent to Karen in return for documentation purposes:

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 47Draft 34 Aug. 2004

Page 48: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

2.10.6 Procedure for de-activating “Replace straight quotes with smart quotes”.

De-activating “Replace straight quotes with smart quotes” feature

Step ID Step Description Result Comment

1 Select Tools/Autocorrect Autocorrect window will display

2 Select the Autoformat As You Type tab Autoformat As You Type window will display

3 Under “replace as you type:” deselect the option “straight quotes” with “smart quotes”

4 Select the Autoformat tab Autoformat window will display

5 Under “replace:” deselect the option “straight quotes” with “smart quotes”

6 Restore the parameters to their original state when you finish your editing session

Note that this procedure may have undesirable side effects in other documents the editor is accessing. The editor is cautioned that it may be desirable to restore the parameters to their original conditions when the chapter editing session is over.

2.10.7 Generating Table of Contents

TOC Generation

Step ID Step Description Result Comment

1 Select and delete the current TOC Inserting a new TOC gives you the option of deleting the old TOC; however, you will still need to select and accept the changes if tracking is turned on. Alternatively you can turn tracking off while carrying out this procedure. Once completed you will need to turn

Page 48 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 49: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

tracking back on.

2 From the Insert menu, select Index and Tables The TOC is constructed only in the English version of WORD

3 Select the Table of Contents menu

4 Select “From Template” as the format

5 Show Page Number should be checked

6 Right Align Page Number should be checked

7 Show levels should be set to (WHAT- 3?)

8 Tab Leader should be set to “dots”

9 Select the Options menu

10 Set Heading 2 to 1; set heading 3 to 2

11 etc

2.10.8 Fixing an Erratic Document MapWhile the Document Map, which can be toggled on/off at View:Document Map, is not essential for editing or working with the Chapters, it can be very useful. The Document Map lists the heading outline structure of the document in a panel on the left side of the document window (see figure). Clicking on an entry in the Document Map moves the insertion point to the beginning of that paragraph. In long, complex documents, the ability to view the heading structure and move quickly to a point in the document can be quite helpful.

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 49Draft 34 Aug. 2004

Page 50: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

At times the Document Map appears erratic, including entries that are not intentional parts of the heading structure. While the following figure includes one such entry, at times large sections of a document may be effected. Examining the Paragraph Formatting for the extraneous items will show that the Outline Level is, incorrectly, set for a value other than ‘Body Text.’ The exact cause is unclear as not consistent pattern has

not been discovered.

Manual repair can be done on a case-by-case basis, or broadly to the document. For case-by-case repair:

1) Click on an extraneous entry in the document map. This will bring the insertion point to the paragraph in question.

2) Select Format:Paragraph. On the Indents and Space tab, change Outline Level to “Body Text.” Note that Outline Level cannot be changed for paragraphs using any of the “Heading” styles.

3) Repeat for each extraneous entry.

A broader fix is possible for a document, but some care must be taken such that the Outline Level parameter is available. Selecting the entire document will lock out changes to Outline Level. (If the first

Page 50 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Document MapAn example of an erroneousdocument map entry

Page 51: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

paragraph selected has one of the “Heading” styles, then the Outline Level parameter will not be available.) To fix an erratic document map broadly:

1) Place the insertion point in the Co-chair table. (Any point near the beginning of the document that is not a heading or chapter title.)

2) Scroll to the bottom of the document and Shift-Click at the document end. This will select a majority of the document but will exclude the chapter title.

3) Select Format:Paragraph. On the Indents and Space tab, change Outline Level to “Body Text.” If Outline Level cannot be changed (is grayed-out) then re-select the document with a different starting point.

A macro that simplifies the Document Map fix has been developed. Clicking the following button will allow the user to select any document currently open in Word, which will then apply the document map fix to the entire document.

Fix

2.10.9 Automatic CapitalizationThe "Capitalize First Letter of Sentences" feature should be disabled. This will alleviate the problem of undesirable capitalization of the "i" in "i.e." and the "e" in "e.g.". It was determined that making additions to the Exceptions list was not a good solution to this problem because the exceptions will vary across users.

De-activating “Automatic capitalization” feature

Step ID Step Description Result Comment

1 Select Tools/Autocorrect Autocorrect window will display

2 Deselect "Capitalize first letter of sentences" feature Note that this procedure may have undesirable side effects in other documents the editor is accessing. The editor is cautioned that it may be desirable to restore the parameters to their original conditions when the chapter editing session is over.

2.11 QUESTIONS/ERRORSPlease let me know if there are questions or errors in applying these macros:

[email protected]

It would be helpful to submit the name of the macro and the name of the function and the line number – is possible.

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 51Draft 34 Aug. 2004

Page 52: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

2.12 HISTORY (LAST CHANGES AT THE END)Before #20 formatting column width for attribute and message tables

setting styles for conformance statements

additional macro to insert three columns into message table (for group names), i.e. converting into 6 column format

additional macro to insert fourth column to HL/ and user-defined tables for comment

additional macro to jump to a specific table (go to table)

formatting of TOC corrected

description of TOC added

formatting for component table styles added

#20

note to balloters

preparing documents for publishing

no component definition within the field definitions

filename conventions

additional guidelines and formats on lists

new macro for adjusting the necessary gallery entries

heading and title capitalization

#21

adjusting definition of message tables to fit the five column representation

adjusting the macro to convert message tables into the five column representation

adjusting the column width for message tables in the format table macro

#22

Joann’s comments added

Scott’s macros added

Increased font size for components and HL7 and User-defined table captions

#23

introduction on how to enable macros new page margins before/after paragraph spaces adjusted to normal, note and body of tables setting character styles

#24

change to wording for capitalization example for indented note also in style guidePage 52 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34

Page 53: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

adding (defining) 2 different styles for hyperlinks correction on HL7 and user-defined tables (wrong example) recommendation for numbering new tables and data elements

#25

a third style for hyperlinks style for TOC adjusted styles for TOC, header/footer, page setup applied to this document 4 additional styles for examples 4th column of messages a little bit wider adjustment to note style for margins and indentation

#26

add macro for moving group names from 3rd to 2nd column adjustment to formatting tables because the correct representation for message tables is 4 columns update on documentation for message tables update of styles in this document according to specification

#27

1.6.2: additional wording for segment group names 1.3.5: clarification on definitions 1.4.2, 2.9.7: procedure for generating table of contents (first wording) 2.9.6: procedure for de-activating “replace straight quote with smart quotes” add macros for curly quote management (AutoOpen and AutoClose) 2.8.15: add macro to replace curly quotes 2.9.8: fixing an erratic document map

#28

fixing problems with macros for curly quote management (Unicode character) 1.4.2: deleting steps to generate table of contents, it is in section 2.9.7 1.6.3: statement about placement of narratives relatively to the attribute table 1.4: grammar: new section; precedes old section 1.4 1.4.1: use of commas in series 1.4.2: a/an conventions 1.4.3: "version" language convention 1.4.4: ANSI approval language 2.9.9: Automatic Capitalization

#29

1.7.4: wording added for referencing data elements and their components 1.7.5: new title: field component definition 1.7.6: new title: data type (component table); new wording for referencing data types 1.7.7: new title: data type (component) definition 1.7.6: how to reference a data type (narrative still missing) 2.2: new style "Reference Data Type" 2.2: the reference styles must be based on "Hyperlink Text"

#30

1.7.3: conventions for repeatability 1.7.6: styles for hyperlinking data types

Health Level Seven, Version 2.5 © 2002. All rights reserved Page 53Draft 34 Aug. 2004

Page 54: HL7 V2.6 Style Guide · Web viewCo-Chair: Helen Stevens McKesson HBOC Co-Chair: Klaus D. Veil HL7S&S Editor: Frank Oemig Ringholm GmbH Integration Consulting Style Guide Contents

Chapter 1: HL7 V2.5 Style Guide

1.7.6: naming convention for bookmarking data types 1.7.6 and 1.7.7: new header 1.7.11.x: assemble all ways to reference something

#31

update all occurrences for version references to follow styleguide width of 3rd column of message tables set to 1" 1.7.9: wording "no suggested values" for empty tables

#33

1.7.15: maintenance of footer information 2.8.18: macros for creating component models

#34

2.6: additional properties for columns: left + right padding for attribute tables 1.7.8.3+4: Imported and external tables: formatting like HL7 tables 1.7.15: footer use document property 1.7.15.3: include chapter numbers into page numbering

#35

adjusted column widths for message tables eliminate special words in auto correction

Page 54 Health Level Seven, Version 2.5 © 2002. All rights reservedAug. 2004 Draft 34