In a method and apparatus for handling a package in an automated dispensary, a package is positioned in an inspection station of the dispensary. Images are captured of the package and are read to identify data on labels or on the package itself. The data is encoded as source data in an identifying label which is applied to the package and is used subsequently in handling the package for dispensing and other inventory management procedures.