Bar codes for Items

We want to autogenerate these using the GS1 UDI system.

Essentially taking the Company UDI ID (basically a constant),the item code and batch number and generating the bar code.

Is this sort of thing possible, and if so how would it be done?