[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110457425B - Case storage method, device, equipment and storage medium - Google Patents

Case storage method, device, equipment and storage medium Download PDF

Info

Publication number
CN110457425B
CN110457425B CN201910717999.4A CN201910717999A CN110457425B CN 110457425 B CN110457425 B CN 110457425B CN 201910717999 A CN201910717999 A CN 201910717999A CN 110457425 B CN110457425 B CN 110457425B
Authority
CN
China
Prior art keywords
case
cases
characteristic
information
blockchain network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910717999.4A
Other languages
Chinese (zh)
Other versions
CN110457425A (en
Inventor
王星雅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910717999.4A priority Critical patent/CN110457425B/en
Priority to CN201910853432.XA priority patent/CN110597946B/en
Publication of CN110457425A publication Critical patent/CN110457425A/en
Application granted granted Critical
Publication of CN110457425B publication Critical patent/CN110457425B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/338Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H10/00ICT specially adapted for the handling or processing of patient-related medical or healthcare data
    • G16H10/60ICT specially adapted for the handling or processing of patient-related medical or healthcare data for patient-specific data, e.g. for electronic patient records

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Medical Treatment And Welfare Office Work (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a case storage method, a case storage device and a case storage medium. On the basis, any block chain node can classify fault cases in the current block chain network according to fault types, so that a plurality of feature cases can be obtained, fault information and corresponding repair information can be comprehensively recorded in the obtained feature cases, and the comprehensive recording of the feature cases can be realized. Further, determining feature key characters in the feature cases as retrieval indexes, and updating a retrieval index library according to the retrieval indexes; the updated index library and the plurality of feature cases are stored in the current blockchain network, so that all blockchain nodes accessing the current blockchain network can share the feature cases, and related feature cases can be searched through the index if necessary.

Description

一种案例存储方法、装置、设备及存储介质Case storage method, device, equipment and storage medium

技术领域Technical Field

本申请涉及区块链技术领域,特别涉及一种案例存储方法、装置、设备及存储介质。The present application relates to the field of blockchain technology, and in particular to a case storage method, device, equipment and storage medium.

背景技术Background technique

通常情况下,人们习惯将机器或其他对象的特殊故障以及该特殊故障的修复信息作为经典案例进行存储,当再次遇到相应的故障时,便可参考历史案例,进行当前故障的修复。但是,现有的记录方式仅会记录个别案例,且对于某一对象的历史故障等信息也都会有记录缺失,从而降低了案例记录的真实性和全面性,导致案例的参考价值也会随之降低。Normally, people are used to storing special faults of machines or other objects and the repair information of the special faults as classic cases. When encountering the corresponding fault again, they can refer to the historical cases to repair the current fault. However, the existing recording method only records individual cases, and there will be missing records of historical faults of a certain object, which reduces the authenticity and comprehensiveness of the case records, resulting in a decrease in the reference value of the case.

发明内容Summary of the invention

有鉴于此,本申请的目的在于提供一种案例存储方法、装置、设备及存储介质,以获得全面、真实的案例,并实现案例的共享。其具体方案如下:In view of this, the purpose of this application is to provide a case storage method, device, equipment and storage medium to obtain comprehensive and real cases and realize case sharing. The specific scheme is as follows:

为实现上述目的,一方面,本申请提供了一种案例存储方法,应用于任一区块链节点,包括:To achieve the above objectives, on the one hand, the present application provides a case storage method, which is applied to any blockchain node, including:

获取当前区块链网络中的多个对象的故障案例;所述故障案例包括:当前对象的至少一个故障信息和对应的修复信息;Obtaining fault cases of multiple objects in the current blockchain network; the fault cases include: at least one fault information of the current object and corresponding repair information;

将多个所述故障案例按照故障类型进行分类,获得多个特征案例;每个特征案例记录有至少一个对象的故障信息和对应的修复信息;Classifying the plurality of fault cases according to the fault type to obtain a plurality of characteristic cases; each characteristic case records the fault information and corresponding repair information of at least one object;

将多个所述特征案例中的特征关键字符确定为检索索引,并根据所述检索索引更新检索索引库;Determine the characteristic key characters in the plurality of characteristic cases as a search index, and update the search index library according to the search index;

将更新后的检索索引库和多个所述特征案例存储至所述当前区块链网络。The updated retrieval index library and the plurality of feature cases are stored in the current blockchain network.

又一方面,本申请还提供了一种案例存储装置,应用于任一区块链节点,包括:In another aspect, the present application further provides a case storage device, applied to any blockchain node, comprising:

获取模块,用于获取当前区块链网络中的多个对象的故障案例;所述故障案例包括:当前对象的至少一个故障信息和对应的修复信息;An acquisition module is used to acquire fault cases of multiple objects in the current blockchain network; the fault cases include: at least one fault information of the current object and corresponding repair information;

分类模块,用于将多个所述故障案例按照故障类型进行分类,获得多个特征案例;每个特征案例记录有至少一个对象的故障信息和对应的修复信息;A classification module, used to classify the plurality of fault cases according to the fault type to obtain a plurality of characteristic cases; each characteristic case records the fault information and corresponding repair information of at least one object;

更新模块,用于将多个所述特征案例中的特征关键字符确定为检索索引,并根据所述检索索引更新检索索引库;An updating module, used to determine the characteristic key characters in the plurality of characteristic cases as a retrieval index, and update the retrieval index library according to the retrieval index;

存储模块,用于将更新后的检索索引库和多个所述特征案例存储至所述当前区块链网络。A storage module is used to store the updated retrieval index library and the plurality of feature cases in the current blockchain network.

又一方面,本申请还提供了一种电子设备,所述电子设备包括处理器和存储器;其中,所述存储器用于存储计算机程序,所述计算机程序由所述处理器加载并执行以实现前述公开的案例存储方法。On the other hand, the present application also provides an electronic device, comprising a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the case storage method disclosed above.

又一方面,本申请还提供了一种存储介质,所述存储介质中存储有计算机可执行指令,所述计算机可执行指令被处理器加载并执行时,实现前述公开的案例存储方法。On the other hand, the present application also provides a storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by a processor, the case storage method disclosed above is implemented.

本申请应用于任一区块链节点,也就是说,任一区块链节点均可执行本申请提供的案例存储方法。其中,当前区块链网络存储有多个对象的故障案例,由于区块链具有信息公开性和较高的安全性,因此利用区块链网络存储故障案例,可以实现故障案例的全网共享,同时保证故障案例的安全性和不可篡改性。在此基础上,任一区块链节点还可以将当前区块链网络中的故障案例按照故障类型进行分类,从而可获得多个特征案例,这样获得的特征案例将会全面记录某一个对象或多个对象的故障信息及相应的修复信息。进一步地,将多个所述特征案例中的特征关键字符确定为检索索引,并根据检索索引更新检索索引库;将更新后的检索索引库和多个特征案例存储至当前区块链网络,这样接入当前区块链网络的所有区块链节点便可以共享特征案例。当某一对象出现故障,可通过检索索引检索相关特征案例,从而为当前故障的修复提供可靠、真实且全面的参考案例。This application is applied to any blockchain node, that is, any blockchain node can execute the case storage method provided by this application. Among them, the current blockchain network stores fault cases of multiple objects. Since the blockchain has information disclosure and high security, the use of the blockchain network to store fault cases can realize the full network sharing of fault cases, while ensuring the security and non-tamperability of the fault cases. On this basis, any blockchain node can also classify the fault cases in the current blockchain network according to the fault type, so that multiple feature cases can be obtained, and the feature cases obtained in this way will comprehensively record the fault information and corresponding repair information of a certain object or multiple objects. Further, the feature key characters in the multiple feature cases are determined as retrieval indexes, and the retrieval index library is updated according to the retrieval index; the updated retrieval index library and multiple feature cases are stored in the current blockchain network, so that all blockchain nodes connected to the current blockchain network can share the feature cases. When a certain object fails, the relevant feature cases can be retrieved through the retrieval index, thereby providing a reliable, true and comprehensive reference case for the repair of the current fault.

相应地,本申请提供的案例存储装置、设备及存储介质,也同样具有上述技术效果。Correspondingly, the case storage device, equipment and storage medium provided by this application also have the above-mentioned technical effects.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

图1为本申请提供的一种案例存储系统架构示意图;FIG1 is a schematic diagram of a case storage system architecture provided by the present application;

图2为本申请提供的第一种案例存储方法流程图;FIG2 is a flow chart of the first case storage method provided by the present application;

图3为本申请提供的第二种案例存储方法流程图;FIG3 is a flow chart of a second case storage method provided by the present application;

图4为本申请提供的第三种案例存储方法流程图;FIG4 is a flow chart of a third case storage method provided by the present application;

图5为本申请提供的一种区块链网络示意图;FIG5 is a schematic diagram of a blockchain network provided by the present application;

图6为本申请提供的一种医疗案例存储方法流程图;FIG6 is a flow chart of a medical case storage method provided by the present application;

图7为本申请提供的一种自然人病例记录示意图;FIG7 is a schematic diagram of a natural person case record provided by the present application;

图8为本申请提供的第一种特征案例记录示意图;FIG8 is a schematic diagram of a first characteristic case record provided by the present application;

图9为本申请提供的第二种特征案例记录示意图;FIG9 is a schematic diagram of a second characteristic case record provided by the present application;

图10为本申请提供的一种检索结果示意图;FIG10 is a schematic diagram of a search result provided by the present application;

图11为本申请提供的一种案例存储装置示意图;FIG11 is a schematic diagram of a case storage device provided by the present application;

图12为本申请提供的一种服务器结构图;FIG12 is a structural diagram of a server provided by the present application;

图13为本申请提供的一种终端结构图。FIG13 is a diagram of a terminal structure provided by the present application.

具体实施方式Detailed ways

目前,现有的记录方式仅会记录个别案例,且对于某一对象的历史故障等信息也都会有记录缺失,从而降低了案例记录的真实性和全面性,导致案例的参考价值也会随之降低。鉴于目前所存在的上述问题,本申请提出了一种案例存储方案,通过该技术方案,能够获得全面、真实的案例,并实现案例的共享。At present, the existing recording method only records individual cases, and there will be missing records of historical failures of a certain object, which reduces the authenticity and comprehensiveness of the case records, resulting in a decrease in the reference value of the case. In view of the above-mentioned problems, this application proposes a case storage solution, through which comprehensive and real cases can be obtained and case sharing can be achieved.

为了便于理解,下面对本申请公开的技术方案所适用的系统架构进行介绍。请参见图1,其示出了本申请所适用的一种系统架构。For ease of understanding, the system architecture applicable to the technical solution disclosed in this application is introduced below. Please refer to Figure 1, which shows a system architecture applicable to this application.

如图1所示,本申请公开的案例存储系统架构可以包括用户终端11、服务器12和区块链网络13。As shown in FIG. 1 , the case storage system architecture disclosed in the present application may include a user terminal 11 , a server 12 , and a blockchain network 13 .

其中,用户终端11可以是预先安装的客户端,用户可以在人机交互界面上输入待上传的故障案例。其中,用户终端11在获取到故障案例后,将故障案例发送至服务器12,进而服务器12将故障案例上传至对应的区块链节点。可以理解的是,本申请中的用户终端11包括但不限于安装了上述客户端的智能手机、平板电脑、穿戴式设备和台式计算机等。其中,用户终端11还可以用于查询区块链网络13中存储的故障案例。Among them, the user terminal 11 can be a pre-installed client, and the user can enter the fault case to be uploaded on the human-computer interaction interface. Among them, after obtaining the fault case, the user terminal 11 sends the fault case to the server 12, and then the server 12 uploads the fault case to the corresponding blockchain node. It can be understood that the user terminal 11 in this application includes but is not limited to smartphones, tablet computers, wearable devices, and desktop computers installed with the above-mentioned client. Among them, the user terminal 11 can also be used to query the fault cases stored in the blockchain network 13.

本申请中,服务器12具体可以是指用于实现单一业务的专用服务器,不同的服务器12分别用于实现不同的业务。服务器12通过网络与用户终端11建立通信连接。服务器12获取到用户终端11发送的故障案例,并将故障案例上传至对应的区块链节点后,区块链节点便可执行本申请提供的案例存储方法。可以理解的是,本实施例中的服务器12包括但不限于云服务器、物理服务器和虚拟服务器等。In this application, the server 12 may specifically refer to a dedicated server for implementing a single business, and different servers 12 are used to implement different businesses. The server 12 establishes a communication connection with the user terminal 11 through the network. After the server 12 obtains the fault case sent by the user terminal 11 and uploads the fault case to the corresponding blockchain node, the blockchain node can execute the case storage method provided in this application. It can be understood that the server 12 in this embodiment includes but is not limited to a cloud server, a physical server, and a virtual server.

可以理解的是,区块链网络13包含多个区块链节点130。当服务器12提交的故障案例在任一区块链节点130上成功上链后,上述故障案例将在秒级时间段内被快速传递至其他区块链节点130进行保存,各个区块链节点130共享存储故障案例。在本申请中,区块链网络13的任一区块中可以记录区块标识符、案例存储记录以及与故障案例对应的哈希值。It is understandable that the blockchain network 13 includes multiple blockchain nodes 130. When the fault case submitted by the server 12 is successfully uploaded to any blockchain node 130, the fault case will be quickly transmitted to other blockchain nodes 130 for storage within a second period, and each blockchain node 130 shares and stores the fault case. In the present application, any block of the blockchain network 13 can record a block identifier, a case storage record, and a hash value corresponding to the fault case.

其中,所述区块标识符既可以是指对上一区块的区块头进行哈希处理之后得到的标识符,也可以是指当前区块的区块高度;所述案例存储记录可以包括故障案例和相应的时间戳等。The block identifier may refer to an identifier obtained by hashing a block header of a previous block, or may refer to a block height of a current block; the case storage record may include a fault case and a corresponding timestamp, etc.

可以理解的是,本申请中的区块链节点130的节点设备类型包括但不限于各种类型的服务器、个人计算机、手持终端等。It is understandable that the node device types of the blockchain node 130 in the present application include but are not limited to various types of servers, personal computers, handheld terminals, etc.

需要说明的是,连接用户终端11、服务器12和区块链网络13的网络,以及区块链网络13中的各区块链节点之间的网络,可以根据实际应用过程中的网络状况和应用需求来确定,既可以是无线通信网络,如移动通信网络或WIFI网络等,也可以是有线通信网络;既可以是广域网,在情况允许时也可以采用局域网。当然,用户终端11还可以直接和区块链网络13进行通信,从而可不必设置服务器12,这样可以节约计算机资源。It should be noted that the network connecting the user terminal 11, the server 12 and the blockchain network 13, as well as the network between the blockchain nodes in the blockchain network 13, can be determined according to the network conditions and application requirements in the actual application process, and can be a wireless communication network, such as a mobile communication network or a WIFI network, or a wired communication network; it can be a wide area network, and a local area network can also be used when the situation permits. Of course, the user terminal 11 can also communicate directly with the blockchain network 13, so that there is no need to set up the server 12, which can save computer resources.

图2为本申请实施例提供的第一种案例存储方法流程图。参见图2所示,该案例存储方法应用于任一区块链节点,可以包括以下步骤:FIG2 is a flow chart of the first case storage method provided in the embodiment of the present application. Referring to FIG2, the case storage method is applied to any blockchain node and may include the following steps:

S201、获取当前区块链网络中的多个对象的故障案例;故障案例包括:当前对象的至少一个故障信息和对应的修复信息。S201. Obtain fault cases of multiple objects in the current blockchain network; the fault cases include: at least one fault information of the current object and corresponding repair information.

在当前区块链网络中,故障案例可以以对象的标识信息为key进行存储。其中,对象可以为:设备、人、动物、植物等,当对象为人、动物、植物时,其故障案例即为自然人病例,故障即为疾病信息,修复信息即为疾病治疗信息;标识信息可以为人的身份信息、动物或植物的名称等。若对象为设备,其故障信息可以包括:出现故障的部件、以及故障原因;设备的标识信息可以为设备的出厂编码等。In the current blockchain network, fault cases can be stored with the identification information of the object as the key. The object can be: equipment, people, animals, plants, etc. When the object is a person, animal, or plant, its fault case is a natural person case, the fault is the disease information, and the repair information is the disease treatment information; the identification information can be the identity information of the person, the name of the animal or plant, etc. If the object is a device, its fault information can include: the faulty component and the cause of the fault; the identification information of the device can be the factory code of the device, etc.

若对象为人,那么以人的身份信息key存储病例,这样对于同一患者(即自然人),其对应的就诊信息、化验单信息等都可以统一存储到一个病例,这样不仅可以丰富病例,使患者病例全面记录,还便于患者和医生查询病例。从而为获得全面、真实、可靠的特征案例提供便利。If the object is a person, the case is stored with the person's identity information key. In this way, for the same patient (i.e. a natural person), the corresponding medical information, test order information, etc. can be stored in one case. This not only enriches the case and makes the patient's case fully recorded, but also makes it easier for patients and doctors to query the case. This facilitates obtaining comprehensive, true, and reliable feature cases.

S202、将多个故障案例按照故障类型进行分类,获得多个特征案例;每个特征案例记录有至少一个对象的故障信息和对应的修复信息。S202. Classify multiple fault cases according to fault types to obtain multiple characteristic cases; each characteristic case records fault information and corresponding repair information of at least one object.

在一种具体实施方式中,可以利用分类算法将故障案例按照故障类型进行分类,获得多个特征案例,分类算法为朴素贝叶斯算法、随机森林算法或支持向量机。当然,还可以利用其它分类算法进行分类,如:聚类算法。In a specific implementation, a classification algorithm can be used to classify fault cases according to fault types to obtain multiple characteristic cases, and the classification algorithm is a naive Bayes algorithm, a random forest algorithm or a support vector machine. Of course, other classification algorithms can also be used for classification, such as a clustering algorithm.

若故障案例为自然人病例,那么可以理解的是,由于一个自然人所患疾病可能有多种,因此将故障案例按照疾病类型进行分类后,可能将同一自然人所患的疾病划分至不同特征案例。例如:自然人A病例中记录有心脏病和糖尿病两种疾病信息和治疗信息,那么在分类时,自然人A病例中记录的有关心脏病的疾病信息和治疗信息将被归类至心脏病特征案例;自然人A病例中记录的有关糖尿病的疾病信息和治疗信息将被归类至糖尿病特征案例。其中,由于故障案例中还记录有化验单信息等,因此在进行疾病分类时,化验单信息等也会被归类至相应的特征案例中。其中,治疗信息可以包括内服、外用和/或注射的药品信息,相应的用药效果等。当然,自然人的身份信息,患病就诊地点、时间等信息也可以记录在特征案例中。If the fault case is a natural person case, it is understandable that since a natural person may suffer from multiple diseases, after the fault case is classified according to the disease type, the diseases suffered by the same natural person may be divided into different characteristic cases. For example: the case of natural person A records two disease information and treatment information of heart disease and diabetes. Then, when classifying, the disease information and treatment information about heart disease recorded in the case of natural person A will be classified into the characteristic case of heart disease; the disease information and treatment information about diabetes recorded in the case of natural person A will be classified into the characteristic case of diabetes. Among them, since the fault case also records the information of the test report, etc., when classifying the disease, the information of the test report will also be classified into the corresponding characteristic case. Among them, the treatment information can include the information of oral, external and/or injected drugs, the corresponding medication effects, etc. Of course, the identity information of the natural person, the place and time of the medical treatment, etc. can also be recorded in the characteristic case.

若故障案例中记录有多次有关心脏病的疾病信息和治疗信息,那么每次记录可以看作一个治疗记录。在进行分类时,分别记录这些治疗记录的治疗时间,并将这些治疗记录看作当前自然人患心脏病的相关信息。也就是说,将这些治疗记录统一看作当前自然人患心脏病的案例。If the fault case records multiple cases of disease information and treatment information related to heart disease, each record can be regarded as a treatment record. When classifying, the treatment time of these treatment records is recorded separately, and these treatment records are regarded as relevant information about the current natural person suffering from heart disease. In other words, these treatment records are uniformly regarded as a case of the current natural person suffering from heart disease.

S203、将多个特征案例中的特征关键字符确定为检索索引,并根据检索索引更新检索索引库。S203: Determine the characteristic key characters in the plurality of characteristic cases as retrieval indexes, and update the retrieval index library according to the retrieval indexes.

S204、将更新后的检索索引库和多个特征案例存储至当前区块链网络。S204: Store the updated search index library and multiple feature cases in the current blockchain network.

在本实施例中,将更新后的检索索引库和多个特征案例存储至当前区块链网络之前,还包括:针对任一个特征案例,将具有相同类型修复信息的故障信息添加至同一故障组;任一个特征案例中包括多个故障组。In this embodiment, before storing the updated retrieval index library and multiple feature cases in the current blockchain network, it also includes: for any feature case, adding fault information with the same type of repair information to the same fault group; any feature case includes multiple fault groups.

在每一个特征案例中,设有多个故障组,每个故障组中记录着有相同类型修复信息的故障信息。仍以自然人病例分类后获得的特征案例为例,假设荨麻疹特征案例中有2个故障组(也就是病例组),第一个故障组用于记录服用一种药品的患病症状、治疗效果等信息;第二个故障组用于记录服用另一种药品的患病症状、治疗效果等信息。这样便可以清楚地从特征案例中看出不同药品、不同治疗方式对于同一疾病的治疗效果;也可以快速从特征案例中看出当前疾病可以有几种治疗手段和方式。In each characteristic case, there are multiple fault groups, and each fault group records fault information with the same type of repair information. Still taking the characteristic case obtained after the classification of natural person cases as an example, assuming that there are 2 fault groups (that is, case groups) in the characteristic case of urticaria, the first fault group is used to record the symptoms of illness, treatment effects and other information after taking a certain medicine; the second fault group is used to record the symptoms of illness, treatment effects and other information after taking another medicine. In this way, it is possible to clearly see from the characteristic cases the treatment effects of different medicines and different treatment methods for the same disease; it is also possible to quickly see from the characteristic cases how many treatment methods and methods the current disease can have.

为了便于检索和查询,可以为特征案例构建相应的检索索引。其中,检索索引可以是特征案例中的任何特征关键字符,特征关键字符如:故障名称、位置、故障原因等。若故障案例为自然人病例,那么特征关键字符可以是疾病名称或简称,如:荨麻疹;或特有患病症状等,如:风团,患荨麻疹时风团为其特有症状。In order to facilitate retrieval and query, a corresponding retrieval index can be constructed for the characteristic case. The retrieval index can be any characteristic key characters in the characteristic case, such as fault name, location, fault cause, etc. If the fault case is a natural person case, the characteristic key characters can be the name or abbreviation of the disease, such as urticaria; or a unique symptom of the disease, such as wheal, which is a unique symptom of urticaria.

将更新后的检索索引库和多个特征案例存储至当前区块链网络,也就是将检索索引库和特征案例共享至当前区块链网络。这样任意一个区块链节点便可以利用检索索引查询相关特征案例。The updated search index library and multiple feature cases are stored in the current blockchain network, that is, the search index library and feature cases are shared in the current blockchain network. In this way, any blockchain node can use the search index to query related feature cases.

需要说明的是,本实施例中的其他实现步骤与上述实施例相同或类似,故本实施例在此不再赘述。It should be noted that other implementation steps in this embodiment are the same or similar to those in the above embodiment, so they will not be described in detail in this embodiment.

本实施例公开的方法应用于任一区块链节点,也就是说,任一区块链节点均可执行本申请提供的案例存储方法。其中,当前区块链网络存储有多个对象的故障案例,由于区块链具有信息公开性和较高的安全性,因此利用区块链网络存储故障案例,可以实现故障案例的全网共享,同时保证故障案例的安全性和不可篡改性。在此基础上,任一区块链节点还可以将当前区块链网络中的故障案例按照故障类型进行分类,从而可获得多个特征案例,这样获得的特征案例将会全面记录某一个对象或多个对象的故障信息及相应的修复信息。进一步地,将多个所述特征案例中的特征关键字符确定为检索索引,并根据检索索引更新检索索引库;将更新后的检索索引库和多个特征案例存储至当前区块链网络,这样接入当前区块链网络的所有区块链节点便可以共享特征案例。当某一对象出现故障,可通过检索索引检索相关特征案例,从而为当前故障的修复提供可靠、真实且全面的参考案例。The method disclosed in this embodiment is applied to any blockchain node, that is, any blockchain node can execute the case storage method provided by this application. Among them, the current blockchain network stores fault cases of multiple objects. Since the blockchain has information disclosure and high security, the use of the blockchain network to store fault cases can realize the full network sharing of fault cases, while ensuring the security and non-tamperability of the fault cases. On this basis, any blockchain node can also classify the fault cases in the current blockchain network according to the fault type, so that multiple feature cases can be obtained. The feature cases obtained in this way will comprehensively record the fault information and corresponding repair information of a certain object or multiple objects. Further, the feature key characters in the multiple feature cases are determined as retrieval indexes, and the retrieval index library is updated according to the retrieval index; the updated retrieval index library and multiple feature cases are stored in the current blockchain network, so that all blockchain nodes connected to the current blockchain network can share the feature cases. When a certain object fails, the relevant feature cases can be retrieved through the retrieval index, thereby providing a reliable, true and comprehensive reference case for the repair of the current fault.

图3为本申请实施例提供的第二种案例存储方法流程图。参见图3所示,该案例存储方法应用于任一区块链节点,可以包括以下步骤:FIG3 is a flow chart of a second case storage method provided in an embodiment of the present application. Referring to FIG3, the case storage method is applied to any blockchain node and may include the following steps:

S301、获取当前区块链网络中的多个对象的故障案例;故障案例包括:当前对象的至少一个故障信息和对应的修复信息。S301. Obtain fault cases of multiple objects in the current blockchain network; the fault cases include: at least one fault information of the current object and corresponding repair information.

S302、将多个故障案例按照故障类型进行分类,获得多个特征案例;每个特征案例记录有至少一个对象的故障信息和对应的修复信息。S302. Classify multiple fault cases according to fault types to obtain multiple characteristic cases; each characteristic case records fault information and corresponding repair information of at least one object.

S303、将多个特征案例中的特征关键字符确定为检索索引,并根据检索索引更新检索索引库。S303: Determine the characteristic key characters in the plurality of characteristic cases as retrieval indexes, and update the retrieval index library according to the retrieval indexes.

S304、将更新后的检索索引库和多个特征案例存储至当前区块链网络。S304: Store the updated search index library and multiple feature cases in the current blockchain network.

S305、接收用户发送的检索请求。S305: Receive a search request sent by a user.

可以理解的是,用户可以通过人机交互界面提交检索请求。检索请求中的目标检索索引可以是人机交互界面的预设信息,还可以是用户输入的信息。It is understandable that the user can submit a search request through the human-computer interaction interface. The target search index in the search request can be preset information of the human-computer interaction interface or information input by the user.

S306、提取检索请求中的目标检索索引。S306: Extract the target search index in the search request.

S307、分别确定目标检索索引与当前区块链网络中的多个特征案例的相似度。S307. Determine the similarity between the target retrieval index and multiple feature cases in the current blockchain network respectively.

其中,相似度可采用语义相似度、余弦相似度等计算方式确定。当采用余弦相似度确定目标检索索引与特征案例的相似度时,需要首先将目标检索索引和特征案例均转化为向量,进而计算两个向量之间的相似度。The similarity can be determined by using semantic similarity, cosine similarity, etc. When using cosine similarity to determine the similarity between the target retrieval index and the feature case, it is necessary to first convert the target retrieval index and the feature case into vectors, and then calculate the similarity between the two vectors.

S308、将最大相似度对应的特征案例确定为检索结果并返回。S308: Determine the feature case corresponding to the maximum similarity as the search result and return it.

可以理解的是,分别确定目标检索索引与多个特征案例的相似度,需要分别计算目标检索索引与每个特征案例的相似度,从而获得与每个特征案例对应的相似度。将其中最大相似度对应的特征案例确定为当前检索请求的检索结果并返回。It is understandable that to determine the similarity between the target search index and multiple feature cases respectively, it is necessary to calculate the similarity between the target search index and each feature case respectively, so as to obtain the similarity corresponding to each feature case. The feature case corresponding to the maximum similarity is determined as the search result of the current search request and returned.

在一种具体实施方式中,针对任一特征案例,确定目标检索索引与当前特征案例的相似度,包括:分别确定目标检索索引与当前特征案例中的每个特征关键字符的相似度,获得多个子相似度;对多个子相似度加权汇总,得到目标检索索引与当前特征案例的相似度。In a specific implementation, for any feature case, the similarity between the target retrieval index and the current feature case is determined, including: separately determining the similarity between the target retrieval index and each feature keyword in the current feature case to obtain multiple sub-similarity; weighted aggregation of the multiple sub-similarities to obtain the similarity between the target retrieval index and the current feature case.

仍然以自然人病例为例。例如:荨麻疹特征案例中的关键指标为风团、皮肤瘙痒、血常规,其分别对应的权重为40%、40%、20%。那么计算目标检索索引与风团的相似度,从而可获得第一个子相似度A;计算目标检索索引与皮肤瘙痒的相似度,从而可获得第二个子相似度B;计算目标检索索引与血常规的相似度,从而可获得第三个子相似度C;那么对这三个子相似度加权汇总,则有:W=A×40%+B×40%+C×20%,那么W即为目标检索索引与荨麻疹特征案例的相似度。Still taking the case of a natural person as an example. For example: the key indicators in the characteristic case of urticaria are wheals, skin itching, and blood routine tests, and their corresponding weights are 40%, 40%, and 20%, respectively. Then calculate the similarity between the target retrieval index and the wheals, so as to obtain the first sub-similarity A; calculate the similarity between the target retrieval index and skin itching, so as to obtain the second sub-similarity B; calculate the similarity between the target retrieval index and the blood routine test, so as to obtain the third sub-similarity C; then add the weighted sum of these three sub-similarity, and we have: W = A × 40% + B × 40% + C × 20%, then W is the similarity between the target retrieval index and the characteristic case of urticaria.

在一种具体实施方式中,将最大相似度对应的特征案例确定为检索结果并返回,包括:按照相似度大小将多个特征案例进行降序排列,获得特征案例序列;将特征案例序列确定为检索结果并返回。In a specific implementation, determining the feature case corresponding to the maximum similarity as the search result and returning it includes: arranging multiple feature cases in descending order according to the similarity to obtain a feature case sequence; determining the feature case sequence as the search result and returning it.

通过上述方式可计算得到目标检索索引与每个特征案例的相似度,那么可按照相似度大小将特征案例进行降序排列,从而可获得特征案例序列;进而可以将此特征案例序列作为检索结果并返回。其中,若特征案例序列包含的特征案例较多,那么可以选择其中前N个作为检索结果并返回。当然,还可以按照相似度大小将特征案例进行升序排列,那么则可以选择特征案例序列中的后N个作为检索结果并返回。当然,还可以在客户端展示检索结果,以便用户参考。The similarity between the target search index and each feature case can be calculated in the above manner, and the feature cases can be arranged in descending order according to the similarity, so as to obtain a feature case sequence; and then this feature case sequence can be used as a search result and returned. Among them, if the feature case sequence contains many feature cases, the first N of them can be selected as the search result and returned. Of course, the feature cases can also be arranged in ascending order according to the similarity, and the last N in the feature case sequence can be selected as the search result and returned. Of course, the search results can also be displayed on the client for user reference.

需要说明的是,为避免用户恶意参考特征案例,可以限制用户通过客户端提交检索请求的权限,例如:只有输入正确的医师执业证书编码,才允许提交检索请求。当然也可以利用密码技术避免特征案例的恶意查询和获取。It should be noted that in order to prevent users from maliciously referring to characteristic cases, the user's authority to submit search requests through the client can be restricted. For example, only when the correct physician's practice certificate code is entered can the search request be submitted. Of course, cryptographic technology can also be used to prevent malicious query and acquisition of characteristic cases.

需要说明的是,本实施例中的其他实现步骤与上述实施例相同或类似,故本实施例在此不再赘述。It should be noted that other implementation steps in this embodiment are the same or similar to those in the above embodiment, so they will not be described in detail in this embodiment.

本实施例公开的方法在存储特征案例至区块链网络后,当接收到检索请求,则提取检索请求中的目标检索索引,进而分别确定目标检索索引与多个特征案例的相似度,从而根据相似度确定与检索请求对应的检索结果返回并展示。这样用户便可以即时查询到相关案例,从而为当前故障的修复提供可靠且全面的依据。After storing the characteristic cases in the blockchain network, the method disclosed in this embodiment extracts the target search index in the search request when receiving a search request, and then determines the similarity between the target search index and multiple characteristic cases respectively, and then returns and displays the search results corresponding to the search request according to the similarity. In this way, users can query related cases immediately, thus providing a reliable and comprehensive basis for repairing the current fault.

图4为本申请实施例提供的第三种案例存储方法流程图。参见图4所示,该案例存储方法应用于任一区块链节点,可以包括以下步骤:FIG4 is a flow chart of a third case storage method provided in an embodiment of the present application. Referring to FIG4 , the case storage method is applied to any blockchain node and may include the following steps:

S401、接收用户发送的多个对象的故障信息和对应的修复信息。S401: Receive fault information and corresponding repair information of multiple objects sent by a user.

在一种具体实施方式中,用户可以在不同时刻发送故障信息和对应的修复信息至区块链节点,以使区块链节点将故障信息和对应的修复信息在全网中进行同步存储。In a specific implementation, a user can send fault information and corresponding repair information to a blockchain node at different times, so that the blockchain node synchronously stores the fault information and the corresponding repair information in the entire network.

S402、按照不同对象的标识信息,生成每个对象的故障案例,并以对象的标识信息作为故障案例的ID。S402: Generate a fault case for each object according to identification information of different objects, and use the identification information of the object as the ID of the fault case.

S403、建立故障案例和ID之间的关联关系,并将关联关系、故障案例和ID存储至当前区块链网络。S403: Establish an association relationship between the fault case and the ID, and store the association relationship, the fault case and the ID in the current blockchain network.

在本实施例中,将关联关系、故障案例和ID存储至当前区块链网络,包括:在当前区块链网络中广播关联关系、故障案例和ID,以使当前区块链网络中的其他区块链节点对关联关系、故障案例和ID进行验证;若验证通过,则将关联关系、故障案例和ID打包为第二区块,并在当前区块链网络中广播第二区块的打包消息。In this embodiment, the association relationship, fault case and ID are stored in the current blockchain network, including: broadcasting the association relationship, fault case and ID in the current blockchain network, so that other blockchain nodes in the current blockchain network can verify the association relationship, fault case and ID; if the verification passes, the association relationship, fault case and ID are packaged into a second block, and the packaged message of the second block is broadcast in the current blockchain network.

当然,还可以在当前区块链网络中设置分类故障案例的执行时间,例如:设置执行周期,每隔10分钟或每隔1个小时执行一次分类操作。也就是各个区块链节点收集新的故障信息和对应的修复信息并同步至全网,待到达分类执行时间点,则对上一分类执行时间点至本次分类执行时间点之间收集的故障信息和对应的修复信息进行分类。分类获得新的特征案例后,若新的特征案例已在区块链网络中存在,则将新的特征案例与旧的特征案例合并后进行共享;若新的特征案例在区块链网络中不存在,则存储新的特征案例并共享。Of course, you can also set the execution time of the classified fault cases in the current blockchain network, for example, set the execution cycle to perform the classification operation every 10 minutes or every 1 hour. That is, each blockchain node collects new fault information and corresponding repair information and synchronizes them to the entire network. When the classification execution time point is reached, the fault information and corresponding repair information collected between the last classification execution time point and the current classification execution time point are classified. After the classification obtains a new feature case, if the new feature case already exists in the blockchain network, the new feature case is merged with the old feature case and shared; if the new feature case does not exist in the blockchain network, the new feature case is stored and shared.

S404、获取当前区块链网络中的多个对象的故障案例;故障案例包括:当前对象的至少一个故障信息和对应的修复信息。S404. Obtain fault cases of multiple objects in the current blockchain network; the fault cases include: at least one fault information of the current object and corresponding repair information.

S405、将多个故障案例按照故障类型进行分类,获得多个特征案例;每个特征案例记录有至少一个对象的故障信息和对应的修复信息。S405. Classify the multiple fault cases according to the fault type to obtain multiple characteristic cases; each characteristic case records the fault information and corresponding repair information of at least one object.

S406、将多个特征案例中的特征关键字符确定为检索索引。S406: Determine the characteristic key characters in the plurality of characteristic cases as retrieval indexes.

S407、判断检索索引库中是否存在检索索引;若是,则执行S408;若否,则执行S409。S407, determine whether there is a search index in the search index library; if so, execute S408; if not, execute S409.

S408、将原检索索引库确定为更新后的检索索引库;S408, determining the original search index library as the updated search index library;

S409、将检索索引添加至检索索引库,获得更新后的检索索引库,并执行S410。S409, adding the search index to the search index library, obtaining an updated search index library, and executing S410.

S410、在当前区块链网络中广播更新后的检索索引库和多个特征案例,以使当前区块链网络中的其他区块链节点对更新后的检索索引库和多个特征案例进行验证。S410. Broadcast the updated retrieval index library and multiple feature cases in the current blockchain network, so that other blockchain nodes in the current blockchain network can verify the updated retrieval index library and multiple feature cases.

S411、若验证通过,则将更新后的检索索引库和多个特征案例打包为第一区块,并在当前区块链网络中广播第一区块的打包消息。S411. If the verification is successful, the updated retrieval index library and multiple feature cases are packaged into a first block, and the packaging message of the first block is broadcast in the current blockchain network.

S412、接收用户发送的目标对象的新的故障信息和对应的修复信息。S412: Receive new fault information and corresponding repair information of the target object sent by the user.

S413、按照新的故障信息的故障类型,将新的故障信息和对应的修复信息添加对应的特征案例。S413. According to the fault type of the new fault information, the new fault information and the corresponding repair information are added with corresponding feature cases.

在本实施例中,当在区块链网络中已分类获得多个特征案例,并完成共享操作后,若当前区块链网络再次接收到新的故障信息和对应的修复信息,则可以直接将新的故障信息和对应的修复信息添加至对应的特征案例中。若当前区块链网络中不存在新的故障信息和对应的修复信息对应的特征案例,则可以在当前区块链网络中创建相应的特征案例,并将新的故障信息和对应的修复信息添加至新创建的特征案例中。In this embodiment, after multiple characteristic cases have been classified and obtained in the blockchain network and the sharing operation has been completed, if the current blockchain network receives new fault information and corresponding repair information again, the new fault information and corresponding repair information can be directly added to the corresponding characteristic case. If the characteristic case corresponding to the new fault information and corresponding repair information does not exist in the current blockchain network, the corresponding characteristic case can be created in the current blockchain network, and the new fault information and corresponding repair information can be added to the newly created characteristic case.

需要说明的是,本实施例中的其他实现步骤与上述实施例相同或类似,故本实施例在此不再赘述。It should be noted that other implementation steps in this embodiment are the same or similar to those in the above embodiment, so they will not be described in detail in this embodiment.

可见,本实施例在分类得到特征案例后,当再次收集到故障案例时,可对新收集的故障案例进行分类处理,从而可及时对区块链网络中的故障案例进行分类,获得特征案例,以供相关人员查询参考。It can be seen that after classifying characteristic cases, this embodiment can classify and process the newly collected fault cases when fault cases are collected again, so that the fault cases in the blockchain network can be classified in time and characteristic cases can be obtained for reference by relevant personnel.

下面通过一个具体的应用场景实例描述本申请提供的案例存储方法。请参见图5,图5为本申请实施例提供的一种区块链网络示意图。在图5中,任意一个医疗机构均可作为区块链节点接入区块链网络,各医疗机构可上传自然人病例至自身对应的区块链节点,同时该区块链节点将上传的自然人病例共享至其他节点,从而可实现自然人病例的全网共享存储。The case storage method provided by the present application is described below through a specific application scenario example. Please refer to Figure 5, which is a schematic diagram of a blockchain network provided by an embodiment of the present application. In Figure 5, any medical institution can access the blockchain network as a blockchain node, and each medical institution can upload natural person cases to its corresponding blockchain node. At the same time, the blockchain node will share the uploaded natural person cases with other nodes, thereby realizing the full network shared storage of natural person cases.

同时,任意一个医疗机构对应的区块链节点还可以作为分析汇总节点。分析汇总节点将全网中的自然人病例按照疾病类型进行分类,从而可获得多个特征案例,这样获得的特征案例将会全面记录患者患当前疾病的所有相关信息,从而可实现特征案例的全面记录。进一步地,将多个所述特征案例中的特征关键字符确定为检索索引,并根据检索索引更新检索索引库;将更新后的检索索引库和多个特征案例存储至当前区块链网络,这样接入当前区块链网络的所有医疗机构便可以共享特征案例,必要时可通过检索索引检索相关特征案例。At the same time, the blockchain node corresponding to any medical institution can also be used as an analysis and summary node. The analysis and summary node classifies the natural person cases in the entire network according to the disease type, so that multiple characteristic cases can be obtained. The characteristic cases obtained in this way will comprehensively record all relevant information of the patient's current disease, thereby realizing a comprehensive record of the characteristic cases. Furthermore, the characteristic key characters in the multiple characteristic cases are determined as retrieval indexes, and the retrieval index library is updated according to the retrieval index; the updated retrieval index library and multiple characteristic cases are stored in the current blockchain network, so that all medical institutions connected to the current blockchain network can share characteristic cases, and can retrieve relevant characteristic cases through the retrieval index when necessary.

为了降低各个区块链节点的数据处理量,可以在区块链网络中设置分析汇总节点。分析汇总节点可以设置多个,即图1中的分析节点1和分析节点2。此分析汇总节点仅用于执行本申请提供的案例存储方案。也就是说,各个医疗机构对应的区块链节点用于收集自然人病例并共享,分析汇总节点用于对收集到的自然人病例进行分类后,共享特征案例。In order to reduce the amount of data processing of each blockchain node, an analysis and summary node can be set in the blockchain network. Multiple analysis and summary nodes can be set, namely, analysis node 1 and analysis node 2 in Figure 1. This analysis and summary node is only used to execute the case storage solution provided by this application. In other words, the blockchain nodes corresponding to each medical institution are used to collect and share natural person cases, and the analysis and summary node is used to classify the collected natural person cases and share characteristic cases.

结合图5所示的区块链网络,本申请实施例提供了第四种案例存储方法,请参见图6,图6为本申请实施例提供的一种医疗案例存储方法流程图。图6所示的医疗案例存储方法可以包括以下步骤:In conjunction with the blockchain network shown in FIG5 , the present application embodiment provides a fourth case storage method, see FIG6 , which is a flow chart of a medical case storage method provided by the present application embodiment. The medical case storage method shown in FIG6 may include the following steps:

S601、目标区块链节点获取当前区块链网络中的自然人病例。S601. The target blockchain node obtains natural person cases in the current blockchain network.

在本实施例中,故障案例为自然人病例。在目标区块链节点获取当前区块链网络中的自然人病例之前,还包括:当前区块链网络中的所有区块链节点分别收集自然人病例,同时将收集到的自然人病例打包成区块,也就是进行自然人病例的全网共享存储。In this embodiment, the fault case is a natural person case. Before the target blockchain node obtains the natural person case in the current blockchain network, it also includes: all blockchain nodes in the current blockchain network collect the natural person cases respectively, and pack the collected natural person cases into blocks, that is, the natural person cases are shared and stored in the whole network.

具体的,自然人病例的存储和展示请参见图7,图7为本申请实施例提供的一种自然人病例记录示意图。图7中的时间点为患者每次的就诊时间点。图7中的自然人ID可以为患者身份信息。Specifically, the storage and display of natural person cases can be seen in Figure 7, which is a schematic diagram of a natural person case record provided in an embodiment of the present application. The time point in Figure 7 is the time point of each visit of the patient. The natural person ID in Figure 7 can be the patient's identity information.

S602、目标区块链节点将自然人病例按照疾病类型进行分类,获得多个特征案例。S602. The target blockchain node classifies the natural person cases according to the disease type to obtain multiple characteristic cases.

其中,每个特征案例记录有至少一个自然人的患病信息和对应的治疗信息。疾病类型即与上文提及的故障类型相对应。Each characteristic case records at least one natural person's illness information and corresponding treatment information. The disease type corresponds to the fault type mentioned above.

S603、目标区块链节点将多个特征案例中的特征关键字符确定为检索索引,并根据检索索引更新检索索引库。S603. The target blockchain node determines the characteristic key characters in the multiple characteristic cases as retrieval indexes, and updates the retrieval index library according to the retrieval indexes.

其中,特征关键字符可以为疾病的名称,患病症状等。The characteristic key characters may be the name of the disease, symptoms of the disease, etc.

具体的,特征案例的存储和展示请参见图8-图9,图8为本申请实施例提供的第一种特征案例记录示意图,图9为本申请实施例提供的第二种特征案例记录示意图。图9中的具体方法为对于当前疾病的服用药品信息或其他治疗信息,相对应的案例数,即为具有相同治疗信息的病例个数,此处可以参考上述提及的病例组。图8和图9中的特征案例即为疾病案例。Specifically, please refer to Figures 8-9 for the storage and display of characteristic cases. Figure 8 is a schematic diagram of the first characteristic case record provided in the embodiment of the present application, and Figure 9 is a schematic diagram of the second characteristic case record provided in the embodiment of the present application. The specific method in Figure 9 is that for the medication information or other treatment information of the current disease, the corresponding number of cases is the number of cases with the same treatment information. Here, you can refer to the case group mentioned above. The characteristic cases in Figures 8 and 9 are disease cases.

S604、目标区块链节点将更新后的检索索引库和多个特征案例广播至其他区块链节点。S604: The target blockchain node broadcasts the updated retrieval index library and multiple feature cases to other blockchain nodes.

其中,目标区块链节点和其他区块链节点共同构成当前区块链网络。Among them, the target blockchain node and other blockchain nodes together constitute the current blockchain network.

S605、其他区块链节点对更新后的检索索引库和多个特征案例进行共识。S605. Other blockchain nodes reach consensus on the updated retrieval index library and multiple feature cases.

S606、若共识通过,则其他区块链节点在全网中广播共识通过消息。S606. If the consensus is passed, other blockchain nodes broadcast the consensus passing message in the entire network.

其中,可以采用常用的共识方法对更新后的检索索引库和多个特征案例进行共识,如:PBFT、POW、POS、DPOS等共识方法。Among them, commonly used consensus methods can be used to reach consensus on the updated retrieval index library and multiple feature cases, such as: PBFT, POW, POS, DPOS and other consensus methods.

S607、目标区块链节点将更新后的检索索引库和多个特征案例打包成区块。S607. The target blockchain node packages the updated retrieval index library and multiple feature cases into blocks.

S608、目标区块链节点在全网中广播区块生成消息。S608. The target blockchain node broadcasts the block generation message in the entire network.

需要说明的是,本实施例中的实现步骤与上述实施例相同或类似,具体可参见上述任意实施例,故本实施例在此不再赘述。It should be noted that the implementation steps in this embodiment are the same as or similar to those in the above embodiments. For details, please refer to any of the above embodiments, so this embodiment will not be repeated here.

若检索索引为患病症状和检查结果(如白细胞数),那么当利用症状和检查结果查询区块链网络中的特征案例时,获得的检索结果请参见图10。图10为本申请实施例提供的一种检索结果示意图。在图10中,按照与症状和检查结果的相似度大小将所有相似案例降序排列。图8、图9和图10中的案例ID可以为当前特征案例对应的疾病的名称。If the search index is the symptoms of the disease and the test results (such as the white blood cell count), then when the symptoms and test results are used to query the characteristic cases in the blockchain network, please refer to Figure 10 for the search results obtained. Figure 10 is a schematic diagram of a search result provided by an embodiment of the present application. In Figure 10, all similar cases are arranged in descending order according to the degree of similarity with the symptoms and test results. The case ID in Figures 8, 9 and 10 can be the name of the disease corresponding to the current characteristic case.

可见,本实施例使任意一个医疗机构均作为区块链节点接入区块链网络,并上传自然人病例。其中,以自然人为key在区块链网络中存储自然人病例,进而以疾病类型为key分类自然人病例,如此不仅实现了不同医疗机构的患者病例的统一存储,还为特征案例的检索和查询提供了便利。It can be seen that this embodiment enables any medical institution to access the blockchain network as a blockchain node and upload natural person medical records. Natural person records are stored in the blockchain network with natural person as the key, and then the natural person records are classified with disease type as the key. This not only realizes the unified storage of patient records of different medical institutions, but also facilitates the retrieval and query of characteristic cases.

请参见图11,图11为本申请实施例提供的一种案例存储装置示意图,应用于任一区块链节点,包括:Please refer to FIG. 11 , which is a schematic diagram of a case storage device provided in an embodiment of the present application, which is applied to any blockchain node and includes:

获取模块1101,用于获取当前区块链网络中的多个对象的故障案例;故障案例包括:当前对象的至少一个故障信息和对应的修复信息;The acquisition module 1101 is used to acquire fault cases of multiple objects in the current blockchain network; the fault case includes: at least one fault information of the current object and corresponding repair information;

分类模块1102,用于将多个故障案例按照故障类型进行分类,获得多个特征案例;每个特征案例记录有至少一个对象的故障信息和对应的修复信息;The classification module 1102 is used to classify multiple fault cases according to fault types to obtain multiple characteristic cases; each characteristic case records the fault information and corresponding repair information of at least one object;

更新模块1103,用于将多个特征案例中的特征关键字符确定为检索索引,并根据检索索引更新检索索引库;An updating module 1103 is used to determine the characteristic key characters in the plurality of characteristic cases as a retrieval index, and update the retrieval index library according to the retrieval index;

存储模块1104,用于将更新后的检索索引库和多个特征案例存储至当前区块链网络。The storage module 1104 is used to store the updated retrieval index library and multiple feature cases in the current blockchain network.

在一种具体实施方式中,还包括:In a specific embodiment, it also includes:

第一接收模块,用于接收用户发送的检索请求;A first receiving module, used for receiving a search request sent by a user;

提取模块,用于提取检索请求中的目标检索索引;An extraction module, used for extracting a target search index in a search request;

检索模块,用于在当前区块链网络中检索与目标检索索引对应的特征案例,并返回检索结果。The retrieval module is used to retrieve feature cases corresponding to the target retrieval index in the current blockchain network and return the retrieval results.

在一种具体实施方式中,检索模块包括:In a specific implementation, the search module includes:

第一确定单元,用于分别确定目标检索索引与当前区块链网络中的多个特征案例的相似度;A first determination unit, used to respectively determine the similarity between the target retrieval index and a plurality of feature cases in the current blockchain network;

第二确定单元,用于将最大相似度对应的特征案例确定为检索结果并返回。The second determining unit is used to determine the feature case corresponding to the maximum similarity as the search result and return it.

在一种具体实施方式中,第一确定单元具体用于:In a specific implementation, the first determining unit is specifically configured to:

针对任一特征案例,分别确定目标检索索引与当前特征案例中的每个特征关键字符的相似度,获得多个子相似度;对多个子相似度加权汇总,得到目标检索索引与当前特征案例的相似度。For any feature case, the similarity between the target retrieval index and each feature key character in the current feature case is determined respectively to obtain multiple sub-similarity; the multiple sub-similarity are weighted and summarized to obtain the similarity between the target retrieval index and the current feature case.

在一种具体实施方式中,第二确定单元具体用于:In a specific implementation, the second determining unit is specifically configured to:

按照相似度大小将多个特征案例进行降序排列,获得特征案例序列;将特征案例序列确定为检索结果并返回。Arrange multiple feature cases in descending order according to the similarity to obtain a feature case sequence; determine the feature case sequence as a retrieval result and return it.

在一种具体实施方式中,还包括:In a specific embodiment, it also includes:

第一添加模块,用于针对任一个特征案例,将具有相同类型修复信息的故障信息添加至同一故障组;任一个特征案例中包括多个故障组。The first adding module is used to add the fault information with the same type of repair information to the same fault group for any characteristic case; any characteristic case includes multiple fault groups.

在一种具体实施方式中,更新模块包括:In a specific implementation, the update module includes:

判断单元,用于判断检索索引库中是否存在检索索引;A judging unit, used to judge whether a search index exists in the search index library;

更新单元,用于若检索索引库中不存在检索索引,则将检索索引添加至检索索引库,获得更新后的检索索引库。The updating unit is used to add the retrieval index to the retrieval index library if the retrieval index does not exist in the retrieval index library, so as to obtain an updated retrieval index library.

在一种具体实施方式中,存储模块包括:In a specific embodiment, the storage module includes:

第一广播单元,用于在当前区块链网络中广播更新后的检索索引库和多个特征案例,以使当前区块链网络中的其他区块链节点对更新后的检索索引库和多个特征案例进行验证;A first broadcasting unit, configured to broadcast the updated retrieval index library and the plurality of feature cases in the current blockchain network, so that other blockchain nodes in the current blockchain network can verify the updated retrieval index library and the plurality of feature cases;

第一打包单元,用于若验证通过,则将更新后的检索索引库和多个特征案例打包为第一区块,并在当前区块链网络中广播第一区块的打包消息。The first packaging unit is used to package the updated retrieval index library and multiple feature cases into a first block if the verification is passed, and broadcast the packaging message of the first block in the current blockchain network.

在一种具体实施方式中,还包括:In a specific embodiment, it also includes:

第二接收模块,用于接收用户发送的多个对象的故障信息和对应的修复信息;A second receiving module, used to receive fault information and corresponding repair information of multiple objects sent by a user;

生成模块,用于按照不同对象的标识信息,生成每个对象的故障案例,并以对象的标识信息作为故障案例的ID;A generation module, used to generate a fault case for each object according to identification information of different objects, and use the identification information of the object as the ID of the fault case;

执行模块,用于建立故障案例和ID之间的关联关系,并将关联关系、故障案例和ID存储至当前区块链网络。The execution module is used to establish the association relationship between the fault case and the ID, and store the association relationship, the fault case and the ID in the current blockchain network.

在一种具体实施方式中,执行模块包括:In a specific implementation, the execution module includes:

第二广播单元,用于在当前区块链网络中广播关联关系、故障案例和ID,以使当前区块链网络中的其他区块链节点对关联关系、故障案例和ID进行验证;A second broadcasting unit, used to broadcast the association relationship, the fault case and the ID in the current blockchain network, so that other blockchain nodes in the current blockchain network can verify the association relationship, the fault case and the ID;

第二打包单元,用于若验证通过,则将关联关系、故障案例和ID打包为第二区块,并在当前区块链网络中广播第二区块的打包消息。The second packaging unit is used to package the association relationship, the fault case and the ID into a second block if the verification is passed, and broadcast the packaging message of the second block in the current blockchain network.

在一种具体实施方式中,还包括:In a specific embodiment, it also includes:

第三接收模块,用于接收用户发送的目标对象的新的故障信息和对应的修复信息;A third receiving module is used to receive new fault information and corresponding repair information of the target object sent by the user;

第二添加模块,用于按照新的故障信息的故障类型,将新的故障信息和对应的修复信息添加对应的特征案例。The second adding module is used to add corresponding feature cases to the new fault information and the corresponding repair information according to the fault type of the new fault information.

在一种具体实施方式中,分类模块具体用于:In a specific implementation, the classification module is specifically used to:

利用分类算法将故障案例按照故障类型进行分类,获得多个特征案例,分类算法为朴素贝叶斯算法、随机森林算法或支持向量机。A classification algorithm is used to classify fault cases according to fault types to obtain multiple feature cases. The classification algorithm is a naive Bayes algorithm, a random forest algorithm, or a support vector machine.

其中,关于本实施例中各个模块、单元更加具体的工作过程可以参考前述实施例中公开的相应内容,在此不再进行赘述。Among them, for more specific working processes of each module and unit in this embodiment, reference can be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

可见,本实施例提供了一种案例存储装置,包括:获取模块、分类模块、更新模块和存储模块。首先由获取模块获取当前区块链网络中的多个对象的故障案例;故障案例包括:当前对象的至少一个故障信息和对应的修复信息;然后分类模块将多个故障案例按照故障类型进行分类,获得多个特征案例;每个特征案例记录有至少一个对象的故障信息和对应的修复信息;进而更新模块将多个特征案例中的特征关键字符确定为检索索引,并根据检索索引更新检索索引库;最后存储模块将更新后的检索索引库和多个特征案例存储至当前区块链网络。如此各个模块之间分工合作,各司其职,从而能够获得真实且全面的特征案例,并实现特征案例的共享。It can be seen that the present embodiment provides a case storage device, including: an acquisition module, a classification module, an update module and a storage module. First, the acquisition module acquires the fault cases of multiple objects in the current blockchain network; the fault cases include: at least one fault information of the current object and the corresponding repair information; then the classification module classifies the multiple fault cases according to the fault type to obtain multiple feature cases; each feature case records the fault information and corresponding repair information of at least one object; then the update module determines the feature key characters in the multiple feature cases as retrieval indexes, and updates the retrieval index library according to the retrieval index; finally, the storage module stores the updated retrieval index library and multiple feature cases in the current blockchain network. In this way, the modules work together and perform their respective duties, so that real and comprehensive feature cases can be obtained, and the sharing of feature cases can be realized.

进一步的,本申请实施例还提供了一种电子设备。其中,上述电子设备既可以是如图12所示的服务器50,也可以是如图13所示的终端60。图12和图13均是本实施例示出的电子设备结构图,图中的内容不能被认为是对本申请的使用范围的任何限制。Furthermore, an embodiment of the present application also provides an electronic device. The electronic device can be a server 50 as shown in FIG12 or a terminal 60 as shown in FIG13. FIG12 and FIG13 are both structural diagrams of electronic devices shown in the present embodiment, and the contents in the diagrams cannot be regarded as any limitation on the scope of use of the present application.

图12为本申请实施例提供的一种服务器的结构示意图。该服务器50,具体可以包括:至少一个处理器51、至少一个存储器52、电源53、通信接口54、输入输出接口55和通信总线56。其中,所述存储器52用于存储计算机程序,所述计算机程序由所述处理器51加载并执行,以实现前述任一实施例公开的案例存储中的相关步骤。FIG12 is a schematic diagram of the structure of a server provided in an embodiment of the present application. The server 50 may specifically include: at least one processor 51, at least one memory 52, a power supply 53, a communication interface 54, an input/output interface 55, and a communication bus 56. The memory 52 is used to store a computer program, which is loaded and executed by the processor 51 to implement the relevant steps in the case storage disclosed in any of the aforementioned embodiments.

本实施例中,电源53用于为服务器50上的各硬件设备提供工作电压;通信接口54能够为服务器50创建与外界设备之间的数据传输通道,其所遵循的通信协议是能够适用于本申请技术方案的任意通信协议,在此不对其进行具体限定;输入输出接口55,用于获取外界输入数据或向外界输出数据,其具体的接口类型可以根据具体应用需要进行选取,在此不进行具体限定。In this embodiment, the power supply 53 is used to provide working voltage for each hardware device on the server 50; the communication interface 54 can create a data transmission channel between the server 50 and external devices, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 55 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

另外,存储器52作为资源存储的载体,可以是只读存储器、随机存储器、磁盘或者光盘等,其上所存储的资源包括操作系统521、计算机程序522及数据523等,存储方式可以是短暂存储或者永久存储。In addition, the memory 52, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 521, a computer program 522 and data 523, etc. The storage method can be temporary storage or permanent storage.

其中,操作系统521用于管理与控制服务器50上的各硬件设备以及计算机程序522,以实现处理器51对存储器52中数据523的运算与处理,其可以是Windows Server、Netware、Unix、Linux等。计算机程序522除了包括能够用于完成前述任一实施例公开的案例存储方法的计算机程序之外,还可以进一步包括能够用于完成其他特定工作的计算机程序。数据523除了可以包括故障案例等数据外,还可以包括特征案例等数据。The operating system 521 is used to manage and control the hardware devices and computer programs 522 on the server 50, so as to realize the operation and processing of the data 523 in the memory 52 by the processor 51, and it can be Windows Server, Netware, Unix, Linux, etc. In addition to including computer programs that can be used to complete the case storage method disclosed in any of the above embodiments, the computer program 522 can also further include computer programs that can be used to complete other specific tasks. In addition to data such as fault cases, the data 523 can also include data such as feature cases.

图13为本申请实施例提供的一种终端的结构示意图,该终端60具体可以包括但不限于智能手机、平板电脑、笔记本电脑或台式电脑等。FIG13 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application. The terminal 60 may specifically include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.

通常,本实施例中的终端60包括有:处理器61和存储器62。Generally, the terminal 60 in this embodiment includes: a processor 61 and a memory 62 .

其中,处理器61可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器61可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器61也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central ProcessingUnit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器61可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器61还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。Among them, the processor 61 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 61 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 61 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 61 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 61 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

存储器62可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器62还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。本实施例中,存储器62至少用于存储以下计算机程序621,其中,该计算机程序被处理器61加载并执行之后,能够实现前述任一实施例公开的由终端侧执行的案例存储方法中的相关步骤。另外,存储器62所存储的资源还可以包括操作系统622和数据623等,存储方式可以是短暂存储或者永久存储。其中,操作系统622可以包括Windows、Unix、Linux等。数据623可以包括但不限于故障案例和特征案例。The memory 62 may include one or more computer-readable storage media, which may be non-transitory. The memory 62 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 62 is at least used to store the following computer program 621, wherein, after the computer program is loaded and executed by the processor 61, it can implement the relevant steps in the case storage method executed by the terminal side disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 62 may also include an operating system 622 and data 623, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 622 may include Windows, Unix, Linux, etc. Data 623 may include, but is not limited to, fault cases and feature cases.

在一些实施例中,终端60还可包括有显示屏63、输入输出接口64、通信接口65、传感器66、电源67以及通信总线68。In some embodiments, the terminal 60 may further include a display screen 63 , an input/output interface 64 , a communication interface 65 , a sensor 66 , a power supply 67 , and a communication bus 68 .

本领域技术人员可以理解,图13中示出的结构并不构成对终端60的限定,可以包括比图示更多或更少的组件。Those skilled in the art will appreciate that the structure shown in FIG. 13 does not constitute a limitation on the terminal 60 , and may include more or fewer components than those shown in the figure.

进一步的,本申请实施例还公开了一种存储介质,所述存储介质中存储有计算机可执行指令,所述计算机可执行指令被处理器加载并执行时,实现前述任一实施例公开的案例存储方法。关于该方法的具体步骤可以参考前述实施例中公开的相应内容,在此不再进行赘述。Furthermore, the embodiment of the present application also discloses a storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by a processor, the case storage method disclosed in any of the above embodiments is implemented. For the specific steps of the method, reference can be made to the corresponding contents disclosed in the above embodiments, and no further description will be given here.

需要指出的是,上述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。It should be pointed out that the above is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims (18)

1. A case storage method, applied to any blockchain node, comprising:
Receiving disease information and corresponding treatment information of a plurality of objects sent by a user;
Generating a case of each object according to the identification information of different objects, and taking the identification information of the objects as the ID of the case;
establishing an association relationship between the case and the ID, and storing the association relationship, the case and the ID to a current blockchain network;
acquiring cases of a plurality of objects in a current blockchain network; the cases include: at least one disease information and corresponding treatment information of the current subject;
Classifying a plurality of cases according to disease types to obtain a plurality of characteristic cases; each characteristic case records the disease information and the corresponding treatment information of a plurality of objects, the characteristic cases are displayed through a case record schematic diagram, the characteristic case record schematic diagram comprises the disease information, the examination record, the diagnosis conclusion, the treatment method and the corresponding effect, or the characteristic case record schematic diagram comprises the disease information, the examination index and the treatment method, and the treatment method comprises specific method information, the treatment effect and the case number;
Determining feature key characters in a plurality of feature cases as a retrieval index, and updating a retrieval index library according to the retrieval index, wherein the feature key words comprise any one of disease names, positions and disease causes;
storing the updated search index library and a plurality of the characteristic cases to the current blockchain network;
receiving a search request sent by a user;
Extracting a target retrieval index in the retrieval request;
Determining the similarity of the target search index and a plurality of the feature cases in the current blockchain network respectively, wherein determining the similarity of the target search index and the current feature case for any feature case comprises: respectively determining the similarity of the target retrieval index and each characteristic key character in the current characteristic case to obtain a plurality of sub-similarities; weighting and summarizing the sub-similarity to obtain the similarity between the target retrieval index and the current characteristic case;
and determining the feature case corresponding to the maximum similarity as a retrieval result and returning.
2. The case storage method according to claim 1, wherein determining the feature case corresponding to the maximum similarity as the search result and returning includes:
The characteristic cases are arranged in a descending order according to the similarity, and a characteristic case sequence is obtained;
and determining the characteristic case sequence as the retrieval result and returning.
3. The case storage method according to claim 1 or 2, wherein before storing the updated index library and the plurality of characteristic cases to the current blockchain network, further comprising:
For any one of the characteristic cases, adding disease information having the same type of treatment information to the same disease group; multiple disease groups are included in any one of the characteristic cases.
4. The case storage method of claim 1, wherein updating the search index base from the search index comprises:
Judging whether the search index exists in a search index library;
if not, adding the retrieval index to the retrieval index library to obtain the updated retrieval index library.
5. The case storage method of claim 1, wherein the storing the updated index library and the plurality of the characteristic cases to the current blockchain network comprises:
broadcasting the updated index library and the plurality of characteristic cases in the current blockchain network so that other blockchain nodes in the current blockchain network verify the updated index library and the plurality of characteristic cases;
And if the verification is passed, packaging the updated index library and a plurality of characteristic cases into a first block, and broadcasting a packaging message of the first block in the current blockchain network.
6. The case storage method of claim 1, wherein the storing the association relationship, the case, and the ID to the current blockchain network comprises:
Broadcasting the association, the case and the ID in the current blockchain network to enable other blockchain nodes in the current blockchain network to verify the association, the case and the ID;
And if the verification is passed, packaging the association relation, the case and the ID into a second block, and broadcasting a packaging message of the second block in the current blockchain network.
7. The case storage method according to claim 1, wherein after storing the updated index library and the plurality of the characteristic cases in the current blockchain network, further comprising:
receiving new disease information and corresponding treatment information of a target object sent by a user;
and adding the new disease information and the corresponding treatment information into the corresponding characteristic cases according to the disease type of the new disease information.
8. The case storage method according to claim 1, wherein the classifying the cases according to the disease type to obtain a plurality of characteristic cases includes:
and classifying the cases according to the disease types by using a classification algorithm to obtain a plurality of characteristic cases, wherein the classification algorithm is a naive Bayesian algorithm, a random forest algorithm or a support vector machine.
9. A case storage device for any blockchain node, comprising:
a second receiving unit, configured to receive disease information and corresponding treatment information of a plurality of objects sent by a user;
The generation module is used for generating a case of each object according to the identification information of different objects, and taking the identification information of the objects as the ID of the case;
the execution module is used for establishing an association relation between the case and the ID and storing the association relation, the case and the ID into a current blockchain network;
The acquisition module is used for acquiring cases of a plurality of objects in the current blockchain network; the cases include: at least one piece of disease information and corresponding treatment information of the current object, wherein the case is displayed through a case record schematic diagram, the case record schematic diagram comprises disease information, examination records, diagnosis conclusions, treatment methods and corresponding effects, or the case record schematic diagram comprises disease information, examination indexes and treatment methods, and the treatment methods comprise specific method information, treatment effects and case numbers;
the classification module is used for classifying the plurality of cases according to the disease types to obtain a plurality of characteristic cases; each characteristic case records disease information and corresponding treatment information of a plurality of objects;
The updating module is used for determining characteristic key characters in a plurality of characteristic cases as retrieval indexes and updating a retrieval index library according to the retrieval indexes, wherein the characteristic key words comprise any one of disease names, positions and disease causes;
the storage module is used for storing the updated retrieval index library and a plurality of characteristic cases into the current blockchain network;
the first receiving module is used for receiving a search request sent by a user;
the extraction module is used for extracting a target retrieval index in the retrieval request;
the retrieval module is used for retrieving the characteristic cases corresponding to the target retrieval index in the current blockchain network and returning retrieval results;
Wherein, the retrieval module includes:
The first determining unit is used for respectively determining the similarity of the target retrieval index and each characteristic key character in the current characteristic case aiming at any characteristic case to obtain a plurality of sub-similarities; weighting and summarizing the sub-similarity to obtain the similarity between the target retrieval index and the current characteristic case;
and the second determining unit is used for determining the characteristic case corresponding to the maximum similarity as the search result and returning the search result.
10. The apparatus according to claim 9, wherein the second determining unit is specifically configured to:
The characteristic cases are arranged in a descending order according to the similarity, and a characteristic case sequence is obtained; and determining the characteristic case sequence as the retrieval result and returning.
11. The apparatus according to claim 9 or 10, characterized in that the apparatus further comprises:
A first adding unit for adding disease information having the same type of treatment information to the same disease group for any one of the characteristic cases; multiple disease groups are included in any one of the characteristic cases.
12. The apparatus of claim 9, wherein the update module comprises:
the judging unit is used for judging whether the search index exists in the search index library;
And the updating unit is used for adding the retrieval index into the retrieval index library if the retrieval index does not exist in the retrieval index library, and obtaining the updated retrieval index library.
13. The apparatus of claim 9, wherein the storage module comprises:
A first broadcasting unit, configured to broadcast the updated search index library and the plurality of feature cases in the current blockchain network, so that other blockchain nodes in the current blockchain network verify the updated search index library and the plurality of feature cases;
And the first packing unit is used for packing the updated retrieval index library and a plurality of the characteristic cases into a first block if the verification is passed, and broadcasting the packing information of the first block in the current blockchain network.
14. The apparatus of claim 9, wherein the execution module comprises:
A second broadcasting unit configured to broadcast the association relationship, the case, and the ID in the current blockchain network, so that other blockchain nodes in the current blockchain network verify the association relationship, the case, and the ID;
and the second packing unit is used for packing the association relation, the case and the ID into a second block if the verification is passed, and broadcasting a packing message of the second block in the current blockchain network.
15. The apparatus of claim 9, wherein the apparatus further comprises:
a third receiving unit, configured to receive new disease information and corresponding treatment information of a target object sent by a user;
and a second adding unit, configured to add the new disease information and the corresponding treatment information to the corresponding characteristic case according to the disease type of the new disease information.
16. The apparatus of claim 9, wherein the classification module is specifically configured to:
and classifying the cases according to the disease types by using a classification algorithm to obtain a plurality of characteristic cases, wherein the classification algorithm is a naive Bayesian algorithm, a random forest algorithm or a support vector machine.
17. An electronic device comprising a processor and a memory; wherein the memory is for storing a computer program that is loaded and executed by the processor to implement the case storage method of any one of claims 1 to 8.
18. A storage medium having stored therein computer executable instructions which when loaded and executed by a processor implement the case storage method of any one of claims 1 to 8.
CN201910717999.4A 2019-08-05 2019-08-05 Case storage method, device, equipment and storage medium Active CN110457425B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910717999.4A CN110457425B (en) 2019-08-05 2019-08-05 Case storage method, device, equipment and storage medium
CN201910853432.XA CN110597946B (en) 2019-08-05 2019-08-05 Case storage method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910717999.4A CN110457425B (en) 2019-08-05 2019-08-05 Case storage method, device, equipment and storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201910853432.XA Division CN110597946B (en) 2019-08-05 2019-08-05 Case storage method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110457425A CN110457425A (en) 2019-11-15
CN110457425B true CN110457425B (en) 2024-05-03

Family

ID=68484947

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910717999.4A Active CN110457425B (en) 2019-08-05 2019-08-05 Case storage method, device, equipment and storage medium
CN201910853432.XA Active CN110597946B (en) 2019-08-05 2019-08-05 Case storage method, device, equipment and storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201910853432.XA Active CN110597946B (en) 2019-08-05 2019-08-05 Case storage method, device, equipment and storage medium

Country Status (1)

Country Link
CN (2) CN110457425B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110993112B (en) * 2019-11-20 2023-04-18 泰康保险集团股份有限公司 Tumor treatment case management method, system, medium and electronic device based on block chain
CN111275349A (en) * 2020-02-07 2020-06-12 武汉科技大学 Remanufacturing process planning method based on block chain and instance reasoning
CN112085380B (en) * 2020-09-07 2023-10-17 杭州叙简科技股份有限公司 Block chain-based safety production accident case management method
CN113139709A (en) * 2020-12-31 2021-07-20 上海明品医学数据科技有限公司 Evaluation system and evaluation method for medical information
CN112989255B (en) * 2021-04-15 2021-08-03 中国电子信息产业集团有限公司第六研究所 Identification analysis system
CN113435307B (en) * 2021-06-23 2024-06-25 国网天津市电力公司城东供电分公司 Operation and maintenance method, system and storage medium based on visual recognition technology
CN113806092A (en) * 2021-09-18 2021-12-17 济南浪潮数据技术有限公司 Storage device management method, system, device and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105590146A (en) * 2016-02-29 2016-05-18 上海带来科技有限公司 Power plant device intelligent prediction overhaul method and power plant device intelligent prediction overhaul system based on big data
CN108959945A (en) * 2018-07-06 2018-12-07 腾讯科技(深圳)有限公司 Medical data sharing method, device, computer-readable medium and electronic equipment
CN110019235A (en) * 2017-12-29 2019-07-16 百度在线网络技术(北京)有限公司 Data storage, restoration methods, device, equipment and medium based on block chain

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6099593B2 (en) * 2014-03-27 2017-03-22 富士フイルム株式会社 Similar case search device, similar case search method, and similar case search program
CN109659936A (en) * 2018-12-29 2019-04-19 国电南瑞科技股份有限公司 A kind of smart grid Dispatching Control System failure method of disposal and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105590146A (en) * 2016-02-29 2016-05-18 上海带来科技有限公司 Power plant device intelligent prediction overhaul method and power plant device intelligent prediction overhaul system based on big data
CN110019235A (en) * 2017-12-29 2019-07-16 百度在线网络技术(北京)有限公司 Data storage, restoration methods, device, equipment and medium based on block chain
CN108959945A (en) * 2018-07-06 2018-12-07 腾讯科技(深圳)有限公司 Medical data sharing method, device, computer-readable medium and electronic equipment

Also Published As

Publication number Publication date
CN110597946A (en) 2019-12-20
CN110597946B (en) 2024-04-23
CN110457425A (en) 2019-11-15

Similar Documents

Publication Publication Date Title
CN110457425B (en) Case storage method, device, equipment and storage medium
CN113257383B (en) Matching information determination method, display method, device, equipment and storage medium
CN108139958A (en) Event batch processing, output sequence in continuous query processing and the state storage based on daily record
CN111506511A (en) Test case generation method and device, electronic equipment and medium
CN110765272B (en) Knowledge graph-based signing method and device, computer equipment and computer storage medium
CN112800095A (en) Data processing method, device, equipment and storage medium
WO2018009979A1 (en) A computer implemented method for secure management of data generated in an ehr during an episode of care and a system therefor
US20220318122A1 (en) Method and system for blockchain performance testing
CN109934712A (en) Account checking method, account checking apparatus and electronic equipment applied to distributed system
CN114168544B (en) Clinical trial data processing method, device, computer equipment and storage medium
WO2021151357A1 (en) Decision information recommendation method and apparatus, medicine information recommendation method and apparatus, and device and medium
CN112309565B (en) Method, apparatus, electronic device and medium for matching drug information and disorder information
CN112489742A (en) Prescription circulation processing method and device
JP2021530775A (en) Exploring data structures maintained by distributed data sources
CN110471941A (en) It is automatically positioned the method, apparatus and electronic equipment of judgment basis
CN117891882A (en) Data management system, method, equipment and storage medium based on blockchain
CN117609368A (en) A genealogy analysis system, method, equipment and medium based on off-chain storage
CN111221853A (en) Medicine list abnormity detection method and device, computer equipment and storage medium
EP3576043A1 (en) Medical information management system, clinical information acquisition server, medical information management method, and program
CN114023456A (en) Outpatient grouping method, outpatient grouping device, electronic device, and medium
CN114300074A (en) Method and device for generating flow questionnaire link, electronic equipment and storage medium
CN112835489A (en) Service data processing method, device, storage medium and equipment
US20210019296A1 (en) System and method for data de-duplication and augmentation
CN114496139A (en) Quality control method, device, equipment and system of electronic medical record and readable medium
CN113988042B (en) Form comparison method, device, computer equipment, storage medium and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40016800

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TG01 Patent term adjustment
TG01 Patent term adjustment