Traditional Chinese medicine prescription data processing method, device and computer readable storage medium
By standardizing the identification and risk review of traditional Chinese medicine prescription data, the problem of inconsistent processing of traditional Chinese medicine prescription data from different sources has been solved, and the uniformity and traceability of traditional Chinese medicine prescription review results have been achieved.
Patent Information
- Application Number
- CN202611495228.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-23
- Publication Date
- 2026-11-27
AI Technical Summary
Traditional Chinese medicine prescription data from different sources differ in name, code, and dosage representation, making it difficult to form a unified data processing foundation. Furthermore, existing processing methods are insufficient to consistently address medication risks and special medication situations in prescriptions.
By obtaining the data source information of the original Chinese medicine prescription data, determining the identification mapping relationship, standardizing the Chinese medicine identity information into a unified identifier, and performing prescription standardization processing, combining risk review rules and special permission rules to exempt review, and finally generating a consistent prescription review result.
It establishes a unified processing foundation for traditional Chinese medicine prescription data from different sources, improves the consistency and traceability of prescription review results, and reduces the impact of differences in data expression and unclear scope of exemption on review results.
Smart Images

Figure CN123182931A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of traditional Chinese medicine information processing technology, and in particular to a method, device and computer-readable storage medium for processing traditional Chinese medicine prescription data. Background Technology
[0002] With the development of services such as traditional Chinese medicine (TCM) decoction services, centralized decoction, and shared TCM pharmacies, TCM prescription data needs to be transmitted and processed between different medical institutions and TCM prescription processing systems. Due to differences in the information systems, data structures, and data representation methods used by different data sources, the same TCM may be represented by different names, codes, or dosage forms in prescription data from different sources. This makes it difficult to directly process original TCM prescription data from different sources using a unified data format.
[0003] Current methods for processing traditional Chinese medicine (TCM) prescriptions typically involve separate data access and field transformation for different data sources. After data reception, prescriptions are reviewed according to pre-configured rules such as drug incompatibilities and dosage restrictions, or manually verified by pharmacists based on the review results. In scenarios involving centralized processing of prescriptions from multiple sources, differences in the representation of TCM properties, dosage, and prescription data structure across different sources make it difficult to maintain a consistent data foundation for subsequent review after different data transformation processes. Furthermore, when prescriptions contain special medication situations requiring judgment based on the prescribing entity and specific medication usage, existing methods struggle to uniformly address the specific risks and corresponding review conditions within the prescription.
[0004] Therefore, how to form a unified data processing foundation for traditional Chinese medicine prescription data from different sources, and how to consistently process the medication risks and corresponding special medication situations in the prescriptions based on the unified data processing foundation, so as to obtain prescription review results corresponding to the original traditional Chinese medicine prescriptions, is a problem that needs to be solved in the current traditional Chinese medicine prescription data processing process. Summary of the Invention
[0005] This application provides a method for processing traditional Chinese medicine prescription data, aiming to solve the problem that it is difficult to form a unified data processing basis for traditional Chinese medicine prescription data from different sources, and to obtain consistent prescription review results based on this data processing basis.
[0006] To achieve the above objectives, this application provides a method for processing traditional Chinese medicine prescription data, comprising the following steps:
[0007] Obtain original Chinese medicine prescription data and determine the data source information corresponding to the original Chinese medicine prescription data, wherein the original Chinese medicine prescription data includes the attribute information of the prescription issuer, as well as the Chinese medicine identity information and dosage information corresponding to each Chinese medicine in the prescription;
[0008] Based on the data source information, an identifier mapping relationship corresponding to the Chinese medicine identity information is determined, and based on the identifier mapping relationship, the identifier standardization processing of each Chinese medicine identity information in the original Chinese medicine prescription data is performed to obtain the standard Chinese medicine identifier corresponding to each Chinese medicine. The identifier mapping relationship is used to characterize the correspondence between the Chinese medicine identity information corresponding to the data source information and the unified standard Chinese medicine identifier.
[0009] Based on the standard Chinese medicine identifiers, the original Chinese medicine prescription data is subjected to prescription standardization processing to obtain standardized prescription data corresponding to the original Chinese medicine prescription data;
[0010] Based on preset risk review rules, the standardized prescription data is subjected to compatibility risk review and dosage risk review to obtain a set of risk items;
[0011] Based on the preset special permission rules and the attribute information of the prescription issuer, an exemption review is performed on each risk item in the risk item set to obtain the exemption judgment result corresponding to each risk item.
[0012] Based on the set of risk items and the exemption judgment results corresponding to each risk item, the standardized prescription data is comprehensively reviewed to obtain the prescription review result corresponding to the original Chinese medicine prescription data.
[0013] To achieve the above objectives, this application also proposes a traditional Chinese medicine prescription data processing device, including a memory, a processor, and a traditional Chinese medicine prescription data processing program stored in the memory and executable on the processor. When the processor executes the traditional Chinese medicine prescription data processing program, it implements the traditional Chinese medicine prescription data processing method as described in any of the above claims.
[0014] To achieve the above objectives, embodiments of this application also propose a computer-readable storage medium storing a traditional Chinese medicine prescription data processing program, wherein the traditional Chinese medicine prescription data processing program, when executed by a processor, implements the traditional Chinese medicine prescription data processing method as described in any of the above claims.
[0015] The traditional Chinese medicine (TCM) prescription data processing method of this invention acquires original TCM prescription data and determines the corresponding data source information. Based on the data source information, it selects appropriate identifier mapping relationships to convert TCM identity information from different sources into unified standard TCM identifiers. Then, based on these standard TCM identifiers, it performs prescription standardization processing, thus forming a unified data processing foundation for prescription data from different sources. Because the identifier mapping relationship corresponds to the data source, it can reduce identification bias caused by differences in the expression of TCM names or codes from different sources. This allows subsequent risk review to be performed on TCM and prescription data with unified representation, improving the consistency of TCM prescription data processing from multiple sources.
[0016] Based on this, the present invention performs compatibility risk review and dosage risk review on standardized prescription data, forming a risk item set of identified risks. Combining special authorization rules and the attribute information of the prescribing entity, each risk item is subject to exemption review. By implementing exemption review to specific risk items, a clear link can be established between the determination of special medication situations and the corresponding risks. This avoids the situation where an exemption for one risk item is granted is extended to other risk items in the same prescription, thus improving the targeted nature of handling special medication situations.
[0017] Furthermore, this invention combines the risk item set and the exemption determination results corresponding to each risk item for comprehensive review, so that the prescription review result simultaneously reflects the identified medication risks and their exemption status, while maintaining the correspondence between the review result and the original Chinese medicine prescription data. Thus, it connects the unified identification of prescriptions from multiple sources, the standardization of prescription data, risk identification, and risk item-level exemption processing, reducing the impact of differences in source data expression and unclear exemption scope on the review result, and improving the consistency and traceability of the review result for Chinese medicine prescriptions from multiple sources. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0019] Figure 1 This is a module structure diagram of an embodiment of the traditional Chinese medicine prescription data processing device of the present invention;
[0020] Figure 2 This is a flowchart illustrating an embodiment of the traditional Chinese medicine prescription data processing method of the present invention.
[0021] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0022] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0023] It should be noted that when ordinal numbers such as "first" and "second" are mentioned in the embodiments of this application, they are only used to distinguish different objects and do not indicate a specific order or degree of importance, unless the context clearly specifies otherwise. Furthermore, the "connection" or "coupling" described in the embodiments of this application includes not only direct physical connections but also indirect connections or electrical / communication connections via an intermediate medium.
[0024] like Figure 1 As shown, Figure 1 This is a schematic diagram of the structure of the traditional Chinese medicine prescription data processing device 1 in the hardware operating environment involved in the embodiment of the present invention.
[0025] The traditional Chinese medicine prescription data processing device 1 (hereinafter referred to as "the device") in this application embodiment can be physically manifested as, but is not limited to, a server (including cloud server, server cluster, edge computing node), high-performance workstation, personal computer (PC), mobile terminal, Internet of Things gateway, or dedicated embedded processing device. The device is configured to execute the traditional Chinese medicine prescription data processing method provided in this application embodiment.
[0026] like Figure 1 As shown, the device may include a memory 11, a processor 12, a communication interface 13, and a system bus 14.
[0027] The memory 11 is used to store computer programs (or instructions) and data required for the operation of the device.
[0028] The memory 11 includes at least one type of readable storage medium. The readable storage medium includes non-volatile memory (NVM), such as solid-state drive (SSD), hard disk drive (HDD), flash memory, optical disk, or other magnetic / optical storage media; the readable storage medium may also include volatile memory, such as random access memory (RAM) or cache.
[0029] More importantly, the memory 11 stores the operating system, the database, and the traditional Chinese medicine prescription data processing program 10 involved in this application.
[0030] Processor 12 is the core of the device's operation and control center.
[0031] Specifically, processor 12 may be one or more central processing units (CPUs), microprocessors (MCUs), digital signal processors (DSPs), or field-programmable gate arrays (FPGAs). In embodiments involving artificial intelligence, big data processing, or image rendering, processor 12 may also include an artificial intelligence acceleration chip (such as an NPU, TPU) or a graphics processing unit (GPU) for performing parallel vector or tensor operations.
[0032] The processor 12 uses the system bus 14 to read the traditional Chinese medicine prescription data processing program 10 in the memory 11, and implements each step of the traditional Chinese medicine prescription data processing method provided in this application embodiment by parsing and executing the program instructions.
[0033] Communication interface 13 (or network interface) is used to enable communication and interaction between the device and other electronic devices (such as clients, third-party servers, and sensor nodes).
[0034] Specifically, the communication interface 13 may optionally include a wired interface (such as an Ethernet interface, fiber optic interface, or USB interface) or a wireless interface (such as a Wi-Fi module, cellular mobile communication module, Bluetooth module, or NFC module). This interface supports various standard communication protocols, including but not limited to TCP / IP, HTTP / HTTPS, UDP, MQTT, and RPC.
[0035] System bus 14 can be a Peripheral Component Interconnect Standard (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This bus is used to transfer instruction and data streams between processor 12, memory 11 and communication interface 13.
[0036] Optionally, the device 1 may also include a user interface (not shown) for human-computer interaction. The user interface may include a display unit (such as an LCD screen, OLED screen, or touch screen) and an input unit (such as a keyboard, mouse, or microphone).
[0037] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a physical limitation on the traditional Chinese medicine prescription data processing device 1. Depending on the specific application scenario, the device may include fewer or more components than shown, or combine certain components, or use different component arrangements.
[0038] exist Figure 1 In the operating environment shown, processor 12 calls the traditional Chinese medicine prescription data processing program 10 stored in memory 11 and is configured to perform the following operations:
[0039] Obtain original Chinese medicine prescription data and determine the data source information corresponding to the original Chinese medicine prescription data, wherein the original Chinese medicine prescription data includes the attribute information of the prescription issuer, as well as the Chinese medicine identity information and dosage information corresponding to each Chinese medicine in the prescription;
[0040] Based on the data source information, an identifier mapping relationship corresponding to the Chinese medicine identity information is determined, and based on the identifier mapping relationship, the identifier standardization processing of each Chinese medicine identity information in the original Chinese medicine prescription data is performed to obtain the standard Chinese medicine identifier corresponding to each Chinese medicine. The identifier mapping relationship is used to characterize the correspondence between the Chinese medicine identity information corresponding to the data source information and the unified standard Chinese medicine identifier.
[0041] Based on the standard Chinese medicine identifiers, the original Chinese medicine prescription data is subjected to prescription standardization processing to obtain standardized prescription data corresponding to the original Chinese medicine prescription data;
[0042] Based on preset risk review rules, the standardized prescription data is subjected to compatibility risk review and dosage risk review to obtain a set of risk items;
[0043] Based on the preset special permission rules and the attribute information of the prescription issuer, an exemption review is performed on each risk item in the risk item set to obtain the exemption judgment result corresponding to each risk item.
[0044] Based on the set of risk items and the exemption judgment results corresponding to each risk item, the standardized prescription data is comprehensively reviewed to obtain the prescription review result corresponding to the original Chinese medicine prescription data.
[0045] Furthermore, the processor 12 may also be configured to perform the refined steps of the traditional Chinese medicine prescription data processing method in any of the following embodiments.
[0046] Based on the hardware architecture of the aforementioned traditional Chinese medicine prescription data processing equipment, an embodiment of the traditional Chinese medicine prescription data processing method of the present invention is proposed. (Refer to...) Figure 2 , Figure 2 This is a flowchart illustrating an embodiment of the traditional Chinese medicine prescription data processing method of the present invention. The traditional Chinese medicine prescription data processing method includes the following steps:
[0047] S10. Obtain the original Chinese medicine prescription data and determine the data source information corresponding to the original Chinese medicine prescription data, wherein the original Chinese medicine prescription data includes the prescription issuer attribute information, as well as the Chinese medicine identity information and dosage information corresponding to each Chinese medicine in the prescription.
[0048] This step is used to obtain the prescription content required for subsequent processing and to clarify the data source from which the obtained prescription content comes. Since different data sources may use different Chinese medicine names or codes to represent the same Chinese medicine, after obtaining the prescription content, it is also necessary to determine the data source information corresponding to the prescription content so that subsequent identification and standardization processing can be carried out according to the Chinese medicine identity expression method of the corresponding data source.
[0049] The original traditional Chinese medicine (TCM) prescription data refers to prescription data obtained from external data sources that has not yet undergone standardization. TCM identity information is used to identify the corresponding TCM in the prescription and may include one or more of the following: TCM name information and source drug code information; dosage information may include the dosage value and the corresponding dosage unit; prescription issuer attribute information is used to identify the identity or organizational affiliation of the prescription issuer and may include the issuing physician information and the issuing department information. The original TCM prescription data may also include one or more of the following: prescription number, patient information, diagnosis information, prescription date, and decoction requirements.
[0050] Specifically, the traditional Chinese medicine prescription data processing equipment acquires the prescription data to be processed, extracts the prescription issuer's attribute information, and the corresponding TCM identity information and dosage information for each herb, and retains the correspondence between the herb identity information and its dosage information. Simultaneously, based on the source-related content carried in the prescription data or the access configuration used when acquiring the prescription data, the corresponding data source information is determined, and the original TCM prescription data is associated with the determined data source information.
[0051] In some embodiments, step S10 can be implemented by the following steps S11 to S12.
[0052] S11. Obtain the original Chinese medicine prescription data through a pre-configured data access method, wherein the data access method includes at least one of receiving prescription data actively sent by an external data source, obtaining prescription data from an external data source according to a preset time, reading prescription data from an external data storage, and parsing prescription data in an imported file.
[0053] Specifically, the traditional Chinese medicine prescription data processing equipment can be pre-configured with corresponding data access and data parsing methods for different external data sources, and obtain prescription data through the corresponding data access methods.
[0054] When the method of receiving prescription data actively sent by an external data source is adopted, the external data source sends the generated prescription data to the pre-configured data receiving end. The traditional Chinese medicine prescription data processing device parses the received data to obtain the original traditional Chinese medicine prescription data.
[0055] When the method of obtaining prescription data from an external data source according to a preset time is adopted, the traditional Chinese medicine prescription data processing device initiates a data acquisition request to the external data source according to the preset execution cycle, and extracts the original traditional Chinese medicine prescription data from the returned data.
[0056] When prescription data is read from external data storage, the traditional Chinese medicine prescription data processing device reads prescription records according to pre-configured data access relationships and extracts prescription issuer attribute information, traditional Chinese medicine identity information, and dosage information based on field correspondence.
[0057] When using the method of parsing prescription data from imported files, the traditional Chinese medicine prescription data processing device reads the data content from the imported files. For structured files, prescription data can be extracted based on field names, field positions, or field correspondences; for prescription images, the prescription text content in the image can be recognized, and the recognition results can be structured into original traditional Chinese medicine prescription data.
[0058] The original Chinese medicine prescription data obtained through the above methods retains the Chinese medicine identity information and dosage information from the data source side, so as to perform identification standardization processing and prescription standardization processing in combination with the corresponding data source information.
[0059] S12. Obtain the source identifier associated with the original Chinese medicine prescription data, and determine the data source information based on the source identifier.
[0060] Specifically, when the traditional Chinese medicine prescription data processing device acquires the original traditional Chinese medicine prescription data, it simultaneously obtains the source identifier corresponding to the current data access and establishes an association between the source identifier and the original traditional Chinese medicine prescription data.
[0061] The source identifier can be determined based on the corresponding data access configuration. For example, for prescription data sent proactively, the source identifier can be determined based on the access configuration of the data sending end; for prescription data acquired according to a preset time, the source identifier can be determined based on the corresponding data acquisition configuration; for prescription data read from external data storage, the source identifier can be determined based on the corresponding data storage access configuration; for prescription data imported into a file, the source identifier can be determined based on the source configuration associated with the file or the source field carried in the file.
[0062] The traditional Chinese medicine prescription data processing equipment can pre-store the correspondence between source identifiers and data source information, and determine the corresponding data source information based on the source identifiers associated with the current original traditional Chinese medicine prescription data.
[0063] The data source information may include one or more of the following: source organization identifier, source system identifier, data access configuration identifier, and source data structure version information. This data source information should at least be able to distinguish data sources using different methods of expressing the identity of traditional Chinese medicine.
[0064] It is understood that through steps S11 to S12, prescription data obtained through proactive sending, periodic acquisition, storage retrieval, or file import can be associated with corresponding source identifiers, thereby determining the data source information and ensuring that prescriptions obtained through different access methods retain their source attribution. This provides a clear basis for subsequent selection of identifier mapping relationships based on source, reducing mapping relationship selection errors caused by different access methods or unclear source associations.
[0065] S20. Based on the data source information, determine the identifier mapping relationship corresponding to the Chinese medicine identity information, and perform identifier standardization processing on each of the Chinese medicine identity information in the original Chinese medicine prescription data based on the identifier mapping relationship to obtain the standard Chinese medicine identifier corresponding to each Chinese medicine. The identifier mapping relationship is used to characterize the correspondence between the Chinese medicine identity information corresponding to the data source information and the unified standard Chinese medicine identifier.
[0066] This step converts the TCM (Traditional Chinese Medicine) identity representations used in different data sources into a unified standard TCM identifier, enabling subsequent prescription standardization processing to associate each TCM with its dosage information according to the unified identifier. Since the same source drug code may represent different TCMs in different source systems, it is necessary to determine the applicable identifier mapping relationship based on the data source information.
[0067] The standard TCM identifier is a unique identifier used to distinguish the identity of TCM within a unified TCM identifier system. It can be a standard code or a pre-assigned unique identifier. Names or codes representing the same TCM from different sources can correspond to the same standard TCM identifier, while different TCMs requiring differentiation will correspond to different standard TCM identifiers. The identifier mapping relationship can be stored through a mapping table or corresponding relationship record. Each record is associated with the data source, the TCM identity information on the source side, and the corresponding standard TCM identifier.
[0068] Specifically, the traditional Chinese medicine prescription data processing device selects an identifier mapping relationship applicable to the data source based on the data source information corresponding to the original traditional Chinese medicine prescription data. Then, it matches the traditional Chinese medicine identity information of each traditional Chinese medicine in the prescription with the source side information in the selected mapping relationship to determine the corresponding standard traditional Chinese medicine identifier and retain the association between the standard traditional Chinese medicine identifier and the corresponding traditional Chinese medicine record in the original prescription.
[0069] In some embodiments, the identification information of traditional Chinese medicine includes the name information of the traditional Chinese medicine and the source drug code information. The identification mapping relationship includes the name mapping relationship corresponding to the name information of the traditional Chinese medicine and the code mapping relationship corresponding to the source drug code information. Based on this, step S20 can be implemented by the following steps S21 to S23.
[0070] S21. Determine the name mapping relationship and encoding mapping relationship corresponding to the data source information.
[0071] Among them, the name mapping relationship is used to associate the Chinese medicine name on the source side with the standard Chinese medicine identifier, and the code mapping relationship is used to associate the source drug code on the source side with the standard Chinese medicine identifier. Both types of mapping relationships adopt the same standard Chinese medicine identifier system.
[0072] Specifically, the traditional Chinese medicine prescription data processing equipment can pre-configure name mapping relationships and code mapping relationships for each data source, and query the corresponding configuration based on the data source information corresponding to the current prescription. For different names used on the source side, a corresponding record can be established for each with the same standard traditional Chinese medicine identifier; for the source drug code, a corresponding record for each with the standard traditional Chinese medicine identifier can be established within the scope of its data source.
[0073] For example, the code "001" in source system A and the code "001" in source system B can correspond to different standard Chinese medicine identifiers. When processing prescriptions from source system A, the meaning of the code is determined using the corresponding code mapping relationship in source system A.
[0074] S22. For each Chinese medicine, the name information of the Chinese medicine is mapped based on the name mapping relationship to obtain the name identifier mapping result, and the source drug code information is mapped based on the encoding mapping relationship to obtain the encoding identifier mapping result.
[0075] Among them, the name identifier mapping result is the result obtained by querying the name mapping relationship based on the Chinese medicine name information, and the code identifier mapping result is the result obtained by querying the code mapping relationship based on the source drug code information. Each mapping result can include the standard Chinese medicine identifier obtained by querying and the corresponding matching status.
[0076] Specifically, the traditional Chinese medicine prescription data processing equipment reads the name information and source drug code information of the same traditional Chinese medicine record in the original prescription. It queries the name mapping relationship using the traditional Chinese medicine name information and the code mapping relationship using the source drug code information, and associates the two types of mapping results with the traditional Chinese medicine record. The two types of queries are executed according to the corresponding name and code, respectively, so that the name identifier mapping result and the code identifier mapping result can be used for subsequent cross-verification.
[0077] For example, if the name in the same Chinese medicine record is found to be the standard Chinese medicine identifier M001 through the name mapping relationship query, and its source drug code is also found to be M001 through the code mapping relationship query, then the two mapping results point to the same Chinese medicine; if the code query results to be M002, then the two mapping results point to different Chinese medicines, and this difference needs to be identified in subsequent verification.
[0078] S23. Perform an identifier consistency verification on the name identifier mapping result and the code identifier mapping result, and determine the standard Chinese medicine identifier corresponding to each Chinese medicine based on the identifier consistency verification result.
[0079] Among them, the identifier consistency verification is used to determine whether the name identifier mapping result and the code identifier mapping result of the same Chinese medicine point to the same standard Chinese medicine identifier, so as to identify the conflict between the name and code mapping.
[0080] Specifically, the traditional Chinese medicine prescription data processing device reads two types of mapping results corresponding to the same traditional Chinese medicine record and compares the standard traditional Chinese medicine identifiers they point to. When the two types of mapping results are consistent, the standard traditional Chinese medicine identifier for the traditional Chinese medicine is determined based on the consistent mapping results; when the two types of mapping results are inconsistent, the traditional Chinese medicine record is processed as an anomaly, and its standard traditional Chinese medicine identifier is determined based on the verification and confirmation results.
[0081] In some embodiments, if any mapping result does not match a standard Chinese medicine (TCM) identifier, or matches multiple but cannot determine a unique candidate standard TCM identifier, an identifier mapping anomaly result is generated, and the corresponding TCM identity information and both types of mapping results are transferred to manual review. When both types of mapping results can determine a unique candidate standard TCM identifier, a consistency comparison between candidate identifiers is performed; both mapping results being empty are not considered as verification passing criteria. For TCM records transferred to manual review, after obtaining the verified standard TCM identifier, the standard TCM identifier for the corresponding TCM is determined according to the following steps S235 to S236.
[0082] In some embodiments, step S23 can be implemented by the following steps S231 to S236.
[0083] S231. Determine the first candidate standard Chinese medicine identifier based on the name identifier mapping result, and determine the second candidate standard Chinese medicine identifier based on the code identifier mapping result.
[0084] Among them, the first candidate standard TCM identifier is the standard TCM identifier obtained by mapping TCM name information, and the second candidate standard TCM identifier is the standard TCM identifier obtained by mapping source drug code information. Both are identifiers to be verified for the same TCM record.
[0085] Specifically, the traditional Chinese medicine prescription data processing device extracts the corresponding standard traditional Chinese medicine identifier from the name identifier mapping result as the first candidate standard traditional Chinese medicine identifier, and extracts the corresponding standard traditional Chinese medicine identifier from the code identifier mapping result as the second candidate standard traditional Chinese medicine identifier.
[0086] S232. Verify the consistency of the labels of the first candidate standard Chinese medicine and the second candidate standard Chinese medicine to determine whether the labels of the first candidate standard Chinese medicine and the second candidate standard Chinese medicine are the same.
[0087] Specifically, the traditional Chinese medicine prescription data processing equipment compares the identifier values of two candidate identifiers under a unified standard traditional Chinese medicine identifier system. When the two candidate identifiers are the same, the identifier consistency verification is deemed to have passed; when the two candidate identifiers are different, the identifier consistency verification is deemed to have failed. For example, if both candidate identifiers are M001, the verification passes; if the two candidate identifiers are M001 and M002 respectively, the verification fails.
[0088] S233. When the consistency verification of the identifier is passed, the first candidate standard Chinese medicine identifier is determined as the target standard Chinese medicine identifier of the corresponding Chinese medicine.
[0089] Among them, the target standard TCM label is the label determined for the corresponding TCM record after consistency verification or manual review.
[0090] Specifically, if the verification is successful, it indicates that the candidate identifier obtained by the name mapping and the code mapping are the same. The traditional Chinese medicine prescription data processing device records the first candidate standard traditional Chinese medicine identifier as the target standard traditional Chinese medicine identifier for the traditional Chinese medicine and proceeds to step S236.
[0091] S234. When the identity consistency verification fails, an identity mapping anomaly result is generated, and the corresponding Chinese medicine identity information, the name identity mapping result, and the code identity mapping result are transferred to manual review processing.
[0092] Among them, the identification mapping anomaly result is used to record situations where there is a conflict between the name mapping and the code mapping, or where the mapping result cannot determine a unique candidate standard Chinese medicine identification. It can include the association information of the corresponding Chinese medicine record, the obtained candidate standard Chinese medicine identification, and the reason for the anomaly.
[0093] Specifically, the traditional Chinese medicine (TCM) prescription data processing equipment submits TCM records with abnormal identifier mappings and their two types of mapping results to the manual review interface, displaying the corresponding data source information, original TCM name, and source drug code. Reviewers verify the TCM's identity by referring to the source's drug catalog or prescription record, and then confirm the corresponding standard TCM identifier from the unified TCM identifier system. Before obtaining confirmation, the corresponding TCM record remains in a pending review state, and unconfirmed candidate identifiers are not used as the standard TCM identifier for that TCM.
[0094] S235. Obtain the verified standard Chinese medicine label output by the manual review process, and determine the verified standard Chinese medicine label as the target standard Chinese medicine label for the corresponding Chinese medicine.
[0095] Specifically, the traditional Chinese medicine prescription data processing equipment receives the confirmation result submitted by the reviewer, and writes the confirmed standard traditional Chinese medicine identifier into the target standard traditional Chinese medicine identifier field of the corresponding record based on the prescription and traditional Chinese medicine record associated with the result. The confirmed standard traditional Chinese medicine identifier can be one of two candidate identifiers, or it can be another standard traditional Chinese medicine identifier determined after review.
[0096] S236. Use the target standard Chinese medicine label as the standard Chinese medicine label for the corresponding Chinese medicine.
[0097] Specifically, the traditional Chinese medicine prescription data processing device associates the target standard traditional Chinese medicine identifier determined in step S233 or step S235 with the corresponding traditional Chinese medicine record in the original prescription, so that the identifier determined by consistency verification and the identifier confirmed by manual review can both be used as input for subsequent prescription standardization processing and correspond to the original dosage information of the traditional Chinese medicine record.
[0098] Steps S231 to S236 connect the consistency comparison of two candidate standard TCM labels with manual review in case of anomalies. This allows consistent candidate labels to be directly confirmed, while conflicting or ununique mapping results are reverted to the standard TCM label after review and confirmation. This reduces the number of unconfirmed labels entering subsequent prescription processing and maintains the correspondence between the review results and the original TCM records and their dosage information.
[0099] It is understandable that by performing name mapping and code mapping respectively within the scope of data source limitation through steps S21 to S23, and verifying the two types of mapping results of the same Chinese medicine record under the unified identification system, it is possible to identify mapping conflicts that are not easily revealed when using name or code mapping alone, and reduce the impact of differences in the meaning of codes between sources and inconsistencies between names and codes on the standardization results of Chinese medicine identity.
[0100] S30. Based on the standard Chinese medicine identifiers, perform prescription standardization processing on the original Chinese medicine prescription data to obtain standardized prescription data corresponding to the original Chinese medicine prescription data.
[0101] This step is used to further unify the dosage representation and data structure in prescriptions from different sources, based on the already unified identity of Chinese medicine, so that subsequent risk reviews can read and compare prescription data according to consistent fields and dosage units.
[0102] The prescription standardization process transforms the dosage representation and prescription field organization in the original Chinese medicine prescription data into a unified format. Standardized prescription data consists of prescription data organized according to a unified data structure, including the standard Chinese medicine identifier corresponding to each herb, standardized dosage information, and the attribute information of the prescribing entity.
[0103] Specifically, the traditional Chinese medicine (TCM) prescription data processing equipment obtains the corresponding dosage information based on the association between each standard TCM identifier and the original TCM record. This dosage information is then converted into a unified dosage representation. Following a preset prescription data structure, the equipment organizes the standard TCM identifiers, dosage information, and prescription issuer attribute information for each TCM herb, generating standardized prescription data corresponding to the original TCM prescription data. During the conversion process, the correspondence between the identifier and dosage of the same TCM herb, as well as the association between each TCM record and its corresponding prescription, is preserved.
[0104] In some embodiments, step S30 can be implemented by the following steps S31 to S34.
[0105] S31. Based on the preset dosage unit conversion relationship, the dosage information corresponding to each Chinese medicine in the original Chinese medicine prescription data is converted into units to obtain the standard dosage corresponding to each of the standard Chinese medicine labels.
[0106] The dose unit conversion relationship is used to characterize the conversion relationship between the source dose unit and the target dose unit. The standard dose is the dosage data obtained after converting the original dose information to the target dose unit, including the converted dose value and the target dose unit.
[0107] Specifically, the traditional Chinese medicine prescription data processing equipment reads the corresponding dosage value and unit of each Chinese medicine, queries the corresponding conversion factor based on the dosage unit and the target dosage unit, multiplies the original dosage value by the conversion factor to obtain the converted dosage value, and associates the converted dosage value and the target dosage unit with the standard Chinese medicine identifier for that Chinese medicine. When the original dosage unit and the target dosage unit are the same, the original dosage value is retained.
[0108] For example, when the original dosage information is 1000 mg and the target dosage unit is gram, the standard dosage is determined to be 1 gram based on the conversion factor of 0.001 from milligram to gram. The above conversion keeps the amount represented by the original dosage unchanged and retains the corresponding dosage per dose or total dosage of the prescription, so as to facilitate subsequent dosage comparisons under the same measurement standard.
[0109] S32. Determine the prescription attribute field group and the traditional Chinese medicine item field group in the preset prescription data structure.
[0110] The preset prescription data structure specifies the fields included in standardized prescription data and the organizational relationships between these fields. The prescription attribute field group records attribute information belonging to the entire prescription, while the Chinese herbal medicine item field group records detailed information about each Chinese herbal medicine in the prescription, and can adopt a list structure containing multiple Chinese herbal medicine items.
[0111] Specifically, the traditional Chinese medicine prescription data processing device reads the pre-configured prescription data structure, determines the prescribing physician, prescribing department, and other fields in the prescription attribute field group, as well as the standard traditional Chinese medicine identifier, standard dosage value, dosage unit, and measurement caliber, and creates the prescription data object to be written.
[0112] S33. According to the correspondence of each Chinese medicine in the original Chinese medicine prescription data, combine each standard Chinese medicine identifier and the corresponding standard dosage into a standard Chinese medicine entry, and write each standard Chinese medicine entry into the Chinese medicine entry field group.
[0113] Among them, a standard Chinese medicine entry is a data unit that records a detail of a Chinese medicine in a unified field format, including at least the standard Chinese medicine identifier and the corresponding standard dosage.
[0114] Specifically, the traditional Chinese medicine prescription data processing equipment uses the traditional Chinese medicine records in the original prescription as the basis for association. It obtains the standard traditional Chinese medicine identifier obtained by standardizing the identifier of the record, and the standard dosage obtained by unit conversion. It writes the two into the corresponding fields of the same standard traditional Chinese medicine entry, and then writes the generated standard traditional Chinese medicine entries into the traditional Chinese medicine entry field group. The standard traditional Chinese medicine entry also records the corresponding measurement caliber, so that when the standard dosage is read later, the dosage range represented by the value can be determined.
[0115] For example, if a certain traditional Chinese medicine (TCM) record in the original prescription is processed to obtain a standard TCM identifier M001 and a standard dosage of 1 gram, then a standard TCM entry containing M001, the dosage value of 1, and the dosage unit of gram will be generated. Each TCM entry establishes a correspondence between identifier and dosage according to its original record to avoid mismatches in dosage information between different TCMs.
[0116] S34. Write the prescription issuer attribute information into the prescription attribute field group, and generate the standardized prescription data based on the prescription attribute field group and the traditional Chinese medicine item field group.
[0117] Specifically, the traditional Chinese medicine prescription data processing equipment writes the prescription issuer's attribute information into the corresponding fields based on the preset correspondence between the original prescription fields and the prescription attribute field groups. For example, the prescribing physician information is written into the prescribing physician field, and the prescribing department information is written into the prescribing department field. Additional information contained in the original traditional Chinese medicine prescription data, such as prescription number, patient information, diagnosis information, or prescription date, can also be written into the corresponding prescription attribute fields.
[0118] After the fields are written, the traditional Chinese medicine prescription data processing device organizes the prescription attribute field groups and traditional Chinese medicine item field groups belonging to the same original prescription into a standardized prescription data object according to the preset prescription data structure. It maintains the correspondence between this object and the original traditional Chinese medicine prescription data through prescription numbers or internal association identifiers. Specifically, the standard traditional Chinese medicine identifier and standard dosage in each traditional Chinese medicine item are used for subsequent risk review, while the prescription issuer attribute information in the prescription attribute field group is used for subsequent exemption review for risk items.
[0119] By combining dosage unit conversion with prescription field organization through steps S31 to S34, and binding standard Chinese medicine identifiers, standard dosages, and measurement standards according to the original Chinese medicine records, the impact of unit differences and mismatches between identifiers and dosages on subsequent reviews can be reduced. Furthermore, by separately organizing prescription attribute field groups and Chinese medicine entry field groups, the medication details required for risk review and the prescribing entity information required for exemption review can be kept in the same prescription data object, improving the consistency of subsequent data reading and correlation processing.
[0120] S40. Based on preset risk review rules, the standardized prescription data is subjected to compatibility risk review and dosage risk review to obtain a set of risk items.
[0121] This step is used to identify compatibility and dosage risks that require further review from standardized prescription data, and to record the identification results as risk items that can be processed separately, so that each risk item can be exempted from review in a subsequent manner by combining the attribute information of the prescribing entity and special permission rules.
[0122] Among them, the risk review rules are the preset criteria for determining whether there are medication risks in a prescription. The compatibility risk review is used to determine whether there are any incompatibilities between the Chinese herbal combinations in the prescription, and the dosage risk review is used to determine whether the dosage of each Chinese herbal medicine in the prescription exceeds the corresponding limit. The risk item set is used to record the risks found during the review, and each risk item corresponds to a specific risk object and risk condition.
[0123] Specifically, the traditional Chinese medicine prescription data processing equipment reads the standard Chinese medicine identification and corresponding dosage of each Chinese medicine in the standardized prescription data, and checks the compatibility relationships between Chinese medicines and the dosage of each Chinese medicine according to risk review rules. For any incompatibilities or overdosing issues found, the Chinese medicines involved, the conditions triggering the risk, and the corresponding prescription association information are recorded, and all records are compiled into a risk item set corresponding to the prescription.
[0124] In some embodiments, the risk review rules include incompatibilities rules and dosage restriction rules, and the standardized prescription data includes each standard Chinese medicine label and the standard dosage corresponding to each standard Chinese medicine label. Based on this, step S40 can be implemented by the following steps S41 to S44.
[0125] S41. According to the method of forming a Chinese medicine combination by combining the standard Chinese medicine identifiers corresponding to two different Chinese medicines, the standard Chinese medicine identifiers in the standardized prescription data are combined to obtain a set of Chinese medicine combinations, wherein each set of Chinese medicine combinations corresponds to two different Chinese medicines.
[0126] Among them, the combination of traditional Chinese medicines is the basic object of compatibility risk review, including the standard Chinese medicine identifiers corresponding to two different Chinese medicines in the prescription. The set of Chinese medicine combinations covers all binary combinations between different Chinese medicines in the prescription, and the two standard Chinese medicine identifiers in the same combination do not form different Chinese medicine combinations due to different order of arrangement.
[0127] Specifically, the traditional Chinese medicine prescription data processing equipment extracts standard Chinese medicine identifiers from standardized prescription data, pairs the standard Chinese medicine identifiers representing different Chinese medicines, and records each pair of identifiers as a Chinese medicine combination. Identifiers corresponding to the same Chinese medicine are not paired with themselves, and already recorded combinations are not recorded repeatedly due to the exchange of the order of two identifiers.
[0128] For example, if a prescription includes standard Chinese medicine identifiers M001, M002, and M003, the resulting set of Chinese medicine combinations includes three combinations: M001 and M002, M001 and M003, and M002 and M003. When a prescription includes only one type of Chinese medicine, the set of Chinese medicine combinations is empty, and that Chinese medicine is still the subject of subsequent dose risk review.
[0129] S42. Compare the correspondence between each of the Chinese herbal medicine combinations and the incompatible Chinese herbal medicine pairs in the compatibility rules to obtain the compatibility comparison results that characterize whether each of the Chinese herbal medicine combinations corresponds to the incompatible Chinese herbal medicine pairs, and determine the Chinese herbal medicine combinations with compatibility incompatibilities based on the compatibility comparison results, and generate the corresponding compatibility risk items.
[0130] Among them, the contraindicated Chinese herbal medicine pairs are two Chinese herbal medicines that have a contraindication relationship as recorded in the rules of incompatibility. The Chinese herbal medicines in the contraindicated Chinese herbal medicine pairs are represented by a standard Chinese herbal medicine identification system consistent with the standardized prescription data; for the rules of incompatibility recorded by Chinese herbal medicine names or other codes, the Chinese herbal medicines in the rules can be converted into the corresponding standard Chinese herbal medicine identifications through a preset correspondence before comparison.
[0131] Specifically, the traditional Chinese medicine prescription data processing device reads two standard Chinese medicine identifiers from a Chinese medicine combination and compares them with two standard Chinese medicine identifiers from each pair of contraindicated Chinese medicines. If two identifiers in a Chinese medicine combination correspond to the same two identifiers in a contraindicated Chinese medicine pair, the Chinese medicine combination is determined to correspond to that contraindicated Chinese medicine pair; the order of the two identifiers is not considered during the comparison. If no corresponding contraindicated Chinese medicine pair exists, the Chinese medicine combination is determined to have violated the incompatibilities rule.
[0132] For Chinese herbal combinations that violate the incompatibilities rule, the Chinese herbal prescription data processing equipment generates a compatibility risk item, records the two standard Chinese herbal identifiers in the combination as risk objects, records the violated compatibility relationship as a risk condition, and can also record the corresponding rule identifier.
[0133] For example, if a certain Chinese medicine combination includes M001 and M002, and there is a contraindication rule that there is a contraindication pair of Chinese medicines consisting of M002 and M001, then it is determined that the Chinese medicine combination violates the contraindication rule, and a contraindication risk item is generated that associates M001, M002 and the violated contraindication relationship.
[0134] S43. Compare the standard dose corresponding to each of the standard Chinese medicine labels with the maximum limit dose corresponding to the dose restriction rules to obtain a dose comparison result that characterizes the relationship between the standard dose and the maximum limit dose. Based on the dose comparison result, determine the standard Chinese medicine labels that have the risk of overdose and generate the corresponding dose risk item.
[0135] The dosage restriction rules are used to record the correspondence between standard Chinese medicine labels and corresponding maximum limit doses. The maximum limit dose is the upper limit of dosage for determining whether there is a risk of overdose for the corresponding Chinese medicine, and its dosage unit and measurement scope are consistent with the standard dose to be compared.
[0136] Specifically, the traditional Chinese medicine prescription data processing equipment queries the corresponding dosage restriction rules using the standard traditional Chinese medicine identifier to obtain the maximum restricted dose of the traditional Chinese medicine, and compares the standard dose value with the maximum restricted dose value. When the standard dose is greater than the maximum restricted dose, it is determined that there is an overdose risk for the traditional Chinese medicine; when the standard dose is less than or equal to the maximum restricted dose, no overdose risk record is generated.
[0137] Before conducting numerical comparisons, the traditional Chinese medicine prescription data processing equipment confirms that both dosages use the same dosage unit and measurement caliber. For example, when the standard dosage represents the amount per dose, the maximum limit dosage per dose is used for comparison; if the two dosages have different units, they are first converted to the same unit according to a preset dosage unit conversion relationship.
[0138] For traditional Chinese medicines with a risk of overdosing, the traditional Chinese medicine prescription data processing equipment generates a dosage risk item, records the standard traditional Chinese medicine identification of the medicine as a risk object, and records the actual standard dose, the maximum limit dose, and the comparison result of the former exceeding the latter in the risk conditions. It can also record the corresponding rule identification for subsequent exemption review based on the specific dosage situation.
[0139] S44. Based on the compatibility risk item and the dosage risk item, form the risk item set, wherein each risk item includes a corresponding risk object and risk condition.
[0140] The risk object is used to identify the Chinese herbal medicine or combination of Chinese herbal medicines involved in the risk, and the risk condition is used to record the specific circumstances that trigger the risk. For the compatibility risk item, the risk object is a combination of Chinese herbal medicines that have incompatibilities, and the risk condition is the incompatibility relationship that the combination encounters; for the dosage risk item, the risk object is a Chinese herbal medicine that has an overdose risk, and the risk condition includes the specific circumstances in which its standard dose exceeds the corresponding maximum limit dose.
[0141] Specifically, the traditional Chinese medicine prescription data processing equipment aggregates the risk items generated during the compatibility risk review and dosage risk review of the same prescription into a single set, and retains the risk type, risk object, risk condition, and related information of the prescription to which the risk item belongs for each risk item. Each risk item can be assigned an independent risk item identifier so that the exemption judgment result can be associated with the corresponding risk item in the future.
[0142] When the same traditional Chinese medicine involves both compatibility risk and dosage risk, the corresponding risk items are retained separately. When the same traditional Chinese medicine is involved in multiple combinations with incompatibilities, the compatibility risk items corresponding to each combination are recorded separately. For example, if M001 and M002 are incompatible, and M001 also has an overdose risk, then the risk item set includes compatibility risk items for M001 and M002, as well as dosage risk items for M001.
[0143] When only one type of risk is found, the risk item set is formed by the risk items generated by that type of review; when no risk is found by either type of review, the risk item set is empty.
[0144] Steps S41 to S44 construct a set of traditional Chinese medicine (TCM) combinations that cover all binary combinations among different TCMs and do not repeat due to order changes, thereby reducing missed combinations and redundant comparisons. By performing dose comparisons under the same units and measurement standards, misjudgments caused by differences in dose representation can be reduced. The identification results are recorded as risk items containing risk objects and risk conditions, enabling independent location of compatibility risks and dose risks, and providing specific verification data for subsequent item-by-item exemption reviews.
[0145] S50. Based on the preset special permission rules and the attribute information of the prescription issuer, perform exemption review on each risk item in the risk item set to obtain the exemption judgment result corresponding to each risk item.
[0146] This step is used to determine whether the identified risk items fall within the scope of permitted special medications, taking into account the prescribing entity and specific risk circumstances, and to determine the processing status of each risk item.
[0147] The special authority rules specify the conditions under which a particular prescribing entity can exempt certain risk items in specific medication situations. The exemption determination result indicates whether the corresponding risk item meets the special authority rules and can include exemption or retention. Exemption means the risk item meets the corresponding conditions, while retention means the risk item still requires further comprehensive review and processing.
[0148] Specifically, the traditional Chinese medicine prescription data processing equipment reads the risk object and risk conditions for each risk item in the risk item set, obtains the prescribing entity attribute information of the corresponding prescription, verifies the above information against the corresponding conditions in the special permission rules, and determines whether the risk item is exempted based on the verification results. Each exemption determination result is associated with the corresponding risk item through a risk item identifier or corresponding relationship, while other risk items in the same prescription are still subject to exemption review separately.
[0149] In some embodiments, the prescription issuer attribute information includes the issuing physician information and the issuing department information, and the special permission rules include applicable subject conditions, applicable risk situations and exemption conditions. Step S50 can be implemented through the following steps S51 to S55.
[0150] S51. For each of the aforementioned risk items, verify the prescribing physician information and the prescribing department information against the applicable subject conditions to obtain the subject condition verification result.
[0151] The applicable subject conditions are used to limit the prescription-issuing entities to which special permission rules apply, and may include physician identifiers, department identifiers, and their associated requirements that allow the application of the rule. The subject condition verification result is used to indicate whether the current prescription-issuing entity meets the above limitations.
[0152] Specifically, the traditional Chinese medicine prescription data processing equipment reads the prescribing physician information and the prescribing department information from the prescription attribute field group based on the association between the current risk item and the prescription, and compares them with the corresponding content in the applicable subject conditions. For rules that simultaneously specify physicians and departments, it verifies whether the prescribing physician belongs to the designated physician range and whether the prescribing department belongs to the designated department range; when the rule further specifies the correspondence between physicians and departments, it also verifies whether the two conform to that correspondence.
[0153] When the issuing physician information and the issuing department information meet the subject requirements stipulated in the rule, the subject condition verification result is determined to be satisfied; otherwise, it is determined to be unsatisfied. For example, if a certain rule only applies to physician P001 in department D001, then when the issuing physician and issuing department of the current prescription correspond to P001 and D001 respectively, the subject condition is satisfied.
[0154] S52. Verify the risk object and risk conditions corresponding to the risk item with the applicable risk situation to obtain the risk situation verification result.
[0155] The applicable risk scenario is used to limit the scope of risks that special permission rules can handle, and may include the compatibility risk of a specified combination of traditional Chinese medicines, or the risk of overdose of a specified traditional Chinese medicine. The risk scenario verification result is used to characterize whether the current risk item falls within the risk scope defined by the rule.
[0156] Specifically, for the compatibility risk item, the traditional Chinese medicine prescription data processing equipment compares the traditional Chinese medicine combinations and the incompatibilities recorded in the risk conditions within the risk object with the traditional Chinese medicine combinations and compatibility risk scenarios specified in the rules. For the dosage risk item, it compares the standard traditional Chinese medicine labels and the overdose scenarios represented by the risk conditions within the risk object with the traditional Chinese medicines and dosage risk scenarios specified in the rules.
[0157] Traditional Chinese medicines (TCMs) in special permission rules are represented using a standard TCM identification system consistent with the risk objects, or by converting them to this identification system through a preset correspondence before comparison. When the risk object and risk conditions meet the risk scope defined by the rules, the risk situation verification result is determined to be satisfied; otherwise, it is determined to be unsatisfactory.
[0158] For example, if the applicable risk scenario for a certain rule is the compatibility risk between M001 and M002, then the compatibility risk involving M001 and M003 does not meet the applicable risk scenario, and the overdose risk of M001 itself does not meet the applicable risk scenario simply because it involves the same traditional Chinese medicine.
[0159] S53. Based on the risk object and risk conditions corresponding to the risk item, perform a condition verification to determine whether the risk item meets the exemption conditions, and obtain the exemption condition verification result.
[0160] The exemption conditions specify the requirements that an applicant must meet to obtain an exemption within the corresponding risk scope. The applicable risk scenario determines which risk the rule addresses, while the exemption conditions further determine whether the specific circumstances of the current risk fall within the scope permitted by the rule.
[0161] Specifically, the traditional Chinese medicine prescription data processing equipment determines the traditional Chinese medicine or combination of traditional Chinese medicine to be verified based on the risk object, and reads the specific data that triggers the risk from the risk conditions, and verifies it with the comparison object, comparison method and limit value specified in the exemption conditions.
[0162] For dosage risk items, exemption conditions can specify the upper limit of the allowable dosage under special medication circumstances. The traditional Chinese medicine prescription data processing equipment reads the actual standard dose in the risk conditions and compares it with the upper limit of the dosage in the same unit and measurement caliber. When the actual standard dose does not exceed the upper limit, it is determined that the corresponding dosage exemption condition is met; when it exceeds the upper limit, it is determined that the condition is not met.
[0163] For drug compatibility risks, exemption conditions can specify the specific incompatibilities that are allowed for exemption. The traditional Chinese medicine prescription data processing equipment locates the corresponding Chinese medicine combination based on the risk object and compares the incompatibilities or rule identifiers recorded in the risk conditions with the allowed exemption content to determine whether the current drug compatibility risk meets the exemption requirements.
[0164] When a rule sets multiple exemption requirements that must be met simultaneously, each requirement is verified separately, and the exemption condition verification result is determined to be satisfied when all requirements are met; if any requirement is not met, it is determined to be unsatisfied.
[0165] S54. When the verification results of the subject condition, the verification results of the risk situation, and the verification results of the exemption condition all indicate that the corresponding condition is met, the exemption determination result of the corresponding risk item is determined as an exemption.
[0166] Specifically, the traditional Chinese medicine prescription data processing equipment aggregates three types of verification results obtained for the current risk item under the same special permission rule. When the prescription issuer meets the applicable subject conditions, the current risk belongs to the applicable risk situation, and the specific risk data meets the exemption conditions, the exemption judgment result of the risk item is recorded as exemption, and associated with the special permission rule and verification result on which it is based.
[0167] For example, if a dosage risk item involves a traditional Chinese medicine specified in the rules, and the prescribing physician and department meet the main requirements, and although the actual standard dose of the traditional Chinese medicine exceeds the conventional maximum limit dose, it does not exceed the special dose limit stipulated in the rules, then the dosage risk item will be deemed exempt.
[0168] S55. When at least one of the subject condition verification results, the risk situation verification results, and the exemption condition verification results indicates that the corresponding condition is not met, the exemption determination result of the corresponding risk item is determined to be retained.
[0169] Specifically, when the entity issuing the prescription does not meet the requirements of the rules, the risk item is not within the scope of the rules, or the specific circumstances of the risk do not meet the exemption conditions, the traditional Chinese medicine prescription data processing equipment will record the exemption judgment result of the corresponding risk item as a retention record, and can also record the unmet conditions and their verification results for subsequent comprehensive review.
[0170] The verification of the aforementioned subject conditions, risk scenarios, and exemption conditions are all performed against the same specific permission rule; verification results from different rules are not combined. If no specific permission rule applicable to the current risk item is configured, the exemption determination result for that risk item will be reserved.
[0171] Each risk item in the same prescription is associated with its respective exemption determination result. For example, if a prescription has both a compatibility risk item and a dosage risk item, and the compatibility risk item meets the special permission rules while the dosage risk item does not, the former is recorded as exempted and the latter as retained, and the two risk items and their respective determination results are submitted for subsequent comprehensive review.
[0172] Steps S51 to S55 verify the prescribing entity, applicable risk circumstances, and specific exemption conditions separately. Based on the three types of verification results under the same special authority rule, the exemption status of each risk item is determined. This avoids making exemption decisions solely based on the entity's compliance with requirements or matching risk circumstances. By associating the determination results with corresponding risk items, the scope of application of the exemption results is limited, preserving other risks in the same prescription that do not meet the conditions, and providing a clear basis for subsequent comprehensive review.
[0173] S60. Based on the set of risk items and the exemption judgment results corresponding to each risk item, the standardized prescription data is comprehensively reviewed to obtain the prescription review result corresponding to the original Chinese medicine prescription data.
[0174] This step is used to aggregate the review results of each risk item to the relevant prescription, forming a prescription-level review conclusion, so that the prescription review status can reflect the risk situation that has not yet been exempted.
[0175] The comprehensive review process combines risk identification and exemption decisions for each risk item to determine whether the prescription still poses a risk requiring further action. The prescription review result characterizes the current review status of the prescription after the above processing, and may include approved results or results awaiting manual review.
[0176] Specifically, the traditional Chinese medicine prescription data processing equipment reads the set of risk items corresponding to the standardized prescription data, and determines the risk items that still need to be addressed based on the exemption judgment results associated with each risk item. When there are no risk items that still need to be addressed, an approval result is generated; when there are risk items that still need to be addressed, a result awaiting manual review is generated, along with the corresponding risk information. The generated prescription review result is linked to the standardized prescription data and its corresponding original traditional Chinese medicine prescription data through the prescription number or internal association identifier.
[0177] In some embodiments, step S60 can be implemented by the following steps S61 to S63.
[0178] S61. Based on the exemption determination result corresponding to each of the risk items, extract the risk items whose exemption determination result is retained from the risk item set to obtain the risk item set to be dealt with.
[0179] The set of risk items to be processed is used to record risk items that still need further processing after being exempted from review. The risk items included in the set are from the risk item set corresponding to the current prescription.
[0180] Specifically, the traditional Chinese medicine prescription data processing equipment reads the exemption judgment results of each risk item based on the risk item identifier or a pre-established correspondence. For risk items whose judgment result is to be retained, they are written into the set of risk items to be dealt with, and the corresponding risk object and risk conditions are retained; for risk items whose judgment result is to be exempted, they are not written into the set of risk items to be dealt with.
[0181] The above extraction process does not change the risk records and exemption determination results in the original risk item set. For example, if the original risk item set includes compatibility risk item R001 and dosage risk item R002, and their exemption determination results are exemption and retention, respectively, then the risk item set to be dealt with only includes R002. R001 and its exemption determination result can still be saved as the review record of the prescription.
[0182] S62. When the set of risk items to be disposed of is empty, an approval result is generated.
[0183] Specifically, the traditional Chinese medicine prescription data processing equipment checks whether there are any risk items in the set of risk items to be processed. When the number of risk items in the set is zero, the review status of the current prescription is determined to be approved, and an approval result containing the review status and prescription-related information is generated.
[0184] An empty set of pending risk items can include two scenarios: first, no risks were found in the compatibility risk review and dosage risk review, resulting in an empty set of risk items; second, risk items existed in the original set, but all of them were exempted. In both scenarios, no risk items are deemed to be retained, and an approval result can be generated. The relevant review criteria can be distinguished by the associated risk items and exemption records.
[0185] S63. When the set of risk items to be dealt with includes at least one risk item, generate a result to be manually reviewed, and associate the risk objects and risk conditions in the set of risk items to be dealt with with the result to be manually reviewed.
[0186] Specifically, when there are one or more risk items in the set of risk items to be dealt with, the traditional Chinese medicine prescription data processing device determines the current prescription's review status as pending manual review, generates a pending manual review result containing the review status and prescription association information, and writes the risk object and risk conditions of each risk item in the set into the corresponding risk details, or establishes an association with the corresponding risk record through the risk item identifier.
[0187] For compatibility risk items, the associated information includes the Chinese herbal medicine combinations with incompatible combinations and the specific incompatibility relationships. For dosage risk items, the associated information includes the standard Chinese herbal medicine label indicating a risk of overdose, the actual standard dose, and the corresponding maximum limit dose. Reviewers can use this information to locate the Chinese herbal medicines or combinations requiring processing and understand the specific reasons triggering the risk.
[0188] When some risk items in the same prescription have been exempted while others remain, a result awaiting manual review is generated based on the retained risk items. For example, if the compatibility risk item R001 has been exempted while the dosage risk item R002 remains, the current prescription will be identified as awaiting manual review, and the traditional Chinese medicine involved in R002 and the overdose situation will be associated in the corresponding risk details.
[0189] Through steps S61 to S63, the risk items determined to be retained are compiled into a set of risk items to be disposed of. The prescription review result is generated based on whether this set is empty, ensuring consistency between the prescription review status and the exemption status of each risk item. For prescriptions requiring manual review, linking specific risk objects and risk conditions to the review result reduces the need for relocating traditional Chinese medicine and searching for risk evidence during review, while maintaining the correspondence between the original risk record, exemption determination, and final review status.
[0190] It is understood that the traditional Chinese medicine prescription data processing method of the present invention acquires original traditional Chinese medicine prescription data and determines the corresponding data source information. Based on the data source information, it selects the corresponding identifier mapping relationship to convert the identity information of traditional Chinese medicine from different sources into a unified standard traditional Chinese medicine identifier. Then, based on each standard traditional Chinese medicine identifier, it performs prescription standardization processing, thus forming a unified data processing foundation for prescription data from different sources. Because the identifier mapping relationship corresponds to the data source, it can reduce the identification bias caused by differences in the expression of traditional Chinese medicine names or codes from different sources. This allows subsequent risk review to be performed on the uniformly represented traditional Chinese medicine and prescription data, improving the consistency of processing traditional Chinese medicine prescription data from multiple sources.
[0191] Based on this, the present invention performs compatibility risk review and dosage risk review on standardized prescription data, forming a risk item set of identified risks. Combining special authorization rules and the attribute information of the prescribing entity, each risk item is subject to exemption review. By implementing exemption review to specific risk items, a clear link can be established between the determination of special medication situations and the corresponding risks. This avoids the situation where an exemption for one risk item is granted is extended to other risk items in the same prescription, thus improving the targeted nature of handling special medication situations.
[0192] Furthermore, this invention combines the risk item set and the exemption determination results corresponding to each risk item for comprehensive review, so that the prescription review result simultaneously reflects the identified medication risks and their exemption status, while maintaining the correspondence between the review result and the original Chinese medicine prescription data. Thus, it connects the unified identification of prescriptions from multiple sources, the standardization of prescription data, risk identification, and risk item-level exemption processing, reducing the impact of differences in source data expression and unclear exemption scope on the review result, and improving the consistency and traceability of the review result for Chinese medicine prescriptions from multiple sources.
[0193] Furthermore, this application embodiment also provides a computer-readable storage medium (or a non-volatile computer-readable storage medium) storing a computer program (or instructions). When the computer program is executed by a processor, it implements the various steps in the above-described embodiments of the traditional Chinese medicine prescription data processing method. The computer-readable storage medium may include any medium capable of storing program code, including but not limited to: read-only memory (ROM), random access memory (RAM), magnetic disk, optical disk, flash memory, hard disk (HDD), or solid-state drive (SSD). This storage medium may exist independently or be integrated into a processor or server.
[0194] The embodiments described herein may be provided as methods, systems, or computer program products. Therefore, this application may be implemented entirely in hardware, entirely in software, or a combination of hardware and software. Furthermore, this application may also be embodied as a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, optical storage, flash memory, etc.).
[0195] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this embodiment. It should be understood that each flow, block, and combination thereof in the flowchart illustrations and / or block diagrams can be implemented by computer program instructions. These instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device for execution, thereby producing a machine for implementing a specified function. Simultaneously, these instructions can also be stored in a computer-readable storage medium or loaded onto a computer device, causing the device to perform a series of operational steps to produce a computer-implemented process.
[0196] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. If such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A method for processing traditional Chinese medicine prescription data, characterized in that, include: Obtain original Chinese medicine prescription data and determine the data source information corresponding to the original Chinese medicine prescription data, wherein the original Chinese medicine prescription data includes the attribute information of the prescription issuer, as well as the Chinese medicine identity information and dosage information corresponding to each Chinese medicine in the prescription; Based on the data source information, an identifier mapping relationship corresponding to the Chinese medicine identity information is determined, and based on the identifier mapping relationship, the identifier standardization processing of each Chinese medicine identity information in the original Chinese medicine prescription data is performed to obtain the standard Chinese medicine identifier corresponding to each Chinese medicine. The identifier mapping relationship is used to characterize the correspondence between the Chinese medicine identity information corresponding to the data source information and the unified standard Chinese medicine identifier. Based on the standard Chinese medicine identifiers, the original Chinese medicine prescription data is subjected to prescription standardization processing to obtain standardized prescription data corresponding to the original Chinese medicine prescription data; Based on preset risk review rules, the standardized prescription data is subjected to compatibility risk review and dosage risk review to obtain a set of risk items; Based on the preset special permission rules and the attribute information of the prescription issuer, an exemption review is performed on each risk item in the risk item set to obtain the exemption judgment result corresponding to each risk item. Based on the set of risk items and the exemption judgment results corresponding to each risk item, the standardized prescription data is comprehensively reviewed to obtain the prescription review result corresponding to the original Chinese medicine prescription data.
2. The method for processing traditional Chinese medicine prescription data as described in claim 1, characterized in that, Obtaining original traditional Chinese medicine prescription data and determining the data source information corresponding to the original traditional Chinese medicine prescription data includes: The original Chinese medicine prescription data is obtained through a pre-configured data access method, wherein the data access method includes at least one of receiving prescription data actively sent by an external data source, obtaining prescription data from an external data source according to a preset time, reading prescription data from an external data storage, and parsing prescription data in an imported file; Obtain the source identifier associated with the original Chinese medicine prescription data, and determine the data source information based on the source identifier.
3. The method for processing traditional Chinese medicine prescription data as described in claim 1, characterized in that, The Chinese medicine identity information includes Chinese medicine name information and source drug code information, and the identification mapping relationship includes a name mapping relationship corresponding to the Chinese medicine name information and a code mapping relationship corresponding to the source drug code information; Based on the data source information, an identifier mapping relationship corresponding to the Chinese herbal medicine (TCM) identity information is determined. Then, based on the identifier mapping relationship, the identifier standardization processing is performed on each TCM identity information in the original TCM prescription data to obtain a standard TCM identifier corresponding to each TCM, including: Determine the name mapping relationship and encoding mapping relationship corresponding to the data source information; For each Chinese medicine, the name information of the Chinese medicine is mapped based on the name mapping relationship to obtain the name identifier mapping result, and the source drug code information is mapped based on the code mapping relationship to obtain the code identifier mapping result; Perform an identifier consistency verification on the name identifier mapping result and the code identifier mapping result, and determine the standard Chinese medicine identifier corresponding to each Chinese medicine based on the identifier consistency verification result.
4. The method for processing traditional Chinese medicine prescription data as described in claim 3, characterized in that, Perform identifier consistency verification on the name identifier mapping result and the code identifier mapping result, and determine the standard Chinese medicine identifier corresponding to each Chinese medicine based on the identifier consistency verification result, including: The first candidate standard Chinese medicine identifier is determined based on the name identifier mapping result, and the second candidate standard Chinese medicine identifier is determined based on the code identifier mapping result; The consistency of the labels of the first candidate standard Chinese medicine and the second candidate standard Chinese medicine is verified to determine whether the labels of the first candidate standard Chinese medicine and the second candidate standard Chinese medicine are the same. When the consistency verification of the identifier passes, the first candidate standard Chinese medicine identifier is determined as the target standard Chinese medicine identifier of the corresponding Chinese medicine; When the identity consistency verification fails, an abnormal identity mapping result is generated, and the corresponding Chinese medicine identity information, the name identity mapping result and the code identity mapping result are transferred to manual review. Obtain the verified standard Chinese medicine label output by the manual review process, and determine the verified standard Chinese medicine label as the target standard Chinese medicine label for the corresponding Chinese medicine; The target standard TCM label is used as the standard TCM label for the corresponding TCM.
5. The method for processing traditional Chinese medicine prescription data as described in claim 1, characterized in that, Based on the aforementioned standard Chinese medicine identifiers, the original Chinese medicine prescription data is subjected to prescription standardization processing to obtain standardized prescription data corresponding to the original Chinese medicine prescription data, including: Based on a preset dosage unit conversion relationship, the dosage information corresponding to each Chinese medicine in the original Chinese medicine prescription data is converted to a unit to obtain the standard dosage corresponding to each of the standard Chinese medicine labels; Determine the prescription attribute field group and the traditional Chinese medicine entry field group in the preset prescription data structure; According to the correspondence of each Chinese medicine in the original Chinese medicine prescription data, each standard Chinese medicine identifier and the corresponding standard dosage are combined into a standard Chinese medicine entry, and each standard Chinese medicine entry is written into the Chinese medicine entry field group; The prescription issuer attribute information is written into the prescription attribute field group, and the standardized prescription data is generated based on the prescription attribute field group and the traditional Chinese medicine item field group.
6. The method for processing traditional Chinese medicine prescription data as described in claim 1, characterized in that, The risk review rules include incompatibility rules and dosage restriction rules, and the standardized prescription data includes the standard Chinese medicine labels and the standard dosages corresponding to the standard Chinese medicine labels. Based on preset risk review rules, the standardized prescription data undergoes compatibility risk review and dosage risk review to obtain a set of risk items, including: The standard Chinese medicine identifiers in the standardized prescription data are combined according to the method of forming a Chinese medicine combination by combining the standard Chinese medicine identifiers corresponding to two different Chinese medicines, so as to obtain a set of Chinese medicine combinations, wherein each set of Chinese medicine combinations corresponds to two different Chinese medicines. Each of the Chinese herbal medicine combinations is compared with the pairs of contraindicated Chinese herbal medicines in the incompatibilities rules to obtain the compatibility comparison results that characterize whether each of the Chinese herbal medicine combinations corresponds to the pairs of contraindicated Chinese herbal medicines. Based on the compatibility comparison results, Chinese herbal medicine combinations with incompatibilities are determined and corresponding compatibility risk items are generated. The standard dose corresponding to each of the standard Chinese medicine labels is numerically compared with the maximum limit dose corresponding to the dose restriction rule to obtain a dose comparison result that characterizes the relationship between the standard dose and the maximum limit dose. Based on the dose comparison result, the standard Chinese medicine labels with overdose risk are identified, and the corresponding dose risk items are generated. The risk item set is formed based on the compatibility risk item and the dosage risk item, wherein each risk item includes a corresponding risk object and risk condition.
7. The method for processing traditional Chinese medicine prescription data as described in claim 6, characterized in that, The prescription issuer attribute information includes the issuing physician information and the issuing department information; the special permission rules include applicable subject conditions, applicable risk situations, and exemption conditions. Based on preset special permission rules and the prescription issuer attribute information, exemption review is performed on each risk item in the risk item set to obtain the exemption judgment result corresponding to each risk item, including: For each of the aforementioned risk items, the prescribing physician information and the prescribing department information are verified against the applicable subject conditions to obtain the subject condition verification results; The risk object and risk condition corresponding to the risk item are verified against the applicable risk situation to obtain the risk situation verification result; Based on the risk object and risk conditions corresponding to the risk item, a condition verification is performed to check whether the risk item meets the exemption conditions, and the exemption condition verification result is obtained. When the verification results of the subject condition, the verification results of the risk situation, and the verification results of the exemption condition all indicate that the corresponding condition is met, the exemption determination result of the corresponding risk item is determined as an exemption; When at least one of the subject condition verification results, the risk situation verification results, and the exemption condition verification results indicates that the corresponding condition is not met, the exemption determination result of the corresponding risk item will be determined as reserved.
8. The method for processing traditional Chinese medicine prescription data as described in claim 7, characterized in that, Based on the set of risk items and the exemption determination results corresponding to each risk item, the standardized prescription data is comprehensively reviewed to obtain the prescription review results corresponding to the original traditional Chinese medicine prescription data, including: Based on the exemption determination result corresponding to each of the risk items, the risk items whose exemption determination result is to be retained are extracted from the risk item set to obtain the risk item set to be dealt with. When the set of risk items to be handled is empty, an approval result is generated; When the set of risk items to be dealt with includes at least one risk item, a result awaiting manual review is generated, and the risk objects and risk conditions in the set of risk items to be dealt with are associated with the result awaiting manual review.
9. A traditional Chinese medicine prescription data processing device, characterized in that, The method includes a memory, a processor, and a traditional Chinese medicine prescription data processing program stored in the memory and executable on the processor. When the processor executes the traditional Chinese medicine prescription data processing program, it implements the traditional Chinese medicine prescription data processing method as described in any one of claims 1-8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a traditional Chinese medicine prescription data processing program, which, when executed by a processor, implements the traditional Chinese medicine prescription data processing method as described in any one of claims 1-8.
