The rotary ampoule coding machine system is designed for high volume, automated and constant coding operations. Once ampoules undergo filling and sealing, the system applies machine-processable color codes onto the ampoules' stems. By doing so, the system can monitor the ampoules' contents in succeeding processes, from intermediate storage, to labelling, and finally to secondary packaging.