SMAT encoding and temporary files
In encoding persistence, the Selected Encode Scheme and Selected Encode Format settings are designed to be applied to a SMAT working session. After they are set, they affect all the messages displayed in SMAT. These settings persist for each SMAT file, to eliminate the requirement to reset the values each time you view the same set of messages.
The type of character encoding and formatting for displayed messages are selected from menus.
The encoding scheme and format apply to all displayed messages. This information is stored in a separate file with an .ecd extension for each viewed SMAT file. Each SMAT file can then have its own encoding settings which are applied automatically when messages of a SMAT file are reloaded and viewed.
The
.ecd file is a text file that contains the
encoding scheme and format for the SMAT
.msg and
.idx
files with the same name.
The contents of the .ecd
file look
similar to:
[encode_scheme]
encode_scheme=<encode_scheme_value>
[encode_format]
encode_format=<encode_format_value>
[format_options_frl]
frl_file=<frl_file_name>
frl_detail_level=<frl_detail_level_value>
[format_options_hl7]
hl7_version=<hl7_version>
hl7_variant=<hl7_variant_name>
hl7_show_field_names=<hl7_show_field_names_value>
hl7_detail_level =<hl7_detail_level>
[format_options_hprim]
hprim_version=<hprim_version>
hprim_variant=<hprim_variant_name>
hprim_show_field_names=<hprim_show_field_names_value>
hprim_detail_level =<hprim_detail_level>
[format_options_hrl]
hrl_file=<hrl_file_name>
hrl_detail_level=<hrl_detail_level_value>
. . . .
In the file contents:
- Brackets (
[]
) contains section comments. - All values in
< >
are replaced by real values in an.ecd
file. - Every field has its own default value.
The default value is assumed in these situations:
- The .ecd file is missing.
- The .ecd file exists, but the field setting is not found.
- The .ecd file exists, and field setting is found with empty value.
- The .ecd file exists, and field setting is found with non-recognized value.