hl7parse
decode.h
Go to the documentation of this file.
1 
6 #ifndef DECODE_H
7 #define DECODE_H
8 
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <string.h>
12 #include <errno.h>
13 
14 #include "logging.h"
15 #include "bom.h"
16 #include "meta.h"
17 #include "node.h"
18 #include "util.h"
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
28 const char *version_parser();
29 
37 void print_error(int e, char* additional);
38 
59 unsigned char* extract_substr(int start, int length, unsigned char *buffer);
60 
101 int parse_segment(FILE *fd, hl7_meta_t* meta, node_t **fieldlist_p, unsigned char **segment_name);
102 
131 int hl7_decode(FILE* fd, message_t **message_p);
132 
146 message_t *decode(FILE* fd, hl7_meta_t *meta);
147 
156 FILE* hl7_open(char* filename);
157 
166 int hl7_close(FILE* fd);
167 
168 
169 #ifdef __cplusplus
170 }
171 #endif
172 
173 #endif // DECODE_H
hl7 meta data structures for message_t
primary storage type of a delimited element
Definition: node.h:188
int hl7_close(FILE *fd)
close file
Definition: decode.c:659
Main datastructures for HL7 nodes and messages This file contains the main parser data structures and...
unsigned char * extract_substr(int start, int length, unsigned char *buffer)
extract a sub string from a string
Definition: decode.c:29
logging functioins and macros
FILE * hl7_open(char *filename)
open file
Definition: decode.c:646
HL7 Seperator configuration.
Definition: meta.h:33
int hl7_decode(FILE *fd, message_t **message_p)
Entry point for the parser.
Definition: decode.c:466
hl7 utilitiy functions
void print_error(int e, char *additional)
pretty print system errors
Definition: decode.c:22
message_t * decode(FILE *fd, hl7_meta_t *meta)
parse hl7 file
Definition: decode.c:632
find unicode bom
Definition: node.h:244
int parse_segment(FILE *fd, hl7_meta_t *meta, node_t **fieldlist_p, unsigned char **segment_name)
parse one HL7 line
Definition: decode.c:37
const char * version_parser()
parser version information
Definition: decode.c:18