Internet hospital electronic prescription sharing circulation method and system

By binding doctor signatures, drug batches and patient identity information in the Internet hospital system, combined with drug spectral characteristics and timestamp encryption, the single point of failure and insufficient dynamic verification of the existing system is solved, and the safe, reliable circulation and efficient coordination of electronic prescriptions are achieved.

CN120353767AActive Publication Date: 2025-07-22BEIJING CENT TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202510845884.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-24
Publication Date
2025-07-22
Estimated Expiration
2045-06-24

AI Technical Summary

Technical Problem

The existing Internet hospital electronic prescription sharing circulation system has the risk of single point of failure, lack of dynamic verification mechanism, poor scalability and difficulty in dealing with complex safety threats, especially in the process of the circulation of narcotic drugs and psychotropic drugs, and the safety and credibility are insufficient.

Method used

By binding doctor signature data, drug batch information and patient identity information, electronic prescription circulation chains are generated, authenticity verification marks are generated based on drug dissolution spectral characteristic data, and dynamic encryption passwords are generated using timestamps for double signature encryption. The receiver performs signature comparison and spectral matching verification, triggering shared circulation instructions.

Benefits of technology

It realizes traceability and tamper-proofness of the entire life cycle of prescription data, enhances the accuracy of authenticity verification of drugs and the ability to resist attacks during transmission, avoids the delay in secondary filling and circulation of fake drugs, and improves the security and coordination efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120353767A_ABST
    Figure CN120353767A_ABST
Patent Text Reader

Abstract

The invention provides an internet hospital electronic prescription sharing and circulation method and system. Wherein the doctor signature data, the medicine batch information and the patient identity information are bound through the Internet hospital platform, and an electronic prescription circulation chain with a timestamp is generated. And synchronously collecting dissolution spectrum characteristic data of the medicine delivery terminal, and generating an authenticity verification identifier associated with the medicine batch. And creating a dynamic encryption password based on the timestamp, performing double signature encryption on the doctor signature and the patient information, generating a tamper-proof encrypted data packet, and transmitting the tamper-proof encrypted data packet to a receiving end. The receiving end reversely analyzes the encrypted password, restores the signature data, compares the consistency with the original in-chain signature, and calculates the matching degree of the dissolution spectrum data and the drug batch. And when both the signature comparison result and the spectrum matching degree reach a preset threshold value, activating authorized sharing circulation of the electronic prescription chain. According to the technical scheme provided by the invention, the security and credibility of sharing and circulation of electronic prescriptions of internet hospitals can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of shared circulation of electronic prescriptions in Internet hospitals, and in particular to a method and system for shared circulation of electronic prescriptions in Internet hospitals. Background Art

[0002] With the rapid development of Internet hospitals, cross-institutional electronic prescription sharing and circulation has become an important means to improve the efficiency of medical resource utilization and optimize patients' medical experience. The application scenario requires the secure intercommunication of prescription data between different medical institutions to ensure that doctors can make scientific diagnosis and treatment decisions based on the patient's complete medication history. At the same time, this scenario places extremely high demands on the security of identity authentication. The identity information of patients, doctors and medical institutions must be authentic and reliable to prevent prescription data from being tampered with or illegally accessed, especially in the circulation of narcotic drugs and psychotropic drugs, which requires strict permission control and audit tracking capabilities.

[0003] In response to the above technical requirements, some Internet hospital platforms currently use an identity authentication mechanism based on public key infrastructure, combining digital certificates and electronic signature technology to achieve identity recognition and data integrity protection during prescription sharing. This solution assigns a unique digital identity to each doctor, pharmacist, and patient, and binds the identity through a digital certificate issued by a trusted certification authority. During the prescription generation and circulation process, each participant needs to use a private key to sign the operation behavior, and the recipient verifies the validity of the signature through the public key, thereby ensuring that the prescription source is authentic and the content has not been tampered with, and initially realizing security control in cross-institutional prescription sharing.

[0004] Although the above scheme has met the needs of sharing and circulating electronic prescriptions in Internet hospitals to a certain extent, there are still some significant defects. First, the digital certificate system relies on a centralized certification authority. Once the authority is attacked or the certificate is leaked, the trust foundation of the entire system will collapse, and there is a risk of single point failure. Secondly, the scheme lacks a dynamic verification mechanism for user behavior context, and cannot identify abnormal behavior after the legitimate identity is stolen, and it is difficult to deal with complex security threats such as illegal operations by internal personnel or identity fraud. In addition, with the expansion of the scope of multi-institutional collaboration, the complexity of certificate management has increased significantly, affecting the scalability and response efficiency of the system. Summary of the invention

[0005] The present application provides a method and system for sharing and circulating electronic prescriptions in an Internet hospital, so as to solve the problems of poor security and low credibility in the sharing and circulating electronic prescriptions in an Internet hospital in the prior art.

[0006] In the first aspect, the present application provides a method for sharing and circulating electronic prescriptions in an Internet hospital, including: Obtain the doctor's signature data, drug batch information, and patient identity information on the Internet hospital platform, bind and store the doctor's signature data, drug batch information, and patient identity information, and generate an electronic prescription transfer chain; Synchronously obtain the drug dissolution spectral characteristic data of the drug delivery terminal, associate the drug dissolution spectral characteristic data with the drug batch information, and generate a drug authenticity verification identifier; Generate an encryption password according to the timestamp of the electronic prescription transfer chain, use the encryption password to perform double signature on the doctor's signature data and patient identity information, generate an encrypted transmission data packet, and send the encrypted transmission data packet to the electronic prescription receiving end; At the electronic prescription receiving end, reverse-analyze the double signature in the encrypted transmission data packet according to the timestamp of the electronic prescription transfer chain to obtain the restored doctor's signature data, and compare the restored doctor's signature data with the doctor's signature data in the electronic prescription transfer chain to obtain a comparison result; Calculate the matching degree between the drug authenticity verification identifier and the drug dissolution spectral characteristic data, and when the comparison result and the matching degree meet the preset threshold, trigger the sharing transfer instruction of the electronic prescription transfer chain.

[0007] Optionally, the synchronously obtaining the drug dissolution spectral characteristic data of the drug delivery terminal, associating the drug dissolution spectral characteristic data with the drug batch information, and generating a drug authenticity verification identifier includes: Collect the drug dissolution spectral characteristic data of the drug delivery terminal, perform multi-band decomposition on the drug dissolution spectral characteristic data, and extract the target band spectral waveform associated with the drug batch information; Convert the peak distribution and attenuation characteristics of the target band spectral waveform into dynamic coding segments according to preset rules, and cross splice the dynamic coding segments to generate a dynamic identifier; Perform hash binding on the dynamic identifier and the drug batch information to obtain an initial verification identifier; Based on the current block height of the electronic prescription transfer chain and the time domain change rate of the target band spectral waveform, iteratively correct the initial verification identifier to generate a drug authenticity verification identifier.

[0008] Optionally, the iteratively correcting the initial verification identifier based on the current block height of the electronic prescription transfer chain and the time domain change rate of the target band spectral waveform to generate a drug authenticity verification identifier includes: Obtain the encryption seed value corresponding to the current block height of the electronic prescription transfer chain, calculate a dynamic correction factor in combination with the time domain change rate of the target band spectral waveform, and perform displacement transformation on the initial verification identifier based on the dynamic correction factor to generate an intermediate verification identifier; Adjust the encoding length of the intermediate verification identifier according to the attenuation characteristic of the target frequency band spectral waveform and the parity characteristic of the current block height to obtain an adjusted intermediate verification identifier; Extract the binary feature sequence of the electronic prescription circulation chain, perform bit segment matching and screening on the adjusted intermediate verification identifier to obtain candidate identifiers that match the leading bits of the binary feature sequence; Perform secondary password binding on the candidate identifiers and the drug batch information, and superimpose the candidate identifiers whose binding results meet the preset matching conditions to generate a drug authenticity verification identifier.

[0009] Optionally, the extracting the binary feature sequence of the electronic prescription circulation chain, performing bit segment matching and screening on the adjusted intermediate verification identifier to obtain candidate identifiers that match the leading bits of the binary feature sequence includes: Extract the block feature data and adjacent block heights of the electronic prescription circulation chain, and cross-combine the block feature data and the adjacent block heights to generate a binary feature sequence; Determine the leading bit length according to the parity of the current block height of the electronic prescription circulation chain, and intercept the leading bits of the continuous bit segment of the binary feature sequence according to the leading bit length; Dynamically generate a mask template based on the time domain change rate of the target frequency band spectral waveform, perform logical matching on the mask template and the binary feature sequence corresponding to the adjusted intermediate verification identifier, and screen out the active bit segments; Combine the adjusted intermediate verification identifiers that meet the matching of the active bit segments and the leading bits to generate candidate identifiers.

[0010] Optionally, the generating an encryption password according to the timestamp of the electronic prescription circulation chain and using the encryption password to perform double signature on the doctor's signature data and the patient's identity information to generate an encrypted transmission data packet includes: Decompose the timestamp of the electronic prescription circulation chain into a high-order time field and a low-order time field, generate a first shift factor based on the parity of the high-order time field, and circularly shift the binary feature sequence of the doctor's signature data by the first shift factor to generate an extended signature segment; Generate a second shift factor based on the difference of the low-order time field, and circularly shift the patient's identity information by the second shift factor to generate a compressed identity segment; Match the extended signature segment and the compressed identity segment to generate an intermediate data block, and intercept the valid bit segment of the intermediate data block based on the timestamp; Determine the mask direction according to the current block height of the electronic prescription transfer chain, generate a dynamic mask, sort the dynamic mask according to the time stamp, and generate an encryption password; Perform encryption processing on the valid bit segment according to the encryption password to generate encrypted transmission data.

[0011] Optionally, the matching of the extended signature segment and the compressed identity segment to generate an intermediate data block, and intercepting the valid bit segment of the intermediate data block based on the time stamp includes: Alternately arrange and combine the even bits of the extended signature segment and the odd bits of the compressed identity segment to generate an intermediate data block; Determine the interception start position based on the time stamp, and intercept a continuous bit segment from the binary feature sequence of the intermediate data block as a candidate valid bit segment; Calculate a dynamic mask sequence based on the time-domain change rate of the target frequency band spectral waveform, perform bitwise activation on the dynamic mask sequence and the candidate valid bit segment to generate an activation bit segment; Extract the last byte of the electronic prescription transfer chain and convert it into a binary control sequence, and perform cyclic shift combination on the activation bit segment according to the bit values of the binary control sequence to generate a valid bit segment.

[0012] Optionally, the comparison of the restored doctor signature data with the doctor signature data in the electronic prescription transfer chain to obtain a comparison result includes: Generate a dynamic comparison mask for the doctor signature data according to the time stamp of the electronic prescription transfer chain, perform logical matching on the dynamic comparison mask and the binary feature sequence of the restored doctor signature data, and filter out the matching bit segments; Align and arrange the matching bit segments of the restored doctor signature data and the doctor signature data, and perform an asymmetric bit transformation on the aligned and arranged matching bit segments to generate a difference bitmap; Determine the difference threshold between the restored doctor signature data and the doctor signature data in the electronic prescription transfer chain based on the parity of the current block height in the electronic prescription transfer chain, and compare the difference bitmap with the difference threshold to obtain a comparison result.

[0013] In a second aspect, the present application provides an Internet hospital electronic prescription sharing and transfer system, including: An acquisition module, which acquires doctor signature data, drug batch information, and patient identity information on the Internet hospital platform, binds and stores the doctor signature data, drug batch information, and patient identity information, and generates an electronic prescription transfer chain; An association module synchronously obtains the drug dissolution spectral characteristic data of the drug delivery terminal, associates the drug dissolution spectral characteristic data with the drug batch information, and generates a drug authenticity verification identifier; A sending module generates an encrypted password according to the timestamp of the electronic prescription transfer chain, uses the encrypted password to double-sign the doctor's signature data and the patient identity information, generates an encrypted transmission data packet, and sends the encrypted transmission data packet to the electronic prescription receiving end; A comparison module reversely analyzes the double signature in the encrypted transmission data packet according to the timestamp of the electronic prescription transfer chain at the electronic prescription receiving end, obtains the restored doctor's signature data, compares the restored doctor's signature data with the doctor's signature data in the electronic prescription transfer chain, and obtains a comparison result; A triggering module calculates the matching degree between the drug authenticity verification identifier and the drug dissolution spectral characteristic data, and triggers the sharing transfer instruction of the electronic prescription transfer chain when the comparison result and the matching degree meet the preset threshold.

[0014] In a third aspect, an embodiment of the present application provides a computing device, including a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement an Internet hospital electronic prescription sharing transfer method as described in the first aspect above.

[0015] In a fourth aspect, an embodiment of the present application provides a computer storage medium storing a computer program, and when the computer program is executed by a computer, it implements an Internet hospital electronic prescription sharing transfer method as described in the first aspect.

[0016] In an embodiment of the present application, doctor signature data, drug batch information, and patient identity information are obtained on an Internet hospital platform, and the doctor signature data, drug batch information, and patient identity information are bound and stored to generate an electronic prescription transfer chain; meanwhile, drug dissolution spectrum feature data of a drug delivery terminal is obtained, and the drug dissolution spectrum feature data is associated with the drug batch information to generate a drug authenticity verification identifier; an encryption password is generated according to the timestamp of the electronic prescription transfer chain, and the encryption password is used to perform double signing on the doctor signature data and patient identity information to generate an encrypted transmission data packet, and the encrypted transmission data packet is sent to an electronic prescription receiving end; at the electronic prescription receiving end, the double signature in the encrypted transmission data packet is reversely parsed according to the timestamp of the electronic prescription transfer chain to obtain the restored doctor signature data, and the restored doctor signature data is compared with the doctor signature data in the electronic prescription transfer chain to obtain a comparison result; the matching degree between the drug authenticity verification identifier and the drug dissolution spectrum feature data is calculated, and when the comparison result and the matching degree meet a preset threshold, a sharing transfer instruction of the electronic prescription transfer chain is triggered.

[0017] The technical solution of the present application has the following beneficial effects: In the present application, by binding and storing doctor signatures, drug batches, and patient identity information to form an electronic prescription transfer chain with a timestamp, the traceability and anti-tampering protection of prescription data throughout the entire life cycle are realized. By dynamically associating the drug dissolution spectrum features with the batch information, a unique authenticity identifier is generated to solve the problem of quantifiable verification of drug physical features and prevent the risk of secondary filling of counterfeit drugs after packaging recycling. Based on the timestamp, a dynamic encryption password is generated to double-sign and encrypt the core data, ensuring the anti-middleman attack ability of doctor signatures and patient privacy during the transmission process. By reversely parsing the encrypted data according to the timestamp and comparing the signature consistency, it is prevented that the prescription transfer chain is maliciously tampered with or forged during the transmission link. Combining the double-threshold determination of signature verification and spectrum matching degree, the automated decision-making of prescription sharing is realized, avoiding efficiency and compliance problems caused by manual intervention.

[0018] Furthermore, by decomposing the drug dissolution spectrum data in multiple frequency bands, the waveform features of the target frequency band are extracted, and their peak distribution and attenuation characteristics are converted into dynamic coding segments and spliced to generate a dynamic identifier. Subsequently, the identifier is hashed and bound with the drug batch information to generate an initial verification identifier, and then it is iteratively corrected based on the blockchain height and the spectral time-domain change rate, and finally a dynamic anti-counterfeiting identifier is generated. Through the extraction of spectral multi-frequency band features and dynamic coding conversion, the unpredictability and anti-copy attack ability of the identifier are enhanced. Combining hash binding and blockchain height iterative correction, the real-time association verification between the identifier and the drug physical state and circulation link is realized, effectively coping with complex attack scenarios such as batch tampering and spectral data forgery, and improving the accuracy of drug traceability.

[0019] These aspects or other aspects of the present application will be more clearly understood in the following description of the embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following briefly introduces the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0021] Figure 1 The flowchart of an Internet hospital electronic prescription sharing and transfer method provided by the present application is shown; Figure 2 The structural schematic diagram of an Internet hospital electronic prescription sharing and transfer system provided by the present application is shown; Figure 3 The structural schematic diagram of a computing device provided by the present application is shown. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0022] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.

[0023] In some of the processes described in the specification, claims and the above drawings of the present application, a plurality of operations appear in a specific order. However, it should be clearly understood that these operations may not be executed in the order in which they appear herein or may be executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions such as "first" and "second" in this article are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, nor do they limit that "first" and "second" are of different types.

[0024] Currently, the electronic prescription sharing technology of Internet hospitals mostly adopts the blockchain evidence storage and static hash verification mechanism. Although it can ensure the immutability of data after being uploaded to the blockchain, there are significant limitations. First, it relies on static data comparison and cannot verify the physical characteristics of drugs in real time, resulting in difficulty in identifying the tampering risk of secondary filling of fake drugs after packaging recycling. Second, the hash verification and fixed encryption mechanism lack dynamic protection capabilities, and doctor signatures and patient privacy data are vulnerable to man-in-the-middle attacks during the transmission process. Third, the cross-chain collaboration efficiency is insufficient, making it difficult to meet the real-time verification requirements in high-concurrency scenarios, and easily causing transfer delays and regulatory lags. The above defects seriously restrict the security, reliability, and actual implementation efficiency of electronic prescription transfer.

[0025] To address the above problems, this application proposes an electronic prescription sharing and transfer method based on dynamic physical feature verification and double encryption. By dynamically associating the dissolution spectrum characteristics of drugs with batch information to generate a unique authenticity identifier, the physical state of drugs in the circulation link can be quantitatively verified. Combining the blockchain timestamp to generate a dynamic encryption password, double-signature encryption is performed on doctor signatures and patient information to ensure the anti-attack ability of the transmitted data. At the receiving end, a double-threshold determination mechanism of timestamp reverse parsing and spectrum matching degree is adopted, and the transfer instruction is triggered only when both the signature consistency verification and the drug feature matching are qualified. This solution breaks through the inherent limitations of static data verification and systematically solves the problems of secondary filling of fake drugs, transmission link attacks, and low cross-chain efficiency through a collaborative mechanism of dynamic physical anti-counterfeiting, enhanced encryption timeliness, and two-factor decision-making, providing technical support for the trusted transfer of Internet hospital prescriptions throughout the entire link.

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

[0027] Figure 1 The following is a flowchart of an electronic prescription sharing and transfer method for Internet hospitals provided by an embodiment of the present application. As Figure 1 shown, the method includes: 101. Obtain doctor signature data, drug batch information, and patient identity information on the Internet hospital platform, bind and store the doctor signature data, drug batch information, and patient identity information, and generate an electronic prescription transfer chain; In this step, the doctor signature data refers to an encrypted data packet containing the doctor's digital signature, practice qualification code, and signature timestamp, which is used to verify the legitimacy of the identity of the prescription issuer.

[0028] Drug batch information is the unique identification data such as drug production batch number, expiration date, manufacturer, etc., which is used to trace the source of drugs.

[0029] Patient identity information is the privacy data encrypted after desensitization such as patient ID number, medical insurance card number, etc., which ensures that the prescription ownership can be verified and meets the requirements of privacy protection.

[0030] The electronic prescription transfer chain is a chain data structure generated based on blockchain technology. Each block contains prescription binding data, timestamp and the hash value of the previous block, realizing data immutability and full-link traceability.

[0031] In the embodiments of the present application, the digital signature data of the doctor is obtained through the electronic signature module. The signature is generated based on the asymmetric encryption algorithm and contains the doctor's practice qualification code and signature timestamp, which is used to verify the legal identity of the prescription issuer. At the same time, the system extracts the drug batch information from the drug database, including the production batch number, expiration date and manufacturer data, and structurally binds it with the desensitized identity information of the patient. The bound data is encapsulated as transaction data through the blockchain smart contract and written into a new block after being verified by the distributed node consensus mechanism, forming an electronic prescription transfer chain with a timestamp.

[0032] When a doctor issues a prescription for antihypertensive drugs, the signature data, drug batch number and encrypted patient identity information are bound and written into the blockchain. After the blockchain node verifies the data validity through the consensus mechanism, an initial block is generated, which contains a timestamp, transaction hash and the hash value of the previous block. When the prescription needs to be transferred to the pharmacy, the pharmacy can trace the signature legality, drug source and patient identity of the prescription through the blockchain.

[0033] 102. Synchronously obtain the drug dissolution spectral characteristic data of the drug delivery terminal, associate the drug dissolution spectral characteristic data with the drug batch information, and generate a drug authenticity verification identifier; In this step, the drug dissolution spectral characteristic data is the spectral curve data generated when the drug dissolves in a specific solvent, which is collected in real time by a spectrometer and reflects the physical characteristics of the drug components.

[0034] The drug authenticity verification identifier is an anti-counterfeiting code dynamically generated from the spectral characteristics and batch information, which is used to verify the consistency between the physical state of the drug and the batch.

[0035] In the embodiments of the present application, a high-precision spectrometer is deployed at the drug delivery terminal to collect the spectral data during the drug dissolution process in real time and obtain the absorption peak characteristics within a specific wavelength range. The spectral curve is divided into frequency bands through a multi-band decomposition algorithm, and the peak distribution and attenuation characteristics in the target frequency band waveform are extracted, and its physical characteristics are converted into a dynamic coding segment. The dynamic coding segment and the drug batch information are bound through the hash algorithm to generate a unique drug authenticity verification identifier.

[0036] When a doctor issues a prescription for antihypertensive drugs, it is found that a batch of antihypertensive drugs exhibits characteristic absorption peaks at specific wavelengths. The system extracts the peak height and decay slope through an algorithm and converts them into dynamic coding segments. After binding the coding segments with the hash value of the drug batch, an anti-counterfeiting identifier is generated and stored in the blockchain. When the drug flows to downstream links, the supervision platform can scan the drug and collect spectral data in real time to calculate the matching degree with the identifier in the blockchain.

[0037] 103. Generate an encryption password based on the timestamp of the electronic prescription transfer chain, use the encryption password to perform double-signature on the doctor's signature data and the patient's identity information, generate an encrypted transmission data packet, and send the encrypted transmission data packet to the electronic prescription receiving end; In this step, the timestamp is the precise time identifier when the blockchain block is generated and is used for the dynamic generation of the encryption password.

[0038] The encryption password is a dynamically generated digital key used to encrypt or decrypt sensitive information during data transmission or storage.

[0039] Double-signature is to perform digital signatures on the doctor's signature and the patient's information respectively using the encryption password, and then form a composite signature structure through nested encryption.

[0040] The encrypted transmission data packet is a structured data unit formed after multi-layer encryption processing of the original data.

[0041] The electronic prescription receiving end refers to an authorized terminal system responsible for decrypting, verifying, and executing electronic prescription instructions.

[0042] In the embodiment of the present application, based on the timestamp of the block in the electronic prescription transfer chain, a one-time encryption password is generated using a dynamic encryption algorithm. This password is used for nested encryption processing of the doctor's signature data and the patient's identity information: the doctor's signature is signed using the private key of the asymmetric encryption algorithm, and the patient's information is protected using the symmetric encryption algorithm, ultimately forming a composite encrypted transmission data packet. The dynamic nature of the timestamp ensures the uniqueness of each encryption password. During the process of sending it to the electronic prescription receiving end, even if an attacker intercepts historical data packets, they cannot be decrypted due to the expiration of the password's timeliness, thus resisting man-in-the-middle attacks.

[0043] When a prescription needs to be sent from the Internet hospital platform to the pharmacy, the system generates a dynamic encryption password based on the timestamp of the current block. The block timestamp of a certain prescription triggers the generation of the dynamic password. The doctor's signature is encrypted using the private key, and sensitive information such as the patient's mobile phone number is processed through the symmetric encryption algorithm to form an encrypted data packet and transmitted through a secure channel to the pharmacy receiving terminal. After receiving the data packet, the pharmacy terminal locates the encryption password according to the attached block height information and decrypts it to obtain the plaintext of the doctor's signature and the ciphertext of the patient's information.

[0044] 104. At the electronic prescription receiving end, reverse-analyze the dual signature in the encrypted transmission data packet according to the timestamp of the electronic prescription transfer chain to obtain the restored doctor signature data, and compare the restored doctor signature data with the doctor signature data in the electronic prescription transfer chain to obtain a comparison result; In this step, reverse analysis is a process of restoring the dynamic encryption password using the timestamp and decrypting the dual signature data in reverse.

[0045] The dual signature is to perform digital signatures on the doctor's signature and patient information respectively using the encryption password, and then form a composite signature structure through nested encryption.

[0046] The electronic prescription receiving end refers to an authorized terminal system that is responsible for decrypting, verifying, and executing electronic prescription instructions.

[0047] In the embodiment of the present application, the receiving end parses the block height from the encrypted data packet, obtains the corresponding timestamp from the blockchain, restores the encryption password using the same dynamic encryption algorithm, decrypts the dual signature data packet in reverse to obtain the doctor's signature plaintext and the patient information ciphertext. Compare the restored doctor's signature with the original blockchain data, and verify the signature consistency through the public key of the asymmetric encryption algorithm. This process ensures that the decryption logic strictly corresponds to the encryption process through the strong correlation between the timestamp and the encryption algorithm, preventing forged timestamps or brute-force cracking attacks. The consistency verification result is quantified in percentage form. If the matching degree is lower than the preset threshold, it is determined that the data may be tampered with, and the alarm mechanism is triggered and the process is interrupted.

[0048] After the pharmacy terminal receives the encrypted data packet, it queries the blockchain according to the block height to obtain the timestamp, restores the dynamic encryption password, and decrypts the data. Compare the doctor's signature obtained after decrypting a certain prescription with the original hash value stored in the blockchain. If the consistency reaches the threshold, it is determined that the signature is legal; at the same time, the patient information is decrypted completely and correctly. If the signature matching degree is found to be abnormal during a certain decryption, the system automatically marks the prescription as high-risk and notifies the supervision platform to intervene in the review.

[0049] 105. Calculate the matching degree between the drug authenticity verification identifier and the drug dissolution spectrum feature data, and trigger the shared transfer instruction of the electronic prescription transfer chain when the comparison result and the matching degree meet the preset threshold.

[0050] In this step, the matching degree calculation is to compare the differences between the spectrum features and the verification identifier through a similarity algorithm.

[0051] The dual signature is to perform digital signatures on the doctor's signature and patient information respectively using the encryption password, and then form a composite signature structure through nested encryption.

[0052] The shared transfer instruction is an instruction that automatically triggers the flow of prescription data to the next node when the signature and spectrum are double-verified.

[0053] In the embodiment of the present application, the receiving end calculates the matching degree between the drug authenticity verification mark and the current spectral feature, and uses a similarity algorithm to compare the difference between the dynamic coding segment and the spectral data collected in real time. At the same time, combined with the signature consistency verification result, only when both reach the preset threshold, the blockchain smart contract is triggered to automatically execute the shared circulation instruction. The smart contract updates the prescription status and broadcasts events to relevant nodes to complete the automated circulation of cross-institutional collaboration. This dual verification mechanism combines dynamic spectral features with static data verification, which not only prevents the circulation loopholes of counterfeit drugs caused by relying solely on data verification, but also avoids the efficiency bottleneck of relying solely on physical feature verification.

[0054] After verification, a prescription for a certain anti-stress drug triggers medical insurance settlement, and patient information and drug batches are synchronized to the regulatory database, completing the full-link closed loop. If a batch of drugs is intercepted due to insufficient spectral matching, the system automatically generates an early warning record and freezes the circulation of the prescription for traceability investigation by the regulatory authorities. This design realizes the fully automated and compliant circulation of prescriptions from issuance to settlement, significantly improving the efficiency of medical collaboration and the real-time nature of supervision.

[0055] In summary, steps 101 to 105 use blockchain technology to bind and store doctor signatures, drug batches, and patient information, build a tamper-proof electronic prescription circulation chain, and ensure that the entire data process is traceable. Generate a dynamic encrypted password based on the timestamp, and double-signature encrypt the doctor's signature and patient privacy to resist man-in-the-middle attacks. The receiving end reversely parses the password through the timestamp, verifies the signature consistency, and combines the spectral matching dual threshold judgment mechanism to trigger the automatic circulation of the smart contract only when the two meet the standards. This mechanism not only avoids the security vulnerabilities of a single verification mode, but also improves the processing efficiency in high-concurrency scenarios through dynamic physical feature verification, achieving a balance between security and practicality.

[0056] In order to solve the problem that the drug authenticity verification mark is static and easy to be forged, the solution collects spectral data, decomposes and generates a code, binds it to the batch information, and generates a verification mark by combining the block height and the time domain change rate correction. In some embodiments, the step 102 synchronously obtains the drug dissolution spectral feature data of the drug delivery terminal, associates the drug dissolution spectral feature data with the drug batch information, and generates a drug authenticity verification mark, including: 201. Collect drug dissolution spectrum characteristic data from a drug delivery terminal, perform multi-band decomposition on the drug dissolution spectrum characteristic data, and extract a target frequency band spectrum waveform associated with the drug batch information; In step 201, the spectral characteristic data of drug dissolution is the absorption or scattering spectral waveform of the drug in a specific solvent collected by a near-infrared spectrometer, which reflects the vibration characteristics of drug molecular bonds. Multi-band decomposition is to decompose the original spectrum into multiple sub-bands in the frequency domain and screen the band with the strongest correlation with the drug batch. The spectral waveform of the target band refers to the band waveform in the drug dissolution spectrum that is associated with a specific molecular structure.

[0057] In the embodiment of the present application, the Fourier transform is used to convert the spectral data from the time domain to the frequency domain, and the wavelet decomposition algorithm is used to perform multi-scale analysis on the spectrum. Specifically, a wavelet basis function is selected to decompose the spectrum into five layers, separating the high-frequency detail components and the low-frequency approximation components. By comparing with the standard spectral library of historical batch drugs, the correlation coefficient between each sub-band and the batch information is calculated, and the band with a correlation coefficient higher than the preset value is selected as the target band. For example, a significant characteristic peak appears in a certain batch of excipient differences within the wavenumber range, and this band is locked as the target waveform.

[0058] 202. Convert the peak distribution and attenuation characteristics of the spectral waveform of the target band into dynamic coding segments according to preset rules, and cross-join the dynamic coding segments to generate a dynamic identifier; In step 202, the peak distribution is the intensity and position distribution of the absorption peaks in the target band waveform. The attenuation characteristic is the attenuation rate of the absorption peak intensity with time or environment change. The dynamic coding segment is to convert the peak and attenuation parameters into binary codes and form an anti-prediction dynamic identifier through cross-joining. The dynamic identifier is an unpredictable code generated based on the dynamic characteristics of the spectral waveform.

[0059] In the embodiment of the present application, Gaussian fitting is performed on the target band waveform to extract the positions and intensity values of three main peaks, which are mapped to eight-bit binary codes after normalization. At the same time, the attenuation slope of the spectral intensity within five minutes is calculated in a sliding window manner to generate a four-bit dynamic check code. The peak code and the attenuation check code are arranged crosswise according to parity bits to form a twelve-bit dynamic identifier. For example, for a certain batch of drugs, the main peak intensity, secondary peak intensity, and attenuation slope are detected in the target band, and an identifier is generated through coding.

[0060] 203. Hash-bind the dynamic identifier with the drug batch information to obtain an initial verification identifier; In step 203, the dynamic identifier is an unpredictable code generated based on the dynamic characteristics of the spectral waveform. Hash-binding is to bind the dynamic identifier with the drug batch information through an irreversible hash algorithm to generate a unique verification label. The initial verification identifier is a preliminary anti-counterfeiting label generated by hashing the dynamic identifier with the drug batch information.

[0061] In the embodiments of the present application, a specific hash algorithm is used to perform a mixed operation on the dynamic identifier and the drug batch information. The dynamic identifier string and the drug batch number are concatenated according to a delimiter and then input into a hash function to generate a digest value with a fixed length. For example, first, the dynamic coding string and the batch number text are concatenated in a predetermined format to ensure data uniqueness; then, the hash function is called to perform an irreversible operation on the concatenated string to generate a digest value with a fixed length; finally, the digest value is associated with the distributed ledger of the blockchain to form an initial identifier that cannot be tampered with.

[0062] 204. Based on the current block height of the electronic prescription transfer chain and the time-domain change rate of the spectral waveform of the target frequency band, iteratively correct the initial verification identifier to generate a drug authenticity verification identifier.

[0063] In step 204, the block height is the serial number of the current block of the blockchain. The time-domain change rate is the intensity change rate of the waveform of the target frequency band within a continuous acquisition time window, reflecting the real-time state of the drug. Iterative correction is to dynamically adjust the initial identifier by combining the real-time state of the blockchain and the spectral time-domain fluctuations. The drug authenticity verification identifier is the final anti-counterfeiting label that integrates the spectral physical characteristics and blockchain data, with uniqueness, dynamics, and anti-forgery properties.

[0064] In the embodiments of the present application, an initial value of a chaotic sequence is generated based on the current block height of the blockchain, and the time-domain change rate of the spectral intensity of the target frequency band is introduced as a perturbation factor. A pseudo-random sequence is iteratively generated through a chaotic mapping algorithm, and a bitwise exclusive OR operation is performed on the initial hash value. For example, first, a random seed is generated according to the serial number of the latest block of the blockchain; then, a pseudo-random number sequence is iteratively generated using a chaotic mapping model to simulate environmental noise; at the same time, the time-domain fluctuation parameters of the real-time spectral waveform are collected, and the deviation rate from the standard value is calculated; finally, the chaotic sequence and the deviation rate are weighted and fused to perform a bit operation correction on the initial hash value. This process enables the verification identifier to be dynamically adjusted according to the blockchain state and the physical state of the drug, which not only resists replication attacks but also adapts to spectral shifts caused by changes in the storage environment.

[0065] The following is a specific example: After a doctor issues a prescription for a hypertensive patient, the cooperating pharmacy receives the drug and uses a near-infrared spectrometer to scan the dissolved solution of the tablet to obtain spectral data in a specific wave number range. Through wavelet decomposition, it is found that there are characteristic peaks in a certain frequency band, which highly match the historical data, and it is determined as the target frequency band. The main peak intensity, secondary peak position, and attenuation rate parameters are extracted to generate a dynamic identifier. It is concatenated with the batch number to generate an initial verification identifier and stored on the chain. Combining the blockchain state and the real-time spectral fluctuations, a final anti-counterfeiting identifier is generated. When the patient picks up the drug at the community pharmacy with the electronic prescription, the system verifies that the matching degree of the identifier with the blockchain record and the real-time spectrum meets the standard, and automatically completes the medical insurance settlement and releases the drug.

[0066] In summary, steps 201 to 204 combine spectral feature dynamic encoding with blockchain correction factors to address the defect of traditional anti-counterfeiting labels being static and easily replicated. The extraction of the target frequency band waveform ensures that the physical characteristics of the drug can be quantitatively verified; the dynamic encoding splicing and hash binding enhance the uniqueness of the label; the iterative correction mechanism based on the block height and time domain change makes the identifier dynamically adjust with the circulation link, resisting batch tampering and historical data reuse attacks. In practical applications, after a doctor issues a prescription, the entire process of drug authenticity verification is automatically completed, accurately intercepting the secondary filling of fake drugs and improving the real-time performance and reliability of drug traceability in Internet hospitals.

[0067] To further improve the dynamic security and environmental adaptability of drug anti-counterfeiting labels, this solution generates a correction factor through an encryption seed and the time domain change rate, displaces and transforms the label, and adjusts the encoding length to match the on-chain data to generate a verification label. In some embodiments, in step 204, the initial verification label is iteratively corrected based on the current block height of the electronic prescription transfer chain and the time domain change rate of the target frequency band spectral waveform to generate a drug authenticity verification label, including: 301. Obtain the encryption seed value corresponding to the current block height of the electronic prescription transfer chain, calculate a dynamic correction factor in combination with the time domain change rate of the target frequency band spectral waveform, and perform a displacement transformation on the initial verification label based on the dynamic correction factor to generate an intermediate verification label; In step 301, the encryption seed value refers to a random number generated based on the current block height of the blockchain, which is used to provide an unpredictable encryption perturbation source. The time domain change rate refers to the intensity attenuation or offset rate of the target frequency band spectral waveform changing with time, reflecting the physical property fluctuations of the drug due to environmental factors. The dynamic correction factor refers to a weight parameter generated by combining the encryption seed value and the time domain change rate, which is used to dynamically adjust the initial verification label. The displacement transformation is a cyclic left shift or right shift operation on the binary code, changing the code structure to resist reverse cracking. The intermediate verification label is a transitional label generated by adjusting through the dynamic correction factor in the drug anti-counterfeiting process, integrating the blockchain state and the spectral time domain change characteristics.

[0068] In the embodiment of the present application, first, an encrypted seed value corresponding to the current block height is obtained from the electronic prescription circulation chain, and a random number of a fixed length is generated by using a hash algorithm. At the same time, a time-domain analysis is performed on the spectral waveform of the target frequency band, and the intensity change rate within a specific time window is calculated. The encrypted seed value and the change rate are input into a chaotic mapping model, and a dynamic correction factor is generated through multiple iterations. For example, a chaotic equation is used to perform a non-linear operation on the initial value, and a dynamic constraint is imposed on the iteration path in combination with the time-domain change rate. Subsequently, the number of displacement bits is determined according to the absolute value of the correction factor, and a cyclic left shift or right shift operation is performed on the binary feature sequence of the initial verification identifier. This process dynamically binds the immutability of the blockchain to the physical state of the drug, ensuring that the verification identifier is updated in real time with the circulation environment.

[0069] 302. Adjust the coding length of the intermediate verification identifier according to the attenuation characteristic of the spectral waveform of the target frequency band and the parity characteristic of the current block height to obtain an adjusted intermediate verification identifier; In step 302, the coding length refers to the number of binary digits used to represent data or an identifier, which is positively correlated with the amount of information. The longer the coding, the richer the verification parameters that can be accommodated. The attenuation characteristic is the natural attenuation law of the intensity of the spectral waveform of the target frequency band, such as the slope of the main peak intensity decreasing with time. The parity characteristic is the parity attribute of the blockchain height value, which is used to trigger the coding expansion or compression logic.

[0070] In the embodiment of the present application, the original coding length of the intermediate verification identifier is extracted and dynamically adjusted in combination with the attenuation rate of the target frequency band and the parity of the block height. If the block height is odd, the coding length is expanded proportionally according to the absolute value of the attenuation rate. For example, for each increase in the unit magnitude of the attenuation rate, a fixed number of bits is expanded; if it is even, the coding length is compressed to the closest standard number of bits. During the adjustment process, key feature bits of the intermediate verification identifier are retained, and redundant noise data is removed. For example, for a certain antihypertensive drug, due to the fluctuation of the storage temperature, the attenuation rate increases, and the system automatically expands the number of check code bits to enhance the fault tolerance ability, while maintaining compatibility with the blockchain data structure through parity constraints.

[0071] 303. Extract the binary feature sequence of the electronic prescription circulation chain, and perform bit-segment matching screening on the adjusted intermediate verification identifier to obtain a candidate identifier that matches the leading bits of the binary feature sequence; In step 303, the binary feature sequence is an encrypted data stream stored in the electronic prescription circulation chain, which contains the hash records of the entire process of drug circulation. The leading bit matching means that the starting bit of the candidate identifier needs to be exactly the same as the leading bits of the blockchain binary feature sequence to achieve data traceability verification. The candidate identifier refers to a set of candidate verification identifiers that are consistent with the leading bits of the blockchain after bit-segment matching screening and are used for subsequent secondary encryption binding.

[0072] In the embodiments of the present application, the binary feature sequence of the current drug's circulation path is extracted from the blockchain, and its leading bits are intercepted as the matching benchmark. The adjusted intermediate verification identifier is segmented, and the sliding window algorithm is used to compare each segment one by one. For example, the identifier is divided into several eight-bit segments, and exclusive OR operations are performed with the blockchain leading bits in sequence to screen out candidate segments with difference values lower than the preset threshold. At the same time, the dynamic mask technology is introduced, and an activation template is generated according to the spectral time-domain change rate, and the matching operation is only performed on the key bit segments.

[0073] 304. Secondarily bind the candidate identifier with the drug batch information, and superimpose the candidate identifiers whose binding results meet the preset matching conditions to generate a drug authenticity verification identifier.

[0074] In step 304, the secondary password binding means that the candidate identifier and the drug batch information are secondarily bound using an asymmetric encryption algorithm to enhance the anti-counterfeiting uniqueness. The superposition generation is to perform a logical operation on the candidate identifiers that meet the matching conditions to generate a final identifier that resists replication. The drug authenticity verification identifier refers to the anti-counterfeiting label finally generated by superimposing multiple encryption algorithms, which realizes dynamic anti-counterfeiting by combining spectral features, blockchain data, and batch information.

[0075] In the embodiments of the present application, the candidate identifier, the drug batch number, and the production date are encrypted using an asymmetric encryption algorithm. After converting the batch number into the American Standard Code for Information Interchange (ASCII) encoding, modular exponentiation operations are performed with the candidate identifier to generate encryption results. Subsequently, a mixed processing of bitwise AND operations and bitwise OR operations is performed on all the encryption results, and only the bit segments with a consistency exceeding the threshold in the entire sequence are retained. For example, after encrypting a candidate identifier of a certain antihypertensive drug, three groups of ciphertexts are generated. Deviation bits caused by logistics temperature differences are removed through the superposition operation, and finally a drug authenticity verification identifier with environmental adaptability is synthesized.

[0076] The following is a specific example: After a doctor prescribed a certain antihypertensive drug for a hypertensive patient, an encrypted seed value was generated based on the blockchain height. The time-domain change rate of the detection target frequency band was negative, and the dynamic correction factor was calculated and the initial identifier was circularly shifted to the left; the blockchain height was odd, and the coding length was extended according to the attenuation rate to generate an intermediate identifier; the blockchain leading bits were matched, and three groups of candidate identifiers were screened out. The candidate identifiers were encrypted with the batch number and superimposed to generate the final identifier. When the patient went to the cooperative pharmacy to pick up the medicine, the system verified that the identifier matched the blockchain and the real-time spectrum up to the standard, automatically completed the medical insurance settlement, and released the medicine.

[0077] In summary, steps 301 to 304 achieve real-time anti-interference adjustment of the identifier through the dynamic fusion of the encrypted seed and spectral parameters. The coding length control of the blockchain parity constraint ensures data compatibility. The leading bit matching and mask activation technology accurately screens valid data, and the secondary encryption superposition constructs multiple protection layers. In the scenario of antihypertensive drug circulation, even if the spectral shift is caused by storage fluctuations, the system can still automatically compensate through the dynamic correction factor, significantly reducing the misjudgment rate. At the same time, the combination of blockchain data traceability and asymmetric encryption completely blocks the possibility of forgers reverse-deriving through historical data, providing full-link protection for the safety of chronic disease medications.

[0078] To further improve the dynamic correlation between the drug anti-counterfeiting identifier and blockchain data, a binary feature sequence is generated by extracting block features, the leading bits are intercepted, and the activation bit segments are screened by dynamic masking to combine candidate identifiers. In some embodiments, in step 303, extracting the binary feature sequence of the electronic prescription transfer chain, performing bit segment matching screening on the adjusted intermediate verification identifier, and obtaining candidate identifiers that match the leading bits of the binary feature sequence includes: 401. Extract the block feature data and adjacent block heights of the electronic prescription transfer chain, and cross-combine the block feature data and adjacent block heights to generate a binary feature sequence; In step 401, the block feature data refers to core data such as the hash value, timestamp, and encrypted digest of the drug transfer information stored in the electronic prescription transfer chain. The adjacent block height is the serial numbers of the front and rear blocks directly connected to the current block in the blockchain, which is used to introduce chain data correlation. The binary feature sequence is an encrypted data stream formed by cross-combining the block feature data and adjacent heights bit by bit, which is used to represent the uniqueness of the drug transfer path.

[0079] In the embodiments of the present application, first, the encrypted hash value, timestamp, and signature data of the current block are extracted from the blockchain, and at the same time, the height serial number of its adjacent block is obtained. The hash value of the current block is converted into a binary form and alternately spliced with the adjacent block height serial number. For example, the previous bit is taken from the hash value of the current block, and the next bit is taken from the parity identifier of the adjacent height serial number to form a mixed binary feature sequence. This process enhances the non-replicability of the identifier through chain data association, ensuring that forgers cannot forge a complete chain through isolated block data.

[0080] 402. Determine the leading bit length according to the parity of the current block height of the electronic prescription transfer chain, and intercept the leading bits of the continuous bit segment of the binary feature sequence according to the leading bit length; In step 402, the parity feature is the parity attribute of the current block height value of the blockchain, which is used to control the data interception strategy. The leading bit length is the length of the continuous bit segment intercepted from the starting position of the binary feature sequence, and its value is dynamically determined by the parity. The binary feature sequence is an encrypted data stream formed by bitwise cross-combining the block feature data and the adjacent height, which is used to characterize the uniqueness of the drug circulation path.

[0081] In the embodiment of the present application, the leading bit length is set according to the parity of the current block height: if the height is odd, a partial number of bits of the hash value of the block feature data is intercepted as the leading bit; if it is even, fewer bits are intercepted. For example, for a certain block hash value, it is classified and intercepted according to the parity of the number of bits of the hash value. When intercepting, the core bit segments representing the drug batch and production date are preferentially retained, and the redundant check bits are removed. This design enables the leading bit to carry both the blockchain state and the basic drug information, providing a high-value data anchor for subsequent matching.

[0082] 403. Dynamically generate a mask template based on the time-domain change rate of the spectral waveform in the target frequency band, perform a logical match between the mask template and the binary feature sequence corresponding to the adjusted intermediate verification identifier, and filter out the active bit segments; In step 403, the time-domain change rate is the rate at which the spectral waveform intensity in the target frequency band fluctuates with time, reflecting the influence of the drug storage environment. The mask template is a binary bit activation rule generated according to the time-domain change rate, which is used to filter the valid bit segments of the intermediate verification identifier. The active bit segments refer to the valid verification bit segments filtered out by the dynamically generated mask template in the binary data sequence.

[0083] In the embodiment of the present application, a dynamic mask template is generated based on the time-domain change rate of the target frequency band spectrum. The specific process is as follows: calculate the change slope of the spectral intensity within a short time window, and normalize it to the weight coefficient within the interval. If the absolute value of the slope is greater than the threshold, mark the corresponding bit segment as the active state in the mask template; otherwise, mark it as the masked state. Perform a bitwise AND operation between the mask template and the binary feature sequence of the intermediate verification identifier, and only retain the active bit segments. For example, for a certain antihypertensive drug, due to the rapid decrease in spectral intensity caused by temperature and humidity fluctuations, the system generates the active bit segments of the mask template and masks the subsequent bit segments that may be affected by noise.

[0084] 404. Combine the identifiers in the adjusted intermediate verification identifier that satisfy the matching of the active bit segments and the leading bits to generate candidate identifiers.

[0085] In step 404, the activation bit segment matching is the binary bit segment in the intermediate verification identifier that is consistent with the leading bits of the blockchain, and is used to construct a candidate set. The candidate identifier refers to the set of candidate verification identifiers generated by bit segment combination, which needs to satisfy a strong correlation with the blockchain data. The leading bit matching refers to the process in which the starting binary bit segment of the candidate verification identifier is exactly the same as the starting bit segment of the blockchain feature sequence.

[0086] In the embodiment of the present application, the activation bit segment is compared bit by bit with the leading bits of the blockchain, and the bit segment combinations with difference values lower than the preset threshold are screened. The eligible bit segments are recombined: the high-frequency feature bits are preferentially retained, and the low-frequency check bits are supplemented. For example, if the matching rate between the activation bit segment of a certain intermediate verification identifier and the leading bits of the blockchain reaches a relatively high value, the system splices its main peak coding segment with the blockchain hash check bits to generate a candidate identifier. This process ensures that the candidate set has both the authenticity of physical characteristics and the integrity of the data chain through double screening.

[0087] The following is a specific example: After a doctor in a certain city issues a prescription for antihypertensive drugs to a hypertensive patient, a mixed binary feature sequence is generated by extracting the hash value of the current block and the adjacent height. The current block height is even, and the bit segment containing the timestamp and the encrypted digest is intercepted as the leading bits. The detection of the spectral time-domain change rate is relatively high, and a mask template is generated to activate the key feature bit segments. The activation segments in the intermediate identifier that match the leading bits are screened and recombined to generate candidate identifiers. When the patient goes to a cooperative pharmacy to pick up the medicine, the system verifies that the matching degree of the candidate identifier with the blockchain and the real-time spectrum meets the standard, and quickly completes the medicine verification and release.

[0088] To sum up, steps 401 to 404 construct a dynamically associated anti-counterfeiting verification system through the deep integration of blockchain feature data and spectral time-domain parameters. The feature sequence generated by the cross-combination of blockchain data ensures that the drug circulation path is traceable; the leading bit interception strategy is dynamically adjusted based on the parity of the block height, improving the data utilization efficiency; the mask activation mechanism driven by the time-domain change rate effectively isolates environmental interference noise; the double screening and recombination of candidate identifiers achieve double-trust verification of physical characteristics and on-chain data. In the circulation scenario of antihypertensive drugs, even if the spectral characteristics shift due to fluctuations in the storage environment, the system can still accurately lock the valid data through dynamic masks and bit segment matching, significantly improving the forgery recognition rate, and at the same time greatly reducing the misjudgment rate caused by logistics temperature differences, providing an all-link guarantee for the medication safety of chronic disease patients.

[0089] To further improve the dynamic security and anti-tampering ability of electronic prescription transmission data, this solution generates a displacement factor by timestamp sub-fields, generates an intermediate block through cyclic shift signature and identity information, and encrypts through dynamic mask sorting. In some embodiments, generating an encryption password according to the timestamp of the electronic prescription transfer chain in step 103, and performing double signature on the doctor's signature data and the patient's identity information by using the encryption password to generate an encrypted transmission data packet, including: 501. Decompose the timestamp of the electronic prescription transfer chain into a high-order time field and a low-order time field, generate a first displacement factor based on the parity of the high-order time field, and circularly shift the binary feature sequence of the doctor's signature data by the first displacement factor to generate an extended signature segment; In step 501, the high-order time field is a binary field representing a larger time unit in the timestamp, which is used to generate a reference parameter for signature displacement. The low-order time field is a binary field representing a smaller time unit in the timestamp, which is used to generate an adjustment parameter for identity information compression. Circular left shift refers to the displacement operation of moving the binary feature sequence to the left, and the bits exceeding the length limit are refilled to the right to maintain data integrity.

[0090] In the embodiment of the present application, first, the timestamp of the electronic prescription transfer chain is decomposed into a high-order field and a low-order field. The parity of the high-order field is judged: if the last bit of the high-order field binary is in a specific state, the first displacement factor is the displacement amount corresponding to an odd value; otherwise, it is the displacement amount corresponding to an even value. Circularly shift the binary feature sequence of the doctor's signature data by this displacement factor to extend the signature length and disrupt the original structure. For example, when the high-order field is odd, the signature sequence is shifted to the left by several bits as a whole, so that the key feature bits are distributed to new positions to avoid the cracking of the fixed coding mode.

[0091] 502. Generate a second displacement factor based on the difference of the low-order time field, and circularly shift the patient's identity information by the second displacement factor to generate a compressed identity segment; In step 502, the difference generation is to calculate the difference between the current value of the low-order time field and the historical average value to generate a displacement adjustment parameter. Circular right shift refers to moving the binary feature sequence to the right, and the bits exceeding the length limit are refilled to the left to achieve data compression and confusion. The compressed identity segment is a data security processing technology, which refers to compressing and confusing the binary data containing personal identity information through a specific algorithm to reduce the data volume and enhance privacy protection.

[0092] In the embodiments of the present application, the current value of the low-order time field is extracted, and the difference is calculated with the mean value in the historical record. If the difference is positive, a second displacement factor is generated as the forward displacement amount; if it is negative, it is the reverse displacement amount. The binary feature sequence of the patient identity information is circularly shifted to the right according to this displacement factor, compressing the length of the identity segment data and hiding sensitive information. For example, when the difference is large, the identity information is shifted to the right by several bits, so that the key privacy fields are covered by the high-order fields, realizing information desensitization.

[0093] 503. Match the extended signature segment with the compressed identity segment to generate an intermediate data block, and intercept the valid bit segment of the intermediate data block based on the time stamp; In step 503, the matching generation is to cross-combine the extended signature segment and the compressed identity segment according to specific rules to form a mixed data block. The valid bit segment interception is to extract the core verification bit segment from the intermediate data block based on the integrity feature of the time stamp.

[0094] In the embodiments of the present application, the even bits of the extended signature segment and the odd bits of the compressed identity segment are alternately arranged to form an intermediate data block. For example, the first bit, the third bit, etc. of the extended signature segment are spliced alternately with the second bit, the fourth bit, etc. of the compressed identity segment. Subsequently, the interception start position is determined according to the hash value of the time stamp: using the last few bits of the time stamp as the offset, a continuous bit segment is intercepted from the intermediate data block as the valid bit segment data. This process ensures the dynamic binding of the core verification information and the time stamp, preventing local tampering of the data.

[0095] 504. Determine the mask direction according to the current block height of the electronic prescription transfer chain, generate a dynamic mask, sort the dynamic mask according to the time stamp, and generate an encryption password; In step 504, the mask direction is to determine the mask bit movement direction according to the last-bit state of the blockchain height. The encryption password sorting is to arrange and combine the dynamic masks in the order of the time stamp to generate a one-time encryption key. The dynamic mask is a data desensitization technology, and its core lies in dynamically transforming or replacing sensitive data according to user permissions or context requirements, rather than permanently modifying the original data.

[0096] In the embodiments of the present application, the last-bit state of the current block height is obtained: if it is a specific state, a left-shift mask template is generated; otherwise, a right-shift mask template is generated. The mask templates are sorted and combined in the order of the time stamp to form a dynamic encryption password. For example, the masks earlier than the current time stamp are arranged first, and those later are arranged second, forming an encryption rule strongly associated with the time axis. This design makes each transmitted password unique and unpredictable.

[0097] 505. Encrypt the valid bit segment according to the encryption password to generate encrypted transmission data.

[0098] In step 505, the valid bit segment encryption refers to performing a bitwise exclusive OR operation on the valid data segment using a dynamically generated encryption password to generate a ciphertext. The encryption password sorting is to permute and combine the dynamic masks in timestamp order to generate a one-time encryption key. Encrypted transmission data means converting the plaintext information into an unreadable ciphertext through an algorithm, which can only be restored at the receiving end through the key, so as to ensure the confidentiality and integrity of the data during the transmission process.

[0099] In the embodiment of the present application, a bitwise exclusive OR operation is performed on the encryption password and the valid bit segment. If the password bit is in a specific state, the valid bit is inverted; otherwise, the original value of the transmitted data is maintained. For example, when a certain bit of the dynamic mask is in an active state, the corresponding valid bit segment is flipped and encrypted. This process generates a ciphertext that cannot be cracked through static rules, ensuring that the transmitted data cannot be restored even if intercepted.

[0100] The following is a specific example: After a doctor issues a prescription for a certain antihypertensive drug to a hypertensive patient, the system decomposes the prescription generation time into a high-order field and a low-order field. The high-order field is odd, and the signature data is circularly shifted left by several bits to generate an extended signature. The difference in the low-order field is large, and the patient's ID number is right-shifted by several bits to achieve desensitization. The extended signature and the compressed identity are alternately spliced, and the valid bit segment associated with the timestamp is intercepted. A right-shift mask is generated according to the block height, and after sorting, the valid bit segment is encrypted by exclusive OR. When the patient picks up the medicine at the pharmacy with the electronic prescription, the system decrypts it and verifies that the signature and the identity information match, and completes the drug issuance within five seconds.

[0101] In summary, steps 501 to 505 are generated through the dynamic decomposition of the timestamp and the displacement factor, realizing the dual security processing of the doctor's signature and the patient's identity information; the cross-combination of the intermediate data blocks and the interception of the valid bits ensure the strong binding of the core verification information and the timestamp; the dynamic mask encryption driven by the blockchain height constructs a one-time irreversible encryption password. In the scenario of the antihypertensive drug prescription, the entire process from data generation to encrypted transmission has the capabilities of anti-replay attack and anti-tampering, and at the same time protects the patient's privacy through desensitization processing. Practical applications show that this method reduces the risk of prescription data leakage by more than 90%, and improves the verification efficiency by three times, providing a reliable guarantee for the security of Internet medical data.

[0102] To solve the risk of bit segment confusion during data transmission and enhance the dynamic anti-counterfeiting ability, this scheme alternately arranges the extended signature and the compressed identity segment, intercepts the candidate bit segment of the timestamp, and generates the valid bit segment after the dynamic mask is activated and shifted. In some embodiments, the step of matching the extended signature segment and the compressed identity segment to generate an intermediate data block and intercepting the valid bit segment of the intermediate data block based on the timestamp in step 503 includes: 601. Alternately arrange and combine the even bits of the extended signature segment and the odd bits of the compressed identity segment to generate an intermediate data block; In step 601, the extended signature segment is a binary feature sequence generated after the doctor's signature data undergoes a cyclic left shift process. The compressed identity segment is a binary feature sequence generated after the patient identity information undergoes a cyclic right shift process. The intermediate data block refers to a mixed data block formed by combining the above two data segments according to specific rules.

[0103] In the embodiments of the present application, first, the doctor's signature data is filled to a fixed length using a bit extension algorithm to generate an extended signature segment, ensuring that its binary digits meet the requirements of subsequent processing. At the same time, the patient identity information is compressed into an equal-length binary feature sequence through a hashing algorithm to generate a compressed identity segment. Subsequently, the even bits of the extended signature segment and the odd bits of the compressed identity segment are combined bit by bit according to the alternating arrangement rule to form an intermediate data block.

[0104] 602. Determine the interception start position based on the time stamp, and intercept a continuous bit segment from the binary feature sequence of the intermediate data block as the candidate valid bit segment; In step 602, the time stamp is the time identifier generated by the current block in the blockchain electronic prescription transfer chain, used to determine the interception start position. The candidate valid bit segment is a continuous bit segment intercepted from the binary feature sequence of the intermediate data block and serves as the basic data for subsequent processing.

[0105] In the embodiments of the present application, based on the time stamp value of the current blockchain block, the interception start position of the binary feature sequence of the intermediate data block is determined through modulo operation. For example, if the time stamp is a specific value, calculate its modulo value with respect to the total number of bits of the intermediate data block to obtain the start bit index. Intercept a continuous bit segment starting from this index position to generate the candidate valid bit segment. This step ensures that the position of the intercepted bit segment changes randomly each time through the dynamic nature of the time stamp, preventing attackers from predicting the data pattern.

[0106] 603. Calculate a dynamic mask sequence based on the time-domain change rate of the target frequency band spectral waveform, and perform bitwise activation on the candidate valid bit segment with the dynamic mask sequence to generate an activated bit segment; In step 603, the time-domain change rate is the intensity attenuation rate at which the target frequency band spectral waveform changes over time and is used to calculate the dynamic mask sequence. The dynamic mask sequence refers to a binary feature sequence generated based on the time-domain change rate and is used to perform bitwise logical operations on the candidate valid bit segment. The activated bit segment is an encrypted bit segment generated by performing an exclusive OR operation on the candidate valid bit segment and the dynamic mask sequence.

[0107] According to the time-domain change rate of the target frequency band spectral waveform, it is quantified into a weight coefficient, and a dynamic mask sequence of the same length as the candidate valid bit segment is generated through a linear mapping algorithm. The dynamic mask sequence and the candidate valid bit segment are subjected to an exclusive OR operation bit by bit to generate the activated bit segment. This process dynamically binds the physical characteristics of the drug to data encryption, enhancing the anti-forgery ability of the bit segment.

[0108] 604. Extract the last byte of the electronic prescription transfer chain and convert it into a binary control sequence. Perform circular shift combinations on the activation bit segment according to the bit values of the binary control sequence to generate a valid bit segment.

[0109] In step 604, the binary control sequence refers to the binary feature sequence converted from the last byte of the electronic prescription transfer chain, which is used to control the circular shift rule. Circular shift combination means performing shift operations on the activation bit segment according to the bit values of the binary control sequence to generate the final valid bit segment.

[0110] In the embodiment of the present application, the last byte of the latest block of the blockchain electronic prescription transfer chain is extracted and converted into an eight-bit binary control sequence. According to the value of each bit in the control sequence, perform circular left shift or right shift operations on the activation bit segment. For example, if according to the bit values of the control sequence, perform left shift and right shift alternately on the activation bit segment in sequence from left to right, shifting one bit each time. Finally, combine the shifted bit segments into a valid bit segment, which serves as the core data for verifying the authenticity of drugs. This step realizes the dynamicity and unpredictability of bit segment generation through the linkage control of blockchain data and physical characteristics.

[0111] The following is a specific example: After a doctor issues a prescription for antihypertensive drugs in an Internet hospital, the system alternately arranges the extended binary segment of the doctor's signature and the compressed segment of the patient's identity to generate an intermediate data block; according to the result of the modulo operation of the blockchain timestamp, intercept four consecutive bits starting from the fifth bit of the intermediate data block; generate a mask sequence based on the spectral time-domain change rate of the drug, and perform exclusive OR with the candidate bit segment to generate an activation bit segment; extract the last byte of the blockchain, perform circular shift on the activation bit segment according to the control sequence, and finally generate a valid bit segment. When the pharmacy verifies, repeat the above steps to generate a valid bit segment. After comparing it with the blockchain record and finding them consistent, the drug delivery is completed.

[0112] In summary, steps 601 to 604 deeply bind the doctor's signature, patient identity, and drug physical characteristics through four operations: alternate arrangement, dynamic interception, mask activation, and circular shift, to generate a dynamic valid bit segment. Alternate arrangement enhances data confusion, timestamp interception ensures the randomness of the bit segment, the mask mechanism driven by the spectral time-domain change rate improves the anti-counterfeiting ability, and the circular shift controlled by the blockchain realizes dynamic encryption. In practical applications, a unique valid bit segment is generated at each transfer link of the prescription data, preventing man-in-the-middle attacks, data reuse, and bit segment prediction, providing a high-strength dynamic anti-counterfeiting guarantee for the sharing of electronic prescriptions, and ensuring the trustworthiness and traceability of the entire drug circulation link.

[0113] To solve the problems of insufficient accuracy in dynamic verification of doctor signatures and low efficiency in tampering detection, this method screens for matching bit segments through dynamic masking, generates a difference map through asymmetric transformation, and combines a block height threshold to compare the verification results. In some embodiments, comparing the restored doctor signature data with the doctor signature data in the electronic prescription transfer chain in step 104 to obtain a comparison result includes: 701. Generate a dynamic comparison mask for the doctor signature data based on the timestamp of the electronic prescription transfer chain, perform a logical match between the dynamic comparison mask and the binary feature sequence of the restored doctor signature data, and screen out the matching bit segments; In step 701, the dynamic comparison mask is a binary feature sequence generated based on the timestamp of the electronic prescription transfer chain, and is used to screen out the bit segments in the doctor signature data that need to be key verified. The matching bit segments are the signature data bit segments that are screened out to be consistent with the mask sequence through logical operations.

[0114] In the embodiments of the present application, first, the timestamp of the electronic prescription transfer chain is extracted and converted into a binary mask sequence through a specific algorithm. The generation of this mask sequence takes into account time elements such as the year, month, day, hour, minute, and second of the timestamp to ensure that each generated mask is unique. Then, the restored doctor signature data is logically ANDed with this mask bit by bit, and the bit segments marked as valid by the mask are retained. For example, when a certain bit of the mask is in a specific state, the corresponding bit of the signature data is retained; otherwise, it is set to invalid. In this way, data bits that may be tampered with or interfered by noise can be filtered out, and high-confidence signature feature segments can be extracted.

[0115] 702. Align and arrange the restored doctor signature data with the matching bit segments of the doctor signature data, and perform an asymmetric bit transformation on the aligned and arranged matching bit segments to generate a difference bitmap; In step 702, alignment and arrangement is to arrange the valid bit segments of the two signature data in the same order for comparison. Asymmetric bit transformation is to perform a specific logical operation on the bit segments to highlight the difference features. The difference bitmap is a binary matrix reflecting the degree of difference between the two signature data.

[0116] In the embodiments of the present application, the restored signature data is precisely aligned with the matching bit segments of the original signature data. When aligning, factors such as the starting position, length, and order of the bit segments need to be considered. Then, an exclusive OR operation is performed on each pair of aligned bit segments to generate a preliminary difference map. To enhance the significance of the difference, an asymmetric transformation is further performed on the exclusive OR result: the difference bits of a specific pattern are amplified, while the difference bits of other patterns are suppressed. For example, consecutive multiple difference bits are given higher weights, while isolated difference bits are given lower weights. The finally generated difference bitmap can intuitively reflect the substantial difference between the two signatures.

[0117] 703. Determine the difference threshold between the restored doctor's signature data and the doctor's signature data in the electronic prescription transfer chain based on the parity of the current block height in the electronic prescription transfer chain, and compare the difference bitmap with the difference threshold to obtain a comparison result.

[0118] In step 703, the difference threshold is the upper limit of allowable differences dynamically adjusted according to the parity of the current block height of the blockchain. The comparison result is the comparison result of the number of different bits in the difference bitmap and the threshold. The parity of the block height is the least significant bit feature of the current block number of the blockchain.

[0119] In the embodiment of the present application, first, check the parity characteristic of the current block height of the electronic prescription transfer chain. If the height is odd, a relatively loose difference threshold is adopted to allow a certain degree of legal differences; if it is even, a strict difference threshold is adopted to prevent potential forgery risks. Then compare the total difference value of the difference bitmap with the set threshold: if the difference value is lower than the threshold, it is determined that the signature verification passes; otherwise, it is determined that the verification fails. This dynamic threshold mechanism not only ensures the security of the system but also avoids misjudgment caused by normal data fluctuations.

[0120] The following is a specific example: When a doctor issues an electronic prescription of "Amlodipine Besylate Tablets" for a patient, the system generates a dynamic comparison mask based on the prescription generation time, extracts the key bit fields from the restored signature data; then aligns the extracted bit fields with the original signature stored in the blockchain, generates a difference bitmap through asymmetric transformation; finally, selects the corresponding threshold according to the current block height characteristic to determine the authenticity of the signature. The entire verification process completes the prescription verification in a very short time while ensuring security.

[0121] In summary, steps 701 to 703 drive the dynamic mask through the timestamp to screen the key bit fields, improve the pertinence and anti-tampering ability of signature verification; the asymmetric bit transformation amplifies the difference characteristics and enhances the sensitivity of tampering detection; the dynamic threshold mechanism based on the parity of the block height flexibly balances security and system efficiency. In practical applications, after the doctor issues a prescription, the entire signature verification process is automatically completed, accurately identifying malicious tampering behaviors, preventing the circulation of forged prescriptions, and at the same time avoiding misjudgment caused by excessive sensitivity, providing an efficient and reliable signature anti-counterfeiting guarantee for Internet hospitals.

[0122] Figure 2 The following is a schematic structural diagram of an Internet hospital electronic prescription sharing and transfer system provided by an embodiment of the present application, as Figure 2 shown, the system includes: An acquisition module 21, which acquires doctor's signature data, drug batch information, and patient identity information on the Internet hospital platform, binds and stores the doctor's signature data, drug batch information, and patient identity information, and generates an electronic prescription transfer chain; An association module 22, which synchronously acquires the drug dissolution spectrum characteristic data of the drug delivery terminal, associates the drug dissolution spectrum characteristic data with the drug batch information, and generates a drug authenticity verification identifier; A sending module 23, which generates an encryption password according to the timestamp of the electronic prescription transfer chain, uses the encryption password to double-sign the doctor's signature data and patient identity information, generates an encrypted transmission data packet, and sends the encrypted transmission data packet to the electronic prescription receiving end; A comparison module 24, which, at the electronic prescription receiving end, reversely parses the double signature in the encrypted transmission data packet according to the timestamp of the electronic prescription transfer chain to obtain the restored doctor's signature data, and compares the restored doctor's signature data with the doctor's signature data in the electronic prescription transfer chain to obtain a comparison result; A triggering module 25, which calculates the matching degree between the drug authenticity verification identifier and the drug dissolution spectrum characteristic data, and triggers the sharing and transfer instruction of the electronic prescription transfer chain when the comparison result and the matching degree meet the preset threshold.

[0123] Figure 2 The described Internet hospital electronic prescription sharing and transfer system can execute Figure 1 The described Internet hospital electronic prescription sharing and transfer method in the illustrated embodiment, and its implementation principle and technical effects will not be elaborated further. For the Internet hospital electronic prescription sharing and transfer system in the above embodiment, the specific ways for each module and unit to execute operations have been described in detail in the embodiment related to the method, and will not be elaborated here.

[0124] In a possible design, Figure 2 The Internet hospital electronic prescription sharing and transfer system in the illustrated embodiment can be implemented as a computing device, such as Figure 3 shown, and this computing device can include a storage component 31 and a processing component 32; The storage component 31 stores one or more computer instructions, and among them, the one or more computer instructions are called and executed by the processing component 32.

[0125] The processing component 32 is used for the Figure 1 described Internet hospital electronic prescription sharing and transfer method in the above embodiment.

[0126] Among them, the processing component 32 may include one or more processors to execute computer instructions to complete all or part of the steps in the above methods. Of course, the processing component may also be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components for executing the above methods.

[0127] The storage component 31 is configured to store various types of data to support the operation of the terminal. The storage component may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0128] Of course, the computing device may also necessarily include other components, such as input / output interfaces, display components, communication components, etc.

[0129] The input / output interface provides an interface between the processing component and the peripheral interface module, and the above peripheral interface module may be an output device, an input device, etc.

[0130] The communication component is configured to facilitate communication between the computing device and other devices in a wired or wireless manner, etc.

[0131] Among them, the computing device may be a physical device or an elastic computing host provided by a cloud computing platform, etc. At this time, the computing device may refer to a cloud server, and the above processing component, storage component, etc. may be basic server resources leased or purchased from a cloud computing platform.

[0132] The embodiment of the present application also provides a computer storage medium storing a computer program, and when the computer program is executed by a computer, it can implement the above Figure 1 An Internet hospital electronic prescription sharing and circulation method shown in the embodiment.

[0133] Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0134] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative work.

[0135] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the essence of the above technical solution, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0136] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of each embodiment of the present application.

Claims

1. An electronic prescription sharing and transfer method for an Internet hospital, characterized in that, Including: Obtain doctor's signature data, drug batch information and patient identity information on the Internet hospital platform, bind and store the doctor's signature data, drug batch information and patient identity information, and generate an electronic prescription transfer chain; Synchronously obtain the drug dissolution spectral characteristic data of the drug delivery terminal, associate the drug dissolution spectral characteristic data with the drug batch information, and generate a drug authenticity verification identifier; Generate an encryption password according to the timestamp of the electronic prescription transfer chain, use the encryption password to perform double signature on the doctor's signature data and patient identity information, generate an encrypted transmission data packet, and send the encrypted transmission data packet to the electronic prescription receiving end; At the electronic prescription receiving end, reverse parse the double signature in the encrypted transmission data packet according to the timestamp of the electronic prescription transfer chain to obtain the restored doctor's signature data, and compare the restored doctor's signature data with the doctor's signature data in the electronic prescription transfer chain to obtain a comparison result; Calculate the matching degree between the drug authenticity verification identifier and the drug dissolution spectral characteristic data, and when the comparison result and the matching degree meet the preset threshold, trigger the sharing transfer instruction of the electronic prescription transfer chain.

2. The method according to claim 1, characterized in that The synchronously obtaining the drug dissolution spectral characteristic data of the drug delivery terminal, associating the drug dissolution spectral characteristic data with the drug batch information, and generating a drug authenticity verification identifier includes: Collect the drug dissolution spectral characteristic data of the drug delivery terminal, perform multi-band decomposition on the drug dissolution spectral characteristic data, and extract the target band spectral waveform associated with the drug batch information; Convert the peak distribution and attenuation characteristics of the target band spectral waveform into dynamic coding segments according to preset rules, and cross splice the dynamic coding segments to generate a dynamic identifier; Perform hash binding on the dynamic identifier and the drug batch information to obtain an initial verification identifier; Based on the current block height of the electronic prescription transfer chain and the time domain change rate of the target band spectral waveform, perform iterative correction on the initial verification identifier to generate a drug authenticity verification identifier.

3. The method according to claim 2, wherein The performing iterative correction on the initial verification identifier based on the current block height of the electronic prescription transfer chain and the time domain change rate of the target band spectral waveform to generate a drug authenticity verification identifier includes: Obtain the encryption seed value corresponding to the current block height of the electronic prescription transfer chain, calculate a dynamic correction factor in combination with the time domain change rate of the target band spectral waveform, and perform displacement transformation on the initial verification identifier based on the dynamic correction factor to generate an intermediate verification identifier; Adjust the coding length of the intermediate verification identifier according to the attenuation characteristic of the target band spectral waveform and the parity characteristic of the current block height to obtain an adjusted intermediate verification identifier; Extract the binary feature sequence of the electronic prescription transfer chain, perform bit segment matching screening on the adjusted intermediate verification identifier, and obtain a candidate identifier that matches the leading bits of the binary feature sequence; Perform secondary password binding on the candidate identification and the drug batch information, and superimpose each candidate identification whose binding result meets the preset matching condition to generate a drug authenticity verification identification.

4. The method according to claim 3, characterized in that, Extract the binary feature sequence of the electronic prescription transfer chain, and perform bit segment matching and screening on the adjusted intermediate verification identification to obtain candidate identifications that match the leading bits of the binary feature sequence, including: Extract the block feature data and the adjacent block height of the electronic prescription transfer chain, and cross-combine the block feature data and the adjacent block height to generate a binary feature sequence; Determine the leading bit length according to the parity of the current block height of the electronic prescription transfer chain, and intercept the leading bits of the continuous bit segment of the binary feature sequence according to the leading bit length; Dynamically generate a mask template based on the time-domain change rate of the target frequency band spectral waveform, and perform logical matching between the mask template and the binary feature sequence corresponding to the adjusted intermediate verification identification to screen out the activated bit segments; Combine the identifications in the adjusted intermediate verification identification that meet the condition that the activated bit segment matches the leading bit to generate candidate identifications.

5. The method according to claim 1, wherein Generate an encryption password according to the timestamp of the electronic prescription transfer chain, and use the encryption password to perform double signature on the doctor's signature data and the patient's identity information to generate an encrypted transmission data packet, including: Decompose the timestamp of the electronic prescription transfer chain into a high-order time field and a low-order time field, generate a first displacement factor based on the parity of the high-order time field, and circularly shift the binary feature sequence of the doctor's signature data by the first displacement factor to generate an extended signature segment; Generate a second displacement factor based on the difference of the low-order time field, and circularly shift the patient's identity information by the second displacement factor to generate a compressed identity segment; Match the extended signature segment and the compressed identity segment to generate an intermediate data block, and intercept the valid bit segment of the intermediate data block based on the timestamp; Determine the mask direction according to the current block height of the electronic prescription transfer chain to generate a dynamic mask, sort the dynamic mask according to the timestamp to generate an encryption password; Perform encryption processing on the valid bit segment according to the encryption password to generate encrypted transmission data.

6. The method according to claim 5, characterized in that, The step of matching the extended signature segment and the compressed identity segment to generate an intermediate data block, and intercepting the valid bit segment of the intermediate data block based on the timestamp, includes: Alternately arrange and combine the even bits of the extended signature segment and the odd bits of the compressed identity segment to generate an intermediate data block; Determine the interception start position based on the timestamp, and intercept a continuous bit segment from the binary feature sequence of the intermediate data block as a candidate valid bit segment; Calculate a dynamic mask sequence based on the time-domain change rate of the target frequency band spectral waveform, and perform bitwise activation on the dynamic mask sequence and the candidate valid bit segment to generate an activated bit segment; Extract the last byte of the electronic prescription transfer chain and convert it into a binary control sequence, and perform circular shift combination on the activated bit segment according to the bit values of the binary control sequence to generate a valid bit segment.

7. The method according to claim 1, characterized in that Comparing the restored doctor signature data with the doctor signature data in the electronic prescription transfer chain to obtain a comparison result, including: Generating a dynamic comparison mask for the doctor signature data according to the timestamp of the electronic prescription transfer chain, performing logical matching between the dynamic comparison mask and the binary feature sequence of the restored doctor signature data, and screening out the matching bit segments; Aligning and arranging the restored doctor signature data with the matching bit segments of the doctor signature data, and performing an asymmetric bit transformation on the aligned and arranged matching bit segments to generate a difference bitmap; Determining a difference threshold between the restored doctor signature data and the doctor signature data in the electronic prescription transfer chain based on the parity of the current block height in the electronic prescription transfer chain, and comparing the difference bitmap with the difference threshold to obtain a comparison result.

8. An Internet hospital electronic prescription sharing and transfer system, characterized in that Including: An acquisition module, which acquires doctor signature data, drug batch information, and patient identity information on the Internet hospital platform, binds and stores the doctor signature data, drug batch information, and patient identity information, and generates an electronic prescription transfer chain; An association module, which synchronously acquires the drug dissolution spectrum feature data of the drug delivery terminal, associates the drug dissolution spectrum feature data with the drug batch information, and generates a drug authenticity verification identifier; A sending module, which generates an encryption password according to the timestamp of the electronic prescription transfer chain, performs double signing on the doctor signature data and the patient identity information by using the encryption password, generates an encrypted transmission data packet, and sends the encrypted transmission data packet to the electronic prescription receiving end; A comparison module, at the electronic prescription receiving end, reversely parses the double signature in the encrypted transmission data packet according to the timestamp of the electronic prescription transfer chain to obtain the restored doctor signature data, and compares the restored doctor signature data with the doctor signature data in the electronic prescription transfer chain to obtain a comparison result; A trigger module, which calculates the matching degree between the drug authenticity verification identifier and the drug dissolution spectrum feature data, and triggers the sharing and transfer instruction of the electronic prescription transfer chain when the comparison result and the matching degree meet the preset threshold.

9. A computing device, characterized in that, It includes a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement an Internet hospital electronic prescription sharing and transfer method as described in any one of claims 1 to 7.

10. A computer storage medium, characterized in that, A computer program is stored, and when the computer program is executed by a computer, it implements an Internet hospital electronic prescription sharing and transfer method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Anti-fake retrospect method based on multiple spectral wavelengths

    CN107194706A

  • Shared transfer method based on electronic prescription and shared transfer platform based on electronic prescription

    CN108648789A

  • Electronic prescription circulation safety working method based on block chain account division protocol

    CN112116979A

  • Modeling method for hyperspectral medicine component analysis based on graph convolutional neural network

    CN119580862A

  • Water quality parameter online monitoring method based on deep learning and continuous spectrum

    CN119889498A