A Nature Chemistry paper by researchers from the University of Glasgow describes a process for "printing" pharmaceutical compounds from various feedstocks, and supposes a future in which we have diagnosis/medication manufacturies at home. The process uses an off-the-shelf 3D printer technology to assemble pre-filled "vessels" in ways that create the desired chemical reaction in order to produce medicines. It's a scaled-down version of the industrial process used to manufacture drugs in bulk, and the paper's principal, Prof Lee Cronin, calls it "reactionware." From the BBC:
"We can fabricate these reactionware vessels using a 3D printer in a relatively short time. Even the most complicated vessels we've built have only take a few hours.
"By making the vessel itself part of the reaction process, the distinction between the reactor and the reaction becomes very hazy. It's a new way for chemists to think, and it gives us very specific control over reactions because we can continually refine the design of our vessels as required.
"For example, our initial reactionware designs allowed us to synthesize three previously unreported compounds and dictate the outcome of a fourth reaction solely by altering the chemical composition of the reactor."
...Prof Cronin added: "3D printers are becoming increasingly common and affordable. It's entirely possible that, in the future, we could see chemical engineering technology which is prohibitively expensive today filter down to laboratories and small commercial enterprises.
"Even more importantly, we could use 3D printers to revolutionise access to health care in the developing world, allowing diagnosis and treatment to happen in a much more efficient and economical way than is possible now.
"We could even see 3D printers reach into homes and become fabricators of domestic items, including medications. Perhaps with the introduction of carefully-controlled software 'apps', similar to the ones available from Apple, we could see consumers have access to a personal drug designer they could use at home to create the medication they need."