It's called plant based expression when you use plants to derive pharmaceuticals. One of the best examples is http://www.caliberbio.com/
You will typically see a complete clean room facility using state of the art mechanical systems. The Caliber facility was over $200M+ funded by DARPA. It is a semi-automated system using robotics.
This is what Caliber's facility looks like. The Cannabis industry has a lot of maturing to do..