common functions for pdi (vcf/ics) parsing