This wiki has undergone a migration to Confluence found Here
<meta name="googlebot" content="noindex">

Difference between revisions of "V2 Lengths Fast Track"

From HL7Wiki
Jump to navigation Jump to search
Line 14: Line 14:
  
 
[[v2 lengths Open Discussion Document]]
 
[[v2 lengths Open Discussion Document]]
 +
[[v2 lengths Current wording]]
  
== Current Chapter two (v2.7) wording ==
+
== Candidate Recommendations ==
2.5.3.2 Length
 
Definition: Number of characters that one occurrence of the data field may occupy if populated.  The information is given in the form of the minimum and the maximum length separated by two dots, e.g. n..m.
 
  
In the segment attribute tables and the component tables this information is in a column labeled LEN.
+
See the [[v2 lengths Open Discussion Document]] for detailed discussion.
  
The length is not of conceptual importance in the abstract message or the HL7 coding rules. The length of a field is normative if given.  In the normative standard only a few elements exist requiring a predefined length. MSH-1 and MSH-2 are examples thereof. See section 2.B, "Conformance Using Message Profiles". Length definitions SHALL be specified for elements that represent primitive data types i.e. they have no components or sub-components.
+
* Do not report any lengths for composite data types or fields.
The following conventions have been applied:
+
* Document the use of a trancation character
 
+
* For each primitive data type, comment on whether truncation is fatal or merely dangerous
a) The length of the data field shall be expressed in form of two numbers – minimum and maximum length.  Those two numbers are separated by two dots e.g. n..m.
+
* document how length is determined (accounting for escape sequences etc)
 
+
* update documentation about length (incl interversion compatibility rules)
b) The length information is only specified if it is of normative interest.  According to practice length information may vary.  Therefore, it is left to the profile creator to specify the minimum and maximum length within an implementation profile.  See Chapter 2B.
 
 
 
c) If the (maximum) length needs to convey the notion of a Very Large Number, the number "*" should be displayed to alert the user. This convention takes the place of the practice in versions prior to 2.7 of abbreviating this expression as 64K or 65536.
 
 
 
d) Informative length definitions for a data field is expressed in form of two numbers in parenthesis e.g. (n..m).  This length can be used by an implementer as a reasonable default.
 
 
 
In v 2.7 lengths are being assigned to data types. See HL7 Table 0440 - Data Types.
 
 
 
 
 
== Current Chapter 2A wording ==
 
Beginning HL7 Version 2.5 maximum lengths are being assigned to data types.
 
 
 
The following rules apply to the setting of data type length:
 
 
 
a) The upper bound maximum length of a data type is the sum of:
 
 
 
1) The combined length of all components (including those not required) that are not mutually exclusive.
 
 
 
2) The combined length of the largest set of mutually exclusive components.
 
 
 
3) The combined length of message delimiters that are required to construct the field, based on Section 2.6-Message construction Rules.
 
 
 
b) The lower bound maximum length of a data type is the sum of:
 
 
 
1) The combined length of all required components that are not mutually exclusive.
 
 
 
2) The combined length of the largest set of mutually exclusive required components.
 
 
 
3) The combined length of message delimiters that are required to construct the field, based on Section 2.6-Message construction Rules.
 

Revision as of 21:49, 19 May 2008


This is a page of type Category:InM Open Action Items.

V2 Lengths Fast Track

Opened 20080515
assigned: Dave Shaver

Description

20080509 Phoenix WGM Motion: Constitute a "Fast Track" task force to work towards the best presentation and highest quality presentation for the next ballot using the paper Frank O. presented as a starting point. JD/Frank 8-0-0

20080529 Telcon: The task force will form on SKYPE as well as this wiki. The target date for a decision is June 16 InM Telcon.

General

v2 lengths Open Discussion Document v2 lengths Current wording

Candidate Recommendations

See the v2 lengths Open Discussion Document for detailed discussion.

  • Do not report any lengths for composite data types or fields.
  • Document the use of a trancation character
  • For each primitive data type, comment on whether truncation is fatal or merely dangerous
  • document how length is determined (accounting for escape sequences etc)
  • update documentation about length (incl interversion compatibility rules)