Medicine prescription dividing method and device

By introducing an intuitive visual front-end into the drug prescription division system, combining the determination of the rule version of the prescription rule and the process of drug prescription division, the problem of difficult to display the results of the prescription division in the existing system in real time is solved, and a more efficient and accurate drug prescription division is achieved.

CN120048418AActive Publication Date: 2025-05-27GUANGZHOU HOPE BRIDGE COMPUTER TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510518320.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-24
Publication Date
2025-05-27
Estimated Expiration
2045-04-24

AI Technical Summary

Technical Problem

The existing drug prescription separation system lacks an intuitive visual front-end, which makes it difficult for doctors to know the results of the separation in real time and clearly, affecting the accuracy and efficiency of the prescription.

Method used

Provide a method and device for dividing prescriptions for drug prescriptions. By obtaining the drugs to be divided by doctor users in the front-end interface, determining the institution to which the doctor belongs and the version of the rules for dividing the prescriptions are divided based on these rules, dividing the drugs, obtaining the results of dividing the prescriptions, and displaying them in real time in the front-end interface.

Benefits of technology

By visualizing the front-end display of the results of the prescription, the efficiency and accuracy of the drug prescription are improved, and the efficiency and quality of medical work are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120048418A_ABST
    Figure CN120048418A_ABST
Patent Text Reader

Abstract

The invention discloses a medicine prescription division method and device, and the method comprises the steps: obtaining a to-be-divided medicine selected by a doctor user in a front-end interface, determining an institution to which the doctor user belongs and a prescription division rule version, carrying out the prescription division of the to-be-divided medicine based on all prescription division rules of the prescription division rule version, and obtaining a prescription division result, the prescription dividing result comprises one or more target prescriptions, further, if the operation cursor of the doctor user is at the position of the target prescription, displaying the target prescription at the position of the target prescription, otherwise, displaying the medicine to be divided at the position of the first target prescription of each target prescription. Therefore, when a doctor needs to perform prescription division on a certain medicine, the target prescription can be determined based on the prescription division rule of the mechanism, and the prescription division result can be given in real time and displayed on the front-end interface, so that the medicine prescription division efficiency is improved, the medical work efficiency and quality are improved, and the actual requirements of the medical industry are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of medical information technology, and more specifically, to a method and device for splitting prescriptions of medicines. Background Art

[0002] In the prescription splitting work of medical informatization, with the development of the industry, the requirements for the accuracy and convenience of splitting prescriptions are increasing day by day. Currently, although there have been certain progress in the configuration-based prescription splitting, there are deficiencies in the visual front-end display and interaction links.

[0003] When doctors issue prescriptions, they often need to refer to various information to ensure reasonable splitting. However, the existing splitting systems lack an intuitive visual front-end, and doctors cannot know the splitting results in real time and clearly. When doctors quote medical order templates or prescribe new medicines, the splitting results will change accordingly. However, due to the lack of effective display, doctors are difficult to detect these changes and are even less able to make timely adjustments.

[0004] In a busy outpatient environment, doctors need to quickly and accurately complete the prescription issuing and splitting operations. If they cannot intuitively see the splitting results, it may lead to problems in patients' medicine collection and use due to unreasonable splitting, and even affect the treatment effect. At the same time, for some complex conditions that require frequent adjustment of medications, doctors are difficult to flexibly adjust prescriptions according to the changes in splitting results, reducing the efficiency and quality of medical services.

[0005] Based on this, how to develop a medicine splitting system with an intuitive visual front-end that can give splitting results in real time to improve the efficiency of medicine splitting, enhance the accuracy and efficiency of medical work, and meet the actual needs of the medical industry is an issue that needs attention. Summary of the Invention

[0006] In view of the above problems, the present application provides a method and device for splitting prescriptions of medicines to improve the efficiency of medicine splitting, enhance the efficiency and quality of medical work, and meet the actual needs of the medical industry.

[0007] To achieve the above object, the following specific solutions are proposed:

[0008] A method for splitting prescriptions of medicines, which is applied to a medicine splitting system. The method includes:

[0009] Obtain the medicines to be split selected by a doctor user in the front-end interface, determine the institution to which the doctor user belongs, and determine the version of the splitting rule of the institution;

[0010] Based on each splitting rule of the version of the splitting rule, split the medicines to be split to obtain a splitting result, where the splitting result includes one or more target prescriptions;

[0011] Determine whether the operation cursor of the doctor user in the front-end interface is at the position of the target prescription;

[0012] If so, place the medicine to be dispensed at the position of the target prescription;

[0013] If not, when the dispensing result contains only one target prescription, place the medicine to be dispensed in the target prescription. When the dispensing result contains multiple target prescriptions, place the medicine to be dispensed in the first target prescription among the multiple target prescriptions.

[0014] Optionally, after displaying the medicine to be dispensed at the position of the target prescription, it further includes:

[0015] In response to the doctor user clicking on the target prescription, render each medicine's information items included in the target prescription in the front-end interface.

[0016] Optionally, based on each dispensing rule of the dispensing rule version, perform dispensing on the medicine to be dispensed to obtain a dispensing result, including:

[0017] Initialize an empty dispensing result list for the medicine to be dispensed;

[0018] When traversing each dispensing rule of the dispensing rule version, create an empty temporary dispensing list for the current dispensing rule, determine all the temporary target prescriptions that the medicine to be dispensed conforms to the current dispensing rule, and store all the temporary target prescriptions in the temporary dispensing list. If the current dispensing rule is the first traversed dispensing rule, take the union of the dispensing result list and the temporary dispensing list to obtain a new dispensing result list. Otherwise, take the intersection of the dispensing result list and the temporary dispensing list to obtain a new dispensing result list;

[0019] When the traversal of each dispensing rule of the dispensing rule version ends, obtain the final dispensing result list;

[0020] If the dispensing result list is not empty, determine the dispensing result list as the dispensing result. Otherwise, create a new prescription as the dispensing result of the medicine to be dispensed.

[0021] Optionally, based on each dispensing rule of the dispensing rule version, perform dispensing on the medicine to be dispensed to obtain a dispensing result, including:

[0022] Initialize an empty dispensing result list for the medicine to be dispensed;

[0023] Determine the traversal order of each dispensing rule among the dispensing rules of the dispensing rule version, and traverse each dispensing rule in accordance with the traversal order;

[0024] When traversing to the first prescription splitting rule, determine all the temporary target prescriptions for which the drug to be split complies with the first prescription splitting rule, and store all the temporary target prescriptions in the prescription splitting result list to obtain a new prescription splitting result list;

[0025] Judge whether the prescription splitting result list is empty;

[0026] If it is, create a new prescription as the prescription splitting result of the drug to be split;

[0027] If not, if all the prescription splitting rules of the prescription splitting rule version have been traversed, determine the prescription splitting result list as the prescription splitting result, otherwise traverse the untraversed prescription splitting rules of the prescription splitting rule version;

[0028] When traversing each prescription splitting rule other than the first prescription splitting rule of the prescription splitting rule version, create an empty temporary prescription splitting list for this prescription splitting rule, determine all the temporary target prescriptions for which the drug to be split complies with this prescription splitting rule, store all the temporary target prescriptions in the temporary prescription splitting list, take the intersection of the prescription splitting result list and the temporary prescription splitting list to obtain a new prescription splitting result list, and return to execute the step of judging whether the prescription splitting result list is empty.

[0029] Optionally, the method further includes:

[0030] In response to an operation of changing the weight value of the target prescription splitting rule in the prescription splitting rule version, adjust the traversal order of the target prescription splitting rule so that the traversal order of the prescription splitting rule with a weight value higher than that of the target prescription splitting rule takes precedence over the traversal order of the target prescription splitting rule, and the traversal order of the prescription splitting rule with a weight value lower than that of the target prescription splitting rule lags behind the traversal order of the target prescription splitting rule.

[0031] Optionally, the method further includes:

[0032] After the drug to be split is placed at the position of the target prescription, in response to an operation of dragging the drug to be split to another prescription, move the target prescription to the other prescription, where the other prescription is a prescription for which the drug to be split complies with the set of mandatory prescription splitting rules, and the set of mandatory prescription splitting rules includes several mandatory prescription splitting rules.

[0033] Optionally, the method further includes:

[0034] In response to an operation of selecting the target prescription splitting rule of the institution, add the target prescription splitting rule to the prescription splitting rule version of the institution, or, in response to an operation of canceling the target prescription splitting rule in the prescription splitting rule version of the institution, remove the target prescription splitting rule from the prescription splitting rule version.

[0035] Optionally, the target dispensing rule is a business - type dispensing rule that is not locked, or the target dispensing rule is not a locked compliance - type dispensing rule, where the compliance - type dispensing rule is a dispensing rule that cannot be selected / cancelled after a locking operation is performed.

[0036] Optionally, the method further includes:

[0037] In response to the operation of switching to the target institution, determine the version of the dispensing rule of the target institution.

[0038] A dispensing device for a drug prescription, applied to a drug dispensing system. The device includes:

[0039] A dispensing rule version determination unit, configured to obtain the drug to be dispensed selected by a doctor user in a front - end interface, determine the institution to which the doctor user belongs, and determine the version of the dispensing rule of the institution;

[0040] A drug dispensing unit, configured to dispense the drug to be dispensed based on the various dispensing rules of the dispensing rule version to obtain a dispensing result, where the dispensing result includes one or more target prescriptions;

[0041] A cursor position judgment unit, configured to judge whether the operation cursor of the doctor user in the front - end interface is at the position of the target prescription. If so, execute the drug dispensing unit; if not, execute the unit for placing the drug to be dispensed;

[0042] The drug dispensing unit is configured to place the drug to be dispensed at the position of the target prescription;

[0043] The unit for placing the drug to be dispensed is configured to place the drug to be dispensed at the target prescription when the dispensing result only includes one target prescription;

[0044] The first target prescription placement unit is configured to place the drug to be dispensed in the first target prescription among the multiple target prescriptions when the dispensing result includes multiple target prescriptions.

[0045] Optionally, the device further includes:

[0046] A rendering unit, configured to, after displaying the drug to be dispensed at the position of the target prescription, in response to the operation of the doctor user clicking on the target prescription, render the various drug information of each drug included in the target prescription in the front - end interface.

[0047] Optionally, the drug dispensing unit includes:

[0048] A dispensing result list initialization unit, configured to initialize an empty dispensing result list of the drug to be dispensed;

[0049] The dispensing rule application unit is used to create an empty temporary dispensing list for each dispensing rule of the dispensing rule version when traversing each dispensing rule, determine all temporary target prescriptions for which the drug to be dispensed complies with the dispensing rule, store all the temporary target prescriptions in the temporary dispensing list, and if the dispensing rule is the first traversed dispensing rule, take the union of the dispensing result list and the temporary dispensing list to obtain a new dispensing result list; otherwise, take the intersection of the dispensing result list and the temporary dispensing list to obtain a new dispensing result list;

[0050] The dispensing result list determination unit is used to obtain the final dispensing result list when all the dispensing rules of the dispensing rule version have been traversed;

[0051] The dispensing result determination unit is used to determine that the dispensing result list is the dispensing result if the dispensing result list is not empty; otherwise, create a new prescription as the dispensing result of the drug to be dispensed.

[0052] Optionally, the drug dispensing unit includes:

[0053] The dispensing result list initialization unit is used to initialize an empty dispensing result list for the drug to be dispensed;

[0054] The traversal order determination unit is used to determine the traversal order of each dispensing rule among the dispensing rules of the dispensing rule version, so as to traverse each dispensing rule according to the traversal order;

[0055] The first dispensing rule result storage unit is used to determine all temporary target prescriptions for which the drug to be dispensed complies with the first dispensing rule when traversing the first dispensing rule, and store all the temporary target prescriptions in the dispensing result list to obtain a new dispensing result list;

[0056] The empty result judgment unit is used to judge whether the dispensing result list is empty. If so, execute the new prescription creation unit; if not, execute the full traversal judgment unit;

[0057] The new prescription creation unit is used to create a new prescription as the dispensing result of the drug to be dispensed;

[0058] The full traversal judgment unit is used to determine that the dispensing result list is the dispensing result if all the dispensing rules of the dispensing rule version have been traversed; otherwise, traverse the untraversed dispensing rules of the dispensing rule version;

[0059] An intersection processing unit, configured to, when traversing each dispensing rule of the dispensing rules of the non-first item of the dispensing rule version, create an empty temporary dispensing list for the item of the dispensing rule, determine all temporary target prescriptions for which the drug to be dispensed conforms to the item of the dispensing rule, store all the temporary target prescriptions in the temporary dispensing list, take the intersection of the dispensing result list and the temporary dispensing list to obtain a new dispensing result list, and return to execute the empty result judgment unit.

[0060] Optionally, the device further includes:

[0061] A weight value changing unit, configured to, in response to an operation of changing the weight value of a target dispensing rule in the dispensing rule version, adjust the traversal order of the target dispensing rule, so that the traversal order of the dispensing rules with a weight value higher than that of the target dispensing rule takes precedence over the traversal order of the target dispensing rule, and the traversal order of the dispensing rules with a weight value lower than that of the target dispensing rule lags behind the traversal order of the target dispensing rule.

[0062] Optionally, the device further includes:

[0063] A drug moving unit, configured to, after the drug to be dispensed is placed at the position of the target prescription, in response to an operation of dragging the drug to be dispensed to another prescription, move the target prescription to the other prescription, where the other prescription is a prescription for which the drug to be dispensed conforms to a set of mandatory dispensing rules, and the set of mandatory dispensing rules includes several mandatory dispensing rules.

[0064] Optionally, the device further includes:

[0065] A dispensing rule adding unit, configured to, in response to an operation of selecting a target dispensing rule of the institution, add the target dispensing rule to the dispensing rule version of the institution;

[0066] A dispensing rule removing unit, configured to, in response to an operation of canceling a target dispensing rule in the dispensing rule version of the institution, remove the target dispensing rule from the dispensing rule version.

[0067] Optionally, the target dispensing rule is a business type dispensing rule that is not locked, or the target dispensing rule is not a compliance type dispensing rule that is locked, where the compliance type dispensing rule is a dispensing rule that cannot be selected / canceled after being locked.

[0068] Optionally, the device further includes:

[0069] A target institution dispensing rule version switching unit, configured to, in response to an operation of switching to a target institution, determine the dispensing rule version of the target institution.

[0070] With the above technical solution, the present application obtains the drug to be divided selected by the doctor user in the front-end interface, determines the institution to which the doctor user belongs, and determines the version of the dispensing rule of the institution. Based on the various dispensing rules of the version of the dispensing rule, the drug to be divided is dispensed to obtain a dispensing result, and the dispensing result includes one or more target prescriptions. Further, it is judged whether the operation cursor of the doctor user in the front-end interface is at the position of the target prescription. If so, the drug to be divided is placed at the position of the target prescription. If not, when the dispensing result only includes one target prescription, the drug to be divided is placed in the target prescription. When the dispensing result includes multiple target prescriptions, the drug to be divided is placed in the first target prescription among the multiple target prescriptions. Thus, when a doctor needs to dispense a certain drug, the target prescription can be determined based on the dispensing rules of the institution, the dispensing result can be given in real time and displayed on the front-end interface, thereby improving the drug dispensing efficiency, improving the efficiency and quality of medical work, and meeting the actual needs of the medical industry. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] By reading the following detailed description of the preferred embodiments, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of the present application. Moreover, throughout the drawings, the same reference numerals are used to represent the same components. In the drawings:

[0072] Figure 1 FIG. is a schematic flowchart for realizing drug prescription dispensing provided by an embodiment of the present application;

[0073] Figure 2 FIG. is a schematic diagram of a rule engine interface for the traversal order of multiple dispensing rules provided by an embodiment of the present application;

[0074] Figure 3 FIG. is a schematic diagram of the layout of prescription drugs provided by an embodiment of the present application;

[0075] Figure 4 FIG. is a schematic diagram for dispensing drugs based on dispensing rules provided by an embodiment of the present application;

[0076] Figure 5 FIG. is another schematic diagram for dispensing drugs based on dispensing rules provided by an embodiment of the present application;

[0077] Figure 6 FIG. is a schematic diagram of an interface for a user to select / cancel dispensing rules provided by an embodiment of the present application;

[0078] Figure 7 FIG. is a schematic diagram of the device structure for realizing drug prescription dispensing provided by an embodiment of the present application. Detailed implementation mode

[0079] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0080] The solution of the present application can be implemented based on a terminal with data processing capabilities, and this terminal can be a drug dispensing system. The drug dispensing system can include a dispensing rule engine, and the dispensing rule engine is configured with a dispensing rule database, and the dispensing rule database can contain various classified dispensing rules.

[0081] Among them, each dispensing rule can be classified into two types of dispensing rules, namely compliance-based dispensing rules and business-based dispensing rules. It can be understood that the compliance-based dispensing rules are the dispensing rules restricted by drug-related regulations, and can include full 5-dispensing rules, dispensing rules for highly controlled drugs, dual-channel out-of-pocket prescription dispensing rules, etc. The business-based dispensing rules are the dispensing rules required by business needs and actual business scenarios, and can include different pharmacy dispensing rules, skin test drug dispensing rules, different dosage form dispensing rules, different drug type dispensing rules, different administration route dispensing rules, antibiotic level dispensing rules, single drug amount excess dispensing rules, etc.

[0082] The dispensing rule engine is used to execute each dispensing rule. Each dispensing rule managed by the dispensing rule engine contains all the rules that may need to be applied in the drug dispensing process. Each dispensing rule can be presented in the form of business language text on the operator's interface for the operator to understand.

[0083] Before the drug dispensing system is applied to the dispensing of drug prescriptions, the drug dispensing system can be configured and tested, specifically including:

[0084] S1. Obtain the configured medical institution and rule version.

[0085] S2. Obtain rules, parameters, and variables through dispensing configuration.

[0086] S3. Automatically parse variables. Specifically, after the configuration page is completed, the rule engine identifies the field name, comparison operator, parameter value, and matches the field and value types set in the dictionary. The corresponding variable judgment fields and values are set on the rule engine interface to achieve dynamic variable parsing.

[0087] S4. The rule engine executes tests, releases, and rollbacks.

[0088] It is understandable that the tester adds table fields and field values in the input box on the prescription splitting rule engine test page, and the field value type supports the JSON format. Click "Start Test", and the program will automatically parse the value in the input box. After a series of logical processes based on the configuration and input parameters, the result after the rule execution can be seen in the output box. When encountering a blocking problem, the system's drug prescription splitting function can be maintained through the version rollback function.

[0089] For example, two prescriptions have been issued: the first prescription contains propofol injection in Pharmacy 1; the second prescription contains Xiangyuan Qutan Mixture in Pharmacy 2. If the prescription splitting rules have enabled the "Narcotic, Psychotropic and Toxic Drugs Configuration Rule" and the "Pharmacy Prescription Splitting Rule". When the tester adds tetracaine hydrochloride injection in Pharmacy 1 at this time, the prescription splitting rule engine will re-split the prescription, and the final result is: the first prescription contains propofol injection and tetracaine hydrochloride injection, and the second prescription is Xiangyuan Qutan Mixture. If the tester adds tetracaine hydrochloride injection in Pharmacy 2, the final result of the re-splitting is: the first prescription is propofol injection, the second prescription is Xiangyuan Qutan Mixture, and the third prescription is tetracaine hydrochloride injection.

[0090] Next, in combination with Figure 1 as described above, the method for splitting drug prescriptions of the present application may include the following steps:

[0091] Step S110: Obtain the drugs to be split selected by the doctor user in the front-end interface, determine the institution to which the doctor user belongs, and determine the version of the prescription splitting rule of the institution.

[0092] Specifically, through the event listening mechanism of the front-end framework (such as React, Vue, etc.), the operations of the doctor user on the interface are captured. The operations can specifically be drug addition, template reference prescription, historical medical order reference prescription, dragging medical orders, grouping medical orders, etc.

[0093] Furthermore, the operation data of the doctor user captured is converted into a unified JSON format, including information such as drug name, dosage, usage method, frequency, etc. The formatted data is sent to the back-end server where the rule engine is located through the API interface provided by the integration platform (such as the RESTful API interface) for subsequent corresponding processing by the prescription splitting rule engine. The data after the doctor user's operation is temporarily stored in the memory for the prescription splitting rule engine to call.

[0094] When the doctor user logs in to the front-end interface, the drug prescription splitting system will verify the user's identity, thereby obtaining the unique identifier of the institution to which the user belongs, such as the institution ID, and then querying the currently used version of the prescription splitting rule of the institution from the prescription splitting rule database configured by the prescription splitting rule engine according to the institution ID.

[0095] Step S120: Based on each dispensing rule of the dispensing rule version, perform dispensing on the drug to be dispensed to obtain a dispensing result.

[0096] Among them, the dispensing result includes one or more target prescriptions. Each target prescription in the dispensing result conforms to each dispensing rule applicable to the drug to be dispensed.

[0097] Specifically, the dispensing rule engine can traverse each dispensing rule to filter out the prescriptions for which the drug to be dispensed conforms to each dispensing rule. Through the API of the integration platform, query the configuration information of the dispensing rules, which is stored in a database table, and sort the rules according to the weight and execution priority of the rules, as Figure 2 shown. The allowable insertion position of the new drug is stored through a variable named cursor, and the data type of this variable is map, which contains two attributes: "prescription serial number" and "drug detail serial number".

[0098] Step S130: Determine whether the operation cursor of the doctor user in the front-end interface is at the position of the target prescription. If so, execute Step S140; if not, execute Step S150.

[0099] Step S140: Place the drug to be dispensed at the position of the target prescription.

[0100] It can be understood that when the operation cursor of the doctor user points to a qualified target prescription, it means that the doctor user intends to dispense the drug to be dispensed to this prescription. Then, the drug to be dispensed can be displayed at the position of this target prescription to inform the doctor user that this prescription meets all dispensing conditions.

[0101] Furthermore, when the doctor user clicks on the target prescription, the drug to be dispensed can be placed at the position of the target prescription. At the same time, each drug information of each drug included in the target prescription is rendered in the front-end interface. The layout of the drugs in the prescription is as Figure 3 shown, and specifically may include drug name, specification, drug group, single-dose / unit of execution, frequency, number of days, etc.

[0102] Step S150: When the dispensing result includes only one target prescription, place the drug to be dispensed in the target prescription. When the dispensing result includes multiple target prescriptions, place the drug to be dispensed in the first target prescription among the multiple target prescriptions.

[0103] It can be understood that placing the drug to be dispensed in the first target prescription among multiple target prescriptions can fill the original prescription to reduce the continuous addition of prescriptions and optimize the visual experience of the doctor user.

[0104] The dispensing method for the drug prescription provided in this embodiment obtains the drug to be dispensed selected by the doctor user in the front-end interface, determines the institution to which the doctor user belongs, and determines the version of the dispensing rules of the institution. Based on the various dispensing rules of the version of the dispensing rules, the drug to be dispensed is dispensed to obtain a dispensing result. The dispensing result includes one or more target prescriptions. Further, it is determined whether the operation cursor of the doctor user in the front-end interface is at the position of the target prescription. If so, the drug to be dispensed is placed at the position of the target prescription. If not, when the dispensing result only includes one target prescription, the drug to be dispensed is placed in the target prescription. When the dispensing result includes multiple target prescriptions, the drug to be dispensed is placed in the first target prescription among the multiple target prescriptions. Thus, when a doctor needs to dispense a certain drug, the target prescription can be determined based on the dispensing rules of the institution, the dispensing result can be given in real time and displayed on the front-end interface, thereby improving the drug dispensing efficiency, improving the efficiency and quality of medical work, and meeting the actual needs of the medical industry.

[0105] In some embodiments of the present application, the process of step S120, that is, based on the various dispensing rules of the version of the dispensing rules, dispensing the drug to be dispensed to obtain a dispensing result, is introduced as follows Figure 4 As shown, this process may include:

[0106] Step S210: Initialize an empty dispensing result list for the drug to be dispensed.

[0107] Step S220: When traversing each dispensing rule of the version of the dispensing rules, create an empty temporary dispensing list for this dispensing rule, determine all temporary target prescriptions for which the drug to be dispensed conforms to this dispensing rule, and store all temporary target prescriptions in the temporary dispensing list.

[0108] Step S230: If this dispensing rule is the first traversed dispensing rule, take the union of the dispensing result list and the temporary dispensing list. Otherwise, take the intersection of the dispensing result list and the temporary dispensing list to obtain a new dispensing result list.

[0109] Step S240: When the traversal of all dispensing rules of the version of the dispensing rules ends, obtain the final dispensing result list.

[0110] Step S250: If the dispensing result list is not empty, determine the dispensing result list as the dispensing result. Otherwise, create a new prescription as the dispensing result of the drug to be dispensed.

[0111] For example, the full 5-point prescription rule and the special drug prescription rule are enabled. Currently, there are two prescriptions. Prescription 1 has 4 ordinary drugs, and Prescription 2 has 1 narcotic drug. Now, a psychotropic drug needs to be added. When traversing the full 5-point prescription rule, Prescription 1 meets the condition, so Prescription 1 is stored in the temporary prescription list of the full 5-point prescription rule. After taking the union of this temporary prescription list and the empty prescription result list, the prescription result list contains Prescription 1. Then, when traversing the special drug prescription rule, since neither Prescription 1 nor Prescription 2 meets the special drug prescription rule, the temporary prescription list of the special drug prescription rule is empty. After taking the intersection of the temporary prescription list and the prescription result list, the prescription result list is empty and is determined as the final prescription result list. Since the final prescription result list is empty, a new prescription needs to be created to allocate the psychotropic drug to this new prescription.

[0112] Considering improving the speed of drug prescription allocation, when the temporary prescription list mentioned in the above embodiment is empty, it is possible to directly create a new prescription without traversing the remaining prescription rules, so as to improve the speed and efficiency of drug prescription allocation. Based on this, in some embodiments of the present application, the process of step S120, that is, performing prescription allocation on the drugs to be prescribed based on each prescription rule of the prescription rule version to obtain a prescription result, is introduced as follows Figure 5 As shown, this process may include:

[0113] Step S310, initialize an empty prescription result list for the drugs to be prescribed.

[0114] Step S320, determine the traversal order of each prescription rule in the prescription rule version of the prescription rule, so as to traverse each prescription rule in accordance with the traversal order.

[0115] Specifically, the traversal order can be determined according to the weight of each prescription rule in each prescription rule. Specifically, it can be traversed in descending order of weight. For example, the weight of the compliance-based prescription rule is greater than the weight of the business-based prescription rule, so that the compliance-based prescription rule is traversed first and the business-based prescription rule is traversed later. Another example is that the weight decreasing order of each prescription rule is: dual-channel outsourcing prescription rule, special drug prescription rule, full 5-point prescription rule, pharmacy prescription rule, outpatient special disease and outpatient chronic disease prescription rule, children's prescription rule, skin test prescription rule, dosage form prescription rule, administration route prescription rule, scientific research prescription rule and GCP drug prescription rule, free / self-paid drug prescription rule, drug type prescription rule, antibiotic level prescription rule, single drug amount excess prescription rule. Then, it can be traversed in this decreasing order.

[0116] Step S330: When traversing to the first sub - prescription rule, determine all the temporary target prescriptions for which the drug to be sub - prescribed conforms to the first sub - prescription rule, and store all the temporary target prescriptions in the sub - prescription result list to obtain a new sub - prescription result list.

[0117] Step S340: Determine whether the sub - prescription result list is empty. If it is, execute Step S350; if not, execute Step S360.

[0118] Step S350: Create a new prescription as the sub - prescription result for the drug to be sub - prescribed.

[0119] Step S360: Determine whether all the sub - prescription rules of the sub - prescription rule version have been traversed. If so, execute Step S370; if not, continue to traverse the un - traversed sub - prescription rules and execute Step S380.

[0120] Step S370: Determine that the sub - prescription result list is the sub - prescription result. Otherwise, traverse the un - traversed sub - prescription rules of the sub - prescription rule version.

[0121] Step S380: When traversing to each sub - prescription rule other than the first sub - prescription rule of the sub - prescription rule version, create an empty temporary sub - prescription list for this sub - prescription rule, determine all the temporary target prescriptions for which the drug to be sub - prescribed conforms to this sub - prescription rule, and store all the temporary target prescriptions in the temporary sub - prescription list.

[0122] Step S390: Take the intersection of the sub - prescription result list and the temporary sub - prescription list to obtain a new sub - prescription result list, and return to execute Step S340.

[0123] For example, the full - 5 sub - prescription rule and the narcotic, psychotropic and toxic drug sub - prescription rule are enabled, and the traversal order of the narcotic, psychotropic and toxic drug sub - prescription rule is before that of the full - 5 sub - prescription rule. Currently, there are two prescriptions. Prescription 1 has 4 ordinary drugs, and Prescription 2 has 1 narcotic drug. Now, a psychotropic drug needs to be added. Since the two sub - prescription rules have a sequence, the narcotic, psychotropic and toxic drug sub - prescription rule is traversed first. Since neither Prescription 1 nor Prescription 2 conforms to the narcotic, psychotropic and toxic drug sub - prescription rule, the temporary sub - prescription list of the narcotic, psychotropic and toxic drug sub - prescription rule is empty. After taking the union of the temporary sub - prescription list and the sub - prescription result list, the sub - prescription result list is empty. Since the sub - prescription result list is empty, it is not necessary to traverse and execute the full - 5 sub - prescription rule. Then, a new prescription is directly created so that the psychotropic drug is assigned to this new prescription. Thus, it can be seen that after assigning weights to each sub - prescription rule and determining the execution order of each sub - prescription rule according to the weight size, it is not necessary to traverse all the sub - prescription rules for drug sub - prescription, thereby improving the speed and efficiency of drug sub - prescription.

[0124] Considering optimizing the traversal order of the dispensing rules to improve the rationality and efficiency of drug dispensing, the traversal order of some dispensing rules can be adjusted. Based on this, the drug dispensing method for drug prescriptions provided in this application may further include:

[0125] In response to an operation of changing the weight value of the target dispensing rule in the dispensing rule version, adjust the traversal order of the target dispensing rule so that the traversal order of the dispensing rule with a weight value higher than that of the target dispensing rule takes precedence over the traversal order of the target dispensing rule, and the traversal order of the dispensing rule with a weight value lower than that of the target dispensing rule lags behind the traversal order of the target dispensing rule.

[0126] Specifically, the traversal order of the dispensing rules can be changed by adjusting the weight values of the dispensing rules. It should be noted that when adjusting the weight values of the dispensing rules, the rationality of the traversal of the dispensing rules needs to be ensured. For example, it is necessary to ensure that the traversal order of the compliance-based dispensing rules is prior and the traversal order of the business-based dispensing rules is subsequent. Another example is that among the A dispensing rule traversed first and the B dispensing rule traversed later in the business-based dispensing rules, the actual impact degree of the B dispensing rule on drug dispensing is greater than that of the A dispensing rule on drug dispensing. Then, the weight value of the B dispensing rule can be increased so that the B dispensing rule is traversed first and the A dispensing rule is traversed later, thereby improving the rationality of drug dispensing.

[0127] Considering that doctors have strong experience in drug dispensing and there may be a deviation between the dispensing results of the system and the doctors' experience-based dispensing, to improve the usage experience of doctors, a restricted drug dispensing adjustment function can be provided. The drug dispensing method for drug prescriptions provided in this application may further include:

[0128] After the drug to be dispensed is placed at the position of the target prescription, in response to an operation of dragging the drug to be dispensed to another prescription, move the target prescription to the other prescription.

[0129] Among them, the other prescription is a prescription that the drug to be dispensed conforms to the set of mandatory dispensing rules, and the set of mandatory dispensing rules includes several mandatory dispensing rules. For example, the set of mandatory dispensing rules can include compliance-based dispensing rules such as the dual-channel out-of-pocket dispensing rule, the drug control and psychotropic substance dispensing rule, and the full 5 dispensing rule, or can also include some business-based dispensing rules. Thus, while providing doctors with operable dispensing permissions, the necessary restrictions on drug dispensing are not lost, thereby improving the usage experience of doctors and the flexibility of drug dispensing.

[0130] Considering that the number of deviations between the doctor user and the dispensing result of the system may be relatively large according to the doctor user's own drug dispensing experience, which makes the doctor user think that the dispensing of the system is not reasonable enough and the configuration of the dispensing rules needs to be adjusted. Based on this, the dispensing method of the drug prescription provided by this application may further include:

[0131] In response to an operation of selecting the target dispensing rule of the institution, add the target dispensing rule to the dispensing rule version of the institution, or, in response to an operation of canceling the target dispensing rule in the dispensing rule version of the institution, remove the target dispensing rule from the dispensing rule version.

[0132] For example Figure 6 , the doctor user can check or uncheck the dispensing rules in the Figure 6 left sidebar, then the system will correspondingly increase or decrease the traversal of some dispensing rules during the dispensing process, so that the dispensing result is more in line with the doctor user's drug dispensing experience, thereby improving the flexibility and rationality of drug dispensing and further improving the efficiency of medical work.

[0133] Furthermore, considering ensuring the security of system dispensing and avoiding the doctor user from accidentally changing some necessary dispensing rules (such as compliance-based dispensing rules), some dispensing rules can be locked.

[0134] For example, the system administrator can lock these compliance-based dispensing rules such as the dual-channel off-site purchase dispensing rule, the dispensing rule for highly controlled drugs, and the full 5 dispensing rule. Then the doctor user cannot perform selection / removal operations on the compliance-based dispensing rules, thereby ensuring the security of system dispensing.

[0135] Considering that the dispensing rule versions of different institutions may be different, the drug dispensing system can uniformly manage the dispensing rule versions of multiple institutions. Based on this, the dispensing method of the drug prescription provided by this application may further include:

[0136] In response to an operation of switching to the target institution, determine the dispensing rule version of the target institution.

[0137] Specifically, the function of switching institutions can be provided to testers or administrators for them to detect each dispensing rule version of each institution. Thus, the system provides a cross-institutional management mechanism, providing greater flexibility and control for medical institutions and enabling quick adjustment of dispensing rules according to actual needs.

[0138] Next, the dispensing device for realizing drug prescriptions provided by the embodiments of this application will be described. The dispensing device for realizing drug prescriptions described below can be mutually corresponding and referred to with the dispensing method for realizing drug prescriptions described above.

[0139] SeeFigure 7 , Figure 7 This is a schematic structural diagram of a device for implementing drug prescription dispensing disclosed in an embodiment of the present application.

[0140] As Figure 7 shown, the device may include:

[0141] A dispensing rule version determination unit 11, configured to obtain the drug to be dispensed selected by a doctor user in a front-end interface, determine the institution to which the doctor user belongs, and determine the dispensing rule version of the institution;

[0142] A drug dispensing unit 12, configured to perform dispensing on the drug to be dispensed based on various dispensing rules of the dispensing rule version to obtain a dispensing result, where the dispensing result includes one or more target prescriptions;

[0143] A cursor position determination unit 13, configured to determine whether an operation cursor of the doctor user in the front-end interface is at the position of the target prescription. If so, execute a drug dispensing unit 14; if not, execute a drug-to-be-dispensed placement unit 15;

[0144] The drug dispensing unit 14 is configured to place the drug to be dispensed at the position of the target prescription;

[0145] The drug-to-be-dispensed placement unit 15 is configured to, when the dispensing result includes only one target prescription, place the drug to be dispensed at the target prescription;

[0146] A first target prescription placement unit 16, configured to, when the dispensing result includes multiple target prescriptions, place the drug to be dispensed in the first target prescription among the multiple target prescriptions.

[0147] Optionally, the device further includes:

[0148] A rendering unit, configured to, after displaying the drug to be dispensed at the position of the target prescription, in response to an operation of the doctor user clicking on the target prescription, render various drug information of each drug included in the target prescription in the front-end interface.

[0149] Optionally, the drug dispensing unit includes:

[0150] A dispensing result list initialization unit, configured to initialize an empty dispensing result list for the drug to be dispensed;

[0151] The prescription splitting rule application unit is used to create an empty temporary prescription splitting list for each prescription splitting rule of the prescription splitting rule version when traversing each prescription splitting rule, determine all temporary target prescriptions for which the drug to be split complies with the prescription splitting rule, and store all the temporary target prescriptions in the temporary prescription splitting list. If the prescription splitting rule is the first prescription splitting rule to be traversed, take the union of the prescription splitting result list and the temporary prescription splitting list to obtain a new prescription splitting result list; otherwise, take the intersection of the prescription splitting result list and the temporary prescription splitting list to obtain a new prescription splitting result list;

[0152] The prescription splitting result list determination unit is used to obtain the final prescription splitting result list when all prescription splitting rules of the prescription splitting rule version have been traversed;

[0153] The prescription splitting result determination unit is used to determine that the prescription splitting result list is the prescription splitting result if the prescription splitting result list is not empty; otherwise, create a new prescription as the prescription splitting result of the drug to be split.

[0154] Optionally, the drug prescription splitting unit includes:

[0155] The prescription splitting result list initialization unit is used to initialize an empty prescription splitting result list for the drug to be split;

[0156] The traversal order determination unit is used to determine the traversal order of each prescription splitting rule in the prescription splitting rules of the prescription splitting rule version, so as to traverse each prescription splitting rule in accordance with the traversal order;

[0157] The first prescription splitting rule result storage unit is used to determine all temporary target prescriptions for which the drug to be split complies with the first prescription splitting rule when traversing the first prescription splitting rule, and store all the temporary target prescriptions in the prescription splitting result list to obtain a new prescription splitting result list;

[0158] The empty result judgment unit is used to judge whether the prescription splitting result list is empty. If so, execute the new prescription creation unit; if not, execute the full traversal judgment unit;

[0159] The new prescription creation unit is used to create a new prescription as the prescription splitting result of the drug to be split;

[0160] The full traversal judgment unit is used to determine that the prescription splitting result list is the prescription splitting result if all prescription splitting rules of the prescription splitting rule version have been traversed; otherwise, traverse the un-traversed prescription splitting rules of the prescription splitting rule version.

[0161] An intersection processing unit, configured to, when traversing each dispensing rule of the dispensing rules of the dispensing rule version other than the first item, create an empty temporary dispensing list for the item of the dispensing rule, determine all temporary target prescriptions for which the medicine to be dispensed conforms to the item of the dispensing rule, store all the temporary target prescriptions in the temporary dispensing list, take the intersection of the dispensing result list and the temporary dispensing list to obtain a new dispensing result list, and return to execute the empty result judgment unit.

[0162] Optionally, the device further includes:

[0163] A weight value change unit, configured to, in response to an operation of changing the weight value of a target dispensing rule in the dispensing rule version, adjust the traversal order of the target dispensing rule so that the traversal order of the dispensing rules with a weight value higher than that of the target dispensing rule takes precedence over the traversal order of the target dispensing rule, and the traversal order of the dispensing rules with a weight value lower than that of the target dispensing rule lags behind the traversal order of the target dispensing rule.

[0164] Optionally, the device further includes:

[0165] A medicine moving unit, configured to, after the medicine to be dispensed is placed at the position of the target prescription, in response to an operation of dragging the medicine to be dispensed to another prescription, move the target prescription to the other prescription, where the other prescription is a prescription for which the medicine to be dispensed conforms to a set of mandatory dispensing rules, and the set of mandatory dispensing rules includes several mandatory dispensing rules.

[0166] Optionally, the device further includes:

[0167] A dispensing rule adding unit, configured to, in response to an operation of selecting a target dispensing rule of the institution, add the target dispensing rule to the dispensing rule version of the institution;

[0168] A dispensing rule removing unit, configured to, in response to an operation of canceling a target dispensing rule in the dispensing rule version of the institution, remove the target dispensing rule from the dispensing rule version.

[0169] Optionally, the target dispensing rule is a business type dispensing rule that is not locked, or the target dispensing rule is not a compliance type dispensing rule that is locked, where the compliance type dispensing rule is a dispensing rule that cannot be selected / canceled after a locking operation is performed.

[0170] Optionally, the device further includes:

[0171] A target institution dispensing rule version switching unit, configured to, in response to an operation of switching to a target institution, determine the dispensing rule version of the target institution.

[0172] Finally, it should also be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising said element.

[0173] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referred to each other.

[0174] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to these embodiments shown herein, but will be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for dividing a drug prescription, characterized in that: Applied to a drug prescription system, the method includes: Obtain the medicine to be prescribed selected by the doctor user in the front-end interface, determine the institution to which the doctor user belongs, and determine the prescription rule version of the institution; Based on each prescription division rule of the prescription division rule version, the medicine to be divided is divided to obtain a prescription division result, wherein the prescription division result includes one or more target prescriptions; Determine whether the operation cursor of the doctor user in the front-end interface is at the position of the target prescription; If yes, the medicine to be divided is placed in the position of the target prescription; If not, when the prescription division result includes only one target prescription, the drug to be divided is placed in the target prescription; when the prescription division result includes multiple target prescriptions, the drug to be divided is placed in the first target prescription of the multiple target prescriptions.

2. The method according to claim 1, characterized in that After displaying the medicine to be divided at the position of the target prescription, the method further includes: In response to the doctor user clicking on the target prescription, various drug information of each drug included in the target prescription is rendered in the front-end interface.

3. The method according to claim 1, characterized in that Based on the various prescription division rules of the prescription division rule version, the drugs to be divided are divided to obtain prescription division results, including: Initialize an empty prescription result list of the medicine to be prescribed; When traversing to each prescription rule of the prescription rule version, an empty temporary prescription list of the prescription rule is created, all temporary target prescriptions of the drug to be prescribed that meet the prescription rule are determined, and all temporary target prescriptions are stored in the temporary prescription list; if the prescription rule is the first traversed prescription rule, the prescription result list is taken as a union with the temporary prescription list to obtain a new prescription result list; otherwise, the prescription result list is taken as an intersection with the temporary prescription list to obtain a new prescription result list; When the traversal of each partition rule of the partition rule version is completed, a final partition result list is obtained; If the prescription result list is not empty, the prescription result list is determined to be a prescription result, otherwise a new prescription is created as the prescription result of the drug to be prescribed.

4. The method according to claim 1, characterized in that: Based on the various prescription division rules of the prescription division rule version, the drugs to be divided are divided to obtain prescription division results, including: Initialize an empty prescription result list of the medicine to be prescribed; Determine the traversal order of each of the sub-division rules in the sub-division rule version, so as to traverse each of the sub-division rules according to the traversal order; When traversing to the first prescription division rule, determining all temporary target prescriptions that the drug to be divided meets the first prescription division rule, and storing all the temporary target prescriptions in the prescription division result list to obtain a new prescription division result list; Determine whether the partition result list is empty; If yes, create a new prescription as the prescription result of the drug to be prescribed; If not, if each of the sub-party rules of the sub-party rule version has been traversed, then the sub-party result list is determined to be a sub-party result, otherwise, each of the sub-party rules of the sub-party rule version that has not been traversed is traversed; When traversing each prescription rule other than the first prescription rule of the prescription rule version, create an empty temporary prescription list for the prescription rule, determine all temporary target prescriptions of the to-be-prescribed drug that meet the prescription rule, store all the temporary target prescriptions in the temporary prescription list, take the intersection of the prescription result list and the temporary prescription list to obtain a new prescription result list, and return to execute the step of determining whether the prescription result list is empty.

5. The method according to claim 4, characterized in that Also includes: In response to an operation of changing the weight value of a target party rule in the party rule version, the traversal order of the target party rule is adjusted so that the traversal order of party rules with a higher weight value than the target party rule takes precedence over the traversal order of the target party rule, and the traversal order of party rules with a lower weight value than the target party rule lags behind the traversal order of the target party rule.

6. The method according to claim 1, characterized in that Also includes: After the drug to be divided is placed at the position of the target prescription, in response to the operation of dragging the drug to be divided to other prescriptions, the target prescription is moved to the other prescriptions, wherein the other prescriptions are prescriptions in which the drug to be divided complies with a set of mandatory division rules, and the set of mandatory division rules includes several mandatory division rules.

7. The method according to claim 1, characterized in that Also includes: In response to the operation of selecting the target party rule of the institution, the target party rule is added to the party rule version of the institution, or, in response to the operation of canceling the target party rule in the party rule version of the institution, the target party rule is removed from the party rule version.

8. The method according to claim 7, characterized in that The target sub-party rule is an unlocked business-type sub-party rule, or the target sub-party rule is not a locked compliance-type sub-party rule, wherein the compliance-type sub-party rule is a sub-party rule that cannot be selected / cancelled after being locked.

9. The method according to claim 1, characterized in that: Also includes: In response to the operation of switching to the target organization, the party rule version of the target organization is determined.

10. A drug prescription splitting device, characterized in that: Applied to the drug prescription system, the device includes: A prescription rule version determination unit, used to obtain the drug to be prescribed selected by the doctor user in the front-end interface, determine the institution to which the doctor user belongs, and determine the prescription rule version of the institution; A drug prescription division unit, configured to divide the drug to be divided based on each prescription division rule of the prescription division rule version to obtain a prescription division result, wherein the prescription division result includes one or more target prescriptions; A cursor position determination unit, used to determine whether the operation cursor of the doctor user in the front-end interface is at the position of the target prescription, and if so, execute the medicine dispensing unit, and if not, execute the medicine placement unit to be dispensed; The medicine dispensing unit is used to place the medicine to be dispensed at the location of the target prescription; The medicine placement unit for the medicine to be divided is used to place the medicine to be divided into the target prescription when the prescription division result contains only one target prescription; The first target prescription placing unit is used for placing the drug to be prescribed in the first target prescription of the multiple target prescriptions when the prescription-prescription-prescription result includes multiple target prescriptions.

Citation Information

Patent Citations

  • Prescription distribution method and device for electronic prescriptions

    CN102117375A

  • Intelligent square dividing method based on configuration

    CN114822756A

  • Computer-aided medical diagnosing and prescriptions

    US20150046174A1

  • Methods and systems for pharmaceutical prescription authorization rules generation

    US20150324547A1

  • Prescription generation method and apparatus based on natural language processing, and device and medium

    WO2023035618A1