|
hl7parse
|
hl7 element address More...
#include <address.h>
Public Attributes | |
| char * | segment |
| int | fieldlist |
| int | field |
| int | comp |
| int | subcmp |
| int | seg_count |
hl7 element address
All addresses start with 0. -1 means undefined (not specified when a string was converted to hl7_addr_t).
Some obvious defaults must be taken into account by the user. For example, if field is -1, then it always should be treated as 0, because there is no element with an undefined number of fields (repetitions), if not specified, the first element hast to be used.
Same for seg_count, if it is not specified (and therefore equals -1) the first index 0 is meant.
| int hl7_addr_t::comp |
the data between the hl7_meta_t.sep_comp (typically ^)
| int hl7_addr_t::field |
the data between the hl7_meta_t.sep_rep (typically ~), fields can have repetitions. typically these are omited in addresses.
| int hl7_addr_t::fieldlist |
the data between the hl7_meta_t.sep_field (typically |)
| int hl7_addr_t::seg_count |
the address of the n-th segment in a file. If you have 3 oBX segments and you want the 2nd, then use OBX(2) to specifically address the second
| char* hl7_addr_t::segment |
segment name, typically 3 byte upper case letters
| int hl7_addr_t::subcmp |
the data between the hl7_meta_t.sep_subcmp (typically &)
1.8.13