Disclosure of Invention
The embodiment of the application aims to provide a traditional Chinese medicine preparation system and a method, which are used for solving the problem that a patient needs to wait too long time for taking a prepared traditional Chinese medicine preparation after seeing a doctor in a hospital due to high labor cost, low management efficiency, uncontrollable preparation process and other reasons in the traditional Chinese medicine preparation center in a manual, offline and papery preparation management mode.
The traditional Chinese medicine preparation system provided by the embodiment of the application comprises:
the diagnosis subsystem is used for acquiring the identity information of the patient and the corresponding clinical information and sending the identity information and the corresponding clinical information to the server;
the server is in communication connection with the diagnosis subsystem and is used for receiving the patient identity information and the corresponding clinical information sent by the diagnosis subsystem; sending the clinical information to a pharmacy subsystem; receiving the manufacturing completion information sent by the pharmaceutical subsystem; establishing communication connection with a designated terminal according to the identity information of the patient, and sending the manufacturing completion information to the designated terminal;
the pharmacy subsystem is in communication connection with the server and used for receiving the clinical information sent by the server; preparing information of the Chinese medicinal preparation through a dispensing process and a preparation process according to clinical prescription information; and sending the manufacturing completion information to a server.
According to the technical scheme, the traditional Chinese medicine preparation system comprises a diagnosis subsystem, a server and a pharmacy subsystem, wherein the diagnosis subsystem acquires identity information of a patient and corresponding clinical information and sends the clinical information to the server, the server sends the clinical information to the pharmacy subsystem, the pharmacy subsystem obtains manufacturing completion information of the traditional Chinese medicine preparation through a dispensing process and a preparation process according to the clinical information and sends the manufacturing completion information to the server, the server sends the manufacturing completion information to a designated end of a user, and the user can self-extract the manufactured traditional Chinese medicine preparation according to the manufacturing completion information. Therefore, the embodiment of the invention has low labor cost, improves the management efficiency, has controllable preparation process, shortens the waiting time of a patient to take the traditional Chinese medicine preparation after seeing a doctor in a hospital, is convenient for the user to freely arrange to take the medicine, and improves the user experience.
In some alternative embodiments, the diagnostic subsystem comprises:
the first acquisition device is used for acquiring medical record information;
the first control device is connected with the first acquisition device and used for outputting diagnosis information by using the trained diagnosis model according to the medical record information;
the interactive device is connected with the first control device and used for presenting diagnosis information for assisting a doctor to diagnose; and receiving clinical information obtained by on-site diagnosis of a doctor and sending the clinical information to a server.
In the technical scheme, the diagnosis subsystem is used for assisting a doctor in on-site diagnosis, the first acquisition device such as a four-diagnostic apparatus acquires medical record information such as facial image, tongue image or pulse image and the like, the medical record information is input into the diagnosis model to obtain diagnosis information assisting the doctor in diagnosis, the diagnosis information comprises disease information, clinical information and the like, and the doctor develops the clinical information by combining the diagnosis information and inputs the clinical information through the interaction device.
In some alternative embodiments, the diagnostic subsystem comprises:
the first acquisition device is used for acquiring medical record information;
the first control device is connected with the first acquisition device and used for outputting diagnosis information and sending the diagnosis information to the server by using the trained diagnosis model according to the medical record information; the diagnostic information includes at least clinical information.
According to the technical scheme, the diagnosis subsystem is used for directly diagnosing the acquired medical record information to obtain a diagnosis result, the diagnosis information containing the clinical information is sent to the server, the server sends the clinical information to the pharmacy subsystem, manual participation is not needed from diagnosis to pharmacy, and the automation and intelligence degree is higher.
In some alternative embodiments, the pharmaceutical subsystem comprises:
the dispensing equipment is in communication connection with the server and used for executing the dispensing process of the decoction pieces according to the clinical information;
the decoction equipment is in communication connection with the server and used for acquiring decoction parameters according to the clinical information; the Chinese medicinal decoction pieces are prepared into water decoction according to the decoction parameters.
In the technical scheme, the dispensing equipment accurately selects the type and the dosage of the traditional Chinese medicine decoction pieces according to the received electronic clinical information, enters the charging barrel and is conveyed to a decocting area through the conveying device. The decocting device in the decocting area mainly comprises a decoction piece soaking barrel, a decocting pot cleaning machine, a rotary decocting table, a decoction dreg conveying belt, a decoction dreg processing device, a filter screen cleaning device, a manipulator, a liquid medicine packaging machine and the like. The prepared traditional Chinese medicine decoction pieces are conveyed to a decoction piece soaking barrel on a rotary decoction table by a conveying device, the decoction pieces are soaked for a certain time and then enter a decoction station for decoction, and the decoction liquid after decoction according to the decoction process is conveyed to a solid preparation area by a robot or packaged by a liquid medicine packaging machine. The used soaking barrel and the used decocting barrel are cleaned by a decocting pot cleaning machine, and the liquid medicine filter screen is cleaned by a filter screen cleaning device. The medicine residue is conveyed to a medicine residue processing device through a medicine residue conveying belt for processing treatment.
In some alternative embodiments, the dispensing device comprises:
the storage device comprises at least one medicine cabinet, and each medicine cabinet is provided with a corresponding medicine cabinet code;
the second control device is in communication connection with the server, a plurality of medicine cabinet codes and corresponding position information and decoction piece information are stored in the second control device, and the second control device is used for receiving the clinical party information and sending the corresponding position information to the grabbing device according to the decoction piece information in the clinical party information;
and the grabbing device is connected with the second control device and is used for receiving the position information corresponding to the medicine cabinet codes, grabbing the decoction pieces according to the position information of the medicine cabinet and checking the medicine cabinet codes on the medicine cabinet before grabbing.
According to the technical scheme, the dispensing equipment comprises a storage device, a second control device and a grabbing device, the server sends decoction piece information in the clinical information to the second control device of the dispensing equipment, the second control device inquires medicine cabinet numbers and position information corresponding to the decoction piece information in the clinical information and sends the medicine cabinet numbers and the position information to the grabbing device, the grabbing device grabs the decoction pieces according to the position information of the medicine cabinets, and medicine cabinet codes on the medicine cabinets are checked before grabbing.
In some optional embodiments, the second control device is further configured to determine whether the plurality of decoction pieces need to adopt different decocting processes based on the plurality of decoction pieces in the clinical information; when various decoction pieces need to adopt different decocting processes, determining to use a dispensing strategy corresponding to the decocting processes, wherein the dispensing strategy represents the number of containers for containing various decoction pieces; and (4) dispensing various decoction pieces according to a dispensing strategy.
In the technical scheme, the traditional manual dispensing mode is replaced by the traditional Chinese medicine dispensing mode provided by the embodiment of the application, and whether different decocting processes are needed or not is determined according to various decoction pieces in the prescription information, so that a dispensing strategy for determining whether the various decoction pieces need to be stored in barrels or not is achieved, and preparation is provided for firstly decocting and then downwards preparing in the decocting process.
In some alternative embodiments, the decocting apparatus includes:
the third control device is in communication connection with the server and is used for acquiring the information of the adjacent party; the clinical prescription information at least comprises prescription composition information and prescription dosage information; matching the clinical prescription information with the existing prescription in the prescription database from different dimensions, wherein each dimension obtains an existing prescription and corresponding decocting parameters; the prescription database comprises at least one existing prescription and corresponding decocting parameters; inputting a data sequence formed by the decocting parameters corresponding to all dimensions into a pre-trained decocting parameter decision model to obtain decocting parameters and sending the decocting parameters to a decocting machine;
and the medicine decocting machine is connected with the third control device and is used for executing the decocting process according to the decocting parameters.
In the technical scheme, the prescription information comprises information of different dimensions, such as prescription composition information, prescription dosage information, prescription efficacy information, prescription indication information and the like, and the prescription information is subjected to similarity matching with existing prescriptions in a prescription database from different dimensions. The prescription database is composed of ancient prescriptions or classical prescriptions which can embody that one prescription is decocted, and comprises the existing prescriptions and the corresponding decocting parameters. Matching the existing prescription and matching the corresponding decocting parameters of the existing prescription. And inputting the frying parameters corresponding to different dimensions into the frying parameter decision model to obtain the only frying parameter. The decocting parameters comprise the water adding amount of unit weight (such as 100g), the strong fire time, the slow fire time, the soaking time, the first decoction and the second decoction, and the like, the decocting method conforms to the decocting logic of the ancient or classical famous prescription, embodies the personalized characteristics of the traditional Chinese medicine decocting, meets the requirement of one decoction, has high heating control precision on the drinking tablet, and ensures the drug effect.
In some optional embodiments, the decocting apparatus further comprises:
the second acquisition device is connected with the third control device and is used for acquiring various characteristic time sequence data generated in the decocting process in real time and sending the data to the third control device;
the third control device is also used for acquiring various characteristic time sequence data; index time sequence data which are corresponding to the various characteristic time sequence data and are used for indicating the quality of the liquid medicine are searched from the experience database; the experience database comprises index time sequence data corresponding to the characteristic time sequence data; and generating an operation instruction according to the various characteristic time sequence data and the index time sequence data, and sending the operation instruction to the medicine decocting machine.
According to the technical scheme, the various characteristic time sequence data generated in the decocting process are collected in real time, the corresponding index time sequence data are matched in the experience database, the operation instruction is generated according to the various characteristic time sequence data and the index time sequence data, and the operation instruction is sent to the decocting machine to control slow fire time, strong fire time, whether water is added or not and the like.
In some optional embodiments, the third control device is further configured to obtain the predicted fabrication completion information according to the decoction parameters and send the predicted fabrication completion information to the server;
the server is also used for sending the prediction production completion information to the designated end.
According to the technical scheme, when the preparation required by the user is decoction, the preparation completion information, such as the time for completing decoction, the time for completing packaging, the time for taking medicine, the volume of the decocted decoction and the like, can be predicted according to the decoction parameters, and the prediction is provided for the user, so that the user can make a plan arrangement according to the prediction, and the user experience is improved.
In some optional embodiments, the pharmaceutical subsystem further comprises:
the solid preparation equipment is in communication connection with the server and is used for acquiring parameters of the decocted water decoction; determining the technological parameters of the solid preparation according to the parameters of the water decoction; and (3) preparing the water decoction into a solid preparation according to the technological parameters of the solid preparation.
In the above technical solution, the solid preparation equipment located in the solid preparation area includes, for example, a spray drying device, a wet granulator, a fluidized bed dryer, a granulator, a dry granulator, a capsule filling machine, a bagging machine, a tablet press, a coating machine, an AGV transport cart, a mobile robot, and the like. When the formulation decision instruction is a solid formulation, the transport trolley transports the liquid medicine decocted in the decocting area to a spray drying device, the liquid medicine is prepared into solid powder, and then wet granulation, boiling drying and granule finishing are carried out sequentially through a wet granulator, a boiling bed dryer and a granule finishing machine, or dry granulation is carried out directly through a dry granulator to obtain granules. The granules can be filled into capsules by a capsule filling machine, or can be tabletted and coated by a tabletting machine and a coating machine to prepare tablets. The granules, capsules and tablets are packaged by a bag packaging machine and are attached with information codes.
In some alternative embodiments, the solid dosage device comprises:
the third acquisition device is used for acquiring parameters of the water decoction;
the fourth control device is connected with the third acquisition device and is used for matching the parameters of the water decoction with the parameters of the existing water decoction in the solid preparation process library; the solid preparation process library comprises the existing water decoction parameters and the corresponding solid preparation process parameters; if the solid preparation process parameters corresponding to the target water decoction parameters are matched, outputting the solid preparation process parameters corresponding to the target water decoction parameters to solid preparation equipment; if not, generating logic by using a solid preparation process, generating corresponding solid preparation process parameters according to the water decoction parameters, and sending the corresponding solid preparation process parameters to a solid preparation device;
and the solid preparation device is connected with the fourth control device and is used for preparing the water decoction into a solid preparation according to the technological parameters of the solid preparation.
In the above technical scheme, the parameters of the water decoction and the existing parameters of the water decoction both include at least one of the cream yield, viscosity and relative density, and the first parameter of the water decoction is one of all the existing parameters of the water decoction in the solid preparation process library. Matching the traditional Chinese medicine water decoction parameters in a solid preparation process library, and if the traditional Chinese medicine water decoction parameters can be matched, sending the solid preparation process parameters corresponding to the matched first water decoction parameters to solid preparation equipment, so that the solid preparation equipment performs related configuration according to the solid preparation process parameters and realizes personalized solid preparation according to the corresponding process flow. If the matching fails, generating a solid preparation process parameter by utilizing a solid preparation process generation logic, and sending the solid preparation process parameter to solid preparation equipment, so that the solid preparation equipment performs related configuration according to the solid preparation process parameter and realizes personalized solid preparation according to a corresponding process flow. Therefore, the embodiment of the application can generate corresponding process parameters for the temporary prescription issued by the front end, and complete the solid preparation of the corresponding process flow.
In some alternative embodiments, the solid formulation device comprises: at least one of a spray drying device, a dry granulation device, a wet granulation device, a tablet compression device, and a pill preparation device.
In some alternative embodiments, the solid dosage device further comprises:
the image acquisition device is connected with the fourth control device and used for acquiring the images of the tablets or pills after the solid preparation is finished and sending the images to the fourth control device;
the fourth control device is also used for judging whether the shape, the size and the color difference are qualified or not according to the image of the tablet or the pill.
Above-mentioned technical scheme, judge the shape and the size of pill, include: acquiring an image of the pill on an inclined discharging platform; fitting a first straight line to the discharging platform in the image, and establishing a rectangular coordinate system according to the inclination angle and the vertical line of the first straight line; fitting a circle to the pill in the image, and determining the diameter and the circle center of the pill; determining whether the difference in the diameters of any two pills is less than a first threshold: if the diameter difference of the two pills is smaller than a first threshold value, the size uniformity degree is higher, and whether the maximum value of the circle center y values of the pills is smaller than a second threshold value is continuously judged: if so, the shape of the pill is qualified; if not, the pill is considered to be less rounded.
Determining the size and shape of the tablet, including: firstly, acquiring an image by means of overhead shooting, and fitting corresponding squares, circles, ellipses and the like to the tablets in the image according to different shapes of the tablets, such as squares, circles, ellipses and the like; and judging the fitted square, round and oval. Judging the difference of the side lengths of the square tablets; judging the difference of the diameters of the round tablets; if the tablet is an ellipse tablet, the difference value of the long axis and the short axis is judged.
And judging the color difference by comparing the RGB values belonging to the pills or tablets in the image.
In some optional embodiments, the fourth control device is further configured to obtain the predicted manufacturing completion information according to the solid preparation process parameters and send the predicted manufacturing completion information to the server.
According to the technical scheme, when the preparation required by the user is a solid preparation, the preparation completion information can be predicted according to the technological parameters of the solid preparation, such as the preparation completion time, the packaging completion time, the medicine taking time, the size and the number of tablets or pills and the like, and the prediction is provided for the user, so that the user can make a plan arrangement according to the prediction, and the user experience is improved.
In some optional embodiments, the pharmaceutical subsystem further comprises:
and the sorting equipment is in communication connection with the server and is used for identifying and screening the purchased decoction pieces according to the hyperspectrum to acquire the decoction piece information.
In the technical scheme, before the traditional Chinese medicine decoction pieces enter the storage device, the optical and electric technical detection and analysis are carried out by the sorting equipment, so that the quality of the decoction pieces is ensured.
In some optional embodiments, the pharmaceutical subsystem further comprises:
and the transportation device is in communication connection with the server and is used for moving the screened decoction pieces into the corresponding medicine cabinets according to the decoction piece information identified by the sorting equipment.
In some optional embodiments, the pharmaceutical subsystem further comprises:
the liquid medicine packaging machine is in communication connection with the server and is used for packaging the water decoction into liquid medicine bags;
at least one of the code spraying machine, the code pasting machine and the RFID writer is in communication connection with the server and used for acquiring the identity information and the clinical information of the patient and storing the medicine taking information in the identity information and the clinical information of the patient to the two-dimensional code, the bar code or the RFID information on the liquid medicine bag.
Among the above-mentioned technical scheme, through ink jet numbering machine, ink recorder or RFID write-in ware, add patient's identity information and clinical side's information to the liquid medicine package, avoid the user to take other people's liquid medicine package by mistake to conveniently acquire the information of taking medicine in the clinical side's information, take medicine according to the volume on time.
In some optional embodiments, the medicine taking device further comprises a home medicine taking device, wherein the home medicine taking device comprises:
the reading device is used for reading at least one of the two-dimensional code, the bar code or the RFID information on the liquid medicine package to obtain medicine taking information and sending the medicine taking information to the reminding device; the medicine taking information at least comprises the medicine taking time;
and the fifth control device is connected with the reading device and used for outputting first prompt information by the reminding device if the difference value between the medicine taking time and the current time is not larger than the first set threshold value, wherein the first prompt information is used for reminding the patient to take the medicine on time.
Among the above-mentioned technical scheme, the accommodate device that treats the medicine of taking carries the information of taking medicine, and this information of taking medicine can be thought to include the preset time of taking medicine at least, and the reminding device that treats the medicine of taking can read the preset time of taking medicine that above-mentioned accommodate device carried through close range communication mode to when confirming that the preset time of taking medicine is comparatively close with the current time, then export tip information to the patient to remind the patient to take medicine on time. In the method, the patient is reminded to take the medicine at the time close to the preset medicine taking time, so that the patient can take the medicine on time, and the rehabilitation of the disease of the patient is facilitated.
In some optional embodiments, the home medication apparatus further comprises:
the heating device is used for heating the liquid medicine bag so as to heat the traditional Chinese medicine decoction to the medicine taking temperature in the medicine taking information;
and the fifth control device is also used for outputting second prompt information to the heating device by the reminding device if the difference value between the medicine taking time and the current time is larger than the first set threshold and smaller than the second set threshold, wherein the second set threshold is larger than the first set threshold.
Among the above-mentioned technical scheme, the information of taking medicine of this application embodiment still includes and presets the temperature of taking medicine, reminding device can be before reminding the patient to take medicine on time, will hold traditional chinese medicine decoction that holds in the device in advance and heat to the temperature of taking medicine of presetting, both can guarantee that the patient can take medicine on time at the time of presetting the time of taking medicine, and not just begin manually to heat traditional chinese medicine decoction to the time of having taken medicine in presetting, can guarantee again that the traditional chinese medicine decoction that the patient took furthest exerts the drug effect.
In some optional embodiments, further comprising a home diagnostic device comprising:
the fourth acquisition device is used for acquiring and tracking medical record information;
and the communication device is used for transmitting the tracking medical record information to the diagnosis subsystem and receiving the diagnosis information transmitted by the diagnosis subsystem.
According to the technical scheme, the family diagnosis equipment is in communication connection with the server, tracking medical record information of the patient at home is collected, the tracking medical record information is sent to the diagnosis subsystem, the corresponding diagnosis information is obtained by using the diagnosis model, the problem that the patient is difficult to see is solved, and meanwhile, the workload of doctors is reduced.
In some alternative embodiments, the designated end comprises a logistics platform;
the server is also used for acquiring the logistics request and sending the logistics request to the logistics platform;
and the logistics platform formulates a logistics distribution task according to the logistics request, the patient identity information and the manufacturing completion information.
Among the above-mentioned technical scheme, the user can require logistics distribution according to self demand, and the server sends logistics request, patient's identity information and preparation completion information to the logistics platform, and the logistics platform can appoint corresponding logistics distribution task, need not the user and gets it filled in person, improves user experience.
In some optional embodiments, the designated end includes a patient terminal, and the patient terminal receives the production completion information through an APP built-in applet, a voice communication module or a short message module.
The traditional Chinese medicine preparation method provided by the embodiment of the application is applied to a server and comprises the following steps:
receiving patient identity information and corresponding clinical information sent by a diagnosis subsystem;
sending the clinical information to a pharmacy subsystem;
receiving the manufacturing completion information sent by the pharmaceutical subsystem;
and establishing communication connection with the designated terminal according to the identity information of the patient, and sending the manufacturing completion information to the designated terminal.
In some optional embodiments, further comprising:
receiving a logistics request;
establishing communication connection with a specified logistics platform according to the logistics request, and sending the identity information of the patient to the specified logistics platform; the patient identity information includes name, phone, and address information.
The method for preparing the traditional Chinese medicine preparation provided by the embodiment of the application is applied to a diagnosis subsystem and comprises the following steps:
acquiring medical record information;
according to the medical record information, the diagnosis information is output by using the trained diagnosis model;
presenting the diagnostic information;
and receiving clinical information obtained by on-site diagnosis of a doctor.
In some alternative embodiments, the medical record information includes at least one of tongue information, facial information, and pulse information;
the diagnostic information includes condition information and/or clinical information.
In some alternative embodiments, the training of the diagnostic model comprises:
acquiring sample data; the sample data comprises medical record information and corresponding diagnosis information;
and training the sample data by adopting a BP neural network, and correcting network parameters for multiple times to obtain a trained diagnosis model.
The method for preparing the traditional Chinese medicine preparation provided by the embodiment of the application is applied to a diagnosis subsystem and comprises the following steps:
acquiring medical record information;
according to the medical record information, the diagnosis information is output by using the trained diagnosis model; the diagnostic information includes at least clinical information;
and sending the neighbor information to a server.
The method for preparing the traditional Chinese medicine preparation provided by the embodiment of the application is applied to a pharmacy subsystem and comprises the following steps:
receiving neighbor information sent by a server;
preparing information of the Chinese medicinal preparation through a dispensing process and a preparation process according to clinical prescription information;
and sending the manufacturing completion information to a server.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
The traditional Chinese medicine preparation system and the method provided by the embodiment of the invention have the advantages that the preparation process is controllable, the labor cost is low, the waiting time from the patient to the traditional Chinese medicine preparation after the patient is seen in a hospital is shortened, the user can conveniently and freely arrange to take the medicine, and the user experience is improved.
In order to facilitate understanding of the embodiments of the present invention, a traditional Chinese medicine preparation system provided by the embodiments of the present invention is first described in detail:
referring to fig. 1, fig. 1 is a schematic structural diagram of a chinese materia medica preparation system provided in an embodiment of the present application, including a diagnosis subsystem 3, a server 1, and a pharmaceutical subsystem 2.
The diagnosis subsystem 3 is used for acquiring the identity information of the patient and the corresponding clinical information and sending the identity information and the corresponding clinical information to the server 1. The server 1 is in communication connection with the diagnosis subsystem 3 and is used for receiving the patient identity information and the corresponding clinical party information sent by the diagnosis subsystem 3; sending the clinical information to the pharmacy subsystem 2; receiving the manufacturing completion information sent by the pharmaceutical subsystem 2; and establishing communication connection with the designated terminal according to the identity information of the patient, and sending the manufacturing completion information to the designated terminal. The pharmacy subsystem 2 is in communication connection with the server 1 and used for receiving the clinical information sent by the server 1; preparing information of the Chinese medicinal preparation through a dispensing process and a preparation process according to clinical prescription information; the production completion information is sent to the server 1.
Wherein, the appointed terminal comprises a logistics platform, a patient terminal, a doctor terminal and the like. When the logistics platform is connected, the server 1 is further used for acquiring a logistics request and sending the logistics request to the logistics platform; the logistics platform formulates the logistics distribution task according to the logistics request, the patient identity information and the manufacturing completion information, therefore, a user can require logistics distribution according to the self demand, the server 1 sends the logistics request, the patient identity information and the manufacturing completion information to the logistics platform, the logistics platform can designate the corresponding logistics distribution task, the user does not need to take medicine in person, and the user experience is improved. The doctor terminal is similar to the patient terminal and can be a handheld mobile terminal, a notebook computer or other electronic equipment, and the doctor terminal or the patient terminal receives the making completion information through an APP built-in small program, a voice communication module or a short message module.
The traditional Chinese medicine preparation system comprises a diagnosis subsystem 3, a server 1 and a pharmacy subsystem 2, wherein the diagnosis subsystem 3 acquires identity information of a patient and corresponding clinical information and sends the patient identity information and the corresponding clinical information to the server 1, the server 1 sends the clinical information to the pharmacy subsystem 2, the pharmacy subsystem 2 obtains manufacturing completion information of a traditional Chinese medicine preparation through a dispensing process and a preparation process according to the clinical information and sends the manufacturing completion information to the server 1, the server 1 sends the manufacturing completion information to a designated end of a user, and the user can self-extract the manufactured traditional Chinese medicine preparation according to the manufacturing completion information. Therefore, the embodiment of the invention has low labor cost, improves the management efficiency, has controllable preparation process, shortens the waiting time of a patient to take the traditional Chinese medicine preparation after seeing a doctor in a hospital, is convenient for the user to freely arrange to take the medicine, and improves the user experience.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a diagnosis subsystem 3 provided in the embodiment of the present application, including a first acquisition device, a first control device, and an interaction device.
The first acquisition device is used for acquiring medical record information. And the first control device is connected with the first acquisition device and used for outputting the diagnosis information by utilizing the trained diagnosis model according to the medical record information. The interactive device is connected with the first control device and used for presenting diagnosis information for assisting a doctor to diagnose; and receiving clinical information obtained by on-site diagnosis of a doctor and sending the clinical information to the server 1. For example, the first acquisition device can be a four-diagnostic apparatus, and can acquire medical record information such as facial image, tongue image or pulse image. For another example, the first acquisition device only includes an input device, such as a voice input device, a keyboard, a touch screen, etc., for inputting medical record information into the diagnostic subsystem. The interaction means may be a touch screen.
The diagnosis subsystem 3 of the embodiment of the application is used for assisting a doctor in on-site diagnosis, the first acquisition device such as a four-diagnostic apparatus acquires medical record information such as facial image, tongue image or pulse image, the medical record information is input into the diagnosis model to obtain diagnosis information assisting the doctor in diagnosis, the diagnosis information comprises disease information, clinical information and the like, and the doctor combines the diagnosis information to develop the clinical information and inputs the clinical information through the interaction device.
As an alternative embodiment, the diagnostic subsystem 3 comprises first acquisition means and first control means, without the aforementioned interaction means. The first acquisition device is used for acquiring medical record information. The first control device is connected with the first acquisition device and used for outputting diagnosis information and sending the diagnosis information to the server 1 by using the trained diagnosis model according to the medical record information; the diagnostic information includes at least clinical information. The diagnostic information output by the first control device in the present embodiment is used as it is as the final diagnostic result.
The diagnosis subsystem 3 of this application embodiment is used for directly diagnosing the case history information of gathering and obtains the diagnosis result to the diagnostic information who contains clinical side's information sends server 1, and server 1 sends clinical side's information to pharmacy subsystem 2, need not artifical the participation from the diagnosis to the pharmacy, and degree of automation, intellectuality are higher.
Referring to fig. 3, fig. 3 is a schematic structural diagram of the pharmaceutical subsystem 2 according to the embodiment of the present invention, which includes a dispensing device 21 and a decocting device 22: and the dispensing equipment 21 is in communication connection with the server 1 and is used for executing the dispensing process of the decoction pieces according to the clinical information. The decocting equipment 22 is in communication connection with the server 1 and is used for acquiring decocting parameters according to the clinical information; the Chinese medicinal decoction pieces are prepared into water decoction according to the decoction parameters.
The dispensing equipment 21 of the embodiment of the application accurately selects the type and the dosage of the traditional Chinese medicine decoction pieces according to the received electronic clinical information, enters the charging barrel and is conveyed to a decocting area through the conveying device. The decocting device 22 of the decocting region may include a decoction piece soaking barrel, a decocting pot cleaning machine, a rotary decocting table, a residue conveying belt, a residue processing device, a filter screen cleaning device, a robot hand, a liquid medicine packing machine, etc. For example, the decoction process may be: the prepared traditional Chinese medicine decoction pieces are conveyed to a decoction piece soaking barrel on a rotary decoction table by a conveying device, the decoction pieces are soaked for a certain time and then enter a decoction station for decoction, and the decoction liquid after decoction according to the decoction process is conveyed to a solid preparation area by a robot or packaged by a liquid medicine packaging machine. The used soaking barrel and the used decocting barrel are cleaned by a decocting pot cleaning machine, and the liquid medicine filter screen is cleaned by a filter screen cleaning device. The medicine residue is conveyed to a medicine residue processing device through a medicine residue conveying belt for processing treatment. It should be appreciated that those of ordinary skill in the art may adapt the components included in the decocting device 22 based on changes in the application scenario.
As an alternative implementation, please refer to fig. 4, where fig. 4 is a schematic structural diagram of a dispensing apparatus 21 provided in an embodiment of the present application, and specifically includes a storage device 211, a second control device 212, and a gripping device 213.
The storage device 211 comprises at least one medicine cabinet, and each medicine cabinet has a corresponding medicine cabinet code. And the second control device 212 is in communication connection with the server 1, the second control device 212 stores a plurality of medicine cabinet codes and corresponding position information and decoction piece information, and the second control device 212 is used for receiving the temporary party information and sending the corresponding position information to the grabbing device 213 according to the decoction piece information in the temporary party information. And the grabbing device 213 is connected with the second control device 212, and the grabbing device 213 is used for receiving the position information corresponding to the medicine cabinet code, grabbing the decoction pieces according to the position information of the medicine cabinet, and checking the medicine cabinet code on the medicine cabinet before grabbing.
As an optional implementation manner, the second control device 212 is further configured to determine whether the multiple decoction pieces need to adopt different decocting processes based on the multiple decoction pieces in the clinical information; when various decoction pieces need to adopt different decocting processes, determining to use a dispensing strategy corresponding to the decocting processes, wherein the dispensing strategy represents the number of containers for containing various decoction pieces; and (4) dispensing various decoction pieces according to a dispensing strategy. According to the traditional Chinese medicine dispensing mode provided by the embodiment of the application, the traditional manual dispensing mode is replaced, whether different decocting processes are needed or not is determined according to various decoction pieces in prescription information, so that a dispensing strategy for determining whether the various decoction pieces need to be stored in barrels or not is achieved, and preparation is provided for first decocting and then making during the decocting process.
Referring to fig. 5, fig. 5 is a flowchart illustrating steps of a dispensing method applied to the second control device 212 according to an embodiment of the present disclosure, which specifically includes:
step 101, obtaining a plurality of decoction pieces based on clinical information, and judging whether the plurality of decoction pieces need to adopt different decocting processes.
The decoction process may include one or more of first decocting, second decocting, wrapping decocting, further decocting, melting, and taking with water, and may be applied according to the actual prescription.
In the embodiment disclosed by the application, whether different decocting processes are needed or not is judged according to the properties, meridian tropism, tetrageny, lifting, floating and sinking and the like of various decoction pieces. The properties of the decoction pieces can include the characteristics of the decoction pieces such as shape, color, smell, size, texture, section and the like, and simple physicochemical reaction, the channel tropism of the decoction pieces is the positioning of the action of the medicine, the four properties refer to four properties of cold, heat, warm and cold of the traditional Chinese medicine, and the rising and falling of the floating and sinking refer to different tropisms of the action of the medicine on the human body.
Specifically, the method for judging whether the decoction pieces need to adopt different decocting processes provided by the embodiment of the application can include: inquiring the characteristics corresponding to each type of the decoction pieces in the pre-constructed decoction piece characteristic database based on the plurality of types of decoction piece information, wherein the database stores the characteristics of the plurality of types of decoction pieces. And judging whether each decoction piece needs to adopt different decocting processes according to the characteristics.
In addition, whether other decocting processes are needed or not can be determined according to whether the medicinal herbs in the decoction pieces are mutually washed.
Step 102, when the plurality of decoction pieces need to adopt different decocting processes, determining to use a dispensing strategy corresponding to the decocting processes, wherein the dispensing strategy represents the number of containers for containing the plurality of decoction pieces.
Specifically, the embodiment of the present application further provides a step of determining a dispensing strategy, including: and when the decoction pieces need to be soaked firstly, decocted firstly or put down later, judging to use a plurality of containers to contain the decoction pieces. And judging to pack the decoction pieces into the corresponding containers based on the characteristics of the decoction pieces. The container used in the embodiments of the present application may be a cartridge, it being understood that the container for holding the decoction pieces may be specifically configured as the case may be.
The number of the containers can be specifically set according to the characteristics of the decoction pieces, the decoction pieces needing to be decocted by different decocting processes can be placed in one container, the decoction pieces with the same characteristics can be placed in one container, and only one type of decoction pieces can be placed in one container.
It should be understood that the decocting process in the embodiments of the present application is only exemplary, and other decocting manners such as pan-frying, additional-frying, melting, taking with water and decoction can be used.
Therefore, through the embodiment, the decoction pieces needing different decoction processes are separately stored in one container, so that different treatments can be conveniently carried out on the decoction pieces in the decoction process, and the efficiency from prescription preparation to preparation completion of the traditional Chinese medicine is improved.
103, dispensing the decoction pieces according to the dispensing strategy.
When dispensing tablets, if a plurality of containers are used, the containers need to be associated to determine that the tablets of the corresponding prescription are contained in each container.
The embodiment of the present application provides an implementation manner for associating a container with a prescription, including: when the containers are used for dispensing, the adjacent party information and the corresponding containers are associated based on the labels of the containers and the electronic adjacent party information, so that an association result is obtained. Placing each of the decoction pieces into a corresponding container of the plurality of containers based on the correlation results and the characteristics of the decoction pieces.
For example, a label is attached to the container, a two-dimensional code or a bar code may be set on the label, the two-dimensional code or the bar code is associated with the temporary party information, and the temporary party information corresponding to the container may be determined by scanning the two-dimensional code or the bar code.
Therefore, the container is associated with the corresponding prescription, the dispensing process is convenient to control, and especially when large-scale dispensing is carried out, the situation that decoction pieces of a plurality of prescriptions are filled into the same container by misoperation can be prevented, the dispensing process of the plurality of prescriptions can be conveniently managed, and the dispensing efficiency is improved.
After step 103, the dispensing result may be rechecked, and the rechecking includes the specific steps of: and carrying out image recognition on the prepared decoction pieces. And judging whether the decoction pieces are target decoction pieces or not based on the image identification result. When the decoction pieces are not the target decoction pieces, the container filled with the decoction pieces is conveyed to a specified position, and the steps of obtaining various decoction piece information based on the adjacent party information and dispensing the decoction pieces according to the dispensing strategy are executed again.
For example, the prepared decoction pieces can be photographed, the photographed pictures can be subjected to image recognition, and whether the prepared decoction pieces are accurate or not can be determined based on the recognition result and the decoction piece data in the decoction piece library.
In other embodiments, the dispensed decoction pieces can be identified in a hyperspectral scanning manner, and the process of image identification is referred to, which is not described herein again.
Therefore, the prepared decoction pieces are rechecked, and whether the prepared decoction pieces are accurate or not can be detected, so that the medication safety of patients is ensured.
Optionally, another method for dispensing and rechecking a traditional Chinese medicine provided in the embodiment of the present application includes: associating the clinical information with the image. Storing the neighbor information with the image in a predetermined storage location.
Therefore, the image of the identified decoction piece is associated with the clinical information and stored, dispensing evidence can be kept, verification can be performed during the patient re-diagnosis, data can be provided for a doctor, and the doctor can master the illness state of the patient.
Referring to fig. 6, fig. 6 is a schematic structural diagram of the decocting apparatus 22 provided in the embodiment of the present application, and specifically includes a third control device 221 and a decocting machine 222.
The third control device 221 is in communication connection with the server 1, and the third control device 221 is used for acquiring the information of the neighbor; the clinical prescription information at least comprises prescription composition information and prescription dosage information; matching the clinical prescription information with the existing prescription in the prescription database from different dimensions, wherein each dimension obtains an existing prescription and corresponding decocting parameters; the prescription database comprises at least one existing prescription and corresponding decocting parameters; the data sequence formed by the decoction parameters corresponding to all dimensions is input into a pre-trained decoction parameter decision model to obtain the decoction parameters, and the decoction parameters are sent to the decoction machine 222. The decocting machine 222 is connected to the third control device 221, and the decocting machine 222 is configured to execute a decocting process according to the decocting parameters.
The prescription information of the embodiment of the invention comprises information with different dimensions, such as prescription composition information, prescription dosage information, prescription efficacy information, prescription indication information and the like, and the prescription information is subjected to similarity matching with the existing prescription in the prescription database from different dimensions. The prescription database is composed of ancient prescriptions or classical prescriptions which can embody that one prescription is decocted, and comprises the existing prescriptions and the corresponding decocting parameters. Matching the existing prescription and matching the corresponding decocting parameters of the existing prescription. And inputting the frying parameters corresponding to different dimensions into the frying parameter decision model to obtain the only frying parameter. The decocting parameters comprise the water adding amount of unit weight (such as 100g), the strong fire time, the slow fire time, the soaking time, the first decoction and the second decoction, and the like, the decocting method conforms to the decocting logic of the ancient or classical famous prescription, embodies the personalized characteristics of the traditional Chinese medicine decocting, meets the requirement of one decoction, has high heating control precision on the drinking tablet, and ensures the drug effect.
Referring to fig. 7, fig. 7 is a flowchart illustrating a method for determining decoction parameters according to an embodiment of the present invention, which specifically includes:
step 201, acquiring clinical prescription information of a traditional Chinese medicine decoction to be decocted; the clinical prescription information at least comprises prescription composition information and prescription dosage information;
step 202, matching the clinical prescription information with the existing prescription in the prescription database from different dimensions, wherein each dimension obtains an existing prescription and a corresponding decocting parameter; the prescription database comprises at least one existing prescription and corresponding decocting parameters;
in step 202, the clinical prescription information includes information of different dimensions, such as prescription composition information, prescription dosage information, prescription efficacy information, prescription indication information, and the like, and similarity matching is performed between the clinical prescription information and existing prescriptions in the prescription database from different dimensions. The prescription database is composed of ancient prescriptions or classical prescriptions which can embody that one prescription is decocted, and comprises the existing prescriptions and the corresponding decocting parameters.
Step 203, inputting the data sequence formed by the frying parameters corresponding to all dimensions into a frying parameter decision model trained in advance to obtain the frying parameters.
Wherein, the existing prescription matched in step 202 is matched, and the decocting parameters corresponding to the existing prescription are matched, and the decocting parameters comprise water adding amount of unit weight (such as 100g), strong fire time, slow fire time, soaking time, first decocting and then decocting, whether to decoct for two times, and the like. And inputting the frying parameters corresponding to different dimensions into the frying parameter decision model to obtain the only frying parameter. The decoction parameters conform to the decoction logic of the ancient or classical famous prescription, the individual characteristics of the traditional Chinese medicine decoction are reflected, the requirement of one prescription for decocting is met, the heating control precision of the decoction pieces is high, and the drug effect is ensured.
The different dimensions of the embodiment of the invention specifically include four dimensions of prescription composition information, prescription dosage information, prescription efficacy information or prescription indication information, and the matching method corresponding to each dimension is described in detail below.
Matching according to the dimension of the prescription composition information to obtain the existing prescription and the corresponding decocting parameters, and specifically comprises the following steps:
and calculating the similarity between the clinical information and the existing prescription in the prescription database by using the dimension of the prescription composition information and adopting JACCARD similarity coefficient, cosine similarity or Pearson correlation coefficient and the like, and outputting the existing prescription with the highest similarity and the corresponding decocting parameter. Similarity comparison is carried out according to the dimension of the prescription composition, only the difference of the medicine composition in the prescription is compared, and the JACCARD similarity coefficient is selected to calculate the similarity of the prescription composition in the embodiment of the invention. The JACCARD similarity coefficient calculation method is as follows:
Sim(X,Y)=|X∩Y|/|X∪Y|
wherein X and Y are respectively composed of two prescriptions.
Matching according to the dimension of prescription dosage information to obtain the existing prescription and the corresponding decocting parameters, and specifically comprises the following steps:
and calculating the similarity between the clinical prescription information and the existing prescription in the prescription database by using the dimension of the prescription dosage information and adopting JACCARD similarity coefficient, cosine similarity or Pearson correlation coefficient and the like, and outputting the existing prescription with the highest similarity and the corresponding decocting parameter. Similarity comparison is carried out according to the dimension of prescription dose information, complex information of traditional Chinese medicine components and dose components of the prescription is compared, and a cosine similarity algorithm is adopted in the embodiment of the application. Because the dosage units of a plurality of traditional Chinese medicines are different, for example, the dosage units are grams, tablets and the like, and the common dosage ranges of most traditional Chinese medicines are different, standardized treatment is needed to eliminate the influence caused by different unit or dosage fluctuation ranges. Therefore, the dose after a uniform unit is normalized:
Xi=X1/(Xmin+Xmax)
wherein Xi is a standardized dose, X1 is an actual application dose, and Xmin and Xmax are respectively a minimum value and a maximum value of a common dose.
After all the doses are normalized, the similarity of the prescription doses is calculated by using cosine similarity:
wherein X and Y are the prescription dosages of two prescriptions respectively.
Adopting potential Dirichia according to the dimension of prescription efficacy informationIn the LDA (Latent Dirichlet Allocation) topic model algorithm, in the calculation of efficacy similarity of a prescription, according to treatment classification, the prescription is divided into 21 classes such as an exterior-resolving agent, a purgative agent, an antidote and the like, and the establishment of the relation of the three in the LDA, namely 'document-topic-term' is converted into the establishment of the relation of the three in the LDA, namely 'prescription-treatment-composition'. The specific LDA-based method comprises the following steps: according to a prior probability P (d)
i) Selecting a Chinese medicinal prescription d
i. Dirichlet (Dirichlet) prior distribution according to prescription-cure
Sampling to generate a Chinese medicinal prescription d
iDistribution of therapeutic methods
In other words, therapeutic distribution
Is a dirichlet distribution with hyper-parameters as prescription-treatment
Is generated. From Chinese medicinal formulae d
iDistribution of therapeutic methods
Sampling to generate a Chinese medicinal prescription d
iTherapeutic method T of the jth component of (1)
ij. According to the law-a priori distribution of the components Dirichlet (Dirichlet)
Sampling to generate therapeutic method T
ijCorresponding composition distribution
In other words, the composition distribution
By using hyperparametric parameters as treatment-Dirichlet prior distribution of composition components
Is generated. From the composition distribution
Final formation component C of intermediate sampling
ij. Taking out the corresponding therapeutic distribution of the target prescription, expressing the other prescriptions by the corresponding therapeutic distribution, and calculating KL distance D between the target prescription and each of the other prescriptions
KL(p, q), and the calculated value is the similarity of the target prescription and any other prescription. The prescription with the greatest similarity to the target prescription is the prescription with the most similar therapeutic method, and the decoction parameters are taken as the final decoction parameters.
The establishment of the three relationships of 'document-subject-lexical item' in LDA is respectively converted into the establishment of the three relationships of 'prescription-symptom-composition' in the calculation of the main treatment similarity of the prescription according to 150 syndrome types in the dialectical treatment of traditional Chinese medicine by using the dimension of the prescription main treatment information and adopting a Latent Dirichlet Allocation (LDA) topic model algorithm. The specific steps of the LDA-based method are different from the dimension of prescription efficacy information in parameter setting.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a decocting apparatus 22 according to an embodiment of the present application, and the decocting apparatus 22 according to the embodiment of the present application further includes a second collecting device 223.
Wherein, the second collecting device 223 is connected with the third control device 221, and the second collecting device 223 is used for collecting the time series data of various characteristics generated in the decocting process in real time and sending the data to the third control device 221. The third control means 221 is further configured to obtain various characteristic timing data; index time sequence data which are corresponding to the various characteristic time sequence data and are used for indicating the quality of the liquid medicine are searched from the experience database; the experience database comprises index time sequence data corresponding to the characteristic time sequence data; and generating an operation instruction according to the various characteristic time sequence data and the index time sequence data, and sending the operation instruction to the drug decocting machine 222.
In the embodiment of the present invention, the characteristic time series data of the decocting device 22 during the decocting process is adjusted by the experience database established in advance, so that the liquid medicine quality corresponding to the characteristic time series data of the decocting device 22 gradually approaches to the desired liquid medicine quality corresponding to the index time series data in the experience database, that is, the control accuracy of the decocting process is improved, and the ideal liquid medicine quality is approached by accurately controlling the decocting process of the decocting machine 222. The two stages of establishing the experience database and using the experience database are as follows:
referring to fig. 9, fig. 9 is a flowchart illustrating steps of constructing an experience database, which specifically includes:
and 301, acquiring various characteristic time sequence data.
The characteristic time series data refers to time series data affecting the quality of the liquid medicine of the decocting device 22, and specifically includes: the temperature of the liquid medicine, the firepower (strong fire/slow fire), the heating temperature, the material-liquid ratio (namely the ratio of the decoction pieces to the liquid medicine), the pressure and the like. During the process of decocting the decoction pieces of traditional Chinese medicine, the decocting device 22 may control the characteristic time sequence data, specifically for example: the quality of the liquid medicine in the decocting process can be controlled by controlling the fire power, the pressure and the time point and quantity of putting the decoction pieces.
And step 302, acquiring index time sequence data corresponding to the multiple kinds of characteristic time sequence data.
The index time series data may include: the concentration of the liquid medicine, the extraction rate or/and the dry extract rate, etc., but in the actual measurement of the decocting device 22, the extraction rate or the dry extract rate is difficult to be measured and obtained in real time, so the concentration of the liquid medicine is usually adopted as index time series data in the practical process.
The implementation of step 302 may include:
step 3021, generating a plurality of operation data in the variation range corresponding to each of the plurality of types of characteristic time series data, for example: for each of the plurality of characteristic time series data, taking the heating temperature of the decocting apparatus 22 as an example, the other characteristic time series data (liquid-to-liquid ratio and pressure) are similar. Assuming that the variation range of the heating temperature is controlled within 0 to 200 degrees, different heating temperatures can be presented using different heating manners, such as: heating resistance wires made of different materials, or burning combustible gases (natural gas or coal gas and the like) of different types. Operation data of 100 degrees, 140 degrees, 180 degrees and the like can be generated within 0 degrees to 200 degrees, namely, the temperature for heating by different heating modes. Specifically, a plurality of random values in a variation range corresponding to each kind of characteristic time series data of the plurality of kinds of characteristic time series data may be generated by using a random function, and the plurality of random values may be determined as a plurality of operation data.
And step 3022, predicting the multiple characteristic time sequence data and the multiple operation data by using the neural network model to obtain multiple prediction index data.
Wherein, the neural network model is trained, and the neural network model may include: a Convolutional Neural Networks (CNN) model or a Recurrent Neural Networks (RNN) model.
It can be understood that before using the neural network model, the neural network model also needs to be trained, and the training process may include:
and acquiring various sample characteristic data and sample index data. The sample characteristic data refers to characteristic time sequence data used for training a neural network model. The sample index data and the index time series data are similar and refer to time series data representing the quality of the liquid medicine, and the difference is that the sample index data is time series data of the quality of the liquid medicine corresponding to sample characteristic data used for training, and the index time series data is time series data of the quality of the liquid medicine corresponding to characteristic time series data.
And screening out at least one sample characteristic data which has a correlation with the sample index data from the plurality of sample characteristic data. Screening out at least one sample characteristic data having a correlation relation with the sample index data from the multiple sample characteristic data by using a linear correlation analysis method; the linear correlation analysis method herein includes, but is not limited to: linear regression analysis and single linear correlation analysis, and the like.
And obtaining optimized operation data corresponding to the sample characteristic data of the correlation. The sample characteristic data and the optimization operation data corresponding to the sample characteristic data are stored in the relational database in advance, so that the optimization operation data corresponding to the sample characteristic data of the correlation can be obtained from the relational database.
And training the neural network by taking the optimized operation data and the sample characteristic data of the correlation as training data and taking the sample index data as a training label to obtain a neural network model.
And 303, storing the multiple kinds of characteristic time sequence data and the index time sequence data corresponding to the multiple kinds of characteristic time sequence data into an experience database.
Referring to fig. 10, fig. 10 is a schematic flowchart illustrating a stage of using an experience database according to an embodiment of the present application; the above describes the stage of building the experience database, and the following describes the stage of using the experience database as follows:
step 401, monitoring the decocting process of the decocting device 22, and obtaining various characteristic time sequence data generated by the decocting device 22.
Step 402, index time sequence data corresponding to the various characteristic time sequence data are searched from the experience database.
The index time series data is time series data representing the quality of the liquid medicine. It can be known from the above process of establishing the experience database that the experience database stores the association relationship between the various feature time series data and the index time series data, that is, the experience database stores the various feature time series data and the index time series data (that is, the optimal index data) corresponding to the various feature time series data.
And 403, generating an operation instruction according to the various characteristic time sequence data and the index time sequence data, and sending the operation instruction to the decocting device 22, so that the decocting device 22 adjusts the characteristic time sequence data in the decocting process according to the operation instruction.
In the implementation process, firstly, the various characteristic time series data generated by the decocting device 22 in the decocting process are obtained, then, the index time series data corresponding to the various characteristic time series data are searched from the experience database, and finally, the operation instruction is generated according to the various characteristic time series data and the index time series data, and the operation instruction is sent to the decocting device 22. That is, the characteristic time series data of the decocting device 22 during the decocting process is adjusted through the experience database established in advance, so that the liquid medicine quality corresponding to the characteristic time series data of the decocting device 22 gradually approaches to the liquid medicine quality corresponding to the index time series data in the experience database, that is, the control accuracy of the decocting process is improved, and the best liquid medicine quality is approached by accurately controlling the decocting process of the decocting machine 222.
As an optional implementation manner of the present application, the third control device 221 is further configured to obtain the predicted manufacturing completion information according to the decoction parameters and send the predicted manufacturing completion information to the server 1; the server 1 is also configured to send the predicted production completion information to the designated end. In the embodiment of the application, when the preparation required by the user is decoction, the preparation completion information, such as the time for completing decoction, the time for completing packaging, the time for taking medicine, the volume of the decocted decoction and the like, can be predicted according to the decoction parameters, and the prediction is provided for the user, so that the user can make a plan arrangement according to the prediction, and the user experience is improved.
Referring to fig. 11, fig. 11 is a schematic structural diagram of the pharmaceutical subsystem 2 according to an embodiment of the present disclosure, where the pharmaceutical subsystem 2 further includes: the solid preparation device 23 is in communication connection with the server 1, and the solid preparation device 23 is used for acquiring parameters of the decocted water decoction; determining the technological parameters of the solid preparation according to the parameters of the water decoction; and (3) preparing the water decoction into a solid preparation according to the technological parameters of the solid preparation.
In the present embodiment, the solid-formulation equipment 23 located in the solid-formulation area is, for example, a spray-drying device, a wet granulator, a fluidized-bed dryer, a granulator, a dry granulator, a capsule filling machine, a bagging machine, a tablet press, a coating machine, an AGV transport cart, a mobile robot, or the like. When the formulation decision instruction is a solid formulation, the transport trolley transports the liquid medicine decocted in the decocting area to a spray drying device, the liquid medicine is prepared into solid powder, and then wet granulation, boiling drying and granule finishing are carried out sequentially through a wet granulator, a boiling bed dryer and a granule finishing machine, or dry granulation is carried out directly through a dry granulator to obtain granules. The granules can be filled into capsules by a capsule filling machine, or can be tabletted and coated by a tabletting machine and a coating machine to prepare tablets. The granules, capsules and tablets are packaged by a bag packaging machine and are attached with information codes.
Referring to fig. 12, fig. 12 is a schematic structural diagram of a solid preparation apparatus 23 according to an embodiment of the present application, and the solid preparation apparatus 23 includes a third collecting device 233, a solid preparation device 232, and a fourth control device 231.
Wherein, the third collecting device 233 is used for collecting parameters of the water decoction. The fourth control device 231 is connected with the third collecting device 233, and the fourth control device 231 is used for matching the parameters of the water decoction with the parameters of the existing water decoction in the solid preparation process library; the solid preparation process library comprises the existing water decoction parameters and the corresponding solid preparation process parameters; if the solid preparation process parameters corresponding to the target water decoction parameters are matched, the solid preparation process parameters corresponding to the target water decoction parameters are output to the solid preparation equipment 23; if not, the logic is generated by using the solid preparation process, and the corresponding solid preparation process parameters are generated according to the water decoction parameters and sent to the solid preparation device 232. And the solid preparation device 232 is connected with the fourth control device 231, and the solid preparation device 232 is used for preparing the water decoction into a solid preparation according to the technological parameters of the solid preparation.
In the embodiment of the application, the parameters of the water decoctions of the traditional Chinese medicines are matched in the solid preparation process library, and if the parameters of the water decoctions of the traditional Chinese medicines can be matched, the solid preparation process parameters corresponding to the matched first parameters of the water decoctions of the traditional Chinese medicines are sent to the solid preparation equipment 23, so that the solid preparation equipment 23 performs relevant configuration according to the solid preparation process parameters and realizes personalized solid preparations according to corresponding process flows. If the matching is not achieved, generating a solid preparation process parameter by using a solid preparation process generation logic, and sending the solid preparation process parameter to the solid preparation equipment 23, so that the solid preparation equipment 23 performs related configuration according to the solid preparation process parameter and realizes a personalized solid preparation according to a corresponding process flow. Therefore, the embodiment of the application can generate corresponding process parameters for the temporary prescription issued by the front end, and complete the solid preparation of the corresponding process flow.
Referring to fig. 13, fig. 13 is a flowchart illustrating a method for determining process parameters of a solid Chinese medicinal preparation according to an embodiment of the present invention, including:
step 501, matching parameters of a water decoction of a traditional Chinese medicine with parameters of an existing water decoction in a solid preparation process library; the solid preparation process library comprises the existing water decoction parameters and the corresponding solid preparation process parameters;
wherein, the parameters of the water decoction of the traditional Chinese medicine are matched with the parameters of the existing water decoction in the solid preparation process library, and the method comprises the following steps: similarity matching calculation is carried out on the traditional Chinese medicine water decoction parameters and the existing water decoction parameters in the solid preparation process library, a first water decoction parameter with the highest similarity to the water decoction parameters is obtained, and whether the similarity value corresponding to the first water decoction parameter is larger than a preset threshold value or not is judged: if yes, go to step 502; if not, go to step 503.
In the embodiment of the invention, the similarity between the existing water decoction parameter and the target water decoction parameter in the solid preparation process library is calculated by adopting a similarity calculation method based on the Euclidean distance or the Manhattan distance, the first water decoction parameter with the highest similarity in the solid preparation process library is found out, and whether the first water decoction parameter reaches the preset threshold is judged, so that the reliability of the solid preparation process parameter corresponding to the first water decoction parameter is ensured.
The solid preparation process library of the embodiment of the invention comprises a spray drying process library and a granulation process library, wherein the granulation process library can be a dry granulation process library, a wet granulation process library or a combination of the dry granulation process library and the wet granulation process library. Spray drying technological parameters in the spray drying technological library are used for preparing dry paste powder from the water decoction, wet granulation technological parameters in the wet granulation technological library are used for preparing granules from the dry paste powder, and dry granulation technological parameters in the dry granulation technological library are used for preparing granules from the dry paste powder. That is, in the solid formulation process of the embodiment of the present invention, the water decoction to the granules includes two stages:
in the first stage, water decoction is carried out to obtain dry paste powder, and a spray drying mode is adopted in the first stage.
And in the second stage, the dry paste is powdered into granules, and wet granulation or dry granulation is adopted in the second stage, so that the description is convenient, the granulation process library of the solid preparation process library in the embodiment of the invention is the combination of the dry granulation process library and the wet granulation process library, and the wet granulation process of the wet granulation process library or the dry granulation process of the dry granulation process library can be used for realizing the second-stage process flow of the solid preparation.
The spray drying process library comprises water decoction parameters and corresponding spray drying process parameters; wherein the parameters of the water decoction include paste yield (solid content of the water decoction), viscosity and relative density, and the parameters of the spray drying process include air outlet temperature, air inlet temperature, adjuvant proportion (formula and addition amount including starch, dextrin, microcrystalline cellulose, etc.) and flow rate of the liquid medicine.
The wet granulation process library comprises dry paste powder physical parameters and corresponding wet granulation process parameters; wherein, the physical parameters of the dry paste powder comprise the viscosity of the dry paste powder, and the wet granulation process parameters comprise the proportion of auxiliary materials (formula and addition amount, including water or ethanol with different concentrations, starch, dextrin, microcrystalline cellulose and the like), stirring speed and shearing speed.
The dry granulation process library comprises dry paste powder physical parameters and corresponding dry granulation process parameters; wherein, the physical parameters of the dry paste powder comprise the viscosity of the dry paste powder and the fluidity of the dry paste powder, and the dry granulation process parameters comprise the proportion of auxiliary materials (formula and addition amount, including starch, dextrin, microcrystalline cellulose, glidant and the like), the feeding speed and the roller rotating speed.
Step 502, if the solid preparation process parameters corresponding to the first water decoction parameters are matched, outputting the solid preparation process parameters corresponding to the first water decoction parameters to the solid preparation equipment 23;
in the embodiment of the invention, the parameters of the water decoction of the traditional Chinese medicine can be matched in the solid preparation process library, the solid preparation process parameters corresponding to the matched first water decoction parameter are sent to the solid preparation equipment 23, so that the solid preparation equipment 23 carries out relevant configuration according to the solid preparation process parameters and realizes personalized solid preparation according to the corresponding process flow, and the corresponding process parameters can be generated according to the temporary prescription issued at the front end to complete the solid preparation of the corresponding process flow.
And 503, if the parameters are not matched, generating logic by using a solid preparation process, and generating corresponding solid preparation process parameters according to the parameters of the water decoction.
In the embodiment of the invention, if the water decoction parameters of the traditional Chinese medicine cannot be matched with the corresponding existing water decoction parameters in the solid preparation process library, the solid preparation process is used for generating logic, generating the solid preparation process parameters, and sending the solid preparation process parameters to the solid preparation equipment 23, so that the solid preparation equipment 23 performs relevant configuration according to the solid preparation process parameters and realizes personalized solid preparation according to the corresponding process flow. Therefore, the embodiment of the application can generate corresponding process parameters for the temporary prescription issued by the front end, and complete the solid preparation of the corresponding process flow.
In another embodiment of the present invention, the process engineer confirms or adjusts the process parameters generated by the solid preparation process generation logic in the solid preparation process library, and sends the confirmed or adjusted process parameters to the solid preparation equipment 23 to complete the solid preparation of the corresponding process flow.
In another embodiment, the solid formulation device 232 comprises: at least one of a spray drying device, a dry granulation device, a wet granulation device, a tablet compression device, and a pill preparation device.
The solid dose apparatus 23 of another embodiment of the present application further includes:
the image acquisition device is connected with the fourth control device 231 and is used for acquiring the image of the tablet or the pill after the solid preparation is finished and sending the image to the fourth control device 231;
the fourth control device 231 is also used for judging whether the shape, size and color difference are qualified or not according to the image of the tablet or pill.
In a first aspect, determining the shape and size of a pill comprises: acquiring an image of the pill on an inclined discharging platform; fitting a first straight line to the discharging platform in the image, and establishing a rectangular coordinate system according to the inclination angle and the vertical line of the first straight line; fitting a circle to the pill in the image, and determining the diameter and the circle center of the pill; determining whether the difference in the diameters of any two pills is less than a first threshold: if the diameter difference of the two pills is smaller than a first threshold value, the size uniformity degree is higher, and whether the maximum value of the circle center y values of the pills is smaller than a second threshold value is continuously judged: if so, the shape of the pill is qualified; if not, the pill is considered to be less rounded.
In a second aspect, determining the size and shape of a tablet comprises: firstly, acquiring an image by means of overhead shooting, and fitting corresponding squares, circles, ellipses and the like to the tablets in the image according to different shapes of the tablets, such as squares, circles, ellipses and the like; and judging the fitted square, round and oval. Judging the difference of the side lengths of the square tablets; judging the difference of the diameters of the round tablets; if the tablet is an ellipse tablet, the difference value of the long axis and the short axis is judged.
In a third aspect, color differences are determined by comparing RGB values in the image that pertain to a pill or tablet.
In another embodiment of the present application, the fourth control device 231 is further configured to obtain the predicted manufacturing completion information according to the solid preparation process parameters and send the predicted manufacturing completion information to the server 1. In the embodiment of the application, when the preparation required by the user is a solid preparation, the preparation completion information can be predicted according to the process parameters of the solid preparation, such as the preparation completion time, the packaging completion time, the medicine taking time, the size and the number of tablets or pills and the like, and the prediction is provided for the user, so that the user can make a plan arrangement according to the prediction, and the user experience is improved.
In another embodiment of the present application, the pharmaceutical subsystem 2 further comprises:
and the sorting equipment is in communication connection with the server 1 and is used for identifying and screening the purchased decoction pieces according to the hyperspectrum to acquire the decoction piece information. In the embodiment of the application, before entering the storage device 211, the herbal pieces are subjected to optical and electrical technical detection and analysis by a sorting device, so as to ensure the quality of the herbal pieces.
Correspondingly, the pharmaceutical subsystem 2 further comprises: and the transportation device is in communication connection with the server 1 and is used for moving the screened decoction pieces into the corresponding medicine cabinets according to the decoction piece information identified by the sorting equipment.
It should be clear that the transport means in all embodiments of the present application may be referred to as robot, conveyor belt, catheter, etc. For example, after the decoction pieces are placed in the decoction piece barrel, the decoction piece barrel is moved from the preparation area to the decoction area by a conveyor belt-like transmission device, the decoction piece barrel is poured into the decoction barrel of the decoction machine 222 by a manipulator, the liquid medicine in the decoction barrel is guided into the liquid medicine barrel through a conduit, and the liquid medicine barrel is moved from the decoction area to the solid preparation area, and so on.
In another embodiment of the present application, the pharmaceutical subsystem 2 further comprises:
the liquid medicine packaging machine is in communication connection with the server 1 and is used for packaging the water decoction into liquid medicine bags;
at least one of the code spraying machine, the code pasting machine and the RFID writer is in communication connection with the server 1 and used for acquiring the identity information and the clinical information of the patient and storing the medicine taking information in the identity information and the clinical information of the patient to the two-dimensional code, the bar code or the RFID information on the liquid medicine bag.
This application embodiment adds patient's identity information and clinical side's information to the liquid medicine package through ink jet numbering machine, subsides ink jet numbering machine or RFID write-in ware, avoids the user to take other people's liquid medicine package by mistake to conveniently acquire the information of taking medicine in the clinical side's information, take medicine according to the volume on time.
Referring to fig. 14, fig. 14 is a home medication device provided in an embodiment of the present application, where the home medication device specifically includes:
the reading device 243 is used for reading at least one of two-dimensional codes, bar codes or RFID information on the liquid medicine package to obtain medicine taking information and sending the medicine taking information to the reminding device; the medicine taking information at least comprises the medicine taking time;
and the fifth control device 241 is connected with the reading device 243, and the fifth control device 241 is used for outputting first prompt information by the prompting device if the difference value between the medicine taking time and the current time is not larger than the first set threshold value, wherein the first prompt information is used for prompting the patient to take the medicine on time.
The accommodating device for the medicine to be taken carries medicine taking information, the medicine taking information can be considered to at least comprise preset medicine taking time, the reminding device for the medicine to be taken can read the preset medicine taking time carried by the accommodating device in a close-range communication mode, and when the preset medicine taking time is determined to be close to the current time, prompt information is output to a patient to remind the patient to take medicine on time. In the method, the patient is reminded to take the medicine at the time close to the preset medicine taking time, so that the patient can take the medicine on time, and the rehabilitation of the disease of the patient is facilitated.
In another embodiment, the home medication apparatus further comprises:
the heating device 242 is used for heating the liquid medicine bag to heat the traditional Chinese medicine decoction to the medicine taking temperature in the medicine taking information;
the fifth control device 241 is further configured to, if it is determined that the difference between the medicine taking time and the current time is greater than the first set threshold and smaller than the second set threshold, output a second prompt message to the heating device 242 by the prompting device, where the second set threshold is greater than the first set threshold.
The medicine taking information of the embodiment of the application further comprises a preset medicine taking temperature, so that the reminding device can heat the traditional Chinese medicine decoction contained in the containing device to the preset medicine taking temperature in advance before reminding the patient to take the medicine on time, the patient can be guaranteed to take the medicine on time at the preset medicine taking time, the patient does not start to manually heat the traditional Chinese medicine decoction at the preset medicine taking time, and the medicine effect of the traditional Chinese medicine decoction taken by the patient can be guaranteed to be exerted to the maximum extent.
Referring to fig. 15, fig. 15 is a home diagnosis device according to an embodiment of the present application, including:
a fourth collecting device 252 for collecting tracking medical record information;
the communication device 251 transmits the tracking medical record information to the diagnosis subsystem 3 and receives the diagnosis information transmitted from the diagnosis subsystem 3.
According to the embodiment of the application, the family diagnosis equipment is in communication connection with the server 1, tracking medical record information of a patient at home is collected, the tracking medical record information is sent to the diagnosis subsystem 3, corresponding diagnosis information is obtained by using a diagnosis model, the problem that the patient is difficult to see is solved, and meanwhile, the workload of a doctor is reduced.
The above describes a Chinese medicinal preparation system, and the following Chinese medicinal preparation method is realized by using any one of the Chinese medicinal preparation systems:
referring to fig. 16, fig. 16 is a flowchart illustrating steps of a method for preparing a traditional Chinese medicine according to an embodiment of the present application, applied to a server 1, including:
601, the server 1 receives the patient identity information and the corresponding clinical information sent by the diagnosis subsystem 3;
step 602, the server 1 sends the clinical information to the pharmacy subsystem 2;
step 603, the server 1 receives the manufacturing completion information sent by the pharmaceutical subsystem 2;
step 604, the server 1 establishes a communication connection with the designated end according to the patient identity information, and sends the manufacturing completion information to the designated end.
When the user selects logistics distribution, the method for preparing a traditional Chinese medicine of the embodiment of the application further comprises the following steps: the server 1 receives a logistics request; the server 1 establishes communication connection with a specified logistics platform according to the logistics request and sends the identity information of the patient to the specified logistics platform; the patient identity information includes name, phone, and address information.
The method for preparing a traditional Chinese medicine preparation provided by the embodiment of the application corresponds to the diagnosis subsystem 3 and comprises the following steps:
step 701, the diagnosis subsystem 3 collects medical record information; wherein the medical record information comprises at least one of tongue picture information, facial picture information and pulse picture information.
Step 702, the diagnosis subsystem 3 outputs diagnosis information by using the trained diagnosis model according to the medical record information; wherein the diagnostic information comprises disease information and/or clinical information.
Step 703, the diagnosis subsystem 3 presents the diagnosis information.
Step 704, the diagnosis subsystem 3 receives clinical information obtained by the doctor on-site diagnosis.
The implementation manner of training the diagnostic model in the embodiment of the present application includes, but is not limited to, the following manners: acquiring sample data; the sample data comprises medical record information and corresponding diagnosis information; and training the sample data by adopting a BP neural network, and correcting network parameters for multiple times to obtain a trained diagnosis model.
Another method for preparing a chinese herbal preparation provided in the embodiment of the present application, corresponding to the diagnosis subsystem 3, includes:
step 801, a diagnosis subsystem 3 collects medical record information;
step 802, the diagnosis subsystem 3 outputs diagnosis information by using the trained diagnosis model according to the medical record information; the diagnostic information includes at least clinical information;
step 803, the diagnosis subsystem 3 sends the clinical information to the server 1.
The traditional Chinese medicine preparation method provided by the embodiment of the application corresponds to the pharmacy subsystem 2 and comprises the following steps:
step 901, the pharmacy subsystem 2 receives the information of the clinical party sent by the server 1;
step 902, the pharmacy subsystem 2 obtains the information of the completion of the preparation of the Chinese medicinal preparation through a dispensing process and a preparation process according to the prescription information;
step 903, the pharmaceutical subsystem 2 sends the manufacturing completion information to the server 1.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.