hl7parse
Public Attributes | List of all members
hl7_addr_t Struct Reference

hl7 element address More...

#include <address.h>

Public Attributes

char * segment
 
int fieldlist
 
int field
 
int comp
 
int subcmp
 
int seg_count
 

Detailed Description

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.

Member Data Documentation

◆ comp

int hl7_addr_t::comp

the data between the hl7_meta_t.sep_comp (typically ^)

◆ field

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.

◆ fieldlist

int hl7_addr_t::fieldlist

the data between the hl7_meta_t.sep_field (typically |)

◆ seg_count

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

◆ segment

char* hl7_addr_t::segment

segment name, typically 3 byte upper case letters

◆ subcmp

int hl7_addr_t::subcmp

the data between the hl7_meta_t.sep_subcmp (typically &)


The documentation for this struct was generated from the following file: