Method and device for dividing drug prescriptions
By obtaining the prescription rule version and drug information in the drug prescription system, the prescription results are given in real time and displayed on the front-end interface, which solves the problem of lack of intuitive visualization in the drug prescription system in the existing technology and improves the efficiency of drug prescription and the quality of medical work.
Patent Information
- Application Number
- CN202510518320.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-24
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2045-04-24
AI Technical Summary
The existing drug prescription system lacks an intuitive visual front-end, which makes it impossible for doctors to know the prescription results in real time and clearly, affecting the accuracy of drug prescriptions and medical work efficiency. It is especially difficult to flexibly adjust prescriptions when complex conditions require frequent medication adjustments.
Provided are a method and device for dividing prescriptions for drugs. By obtaining the drugs to be divided selected by the doctor user and the division rule version of the institution to which they belong, the drugs are divided based on the division rule version, and the division results are given in real time and displayed in the front-end interface. The method supports the placement of drugs in the target prescription and information rendering, allows the weight and order of the division rules to be adjusted, and provides mandatory division rules and flexible drug movement functions.
It improves the efficiency of drug prescription and the quality of medical work, ensures the real-time accuracy and flexibility of prescription results, and meets the actual needs of the medical industry.
Smart Images

Figure CN120048418B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical information technology, and more specifically, to a method and device for dividing drug prescriptions. Background Art
[0002] In the prescription and allocation work of medical information technology, with the development of the industry, the requirements for accuracy and convenience of prescription allocation are increasing. Currently, although there has been some progress in the configuration of prescription allocation, there are still deficiencies in the visual front-end display and interaction.
[0003] When prescribing, doctors often need to reference a variety of information to ensure the appropriateness of the prescription. However, existing prescription systems lack an intuitive visual front-end, preventing doctors from clearly and immediately viewing the prescription results. When doctors use a template or prescribe a new medication, the prescription results change. However, due to the lack of effective display, doctors cannot detect these changes and cannot make timely adjustments.
[0004] In busy outpatient settings, doctors need to quickly and accurately write and dispense prescriptions. Without a clear view of prescription dispensing results, inappropriate prescription dispensing can lead to problems with patient medication collection and use, potentially compromising treatment outcomes. Furthermore, for complex conditions requiring frequent medication adjustments, doctors struggle to flexibly adjust prescriptions based on changing dispensing results, reducing the efficiency and quality of medical services.
[0005] Based on this, how to develop a drug prescription system with an intuitive and visual front-end that can provide prescription results in real time, so as to improve the efficiency of drug prescription, improve 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 dispensing drug prescriptions to improve the efficiency of drug prescriptions, improve the efficiency and quality of medical work, and meet the actual needs of the medical industry.
[0007] In order to achieve the above objectives, the following specific plans are proposed:
[0008] A method for dividing a drug prescription, applied to a drug prescription dividing system, comprises:
[0009] 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;
[0010] Based on each prescription division rule of the prescription division rule version, the medicine to be divided is divided into prescriptions to obtain a prescription division result, wherein the prescription division 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 yes, then the medicine to be divided is placed in the location of the target prescription;
[0013] 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.
[0014] Optionally, after displaying the medicine to be dispensed at the location of the target prescription, the method further includes:
[0015] 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.
[0016] Optionally, 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, including:
[0017] Initialize an empty prescription result list of the medicine to be prescribed;
[0018] When traversing 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 the temporary target prescriptions are stored in the temporary prescription list. If the prescription rule is the first traversed prescription rule, the prescription result list and the temporary prescription list are combined to obtain a new prescription result list. Otherwise, the prescription result list and the temporary prescription list are intersected to obtain a new prescription result list.
[0019] When the traversal of each of the partitioning rules of the partitioning rule version is completed, a final partitioning result list is obtained;
[0020] 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 medicine to be prescribed.
[0021] Optionally, 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, including:
[0022] Initialize an empty prescription result list of the medicine to be prescribed;
[0023] 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;
[0024] When traversing to the first prescription division rule, determining all temporary target prescriptions of the drug to be divided that meet 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;
[0025] Determine whether the partition result list is empty;
[0026] If so, create a new prescription as a prescription result of the drug to be prescribed;
[0027] 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;
[0028] When traversing each prescription rule other than the first prescription rule in 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, and 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.
[0029] Optionally, the method further includes:
[0030] In response to the operation of changing the weight value of the target party rule in the party rule version, the traversal order of the target party rule is adjusted so that the traversal order of the party rule with a weight value higher than the target party rule takes precedence over the traversal order of the target party rule, and the traversal order of the party rule with a weight value lower than the target party rule lags behind the traversal order of the target party rule.
[0031] Optionally, the method further includes:
[0032] After the drug to be divided is placed at the location 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 prescription, wherein the other prescription is a prescription 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.
[0033] Optionally, the method further includes:
[0034] 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.
[0035] Optionally, 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 the locking operation is executed.
[0036] Optionally, the method further includes:
[0037] In response to the operation of switching to the target organization, the party rule version of the target organization is determined.
[0038] A drug prescription distribution device, applied to a drug prescription distribution system, comprises:
[0039] A prescription rule version determination unit is used to 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;
[0040] a drug prescription division unit, configured to divide the drug to be divided based on each division rule of the division rule version to obtain a division result, wherein the division result includes one or more target prescriptions;
[0041] a cursor position determination unit, configured 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, to execute the medicine dispensing unit; if not, to execute the medicine placement unit to be dispensed;
[0042] The medicine dispensing unit is used to place the medicine to be dispensed at the location of the target prescription;
[0043] The medicine placement unit for the medicine to be divided is used to place the medicine to be divided on the target prescription when the prescription division result contains only one target prescription;
[0044] The first target prescription placement unit is configured to place the medicine to be divided into a first target prescription when the prescription division result includes multiple target prescriptions.
[0045] Optionally, the device further includes:
[0046] A rendering unit is used to render various drug information of each drug included in the target prescription in the front-end interface in response to the doctor user clicking the target prescription after the to-be-prescribed drug is displayed at the location of the target prescription.
[0047] Optionally, the drug prescription unit includes:
[0048] A prescription result list initialization unit, used to initialize an empty prescription result list of the medicine to be prescribed;
[0049] a prescription rule application unit configured to, when traversing each prescription rule of the prescription rule version, create an empty temporary prescription list for the prescription rule, determine all temporary target prescriptions for the drug to be prescribed that meet the prescription rule, and store all the temporary target prescriptions in the temporary prescription list; if the prescription rule is the first traversed prescription rule, take the union of the prescription result list and the temporary prescription list to obtain a new prescription result list; otherwise, take the intersection of the prescription result list and the temporary prescription list to obtain a new prescription result list;
[0050] A division result list determining unit, configured to obtain a final division result list when the traversal of each division rule of the division rule version is completed;
[0051] The prescription result determination unit is used to determine that the prescription result list is a prescription result if the prescription result list is not empty, and otherwise create a new prescription as the prescription result of the medicine to be prescribed.
[0052] Optionally, the drug prescription unit includes:
[0053] A prescription result list initialization unit, used to initialize an empty prescription result list of the medicine to be prescribed;
[0054] a traversal order determining unit, configured to determine a 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 in the traversal order;
[0055] A first prescription rule result storage unit is configured to, when traversing to a first prescription rule, determine all temporary target prescriptions of the drug to be prescribed that meet the first prescription rule, and store all the temporary target prescriptions in the prescription result list to obtain a new prescription result list;
[0056] An empty result judgment unit is used to judge whether the prescription result list is empty, and 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 a prescription result of the medicine to be prescribed;
[0058] The full traversal judgment unit is configured to determine that the partition result list is a partition result if all partition rules of the partition rule version have been traversed, and otherwise traverse all untraversed partition rules of the partition rule version;
[0059] The intersection processing unit is used to create an empty temporary prescription list for each prescription rule other than the first prescription rule in the prescription rule version when traversing the prescription rule version, determine all temporary target prescriptions of the to-be-prescribed drugs 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 empty result judgment unit.
[0060] Optionally, the device further includes:
[0061] A weight value changing unit is used to adjust the traversal order of the target party rule in the party rule version in response to an operation of changing the weight value of the target party rule, so that the traversal order of the party rule with a weight value higher than the target party rule takes precedence over the traversal order of the target party rule, and the traversal order of the party rule with a weight value lower than the target party rule lags behind the traversal order of the target party rule.
[0062] Optionally, the device further includes:
[0063] A drug moving unit is used to move the target prescription to the other prescription in response to the operation of dragging the drug to be dispensed to the other prescription after the drug to be dispensed is placed at the position of the target prescription, wherein the other prescription is a prescription in which the drug to be dispensed complies with a set of mandatory prescription rules, and the set of mandatory prescription rules includes several mandatory prescription rules.
[0064] Optionally, the device further includes:
[0065] A sub-party rule adding unit, configured to add the target sub-party rule to the sub-party rule version of the institution in response to an operation of selecting the target sub-party rule of the institution;
[0066] The sub-party rule removing unit is configured to remove the target sub-party rule from the sub-party rule version in response to an operation of canceling the target sub-party rule in the sub-party rule version of the institution.
[0067] Optionally, 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 the locking operation is executed.
[0068] Optionally, the device further includes:
[0069] The target institution's party rule version switching unit is used to determine the target institution's party rule version in response to an operation of switching to the target institution.
[0070] By means of the above technical solution, the present application obtains the medicine to be prescribed selected by the doctor user in the front-end interface, determines the institution to which the doctor user belongs, and determines the prescription rule version of the institution. Based on the various prescription rules of the prescription rule version, the medicine to be prescribed is prescribed to obtain a prescription result. The prescription result contains 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 medicine to be prescribed is placed at the position of the target prescription. If not, when the prescription result contains only one target prescription, the medicine to be prescribed is placed at the target prescription. When the prescription result contains multiple target prescriptions, the medicine to be prescribed is placed in the first target prescription of the multiple target prescriptions. It can be seen from this that when a doctor needs to prescribe a certain medicine, the target prescription can be determined based on the prescription rule of the institution, the prescription result can be given in real time, and displayed on the front-end interface, thereby improving the efficiency of drug prescription, improving the efficiency and quality of medical work, and meeting the actual needs of the medical industry. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present application. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:
[0072] Figure 1 A schematic diagram of a process for implementing drug prescription division provided in an embodiment of the present application;
[0073] Figure 2 A schematic diagram of a rule engine interface for traversing multiple party rules provided in an embodiment of the present application;
[0074] Figure 3 A schematic diagram of the layout of prescription drugs provided in an embodiment of the present application;
[0075] Figure 4 A schematic diagram of drug prescriptions based on prescription rules provided in an embodiment of the present application;
[0076] Figure 5 Another schematic diagram of drug prescription based on prescription rules provided in an embodiment of the present application;
[0077] Figure 6 A schematic diagram of an interface for a user to select / cancel a division rule provided in an embodiment of the present application;
[0078] Figure 7 A schematic diagram of the structure of a device for implementing drug prescription division provided in an embodiment of the present application. DETAILED DESCRIPTION
[0079] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0080] The present application solution can be implemented based on a terminal with data processing capabilities, which can be a drug prescription system. The drug prescription system can include a prescription rule engine, which is configured with a prescription rule database, which can contain classified prescription rules.
[0081] Among them, each prescription splitting rule can be categorized into two types: compliance-based splitting rules and business-based splitting rules. It can be understood that compliance-based splitting rules are those governed by pharmaceutical regulations and may include rules for splitting prescriptions with a maximum of 5 points, splitting rules for toxic and anesthetic drugs, and splitting rules for dual-channel outsourced prescriptions. Compliance-based splitting rules are based on business needs and actual business scenarios. They may include splitting rules for different pharmacies, splitting rules for skin test drugs, splitting rules for different dosage forms, splitting rules for different drug types, splitting rules for different routes of administration, splitting rules for antibiotic levels, and splitting rules for single drug amounts exceeding the limit.
[0082] The prescription rule engine is used to execute each prescription rule. The individual prescription rules managed by the engine encompass all rules that may be applied during the drug prescription process. Each prescription rule is presented in the user interface using business language for easier understanding.
[0083] Before the drug prescription system is used to prescribe drug prescriptions, the system can be configured and tested, which may include:
[0084] S1. Obtain the configured medical institution and rule version.
[0085] S2. Obtain rules, parameters, and variables through party configuration.
[0086] S3. Automatically resolve 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 type set in the dictionary. The corresponding variable judgment field and value are set in the rule engine interface to dynamically resolve variables.
[0087] S4. The rule engine performs testing, release, and rollback.
[0088] Understandably, testers add table fields and field values in the input box of the prescription rule engine test page. The field value type supports JSON format. Click Start Test, and the program will automatically parse the input value. After a series of logical processing based on the configuration and input parameters, the results of rule execution can be viewed in the output box. If a blocking issue is encountered, the version rollback function can be used to maintain the system's drug prescription function.
[0089] For example, two prescriptions are currently issued: the first for Propofol Emulsion Injection from Pharmacy 1, and the second for Xiangyuan Expectorant Mixture from Pharmacy 2. If the "Dujingma Configuration Rule" and "Pharmacy Prescription Allocation Rule" are enabled for prescription allocation rules, and the tester then adds Tetracaine Hydrochloride Injection from Pharmacy 1, the prescription allocation rule engine will re-allocate the prescriptions. The final result is: the first prescription contains Propofol Emulsion Injection and Tetracaine Hydrochloride Injection, and the second prescription contains Xiangyuan Expectorant Mixture. If the tester adds Tetracaine Hydrochloride Injection from Pharmacy 2, the final result is: the first prescription is Propofol Emulsion Injection, the second prescription is Xiangyuan Expectorant Mixture, and the third prescription is Tetracaine Hydrochloride Injection.
[0090] Next, combine Figure 1 The method for dividing the drug prescription of the present application may include the following steps:
[0091] Step S110: 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.
[0092] Specifically, the event monitoring mechanism of the front-end framework (React, Vue, etc.) is used to capture the doctor-user's operations on the interface. Specific operations can include adding drugs, referencing prescriptions from templates, referencing prescriptions from historical orders, dragging orders, and grouping orders.
[0093] Furthermore, the captured doctor-user operation data is converted into a unified JSON format, containing information such as drug name, dosage, usage, and frequency. This formatted data is sent to the backend server hosting the rules engine via the API provided by the integration platform (e.g., RESTful API) for subsequent processing by the prescription-based rules engine. The doctor-user operation data is temporarily stored in memory for future use by the prescription-based rules engine.
[0094] When a doctor user logs in to the front-end interface, the drug prescription system will verify the user's identity and obtain the unique identifier of the institution to which the user belongs, such as the institution ID, and then query the prescription rule version currently used by the institution from the prescription rule database configured by the prescription rule engine based on the institution ID.
[0095] Step S120: Based on the various prescription division rules of the prescription division rule version, the medicines to be divided are divided to obtain a prescription division result.
[0096] The prescription division result includes one or more target prescriptions, and each target prescription in the prescription division result complies with various prescription division rules for the drug to be divided.
[0097] Specifically, the prescription rule engine can traverse various prescription rules to screen prescriptions that meet each prescription rule. Through the API of the integration platform, the configuration information of the prescription rules is queried. The configuration information is stored in the database table and the rules are sorted according to the weight and execution priority of the rules. Figure 2 As shown in the figure, the insertion position of a new drug is stored in a variable named cursor, whose data type is map and contains two attributes: "prescription number" and "drug detail 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: placing the medicine to be divided at the location of the target prescription.
[0100] It can be understood that when the doctor user's operating cursor points to a target prescription that meets the conditions, it means that the doctor user intends to allocate the drug to be divided into the prescription. Then the drug to be divided can be displayed at the position of the target prescription to inform the doctor user that the prescription meets all the division conditions.
[0101] Furthermore, when the doctor clicks on the target prescription, the medicine to be dispensed can be placed in the target prescription location. At the same time, the front-end interface renders the drug information of each drug included in the target prescription. Figure 3 As shown, it may specifically include drug name, specifications, drug grouping, single dose / unit, frequency, number of days, etc.
[0102] Step S150: 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.
[0103] It is understandable that placing the drugs to be divided into the first target prescription of multiple target prescriptions can fill the original prescriptions to reduce the continuous addition of prescriptions and optimize the visual experience of doctor users.
[0104] The method for dividing prescriptions provided in this embodiment 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 division rule version of the institution. Based on the division rules of the division rule version, the drug to be divided is divided to obtain a division result. The division 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 divided is placed at the position of the target prescription. If not, when the division result contains only one target prescription, the drug to be divided is placed in the target prescription. When the division result contains multiple target prescriptions, the drug to be divided is placed in the first target prescription of the multiple target prescriptions. As can be seen from this, when a doctor needs to divide a drug, the target prescription can be determined based on the institution's division rules, and the division result can be given in real time and displayed on the front-end interface, thereby improving the efficiency of drug division, 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, dividing the medicine to be divided based on the various division rules of the division rule version, and obtaining the division result is introduced, such as Figure 4 As shown, the process may include:
[0106] Step S210: Initialize an empty prescription result list of the medicines to be prescribed.
[0107] Step S220: When traversing each prescription rule of the prescription rule version, create an empty temporary prescription list for the prescription rule, determine all temporary target prescriptions for the drugs to be prescribed that meet the prescription rule, and store all temporary target prescriptions in the temporary prescription list.
[0108] Step S230: If the partition rule is the first partition rule traversed, then the partition result list and the temporary partition list are taken as a union; otherwise, the partition result list and the temporary partition list are taken as an intersection to obtain a new partition result list.
[0109] Step S240: When the traversal of each sub-division rule of the sub-division rule version is completed, a final sub-division result list is obtained.
[0110] Step S250: If the prescription result list is not empty, determine that the prescription result list is a prescription result; otherwise, create a new prescription as the prescription result of the medicine to be prescribed.
[0111] For example, the full 5-point rule and the narcotic drug classification rule are enabled. There are currently two prescriptions. Prescription one has 4 common drugs, and prescription two has 1 narcotic drug. Now a psychotropic drug needs to be added. When traversing to the full 5-point rule, prescription one meets the conditions, so that prescription one is stored in the temporary classification list of the full 5-point rule. After the temporary classification list is combined with the empty classification result list, the classification result list contains prescription one. After traversing to the narcotic drug classification rule, since neither prescription one nor prescription two meets the narcotic drug classification rule, the temporary classification list of the narcotic drug classification rule is empty. After taking the intersection of the temporary classification list and the classification result list, the classification result list is empty and is determined as the final classification result list. Since the final classification result list is empty, a new prescription needs to be created to assign the psychotropic drug to the new prescription.
[0112] In order to improve the speed of drug prescription, 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 to improve the speed and efficiency of drug prescription. Based on this, in some embodiments of the present application, the above step S120, based on the various prescription rules of the prescription rule version, the process of prescribing the drugs to be prescribed and obtaining the prescription results is introduced, such as Figure 5 As shown, the process may include:
[0113] Step S310: Initialize an empty prescription result list of the medicines to be prescribed.
[0114] Step S320: Determine the traversal order of each sub-division rule in the sub-division rule version, and traverse each sub-division rule according to the traversal order.
[0115] Specifically, the order of traversal can be determined according to the weight of each of the various prescription rules, and the traversal can be carried out from largest to smallest 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. For another example, the order of decreasing weight of each prescription rule is: dual-channel outsourcing prescription rule, toxic and anesthesia prescription rule, full 5-point prescription rule, pharmacy prescription rule, inpatient and outpatient chronic prescription rule, children's prescription rule, skin test prescription rule, dosage form prescription rule, route of administration 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 the traversal can be carried out in this descending order.
[0116] Step S330: When traversing to the first prescription division rule, determine all temporary target prescriptions of the drug to be divided that meet the first prescription division rule, and store all the temporary target prescriptions in the prescription division result list to obtain a new prescription division result list.
[0117] Step S340: Determine whether the partition result list is empty. If so, execute step S350; if not, execute step S360.
[0118] Step S350: Create a new prescription as the prescription result of the medicine to be prescribed.
[0119] Step S360: determine whether each sub-party rule of the sub-party rule version has been traversed. If so, execute step S370; if not, continue to traverse each sub-party rule that has not been traversed, and execute step S380.
[0120] Step S370: Determine that the partition result list is a partition result. Otherwise, traverse the partition rules of the partition rule version that have not been traversed.
[0121] Step S380: When traversing each prescription rule other than the first prescription rule in the prescription rule version, create an empty temporary prescription list for the prescription rule, determine all temporary target prescriptions of the drugs to be prescribed that meet the prescription rule, and store all temporary target prescriptions in the temporary prescription list.
[0122] Step S390: Intersect the partition result list with the temporary partition list to obtain a new partition result list, and return to execute step S340.
[0123] For example, suppose both the full 5-point rule and the narcotic, anesthetic, and narcotic drug classification rule are enabled, with the narcotic, anesthetic, and narcotic drug classification rule being traversed before the full 5-point rule. There are currently two prescriptions: Prescription 1 contains four general medications, and Prescription 2 contains one narcotic drug. Now, a psychotropic drug needs to be added. Because the two classification rules have a sequential order, the narcotic, anesthetic, and narcotic drug classification rule is traversed first. Since neither Prescription 1 nor Prescription 2 meets the narcotic, anesthetic, and narcotic drug classification rule, the temporary classification list for the narcotic, anesthetic, and narcotic drug classification rule is empty. After taking the union of the temporary classification list with the classification result list, the resulting classification result list is empty. Since the classification result list is empty, there is no need to traverse the full 5-point rule. Therefore, a new prescription is created and the psychotropic drug is assigned to it. This shows that by assigning weights to each classification rule and determining its execution order based on its weight, drug classification can be performed without traversing all classification rules, thereby improving the speed and efficiency of drug classification.
[0124] Considering the optimization of the traversal order of prescription rules to improve the rationality and efficiency of drug prescription, the traversal order of some prescription rules can be adjusted. Based on this, the drug prescription method provided by this application can also include:
[0125] In response to the operation of changing the weight value of the target party rule in the party rule version, the traversal order of the target party rule is adjusted so that the traversal order of the party rule with a weight value higher than the target party rule takes precedence over the traversal order of the target party rule, and the traversal order of the party rule with a weight value lower than the target party rule lags behind the traversal order of the target party rule.
[0126] Specifically, the traversal order of the prescription rules can be changed by adjusting the weight values of the prescription rules. It should be noted that when adjusting the weight values of the prescription rules, the rationality of the traversal of the prescription rules must be ensured, such as ensuring that the traversal order of the compliance-type prescription rules is first and the traversal order of the business-type prescription rules is later. For example, in the business-type prescription rule A that is traversed first and the prescription rule B that is traversed later, the actual impact of the prescription rule B on the drug prescription is greater than the actual impact of the prescription rule A on the drug prescription, then the weight value of the prescription rule B can be increased so that the prescription rule B is traversed first and the prescription rule A is traversed later, thereby improving the rationality of the drug prescription.
[0127] Considering that doctor users have strong experience in drug prescription, the prescription results of the system may deviate from the doctor users' experience. In order to improve the user experience of doctor users, a limited drug prescription adjustment function can be provided. The drug prescription method provided in this application may also include:
[0128] After the drug to be dispensed is placed at the location of the target prescription, in response to an operation of dragging the drug to be dispensed to another prescription, the target prescription is moved to the other prescription.
[0129] Among them, the other prescriptions are prescriptions for the drugs to be dispensed that comply with the mandatory prescription rule set, and the mandatory prescription rule set includes several mandatory prescription rules. For example, the mandatory prescription rule set can include compliance-type prescription rules such as dual-channel outsourcing prescription rules, toxic and hemp prescription rules, and full 5-point prescription rules, and can also include some business-type prescription rules. It can be seen that while providing doctor users with operational prescription authority, the necessary restrictions on drug prescriptions are also retained, thereby improving the user experience of doctor users and the flexibility of drug prescriptions.
[0130] Considering that there may be a large number of deviations between the prescription results of doctor users based on their own drug prescription experience and those of the system, which may make doctor users feel that the prescription of the system is not reasonable and the configuration of the prescription rules needs to be adjusted, based on this, the prescription method of drug prescriptions provided in this application may also include:
[0131] 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.
[0132] Examples include Figure 6 , doctor users can Figure 6 If you check or uncheck the prescription rules in the left column, the system will increase or reduce the traversal of certain prescription rules accordingly during the prescription execution process, so that the prescription results are more inclined to the doctor user's drug prescription experience, thereby improving the flexibility and rationality of drug prescription and further improving the efficiency of medical work.
[0133] Furthermore, in order to ensure the security of the system's prescriptions and prevent doctor users from accidentally changing some necessary prescription rules (such as compliance-based prescription rules), some prescription rules can be locked.
[0134] For example, the system administrator can lock the compliance-type prescription rules such as the dual-channel outsourcing prescription rules, the toxic and anaesthetic prescription rules, and the full 5-point prescription rules. Then, the doctor user cannot select / remove the compliance-type prescription rules, thereby ensuring the security of the system prescription.
[0135] Considering that different institutions may have different versions of prescription rules, the drug prescription system can centrally manage the versions of prescription rules of multiple institutions. Based on this, the prescription method of the drug prescription provided by the application may also include:
[0136] In response to the operation of switching to the target organization, the party rule version of the target organization is determined.
[0137] Specifically, the ability to switch institutions can be provided to testers or administrators, allowing them to test each institution's version of each prescription rule. This system provides a cross-institutional management mechanism, giving medical institutions greater flexibility and control, enabling them to quickly adjust prescription rules based on actual needs.
[0138] The following describes a device for implementing a drug prescription provided in an embodiment of the present application. The device for implementing a drug prescription described below and the method for implementing a drug prescription described above can be referenced to each other.
[0139] See also Figure 7 , Figure 7 This is a schematic diagram of the structure of a device for implementing drug prescription division disclosed in an embodiment of the present application.
[0140] like Figure 7 As shown, the device may include:
[0141] The prescription rule version determination unit 11 is used to 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;
[0142] A drug prescription division unit 12 is configured to divide the drug to be divided based on each division rule of the division rule version to obtain a division result, wherein the division result includes one or more target prescriptions;
[0143] The cursor position determination unit 13 is used to determine whether the operation cursor of the doctor user in the front-end interface is at the position of the target prescription. If so, the medicine dispensing unit 14 is executed; if not, the medicine placement unit 15 is executed;
[0144] The medicine dispensing unit 14 is used to place the medicine to be dispensed at the location of the target prescription;
[0145] The medicine placement unit 15 is configured to place the medicine to be divided into the target prescription when the prescription division result contains only one target prescription;
[0146] The first target prescription placement unit 16 is configured to place the drug to be prescribed in the first target prescription of the multiple target prescriptions when the prescription division result includes multiple target prescriptions.
[0147] Optionally, the device further includes:
[0148] A rendering unit is used to render various drug information of each drug included in the target prescription in the front-end interface in response to the doctor user clicking the target prescription after the to-be-prescribed drug is displayed at the location of the target prescription.
[0149] Optionally, the drug prescription unit includes:
[0150] A prescription result list initialization unit, used to initialize an empty prescription result list of the medicine to be prescribed;
[0151] a prescription rule application unit configured to, when traversing each prescription rule of the prescription rule version, create an empty temporary prescription list for the prescription rule, determine all temporary target prescriptions for the drug to be prescribed that meet the prescription rule, and store all the temporary target prescriptions in the temporary prescription list; if the prescription rule is the first traversed prescription rule, take the union of the prescription result list and the temporary prescription list to obtain a new prescription result list; otherwise, take the intersection of the prescription result list and the temporary prescription list to obtain a new prescription result list;
[0152] A division result list determining unit, configured to obtain a final division result list when the traversal of each division rule of the division rule version is completed;
[0153] The prescription result determination unit is used to determine that the prescription result list is a prescription result if the prescription result list is not empty, and otherwise create a new prescription as the prescription result of the medicine to be prescribed.
[0154] Optionally, the drug prescription unit includes:
[0155] A prescription result list initialization unit, used to initialize an empty prescription result list of the medicine to be prescribed;
[0156] a traversal order determining unit, configured to determine a 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 in the traversal order;
[0157] A first prescription rule result storage unit is configured to, when traversing to a first prescription rule, determine all temporary target prescriptions of the drug to be prescribed that meet the first prescription rule, and store all the temporary target prescriptions in the prescription result list to obtain a new prescription result list;
[0158] An empty result judgment unit is used to judge whether the prescription result list is empty, and 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 a prescription result of the medicine to be prescribed;
[0160] The full traversal judgment unit is configured to determine that the partition result list is a partition result if all partition rules of the partition rule version have been traversed, and otherwise traverse all untraversed partition rules of the partition rule version;
[0161] The intersection processing unit is used to create an empty temporary prescription list for each prescription rule other than the first prescription rule in the prescription rule version when traversing the prescription rule version, determine all temporary target prescriptions of the to-be-prescribed drugs 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 empty result judgment unit.
[0162] Optionally, the device further includes:
[0163] A weight value changing unit is used to adjust the traversal order of the target party rule in the party rule version in response to an operation of changing the weight value of the target party rule, so that the traversal order of the party rule with a weight value higher than the target party rule takes precedence over the traversal order of the target party rule, and the traversal order of the party rule with a weight value lower than the target party rule lags behind the traversal order of the target party rule.
[0164] Optionally, the device further includes:
[0165] A drug moving unit is used to move the target prescription to the other prescription in response to the operation of dragging the drug to be dispensed to the other prescription after the drug to be dispensed is placed at the position of the target prescription, wherein the other prescription is a prescription in which the drug to be dispensed complies with a set of mandatory prescription rules, and the set of mandatory prescription rules includes several mandatory prescription rules.
[0166] Optionally, the device further includes:
[0167] A sub-party rule adding unit, configured to add the target sub-party rule to the sub-party rule version of the institution in response to an operation of selecting the target sub-party rule of the institution;
[0168] The sub-party rule removing unit is configured to remove the target sub-party rule from the sub-party rule version in response to an operation of canceling the target sub-party rule in the sub-party rule version of the institution.
[0169] Optionally, 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 the locking operation is executed.
[0170] Optionally, the device further includes:
[0171] The target institution's party rule version switching unit is used to determine the target institution's party rule version in response to an operation of switching to the target institution.
[0172] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only 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 terms "comprises," "comprising," or any other variations thereof are 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 explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.
[0173] The various embodiments in this specification are described in a progressive manner, and 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 referenced to each other.
[0174] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to 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 into prescriptions 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, then the medicine to be divided is placed in the location 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; Based on the various prescription division rules of the prescription division rule version, the drugs to be divided are divided to obtain a prescription division result, 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 of the drug to be divided that meet 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 so, create a new prescription as a 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, creating an empty temporary prescription list for the prescription rule, determining all temporary target prescriptions for the drug to be prescribed that meets the prescription rule, storing all the temporary target prescriptions in the temporary prescription list, intersecting the prescription result list with the temporary prescription list to obtain a new prescription result list, and returning to the step of determining whether the prescription result list is empty; The method further includes: In response to the operation of changing the weight value of the target party rule in the party rule version, the traversal order of the target party rule is adjusted so that the traversal order of the party rule with a weight value higher than the target party rule takes precedence over the traversal order of the target party rule, and the traversal order of the party rule with a weight value lower than the target party rule lags behind the traversal order of the target party rule.
2. The method according to claim 1, characterized in that After displaying the medicine to be dispensed at the location 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 Also includes: After the drug to be divided is placed at the location 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 prescription, wherein the other prescription is a prescription 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.
4. The method according to claim 1, wherein 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.
5. The method according to claim 4, 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 the locking operation is executed.
6. 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.
7. A drug prescription splitting device, characterized in that: The method for dividing a drug prescription according to claim 1, the device comprising: A prescription rule version determination unit is used to 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; a drug prescription division unit, configured to divide the drug to be divided based on each division rule of the division rule version to obtain a division result, wherein the division result includes one or more target prescriptions; a cursor position determination unit, configured 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, to execute the medicine dispensing unit; if not, to 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 on the target prescription when the prescription division result contains only one target prescription; The first target prescription placement unit is configured to place the medicine to be divided into a first target prescription when the prescription division 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