mapTrts function

Map treatment codes to factor