approximately 90 % of the most commonly prescribed and dispensed solid - dosage pharmaceuticals can be identified through an nir or other spectroscopic technique with 100 % accuracy . by comparing the “ chemical signature ” of a dispensed or filled prescription to an electronic database of known formulations , there can be near 100 % assurance that a dispensed drug is correct in both type and concentration . [ 0028 ] fig1 shows a workflow and validation process 100 that is typical for known pharmacies and their associated prescription filling procedures . while this example is based on the filling of a solid dosage prescription , similar procedures are utilized for other dosage forms . in the workflow 100 shown in fig1 % of the drugs stocked by a pharmacy and filled for a patient follow the same path . in the flow diagram 100 , the bracketed text to the left indicates the pharmacy personnel that would typically perform the corresponding task . to begin the prescription filling process , a customer drops off or calls in an order at 110 . the order consists of one or more new or refill prescriptions . the prescription ( s ) are entered into the pharmacy &# 39 ; s information system at 120 . as indicated , step 120 is typically performed by a technician or other administrative staff , although it may be performed by a pharmacist as well . after the order has been entered into the pharmacy information system , a pharmacist verifies that the prescription has been entered into the pharmacy information system correctly at 130 . step 130 is typically performed by comparing the information entered into the pharmacy information system with the information contained on the written prescription . some systems actually scan the written prescription into the pharmacy information systems so that a side by side comparison can be made on a computer screen of an image of the written prescription prepared by a physician and the data entered by the technician at step 120 . once the entered prescription is verified at 130 , the filling process begins . a technician fills the prescription at 140 . some known systems utilize bar codes to ensure that the correct supply bottle has been selected by the technician . all manufacturer supply bottles include a bar coded identification number that contains information unique to the product and manufacturer . other tasks that are typically performed at step 140 include assigning a tote ( customer container to hold multiple prescriptions for the same customer ) to the order , scanning the supply bottle , counting tablets and filling the vials , printing labels and applying the label to the vial , and closing the vial and placing it in the assigned tote . further details of these visual pharmacy inspection and verification systems can be found in u . s . pat . nos . 5 , 597 , 995 , 6 , 176 , 392 , and 6 , 202 , 923 , the details of which are hereby incorporated by reference into the present application . after the order has been filed at 140 , the pharmacist must verify the contents and accuracy of the filled order at 150 . since the pharmacist is ultimately responsible for the accuracy of the filled order , this task is usually not assigned to a technician or other clerical employee . while the verification step 150 can be performed in several different ways , all existing pharmacy systems utilize a visual verification process that is carried out by a professional pharmacist . fig1 includes several examples ( 150 - 1 , 150 - 2 , and 150 - 3 ) of how this visual verification process is normally handled . at 150 - 1 a pharmacist compares the contents of the filled customer vial with the supply bottle that was used to fill the prescription . in the case of 150 - 1 , the supply bottle is often left in the customer tote with the filled vial for the pharmacist to use in verifying the vial &# 39 ; s contents . this is , in effect , a tablet - to - tablet comparison . alternately , at 150 - 2 the pharmacist compares the contents of the filled vial to an image of the prescribed drug that is retrieved from a database displayed on a computer monitor for the pharmacist to view . this is a tablet - to - image comparison . alternately , at 150 - 3 the pharmacist compares an electronic image taken of the filled vials with a database image of the same prescribed drug . this is an image - to - image comparison . certain automated prescription filling systems utilize these image - based verification schemes by taking an image of the filled vial before it is released to the pharmacist for verification . finally , at 160 the order is placed with the appropriate paperwork in a pickup area for the customer to receive the prescription . as explained above , these known pharmacy systems all suffer from the same general problems in that they rely on a visual verification performed by a human operator to validate that the prescription has been properly filled . the result is that a significant number of prescriptions are incorrectly filled . additionally , the pharmacist , who is ultimately responsible for the accuracy of the filled prescription , spends a significant portion of his or her day performing these verifications . these and other known pharmacy inspection systems are more fully described in u . s . pat . nos . 5 , 597 , 995 , 6 , 176 , 392 , and 6 , 202 , 923 , the details of which have previously been incorporated by reference into the present application . in accordance with an aspect of the present invention , an inspection system is provided that preferably replaces the visual verification steps associated with traditional and known pharmacy systems . alternatively , an inspection system constructed in accordance with the present invention can augment existing visual verification systems . in addition , an inspection system constructed in accordance with the present invention can preferably be adapted for use with an existing pharmacy information system , or can be utilized as a stand alone and portable unit . [ 0033 ] fig2 illustrates a work flow 200 associated with one aspect of a pharmacy inspection and validation system constructed in accordance with the present invention . while this example is based on the filling of a solid dosage prescription , similar procedures may be utilized for other dosage forms . a customer drops off or otherwise communicates a prescription to the pharmacy at 210 . at 220 , the customer &# 39 ; s prescription is input into the pharmacy &# 39 ; s information system or , if the prescription is for a refill , the prescription is recalled from the pharmacy &# 39 ; s information system . step 220 , as in the system of fig1 is typically performed by a pharmacy technician , rather than by a licensed pharmacist . at 230 , a pharmacist performs a verification that the customer prescription is properly entered into the pharmacy information system . step 230 is typically performed by comparing the information entered into the pharmacy information system with the information contained on the written prescription . as in the system of fig1 some systems actually scan the written prescription into the pharmacy information system so that a side by side comparison can be made on a computer screen of an image of the written prescription prepared by a physician and the data entered by the technician at step 220 . at 240 , after the entered prescription is verified by the pharmacist , it is released for filling ( typically done by a technician ). the technician then fills the customer vial and applies the prescription label , including a bar code linked to both the prescription number and the dispensed drug &# 39 ; s unique ndc code , to the vial . preferably , the bar code on the prescription label includes a prescription number that is unique to that specific prescription fill . for example , a refill prescription will get a new prescription number and not one identical to the original prescription . this accounts for the situation where two prescriptions for the same drug are being filled at the same time and allows a unique identifier to be associated with the prescription in addition to the manufacturer &# 39 ; s ndc code . at this point , the filled vial is inserted into a chemical analysis system . the chemical analysis and validation system is referred to herein as the rxspec ™ system . at 245 , the bar code label on the filled customer prescription vial is read into the rxspec ™ system . the steps performed by the rxspec ™ system , and in general , the pharmacy chemical analysis and validation system , are generally shown in fig2 within the dashed lines represented by reference number 300 . preferably , the rxspec ™ system utilizes visible ( vis ) and near - infrared ( nir ) spectroscopy to analyze and identify the contents of the filled prescription vial , however , it is contemplated that any number of other methods or variations of nir spectroscopy can be utilized in a pharmacy system constructed in accordance with the present invention . for example , various forms of optical spectroscopy , ultra - violet & amp ; visible ( uv - vis ), ultra - violet / visible / near infrared ( uv - vis - nir ), infrared , or raman spectroscopy may be utilized in a chemical analysis and verification system constructed in accordance with the present invention . additionally , optical imaging technology can also be integrated into a chemical analysis and verification system constructed in accordance with the present invention , such as systems that are adapted to perform optical character recognition ( ocr ), color analysis , or other physical ( rather than chemical ) property analysis and identification . at 310 , the rxspec ™ system compares the ndc derived from the bar code scanned from the label on the customer prescription vial , to a database of drugs that the rxspec ™ has been formatted or otherwise calibrated to chemically identify . at this point , no chemical identification has taken place , rather the rxspec ™ system is comparing the name and dosage of the drug associated with the customer &# 39 ; s prescription with a preloaded database of drugs that the rxspec ™ system has been calibrated to analyze . the database also contains a representation of the unique chemical signatures associated with each of these calibrated drugs . it is contemplated that this database of calibrated drugs will be periodically updated to reflect new drugs that come on the market as well as existing drugs that are calibrated to be recognized by the rxspec ™ system . if the customer &# 39 ; s prescription is contained in the rxspec ™ database , then , at 320 , the rxspec ™ system performs a chemical identification on the actual tablets , or capsules that are contained in the customer &# 39 ; s prescription vial . at 320 the rxspec ™ system scans the items in the filled vial and measures the chemical signature of the items . this actual chemical signature is then matched to a particular drug and dosage level from the database of calibrated drugs . this information is then compared at 330 to the prescription information taken from the bar code label on the customer &# 39 ; s filled prescription vial , which has been previously stored by the rxspec ™ system . if the results from the rxspec ™ system match the information from the bar code on the customer &# 39 ; s filled prescription vial , the rxspec ™ system signals that the filled prescription has been verified and the technician then closes the filled vial , finalizes the prescription , and places it into a tote for customer pickup at 340 . the inspection and validation steps associated with the rxspec ™ system are automatic and can therefore be easily performed by a technician rather than a pharmacist . if at step 310 it is determined that the customer &# 39 ; s prescription is not contained in the rxspec ™ database , and therefore not amenable to chemical verification , the rxspec ™ system signals the technician that it can not chemically verify the customer &# 39 ; s prescription and that another form of verification is necessary . at 350 , an alternate verification means is then employed , such as one of the visual verification techniques previously described in connection with fig1 . after the customer &# 39 ; s filled prescription has been verified the prescription is finalized , bagged , and placed in a tote for customer pickup at 360 . from experimental results , it has been determined that in the process flow of fig2 approximately 90 % of the drugs will be able to be recognized by the rxspec ™ system and will therefore be able to be automatically verified and validated by chemical analysis and comparison to the prescription &# 39 ; s bar code information . those drugs that are not recognized by the rxspec ™ system will need to be visually verified as described above or by a similar method . in practice , verifying a prescription using the rxspec ™ system is approximately 5 times faster than using a manual verification method , such as visual verification . for example , in efficiently run pharmacies , it takes approximately 25 seconds to visually verify a prescription . using the rxspec ™ system has been demonstrated to take approximately 5 seconds . furthermore , the rxspec ™ system can be run by a technician since the verification process is entirely automatic . visual verifications , since they are subject to user error , are typically performed by a pharmacist . large retail pharmacies filling as many as 300 prescription per day and utilizing a verification system constructed in accordance with the present invention will realize a net result of the pharmacist having approximately 1 . 7 hours of available time to perform other tasks such as patient consultation or filling additional prescriptions . the rxspec ™ system directly identifies the actual drug contained in the prescription vial and compares it to a pre - stored library of drug signature data . for those drugs that are recognized by the rxspec ™ system , this verification is accomplished with virtually 100 % accuracy . other benefits are also realized by implementing the inspection and validation process of fig2 . for instance , pharmacist job satisfaction and morale will likely increase as a result of reduced stress and less time performing visual verification tasks ; there will be faster prescription throughput time for those drugs verified by the rxspec ™ system ; there is a reduction in overtime wages ; and the use of such an automated verification systems may be recognized as evidence of proper prescription filling in the context of litigation . [ 0038 ] fig3 shows a detailed flow diagram 400 of a portion of the rxspec ™ system , and more particularly , one embodiment of the automated chemical identification and verification process . at 410 , a technician scans the bar code on a prescription vial &# 39 ; s label using a scanner attached to the rxspec ™ system . preferably , the scanner presents an audible tone or visual indicator letting the user know that the label has been scanned successfully . the data obtained from the bar code is sent to and stored on a data storage device such as a magnetic disk drive or a network server . it is contemplated that various computer hardware platforms may be utilized in such a system such as pcdos , windows , unix , linux , etc . additionally , the hardware platform may be part of the pharmacy &# 39 ; s existing information system . after the data from the bar code label has been stored , the rxspec ™ system determines at 420 whether the drug , as represented by the data from the scanned bar code label on the customer &# 39 ; s prescription vial , is in the rxspec ™ data library , and thus recognized by the rxspec ™ system . the rxspec ™ data library , is preferably a stored database of drug formulations , dosage signatures , and their associated product names , manufacturers and other identifying information that is recognized by and calibrated to the rxspec ™ system . if the drug in the filled prescription vial is not recognized by the rxspec ™ system , then at 430 , the data server sends a message to the rxspec ™ system and the technician is notified not to proceed with a chemical scan of the filled prescription through the rxspec ™ system . the technician and the general pharmacy information system are notified that this particular drug must follow a standard manual / visual verification routine as previously described in conjunction with fig1 . if the drug in the filled prescription vial is recognized by the rxspec ™ system , then at 440 , the rxspec ™ system indicates to the technician that he can proceed with the chemical scan . the technician then places the filled prescription vial into the rxspec ™ system , the drug , while still in the prescription vial , is scanned and the resulting chemical signature data is sent to the server or existing pharmacy information system . at 450 , the rxspec ™ system compares the data obtained from the prescription vial bar code to the data obtained from the chemical scan and determines whether there is a match or whether there is some form of user error such as the prescription vial being improperly aligned in the rxspec ™ system . if there is a user error detected , the rxspec ™ system alerts the technician at 460 and allows the technician to rescan the drug . if the rxspec ™ system determines that the chemical scan of the drug and the data from the prescription vial bar code are a match , the rxspec ™ system at 470 sends a message to the technician that the drug has passed the chemical inspection and validation and that the prescription vial can be capped and the prescription completed . in this case , visual inspection is not necessary , although , if desired , the pharmacist can choose to also visually verify the filled prescription . if the rxspec ™ system determines that the chemical scan of the drug and the data from the prescription vial bar code are not a match , the rxspec ™ system at 480 sends a message to the technician that the drug has failed the chemical inspection and validation process . a further message may also be sent to the technician indicating that either visual verification must be completed or that the pharmacist must otherwise intervene in the prescription filling process . [ 0041 ] fig4 shows one embodiment of an rxspec ™ system 500 constructed in accordance with an aspect of the present invention . the rxspec ™ system 500 can be formatted to function either as a stand alone unit or to integrate into an existing pharmacy information system . line 505 in fig4 defines an example of how the stand alone portion of the rxspec ™ system could be incorporated into an existing pharmacy information system . the portion above the line 505 would be located in the actual pharmacy within easy access of the pharmacist , while the portion below line 505 represents an existing pharmacy information system such as a network server or other information system platform . as a stand alone unit , the rxspec ™ system would preferably be linked to a pc based computer or portable computer system . the rxspec ™ system 500 includes a main housing unit 510 that contains the chemical analysis hardware and associated electronics . preferably , the chemical analysis hardware is an vis - nir - based spectrometer system adapted for use in the rxspec ™ system . however , other chemical analysis systems are contemplated by the present invention such as various forms of optical spectroscopy , ultra - violet & amp ; visible ( uv - vis ), ultra - violet / visible / near infrared ( uv - vis - nir ), infrared , or raman spectroscopy . it is also envisioned that digital imagery could be used to automatically derive information on the size , shape , and color of solid dosage forms . the main housing 510 includes a local display unit 512 that provides a user with information such as pass / fail results , system status , power availability , and various other functional indicators of the rxspec ™ system 500 . the main housing 510 is positioned on a mounting bracket 514 so that an imaging aperture or entrance slit 515 of the main housing faces a sample plate 516 . the sample plate 516 is adapted to receive a sample , such as a prescription vial 532 , so that the imaging aperture 515 substantially aligns with the vial 534 . preferably a guide 538 is incorporated into the sample plate 516 to easily and consistently align the vial 532 under the imaging aperture 515 . the main housing 510 is connected to a power source 519 through a cable 518 and connector 520 . the main housing 510 of the rxspec ™ system preferably receives data through two separate connections . first , the main housing 510 receives data from data storage and analysis unit 550 through cable 522 and connector 524 . second , the main housing 510 receives data from scanner 540 through cable 526 and connector 528 . the data storage and analysis unit , can , as described above , be either a network based system connected to the main housing 510 through a 10 / 100 baset ethernet connection , or it can be a local system , such as a pc or laptop computer connected through a serial or usb port . various other connection schemes are also contemplated . in operation , data obtained through the scanner 540 from a label 534 applied to the vial 532 is compared to data obtained by chemically identifying the actual product contained in the vial 532 . preferably the label 534 is a bar code containing the unique prescription number . in one embodiment a spectrometer - based system shines a light beam 536 at the product in the vial 532 and acquires the chemical signature data of the product . the chemical signature data and the data obtained from the bar code label 534 are both sent back to the data storage and analysis unit 550 . the data storage and analysis unit 550 first queries the prescription database to determine the ndc of the drug used to fill the prescription currently being verified . the data storage and analysis unit 550 preferably contains a database of chemical fingerprints corresponding to the drugs available in the pharmacy . the database also includes the corresponding ndc , manufacture name , drug name , and other identifying information about the available drugs . the data storage and analysis unit 550 is also adapted to run comparison software and other algorithms that automatically compare the ndc determined from the bar code label 534 and the signature of the analyzed product 534 contained in the vial 532 . a message is sent from the data storage and analysis unit 550 back to the rxspec ™ system &# 39 ; s main housing 510 alerting the user whether the prescription being verified has passed or failed the verification process . the data storage and analysis unit 550 can take various forms as briefly described above . first , it can be part of an existing pharmacy information system , such as a unix based server where the rxspec ™ signature library and comparison software reside on a storage area within the existing server unit . second , the data storage and analysis unit 550 can be a stand alone computer unit such as a pc based system or laptop computer system . in this case , the rxspec ™ chemical signature library and comparison software reside on a storage area within the stand alone unit . in that regard , the rxspec ™ system would be more conducive to portability and could be utilized in other sites than just pharmacies such as emergency rooms and ambulance environments . [ 0046 ] fig5 shows a schematic detail of the housing 510 and , more particularly , one embodiment of its internal construction and interrelation between its various components . the housing 510 as shown in fig5 is configured for use with a spectrometer based analysis system , and more particularly , a vis - nir spectrometer system , however , it is contemplated that other types of non - invasive chemical and / or physical analysis systems can be incorporated into systems constructed in accordance with the present invention and as described above . the housing 510 generally contains six main components or modules . an alphanumeric display 512 , a main electronics board 600 , a focal plane board 630 , a spectrograph assembly 640 , a light source 670 and a telescope 680 . the arrows in fig5 show one embodiment of the inter - relationship between the different components of the main housing 510 . the alphanumeric display 510 is adapted to display a number of different information parameters pertaining to the status of the rxspec ™ system such as power on status , pass or fail results of an ongoing chemical screen or identification , etc . the main electronics board 600 includes the following modules and functions : a power supply 602 , light regulation 604 , data collection 606 , microprocessor 608 , ethernet interface 610 , scanner or bar code interface 612 , and a mechanism control 614 . the main electronics board 600 also preferably includes the connection ports for the power supply , the ethernet connection and a serial port for the scanner interface . the focal plane board 630 includes the spectrometer detector and associated electronics 632 . the detector 632 interprets the reflected light data from a sample being analyzed and transmits it back to the main electronics board for interpretation . the detector and electronics 632 can be one of many known in the spectroscopy art . in other embodiments , the focal plane board may include an exit and entrance slit for the spectrometer , a cut - on filter , a light source mirror , and mounts for each of the slits and filter . the spectrograph assembly 640 includes a detector 642 , grating 644 , lens 646 , encoder 648 , motor 650 , shutter 652 , and scanner mechanism 654 . the light source 670 is preferably a white light that provides a broad range of wavelengths and is adapted to illuminate a sample 700 that is being analyzed . the light source 670 may be integrated with the telescope assembly 680 . the telescope assembly 680 includes slit imaging optics 682 , a white reference mechanism 684 , a beam rotate mechanism 686 , and an auto - focus mechanism 688 . [ 0050 ] fig6 shows one embodiment of elements from the spectrograph assembly 640 and telescope 680 from fig5 and more particularly , the relationship between the telescope and focusing elements to the spectrometer . it is contemplated that numerous other embodiments of the spectrometer and telescope can be incorporated into a pharmacy inspection system in accordance with the present invention , many of which are known to those of skill in the art of spectroscopy and chemical analysis . in fig6 the combined spectrometer and telescope assembly includes a spectrometer 810 having an entrance slit 812 , a pair of lenses 820 and 825 , a collimated light source 830 a mirror 832 , and a rotating beam steering element 840 . the telescope assembly is generally referred to as 680 . the dashed line 850 represents those elements of the telescope assembly that are adapted to move up and down in order to adjust the focal point of the system . correct focus of the system is obtained by automatically adjusting the position of the telescope focusing elements 850 to a position that provides the maximum signal as measured by the spectrometer 810 . the product being inspected 700 sits in the vial 532 and is positioned under the telescope assembly 680 . the rotating beam steering element 840 is adapted to take a series of measurements of the product 700 . preferably , the measurements are collected in a circular or ring shaped pattern to ensure consistency of the contents of the vial . [ 0051 ] fig7 shows an image of the vial 532 filled with a product 700 that is being inspected . the image in fig7 is how the vial 532 and product 700 would appear to the telescope assembly , i . e . looking down into the filled vial . ring 860 represents the scanning path produced by the rotating beam steering element 840 and points 865 represent a series of locations measured by the rxspec ™. other sampling patterns or analysis algorithms may be incorporated into the spectrometer system in accordance with the present invention . although the present invention has been described and illustrated in the above description and drawings , it is understood that this description is by example only and that numerous changes and modifications can be made by those skilled in the art without departing from the true spirit and scope of the invention . the invention , therefore , is not to be restricted , except by the following claims and their equivalents .