###### Abstract
The use of automated sample preparation methods, such as static headspace (SHS) [8; 25] and solid-phase microextraction (SPME) [25; 26], means that the extraction step can be avoided and can reduce or eliminate sample incompatibility with the analytical systems, limit matrix interference, while also, more importantly, concentrating the samples [27]. A few papers have reported the SHS/GC-MS analyses of _Cannabis_ terpenids. If the injection of HS does not reach adequate sensitivity, analytes can be directly extracted and concentrated onto sorbent polymers, which may improve detection limits, while integrating sampling, extraction, concentration and sample introduction into a single solvent-free step. HS-SPME is an emerging analytical extraction technique for the sample preparation of _Cannabis_-based products, and several papers [25; 28; 29] and technical reports [26; 30; 31; 32; 33; 34] have described SPME as an extraction method for the analysis of this plant. A study on different SPME fibers (CAR-PDMS, PDMS, PDMS-DVB or divinylbenzene, CAR-PDMS-DVB) demonstrated that DVB/CAR/PDMS was able to extract a higher amount of terpenes than the others [29], confirmed also by other reports [31; 32; 34]. In a recent work, [PERSON] et al. reported that extraction efficiencies were higher when using 50/30 \(\upmu\)m DVB/CAR/PDMS fibers, especially for more volatile compounds (monoterpenes), but the 30 \(\upmu\)m PDMS fiber allowed them to obtain larger peak heights for sesquiterpenes, avoiding the saturation of monoterpene signals [25]. Lastly, a method using the capillary microextraction of volatiles (CMV), which is based on planar solid-phase microextraction (PSPME), has been reported by [PERSON] [35]. The technique was found to be capable of collecting trace amounts of volatile compounds in a short extraction time (1 min), enabling the development of a technique for field testing the presence of marijuana plants. To date, several commercial _Cannabis_-based products have been approved for medical use (e.g., Cesamet, Epidiolex, Marinol, and Sativex) [36; 37; 38]. However, many galenic formulas can be prepared by pharmacists in accordance with medical prescriptions, with this process involving the extraction of dried female inflorescences in olive oil or ethanol, with or without the previous decarboxylation of acidic cannabinoids [29; 39]. Phytocannabinoids can be exhaustively extracted from dried inflorescences with ethanol [40], but the use of vegetable oils, such as olive oil, has been proposed as a more environmentally friendly extraction method. In 2013, [PERSON] and [PERSON] published one of the first works on the chemical characterization of _Cannabis_-oil preparations, which were obtained via decarboxylation and extraction in a conventional heated water bath [41], finding evidence that the decarboxylation step led to significant losses in terpene components. Compared to the untreated control, monoterpenes (the most volatile) were reduced to about half of their original levels even after 5 min of exposure to boiling water, while only small traces could still be detected after the more intense oven treatment. Subsequently, [PERSON] et al. [39] proposed a simple method for the preservation of terpen in _Cannabis_-based medicinal extracts, introducing a reflux system in which the infloresences were extracted with either ethanol or the more sustainable olive oil, and also observed the greatest terpene recovery in the more environmentally friendly solvent. In 2018, [PERSON] et al. [29] performed a decarboxylation step of hemp infloresences in a static oven at 145 \({}^{\circ}\)C for 30 min, and then the extraction of cannabinoids under US (35 KHz, 30 min). The maximum volatiles content was found in the control oil, which was produced without exposing the _Cannabis_ infloresences to the decarboxylation step.