An examination appointment time matching method based on Bluetooth beacon positioning and HIS diagnosis and treatment linkage
Patent Information
- Application Number
- CN202611136584.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-29
- Publication Date
- 2026-10-30
AI Technical Summary
[0003]传统蓝牙定位信标虽部署广泛但精度受多径效应与环境衰减影响仅1—10米且易波动,未与医技预约时段动态绑定,导致导航与检查排队割裂,其次多数医院导航系统独立于HIS之外形成信息孤岛,患者挂号检查数据无法触发自动导航与时段压缩,需人工查询排队,不符合智慧医院评审数据互通要求,再次现有预约排号多采用固定15—30分钟粒度且静态不变,未利用实时行进速度动态收紧,造成资源闲置或患者堆积
[0014](1)本发明通过引入实时驱动系数与科室闲忙将预约从粗放15—30分压缩至≤5分,结合全院云资源池多目标优化打破科室壁垒,显著提升CT/MRI等设备利用率并削峰填谷,双模地理围栏签到利用GPS粗粒度与蓝牙细粒度防作弊,辅以五层事务校验保障号源不泄漏,从根本上抑制爽约与代签,整体闭环使医院门诊接待能力扩容,降低导诊人力降,同时规则引擎独立解耦与无感化自动预约模式降低系统耦合与人工干预,患者无需主动发起预约动作即可完成资源锁定与通知接收,极大优化就诊前流程。
Smart Images

Figure CN123017393A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of examination appointment technology, and more specifically, to a method for matching examination appointment times based on Bluetooth beacon positioning and HIS (Hospital Information System) diagnosis and treatment linkage. Background Technology
[0002] Medical technology departments in medical institutions refer to those departments that utilize specialized diagnostic and treatment technologies and equipment to collaborate with clinical departments in diagnosing and treating diseases; they are an important component of hospitals. In recent years, the National Health Commission has continuously promoted the rapid and healthy development of appointment-based medical services, and appointment registration services have achieved good results, reducing patients' queuing time for registration. Medical technology appointments are one of the key services within appointment-based medical services, playing a crucial role in the entire medical service system. They can effectively shorten patients' unnecessary waiting time, reduce patient costs, shorten hospital stays, and improve patient satisfaction. Simultaneously, they help improve the operational capacity and level of medical technology departments.
[0003] While traditional Bluetooth positioning beacons are widely deployed, their accuracy is limited to only 1-10 meters due to multipath effects and environmental attenuation, and is prone to fluctuation. They are not dynamically linked to medical appointment time slots, resulting in a disconnect between navigation and examination queuing. Secondly, most hospital navigation systems are independent of the HIS, forming information silos. Patient registration and examination data cannot trigger automatic navigation and time slot compression, requiring manual queuing, which does not meet the data interoperability requirements of smart hospital review. Thirdly, existing appointment queuing systems mostly use a fixed 15-30 minute granularity and remain static, without utilizing real-time travel speed for dynamic tightening, resulting in idle resources or patient backlog. Summary of the Invention
[0004] To address the problems existing in the prior art, the purpose of this invention is to provide a method for matching examination appointment times based on Bluetooth beacon positioning and HIS (Hospital Information System) diagnosis and treatment linkage. In addition to achieving examination appointment time matching, this invention can also accurately match the appointment time with the actual arrival time and dynamically optimize the patient's movement path.
[0005] To solve the above problems, the present invention adopts the following technical solution:
[0006] A method for matching examination appointment times based on Bluetooth beacon positioning and HIS (Hospital Information System) diagnosis and treatment linkage includes:
[0007] S1. Appointment Queueing: Valid medical technology examination requests are pushed from HIS to the medical technology appointment system in real time. The system uses a rule engine with an independent and decoupled architecture to convert patient characteristic attributes into rule attributes for matching and classification. It is divided into automated and non-automated queues according to path tags. Automated path payment results in order splitting. The system merges and calculates to generate an appointment queue. Based on the hospital-wide resource pool, a multi-objective optimization algorithm is used to build a cloud resource pool for equipment. Orders are intelligently interlocked and appointments are made. Time slots are refined to 15 minutes and combined with Bluetooth beacon dynamic tracking to compress them to within 5 minutes. Conflicts are filtered to match the optimal resources. Records containing schedulingId and patientAdviceId are generated and pushed to the manual pool without being noticed. Failures are transferred to the manual pool.
[0008] S2. Beacon Deployment and Positioning: IP68 corrosion-resistant beacons are deployed on the indoor ceiling, and outdoor ground-mounted pressure-resistant beacons are equipped with built-in batteries for extended operation. The combination of inertial navigation and geomagnetic engine achieves an indoor accuracy of ≤3 meters and an initial positioning time of ≤2 seconds.
[0009] S3, Dynamic compression of time periods: Coordinates are obtained through electronic medical cards and beacons. The time period is compressed to ≤5 minutes according to the distance-speed formula. Real-time driving coefficients and the department's busyness level are introduced to fine-tune the upper limit. After conflict detection with existing records in the call queue, a conflict-free gap is inserted to push the closed loop.
[0010] S4. Geofence Check-in: The backend hot-updates the 500-meter fence of the hospital area. The mini-program calculates the GPS within ≤500 meters to enable check-in. At the same time, the Bluetooth beacon calculates the coordinates and generates a signature based on the hospital area outline. Only dual-mode compliance is triggered to prevent cheating. The coarse-grained GPS entry and fine-grained Bluetooth signature prevent proxy check-in.
[0011] S5, five-layer check-in verification: sequentially performs document validity, appointment legality including face / fingerprint cross-checking and Bluetooth failure downgrade to pure GPS, time threshold, duplicate, and concurrent lock verification, and encapsulates single-transaction atomic rollback;
[0012] S6 and HIS linkage closed loop: The interface server synchronously sends queuing and calling numbers to WeChat, pushes triage navigation and estimated waiting time, and accurately matches the arrival timestamp output to close the loop.
[0013] Compared with the prior art, the advantages of this invention are:
[0014] (1) This invention reduces the appointment time from 15-30 minutes to ≤5 minutes by introducing real-time driving coefficients and departmental busy / idle schedules. Combined with multi-objective optimization of the hospital's cloud resource pool, it breaks down departmental barriers, significantly improves the utilization rate of equipment such as CT / MRI, and smooths out peaks and valleys. Dual-mode geofence check-in uses GPS coarse-grained and Bluetooth fine-grained anti-cheating measures, and is supplemented by five-layer transaction verification to ensure that appointment resources are not leaked. This fundamentally suppresses no-shows and proxy check-ins. The overall closed loop expands the hospital's outpatient reception capacity and reduces the manpower required for patient guidance. At the same time, the independent decoupling of the rule engine and the non-intrusive automatic appointment mode reduce system coupling and manual intervention. Patients can complete resource locking and notification reception without actively initiating an appointment, which greatly optimizes the pre-visit process.
[0015] (2) This invention uses indoor and outdoor beacon fusion positioning ≤3 meters and 2 seconds initial positioning so that patients do not need to ask for directions. The node-type closed-loop push of the next path and active navigation reduce getting lost. The expected waiting formula and reminder constraints actively prevent missing the number. The special blacklist and cross-verification protect privacy. The disinfection area IP68 and the floor-mounted pressure-resistant beacon adapt to the complex environment of the hospital. This solution forms a patient-centered spatial digital service, improves satisfaction, and generates medical trajectory data to support the optimization of hospital resources, providing a model for smart medical infrastructure. In addition, the cross-system seamless fusion combines the HIS queue length with WeChat location service, so patients do not need to manually refresh to receive dynamic route adjustments. The intelligent guidance linkage only activates high-priority guidance when the waiting sequence is close, avoiding repeated navigation interference. Attached Figure Description
[0016] Figure 1 This is a flowchart illustrating the steps of a method for matching examination appointment times based on Bluetooth beacon positioning and HIS (Hospital Information System) diagnosis and treatment linkage according to the present invention.
[0017] Figure 2 This is a flowchart of step S1 in the present invention, which is a method for matching examination appointment time based on Bluetooth beacon positioning and HIS diagnosis and treatment linkage. Detailed Implementation
[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0019] Example:
[0020] Please see Figure 1-2 A method for matching examination appointment times based on Bluetooth beacon positioning and HIS (Hospital Information System) diagnosis and treatment linkage, comprising:
[0021] S1. Appointment Queueing: Valid medical technology examination requests are pushed from HIS to the medical technology appointment system in real time. The system uses a rule engine with an independent and decoupled architecture to convert patient characteristic attributes into rule attributes for matching and classification. It is divided into automated and non-automated queues according to path tags. Automated path payment results in order splitting. The system merges and calculates to generate an appointment queue. Based on the hospital-wide resource pool, a multi-objective optimization algorithm is used to build a cloud resource pool for equipment. Orders are intelligently interlocked and appointments are made. Time slots are refined to 15 minutes and combined with Bluetooth beacon dynamic tracking to compress them to within 5 minutes. Conflicts are filtered to match the optimal resources. Records containing schedulingId and patientAdviceId are generated and pushed to the manual pool without being noticed. Failures are transferred to the manual pool.
[0022] S2. Beacon Deployment and Positioning: IP68 corrosion-resistant beacons are deployed on the indoor ceiling at 8-10 meter intervals, and outdoor ground-mounted pressure-resistant beacons are spaced 7-8 meters apart and can withstand ≥6 tons of crushing pressure. The built-in 4000mAh battery provides a 7-year battery life; the integration of inertial navigation and geomagnetic engine achieves indoor accuracy ≤3 meters and initial positioning ≤2 seconds.
[0023] S3, Dynamic compression of time periods: Coordinates are obtained through electronic medical cards and beacons. The time period is compressed to ≤5 minutes according to the distance-speed formula. Real-time driving coefficients and the department's busyness level are introduced to fine-tune the upper limit. After conflict detection with existing records in the call queue, a conflict-free gap is inserted to push the closed loop.
[0024] S4. Geofence Check-in: The backend hot-updates the 500-meter fence of the hospital area. The mini-program calculates the GPS within ≤500 meters to enable check-in. At the same time, the Bluetooth beacon calculates the coordinates and generates a signature based on the hospital area outline. Only dual-mode compliance is triggered to prevent cheating. The coarse-grained GPS entry and fine-grained Bluetooth signature prevent proxy check-in.
[0025] S5, five-layer check-in verification: sequentially performs document validity, appointment legality including face / fingerprint cross-checking and Bluetooth failure downgrade to pure GPS, time threshold, duplicate, and concurrent lock verification, and encapsulates single-transaction atomic rollback;
[0026] S6 and HIS linkage closed loop: The interface server synchronously sends queuing and calling numbers to WeChat, pushes triage navigation and estimated waiting time, and accurately matches the arrival timestamp output to close the loop.
[0027] In a specific embodiment of the present invention, after the doctor issues an examination request form and the patient pays, the valid request form is pushed from the HIS to the medical technology appointment system in real time. The system automatically queues and locks appointment slots through an intelligent rule algorithm platform. At the same time, a Bluetooth beacon network is deployed within the hospital area to achieve high-precision indoor positioning by integrating inertial navigation and geomagnetic positioning engine. As the patient moves, the system dynamically updates the distance and speed and compresses the appointment time to within 5 minutes. When discharged patients re-enter the hospital, they trigger check-in through GPS fence and Bluetooth beacon-assisted verification via WeChat mini-program. After five layers of verification, the information is written into the waiting queue. The HIS interface synchronously pushes information, navigation, and reminders to form a closed loop. This solves the problem of long queues caused by the extensive appointment time and lack of indoor navigation in large hospitals. Through deep linkage between Bluetooth beacons and HIS, the appointment time is accurately matched with the actual arrival time, which significantly reduces the patient's waiting time and improves the utilization rate of hospital resources. Moreover, the dual-mode check-in anti-cheating and five-layer atomic verification ensure the robustness of the system.
[0028] Specifically, step S1 includes:
[0029] Application form acquisition and push: Outpatient / inpatient doctors' workstations issue examination application forms. After the patient pays, valid medical technology examination application forms are pushed from the hospital information system (HIS) to the medical technology appointment system in real time.
[0030] Path grouping and rule decoupling: The system automatically ranks patients through an intelligent rule algorithm platform, and the background timed task scans the preset rule library. The platform adopts an independent and decoupled rule engine architecture. It converts patient characteristic attributes into rule attributes and matches the target appointment category through a preset rule set, reducing system coupling. The system assigns the items in the application form to two queues, automated appointment service path and non-automated appointment path, according to the item appointment service path tag. Items in the automated path automatically enter the order processing stage at the payment node.
[0031] Merged Calculation: Based on the preset strategy and examination item merging rules, merge examinations are calculated for items in the generated patient appointment service path, and an appointment application queue is generated for the merged examination result tags;
[0032] Optimal resource matching and centralized scheduling: Based on preset strategies and project resource matching rules, the system retrieves the resource schedules corresponding to the examination type, equipment, examination time period, application time, and patient source of each project in each queue. The retrieval is based on centralized scheduling of the hospital-wide resource pool, breaking down departmental barriers. A multi-objective optimization algorithm is used to construct a cloud resource pool for equipment. The system triggers intelligent interlocking appointments as soon as an order is placed, and the time granularity is refined to 15 minutes or even smaller units. Combined with dynamic tracking of movement speed using Bluetooth beacons, the time granularity can be further compressed to within 5 minutes. This verifies time conflicts between patient examination projects, filters conflicting scheduling resources, and matches the optimal scheduling resources for the appointment application queue.
[0033] Record generation and seamless notification: Generate appointment records containing schedulingId and patientAdviceId, lock appointment slots, and adopt a seamless and automated appointment mode. After the doctor issues the order and the payment is made, the system automatically locks resources, allocates time slots, and pushes notifications. Patients do not need to actively initiate an appointment action. The system sends SMS / WeChat notifications containing check-in QR codes and navigation links to patients.
[0034] Failure Transfer: If the verification fails or the non-automated path is not confirmed, the application will be transferred to the manual reservation pool, and the manual reservation privileges will be retained.
[0035] In a specific embodiment of the present invention, the rule engine independent decoupling architecture includes:
[0036] Decoupling rule definition and structured storage: The business logic of converting patient feature attributes into rule attributes and matching target appointment categories is separated from the main code of the medical technology appointment system. Rules are defined in declarative domain-specific language (DSL) or JSON format and persisted in an independent rule repository. The rule repository adopts structured storage, including a rule base table, a rule condition table, and a rule result table, or a unified rule set table to store rule codes, execution modes, and rule content, so that the rule ontology and business process definition are completely decoupled. Rule entries are described in the form of conditional actions. The conditions cover project appointment service path tags and patient feature attributes, and the actions are to allocate the application form to the automated or non-automated appointment service path queue.
[0037] Rule loading and compilation parsing: The rule loader is set to pull rule definitions from the rule repository. The rule compiler constructs the DSL text into an abstract syntax tree (AST) or dynamically compiles it into memory bytecode through lexical and syntactic analysis to improve execution efficiency. The inference engine uses the Rete algorithm to compile the rules into a directed discriminative network composed of Alpha nodes and Beta nodes. Incremental pattern matching is performed when facts are inserted into the working memory to avoid full rule traversal.
[0038] Fact Input and Engine Execution: When the background scheduled task scans the preset rule base, the medical technology appointment system constructs a strongly typed fact object (Fact) containing the patient's feature attribute (FeatureAttr) and inputs it into the engine's working memory. The executor then converts the rules according to the preset attributes. Calculate and generate the rule attribute RuleAttr and match it with the target appointment category to output the path grouping label; among them, the automated appointment service path item is automatically triggered into the order processing stage at the payment node by the rule action;
[0039] System interaction and hot update mechanism: Business systems obtain decision results by calling the evaluate interface through the rule engine API or embedded SDK, and achieve seamless interaction with HIS to push application forms and payment status. After the rule is corrected, hot update is achieved through Redis cache clearing or version release management. The new rule takes effect in real time without restarting the service, ensuring agile iteration of configuration across multiple hospital campuses.
[0040] The multi-objective optimization algorithm used in optimal resource matching and centralized scheduling to construct the device cloud resource pool includes the following objective function, constraints, and specific solution algorithm:
[0041] Objective function: Defined as simultaneously minimizing the total length of stay of patients in the hospital. Maximize the priority weight of key inspection items Maximize the utilization rate of the hospital's cloud resource pool for all equipment. To promote precision medicine, reduce costs and increase efficiency, and minimize the losses from traveling between different hospital campuses. To avoid patients traveling between different hospital areas on the same day;
[0042] Constraints include medical logic constraints, spatiotemporal physical constraints, real-time queue numbers in each examination department, estimated processing speed, appointment slots, mutual exclusion and dependency principles of projects, hospital priority and special patient type restrictions, and the boundary of fine-grained scheduling compressed to 15 minutes or even smaller units.
[0043] Solution Algorithm and Strategy: A hybrid optimization model combining Discrete Event Simulation (DES) and heuristic rule-based algorithms is adopted. The heuristic search uses a genetic algorithm or a variant of tabu search to efficiently search the solution space and approach the global optimum. Relying on the core rule engine, pre-defined business restriction rules and appointment knowledge base, five principles are used to filter conflicting scheduling resources. When an outpatient order is issued, intelligent interlocking appointments are triggered. Combining patient medical history, contraindications, and real-time equipment load, the optimal examination path is planned in seconds. A dynamic rescheduling mechanism is set up to monitor the actual state and immediately recalculate the remaining tasks when the actual state deviates from the prediction or an emergency task is inserted to ensure that the solution remains in the optimal or suboptimal state.
[0044] The default rule base has the following limiting characteristics:
[0045] Appointment pool load threshold: Maximum daily scheduling of clinics ≤ 20 cases;
[0046] Project mutual exclusion and conflict: such as prohibiting other contrast agent examinations within a limited time after enhanced CT;
[0047] Individual patient restrictions: Automatic appointments are blocked based on electronic medical record marking;
[0048] Resource matching and sorting: If there is no inspection order requirement, sort according to the queue generation time; if there is an order requirement, sort according to the combination of project inspection order and time.
[0049] The automated appointment process is executed without intervention after payment, which aligns with the seamless and automated appointment model; the non-automated process requires confirmation from medical staff or patients, otherwise no final schedule will be generated.
[0050] The notification should include a check-in QR code and a navigation link to achieve seamless credential generation.
[0051] Online check-in and number retrieval can only be triggered if mobile phone location services are enabled within the specified geographical area.
[0052] If a patient repeatedly misses an appointment, a blacklist restriction function can be configured.
[0053] Step S1, the medical appointment algorithm formula, includes:
[0054] Path grouping formula The check item i is determined to enter the automated or non-automated queue based on the open reservation service path tag. The tag is a boolean value with no unit.
[0055] Merge queue generation formula ,in To group queues by inspection type, To implement the preset merging rules, output a labeled appointment application queue Q, containing queue entries for each unit, without units.
[0056] Optimal Time Matching Formula ,in Indicates the start time of the scheduling resource r. To filter out the effective set of scheduling resources after time conflicts, The start time of the optimal matching time period, in minutes.
[0057] Rule Engine Attribute Conversion Formula FeatureAttr represents the patient's characteristic attribute. This is an attribute transformation rule that generates rule attributes for matching appointment categories; it has no unit.
[0058] Specifically, step S2 includes:
[0059] Indoor beacon planning and installation: Bluetooth beacons are deployed at 8-10 meter intervals on the ceiling of the indoor corridors of the hospital, with the installation height maintained at 2.5-3 meters. IP68 protection level beacons are selected for disinfection areas and areas prone to liquid splashes, and corrosion-resistant shells are used. They are linked to hospital infection control and support BeaconSET on-site parameter configuration and remote status monitoring. The corridors adopt a zigzag or single-row staggered layout to ensure that any location point is covered by at least 3-4 beacon signals at the same time.
[0060] Outdoor road beacon installation: Ground-mounted pressure-resistant beacons are used on outdoor roads in the hospital area, installed at intervals of 7-8 meters. The beacons have IP68 / IK10 protection and can withstand the pressure of ≥6 tons of vehicles. They are equipped with a built-in 4000mAh lithium-ion battery, which has a 7-year battery life under default broadcast mode and can withstand 6 tons of pressure. They can be directly attached to parking spaces or road surfaces without wiring. The outdoor area signal has independent coverage and does not rely on the penetration of upper beacons.
[0061] Signal acquisition and preliminary calculation: The personnel terminal passively scans the beacon broadcast packet, extracts the UUID / Major / Minor and real-time RSSI values, and calculates the initial plane coordinates based on the calibration parameters through distance conversion and trilateration algorithm;
[0062] Multi-source fusion positioning: The coordinates are input into the fusion inertial navigation and geomagnetic positioning engine, and the building magnetic field prior map and terminal IMU data are called to perform fusion calculation, so that the indoor positioning accuracy is ≤3 meters and the initial positioning time is ≤2 seconds. The initial positioning of 2 seconds is achieved by preloading the 3D map of the hospital area and the geomagnetic fingerprint database and triggering it with non-sensory Bluetooth scanning. General iterative deduction is eliminated, and only the structural features of the coordinates directly output by the fusion engine are retained.
[0063] In specific embodiments of the present invention, the precautions for deployment and operation include:
[0064] The beacon broadcast notification interval is configured to be 100-350ms, and the transmit power is calibrated to RSSI of -81dBm or the nearest value at 1 meter.
[0065] Avoid placing beacons close to metal objects, elevator shafts, or large equipment. The distance between beacons on both sides of a lightweight wall should not be less than 8 meters to prevent signal oversaturation.
[0066] Outdoor ground-mounted beacons must use pressure-resistant road studs, be waterproof, dustproof, maintenance-free, and have a battery life of ≥7 years; a remote alarm will be triggered when the battery level is below 15%;
[0067] The Bluetooth beacon ranging and positioning algorithm formulas include:
[0068] Logarithmic distance path loss ranging formula ,in The calibration signal strength of the beacon at 1 meter is in dBm; RSSI is the real-time signal strength received by the terminal in dBm; n is the environmental attenuation coefficient, dimensionless, 2-2.5 in open areas and 3-4 in complex areas; d is the distance from the terminal to the beacon in meters.
[0069] Trilateral Measurement Geometric Constraint Formulas , ,in Given the physical coordinates of the i-th beacon, in meters. y is the shortest distance in meters, and (x, y) are the coordinates of the terminal to be determined in meters.
[0070] Specifically, step S3 includes:
[0071] Real-time location acquisition: While the patient is moving around the hospital area, the real-time coordinates of the patient's terminal are continuously acquired through the electronic medical card and Bluetooth beacon navigation system. Fixed coordinates with the examination room ;
[0072] Indicator Update: The distance and speed of the patient from the target examination room are updated periodically according to the exclusive distance and speed formula;
[0073] Time slot compression and rearrangement: Using big data algorithms, the original 15-30 minute time slots allocated by the reservation system are dynamically rearranged into precise check time slots of ≤5 minutes in length, and the reservation record corresponding to the schedulingId is written back. A real-time driving coefficient is introduced in this process. , The initial distance value is dimensionless and serves as a time conversion and safety margin factor. The adaptive feedback input, the closer the patient gets to the examination room but Reduce Further tightening, and taking into account the busyness level of each department. Where h is the average consultation time per patient. The number of patients in the department at time t is the number of patients at the most recent rest time. Both are dimensionless or in minutes and are subject to dynamic fine-tuning. Limits should be set to avoid overloading departments.
[0074] Conflict-free integration: The compressed time slot is checked for conflicts with the existing appointment records of other patients in the call queue. The time slice overlap is verified based on the resource scheduling table. If a time or resource conflict is detected, the compressed time slot is inserted into an adjacent empty slot or shifted to a conflict-free gap according to the department's busyness level and preset priority. The conflict rule algorithm or dynamic programming algorithm is called to traverse and solve for the optimal insertion position to ensure that the time slot written back to schedulingId has no resource or time conflict with the existing appointment.
[0075] Queue synchronization and closed loop: The compressed time slot is pushed to the waiting queue and the calling system, while update prompts and navigation routes are sent to the patient's mini-program. The target path is planned in real time and the estimated check-in time is calculated based on the location information obtained from the wireless communication network. The queuing comprehensive score is mapped to the dynamic sequence list to assist the calling, forming a closed loop of location speed compression and calling.
[0076] In a specific embodiment of the present invention, the formula for the medical appointment time slot compression algorithm includes:
[0077] Real-time distance calculation formula ,in , Here are the patient's beacon location coordinates at time t, in meters (m). , The coordinates of the inspection room are in meters (m). The distance between the patient and the examination room is expressed in meters (m).
[0078] Formula for calculating travel speed ,in The distance m from the previous sampling period. The sampling interval is for location, in seconds (s). The average speed at which the patient moves toward the examination room, in m / s;
[0079] Dynamic compression time period calculation formula ,in The base time conversion and safety margin coefficient are dimensionless. For the estimated arrival time, The preparation time is fixed in minutes (min). The modulating factor for the department's workload level is defined as follows: k is a preset weight used to dynamically fine-tune the upper limit. The length of the compressed inspection period, in minutes (min), with a mandatory upper limit of ≤5min and a lower limit of 1min.
[0080] Specifically, step S4 includes:
[0081] Fence parameter backend configuration and dynamic remote fence: The hospital backend management system pre-sets the latitude and longitude markers of the hospital center and the fence radius of 500 meters, and sends them to the WeChat mini program. The hospital latitude and longitude markers and radius are updated by the backend to adapt to multiple hospital areas or temporary screening areas.
[0082] GPS geofence determination: When a patient is discharged after being admitted to the hospital, the WeChat mini program calls wx.getLocation to obtain the terminal's GPS coordinates, calculates the distance between the terminal and the ground surface of the hospital center according to the Haversine formula, and renders and opens the check-in button if it is ≤500 meters away; otherwise, it is automatically hidden.
[0083] Bluetooth broadcast acquisition: Patients turn on their mobile phones via Bluetooth and passively scan the broadcast packets broadcast from the hospital ceiling and outdoor ground beacons to extract UUID / Major / Minor and real-time RSSI values;
[0084] Network-side calculation and verification: The mini-program uploads beacon data to the positioning server via the gateway. The server calculates the indoor coordinates of the terminal based on the RSSI ranging formula and the three-sided positioning of at least three beacons, verifies that the coordinates fall within the polygonal outline of the building in the hospital area, and generates a location authenticity endorsement.
[0085] Dual-mode conditional check-in and dual-mode redundancy to prevent cheating: Check-in is triggered and written to the waiting queue and a navigation link is pushed only when the GPS geofence distance meets the standard and the Bluetooth calculated coordinates pass the contour verification. The GPS geofence is responsible for coarse-grained opening of the check-in entrance, while the Bluetooth network side calculation is responsible for fine-grained verification of the authenticity of the indoor location, thus curbing the use of simulated location for proxy check-in.
[0086] In a specific embodiment of the present invention, the hospital backend pre-sets the latitude and longitude of the hospital center and a 500-meter fence radius, and distributes them to a mini-program, supporting hot updates to adapt to multiple hospital areas. When a discharged patient is readmitted, the mini-program calls wx.getLocation or GPS coordinates to calculate the distance from the hospital center to the ground surface using the Haversine formula. If the distance is ≤500 meters, the check-in button is enabled but hidden if it exceeds the boundary. The patient passively scans the hospital's outdoor beacons via Bluetooth to extract the identifier and RSSI. The data is transmitted to the positioning server via the gateway. The indoor coordinates are calculated based on RSSI distance measurement and at least three beacons for trilateration. The system verifies the location by verifying the location against the hospital's building outline polygon. The check-in queue is triggered only when the GPS fence meets the criteria and the Bluetooth coordinates pass through the outline. The system features coarse-grained GPS entry and fine-grained Bluetooth verification, dual-mode redundancy to prevent cheating, dynamic remote fence for flexible adaptation to temporary screening, dual-mode verification to curb simulated positioning and ensure check-in authenticity, and beacon-assisted verification to seamlessly connect with preceding positioning features and provide a fallback pure GPS mode for continued availability in case of failure. This greatly improves check-in security and system robustness.
[0087] Specifically, the geofencing and Bluetooth verification algorithm formula in step S4 includes:
[0088] Geographic fence distance calculation formula ,in , , , The latitude and longitude of the hospital center. , The coordinates are: latitude and longitude of the terminal, R is the Earth's radius of 6,371,000 meters, and D is the distance from the terminal to the ground center of the campus, in meters.
[0089] Bluetooth beacon ranging formula ,in The signal strength at 1 meter from the i-th beacon is calibrated, in dBm. The signal strength of the beacon received by the terminal is in real time, expressed in dBm. n is the environmental attenuation factor, which is dimensionless. The distance from the terminal to the beacon is in meters.
[0090] Auxiliary verification constraint formula ,in The server calculates the indoor coordinates; Polygon (Hospital) is the coordinate set of polygons representing the building outlines within the hospital grounds. The value is the average distance measured by multiple beacons, in meters. Δ is the tolerance threshold of 20 meters, in meters. This formula is specifically used to determine whether the Bluetooth-calculated location matches the GPS fence, thus excluding single-mode drift.
[0091] In a specific embodiment of the present invention, the mini-program must obtain scope.userLocation authorization; if authorization is denied, the GPS geofencing determination step cannot be executed.
[0092] The deployment of beacons within the facility must ensure that any location point is covered by at least three beacons simultaneously to meet the minimum condition for trilateration.
[0093] The beacon broadcast interval is configured to be 100-350ms, and the transmission power is calibrated to an RSSI deviation of ≤5dBm at 1 meter.
[0094] When GPS signal is weak, Bluetooth coordinates can be used to calculate the virtual fence distance, but this requires full beacon coverage and ≤500 meters + Δ;
[0095] In case of failure: If Bluetooth verification times out or beacon is lost, pause check-in and revert to pure GPS fence mode, while pushing a manual verification request to the triage desk.
[0096] Specifically, step S5 includes:
[0097] Document validity verification: Receive the check-in request submitted by WeChat Mini Program, parse the electronic medical card number and schedulingId, call the HIS interface to verify that the status of the associated examination application form is paid and not cancelled and that the patient is not on the department's blacklist; otherwise, intercept and return an error code.
[0098] Appointment legality verification: Retrieve appointment records corresponding to schedulingId from the medical technology appointment system, verify that the appointment status is pending check-in and the scheduled time slot has not expired and can be cancelled, and at the same time extract the terminal identification code and match it with the verification identification code of the mobile communication terminal with check-in permission pre-stored on the verification server. If they do not match, they are blocked. The legality layer integrates face image or fingerprint perception and cross-verifies with location and time factors, but only retains the structure designed specifically for medical scenarios and does not introduce a general model. Bluetooth is enabled to obtain beacon broadcasts and the positioning server calculates the coordinates to assist in verifying the real presence of the terminal identification code, and connects to step S4 beacon positioning;
[0099] Check-in time threshold verification: Read the start time of the scheduled time period. With end time Determine the current time satisfy ,in It can be configured so that if you don't arrive 30 minutes before the scheduled time, you can check in, but if you do, you will be prohibited from doing so. The party that the applicant failed to show up was ruled to have done so, and the available slots were released back into the pool.
[0100] Duplicate sign-in check: Query whether a sign-in entity with the same schedulingId already exists in the waiting queue. If it does, reject the duplicate write and indicate that the sign-in has already occurred.
[0101] Concurrency safety verification: A distributed lock is acquired at the schedulingId level to prevent concurrent requests from modifying the same appointment record at the same time. If all verifications pass, the record is written to the waiting queue, the calling function is triggered, and a navigation link is sent.
[0102] Five-layer atomic constraint: The above five layers of verification are encapsulated into a single transaction. If any layer returns false, the transaction is immediately rolled back to ensure the consistency of the data source.
[0103] In a specific embodiment of the present invention, the downgraded processing for users refusing to enable Bluetooth or Bluetooth location failure in the reservation validity verification step is limited as follows:
[0104] Main verification link: retrieve the appointment record corresponding to the schedulingId from the medical technology appointment system, verify that the appointment status is pending check-in and the scheduled time slot has not expired and can be cancelled; extract the terminal identification code and match it with the verification identification code of the mobile communication terminal with check-in permission pre-stored on the verification server. If they do not match, they are blocked. Integrate face image or fingerprint perception at the legality layer and cross-verify with location and time factors, but only retain the structure designed specifically for medical scenarios and do not introduce general models.
[0105] Bluetooth Assisted Attempt: Attempt to enable Bluetooth to obtain beacon broadcasts so that the positioning server can calculate the coordinates, assist in verifying the actual presence of the terminal's identification code, and connect to step S4 beacon positioning;
[0106] Downgrade branch: If the user refuses to enable Bluetooth permission, or the Bluetooth scan times out, or the location server fails to calculate the coordinates, the system will automatically skip the above Bluetooth coordinate auxiliary verification sub-step, not treat this situation as an interception condition, and directly downgrade to the pure GPS geofence verification mode and continue to complete the terminal identification code matching and biometric cross-verification.
[0107] Interception Decision: The check-in request will only be blocked if the terminal identification code does not match, the face / fingerprint perception verification fails, or the GPS geofence distance is greater than 500 meters. This downgrade mechanism ensures that verification can be implemented in normal scenarios without Bluetooth, eliminating the feasibility defects of the original solution.
[0108] When a downgraded branch is triggered, the system simultaneously pushes a manual verification request to the triage desk and, according to the failure fallback rule in step S4, reverts to the pure GPS fence mode to ensure that the check-in process is not interrupted.
[0109] For a document to be valid, the following conditions must be met in advance: the patient is not restricted by the department's blacklist, and the application form is a valid document pushed to the medical technology appointment system;
[0110] The terminal identification code verification in the reservation validity process can be combined with the geographical location range association to verify the association between the pre-stored verification identification code on the server and the time range and geographical location range, and determine whether the current geographical location is within the allowed range;
[0111] Three types of handling are applied to failed check-in time threshold verification: advance prohibition, on-time release, and no-show due to exceeding the time limit; accumulated no-shows can be added to a restricted list, and the blacklist unit is used to restrict patients who frequently no-show;
[0112] To prevent the reuse of QR code photos, dynamic refresh credentials can be superimposed. The server generates a QR code containing timestamp and nonce, with a refresh cycle of 1-2 seconds and a verification window slightly longer than the cycle.
[0113] Specifically, the appointment check-in verification algorithm formula used in step S5 includes:
[0114] Time-compliant Boolean function formula ,in This is the server timestamp, in seconds (s). , The absolute start and end times of the reservation period, in seconds (s). The threshold for early check-in is 1800 seconds. This is the time verification result, a dimensionless Boolean value.
[0115] Existence quantifier formula for repeated sign-in ,in The current appointment record is identified by a dimensionless variable, Queue is the set of waiting queues, and Exist is a boolean value indicating whether a check-in was repeated.
[0116] Concurrent lock acquisition formula TTL is the lock's lifespan in seconds (s). Only when the lock is successfully acquired and a true response is returned can the database be written to.
[0117] In a specific embodiment of the present invention, the face image perception in the multi-factor cross-validation enhancement adopts a face recognition-based anti-fraud registration structure to obtain the identity of the person registering for registration from the front face image, and determines the legitimacy based on the social relationship graph or the same person judgment, providing medical scenario-specific cross-validation for the check-in terminal identification code, without introducing a general biometric model.
[0118] Specifically, step S6 includes:
[0119] Interface information synchronization and seamless cross-system integration: The triage and HIS interface server synchronizes registration, queuing and calling status information with the hospital's HIS and provides it to the WeChat server for use, realizing the seamless integration of examination application, appointment, calling and status writing. The HIS interface server integrates the queue length with the WeChat backend location service, so patients can receive dynamic route adjustments and recalculation of estimated waiting time without manually refreshing.
[0120] Triage guidance push and intelligent examination guidance linkage: The system pushes triage guidance information and one-click navigation links to WeChat, binding the patient's target department location with the HIS treatment process, and the physical examination / examination status is synchronized bidirectionally to WeChat. The system automatically filters out duplicate navigation requests, only allowing duplicate requests when... For waiting and Approaching High-priority guidance is activated at the appropriate time;
[0121] Arrival Trigger Service: When a patient arrives at the target building in the hospital area, the system will automatically push navigation to the target department and the estimated waiting time based on the real-time queue number in the HIS system.
[0122] Calling time alert: Based on the queue progress, the estimated call time is calculated, and the system will proactively remind you when your number is about to be called and guide you to the optimal route to prevent you from missing your number;
[0123] Matching closed-loop formation and node-based closed-loop push: Compare the appointment time slot generated by the compressed claim with the actual arrival time stamp, output accurate matching results, cover the entire process of ordering, payment, calling numbers, and execution, automatically trigger the next step of where to go route navigation and waiting prediction, forming a closed loop between appointment time and actual arrival.
[0124] In a specific embodiment of the present invention, a mapping table must be established using the unified patient master index EMPI (ID card / medical card number) as the unique ID to avoid multiple files for one person;
[0125] The system interfaces adopt the RESTfulAPI / HL7 / FHIR standard to ensure bidirectional synchronization of inspection status to prevent duplicate invoices. The inspection status includes inspected / not inspected / abandoned items.
[0126] An automatic reminder mechanism for patients who fail to show up or have abnormal conditions must be maintained to ensure a closed-loop examination process.
[0127] Navigation links must be strictly linked to HIS department codes and a unified data dictionary to ensure unambiguous triage guidance;
[0128] Abnormal fallback rearrangement: If \DeltaT exceeds the threshold and is judged as inaccurate, the number source is automatically extended and W is recalculated according to formula (1), and a manual verification request is pushed to the triage desk.
[0129] Specifically, the formulas designed for medical queue navigation in step S6 include:
[0130] Formula for calculating estimated waiting time ,in This refers to the HIS queuing sequence number corresponding to patients on WeChat, which is dimensionless. This is the current call number, dimensionless. The average examination time per person in the department is in minutes (min), and W is the estimated waiting time in minutes (min).
[0131] Appointment-Arrival Matching Deviation Formula ,in The arrival time stamp of the patient's terminal in the department, calculated via beacon / GPS, in seconds (s). The absolute start time of the reservation period generated by the preceding dynamic compression, in seconds (s). Time deviation, in seconds (s), limited. That is, to determine an exact match;
[0132] Reminder trigger constraint formula ,in The current time (s) of the server. The planned calling time is s. The configurable alert lead time is set to 300 seconds. This is the HIS queue status field, where R is a boolean value indicating whether route guidance has been issued.
[0133] In a specific embodiment of the present invention, it is expected that waiting... middle WeChat HIS queuing numbers are dimensionless. Number called without dimension Single person's travel time (W minutes), reservation-arrival deviation middle Beacon GPS calculates arrival timestamp in seconds Compression period start second Precise judgment with a time limit of ≤300 seconds, reminder of constraints. middle Second Planned call number seconds Default 300 seconds The state R is a Boolean value, quantifying waiting and deviation to make closed-loop matching measurable. Reminder constraints are proactively triggered to prevent missed numbers. The formula is tightly bound to the HIS queue state to adapt to real-time changes in the hospital, providing mathematical model support for navigation push and resource scheduling, thus improving the system's intelligence and interpretability.
[0134] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and its improved concept, should be covered within the scope of protection of the present invention.
Claims
1. A method for matching examination appointment times based on Bluetooth beacon positioning and HIS (Hospital Information System) diagnosis and treatment linkage, characterized in that, include: S1. Appointment Booking: Valid medical examination requests are pushed from the HIS to the medical examination appointment system in real time. A rule engine-based, decoupled architecture is used to convert patient characteristic attributes into rule attributes for matching and classification. The system is divided into automated and non-automated queues based on path tags. For automated paths, payment results in order splitting. The queues are then merged and calculated to generate appointment queues. Based on a hospital-wide resource pool, a multi-objective optimization algorithm is used to construct a cloud resource pool for equipment. Orders are automatically linked for appointments, with time slots refined to 15 minutes and dynamically tracked via Bluetooth beacons to reduce the time to within 5 minutes. Conflicts are filtered to match the optimal resources, generating records containing schedulingId and patientAdviceId with a push notification. Failures are transferred to the manual pool. The schedulingId is a unique number for the appointment record, and the patientAdviceId is the patient's examination order number. S2. Beacon Deployment and Positioning: IP68 corrosion-resistant beacons are deployed on the indoor ceiling, and outdoor ground-mounted pressure-resistant beacons are equipped with built-in batteries for extended operation. The combination of inertial navigation and geomagnetic engine achieves an indoor accuracy of ≤3 meters and an initial positioning time of ≤2 seconds. S3, Dynamic compression of time periods: Coordinates are obtained through electronic medical cards and beacons. The time period is compressed to ≤5 minutes according to the distance-speed formula. Real-time driving coefficients and the department's busyness level are introduced to fine-tune the upper limit. After conflict detection with existing records in the call queue, a conflict-free gap is inserted to push the closed loop. S4. Geofence Check-in: The backend hot-updates the 500-meter fence of the hospital area. The mini-program calculates the GPS within ≤500 meters to enable check-in. At the same time, the Bluetooth beacon calculates the coordinates and generates a signature based on the hospital area outline. Only dual-mode compliance is triggered to prevent cheating. The coarse-grained GPS entry and fine-grained Bluetooth signature prevent proxy check-in. S5, five-layer check-in verification: sequentially performs document validity, appointment legality including face / fingerprint cross-checking and Bluetooth failure downgrade to pure GPS, time threshold, duplicate, and concurrent lock verification, and encapsulates single-transaction atomic rollback; S6 and HIS linkage closed loop: The interface server synchronously sends queuing and calling numbers to WeChat, pushes triage navigation and estimated waiting time, and accurately matches the arrival timestamp output to close the loop.
2. The method for matching examination appointment times based on Bluetooth beacon positioning and HIS diagnosis and treatment linkage according to claim 1, characterized in that, Step S1 includes: Application form acquisition and push: Outpatient / inpatient doctors' workstations open examination application forms. After the patient pays, valid medical technology examination application forms are pushed from the hospital information system (HIS) to the medical technology appointment system in real time. Path grouping and rule decoupling: The system automatically ranks patients through an intelligent rule algorithm platform, and the background timed task scans the preset rule library. The platform adopts an independent and decoupled rule engine architecture. It converts patient characteristic attributes into rule attributes and matches the target appointment category through a preset rule set, reducing system coupling. The system assigns the items in the application form to two queues, automated appointment service path and non-automated appointment path, according to the item appointment service path tag. Items in the automated path automatically enter the order processing stage at the payment node. Merged Calculation: Based on the preset strategy and examination item merging rules, merge examinations are calculated for items in the generated patient appointment service path, and an appointment application queue is generated for the merged examination result tags; Optimal resource matching and centralized scheduling: Based on preset strategies and project resource matching rules, the system retrieves the resource schedules corresponding to the examination type, equipment, examination time period, application time, and patient source of each project in each queue. The retrieval is based on centralized scheduling of the hospital-wide resource pool, breaking down departmental barriers. A multi-objective optimization algorithm is used to construct a cloud resource pool for equipment. The system triggers intelligent interlocking appointments as soon as an order is placed, and the time granularity is refined to 15 minutes or even smaller units. Combined with dynamic tracking of movement speed using Bluetooth beacons, the time granularity can be further compressed to within 5 minutes. This verifies time conflicts between patient examination projects, filters conflicting scheduling resources, and matches the optimal scheduling resources for the appointment application queue. Record generation and seamless notification: Generate appointment records containing schedulingId and patientAdviceId, lock appointment slots, and adopt a seamless and automated appointment mode. After the doctor issues the order and the payment is made, the system automatically locks resources, allocates time slots, and pushes notifications. Patients do not need to actively initiate an appointment action. The system sends SMS / WeChat notifications containing check-in QR codes and navigation links to patients. Failure Transfer: If the verification fails or the non-automated path is not confirmed, the application will be transferred to the manual reservation pool, and the manual reservation privileges will be retained.
3. The method for matching examination appointment times based on Bluetooth beacon positioning and HIS diagnosis and treatment linkage according to claim 1, characterized in that, Step S2 includes: Indoor beacon planning and installation: Bluetooth beacons are deployed at 8-10 meter intervals on the ceiling of the indoor corridors of the hospital, with the installation height maintained at 2.5-3 meters. IP68 protection level beacons are selected for disinfection areas and areas prone to liquid splashes, and corrosion-resistant shells are used. They are linked to hospital infection control and support BeaconSET on-site parameter configuration and remote status monitoring. The corridors adopt a zigzag or single-row staggered layout to ensure that any location point is covered by at least 3-4 beacon signals at the same time. BeaconSET is the Bluetooth beacon on-site configuration tool. Outdoor road beacon installation: Ground-mounted pressure-resistant beacons are used on outdoor roads in the hospital area, installed at intervals of 7-8 meters. The beacons have IP68 / IK10 protection and can withstand the crushing force of ≥6 tons of vehicles. They are equipped with a built-in 4000mAh lithium-ion battery, which has a 7-year battery life under default broadcast conditions and can withstand the crushing force of 6 tons. They can be directly attached to parking spaces or road surfaces without wiring. The outdoor area signal has independent coverage and does not rely on the penetration of upper beacons. Signal Acquisition and Preliminary Calculation: The personnel terminal passively scans the beacon broadcast packets, extracts the UUID / Major / Minor and real-time RSSI values, and calculates the initial plane coordinates based on the calibration parameters through distance conversion and trilateration algorithm. UUID is a universally unique identifier, Major is the primary identifier, Minor is the secondary identifier, and RSSI is the received signal strength indicator. Multi-source fusion positioning: The coordinates are input into the fusion inertial navigation and geomagnetic positioning engine, and the building magnetic field prior map and terminal IMU data are called to perform fusion calculation, so that the indoor positioning accuracy is ≤3 meters and the initial positioning time is ≤2 seconds. The initial positioning of 2 seconds is achieved by preloading the 3D map of the hospital area and the geomagnetic fingerprint database and triggering it with non-sensory Bluetooth scanning. General iterative deduction is eliminated, and only the structural features of the coordinates directly output by the fusion engine are retained.
4. The method for matching examination appointment times based on Bluetooth beacon positioning and HIS diagnosis and treatment linkage according to claim 1, characterized in that, Step S3 includes: Real-time location acquisition: While the patient is moving around the hospital area, the real-time coordinates of the patient's terminal are continuously acquired through the electronic medical card and Bluetooth beacon navigation system. Fixed coordinates with the examination room ; Indicator Update: The distance and speed of the patient from the target examination room are updated periodically according to a proprietary distance and speed formula; Time slot compression and rearrangement: Using big data algorithms, the original 15-30 minute time slots allocated by the reservation system are dynamically rearranged into precise check time slots of ≤5 minutes in length, and the reservation record corresponding to the schedulingId is written back. A real-time driving coefficient is introduced in this process. , The initial distance value is dimensionless and serves as a time conversion and safety margin factor. The adaptive feedback input, the closer the patient gets to the examination room but Reduce Further tightening, and taking into account the busyness level of each department. Where h is the average consultation time per patient. The number of patients in the department at time t is the number of patients at the most recent rest time. Both are dimensionless or in minutes and are subject to dynamic fine-tuning. Limits should be set to avoid overloading departments. Conflict-free integration: The compressed time slot is checked for conflicts with the existing appointment records of other patients in the call queue. The time slice overlap is verified based on the resource scheduling table. If a time or resource conflict is detected, the compressed time slot is inserted into an adjacent empty slot or shifted to a conflict-free gap according to the department's busyness level and preset priority. The conflict rule algorithm or dynamic programming algorithm is called to traverse and solve for the optimal insertion position to ensure that the time slot written back to schedulingId has no resource or time conflict with the existing appointment. Queue synchronization and closed loop: The compressed time slot is pushed to the waiting queue and the calling system, while update prompts and navigation routes are sent to the patient's mini-program. The target path is planned in real time and the estimated check-in time is calculated based on the location information obtained from the wireless communication network. The queuing comprehensive score is mapped to the dynamic sequence list to assist the calling, forming a closed loop of location speed compression and calling.
5. The method for matching examination appointment times based on Bluetooth beacon positioning and HIS diagnosis and treatment linkage according to claim 1, characterized in that, Step S4 includes: Fence parameter backend configuration and dynamic remote fence: The hospital backend management system pre-sets the latitude and longitude markers of the hospital center and the fence radius of 500 meters, and sends them to the WeChat mini program. The hospital latitude and longitude markers and radius are updated by the backend to adapt to multiple hospital areas or temporary screening areas. GPS geofence determination: When a patient is discharged after being admitted to the hospital, the WeChat mini program calls wx.getLocation to obtain the terminal's GPS coordinates, calculates the distance between the terminal and the ground surface of the hospital center according to the Haversine formula, and renders and opens the check-in button if it is ≤500 meters away; otherwise, it is automatically hidden. Bluetooth broadcast acquisition: Patients turn on their mobile phones via Bluetooth and passively scan the broadcast packets broadcast from the hospital ceiling and outdoor ground beacons to extract UUID / Major / Minor and real-time RSSI values; Network-side calculation and verification: The mini-program uploads beacon data to the positioning server via the gateway. The server calculates the indoor coordinates of the terminal based on the RSSI ranging formula and the three-sided positioning of at least three beacons, verifies that the coordinates fall within the polygonal outline of the building in the hospital area, and generates a location authenticity endorsement. Dual-mode conditional check-in and dual-mode redundancy to prevent cheating: Check-in is triggered and written to the waiting queue and a navigation link is pushed only when the GPS geofence distance meets the standard and the Bluetooth calculated coordinates pass the contour verification. The GPS geofence is responsible for coarse-grained opening of the check-in entrance, while the Bluetooth network side calculation is responsible for fine-grained verification of the authenticity of the indoor location, thus curbing the use of simulated location for proxy check-in.
6. The method for matching examination appointment times based on Bluetooth beacon positioning and HIS diagnosis and treatment linkage according to claim 5, characterized in that, The geofencing and Bluetooth verification algorithm formula in step S4 includes: Geographic fence distance calculation formula ,in , , , The latitude and longitude of the hospital center. , The coordinates are: latitude and longitude of the terminal, R is the Earth's radius of 6,371,000 meters, and D is the distance from the terminal to the ground center of the campus, in meters. Bluetooth beacon ranging formula ,in The signal strength at 1 meter from the i-th beacon is calibrated, in dBm. The signal strength of the beacon received by the terminal is in dBm, where n is the environmental attenuation factor, which is dimensionless. The distance from the terminal to the beacon is in meters. Auxiliary verification constraint formula ,in The server calculates the indoor coordinates; Polygon (Hospital) is the coordinate set of the polygonal outline of the hospital buildings. The value is the average distance measured by multiple beacons, in meters. Δ is the tolerance threshold of 20 meters, in meters. This formula is specifically used to determine whether the Bluetooth-calculated location matches the GPS fence, thus excluding single-mode drift.
7. The method for matching examination appointment times based on Bluetooth beacon positioning and HIS diagnosis and treatment linkage according to claim 1, characterized in that, Step S5 includes: Document validity verification: Receive the check-in request submitted by WeChat Mini Program, parse the electronic medical card number and schedulingId, call the HIS interface to verify that the status of the associated examination application form is paid and not cancelled and that the patient is not on the department's blacklist; otherwise, intercept and return an error code. Appointment legality verification: Retrieve appointment records corresponding to schedulingId from the medical technology appointment system, verify that the appointment status is pending check-in and the scheduled time slot has not expired and can be cancelled, and at the same time extract the terminal identification code and match it with the verification identification code of the mobile communication terminal with check-in permission pre-stored on the verification server. If they do not match, they are blocked. The legality layer integrates face image or fingerprint perception and cross-verifies with location and time factors, but only retains the structure designed specifically for medical scenarios and does not introduce a general model. Bluetooth is enabled to obtain beacon broadcasts and the positioning server calculates the coordinates to assist in verifying the real presence of the terminal identification code, and connects to step S4 beacon positioning; Check-in time threshold verification: Read the start time of the scheduled time period. With end time Determine the current time satisfy ,in It can be configured so that if you don't arrive 30 minutes before the scheduled time, you can check in, but if you do, you will be prohibited from doing so. The party that the applicant failed to show up was ruled to have done so, and the available slots were released back into the pool. Duplicate sign-in check: Query whether a sign-in entity with the same schedulingId already exists in the waiting queue. If it does, reject the duplicate write and indicate that the sign-in has already occurred. Concurrency safety verification: A distributed lock is acquired at the schedulingId level to prevent concurrent requests from modifying the same appointment record at the same time. If all verifications pass, the record is written to the waiting queue, the calling function is triggered, and a navigation link is sent. Five-layer atomic constraint: The above five layers of verification are encapsulated into a single transaction. If any layer returns false, the transaction is immediately rolled back to ensure the consistency of the data source.
8. The method for matching examination appointment times based on Bluetooth beacon positioning and HIS diagnosis and treatment linkage according to claim 7, characterized in that, The appointment check-in verification algorithm formula used in step S5 includes: Time-compliant Boolean function formula ,in This is the server timestamp, in seconds (s). , The absolute start and end times of the reservation period, in seconds (s). The threshold for early check-in is 1800 seconds. This is the time verification result, a dimensionless Boolean value. Existence quantifier formula for repeated sign-in ,in The current appointment record is identified by a dimensionless variable, Queue is the set of waiting queues, and Exist is a boolean value indicating whether a check-in was repeated. Concurrent lock acquisition formula TTL is the lock's lifespan in seconds (s). Only when the lock is successfully acquired and a true response is returned can the database be written to.
9. The method for matching examination appointment times based on Bluetooth beacon positioning and HIS diagnosis and treatment linkage according to claim 1, characterized in that, Step S6 includes: Interface information synchronization and seamless cross-system integration: The triage and HIS interface server synchronizes registration, queuing and calling status information with the hospital's HIS and provides it to the WeChat server for use, realizing the seamless integration of examination application, appointment, calling and status writing. The HIS interface server integrates the queue length with the WeChat backend location service, so patients can receive dynamic route adjustments and recalculation of estimated waiting time without manually refreshing. Triage guidance push and intelligent examination guidance linkage: The system pushes triage guidance information and one-click navigation links to WeChat, binding the patient's target department location with the HIS treatment process, and the physical examination / examination status is synchronized bidirectionally to WeChat. The system automatically filters out duplicate navigation requests, only allowing duplicate requests when... For waiting and Approaching Activate high-priority guidance at the appropriate time; Arrival Trigger Service: When a patient arrives at the target building in the hospital area, the system will automatically push navigation to the target department and the estimated waiting time based on the real-time queue number in the HIS system. Calling time alert: Based on the queue progress, the estimated call time is calculated, and the system will proactively remind you when your number is about to be called and guide you to the optimal route to prevent you from missing your number; Matching closed-loop formation and node-based closed-loop push: Compare the appointment time slot generated by the compressed claim with the actual arrival time stamp, output accurate matching results, cover the entire process of ordering, payment, calling numbers, and execution, automatically trigger the next step of where to go route navigation and waiting prediction, forming a closed loop between appointment time and actual arrival.
10. The method for matching examination appointment times based on Bluetooth beacon positioning and HIS diagnosis and treatment linkage according to claim 9, characterized in that, The formula designed for medical queue navigation in step S6 includes: Formula for calculating estimated waiting time ,in This refers to the HIS queuing sequence number corresponding to patients on WeChat, which is dimensionless. This is the current call number, dimensionless. The average examination time per person in the department is in minutes (min), and W is the estimated waiting time in minutes (min). Appointment-Arrival Matching Deviation Formula ,in The arrival time stamp of the patient's terminal in the department, calculated via beacon / GPS, in seconds (s). The absolute start time of the reservation period generated by the preceding dynamic compression, in seconds (s). Time deviation, in seconds (s), limited. That is, to determine an exact match; Reminder trigger constraint formula ,in The current time (s) of the server. The planned calling time is s. The configurable alert lead time is set to 300 seconds. This is the HIS queue status field, where R is a boolean value indicating whether route guidance has been issued.
