I would like to take HL7 messages and pull the values out of certain fields and insert them as a comma separated row in a csv file. Each HL7 message would be a single row that is appended to a file. Each row would have values from the HL7 message such as patient_id, last_name, first_name, referring_provider, and so on.