Summary of the invention
This specification is designed to provide a kind of drug deposit method of double-manipulator pharmacy control system, to solveThe existing method technical problem low there are treatment effeciency.
A kind of drug deposit method for double-manipulator pharmacy control system that this specification provides, wherein two machineryHand is arranged along the axis direction of drug storage, and two manipulators can be mobile relative to the drug storage in the axial direction, specialSign is, comprising the following steps:
Obtain the medicine information of drug to be stored, wherein medicine information to be stored includes drug name, waits for corresponding to eachThe date of manufacture of storage drug and Quantity of drugs to be stored;
Drug to be stored is divided into multiple batches according to the date of manufacture of each drug to be stored, and obtains each batchQuantity, wherein each batch have the different effect phases;
According to the effect phase of drug name and the batch, searched in drug storage consistent with the effect phase of the drug name and the batchVacancy space, judges whether the quantity of vacancy space is greater than or equal to the quantity of the batch,
If so, the drug to be stored of the batch is all put into corresponding vacancy space.
Preferably, step " judging whether the quantity of vacancy space is greater than or equal to the quantity of the batch " further include: if notIt is then to judge whether remaining quantity to be provided is greater than or equal to remaining sky corresponding with the nomenclature of drug in drug storageThe quantity of bit space;
If so, remaining drug is put into the vacancy space corresponding with the nomenclature of drug of remaining in the drug storage.
Preferably, step " judges whether remaining quantity to be provided is greater than or equal in drug storage remaining and thisThe quantity of the corresponding vacancy space of nomenclature of drug " further includes, if it is not, the drug of part is then placed in remaining in the drug storageVacancy space corresponding with the nomenclature of drug, then remaining drug is placed in remaining vacancy space in the drug storage.
Preferably, step " remaining drug is placed in remaining vacancy space in the drug storage again " includes judging the medicineWhether the dispensing amount of product is greater than preset threshold using dispensing frequency, if so, in selection drug storage in remaining vacancy spaceThe vacancy space being close at medicine outlet.
Preferably, step " judging whether the frequency of use of the drug or consumption are greater than preset threshold ", if it is not, then selectingSelect the vacancy space in drug storage in remaining vacancy space at separate medicine outlet.
Preferably, step " drug to be stored is divided by multiple batches according to the date of manufacture of each drug to be stored, andObtain the quantity of each batch, wherein each batch have the different effect phases " in the effect phase by the date of manufacture, current date, haveOne or more generations in the effect phase.
The embodiment of the present application also discloses a kind of electronic equipment, including processor and refers to for storage processor to be executableThe memory of order, which is characterized in that the step of processor realizes preceding claim method when executing described instruction.
A kind of drug deposit method for double-manipulator pharmacy control system that this specification provides, the deposit method to the greatest extent may be usedEnergy ground is controlled by each data to improve the speed of drug, to improve the efficiency of double-manipulator pharmacy control system.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with this explanationAttached drawing in book embodiment is clearly and completely described the technical solution in this specification embodiment, it is clear that describedEmbodiment be only this specification a part of the embodiment, instead of all the embodiments.The embodiment of base in this manual,Every other embodiment obtained by those of ordinary skill in the art without making creative efforts, all should belong toThe range of this specification protection.
The embodiment of the present application provides a kind of drug deposit method of double-manipulator pharmacy control system.Referring specifically toOne kind of the process of the drug deposit method for the double-manipulator pharmacy control system that this specification embodiment shown in FIG. 1 providesThe schematic diagram of embodiment.The drug deposit method of double-manipulator pharmacy provided by the embodiments of the present application control system, two machinesTool hand is arranged along the axis direction of drug storage, and two manipulators can be mobile relative to the drug storage in the axial direction, toolIt may include the following contents when body is implemented.
S1: the medicine information of drug to be stored is obtained, wherein medicine information to be stored includes drug name, corresponding to eachThe date of manufacture of a drug to be stored and Quantity of drugs to be stored.
In the present embodiment, above-mentioned medicine information may include the batch of drug to be stored, title and correspond to the drugQuantity, date of manufacture of drug to be stored of information etc..
The operational order can by the tools such as computer, operator control panel, mobile phone, plate using keyboard, mouse, touching,Voice is wired or wireless to be got.
For example, can be inputted by keyboard, mouse: nomenclature of drug to be stored: Tylenol, quantity, eight boxes.The birthday of this eight boxDate be respectively 2019.1.1,2019.1.2,2019.1.5,2018.7.1,2018.7.8,2018.7.10,2018.7.20,2019.5.1。
S2: drug to be stored is divided by multiple batches according to the date of manufacture of each drug to be stored, and is obtained eachThe quantity of batch, wherein each batch has the different effect phases.
Since each drug has a product validity period, in order to avoid waste, being capable of providing makes to consumerWith in the phase, additionally it is possible to which the drug that will likely have expired risk can handle completion within the preferable time.And it can also incite somebody to actionDrug in the same effect phase is provided simultaneously, in order to operating system can simultaneously the multiple drugs of quick pick-up.For example, control systemSystem can inquire validity period corresponding with the drug to be stored, to generate pair with the date of manufacture further according to current dateThe effect phase answered.
For example, control system inquires in system and obtains having for Tylenol after getting and needing to store above-mentioned eight boxes TylenolThe effect phase is 18 months.And current time is on May 10th, 2019.In the use according to validity period and current time, the drugFrequency judges the drug, and there is no expired risks.It therefore, can be by above-mentioned eight boxes Tylenol according to date of manufacture and current timeIt is divided into three batches, first, in January, 2019, quantity 3.Second batch, in July, 2018, quantity 4.Third batch, May 1 in 2019Day, quantity 1.
S3.According to the effect phase of drug name and the batch, the effect phase one with the drug name and the batch is searched in drug storageThe vacancy space of cause, judges whether the quantity of vacancy space is greater than or equal to the quantity of the batch.
The distribution situation that the drug is inquired in drug storage, by the existing effect phase in the effect phase of each batch and drug storageAdaptation.
For example, the Tylenol in 2 months -2019 years in October, 2018 can be divided to the same effect phase with first.By 2019 3The Tylenol and third batch produced after month is divided to the same effect phase.By the Tylenol and between in May, 2018 and in September, 2018Two batches are divided to the same effect phase.
At this point, if 2 months -2019 years in October, 2018 Tylenol vacancy space be greater than 3,3 firstTylenol stores the vacancy space of the Tylenol to 2 months -2019 years in October, 2018.
If the vacancy space of the Tylenol between in May, 2018 and in September, 2018 is less than 5, for example, 3, then 3Two batches of Tylenols store the vacancy space of the Tylenol to 2 months -2019 years in October, 2018.
Need to judge whether remaining quantity to be provided is greater than or equal in drug storage remaining and the drug at this timeThe quantity of the corresponding vacancy space of title;If so, remaining drug is put into remaining in the drug storage and the nomenclature of drugCorresponding vacancy space.If it is not, the drug of part is then placed in the sky corresponding with the nomenclature of drug of remaining in the drug storageBit space, then remaining drug is placed in remaining vacancy space in the drug storage.Wherein, step " again sets remaining drugEnter remaining vacancy space in the drug storage " it include judging the dispensing amount of the drug or whether being greater than using dispensing frequency defaultThreshold value, if so, being close in the vacancy space at medicine outlet in selection drug storage in remaining vacancy space.
For example, whether remaining two Tylenols have the vacancy space of other Tylenols that can store in second batch, if so, thatThen store to vacancy space that Tylenol has been placed in other drug storages.If not provided, so needing to judge TylenolService condition then selects medicine if the i.e. dispensing amount of the Tylenol or use dispensing frequency is greater than preset threshold using more frequentlyThe vacancy space being close in remaining vacancy space in product library at medicine outlet.If using more general, i.e. the hair of the TylenolDose is greater than preset threshold using dispensing frequency, then selects to be away from medicine outlet in remaining vacancy space in drug storageVacancy space.
It should be noted that above-mentioned design parameter can specifically include different types of ginseng for different types of drugNumber data.When it is implemented, in conjunction with the concrete type of drug, used design parameter can be determined as the case may be.It is rightThis, this specification is not construed as limiting.
Certainly, the sensing of two each joints of manipulator can be arranged in double-manipulator pharmacy control system by obtainingThe heat transfer agent that device obtains depicts the spatial positional information of two manipulators respectively.
In the present embodiment, it is provided with infrared sensor in each joint of manipulator, by infrared sensor,The spatial positional information of available manipulator is to get the specific location and the manipulator for arriving the manipulator in various operationsIn possible operation track.
When double-manipulator pharmacy control system stores drug, it can be determined that whether Quantity of drugs to be stored exceeds single machineThe maximum magnitude of tool hand;
If not, generating the shortest path mould with one of manipulator according to best effective term area and spatial positional informationType is corresponding for controlling the control instruction of the manipulator.
For example, if necessary to three box Tylenols of storage.The maximum magnitude that single manipulator can accommodate is greater than or equal to 3, exampleIf maximum magnitude is 4 or with last.So, control system is found out in two manipulators to the most short of each best effective term areaPath, so that the control instruction controlled the manipulator for corresponding to shortest path is generated, so that the manipulator be driven to be completedStore operation.
If so, obtaining the specific location that best effective term area is located at drug storage, the drug of best effective term area is judgedWhether specific location is located at the left and right sides of drug storage;If so, generating the control instruction for being respectively used to two manipulators of control.
For example, if necessary to three box Tylenols of storage.The maximum magnitude that single manipulator can accommodate is less than 3, such as maximumRange is 2.So, it is necessary to which two manipulators respectively take once, alternatively, a manipulator takes twice.
At this point, whether in the two sides in pharmacy library, (center with prescription library is drug of the judgement in best effective term areaIt is quasi-), if in two sides, in view of taking the convenience of medicine and convenient next time, then generating control instruction, the control instruction energyEnough drive the two manipulator behaviors.
If it is not, so judging the drug whether in the preset range of the unilateral side of drug storage.
If generating control instruction not in the preset range of unilateral side, which can drive the twoManipulator behavior.If generating control instruction, which, which can only drive, is located in the preset range of unilateral sideManipulator behavior in the unilateral side.
For example, if the 3 box Tylenol drugs in best effective term area not in the two sides in pharmacy library, and in unilateral sideIn one third (proximal edges are along the one third to drug storage), controlled then then only having a manipulator.If 3 boxes are safePromise is at the one third to half of unilateral side, then by two manipulator controls.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodimentDividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system realityFor applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the methodPart explanation.
It should be noted that system, device, module or unit that above embodiment illustrates, it specifically can be by computerChip or entity are realized, or are realized by the product with certain function.For convenience of description, in the present specification, it retouchesIt is divided into various units when stating apparatus above with function to describe respectively.It certainly, when implementing the application can be the function of each unitIt realizes in the same or multiple software and or hardware.
In addition, in the present specification, such as adjective as first and second can be only used for an element or moveMake to distinguish with another element or movement, without requiring or implying any actual this relationship or sequence.Permit in environmentPerhaps in the case where, it should not be interpreted as limited to one in only element, component or step referring to element or component or step (s)It is a, and can be the one or more etc. in element, component or step.
The embodiment of the present application also provides a kind of electronic equipment, the electronic equipment can specifically include input equipment, placeManage device, memory.Wherein, the input equipment specifically can be used for the design parameter of double-manipulator pharmacy control system.It is describedHandle the medicine information of the available drug to be stored of implement body, wherein medicine information to be stored includes drug name, corresponds to oftenThe date of manufacture of one drug to be stored and Quantity of drugs to be stored;It will be wait deposit according to the date of manufacture of each drug to be storedIt puts drug and is divided into multiple batches, and obtain the quantity of each batch, wherein each batch has the different effect phases;According to medicineThe effect phase of the name of an article and the batch searches the effect phase consistent vacancy space with the drug name and the batch, judgement in drug storageWhether the quantity of vacancy space is greater than or equal to the quantity of the batch.The storage implement body can be used for storage processor institute baseIn instruction repertorie.
In the present embodiment, the input equipment, which specifically can be, carries out information exchange between user and computer systemOne of main device.The input equipment may include keyboard, mouse, camera, scanner, light pen, writing input board, languageSound input unit etc.;Input equipment is used to initial data be input in computer with the programs for handling these numbers.The inputEquipment, which can also obtain, receives the data that other modules, unit, equipment transmit.The processor can be by any appropriateMode is realized.For example, processor can take such as microprocessor or processor and storage that can be executed by (micro-) processorComputer readable program code (such as software or firmware) computer-readable medium, logic gate, switch, specific integrated circuit(Application Specific Integrated Circuit, ASIC), programmable logic controller (PLC) and insertion microcontrollerForm etc..The storage implement body can be in modern information technologies for protecting stored memory device.The storageDevice may include many levels, in digital display circuit, as long as can save binary data can be memory;In integrated electricityThe circuit with store function of Lu Zhong, a not no physical form are also memory, such as RAM, FIFO;In systems, haveThere is the storage equipment of physical form to be also memory, such as memory bar, TF card.
In the present embodiment, the function and effect of electronic equipment specific implementation, can compare with other embodimentIt explains, details are not described herein.
Although mentioning different specific embodiments in teachings herein, the application is not limited to be industrySituation described in standard or embodiment etc., certain professional standards or the implementation base described using customized mode or embodimentOn plinth embodiment modified slightly also may be implemented above-described embodiment it is identical, it is equivalent or it is close or deformation after it is anticipated thatImplementation result.It, still can be with using these modifications or the embodiment of deformed data acquisition, processing, output, judgment mode etc.Belong within the scope of the optional embodiment of the application.
Although this application provides the method operating procedure as described in embodiment or flow chart, based on conventional or noninvasiveThe means for the property made may include more or less operating procedure.The step of enumerating in embodiment sequence is only numerous stepsOne of execution sequence mode, does not represent and unique executes sequence.It, can when device or client production in practice executesTo execute or parallel execute (such as at parallel processor or multithreading according to embodiment or method shown in the drawings sequenceThe environment of reason, even distributed data processing environment).The terms "include", "comprise" or its any other variant are intended to containLid non-exclusive inclusion, so that process, method, product or equipment including a series of elements are not only wanted including thoseElement, but also including other elements that are not explicitly listed, or further include for this process, method, product or equipmentIntrinsic element.In the absence of more restrictions, be not precluded include the process, method of the element, product orThere is also other identical or equivalent elements in person's equipment.
Device that above-described embodiment illustrates or module etc. can specifically realize by computer chip or entity, or by havingThere is the product of certain function to realize.For convenience of description, it is divided into various modules when description apparatus above with function to retouch respectivelyIt states.Certainly, the function of each module can be realized in the same or multiple software and or hardware when implementing the application,The module for realizing same function can be realized by the combination of multiple submodule etc..Installation practice described above is onlySchematically, for example, the division of the module, only a kind of logical function partition, can there is other draw in actual implementationThe mode of dividing, such as multiple module or components can be combined or can be integrated into another system, or some features can be ignored,Or it does not execute.
It is also known in the art that other than realizing controller in a manner of pure computer readable program code, it is completeEntirely can by by method and step carry out programming in logic come so that controller with logic gate, switch, specific integrated circuit, programmableLogic controller realizes identical function with the form for being embedded in microcontroller etc..Therefore this controller is considered one kindHardware component, and the structure that the device for realizing various functions that its inside includes can also be considered as in hardware component.OrPerson even, can will be considered as realizing the device of various functions either the software module of implementation method can be hardware againStructure in component.
The application can describe in the general context of computer-executable instructions executed by a computer, such as programModule.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, groupPart, data structure, class etc..The application can also be practiced in a distributed computing environment, in these distributed computing environments,By executing task by the connected remote processing devices of communication network.In a distributed computing environment, program module canTo be located in the local and remote computer storage media including storage equipment.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application canIt realizes by means of software and necessary general hardware platform.Based on this understanding, the technical solution essence of the applicationOn in other words the part that contributes to existing technology can be embodied in the form of software products, the computer software productIt can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that a computer equipment(can be personal computer, mobile terminal, server or the network equipment etc.) executes each embodiment of the application or implementationMethod described in certain parts of example.
Each embodiment in this specification is described in a progressive manner, the same or similar portion between each embodimentDividing may refer to each other, and each embodiment focuses on the differences from other embodiments.The application can be used for crowdIn mostly general or special purpose computing system environments or configuration.Such as: personal computer, server computer, handheld device orPortable device, laptop device, multicomputer system, microprocessor-based system, set top box, programmable electronics setStandby, network PC, minicomputer, mainframe computer, distributed computing environment including any of the above system or equipment etc..
Although depicting the application by embodiment, it will be appreciated by the skilled addressee that the application there are many deformation andVariation is without departing from spirit herein, it is desirable to which appended embodiment includes these deformations and changes without departing from the application.