write_hl7s function writes hl7 files with random data that generates for A09 transactions. This function writes the headers MSH, EVENT, PID, PV1, PV2
write_hl7s(write_to_file = TRUE, nr_files, return = TRUE)is a binary input TRUE/FALSE with TRUE as default, FALSE prints to screen
is an integer greater than 0, if missing, function writes single file.
is a binary input TRUE/FALSE. TRUE would deliver an input a list
returns a data.frame with hl7 data with a next line as a seperator