An electro-acupuncture apparatus control system for assisted reproductive therapy
Patent Information
- Application Number
- CN202610750694.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-28
- Publication Date
- 2026-08-18
AI Technical Summary
[0003]目前现有技术通常由操作者根据病历系统、纸质记录或人工通知查看患者移植日期,再在通用电针仪界面手动选择波形、频率、治疗时长和输出强度,并通过人工方式确认穴位导线连接;部分设备可以保存常用参数或用户信息,但其主要是将电刺激参数作为处方模板调用,并不根据胚胎移植事件变化自动调整治疗日期安排
1.通过事件令牌管理模块引入版本化令牌机制,将患者标识符、预定移植日期与方案标识符三元绑定生成携带有效性标志的移植事件令牌,在移植日期发生变更时自动将当前令牌置为失效并生成版本序号递增的新版令牌,通过先置失效、后写有效的原子操作顺序确保系统任意时刻仅存在唯一有效令牌版本;治疗窗口判定模块与输出准入管理模块均以令牌有效性标志为准入前提,从而保证下游模块所使用的移植日期参数始终与当前有效令牌版本绑定,而非历史缓存值,从根本上消除了因日期变更未同步导致的错误治疗窗口判定风险。
Smart Images

Figure CN122582013A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of medical device control technology, specifically a control system for an electroacupuncture device used in assisted reproductive technology. Background Technology
[0002] In assisted reproductive technology settings where multiple people share an electroacupuncture device in a reproductive center, the same device needs to serve multiple users awaiting embryo transfer. The embryo transfer date may be advanced, delayed, or canceled due to endometrial condition, embryo culture progress, or clinical scheduling. The treatment plan requires repeated execution according to fixed acupoints and fixed electrical parameters within a specific time window before the transfer date. If the device cannot simultaneously confirm the current user, the current transfer event, the current treatment window, and the current output conditions, it is easy to cause the wrong old transfer date to be used, the wrong user file to be selected, or the treatment to be started in a non-target window.
[0003] Currently, existing technologies typically require the operator to check the patient's embryo transfer date based on the medical record system, paper records, or manual notifications. Then, the operator manually selects the waveform, frequency, treatment duration, and output intensity on the interface of the general electroacupuncture device and manually confirms the connection of the acupoint wires. Some devices can save commonly used parameters or user information, but they mainly use the electrical stimulation parameters as prescription templates and do not automatically adjust the treatment date arrangement according to changes in the embryo transfer event.
[0004] However, when the embryo transfer date changes, the existing system still relies on the operator to manually recalculate the treatment window from day 5 to day 1 before the transfer, and cannot automatically rearrange the treatment window according to the updated transfer event. When multiple people share the device, the operator may use the old date, miss the new window date, or select the wrong user profile, and the device may still allow the output to start. This makes the treatment window management dependent on manual memory and manual verification, and it is difficult to ensure the consistency of the treatment execution time before the transfer date. Summary of the Invention
[0005] To address the above problems, this invention proposes an electroacupuncture device control system for assisted reproductive technology, comprising: The event token management module is used to generate migration event tokens based on user association information, migration date information, and solution association information, and to update the migration event tokens when the migration date information changes. The treatment window determination module is used to output the pre-transplantation treatment window status based on the date difference between the transplantation date in the latest valid transplantation event token and the current date, constrained by a preset window range. The protocol matching module is used to invoke the corresponding endometrial conditioning protocol based on the transplantation event token and generate protocol execution data when the pre-transplantation treatment window is established. The consistency verification module is used to determine the target channel acupoint combination based on the execution data of the scheme, match the channel wire code with the target channel acupoint combination, perform impedance pre-check on the output channel, and generate execution consistency verification results. The output admission management module is used to complete the user intensity calibration and generate the electroacupuncture device output admission command when the pre-transplant treatment window status is established and the consistency verification result meets the preset admission conditions.
[0006] As a preferred implementation, the step of generating a migration event token based on user association information, migration date information, and scheme association information includes: The patient identifier, scheduled transplant date, and protocol identifier are extracted from the user association information, transplant date information, and protocol association information, respectively. These three identifiers are concatenated in a fixed order and processed using a hash function to generate a token digest. The token digest includes a token version number, a token generation timestamp, and a token validity flag, collectively forming the transplant event token. The token version number is initially set to 1, and the token validity flag is set to valid upon generation. When the transplant date information changes, the token validity flag of the current token is set to invalid, and a new version of the transplant event token with an incrementing token version number is generated based on the updated scheduled transplant date. The token validity flag of the new version token is then set to valid. All historical version tokens and the new version token are stored together in a token storage queue, arranged in descending order of token version number, with the first token in the queue being the latest valid transplant event token.
[0007] As a preferred implementation, updating the migration event token when the migration date information changes includes: During the generation process of the new version of the migration event token, if a change is detected again in the scheduled migration date field, the last changed value will be used as the standard, the current generation process will be stopped, and the concatenation and hash operation will be re-executed with the final changed value. The token version number will be incremented by 1 again based on the already incremented version number. Historical tokens that were set to invalid before the process was stopped will not have their token validity flag restored. At any given time, the number of tokens with the valid token validity flag in the token storage queue will not exceed 1. The single validity constraint is guaranteed by the operation order of setting invalid tokens first and then writing valid tokens in the token update process.
[0008] As a preferred implementation, the step of outputting the pre-transplantation treatment window status based on the date difference between the transplantation date in the latest valid transplantation event token and the current date includes: The latest version of the transplant event token with the validity flag reads the token. The scheduled transplant date is parsed from it. The difference between the scheduled transplant date and the current system date is the date difference. The pre-transplant treatment window interval is constrained by the proximal and distal boundaries. When the date difference is not less than the proximal boundary and not greater than the distal boundary, the pre-transplant treatment window status is output as established; otherwise, it is output as not established.
[0009] As a preferred implementation, the step of invoking the corresponding endometrial conditioning protocol based on the transplantation event token and generating protocol execution data includes: The protocol identifier is parsed from the transplantation event token, and a query is initiated in the endometrial conditioning protocol database using the protocol identifier as the index key to retrieve the unique corresponding endometrial conditioning protocol record. When a unique matching record is found and all three types of fields—target channel acupoint combination, stimulation parameter set, and output channel allocation rule—are not empty, the protocol retrieval is deemed valid, and the above three types of fields are used together to form the protocol execution data and output to the consistency verification module. When the retrieval result is empty or a field is missing, a protocol matching failure status is output, subsequent module execution is blocked, and an exception record is written to the system log.
[0010] As a preferred embodiment, determining the target channel acupoint combination based on the scheme execution data includes: The target channel acupoint combination field is read from the execution data of the scheme. The target channel acupoint combination is defined as a mapping set between each output channel and its corresponding target acupoint. Each mapping entry contains two fields: channel number and target acupoint name. The channel number is a unique integer code assigned according to the hardware interface order during device initialization. The target acupoint name is a standard acupoint name string pre-stored in the endometrial conditioning scheme database. The target channel acupoint combination and each channel record in the output channel allocation rule are bound together with the channel number as the association key, so that the consistency verification module can jointly read them when performing channel-by-channel matching.
[0011] In a preferred embodiment, the step of matching the channel wire encoding with the target channel acupoint combination and performing impedance pre-check on the output channel to generate an execution consistency verification result includes: Using the channel number as an index, the applicable acupoint field contained in the channel wire code automatically read by the device hardware layer when the wire is inserted is matched precisely with the target acupoint name of the corresponding entry in the target channel acupoint combination. When all enabled channels match, the wire code matching stage is deemed qualified. A preset detection voltage is applied to each enabled channel, and the actual impedance value of each channel circuit is measured. When the measured impedance value falls within the preset impedance qualified range, the impedance pre-detection of that channel is deemed qualified; if it exceeds the range, it is deemed unqualified. The consistency verification result is generated as qualified only when all enabled channels simultaneously meet the requirements of wire code matching and impedance pre-detection. Otherwise, it is deemed unqualified.
[0012] As a preferred embodiment, the step of completing user intensity calibration and generating electroacupuncture device output access command includes: The initial output current is set with the intensity reference value in the stimulation parameter set as the starting output current. The current is gradually increased and applied to each enabled channel in a preset step size. User feedback is collected in real time through the user interface. When the user triggers a confirmation operation, the current output current value is recorded as the reference output current. When the output current reaches the preset safety limit and no confirmation is received, the calibration process is terminated and the generation of the access command is blocked. After the intensity calibration is completed, the actual output current configuration value of each enabled channel is calculated by combining the reference output current with the intensity scaling factor of each channel. The reference output current, the actual output current configuration value of each channel, and the waveform frequency, pulse width, treatment duration, and waveform mode fields in the stimulation parameter set are encapsulated together as the electroacupuncture device output access command and sent to the device output control layer for execution.
[0013] In a preferred embodiment, after generating the electroacupuncture device to output the admission command, the method further includes: During treatment execution, the system continuously monitors the real-time changes in the token validity flag and the pre-transplant treatment window status. If the token validity flag is detected to become invalid, a protocol execution data cache clearing command is sent to the protocol matching module to clear the currently cached protocol execution data and execution consistency verification results, and a transplant date change notification is pushed to the system operation interface. If the pre-transplant treatment window status is detected to become invalid, the protocol execution data cache is retained, only the execution consistency verification result is set to invalid, and a window status change notification is pushed to the system operation interface. In any of the above situations, a stop command is immediately sent to the output control layer to terminate all channel electroacupuncture outputs. Stopped treatments cannot be automatically resumed and must be restarted through a multi-condition joint admission judgment and user intensity calibration process.
[0014] As a preferred implementation, a real-time output verification submodule is also included: The system periodically samples the actual output current value of each enabled channel at preset sampling intervals, calculating the deviation between the actual output current value and the target output current configuration value. When the deviation exceeds the preset deviation tolerance upper limit, a dynamic compensation command is sent to the device hardware layer to perform step adjustment of the channel's drive voltage in a closed-loop regulation manner, causing the actual output current to converge towards the target value. If the deviation still does not converge after the number of consecutive compensations reaches the preset maximum number of compensations, the channel compensation is determined to have failed, and a stop command is sent to the output control layer to terminate the electroacupuncture output of all channels. The real-time output verification submodule also estimates the real-time impedance value of each channel based on the actual output current value and the current drive voltage value in each sampling cycle. It calculates the impedance drift based on the initial impedance value determined in the impedance pre-detection stage. When the impedance drift exceeds the preset alarm threshold, an electrode contact status alarm is pushed to the system operation interface. When the impedance drift exceeds the upper boundary of the impedance qualified range, the stop logic is directly triggered. The actual output current value, real-time impedance estimation value, deviation value, and compensation status in each sampling cycle are written into the treatment execution record in time sequence form.
[0015] Compared with the prior art, the present invention has the following advantages: 1. A versioned token mechanism is introduced through the event token management module. The patient identifier, scheduled transplant date, and protocol identifier are bound together to generate a transplant event token carrying a validity flag. When the transplant date changes, the current token is automatically invalidated and a new version token with an incrementing version number is generated. The atomic operation sequence of first invalidating and then writing valid ensures that only one valid token version exists in the system at any given time. Both the treatment window determination module and the output admission management module use the token validity flag as an admission prerequisite, thereby ensuring that the transplant date parameter used by downstream modules is always bound to the current valid token version, rather than a historical cached value. This fundamentally eliminates the risk of incorrect treatment window determination caused by unsynchronized date changes.
[0016] 2. The treatment window determination module performs interval determination on the date difference using preset proximal and distal boundaries as constraints, and outputs a valid status only when the date difference falls within the valid window interval; the output admission management module can only generate an output admission command when the treatment window status is valid before transplantation, the token validity flag is valid, and the consistency verification result is passed. If any condition is not met, the output is immediately blocked, forming a triple joint admission control of time dimension, data dimension and hardware dimension, ensuring that the correct user, correct window and correct channel are all established at the same time before the electroacupuncture output can be triggered.
[0017] 3. Before treatment initiation, the consistency verification module performs a dual joint verification of channel wire coding matching and impedance pre-detection on each enabled channel: wire coding matching precisely compares the applicable acupoint field in the channel wire coding automatically read by the device hardware layer with the target acupoint name in the protocol execution data, executing the string channel by channel; impedance pre-detection identifies short circuits, open circuits, and poor contact conditions using a preset qualified range; only when both verifications pass simultaneously can the admission process begin, achieving a complete verification of the consistency of the acupoints specified in the software protocol, the acupoints marked by the physical wires, and the actual skin contact state, eliminating acupoint output deviations from the hardware connection level. Attached Figure Description
[0018] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation on the scope of this application.
[0019] Figure 1 This is an exemplary module diagram of the electroacupuncture device control system provided in an embodiment of the present invention; Figure 2 This is a schematic diagram illustrating the effect of the electroacupuncture device control system provided in the embodiment of the present invention compared with the prior art, wherein gray bars represent the prior art and black bars represent the present invention. Detailed Implementation
[0020] To make the technical means, creative features, objectives, and effects of this invention easier to understand, the invention is further described below with reference to specific embodiments. However, the following embodiments are merely preferred embodiments of this invention and not all of them. Other embodiments obtained by those skilled in the art based on the embodiments described herein without creative effort are all within the protection scope of this invention.
[0021] Example 1: To achieve the above objectives, please refer to Figures 1 to 2 This invention provides a control system for an electroacupuncture device used in assisted reproductive technology, the system comprising: The event token management module is used to generate migration event tokens based on user association information, migration date information, and solution association information, and to update the migration event tokens when the migration date information changes. The treatment window determination module is used to output the pre-transplantation treatment window status based on the date difference between the transplantation date in the latest valid transplantation event token and the current date, constrained by a preset window range. The protocol matching module is used to invoke the corresponding endometrial conditioning protocol based on the transplantation event token and generate protocol execution data when the pre-transplantation treatment window is established. The consistency verification module is used to determine the target channel acupoint combination based on the execution data of the scheme, match the channel wire code with the target channel acupoint combination, perform impedance pre-check on the output channel, and generate execution consistency verification results. The output admission management module is used to complete the user intensity calibration and generate the electroacupuncture device output admission command when the pre-transplant treatment window status is established and the consistency verification result meets the preset admission conditions.
[0022] In this embodiment, the event token management module includes: The patient identifier, scheduled transplant date, and protocol identifier are extracted from the user association information, transplant date information, and protocol association information, respectively. These three identifiers are concatenated in a fixed order to form a token's original field sequence, which is then processed by a hash function to generate a fixed-length token digest. Specifically, let the patient identifier be... The scheduled transplant date is The scheme identifier is The field concatenation operator is If the hash function is H, then the formula for calculating the token digest T is: , Wherein, H is the SHA-256 hash function, which performs operations on the concatenated string and outputs a token digest T of fixed length 256 bits; the patient identifier is a unique string code assigned by the system when the user registers, the scheduled transplant date is recorded in year-month-day format, and the protocol identifier is a string number of the pre-stored endometrial conditioning protocol in the system; the token digest, along with the token version number and the token generation timestamp, together constitute the transplant event token; the token version number is initially 1, and the token validity flag is set to valid when generated; the token digest T, along with the token version number and the token generation timestamp, together constitute the transplant event token; Specifically, the user association information is written into the user profile database during the user registration and profile entry stage, including the patient identifier and the patient's basic profile field; the transplant date information is entered by medical personnel through the system operation interface when formulating or adjusting the transplant plan, and the system writes the entered value into the transplant plan data table in real time; the protocol association information is selected and bound to the corresponding user profile by medical personnel in the system when specifying the endometrial conditioning protocol for the patient, including the protocol identifier field; during the token generation stage, the event token management module reads the three types of information from the user profile database, the transplant plan data table, and the protocol binding record, respectively, as the input source for token generation.
[0023] Furthermore, the event token management module continuously monitors the write operations of the transplantation date information; when it detects that the value of the predetermined transplantation date field has changed relative to the value recorded by the currently valid token, it sets the token validity flag of the current token to invalid, and re-executes the above concatenation and hash operation with the updated predetermined transplantation date. The token version number is incremented by 1 based on the original version number, generating a new version of the transplantation event token and setting the token validity flag to valid. The new version token and all historical version tokens are stored together in the token storage queue, arranged in descending order of token version number. The first token in the queue is the latest valid transplantation event token, which is read and called by the treatment window determination module. In one embodiment, the maximum number of versions that the token storage queue can retain is 10.
[0024] If a change to the scheduled migration date field is detected again during the generation of the new version of the migration event token, the current generation process will be stopped based on the last changed value. The concatenation and hash operation will be re-executed based on the final changed value, and the token version number will be incremented by 1 again based on the already incremented version number. Historical tokens that were set to invalid before the process was stopped will not have their validity flag restored.
[0025] In the existing system, patient records, transplant plans, and protocol templates are stored separately as independent data entries. Changes in the transplant date only update the corresponding field in the plan data table, without triggering any parameter status failures on the device side. The electroacupuncture device still holds the old date as the basis for window determination before learning the new date, resulting in a synchronization gap between the treatment window status on the device side and the current clinical transplant plan. The proposed ternary hash token mechanism concatenates the patient identifier, the scheduled transplant date, and the protocol identifier in a fixed order to generate a token digest. Changes in any field will cause a digest mismatch, forcibly triggering token reconstruction and invalidation of the old token. This closes the path of independent changes to the three fields without triggering a chain update at the information structure level. The operation order of first invalidating and then writing valid tokens in the token update process ensures that the number of valid tokens in the token storage queue does not exceed 1 at any time, eliminating the possibility of downstream modules reading historical date values in the middle window of date change. The first valid token in the token storage queue serves as the common upstream data source for the treatment window determination module, protocol matching module, and output access management module, and is transmitted downstream.
[0026] In this embodiment, the treatment window determination module includes: The treatment window determination module uses the first element of the token storage queue as the reading object to perform token admission verification: when the token validity flag is valid, it reads the scheduled transplant date; otherwise, the module suspends and waits until the event token management module completes the writing of the new version of the token and then triggers the reading again.
[0027] When entering the suspended state, a suspension timeout timer is started synchronously, with a preset suspension timeout duration as the upper limit. If the token validity flag is not detected to become valid within the suspension timeout duration, the suspended state is automatically exited, the current window determination process is terminated, the pre-transplantation treatment window status is output as invalid, and a timeout record containing the suspension start timestamp, timeout duration, and current token version number is written to the system log. After exiting the timeout, the module must not automatically retry and must wait for an external event to trigger a re-initiation of the window determination process. The external event includes a new write operation of transplantation date information or a re-determination instruction manually triggered by the system operator through the management interface. In one embodiment, the preset suspension timeout duration is 60 seconds.
[0028] The module uses the current system date Using the read scheduled porting date as input, calculate the date difference between the two. : , in and All values are rounded to the nearest integer, in calendar days. >0 indicates that the current date is before the scheduled transplant date. =0 indicates that the current date is the scheduled transplant date. <0 indicates that the current date has exceeded the scheduled transplant date.
[0029] Furthermore, a pre-defined pre-transplant treatment window is established. With the date difference Using the aforementioned interval as a constraint, perform window state determination: , in This indicates the pre-transplant treatment window status; 1 indicates it is valid, and 0 indicates it is not. and All are non-negative integers, and the unit is calendar days. ≤ ; The proximal boundary of the treatment window indicates the number of days prior to the scheduled transplant date when intervention can be performed. The distal boundary of the treatment window represents the maximum number of days prior to the scheduled transplant date when treatment can be initiated; only when... Simultaneously satisfying not less than and not greater than When the current treatment window is determined to be within the effective treatment window, the pre-transplant treatment window status is output. The output is 1 if the value is not specified, otherwise it is 0. In one implementation, the... The value of is 0, the The value is 14.
[0030] Pre-transplant treatment window status As dual enable signals, they are transmitted to the protocol matching module and the output admission management module respectively. The protocol matching module executes protocol invocation when the treatment window status is established. The output admission management module participates in the final multi-condition joint judgment when the pre-transplant treatment window status is established as one of the admission conditions. When the pre-transplant treatment window status is not established, neither of the above two modules shall execute subsequent operations to prevent the endometrial conditioning protocol output from being triggered outside the transplant treatment window.
[0031] The existing system relies on operators to manually calculate the remaining days before transplantation based on the medical record system and manually select the treatment day. In scenarios where multiple people share the equipment, operators may use the date status of the previous patient or miss the current day window. The equipment side has no ability to detect whether the operator's calculation basis comes from the current valid transplantation plan. The treatment window determination module uses the token validity flag as a prerequisite for admission, and constrains the source of the predetermined transplantation date used for date difference calculation to the first valid token in the token storage queue, excluding the possibility of manually input values and historical cached values entering the date difference calculation. When the token validity flag is in an invalid state, the module enters a suspended state to prevent the output of an erroneous window based on historical dates during the token update process. The pre-transplantation treatment window status is transmitted downstream as a common upstream enable signal for the protocol matching module and the output admission management module.
[0032] In this embodiment, the scheme matching module includes: Upon receiving the trigger signal indicating that the pre-transplant treatment window has been established, the protocol identifier is parsed from the latest valid transplant event token. ,by A query is initiated against the system's endometrial conditioning protocol database using the index key to retrieve relevant information. A unique record of the endometrial conditioning plan; the endometrial conditioning plan database is a set of pre-stored structured plans in the system. Each plan record uses the plan identifier as the primary key and stores the acupoint combination definition, electroacupuncture stimulation parameters and output channel allocation rules corresponding to the plan.
[0033] Specifically, the pre-stored structured protocol set in the endometrial conditioning protocol database is divided into multiple protocol records according to the clinical intervention stage of endometrial conditioning. Each protocol record is indexed by a protocol identifier as the primary key. Each record contains four types of structured fields: protocol type, target acupoint combination, stimulation parameter set, and output channel allocation rules. The protocol type field identifies the corresponding clinical intervention stage of the protocol, and its values include: follicle-stimulating phase conditioning protocol, endometrial proliferative phase conditioning protocol, endometrial secretory phase conditioning protocol, and peri-implantation conditioning protocol. Different protocol types correspond to different target acupoint selection logic and stimulation parameter configurations. Taking the endometrial proliferative phase conditioning protocol as an example, the target acupoint combination includes Guanyuan, Zigung, Sanyinjiao, and Zusanli, which are mapped to their respective output channels. The frequency configuration in the stimulation parameter set is as follows: A 2Hz pulse is used to activate low-frequency sparse-dense waves to promote local blood flow. The pulse width is configured to 200µs to match the sensory threshold of the aforementioned acupoints. The treatment duration is configured to 30 minutes. In the output channel allocation rules, the channels corresponding to the four acupoints mentioned above are enabled, while the remaining channels are disabled. Each protocol record is configured and written by clinical professionals according to assisted reproductive treatment guidelines before the system leaves the factory. During system operation, the protocol database only supports authorized medical operators to perform add, delete, and modify operations through a dedicated management interface. Ordinary users and the running process of the device do not have write permissions to ensure the clinical consistency and security of the protocol data. The protocol identifier is automatically generated by the system when the protocol is created. The format is a combination string of type prefix plus serial number. It is unique and cannot be repeated in the database to ensure that the results are unique and locatable when the protocol matching module performs a search using the protocol identifier as the index key.
[0034] Furthermore, the three types of fields—target channel acupoint combination, stimulation parameter set, and output channel allocation rule—are read sequentially from the scheme record P to form the scheme execution data; The target channel acupoint combination is defined as a mapping set between each output channel and its corresponding target acupoint, expressed as follows: , Let i be the output channel number. is the name of the target acupoint corresponding to this channel, and n is the total number of output channels used in this scheme.
[0035] The set of stimulation parameters is a group of structured fields in the protocol record P that describe the characteristics of the electroacupuncture output waveform, represented as follows: , The output waveform frequency, in Hz, defines the number of pulses output by the electroacupuncture device to the target acupoint per unit time. The pulse width is measured in microseconds (µs), and the duration of each pulse is defined. The product of the pulse width and the frequency determines the total charge per unit time. The duration of a single treatment session, in minutes, is defined as the length of time from when the output admission command takes effect until the treatment automatically terminates. The waveform mode includes continuous wave, sparse wave, dense wave, and sparse-dense wave, with continuous wave having a fixed frequency. The continuous pulse output consists of a sparse wave output for the low-frequency band and a dense wave output for the high-frequency band. The sparse and dense waves are output alternately for the low-frequency and high-frequency bands according to a preset alternation period. In one embodiment, the preset alternation period is 3 seconds. This is the initial reference value for strength, in mA, defining the initial reference level of the output current during the user strength calibration phase.
[0036] The output channel allocation rules are structured field groups in the scheme record P that describe the activation status and parameter configuration of each physical output channel. All physical output channels of the electroacupuncture device have corresponding records in the output channel allocation rules. Each record is uniquely identified by a channel number, which is assigned by the system according to the channel hardware interface order during device initialization. Each channel record contains three subfields: activation status field, polarity configuration field, and intensity scaling factor field. The activation status field is set to either enabled or disabled, indicating whether the channel is activated for this treatment output. The polarity configuration field is set to... The system includes positive, negative, and bipolar electrodes, defining the current direction of the channel wire on the connected acupoint pair to control the current polarity relationship of the acupoint pair. The intensity scaling factor field takes the value of a decimal greater than 0 and not exceeding 1. It defines the output ratio of the channel relative to the reference output current of this treatment, allowing different acupoint channels in the same scheme to configure different relative output intensities to meet the clinical needs of different acupoint pairs with different sensory thresholds within the same scheme. In one embodiment, the default value of the intensity scaling factor field is one, that is, each channel outputs the reference intensity proportionally by default.
[0037] After the search, the validity of the search results is verified. Specifically, if a unique matching record is found in the endometrial conditioning solution database using the solution identifier as the index key, and the three fields of target channel acupoint combination, stimulation parameter set, and output channel allocation rule in the record are not empty, the solution search is deemed valid, and solution execution data is generated. If the search result is empty or a field is missing, the solution matching module outputs a solution matching failure status, blocks the execution of the subsequent consistency verification module, and writes an exception record containing the solution identifier and the reason for failure to the system log.
[0038] In one implementation, taking an endometrial proliferative phase conditioning regimen as an example, after the regimen matching module retrieves the endometrial conditioning regimen database using the regimen identifier as the index key, the specific content of the regimen execution count returned is as follows: The target acupoint combination contains four channel mapping entries: channel 1 corresponds to the acupoint Guanyuan, channel 2 corresponds to the acupoint Zigong, channel 3 corresponds to the acupoint Sanyinjiao, and channel 4 corresponds to the acupoint Zusanli. The positive terminal of each channel wire is connected to the needle handle, and the negative terminal is connected to the needle tail, with fixed polarity. The values of each field in the stimulation parameter set are as follows: the output waveform frequency is 2Hz, using a low-frequency continuous wave to promote local blood perfusion; the single pulse width is 200us; the duration of a single treatment is 30min; the waveform mode is a sparse-dense wave, with an alternation period of 3s between the low-frequency and high-frequency segments; and the initial reference value of the intensity is 0.1mA. The output channel allocation rules are recorded as follows: Channel 1 is enabled, polarity is configured as bipolar, and intensity scaling factor is 1; Channel 2 is enabled, polarity is configured as bipolar, and intensity scaling factor is 0.8 to adapt to the low sensory threshold of the uterine acupoint; Channel 3 is enabled, polarity is configured as bipolar, and intensity scaling factor is 1; Channel 4 is enabled, polarity is configured as bipolar, and intensity scaling factor is 1; Channels 5 to 8 are all disabled and do not participate in this treatment output.
[0039] The existing system provides prescription templates for operators to manually select and call. There is no binding relationship between the plan and the user's transplantation event. Operators can call any template for any user, and the correctness of the plan selection depends on manual verification by the operator. The plan matching module initiates an endometrial conditioning plan database query using the plan identifier in the transplantation event token as the unique index key. The plan calling path is determined by the token binding relationship, eliminating the systematic path of operators manually calling incorrect templates across users. Three types of field non-empty checks are forcibly performed before the plan execution data is output to ensure that the plan execution data fields entering the consistency check module are complete, preventing the subsequent channel matching from being executed with incomplete parameters due to missing fields. The transmission of plan execution data to the consistency check module is based on the premise that the target channel acupoint combination, stimulation parameter set, and output channel allocation rule are all non-empty, forming an explicit output closure.
[0040] In this embodiment, the consistency verification module includes: The system receives the protocol execution data output from the protocol matching module, parses all channel mapping entries from the target channel acupoint combination, and obtains the target acupoint names corresponding to each activated channel in this treatment. Each channel mapping entry contains two fields: channel number and target acupoint name. The channel number is a unique integer code assigned according to the hardware interface order during device initialization, and the target acupoint name is a standard acupoint name string pre-stored in the protocol record.
[0041] For each enabled channel, channel wire code matching verification is performed. Specifically, when a wire is inserted into the device interface, the device hardware layer automatically reads the channel wire code pre-stored on the wire plug for each physical output channel. The channel wire code is a unique string identifier written to the wire at the factory, which includes the applicable acupoint field marked on the wire. The channel wire code is written by the production system to the storage chip embedded in the wire plug during the wire production stage. The storage chip is a read-only storage unit integrated into the wire plug structure, which supports the device hardware layer to read it through the data contacts on the plug interface using a serial communication protocol. The field format of the channel wire code is a combination of a type prefix, a standard string of acupoint name, and a serial number. The standard string of acupoint name is adopted from the system's endometrial conditioning scheme database. The pre-stored standard acupoint name string serves as the unique matching benchmark, ensuring that the applicable acupoint field in the guide wire code and the target acupoint name field in the scheme record have a unified encoding source when performing exact string matching. The module uses the channel number as an index to perform exact string matching between the applicable acupoint field parsed from the channel guide wire code reported by the device hardware layer and the target acupoint name of the corresponding entry in the target channel acupoint combination. When the two are completely consistent, the channel guide wire code matching is judged as passing. When there is any inconsistency between the two, the channel guide wire code matching is judged as failing, and an exception record containing the channel number, expected acupoint name, and actual read acupoint name is written to the system log. When the guide wire code matching results of all enabled channels are passing, the overall guide wire code matching stage is judged as qualified.
[0042] Impedance pre-check is performed on each activated channel. Specifically, the impedance pre-check involves applying a preset detection voltage to each activated channel before the formal treatment output, measuring the actual impedance value of the channel circuit, and using the upper and lower boundaries of the preset impedance qualified range as the judgment boundaries to perform an admission judgment on the measured impedance value. The preset detection voltage is a low-intensity safety detection voltage preset by the system; applying this voltage will not trigger effective nerve stimulation. In one embodiment, the preset detection voltage is 1V. The lower boundary of the impedance qualified range is used to identify channel short circuits or wire damage, and the upper boundary is used to identify… In case of channel open circuit, wire detachment, or poor skin contact; when the measured impedance value is not lower than the lower boundary and not higher than the upper boundary, the impedance pre-test of the channel is deemed qualified; when the measured impedance value exceeds the above range, the impedance pre-test of the channel is deemed unqualified, and an abnormal record containing the channel number and the measured impedance value is written to the system log; when the impedance pre-test results of all enabled channels are qualified, the impedance pre-test stage is deemed qualified overall; in one embodiment, the lower boundary of the qualified impedance range is 500Ω, and the upper boundary of the qualified impedance range is 5000Ω.
[0043] The consistency verification result is generated by combining the results of conductor coding matching and impedance pre-detection. The consistency verification result is determined to be passed if and only if all enabled channels simultaneously meet both the conditions of conductor coding matching and impedance pre-detection. If any enabled channel fails to meet either condition, the consistency verification result is determined to be failed.
[0044] By combining wire coding matching and impedance pre-detection, a complete verification of the consistency between the acupoints specified in the software solution, the acupoints marked by the physical wires, and the actual skin contact state is achieved, preventing the electroacupuncture output from acting on non-target acupoints due to incorrect wire connection or poor acupoint contact.
[0045] Existing electroacupuncture devices' impedance detection can only identify open and short circuit states in the channel circuit, and cannot identify errors such as wires being connected but inserted into the wrong channel. There is a consistency gap between the target acupoints specified in the software solution and the actual physically connected acupoints, which is not covered by impedance detection. The channel wire coding matching uses the acupoint name string as part of the wire's physical identifier, transforming the acupoint name information, which could only be checked by the operator's naked eye, into a structured field that can be automatically read by the device hardware layer when the wire is inserted and accurately compared with the solution execution data, thus making up for the blind spot of impedance detection in identifying errors such as incorrect channel insertion. Wire coding matching and impedance pre-detection respectively cover two independent failure modes: incorrect channel insertion and poor contact. Both must pass simultaneously to generate an execution consistency verification result as passed, realizing a complete automatic verification of the consistency of the acupoints in the software solution, the acupoints marked by the physical wires, and the actual skin contact state. The execution consistency verification result is transmitted to the output access management module.
[0046] In this embodiment, the output admission management module includes: The module receives the pre-transplant treatment window status output from the treatment window determination module, the token validity flag from the first element of the token storage queue from the event token management module, and the execution consistency verification result output from the consistency verification module. Using these three status values as input, the module performs a multi-condition joint admission determination. The module enters the user intensity calibration process only when the pre-transplant treatment window status is established, the token validity flag is valid, and the execution consistency verification result is passed. If any condition is not met, the module immediately blocks all subsequent operations, does not generate an electroacupuncture device output admission command, and writes a blocking record containing the current status value of each condition and the blocking timestamp to the system log.
[0047] After the three conditions are jointly determined, the user intensity calibration process is executed. Specifically, the intensity calibration process starts with the initial reference value of the intensity in the stimulation parameter set as the starting output current, and gradually applies an increasing current to the activated channel according to a preset step size. At the same time, the user's sensory feedback is collected in real time through the user interface. When the user confirms through the interface that they feel a clear but painless needle sensation, the module records the current output current value as the reference output current. When the user does not confirm the needle sensation at the current step level, the module continues to increase the output current by a preset step size and repeatedly collects user feedback until the user confirms the needle sensation or the output current reaches the preset safety limit. When the output current reaches the preset safety limit but the user still does not confirm, the module terminates the intensity calibration process, blocks the generation of the admission command, and writes an anomaly record containing the user identifier and the actual output current limit value to the system log. In one embodiment, the preset step size is 0.1mA, and the preset safety limit is 10mA.
[0048] Specifically, the user interface is either a physical control panel integrated into the electroacupuncture device or a mobile terminal application interface connected to the device. Both maintain a real-time data channel with the device's main control module via wired or wireless communication protocols. After the intensity calibration process is initiated, the interface automatically enters the calibration acquisition state, displaying the current output channel number, current output current value, and step progress in real time, and visually prompting the user to feel the current stimulation intensity. User feedback is collected through two types of interactive operations: first, a confirmation operation, where the user, upon experiencing a noticeable but painless needle sensation, triggers a confirmation signal by pressing the confirmation button on the physical panel or clicking the confirmation control on the mobile terminal application interface. The confirmation signal is then reported to the output access management module in real time via the communication channel. Upon receiving the confirmation signal, the module records the current output current value as the baseline output current and exits the calibration acquisition state; second, a stop operation, where the user, at any step level, experiences... When discomfort or pain occurs, a stop signal is triggered by pressing the stop button on the physical panel or clicking the stop control on the mobile terminal application interface. The stop signal is reported to the output access management module in real time via the communication channel. Upon receiving the stop signal, the module immediately sets the current output current of the current channel to zero, terminates the intensity calibration process, blocks the generation of access commands, and writes a stop record containing the user identifier, stop timestamp, and output current value at the time of stop to the system log. To prevent the device from maintaining current output for a long time due to no operation during the calibration process, a timeout timer is started after current is applied at each step level, with a preset single-step timeout duration as the upper limit. If no confirmation signal or stop signal is received within the timeout duration, the module automatically sets the current output current of the current channel to zero, terminates the calibration process, blocks the generation of access commands, and writes a timeout record containing the channel number and output current value at the timeout duration to the system log. In one embodiment, the single-step timeout duration is 30 seconds.
[0049] Furthermore, after the intensity calibration process is completed, using the determined reference output current as a reference and combining the intensity scaling factor of each channel in the output channel allocation rules, the actual output current configuration value of each enabled channel is calculated. The reference output current, the actual output current configuration value of each channel, and the waveform frequency, pulse width, treatment duration, and waveform mode fields in the stimulation parameter set are encapsulated together into an electroacupuncture device output access command, which is sent to the device output control layer for execution. The electroacupuncture device output access command is a structured binary data packet organized according to a preset field order, which sequentially includes a command header, a token version number field, a channel quantity field, a parameter block for each channel, and a command check code field. The command header is a fixed-length protocol identifier byte sequence used by the device output control layer to identify the command type; the token version number field records the valid token version number corresponding to this treatment, which is used for post-treatment traceability; and the channel quantity field records the output channels enabled in this treatment. The total number; each channel parameter block is identified by the channel number, and sequentially records the actual output current configuration value, polarity configuration, activation status, waveform frequency, pulse width, treatment duration, and waveform mode fields of that channel; the instruction check code field is the check value obtained by performing cyclic redundancy check on all the above fields. After receiving the instruction, the device output control layer first verifies the check code. Only after the verification is successful can the output configuration in each channel parameter block be parsed and executed. If the verification fails, the instruction is discarded and an error record containing the instruction reception timestamp and the abnormal value of the check code is written to the system log; the output admission instruction is issued to the device output control layer by the output admission management module via the device internal bus. The device internal bus uses a serial peripheral interface protocol for transmission; after receiving the admission instruction, the output control layer starts the electroacupuncture output of each enabled channel according to the actual output current configuration value and waveform parameters of each channel in the instruction, and automatically terminates the output of all channels after the treatment duration is reached.
[0050] During treatment, the token validity flag and the pre-transplant treatment window status are continuously monitored for real-time changes. If the token validity flag becomes invalid or the pre-transplant treatment window status becomes invalid during treatment, a stop command is immediately sent to the output control layer to terminate the electroacupuncture output of all channels and write a stop record containing the stop reason, stop timestamp and treatment duration to the system log.
[0051] After issuing a stop command to the output control layer, the output access management module performs differentiated chain response processing based on the stop reason. When the stop reason is that the token validity flag becomes invalid, the module determines that the current transplant date information has changed and issues a protocol execution data cache clearing command to the protocol matching module. After receiving the clearing command, the protocol matching module invalidates the currently cached protocol execution data, which cannot be reused in subsequent restart processes. At the same time, it issues a verification result clearing command to the consistency verification module. The consistency verification module invalidates the currently executed consistency verification result and requires that the wire coding matching and impedance pre-check be re-executed in the restart process. After the above two clearing operations are completed, the output access management module pushes a transplant date change prompt to the system operation interface. The prompt includes the original scheduled transplant date, the change trigger timestamp, and the current token version number, prompting medical operators to confirm the new transplant plan and re-initiate the access process.
[0052] When the reason for the suspension is that the pre-transplant treatment window status becomes invalid, the module determines that the current date has exceeded or has not yet entered a valid treatment window, and issues a protocol execution data cache retention instruction to the protocol matching module. The protocol execution data cache remains valid, and there is no need to re-execute the protocol retrieval when the treatment window is re-established; however, the consistency check result is still set to invalid, requiring the impedance pre-check to be re-executed in the restart process to verify whether the lead wire contact status has changed during the treatment suspension; the output admission management module also pushes a window status change prompt to the system operation interface, and the prompt content includes the current date difference calculation value, the window interval boundary value and the timestamp of the status becoming invalid.
[0053] By employing differentiated chain responses to two types of termination reasons—token expiration and window expiration—the system automatically manages the validity of cached data in downstream modules after treatment is terminated. This prevents expired plans from being executed during the restart process due to inconsistencies between cached data and the current transplant plan status. Simultaneously, the system uses an interface push mechanism to transmit the termination reason and current status value to medical operators in real time, forming a two-tiered treatment path of automatic device response and manual confirmation intervention. This ensures that each treatment restart is executed based on the latest transplant plan status confirmed by a human.
[0054] The output initiation condition of the existing system is usually a single confirmation operation by the operator, without imposing system-level constraints on the time validity of the current transplantation event and the consistency of hardware connection. The output initiation cannot be automatically blocked if any precondition is missing. The multi-condition joint admission mechanism applies admission constraints in three orthogonal directions: time dimension, data dimension and hardware dimension. The three conditions are independent and cannot be substituted for each other. If any condition is not met, the generation of the electroacupuncture device output admission command will be blocked independently. The user intensity calibration process is constrained by the dual boundary constraints of the preset safety upper limit and single-step timeout. The reference output current is actively confirmed by the user under real-time stimulation rather than determined by the system's preset fixed value. Individual sensory threshold differences are incorporated into the actual output current configuration. The electroacupuncture device output admission command is sent to the device output control layer with the premise that all three conditions are met and the intensity calibration is completed, forming an explicit output closure.
[0055] like Figure 2 A schematic diagram of the effect of an electroacupuncture device control system for assisted reproductive technology is shown. The horizontal axis lists key performance indicators, and the vertical axis represents exemplified performance scores, ranging from 0 to 100%. The higher the value, the better the performance. The purpose is to intuitively demonstrate the expected improvement of the present invention in key capabilities compared to typical prior art.
[0056] Example 2: In Embodiment 1 of the present invention, the system performs wire coding matching and impedance pre-check on each enabled channel in the consistency verification module. The above verification is performed once before the treatment is started. After the verification is passed, the acupuncture device outputs an access command.
[0057] However, the contact state between the skin and the electrodes during treatment is affected by factors such as changes in the patient's position, sweat secretion, or loose wires. The actual output current of each channel may deviate during treatment, resulting in the actual current value acting on the acupoint being inconsistent with the target current value configured in the treatment plan data. The existing system lacks the ability to continuously verify the actual output state during treatment and cannot detect and correct deviations in a timely manner. The conditions for the simultaneous establishment of correct channels and stable currents cannot be guaranteed throughout the entire treatment process.
[0058] To address the aforementioned shortcomings, this embodiment adds a real-time output verification submodule to the output access management module based on embodiment 1, and introduces a closed-loop control mechanism based on actual output current sampling and dynamic compensation during treatment execution.
[0059] In this embodiment, the real-time output verification submodule is activated immediately after the electroacupuncture device outputs the access command. It periodically samples the actual output current value of each enabled channel through the current sampling circuit in the device hardware layer, with a preset sampling period as the interval. The current sampling circuit consists of a precision sampling resistor and an analog-to-digital converter connected in series in each output channel loop. The voltage across the sampling resistor is converted into a digital current value by the analog-to-digital converter and then reported to the real-time output verification submodule. The sampling period is a preset system parameter that defines the time interval between two adjacent sampling operations, in milliseconds (ms). In one embodiment, the sampling period is 100 ms.
[0060] The real-time output verification submodule uses the target output current configuration value of each enabled channel as a benchmark to perform deviation calculation on the actual output current value obtained from each sampling; let the target output current configuration value of the i-th enabled channel be... The actual output current value obtained from this sampling is The output deviation of this channel in this sampling is... for: , With preset deviation tolerance upper limit To determine the boundary, for Perform real-time output consistency determination: when the deviation is less than or equal to the upper limit of the tolerance, the current sampling of this channel is determined to be consistent; when it is greater than the upper limit of the tolerance, the current sampling of this channel is determined to be out of tolerance. In one embodiment, the upper limit of the tolerance... The value is 0.2mA.
[0061] When a deviation exceeds the limit in an enabled channel, the real-time output verification submodule first sends a dynamic compensation command to the device hardware layer. This command performs a step-by-step adjustment of the channel's drive voltage using a closed-loop regulation method, causing the actual output current to converge towards the target value. The adjustment step size for dynamic compensation is a preset parameter, and after each adjustment, a sampling cycle is waited for resampling and verification. Let the actual output current of the channel after the k-th compensation be... The conditions for termination of compensation are If the termination condition is not met after the number of consecutive compensations reaches the preset maximum number of compensations, the channel compensation is determined to have failed. In one embodiment, the adjustment step size is 0.05mA and the maximum number of compensations is 5 times.
[0062] A comprehensive judgment is performed on the dynamic compensation results of each channel to generate a real-time output consistency status, including: consistent, deviation compensation in progress, and compensation failure. The status is determined when all enabled channels meet the criteria. ≤ When the channel deviation exceeds the limit and the compensation process has not yet reached the preset maximum number of compensations, the real-time output consistency status is set to "deviation compensation in progress," the treatment output continues to execute, and the compensation process proceeds synchronously. When any channel compensation fails, the real-time output consistency status is set to "compensation failure," the output access management module immediately issues a stop command to the output control layer, terminates all channel electroacupuncture outputs, and writes a compensation failure record containing the channel number, target current value, last actual sampled current value, number of compensations, and stop timestamp to the system log. The stopped treatment cannot be automatically resumed and must be restarted through a multi-condition joint access judgment and user intensity calibration process.
[0063] Real-time impedance estimation is performed synchronously on each enabled channel during each sampling period, using the actual output current value obtained from this sampling. With the current drive voltage value As input, calculate the real-time impedance estimate of this channel using the following formula. : , Using the initial impedance value determined by the consistency verification module during the impedance pre-detection phase before treatment initiation as a benchmark, the real-time impedance drift is calculated by subtracting the initial impedance value from the real-time impedance estimate. A preset impedance drift alarm threshold is used as the judgment boundary. When the real-time impedance drift exceeds the threshold, it is determined that the electrode contact condition of the channel is deteriorating. An alarm message containing the channel number, initial impedance value, current real-time impedance estimate, and drift is pushed to the system operation interface, prompting medical personnel to check the electrode attachment status of the corresponding channel. When the real-time impedance drift exceeds the upper boundary of the impedance qualification range, a termination logic at the compensation failure level is directly triggered, without waiting for the dynamic compensation process. In one embodiment, the real-time impedance drift is set to 1000Ω.
[0064] The actual output current value, real-time impedance estimate, deviation value, compensation status, and sampling timestamp of each channel in each sampling period are written into the real-time sampling data field corresponding to the current treatment record in the treatment execution record data table and stored in time series format. Authorized medical operators can query the real-time output sampling data of the entire treatment process through the system management interface using the treatment record identifier as an index, forming an auditable record of the output status covering the entire treatment process.
[0065] The embodiments of the present invention described above are subject to modification and change of method by those skilled in the art without departing from the embodiments and broader aspects of the present invention. The appended claims are intended to include all such modifications and changes of method that do not depart from the present invention.
Claims
1. An electro-acupuncture apparatus control system for assisted reproductive therapy, characterized in that, include: The event token management module is used to generate migration event tokens based on user association information, migration date information, and solution association information, and to update the migration event tokens when the migration date information changes. The treatment window determination module is used to output the pre-transplantation treatment window status based on the date difference between the transplantation date in the latest valid transplantation event token and the current date, constrained by a preset window range. The protocol matching module is used to invoke the corresponding endometrial conditioning protocol based on the transplantation event token and generate protocol execution data when the pre-transplantation treatment window is established. The consistency verification module is used to determine the target channel acupoint combination based on the execution data of the scheme, match the channel wire code with the target channel acupoint combination, perform impedance pre-check on the output channel, and generate execution consistency verification results. The output admission management module is used to complete the user intensity calibration and generate the electroacupuncture device output admission command when the pre-transplant treatment window status is established and the consistency verification result meets the preset admission conditions.
2. The electroacupuncture device control system according to claim 1, characterized in that, The step of generating a migration event token based on user association information, migration date information, and scheme association information includes: The patient identifier, scheduled transplant date, and protocol identifier are extracted from the user association information, transplant date information, and protocol association information, respectively. These three identifiers are concatenated in a fixed order and processed using a hash function to generate a token digest. The token digest includes a token version number, a token generation timestamp, and a token validity flag, collectively forming the transplant event token. The token version number is initially set to 1, and the token validity flag is set to valid upon generation. When the transplant date information changes, the token validity flag of the current token is set to invalid, and a new version of the transplant event token with an incrementing token version number is generated based on the updated scheduled transplant date. The token validity flag of the new version token is then set to valid. All historical version tokens and the new version token are stored together in a token storage queue, arranged in descending order of token version number, with the first token in the queue being the latest valid transplant event token.
3. The electroacupuncture device control system according to claim 1, characterized in that, The step of updating the migration event token when the migration date information changes includes: During the generation process of the new version of the migration event token, if a change is detected again in the scheduled migration date field, the last changed value will be used as the standard, the current generation process will be stopped, and the concatenation and hash operation will be re-executed with the final changed value. The token version number will be incremented by 1 again based on the already incremented version number. Historical tokens that were set to invalid before the process was stopped will not have their token validity flag restored. At any given time, the number of tokens with the valid token validity flag in the token storage queue will not exceed 1. The single validity constraint is guaranteed by the operation order of setting invalid tokens first and then writing valid tokens in the token update process.
4. The electroacupuncture device control system according to claim 1, characterized in that, The pre-transplantation treatment window status is output based on the date difference between the transplantation date in the latest valid transplantation event token and the current date, including: The latest version of the transplant event token with the validity flag reads the token. The scheduled transplant date is parsed from it. The difference between the scheduled transplant date and the current system date is the date difference. The pre-transplant treatment window interval is constrained by the proximal and distal boundaries. When the date difference is not less than the proximal boundary and not greater than the distal boundary, the pre-transplant treatment window status is output as established; otherwise, it is output as not established.
5. The electroacupuncture device control system according to claim 1, characterized in that, The process of invoking the corresponding endometrial conditioning plan based on the transplantation event token and generating plan execution data includes: The protocol identifier is parsed from the transplantation event token, and a query is initiated in the endometrial conditioning protocol database using the protocol identifier as the index key to retrieve the unique corresponding endometrial conditioning protocol record. When a unique matching record is found and all three types of fields—target channel acupoint combination, stimulation parameter set, and output channel allocation rule—are not empty, the protocol retrieval is deemed valid, and the above three types of fields are used together to form the protocol execution data and output to the consistency verification module. When the retrieval result is empty or a field is missing, a protocol matching failure status is output, subsequent module execution is blocked, and an exception record is written to the system log.
6. The electroacupuncture device control system according to claim 1, characterized in that, The determination of the target channel acupoint combination based on the scheme execution data includes: The target channel acupoint combination field is read from the execution data of the scheme. The target channel acupoint combination is defined as a mapping set between each output channel and its corresponding target acupoint. Each mapping entry contains two fields: channel number and target acupoint name. The channel number is a unique integer code assigned according to the hardware interface order during device initialization. The target acupoint name is a standard acupoint name string pre-stored in the endometrial conditioning scheme database. The target channel acupoint combination and each channel record in the output channel allocation rule are bound together with the channel number as the association key, so that the consistency verification module can jointly read them when performing channel-by-channel matching.
7. The electroacupuncture device control system according to claim 1, characterized in that, The process of matching the channel wire encoding with the target channel acupoint combination and performing impedance pre-check on the output channel to generate an execution consistency verification result includes: Using the channel number as an index, the applicable acupoint field contained in the channel wire code automatically read by the device hardware layer when the wire is inserted is matched precisely with the target acupoint name of the corresponding entry in the target channel acupoint combination. When all enabled channels match, the wire code matching stage is deemed qualified. A preset detection voltage is applied to each enabled channel, and the actual impedance value of each channel circuit is measured. When the measured impedance value falls within the preset impedance qualified range, the impedance pre-detection of that channel is deemed qualified; if it exceeds the range, it is deemed unqualified. The consistency verification result is generated as qualified only when all enabled channels simultaneously meet the requirements of wire code matching and impedance pre-detection. Otherwise, it is deemed unqualified.
8. The electroacupuncture device control system according to claim 1, characterized in that, The process of completing user intensity calibration and generating electroacupuncture device output access instructions includes: The initial output current is set with the intensity reference value in the stimulation parameter set as the starting output current. The current is gradually increased and applied to each enabled channel in a preset step size. User feedback is collected in real time through the user interface. When the user triggers a confirmation operation, the current output current value is recorded as the reference output current. When the output current reaches the preset safety limit and no confirmation is received, the calibration process is terminated and the generation of the access command is blocked. After the intensity calibration is completed, the actual output current configuration value of each enabled channel is calculated by combining the reference output current with the intensity scaling factor of each channel. The reference output current, the actual output current configuration value of each channel, and the waveform frequency, pulse width, treatment duration, and waveform mode fields in the stimulation parameter set are encapsulated together as the electroacupuncture device output access command and sent to the device output control layer for execution.
9. The electroacupuncture device control system according to claim 1, characterized in that, After generating the electroacupuncture device outputs the admission command, the method further includes: During treatment execution, the system continuously monitors the real-time changes in the token validity flag and the pre-transplant treatment window status. If the token validity flag is detected to become invalid, a protocol execution data cache clearing command is sent to the protocol matching module to clear the currently cached protocol execution data and execution consistency verification results, and a transplant date change notification is pushed to the system operation interface. If the pre-transplant treatment window status is detected to become invalid, the protocol execution data cache is retained, only the execution consistency verification result is set to invalid, and a window status change notification is pushed to the system operation interface. In any of the above situations, a stop command is immediately sent to the output control layer to terminate all channel electroacupuncture outputs. Stopped treatments cannot be automatically resumed and must be restarted through a multi-condition joint admission judgment and user intensity calibration process.
10. The electroacupuncture device control system according to claim 1, characterized in that, It also includes a real-time output verification submodule: The actual output current value of each enabled channel is periodically sampled at a preset sampling period, and the deviation between the actual output current value and the target output current configuration value is calculated. When the deviation exceeds the preset deviation tolerance limit, a dynamic compensation command is sent to the device hardware layer to perform step adjustment of the channel drive voltage in a closed-loop regulation manner, so that the actual output current converges to the target value. If the deviation still fails to converge after the number of consecutive compensations reaches the preset maximum number of compensations, the compensation of that channel is determined to have failed, and a stop command is sent to the output control layer to terminate the output of all channels. The real-time output verification submodule also estimates the real-time impedance value of each channel based on the actual output current value and the current driving voltage value in each sampling cycle. It calculates the impedance drift based on the initial impedance value determined in the impedance pre-detection stage. When the impedance drift exceeds the preset alarm threshold, it pushes an electrode contact status alarm to the system operation interface. When the impedance drift exceeds the upper boundary of the impedance qualified range, it directly triggers the termination logic. The actual output current value, real-time impedance estimation value, deviation value and compensation status in each sampling cycle are written into the treatment execution record in time series form.