Reservation strategy generation method and device, computer equipment and readable storage medium

By obtaining user data and checking items, querying available resources and reorganizing the strategy according to constraints and target intentions, and using the reward constraint optimization algorithm to determine the reservation strategy, the problem of low accuracy of reservation strategy generation in the existing technology is solved, and the accuracy of the reservation strategy is improved. Accuracy and user experience.

CN118609770APending Publication Date: 2024-09-06YANGTZE RIVER DELTA GUOSHU (SHANGHAI) DIGITAL MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410631392.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing medical technology reservation strategy generation method has low accuracy. It only considers the available time sequence of available resources and fails to make full use of multiple influencing factors, resulting in inaccurate reservation strategy generation.

Method used

By obtaining user data and checking items, querying the available resource collection, reorganizing the strategy according to constraints and target intentions, using a reward constraint optimization algorithm to determine the reservation strategy, and considering multiple influencing factors to improve the accuracy of the strategy.

Benefits of technology

By adding multiple influencing factors of constraints and target intentions, the considerations for reservation strategies are enriched, and the accuracy and user experience of reservation strategy generation are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609770A
    Figure CN118609770A
Patent Text Reader

Abstract

The invention relates to a reservation strategy generation method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the steps of obtaining a target intention, user data of each to-be-checked user and a check item of each to-be-checked user; querying an available resource set of each inspection item based on each user data and each inspection item; the available resource set comprises available resources; according to the constraint condition, recombining available resources among the inspection items of each to-be-inspected user to obtain an initial user strategy, and recombining the initial user strategy among the inspection users to obtain each initial strategy; and determining a reservation strategy in each initial strategy according to the target intention and the intention condition corresponding to the target intention. By adopting the method, the accuracy of the reservation strategy can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of medical technology, and in particular to a reservation strategy generation method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] Before users go to the hospital for various examinations, they need to make an appointment for the examination time and resources through the medical technology appointment system. The medical technology appointment system will recommend appointment strategies for users based on appointment demand information and appointment strategy generation methods.

[0003] The current reservation strategy generation method determines the available resource set and inspection duration based on the inspection items in the reservation demand information. Then, for each inspection item, the available resource with the earliest available time period is determined as the target available resource in the available resource set of the inspection item, and a reservation strategy is constructed based on each target available resource.

[0004] However, the current reservation strategy generation method only considers the available time sequence of available resources, which is a single factor, resulting in low accuracy of the current reservation strategy generation method. Summary of the invention

[0005] Based on this, it is necessary to provide a method, apparatus, computer device, computer-readable storage medium and computer program product capable of generating a reservation strategy in response to the above technical problems.

[0006] In a first aspect, the present application provides a reservation strategy generation method, comprising:

[0007] Acquire target intention, user data of each user to be checked, and check items of each user to be checked;

[0008] Based on each of the user data and each of the inspection items, query the available resource set of each of the inspection items; the available resource set includes each of the available resources;

[0009] Reorganize the available resources between the inspection items of each user to be inspected according to the constraint conditions to obtain an initial user strategy, and reorganize the initial user strategies between the inspected users to obtain each initial strategy;

[0010] A reservation strategy is determined in each of the initial strategies according to the target intention and the intention condition corresponding to the target intention.

[0011] In one embodiment, querying the available resource set of each inspection item based on each user data and each inspection item includes:

[0012] For each of the users to be examined, query the historical medical data of the user to be examined according to the user data of the user to be examined;

[0013] Determining the predicted examination duration of each of the examination items of the user to be examined based on the historical medical treatment data;

[0014] For each of the inspection items, based on the item identifier, current time and preset time period of the inspection item, query the initial available resource set of the inspection item; the initial available resource set includes available resources in each available time period;

[0015] Based on the predicted inspection duration and the available time period of each of the available resources, the initial available resource set is screened to obtain the available resource set of the inspection item.

[0016] In one embodiment, determining a reservation strategy in each of the initial strategies according to the target intention and the intention condition corresponding to the target intention includes:

[0017] In the case where there is a target strategy that satisfies the same-day intention condition, determining the target strategy as the reservation strategy;

[0018] In the case that there is no target strategy that satisfies the same-day intention condition, a reservation strategy is determined among the initial strategies according to a reward constraint optimization algorithm.

[0019] In one embodiment, determining the reservation strategy in each of the initial strategies according to the reward constraint optimization algorithm includes:

[0020] For each of the initial strategies, determining an initial weight and a reward value of the initial strategy based on each available time period in the initial strategy;

[0021] Performing a subtraction operation on the initial weight and the reward value to obtain a weight corresponding to the initial strategy;

[0022] The initial strategy with the lowest weight among the initial strategies is determined as the reservation strategy.

[0023] In one embodiment, determining the reservation strategy in each of the initial strategies according to the reward constraint optimization algorithm includes:

[0024] For each of the initial strategies, determining an initial weight and a reward value of the initial strategy based on each available time period in the initial strategy;

[0025] Performing a subtraction operation on the initial weight and the reward value to obtain a weight corresponding to the initial strategy;

[0026] The initial strategy with the lowest weight among the initial strategies is determined as the reservation strategy.

[0027] In one embodiment, for each of the initial strategies, determining the initial weight and reward value of the initial strategy based on each available time period in the initial strategy includes:

[0028] For each of the initial strategies, taking the current time as a reference, determining the initial weight of each of the available resources in the initial strategy in the order of the available time periods from earliest to latest;

[0029] Performing an addition operation on each of the initial weights to obtain an initial weight of the initial strategy;

[0030] The number of available time periods in the initial strategy that are located on the same day is determined, and a reward value of the initial strategy is determined based on the number.

[0031] In a second aspect, the present application also provides a reservation strategy generation device, including:

[0032] An acquisition module, used to acquire target intention, user data of each user to be checked and the check items of each user to be checked;

[0033] A query module, used for querying an available resource set for each inspection item based on each user data and each inspection item; the available resource set includes each available resource;

[0034] A reorganization module, used for reorganizing the available resources between the inspection items of each user to be inspected according to the constraint conditions to obtain an initial user strategy, and reorganizing the initial user strategies between the inspected users to obtain each initial strategy;

[0035] A determination module is used to determine a reservation strategy in each of the initial strategies according to the target intention and the intention condition corresponding to the target intention.

[0036] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0037] Acquire target intention, user data of each user to be checked, and check items of each user to be checked;

[0038] Based on each of the user data and each of the inspection items, query the available resource set of each of the inspection items; the available resource set includes each of the available resources;

[0039] Reorganize the available resources between the inspection items of each user to be inspected according to the constraint conditions to obtain an initial user strategy, and reorganize the initial user strategies between the inspected users to obtain each initial strategy;

[0040] A reservation strategy is determined in each of the initial strategies according to the target intention and the intention condition corresponding to the target intention.

[0041] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0042] Acquire target intention, user data of each user to be checked, and check items of each user to be checked;

[0043] Based on each of the user data and each of the inspection items, query the available resource set of each of the inspection items; the available resource set includes each of the available resources;

[0044] Reorganize the available resources between the inspection items of each user to be inspected according to the constraint conditions to obtain an initial user strategy, and reorganize the initial user strategies between the inspected users to obtain each initial strategy;

[0045] A reservation strategy is determined in each of the initial strategies according to the target intention and the intention condition corresponding to the target intention.

[0046] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0047] Acquire target intention, user data of each user to be checked, and check items of each user to be checked;

[0048] Based on each of the user data and each of the inspection items, query the available resource set of each of the inspection items; the available resource set includes each of the available resources;

[0049] Reorganize the available resources between the inspection items of each user to be inspected according to the constraint conditions to obtain an initial user strategy, and reorganize the initial user strategies between the inspected users to obtain each initial strategy;

[0050] A reservation strategy is determined in each of the initial strategies according to the target intention and the intention condition corresponding to the target intention.

[0051] The above-mentioned reservation strategy generation method, device, computer equipment, computer-readable storage medium and computer program product obtain the target intention, the user data of each user to be inspected and the inspection items of each user to be inspected; query the available resource set of each inspection item based on each user data and each inspection item; the available resource set contains each available resource; reorganize the available resources between each inspection item of each user to be inspected according to the constraint conditions to obtain the initial user strategy, and reorganize the initial user strategy between each inspection user to obtain each initial strategy; determine the reservation strategy in each initial strategy according to the target intention and the intention condition corresponding to the target intention. Using this method, query each available resource according to each user data and each inspection item, and perform sufficient processing on each available resource based on the constraint conditions, the target intention and the intention condition corresponding to the target intention to obtain the reservation strategy. By adding multiple influencing factors such as the constraint conditions, the target intention and the intention condition corresponding to the target intention to determine the reservation strategy, the influencing factors are enriched, the accuracy of the reservation strategy is improved, and the accuracy of the reservation strategy generation method is thereby improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0053] Figure 1 A schematic diagram of a flow chart of a reservation strategy generation method in one embodiment;

[0054] Figure 2 is a visual schematic diagram of constraint conditions in one embodiment;

[0055] Figure 3 A schematic diagram of a process of querying an available resource set in one embodiment;

[0056] Figure 4 A schematic diagram of a process for determining a reservation strategy according to an intention condition in an embodiment;

[0057] Figure 5 It is a flowchart of determining a reservation strategy according to a same-day intention condition in one embodiment;

[0058] Figure 6 A schematic diagram of a process of determining a reservation strategy according to a weight in an embodiment;

[0059] Figure 7 A schematic diagram of a process for determining a reward value and an initial weight in one embodiment;

[0060] Figure 8 A schematic diagram of data processing of a reservation strategy generation method in one embodiment;

[0061] Fig. 9 A structural block diagram of a reservation strategy generating device in an embodiment;

[0062] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0063] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0064] In one embodiment, Figure 1 As shown, a reservation strategy generation method is provided. The embodiment of the present application takes the method applied to a computer device as an example for explanation. The embodiment of the present application does not limit the execution device for the reservation strategy generation, and includes the following steps 102 to 108:

[0065] Step 102 , obtaining target intention, user data of each user to be checked, and check items of each user to be checked.

[0066] In implementation, when a user needs to reserve an inspection resource, the user initiates an appointment request to a computer device. In response to the appointment request, the computer device displays an appointment template. The user determines the user data of each user to be inspected and the inspection items of each user to be inspected based on the appointment template. Then, the computer device displays an intention template so that the user determines the target intention based on the intention template. The computer device obtains the target intention and the user data of each user to be inspected and the inspection items of each user to be inspected in the appointment template.

[0067] In an optional embodiment, the computer device obtains the target intention and the user data of each user to be checked in the user template and the inspection items of each user to be checked by interacting with the user terminal. Specifically, the user initiates a reservation request to the computer device through the user terminal. In response to the reservation request, the computer device sends the reservation template and the intention template to the user terminal. Among them, the reservation template includes a user data template and a template of the items to be checked. The template of the items to be checked includes each item to be checked. The user determines the target intention based on the intention template, and determines the user data of each user to be checked and each user to be checked in the user terminal based on the user data template. Then, for each user to be checked, the user determines the inspection items in each item to be checked in the user terminal based on the template to be checked. The user terminal sends the target intention, the user data of each user to be checked and the inspection items of each user to be checked to the computer device. The computer device receives the target intention, the user data of each user to be checked and the inspection items of each user to be checked.

[0068] Optionally, the examination items may be medical examination items, such as blood tests, CT (Computed Tomography), X-rays, etc., or may be hospital departments, such as internal medicine, surgery, etc. The embodiments of the present application do not limit the examination items.

[0069] Step 104: query the available resource set of each inspection item based on each user data and each inspection item.

[0070] The available resource set includes various available resources.

[0071] In implementation, the computer device queries the historical medical data of each user to be examined based on the data of each user. Then, for each user to be examined, the computer device queries the initial available resource set of each examination item based on the item identifier of each examination item. Then, the computer device determines the available resource set based on the historical medical data of each user to be examined and the initial available resource set.

[0072] Step 106, reorganize the available resources between the inspection items of each user to be inspected to obtain an initial user policy, and reorganize the initial user policies between the inspected users according to the constraint conditions to obtain each initial policy.

[0073] In implementation, constraint conditions are pre-set in the computer device. For each user to be checked, the computer device reorganizes the available resources between the check items of the user to be checked to obtain each initial pending user policy for the user to be checked. Then, the computer device screens each initial pending user policy according to the constraint conditions to obtain the initial user policy. The computer device combines the user policies between the users to be checked to obtain each initial pending policy. Then, the computer device screens each initial pending policy according to the constraint policy to obtain each initial policy.

[0074] Specifically, taking the hospital's examination items as an example, one examination item includes multiple examination devices. The constraints include: 1. One examination device can only serve one user to be examined at the same time. 2. One user to be examined can only select one examination device to perform one examination item once. 3. Transition constraints for all examination items of each user to be examined, that is, there must be a time interval between one examination item and another. 4. Time conflict constraints between examination items, that is, two examination items cannot be performed at the same time. Figure 2 A visual diagram of the constraints.

[0075] The users to be checked acquired by the computer device are user A and user B. The check items of user A are item m and item n. The check items of user B are item m and item p. The available resource set of item m is {m1, m2, m3}, the available resource set of item n is {n1, n2, n3}, and the available resource set of item n is {p1, p2, p3}. The computer device reorganizes the available resources between the various check items of user A according to the constraint conditions, and obtains each initial user strategy A {m1n1, m1n2, m1n3, m2n2, m2n3, m3n3}. The computer device reorganizes the available resources between the various check items of user B according to the constraint conditions, and obtains each initial user strategy B {m1p1, m1p2, m1p3, m2p2, m2p3, m3p3}. The computer device reorganizes the initial user policies between the checking user A and the checking user B according to the constraint conditions to obtain the initial policies {m1n1m2p2, m1n1m2p3, m1n1m3p3, m1n2m2p2, m1n2m2p3, m1n2m3p3, m1n3m2p2, m1n3m2p3, m1n3m3p3, m2n2m1p1, m2n2m1p2, m2n2m1p3, m2n2m3p3, m2n3m1p1, m2n3m1p2, m2n3m1p3, m2n3m3p3, m3n3m1p1, m3n3m1p2, m3n3m1p3, m3n3m2p2, m3n3m2p3}.

[0076] Step 108, determining a reservation strategy in each initial strategy according to the target intention and the intention condition corresponding to the target intention.

[0077] In implementation, the computer device determines whether the target intention is a same-day appointment intention. If the target intention is a same-day appointment intention, the computer device determines that the intention condition corresponding to the target intention is a same-day intention condition. Then, the computer device determines the appointment strategy in the initial strategy based on the same-day intention condition. If the target intention is a non-same-day appointment intention, the computer device determines that the intention condition corresponding to the target intention is a time intention condition. Then, the computer device determines the appointment strategy in the initial strategy based on the time intention condition.

[0078] In an exemplary embodiment, after determining the reservation strategy, the computer device sends the reservation strategy to the user terminal and causes the user terminal to display the reservation strategy. The user determines the target reservation strategy based on the reservation strategy and submits the target reservation strategy. The user terminal sends the target reservation strategy to the computer device in response to the user's submission operation. The computer device receives the target reservation strategy and saves the target reservation strategy.

[0079] In the above reservation strategy generation method, each available resource is queried according to each user data and each inspection item, and each available resource is adequately processed based on the constraint conditions, target intentions and the intention conditions corresponding to the target intentions to obtain the reservation strategy. By adding multiple influencing factors such as constraint conditions, target intentions and the intention conditions corresponding to the target intentions to determine the reservation strategy, the influencing factors are enriched, the accuracy of the reservation strategy is improved, and the accuracy of the reservation strategy generation method is thereby improved.

[0080] In an exemplary embodiment, Figure 3 As shown, the specific processing process of step 104 includes steps 302 to 308. Among them:

[0081] Step 302: for each user to be examined, query the historical medical data of the user to be examined according to the user data of the user to be examined.

[0082] In implementation, the computer device determines the user ID of each user to be examined in the user data of the user to be examined, and then searches the database for the historical medical data of the user to be examined based on the user ID.

[0083] Step 304: Determine the predicted examination duration of each examination item of the user to be examined based on the historical medical data.

[0084] In implementation, for each examination item of the user to be examined, the predicted examination duration of the examination item is determined based on historical medical data.

[0085] Specifically, a prediction model is preset in the computer device. For each examination item, the computer device determines the historical medical data of the item corresponding to the examination item in the historical medical data. The computer device inputs the user data of the user to be examined and the historical medical data of the item into the prediction model, and performs prediction processing on the user data and the historical medical data through the prediction model to obtain the predicted examination time of the examination item.

[0086] In an optional embodiment, for each examination item, the computer device determines the historical examination durations corresponding to the examination item in the historical medical data, determines the average of the historical examination durations, and determines the average as the predicted examination duration.

[0087] Optionally, the computer device may determine the median of each historical inspection duration as the predicted inspection duration.

[0088] Step 306 , for each inspection item, based on the item identifier of the inspection item, the current time and a preset time period, query the initial available resource set of the inspection item.

[0089] The initial available resource set includes available resources in each available time period. Available resources are resources that are not occupied by anyone in the available time period.

[0090] In implementation, the computer device determines the query time period according to the current time and the preset time period. Then, for each inspection item, the computer device queries the database for the initial available resource set of the inspection item according to the item identifier of the inspection item and the query time period.

[0091] Optionally, available resources refer to available inspection equipment; available inspection equipment indicates that the inspection equipment of a certain medical inspection item is in an available time period and the inspection equipment is operating normally, wherein the available time period refers to that the inspection equipment is idle in the current time period. For example, nuclear resonance instrument E between 9:00 on April 25, 2024 and 10:00 on April 25, 2024. Available resources may also be available medical staff, and available medical staff indicates that the medical staff of a certain medical department is in an available time period and the medical staff is in a normal working state. For example, medical staff F of a medical department between 11:00 on April 25, 2024 and 12:00 on April 25, 2024. This application does not limit the available resources.

[0092] Optionally, the preset time period is generally 30 days, or 15 days, which is determined according to the reservation requirements. The embodiment of the present application does not limit the time period.

[0093] Step 308 , based on the predicted inspection duration and the available time period of each available resource, the initial available resource set is screened to obtain an available resource set for the inspection project.

[0094] In implementation, the computer device determines, for each available resource in the initial available resource set, whether the duration of the available time period of the available resource is greater than or equal to the predicted inspection duration. If the duration of the available time period of the available resource is greater than or equal to the predicted inspection duration, the computer device adds the available resource to the available resource set of the inspection item.

[0095] In this embodiment, the available resource set for each item to be inspected is determined according to each user data and each inspection item of each user to be inspected, and each available resource to be selected is obtained, so as to facilitate the subsequent reorganization of the reservation strategy based on each available resource.

[0096] In an exemplary embodiment, Figure 4 As shown, the specific processing process of step 108 includes steps 402 to 404. Among them:

[0097] Step 402: If the target intention is a same-day reservation intention, determine that the intention condition corresponding to the target intention is a same-day intention condition, and determine a reservation strategy in each initial strategy based on the same-day intention condition.

[0098] In implementation, the computer device determines whether the target intention is a same-day appointment intention. If the target intention is a same-day appointment intention, the computer device determines that the intention condition corresponding to the target intention is a same-day intention condition. The computer device determines whether there is a target strategy in the initial strategy that meets the same-day intention condition, and obtains a judgment result. The computer device determines the appointment strategy in each initial strategy according to the judgment result.

[0099] Specifically, the value of the target intention includes 0 and 1. The computer device determines whether the value of the target intention is 1. If the value of the target intention is 1, the computer device determines that the target intention is a same-day appointment intention. If the value of the target intention is 0, the computer device determines that the target intention is a different-day appointment intention.

[0100] Step 404: If the target intention is a reservation intention on a different day, the intention condition is determined to be a time intention condition, and a reservation strategy is determined in each initial strategy based on the time intention condition.

[0101] Among them, the time intention condition is to take the earliest available time period of available resources as the target.

[0102] In implementation, if the target intention is a reservation intention on a different day, the computer device determines the intention condition as a time intention condition. The computer device takes the earliest available time period of each available resource in the initial strategy as the target and determines the reservation strategy in each initial strategy.

[0103] Specifically, for each initial strategy, the computer device determines the initial weight of each available resource in the initial strategy based on the current time and the order of available time periods from earliest to latest. The earlier the time of the available time period, the smaller the initial weight. Then, the computer device performs an addition operation on each initial weight in the initial strategy to obtain the initial weight of the initial strategy. Then, the computer device determines the initial strategy with the smallest initial weight among the initial strategies as the reservation strategy.

[0104] In this embodiment, the reservation strategy is determined in each initial strategy according to the meaning represented by the target intention and the intention corresponding to the target intention, thereby adding the target intention of the user to be checked as an influencing factor, improving the accuracy of the reservation strategy and enhancing the user experience.

[0105] In an exemplary embodiment, Figure 5 As shown, the specific process of determining the reservation strategy in each initial strategy based on the same-day intention condition in step 404 includes steps 502 to 504. Among them:

[0106] Step 502: If there is a target strategy that satisfies the same-day intention condition, the target strategy is determined as a reservation strategy.

[0107] The same-day intention condition is that the available time periods of all available resources in the initial strategy are all on the same day.

[0108] In implementation, the computer device determines, for each initial policy, whether the available time periods of the available resources in the initial policy are all on the same day. If the available time periods of the available resources in the initial policy are all on the same day, the computer device determines the initial policy as the target policy, and determines the target policy as the reservation policy.

[0109] In an exemplary embodiment, when there is a target policy that satisfies the same-day intention condition, the computer device determines the target policy as a reservation policy. If there are multiple target policies, the computer device determines each target policy as a reservation policy.

[0110] Step 504, when there is no target strategy that satisfies the same-day intention condition, a reservation strategy is determined among the initial strategies according to the reward constraint optimization algorithm.

[0111] The goal of the reward constraint optimization algorithm point is to have the available time periods of the minimum available resources separated by the least number of days. The available time period of the minimum available resources ranges from 1 to the number of available resources in the initial strategy. The number of days between them ranges from 0 to a preset time period (consistent with the time period in step 306).

[0112] In implementation, if there is no target strategy that meets the same-day intention condition, the computer device takes the available time periods of the least amount of available resources and the least number of days as the goal, and determines the weights of each initial strategy based on the optimization constraint algorithm. Then, the computer device determines the initial strategy with the least weight as the reservation strategy.

[0113] In this embodiment, the target strategy is determined in each initial strategy through the same-day intention condition, and the reservation strategy is determined based on the target strategy, so that the function of flexibly selecting the same date for multiple users to be examined is realized, which greatly improves the coordination and convenience of the reservation strategy. In addition, when none of the initial strategies meet the same-day intention condition, the reservation strategy is determined with the available time period of available resources separated by the minimum number of days, which intelligently responds to the reservation needs of the users to be examined, and greatly improves the robustness and practicality of the reservation strategy generation method.

[0114] In one embodiment, Figure 6 As shown, the specific process of determining the reservation strategy in each initial strategy according to the reward constraint optimization algorithm in step 506 includes steps 602 to 606. Among them:

[0115] Step 602: for each initial strategy, determine the initial weight and reward value of the initial strategy based on each available time period in the initial strategy.

[0116] In implementation, the computer device determines the initial weight of each initial strategy based on each available time period in the initial strategy. Then, the computer device determines the reward value of the initial strategy based on the number of available time periods in the initial strategy that are on the same day.

[0117] Step 604, performing a subtraction operation on the initial weight and the reward value to obtain the weight corresponding to the initial strategy.

[0118] In implementation, the computer device performs a subtraction operation on the initial weight and the reward value to obtain the weight corresponding to the initial strategy.

[0119] Step 606: Determine the initial strategy with the lowest weight among the initial strategies as the reservation strategy.

[0120] In implementation, the computer device determines an initial policy with the lowest weight among the initial policies, and determines the initial policy as the reservation policy.

[0121] In this embodiment, the initial weight and reward value of the initial strategy are determined by the available time period of each initial strategy, and the weight of the initial strategy is determined based on the initial weight and reward value, which clarifies the completion of the goal of the available time period of each available resource in the initial strategy being separated by the available time period of the minimum amount of available resources and the minimum number of days. Then, the reservation strategy is determined based on the weight of each initial strategy, and the strategy closest to the goal is obtained, which improves the robustness and practicality of the reservation strategy generation method.

[0122] In one embodiment, Figure 7 As shown, the specific processing process of step 602 includes steps 702 to 706. Among them:

[0123] Step 702: for each initial strategy, the initial weight of each available resource in the initial strategy is determined based on the current time and in the order of available time periods from earliest to latest.

[0124] In implementation, the computer device is pre-set with initial weights for different time intervals, and the initial weights increase as the time intervals increase. For each initial strategy, the computer device determines the time interval between the available time period of each available resource in the initial strategy and the current time in the order of time periods from first to last. Then, for each available resource, the computer device determines the initial weight corresponding to the time interval based on the time interval between the available resource and the current time. Then, the computer device determines the initial weight as the initial weight of the available resource.

[0125] Specifically, the computer device is pre-set with initial weights of different time intervals, namely {time interval: 1 day, initial weight: 100; time interval: 2 days, initial weight: 230; time interval 3 days, initial weight: 380; time interval: 4 days, initial weight: 550; time interval 5 days, initial weight: 750}. The available time periods of each available resource included in the initial strategy are {available resource: a, available time period: 9:00 to 10:00 on April 27, 2024; available resource: b, available time period: 11:00 to 12:00 on April 28, 2024; available resource: c, available time period: 15:00 to 16:00 on April 26, 2024; available resource: d, available time period: 9:00 to 10:00 on April 29, 2024; available resource: f available time period: 11:00 to 12:00 on April 30, 2024}. The current time is; April 25, 2024. The computer device determines the time interval between the available time period of each available resource in the initial strategy and the current time in the order of time periods from first to last. The time interval corresponding to each available resource is {available resource: c, time interval: 1 day; available resource: a, time interval: 2 days; available resource: b time interval: 3 days; available resource: e, time interval: 4 days; available resource: f, time interval: 5 days}. Then, for each available resource, the computer device determines the initial weight corresponding to the time interval based on the time interval between the available resource and the current time. Then, the computer device determines the initial weight as the initial weight of the available resource. The initial weights of each available resource are {available resource: c, initial weight: 100; available resource: a, initial weight: 230; available resource: b initial weight: 380; available resource: e, initial weight: 550; available resource: f, initial weight 750}.

[0126] Step 704, performing an addition operation on each initial weight to obtain an initial weight of the initial strategy.

[0127] In implementation, the computer device performs an addition operation on the initial weights of the available resources in the initial strategy to obtain the sum of the initial weights, and determines the sum of the initial weights as the initial weight of the initial strategy.

[0128] Step 706, determining the number of available time periods in the initial strategy that are on the same day, and determining the reward value of the initial strategy based on the number.

[0129] Among them, the reward value continues to increase as the number increases.

[0130] In implementation, a reward value corresponding to a quantity is pre-set in the computer device. The computer device determines the number of available time periods in the initial strategy that are on the same day. Then, the computer device determines the reward value of the initial strategy based on the number.

[0131] In an optional embodiment, the available time period of some available resources in the initial strategy is located in X days, and the computer device determines a first quantity of available resources located in X days. The available time period of the remaining available resources in the initial strategy (the available resources excluding some available resources in the initial strategy) is located in Y days. The computer device determines a second quantity of available resources located in Y days. Then, the computer device determines a first reward value corresponding to the first quantity, and determines a second reward value corresponding to the second quantity. The computer device determines the sum of the first reward value and the second reward value as the reward value of the initial strategy.

[0132] In this embodiment, for each initial strategy, the initial weight is determined by the time interval between the available time period of the available resources in the initial strategy and the current time, and the reward value of the initial strategy is determined by the number of available time periods of each available resource on the same day. The completion status between the initial strategy and the goal is clarified, which facilitates the subsequent determination of the reservation strategy.

[0133] In an exemplary embodiment, Figure 8 FIG. 1 is a data processing diagram of a reservation strategy generation method in an embodiment. Figure 8 As shown, the computer device obtains the user data (patient information) of each user to be examined and the examination requirements of each user to be examined. The examination requirements include various examination items (a list of medical and technical examination items to be scheduled). The computer device queries the historical medical data and the available resource set (available examination resource information) based on the user data and the examination items. The computer device reorganizes the available resources between the examination items of each user to be examined according to the constraint conditions to obtain the initial user strategy, and reorganizes the initial user strategy between the examination users to obtain each initial strategy. The computer device obtains the target intention (same-day appointment intention) and determines whether the target intention represents the intention of the user to be examined to make an appointment on the same day. If the target intention does not represent the intention of the user to be examined to make an appointment on the same day, the computer device determines that the intention condition corresponding to the target intention is a time intention condition, and determines the appointment strategy according to the time intention condition. If the target intention represents the intention of the user to be examined to make an appointment on the same day, the computer device determines that the intention condition corresponding to the target intention is a same-day intention condition. Then, the computer device determines whether there is a feasible solution in each initial strategy based on the same-day intention condition, that is, whether there is an appointment strategy. If there is no feasible solution, the computer device relaxes the constraints and adds reward constraint optimization. The goal is to determine the available time periods of the minimum amount of available resources with the least number of days between them. The optimal multi-person appointment scheduling is determined in each initial strategy to obtain the appointment strategy.

[0134] Specifically, a computer device includes a multi-person same-day appointment optimization system for applying an appointment strategy method. The user determines multiple users to be inspected, the user information of each user to be inspected, and the inspection items of each user to be inspected through the user interface of the multi-person same-day appointment optimization system, and specifies the target intention. If the target intention represents that the user to be inspected intends to make an appointment on the same day, the multi-person same-day appointment optimization system searches for all available dates within the next 30 days according to each inspection user, forms an alternative same-day appointment date combination, and displays the alternative same-day appointment date combination. The user determines the target same-day appointment date from the alternative same-day appointment date combination recommended by the multi-person same-day appointment optimization system, and obtains the same-day date constraint. The multi-person same-day appointment optimization system inputs all the inspection items and the same-day date constraints of each user to be inspected into the sorting optimization model. The sorting optimization model obtains the global optimal appointment strategy through a solution algorithm under the constraints of equipment occupancy conflict, project transition time, and total duration of the whole day. Specifically, if the solution obtains the optimal feasible solution, the appointment strategy corresponding to the optimal feasible solution is output. If the solution cannot obtain a feasible solution, the "softening constraint" strategy is triggered, and the constraint conditions are relaxed to allow a small number of appointment dates to be separated by a minimum number of days, and the solution is repeated to obtain the appointment strategy. The solved appointment strategies are displayed to the user respectively.

[0135] The multi-person same-day reservation optimization system consists of a user interaction module, a sorting optimization module and a result presentation module from top to bottom. Specifically: the result presentation module is responsible for integrating the reservation strategy output by the sorting optimization module. The user interaction module is used to receive the multi-person same-day reservation requirements of the user, guide the user to select the reservation personnel, recommend the optional alternative same-day reservation date combination, and obtain the user's target same-day reservation date. The sorting optimization module is used to build a sorting optimization model according to the multi-person same-day reservation constraints selected by the user. Under the constraints of equipment, project, transition time, etc., the global optimal reservation scheduling plan is solved to obtain the reservation strategy. If there is no solution, the "softening constraint" submodule is automatically triggered to respond. Generate personalized reservation strategies and display the reservation strategies. The above three modules achieve collaboration through standardized interfaces and jointly complete the full process service of multi-person same-day reservation optimization. The user interaction module allows users to select multiple reservation personnel according to their own needs, and recommends a variety of feasible same-day reservation date combinations for users to choose, introducing a more friendly and humane process design, providing a more personalized and customized reservation service, and improving the user experience. The sorting optimization module builds a complex sorting optimization model, taking into account the appointment projects of multiple people at the same time, and comprehensively considering multiple constraints such as equipment occupancy conflicts, project transition time, and total duration of the day. It uses the optimization solution algorithm to obtain the globally optimal appointment scheduling plan that meets the constraints, ensuring system efficiency and resource utilization.

[0136] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0137] Based on the same inventive concept, the embodiment of the present application also provides a reservation strategy generation device for implementing the reservation strategy generation method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more reservation strategy generation device embodiments provided below can refer to the limitations of the reservation strategy generation method above, and will not be repeated here.

[0138] In an exemplary embodiment, Fig. 9 As shown, a reservation strategy generation device 900 is provided, comprising: an acquisition module 901, a query module 902, a reorganization module 903 and a determination module 904, wherein:

[0139] The acquisition module 901 is used to acquire the target intention, the user data of each user to be checked, and the check items of each user to be checked.

[0140] The query module 902 is used to query the available resource set of each inspection item based on each user data and each inspection item; the available resource set includes each available resource.

[0141] The reorganization module 903 is used to reorganize the available resources between the inspection items of each user to be inspected according to the constraint conditions to obtain the initial user strategy, and reorganize the initial user strategies between the inspected users to obtain each initial strategy.

[0142] The determination module 904 is used to determine a reservation strategy in each initial strategy according to the target intention and the intention condition corresponding to the target intention.

[0143] In an exemplary embodiment, the query module 902 includes:

[0144] The first query submodule is used to query the historical medical data of each user to be examined according to the user data of the user to be examined.

[0145] The first determination submodule is used to determine the predicted examination time of each examination item of the user to be examined based on the historical medical treatment data.

[0146] The second query submodule is used to query the initial available resource set of each inspection item based on the item identification, current time and preset time period of the inspection item; the initial available resource set includes available resources in each available time period.

[0147] The first screening submodule is used to screen the initial available resource set based on the predicted inspection duration and the available time period of each available resource to obtain the available resource set of the inspection project.

[0148] In an exemplary embodiment, the determination module 904 includes:

[0149] The second determination submodule is used to determine, if the target intention is a same-day appointment intention, that the intention condition corresponding to the target intention is a same-day intention condition, and determine the appointment strategy in each initial strategy based on the same-day intention condition.

[0150] The third determination submodule is used to determine the intention condition as a time intention condition if the target intention is a reservation intention on a different day, and determine the reservation strategy in each initial strategy based on the time intention condition.

[0151] In an exemplary embodiment, the second determination submodule includes a fourth determination submodule and a fifth determination submodule. The fifth determination submodule includes:

[0152] A sixth determination submodule is used to determine the target strategy as a reservation strategy when there is a target strategy that meets the same-day intention condition;

[0153] The seventh determination submodule is used to determine the reservation strategy among the initial strategies according to the reward constraint optimization algorithm when there is no target strategy satisfying the same-day intention condition.

[0154] In an exemplary embodiment, the seventh determining submodule includes:

[0155] The eighth determination submodule is used to determine, for each initial strategy, an initial weight and a reward value of the initial strategy based on each available time period in the initial strategy.

[0156] The first operation submodule is used to perform a subtraction operation on the initial weight and the reward value to obtain the weight corresponding to the initial strategy.

[0157] The ninth determination submodule is used to determine the initial strategy with the lowest weight among the initial strategies as the reservation strategy.

[0158] In an exemplary embodiment, the eighth determining submodule includes:

[0159] The tenth determination submodule is used to determine, for each initial strategy, the initial weight of each available resource in the initial strategy based on the current time and in the order of available time periods from earliest to latest.

[0160] The second operation submodule is used to perform an addition operation on each initial weight to obtain an initial weight of the initial strategy.

[0161] The eleventh operation submodule is used to determine the number of available time periods in the initial strategy that are on the same day, and determine the reward value of the initial strategy based on the number.

[0162] Each module in the above reservation strategy generation device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0163] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.10 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a reservation strategy generation method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0164] Those skilled in the art will understand that Fig.10The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0165] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0166] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0167] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0168] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0169] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0170] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0171] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A reservation strategy generation method, It is characterized in that The method comprises: Acquire target intention, user data of each user to be checked, and check items of each user to be checked; Based on each of the user data and each of the inspection items, query the available resource set of each of the inspection items; the available resource set includes each of the available resources; Reorganize the available resources between the inspection items of each user to be inspected according to the constraint conditions to obtain an initial user strategy, and reorganize the initial user strategies between the inspected users to obtain each initial strategy; A reservation strategy is determined in each of the initial strategies according to the target intention and the intention condition corresponding to the target intention.

2. The method according to claim 1, It is characterized in that The querying of the available resource set of each inspection item based on each user data and each inspection item includes: For each of the users to be examined, query the historical medical data of the user to be examined according to the user data of the user to be examined; Determining the predicted examination duration of each of the examination items of the user to be examined based on the historical medical treatment data; For each of the inspection items, based on the item identifier, current time and preset time period of the inspection item, query the initial available resource set of the inspection item; the initial available resource set includes available resources in each available time period; Based on the predicted inspection duration and the available time period of each of the available resources, the initial available resource set is screened to obtain the available resource set of the inspection item.

3. The method according to claim 1, It is characterized in that The step of determining a reservation strategy in each of the initial strategies according to the target intention and the intention condition corresponding to the target intention includes: If the target intention is a same-day reservation intention, determining that the intention condition corresponding to the target intention is a same-day intention condition, and determining a reservation strategy in each of the initial strategies based on the same-day intention condition; If the target intention is a reservation intention on a different day, the intention condition is determined to be a time intention condition, and a reservation strategy is determined in each of the initial strategies based on the time intention condition.

4. The method according to claim 3, It is characterized in that The step of determining a reservation strategy in each of the initial strategies based on the same-day intention condition includes: In the case where there is a target strategy that satisfies the same-day intention condition, determining the target strategy as the reservation strategy; In the case that there is no target strategy that satisfies the same-day intention condition, a reservation strategy is determined among the initial strategies according to a reward constraint optimization algorithm.

5. The method according to claim 4, It is characterized in that Determining the reservation strategy in each of the initial strategies according to the reward constraint optimization algorithm includes: For each of the initial strategies, determining an initial weight and a reward value of the initial strategy based on each available time period in the initial strategy; Performing a subtraction operation on the initial weight and the reward value to obtain a weight corresponding to the initial strategy; The initial strategy with the lowest weight among the initial strategies is determined as the reservation strategy.

6. The method according to claim 5, It is characterized in that The step of determining, for each of the initial strategies, an initial weight and a reward value of the initial strategy based on each available time period in the initial strategy includes: For each of the initial strategies, taking the current time as a reference, determining the initial weight of each of the available resources in the initial strategy in the order of the available time periods from earliest to latest; Performing an addition operation on each of the initial weights to obtain an initial weight of the initial strategy; The number of available time periods in the initial strategy that are located on the same day is determined, and a reward value of the initial strategy is determined based on the number.

7. A reservation strategy generating device, It is characterized in that The device comprises: An acquisition module, used to acquire target intention, user data of each user to be checked and the check items of each user to be checked; A query module, used for querying an available resource set for each inspection item based on each user data and each inspection item; the available resource set includes each available resource; A reorganization module, used for reorganizing the available resources between the inspection items of each user to be inspected according to the constraint conditions to obtain an initial user strategy, and reorganizing the initial user strategies between the inspected users to obtain each initial strategy; A determination module is used to determine a reservation strategy in each of the initial strategies according to the target intention and the intention condition corresponding to the target intention.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.