TIP: DataDirect XML Converters supports the Standard Exchange Format (SEF) standard, which allows you to define extensions to an EDI standard. See “Handling Proprietary EDI Formats” for more information.
Table 5-9. Properties for the EDI XML Converter
■ See “Autofilling Segments and Elements” for a list of which segments and elements are autofilled You can use one or more of the following values, concatenated with a "+" symbol (chr=REPLACE+FINNISH, for example):
■ REPLACE – replaces invalid characters with the character specified by the invalid property. An underscore ("_") is used if the invalid property is not specified. If REPLACE is not specified, the converter throws an error.
■ See “Explicit Character Overrides” for more information. See “Using Special Characters for Separators” for information about how to specify values for this property. See “Using Special Characters for Separators” for information about how to specify values for this property.
■ no – code list table values are not output as XML:
<ISA15><!--I14: Interchange Usage Indicator-->P</ISA15>
■ comment – adds the description as a comment. For example, <!--Production Data--> in the following code:
<ISA15><!--I14: Interchange Usage Indicator-->P<!--Production Data--></ISA15>
■ attribute – adds the description as an attribute:
<ISA15 decode="Production Data"><!--I14: Interchange Usage Indicator-->P</ISA15>
■ text – adds the code as an attribute, and the description as an element value:
<ISA15 value="P">Production Data</ISA15>
NOTE: The value property must also be set to attribute to generate this output.
■
■
■
■
■
■
■
■
■
■
■
■ See “XML Schema Generation” for more information about how this property affects XML Schema generation. See “HTML/XHTML Documentation Generation” for information about how this property affect HTML/XHTML documentation generation. This property is used only for schema generation. See “XML Schema Generation” for more information. See “Using Special Characters for Separators” for information about how to specify values for this property.
■ quotes – if the field has quotes, it is treated as empty (null value). For example, ’""’ is recognized as a marker for an empty field; otherwise, it is treated as missing, that is, there is no value in the data stream (use for HL7 2.3 and later). Creates a comment at the start of each element that includes the element’s name and number. For example, <!--I14: Interchange Usage Indicator--> in the following code:Turn off this and Comment code list (decode) to disable all comment generation. See “Using Special Characters for Separators” for information about how to specify values for this property. Allows you to specify which errors, if any, to ignore during XML conversion. The syntax for this field is ignore=n1,n2,n3.... For example, ignore=3,4,47 ignores errors 3, 4, and 47.This property can be used with the opt property to allow processing to continue even when the data stream is missing mandatory segments and data elements. This property is used only for schema generation. See “XML Schema Generation” for information on how this property affects XML Schema generation. See “HTML/XHTML Documentation Generation” for information about how this property affects HTML/XHTML documentation generation. Used with the chr =REPLACE property to specify which character is used to replace invalid characters. This property affects EDI-to-XML conversion and vice versa.See “Using Special Characters for Separators” for more information about how to specify values for this property. Controls how the converter manages the L value (traditionally means "local system" in HL7) if it is passed as a date, time, datetime, or timestamp.
■ header – The L value is replaced with the value of the MSH-7 element from the header.
■ current – The L value is replaced with the date and/or time that the message processing started.
■ error – The L value is treated as a syntax error.
■ pass – The L value is passed through unchanged. Allows you to prefix the name of a GROUP_no tag with the message name it appeared in. For example, <INVOIC>…<GROUP_1> becomes
< INVOIC >…< INVOIC _GROUP_1>. See “XML Schema Generation” for information about how this property affects XML Schema generation. See “HTML/XHTML Documentation Generation” for information about how this property affects HTML/XHTML documentation generation.NOTE: Normally, you do not need to specify this property, but it is automatically gathered from the incoming stream. If you want to force the incoming message to be processed as another message, you can use this property to specify the alternate message. This does not mean that the conversion will fail if the incoming message does not equal this value; rather, it forces the incoming message to be processed as if the incoming message were this value. For an example code that would stop processing if the incoming message was not the message that was expected, see ??????. Used when converting EDI to XML, and XML to EDI when the Add linefeeds between segments on write property (eol) is set to yes. See “Line Separator Values” for a list of commonly used values.
■ To specify segments, type the segment name followed by an asterisk (noautofill=UNB*, for example).
■ To specify elements, use the short form of the element name (noautofill=UIZ01, for example).See “Autofilling Segments and Elements” for a list of which segments and elements are autofilled NOTE: You can use opt=no with the ignore property to ignore errors for missing mandatory segments (errors 39 and 9), missing mandatory data elements (error 4), or both. For example, opt=no and ignore=39,9 allows processing to continue even if the data stream is missing mandatory segments. See “Using Special Characters for Separators” for information about how to specify values for this property. See “Using Special Characters for Separators” for information about how to specify values for this property. You can also use this property to add additional spaces or padding: no – message and group definitions are ignored, which can cause data to be grouped incorrectly (<GROUP_n> tags are never emitted, for example). See “Using Special Characters for Separators” for information about how to specify values for this property. Determines whether content in the incoming EDI stream that is wrapped in C-style /* and */ comment delimiters is ignored. See “Using Special Characters for Separators” for information about how to specify values for this property. Determines whether an upper threshold is enforced on maxOccurs. For example, if unbounded=50, all occurrences of maxOccurs in an XML schema that have a value of 50 or higher are changed to unbounded.
■ text – outputs the coded data value (here, 00) in the text node:
<BGN01><!--353: Transaction Set Purpose Code-->00</BGN01>
■ attribute – outputs the coded data value as an attribute:
<BGN01 value="00"><!--353: Transaction Set Purpose Code--></BGN01> See “XML Schema Generation” for more information about how this property affects XML Schema generation. See “HTML/XHTML Documentation Generation” for more information about how this property affects HTML/XHTML documentation generation. NOTE: If you specify xr=999, make sure that the version of X12 being used supports the 999 response message, which was introduced in version 005010. This property is HIPAA-aware; therefore, for version 0050x0, it writes the 005010X231 version of 999, and for 0060x0, it writes the 006010X290 version. You can use the Character repertoire override property (see “chr”) to change the meaning of certain characters for the Finnish character set for UNOA (UNOY) and UNOB (UNOZ). The following table shows which characters are changed based on the character set in use.
Table 5-10. Character Encoding Overrides In addition to the modifiers you can specify using the Character repertoire override property (see “chr”), you can instruct the DataDirect XML Converters to take character encodings from the URI, instead of from the EDIFACT-style UNB or UIB 001 element. If you choose to do this, you can use the encodings described in the following table:
Table 5-11. Character Encoding Overrides These can also be combined with other chr= options. For example, an EDI file might specify an UNOA encoding, but with lower-case text, because the sending system sent inconsistent data. Using chr=UNOB+REPLACE, the data could be consumed, and any non-UNOB characters would turn into '_' characters, allowing processing to continue.Most special characters or symbols cannot be entered directly into a URL. For example, you cannot specify that the colon (:) is the element separator character by entering converter:EDI:element=::auto=both. Instead, you must escape special characters using the appropriate decimal or hexadecimal value. To specify a colon as an element separator character, you would use converter:EDI:element=\u3A:auto=both.See Table 5-12, “Common Separator Characters” for a complete list of separator characters and their decimal and hexadecimal values.
■
■
Table 5-12. Common Separator Characters
Table 5-13. Control Characters EDI Processing Instructions
Table 5-14. Properties for EDI Processing Instructions The syntax of an EDI processing instruction is <?, followed by processing instruction name (edi_segment, for example), followed by a space, and then the new special character.To disable autofilling, use auto=never. When autofilling is enabled, the values of elements that are autofilled depend on the specified dialect as described in Table 5-15.
Table 5-15. Autofilled Elements For Each Dialect