Disclosure of Invention
The application provides an intelligent dispatching method and system for blood donators, which solve the problems that data acquisition and analysis are limited by the accuracy of data acquisition and are difficult to cope with complex and changeable dispatching conditions, and a large amount of time is consumed by manually acquiring and analyzing data, so that the dispatching strategy formulation efficiency is reduced.
According to a first aspect of the present application, there is provided a method for intelligently scheduling blood donors, the method comprising:
Acquiring historical blood donation data and environmental data of a target day of each blood donation point, and inputting the historical blood donation data and the environmental data of the target day into a preset blood donation prediction model to obtain blood donation prediction data of each blood donation point on the target day;
Determining a blood donation schedule for each donor site on a target day based on the blood donation prediction data;
scheduling each blood donation point on a target day according to the blood donation scheduling plan, monitoring the operation data of each blood donation point in real time, and determining whether an emergency event exists according to the operation data and the blood donation scheduling plan;
if an emergency event of resource allocation exists, determining a first blood donation point, a missing resource type and a missing resource quantity of resources to be allocated according to the operation data;
And acquiring current resource information of each blood donation point, determining a resource allocation plan according to the blood donation scheduling plan, the current resource information of each blood donation point, the type of the missing resource and the number of the missing resource, and allocating the resource to the first blood donation point according to the resource allocation plan.
Further, after determining whether an emergency event exists based on the operational data and the donor dispatch plan, the method further includes:
if an emergency event is scheduled by personnel, determining a second blood donation point of the personnel to be scheduled, the type of the absent personnel and the number of the absent personnel according to the operation data;
and acquiring the current staff information of each blood donation point, determining a staff allocation plan according to the blood donation scheduling plan, the current staff information of each blood donation point, the type of the lacking staff and the number of the lacking staff, and performing staff allocation on a second blood donation point according to the staff allocation plan.
Further, determining a donor scheduling plan for each donor site on a target day based on the donor prediction data, comprising:
determining the type and the quantity of the resources required by each preset time point of each blood donation point on the target day according to the blood donation prediction data, and determining the resource scheduling plan of each blood donation point on the target day according to the type and the quantity of the resources required by each preset time point;
Determining the type of staff and the number of staff required by each preset time point of each blood donation point in a target day according to the blood donation prediction data, acquiring staff information, and determining target staff required to be scheduled by each blood donation point at each preset time point according to the staff information, the type of staff and the number of staff;
Acquiring position information of each blood donation point and blood donation point information requiring staff scheduling at each preset time point, determining a staff scheduling route of a target day according to the position information and the blood donation point information requiring staff scheduling at each preset time point, and determining staff scheduling time according to the staff scheduling route and the corresponding preset time point;
determining a personnel scheduling plan of the blood donation point on a target day according to the personnel scheduling route, the personnel scheduling time, the target personnel and the preset time points;
and determining a blood donation scheduling plan of each blood donation point on a target day according to the resource scheduling plan and the personnel scheduling plan.
Further, determining whether an emergency event exists based on the operational data and the donor dispatch plan includes:
determining actual consumption speeds of various types of resources of each blood donation point according to the operation data, and determining predicted consumption speeds of various types of resources at various preset time points according to a resource scheduling plan;
determining a target blood donation point, a target resource type and a target preset time point, wherein the actual consumption speed is greater than the predicted consumption speed;
determining the current stock quantity of the target resource type of the target blood donation point at a target preset time point according to the operation data, and determining the predicted stock quantity of the target resource type of the target blood donation point at the target preset time point according to the resource scheduling plan;
Determining whether a supply-shortage condition exists in a target preset time point of a target resource type of a target blood donation point according to the actual consumption speed, the predicted consumption speed, the current stock quantity and the predicted stock quantity;
If the supply and demand conditions exist, determining that a resource allocation emergency exists;
accordingly, determining the first blood donation point, the type of the missing resource and the number of the missing resources which need to allocate the resources according to the operation data comprises the following steps:
taking the target blood donation point as a first blood donation point needing to allocate resources, and taking the target resource type as a missing resource type;
determining the amount of missing resources based on the actual consumption rate, the predicted consumption rate, the current inventory level, and the predicted inventory level.
Further, determining whether an emergency event exists based on the operational data and the donor dispatch plan further includes:
and determining the real-time average waiting time of the blood donors at each blood donation point in each link according to the operation data, and determining that personnel allocation emergency exists if the average waiting time of the blood donors exceeds a preset waiting time threshold.
Further, determining a second blood donation point, a missing staff type, and a missing staff number of the personnel to be deployed according to the operation data, including:
Taking a donor point with the average waiting time of the donor exceeding a preset waiting time threshold as a second donor point, determining a target link with the average waiting time of the donor exceeding the preset waiting time threshold, and determining the type of the absent staff according to the target link;
and acquiring the number of workers in the target link of the second blood donation point and the estimated average service time of the single blood donor, and determining the number of the missing workers according to the average service time, the average waiting time and the number of the workers.
Further, after each donor site is scheduled according to the donor scheduling plan on the target day, the method further comprises:
If an emergency blood request is received, determining an emergency blood position and emergency blood information according to the emergency blood request;
And acquiring the positions of the blood donation points and the real-time information of the blood donation points, and determining an emergency blood dispatching plan according to the positions of the blood donation points, the real-time information of the blood donation points, the emergency blood positions and the emergency blood information.
Further, determining an emergency blood scheduling plan based on the respective donor site locations, the respective donor site real-time information, the emergency blood locations, and the emergency blood information, includes:
Determining a first blood taking and donation point meeting the requirements of emergency blood information according to the real-time information of each donation point;
acquiring a first blood taking and donation point position, and determining a target blood taking and donation point according to the first blood taking and donation point position and the emergency blood using position;
Acquiring a target blood taking and donation point position, and determining the shortest running route between the target blood taking and donation point and the emergency blood position according to the target blood taking and donation point position and the emergency blood position;
And determining an emergency blood dispatching plan according to the shortest driving route and the emergency blood information.
According to a second aspect of the present application, there is provided an intelligent scheduling system for blood donors, the system comprising:
The blood donation data prediction module is used for acquiring historical blood donation data of each blood donation point and environmental data of a target day, and inputting the historical blood donation data and the environmental data of the target day into the preset blood donation prediction model to obtain blood donation prediction data of each blood donation point on the target day;
a blood donation schedule determination module for determining a blood donation schedule of each blood donation point on a target day based on the blood donation prediction data;
the emergency event determining module is used for scheduling each blood donation point on a target day according to the blood donation scheduling plan, monitoring the operation data of each blood donation point in real time, and determining whether an emergency event exists according to the operation data and the blood donation scheduling plan;
The resource emergency response module is used for determining a first blood donation point, a missing resource type and a missing resource quantity of resources to be allocated according to the operation data if the resource allocation emergency exists;
The resource allocation module is used for acquiring current resource information of each blood donation point, determining a resource allocation plan according to the blood donation scheduling plan, the current resource information of each blood donation point, the type of the lacking resource and the quantity of the lacking resource, and allocating the resource to the first blood donation point according to the resource allocation plan.
According to a third aspect of the present disclosure, an electronic device is provided. The electronic device comprises a memory and a processor, the memory having stored thereon a computer program, the processor implementing the method as described above when executing the program.
In the embodiment of the application, historical blood donation data of each blood donation point and environmental data of a target day are acquired, the historical blood donation data and the environmental data of the target day are input into a preset blood donation prediction model to obtain blood donation prediction data of each blood donation point on the target day, a blood donation scheduling plan of each blood donation point on the target day is determined according to the blood donation prediction data, the operation data of each blood donation point is monitored in real time according to the blood donation scheduling plan on the target day, whether emergency events exist is determined according to the operation data and the blood donation scheduling plan, if emergency events exist, a first blood donation point, a type of lacking resources and the number of lacking resources are determined according to the operation data, current resource information of each blood donation point is acquired, a resource allocation plan is determined according to the blood donation scheduling plan, the current resource information of each blood donation point, the type of lacking resources and the number of lacking resources, and resources are allocated to the first blood donation point according to the resource allocation plan. According to the intelligent scheduling method for the blood donators, the blood donation conditions of all blood donation points on the target day can be more accurately predicted by combining the historical blood donation data and the environmental data, so that a blood donation scheduling plan is optimized, and the efficiency of blood donation activities is improved. By monitoring the operation data of each blood donation point in real time, the emergency system can quickly respond when an emergency occurs, and timely allocate resources to ensure the smooth progress of blood donation activities.
It should be understood that the description in this summary is not intended to limit the critical or essential features of the embodiments of the application, nor is it intended to limit the scope of the application. Other features of the present application will become apparent from the description that follows.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In addition, the term "and/or" is merely an association relation describing the association object, and means that three kinds of relations may exist, for example, a and/or B, and that three kinds of cases where a exists alone, while a and B exist alone, exist alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
The intelligent scheduling method for blood donors provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Example 1
Fig. 1 is a flow chart of an intelligent dispatching method for blood donors according to an embodiment of the application. As shown in fig. 1, the method specifically comprises the following steps:
S101, acquiring historical blood donation data and environmental data of a target day of each blood donation point, and inputting the historical blood donation data and the environmental data of the target day into a preset blood donation prediction model to obtain blood donation prediction data of each blood donation point on the target day.
Firstly, the use scenario of the present embodiment may be a scenario in which the blood donation prediction model predicts the blood donation data of the target day according to the historical blood donation data and the environmental data of the target day, and makes a blood donation scheduling plan of the target day according to the predicted blood donation data, and schedules each blood donation point on the target day according to the blood donation scheduling plan, and identifies whether an emergency event exists, and if the emergency event exists, emergency event handling is performed according to the corresponding handling policy.
Based on the above usage scenario, it can be understood that the execution subject of the present application may be a blood donation point personnel and resource intelligent scheduling system that integrates the functions of making a blood donation scheduling plan, scheduling a blood donation point, identifying an emergency event, and coping with the emergency event, without any limitation.
In this scheme, donation point can refer to appointed place, supplies people to go to donation blood, and specifically, these places can be facilities such as hospital, community center and donation car, make things convenient for people to donate blood to satisfy medical institution's demand to blood.
The historical blood donation data may be a record of past blood donations collected at various points of donation, and in particular, may include date of donation, amount of donation, age, sex, and blood type of the donor.
A target day may refer to a particular day of interest for which prediction is desired to be made of the donation occurring on a particular day.
The environmental data of the target day may refer to related environmental information within the target day and the surrounding time, and specifically may include weather conditions such as air temperature, precipitation amount, wind speed, etc., holiday information, special activities, etc. These environmental factors may affect one's willingness to donate blood and therefore their impact on the blood donation prediction needs to be considered.
The preset blood donation prediction model may be a mathematical model for predicting the amount of blood donation in a certain period of time in the future based on historical blood donation data and environmental data, and in particular, the models may be constructed based on statistical methods, machine learning algorithms, deep learning techniques, or the like, so as to more accurately predict the blood donation behavior.
The blood donation prediction data may be the number of blood donors predicted at each donor site on the target day, the amount of blood donated, and the corresponding blood donation blood type, as a result of a preset blood donation prediction model.
Historical blood donation data of each blood donation point can be queried through a database of a blood donation point management system or a related institution, weather conditions can be acquired through a weather bureau or related weather forecast service, and other environmental factors can be acquired through querying public information sources such as holiday information, local activity calendars and the like. When the preset blood donation prediction model is trained, historical blood donation data and environmental data of a target day can be converted into characteristics suitable for model input, and concretely, the method can comprise the steps of processing the date to extract seasonal and week-number equal characteristics, encoding weather data or constructing weather characteristics, and encoding environmental factors such as holidays or extracting related characteristics. Then selecting a proper blood donation prediction model for training, using historical blood donation data as a training set, and utilizing environmental data of a target day for characteristic input. For example, the time characteristic season and day of the week are added, the weather is encoded, the sunny day is 1, the cloudy day is 2, the rainy day is 3, etc., the holiday is encoded, the holiday is 1, not 0, etc. When model training is completed, historical blood donation data and environmental data of the target day can be combined into a complete feature vector. And finally, inputting the feature vector into a preset blood donation prediction model to obtain the blood donation prediction data of each blood donation point on the target day.
S102, determining a blood donation scheduling plan of each blood donation point on a target day according to the blood donation prediction data.
A donor schedule may refer to determining a particular work schedule and resource allocation scheme for each donor site on a target day based on donor prediction data to ensure that predicted donor needs can be effectively addressed, and may include both resource scheduling and personnel scheduling. Wherein the resource scheduling can ensure that the blood donation point has enough supplies and equipment, such as blood collection apparatuses, blood bags, disinfection supplies and the like, on the target day. According to the predicted blood donation amount and the number of blood donations, the materials need to be allocated in time so as to meet the requirements of blood donation activities. If the predicted donation amount of some donation points is higher, the corresponding supply of supplies may be increased. Personnel scheduling may include scheduling sufficient staff to ensure that blood donation is performed successfully. In particular, medical personnel, volunteers, etc. may be included. According to the predicted number of blood donors and the workload of blood donation points, the number of personnel and the working time are required to be reasonably arranged, so that the registration, blood collection and subsequent service of the blood donors can be timely processed.
The work flow and arrangement can be determined by making a blood donation schedule according to the predicted data and the actual condition of the blood donation point, and defining the requirements of resources and personnel. According to the blood donation amount in the blood donation prediction data, materials and equipment are timely allocated, so that each blood donation point is ensured to have enough supply, and the supply amount of the materials is increased when required. The number of workers and the working time are reasonably arranged according to the number of blood donors in the blood donation prediction data. Ensuring that each donor site has sufficient healthcare staff and volunteers to handle the registration, collection and subsequent servicing of the donor.
And S103, scheduling each blood donation point on the target day according to the blood donation scheduling plan, monitoring the operation data of each blood donation point in real time, and determining whether an emergency event exists according to the operation data and the blood donation scheduling plan.
The operation data of each blood donation point can comprise the number and the quantity of blood donators, the specific conditions of the materials of the blood donation point, blood collection devices, blood bags, disinfection products and the like;
emergency events may include resource-related emergency events that, when insufficient supply of supplies or equipment at a point of donation fails, affect the proper performance of the donation, resulting in temporary suspension or delay of the donation, requiring emergency supplies or maintenance equipment. Emergency events in personnel aspect can influence the progress of blood donation activities when the number of medical staff or volunteers at a certain blood donation point is insufficient and the requirements of the blood donation activities cannot be met, and emergency dispatch staff is needed.
The data acquisition system or the monitoring platform can be arranged, the operation data of each blood donation point can be collected in real time, the collected data are transmitted to the central monitoring center through a network, the received data are processed and analyzed in the monitoring system, specifically, the data can be converted into an intuitive chart by utilizing a data visualization technology, and an emergency judgment rule and logic are established, for example, when the stock of materials of a certain blood donation point is lower than a set threshold value, the number of blood donators exceeds the processing capacity of the blood donation point, the number of medical staff and volunteers is insufficient, and the like, the emergency judgment is triggered.
Based on the foregoing technical solution, optionally, after determining whether an emergency event exists according to the operation data and the blood donation scheduling plan, the method further includes:
if an emergency event is scheduled by personnel, determining a second blood donation point of the personnel to be scheduled, the type of the absent personnel and the number of the absent personnel according to the operation data;
and acquiring the current staff information of each blood donation point, determining a staff allocation plan according to the blood donation scheduling plan, the current staff information of each blood donation point, the type of the lacking staff and the number of the lacking staff, and performing staff allocation on a second blood donation point according to the staff allocation plan.
In this embodiment, the second blood-donation point may refer to the blood-donation point where the personnel need to be allocated in the emergency, i.e. the blood-donation point where the personnel are absent.
The types of workers that are missing may include both healthcare workers and volunteers. The number of workers missing is the number of workers of some type missing from the second donor site.
The personnel status of each blood-donation point can be analyzed according to the data monitored in real time, whether personnel allocation emergency events exist or not is determined, namely whether certain blood-donation points lack enough staff to deal with the current blood-donation requirement, if yes, the second blood-donation point needing to allocate the personnel, namely the blood-donation point lacking staff is determined, and specifically, the judgment can be performed according to the condition that the number of the staff of the current blood-donation point is insufficient to deal with the blood-donation requirement. Based on the second donor site, the type and number of workers missing is determined. Specifically, the number of missing workers needs to be determined by estimating according to actual conditions and requirements in consideration of the requirements of various working posts.
The current staff information may include the current staff status of each blood donation point, and specifically, may include the type, number and distribution of staff.
The personnel allocation plan may be a plan for allocating personnel to the second donor site, which determines which donor sites require allocation of corresponding personnel to the second donor site, based on current personnel information and donor demand.
The method comprises the steps of collecting current staff information of each blood-donation point, determining the type, the number and the distribution condition of staff of each blood-donation point, determining the type of staff expected to be needed by each blood-donation point and the number of corresponding staff according to a blood-donation scheduling plan, determining the relatively sufficient blood-donation point of the staff according to the type, the number and the distribution condition of the staff of each actual blood-donation point, determining the blood-donation point for the staff allocation of a second blood-donation point according to the type of the lacking staff and the number of the lacking staff, writing the blood-donation point into the staff allocation plan, and allocating the staff to be scheduled from the corresponding blood-donation point to the second blood-donation point through a transport vehicle. For example, in the process of monitoring the blood donation activity in real time, it is found that the number of registered nurses at the blood donation site a is insufficient to cope with the current blood donation demand, 2 registered nurses need to be allocated, 3 registered nurses at the blood donation site B need 2 registered nurses according to the blood donation scheduling plan, 2 registered nurses at the blood donation site C need 1 registered nurse according to the blood donation scheduling plan, and 1 registered nurse from the blood donation site B to the blood donation site a and 1 registered nurse from the blood donation site C to the blood donation site a are determined.
In the scheme, according to the blood donation scheduling plan and the actual demand, the staff is reasonably allocated, the existing resources can be utilized to the maximum extent, the resource waste and excessive allocation are avoided, the working efficiency of the blood donation activity is effectively improved, and the blood donation point is ensured to work smoothly.
Based on the above technical solution, optionally, determining whether an emergency event exists according to the operation data and the blood donation scheduling plan includes:
determining actual consumption speeds of various types of resources of each blood donation point according to the operation data, and determining predicted consumption speeds of various types of resources at various preset time points according to a resource scheduling plan;
determining a target blood donation point, a target resource type and a target preset time point, wherein the actual consumption speed is greater than the predicted consumption speed;
determining the current stock quantity of the target resource type of the target blood donation point at a target preset time point according to the operation data, and determining the predicted stock quantity of the target resource type of the target blood donation point at the target preset time point according to the resource scheduling plan;
Determining whether a supply-shortage condition exists in a target preset time point of a target resource type of a target blood donation point according to the actual consumption speed, the predicted consumption speed, the current stock quantity and the predicted stock quantity;
If the supply and demand conditions exist, determining that a resource allocation emergency exists;
accordingly, determining the first blood donation point, the type of the missing resource and the number of the missing resources which need to allocate the resources according to the operation data comprises the following steps:
taking the target blood donation point as a first blood donation point needing to allocate resources, and taking the target resource type as a missing resource type;
determining the amount of missing resources based on the actual consumption rate, the predicted consumption rate, the current inventory level, and the predicted inventory level.
In this scheme, the actual consumption rate may refer to the consumption rate of various types of resources at each blood donation point in the actual operation process. The method is obtained according to actual conditions and real-time data statistics, and reflects the use condition of resources in reality.
The predicted consumption rate may refer to a predicted consumption rate of each type of resource at each blood donation point at each preset time point according to the resource scheduling plan and the preset time point.
Operational data for each point of donation may be collected, including consumption of various types of resources, and in particular, such data may be obtained from a management system for the point of donation. And then analyzing the collected operation data, calculating the actual consumption speed of various types of resources of each blood donation point, and converting the consumption speed into the consumption speed, such as the consumption amount or the consumption rate in unit time, by counting the consumption amount of various types of resources in a certain time. Then according to the resource scheduling plan and the preset time points, predicting the consumption speed of each type of resources at each preset time point of the target day, specifically, the first preset time point can be taken as a starting point, the predicted consumption speed of the starting point is 0, the required resource quantity is also 0, then the total duration between the first preset time point and the adjacent second preset time point is calculated, then the required quantity of each type of resources at the second preset time point is obtained, and then the following formula is called to calculate the predicted consumption speed:
Wherein the resource consumption is the difference between the predicted resource consumption of two adjacent preset time points; the total time length is the total time length between two preset time points. When the predicted consumption rate is calculated using this formula, the calculated result is taken as the predicted consumption rate at the second preset time point, and so on. For example, if the number of resources required for the blood bag at the first preset time point is 0, the number of resources required for the blood bag at the second preset time point is 60, and the total duration between the adjacent preset time points is 1 hour, the predicted consumption rate corresponding to the blood bag at the second preset time point may be 60/hour, or expressed as 1/minute.
If the actual consumption speed is detected to be larger than the predicted consumption speed, the corresponding target blood donation point, the target resource type and the target preset time point are determined. For example, if it is calculated that the actual consumption speed of the blood bag at the blood donation point a at 10 am on the target day is greater than the predicted consumption speed, the target blood donation point is the blood donation point a, the target resource type is the blood bag, and the target preset time point is 10 am on the target day.
The current inventory may be an actual inventory of the target donor site target resource type at the target preset point in time. This is recorded according to the actual situation, reflecting the number of resources that the target donor site has at the current moment.
The predicted inventory amount may be a predicted inventory amount of the target resource type at the target preset point in time at the target donor site according to the resource scheduling plan. This is determined based on the predicted situation and the scheduling plan, reflecting the number of resources that the target donor site is predicted to possess at some future point in time.
Operational data for the target donor site may be collected, including information such as the current inventory of the target resource type. And then determining the total stock quantity of the target resource types of the target blood donation points on the target day from the resource scheduling plan, determining the sum of consumption quantities of the target resource types of all preset time points before the target preset time point, and subtracting the sum of consumption quantities from the total stock quantity to obtain the predicted stock quantity of the target resource types of the target blood donation points on the target preset time point. If the current stock quantity is less than or equal to the predicted stock quantity, the existence of the resource allocation emergency can be directly determined. If the current stock quantity is more than the predicted stock quantity, determining the total quantity of the target resource type of the target blood donation point which is lack at the target preset time point according to the actual consumption speed and the predicted consumption speed, subtracting the predicted stock quantity from the current stock quantity, if the calculation result is more than the total quantity which is lack, no supply and demand situation exists, otherwise, the supply and demand situation exists, and determining that the resource allocation emergency event exists. For example, if the actual consumption speed of the blood bags at 10 am of the target blood donation point is 2/min, the predicted consumption speed is 1/min, and the interval between each preset time points is 1 hour, it is determined that 60 blood bags are missing at 10 am of the target blood donation point, if the predicted stock quantity at this time is 300, the actual stock quantity is 320, the current stock quantity cannot be supplemented with 60 blood bags, it is determined that there is a supply and a demand situation, and it is further determined that there is a resource allocation emergency.
The amount of resources to be supplemented can be calculated according to the actual consumption speed and the predicted consumption speed, the amount of resources to be supplemented can be calculated according to the current stock amount and the predicted stock amount, and finally the amount of resources to be supplemented is subtracted from the amount of resources to be supplemented to obtain the amount of resources to be lacking.
In the scheme, the actual consumption speed and the predicted consumption speed are predicted and compared, so that the possible resource supply and demand conditions of the target blood donation point at the future time point can be known in advance, timely adjustment measures can be taken, and the situations of resource supply and demand are avoided.
On the basis of the above technical solution, optionally, determining, according to the operation data, a second blood donation point of a person to be allocated, a missing type of staff, and a missing number of staff, includes:
Taking a donor point with the average waiting time of the donor exceeding a preset waiting time threshold as a second donor point, determining a target link with the average waiting time of the donor exceeding the preset waiting time threshold, and determining the type of the absent staff according to the target link;
and acquiring the number of workers in the target link of the second blood donation point and the estimated average service time of the single blood donor, and determining the number of the missing workers according to the average service time, the average waiting time and the number of the workers.
In this scenario, the target link may be a link where the mean waiting time of the donor exceeds a preset waiting time threshold.
The average waiting time of each link of each blood donation point can be calculated according to the data monitored in real time, and the blood donation points with the waiting time exceeding the preset threshold value are identified. For a donor site identified as having a latency exceeding a threshold, a determination is made as to which link resulted in the latency being too long, and the link for which the average donor latency exceeds a preset latency threshold is targeted. The type of staff required to analyze a target link to be identified may be determined based on the nature and workflow of the link, for example, a nurse or medical technician may be required in a blood donation link, while a consultant or volunteer may be required in a consultation link, etc.
The number of staff members of a target link may refer to the number of staff members currently in the link.
The average service time of an individual donor may refer to the average required service time expected for each donor in the target segment, and may include, in particular, the time required for the segments of consultation, registration, and donor.
Queuing theory may be used to determine the number of missing workers based on average service time, average waiting time, and number of workers, and may specifically include the parameter average service time (S), the average time required for each worker to serve one donor. Average waiting time (w_avg), i.e., the average waiting time of the donor at the target link. The number of workers currently present (c_current), i.e. the number of workers currently working in the target link. Average arrival rate (lambda), i.e., the number of donors arriving at a donor site per unit time. The existing service rate is then calculated by the following formula:
μ=1/S
where the service rate (μ) may be the number of donors that can be serviced per unit time by a single worker.
The current total service rate (μ_total) is then calculated using the following formula:
μ_total=c_current*μ
Using the queuing theory model and the known average waiting time w_avg to evaluate the performance of the existing system, in particular, may include solving equations in the queuing model to find the service strength ρ that matches w_avg, where ρ=λ/μ_total. A desired or acceptable maximum average waiting time (W_max) is then determined, which represents the target service level. The total service rate (μ_required) required to meet the latency is back-extrapolated according to w_max and queuing theory models, and specifically may involve the use of iterative or numerical methods. Once μ_required is present, the number of staff members required (c_required) can be calculated. Since mu=1/S, and μ required = c required, c_required=μ_required/μ can be solved. Finally, the number of workers missing is c_required minus c_current.
In this scheme, through confirming the staff quantity that lacks, can in time allocate sufficient manpower resources to the place that needs to satisfy actual demand, thereby reduce donor latency, improve service efficiency and quality.
Based on the above technical solution, optionally, after each blood donation point is scheduled according to the blood donation scheduling plan on the target day, the method further includes:
If an emergency blood request is received, determining an emergency blood position and emergency blood information according to the emergency blood request;
And acquiring the positions of the blood donation points and the real-time information of the blood donation points, and determining an emergency blood dispatching plan according to the positions of the blood donation points, the real-time information of the blood donation points, the emergency blood positions and the emergency blood information.
In this scenario, the urgent blood request may refer to a request sent by a hospital or other medical institution that needs to obtain blood in an urgent manner. The emergency blood information may include the blood type and amount of blood needed for the emergency blood.
The real-time information for each donor site may include the current available blood inventory for each donor site and the corresponding blood type information for the blood.
The emergency blood dispatching plan can be a plan for determining how to allocate resources and blood according to the position and blood consumption information of the emergency blood request and the position and real-time information of each blood donation point, and can specifically comprise the information of the blood donation point, the blood collection amount, the corresponding blood collection type and the like needing blood collection, wherein the plan meets the requirement of the emergency blood at the highest speed.
When an emergency blood request is received, an emergency blood location and emergency blood information may be acquired. The position information and the real-time information of each blood donation point are acquired, and specifically, the position information and the real-time information can be acquired through a database or a monitoring system of the blood donation center. According to the emergency blood information and the real-time information of each blood donation point, the blood donation point meeting the requirements of the blood collection amount and the blood collection type is determined, and according to the emergency blood position and the position information of the blood donation point meeting the requirements, the blood donation point meeting the requirements closest to the emergency blood position is determined, and specifically, the method can be realized by calculating a distance or a geographic information system. And writing the blood donation point, the emergency blood position and the emergency blood information to an emergency blood dispatch plan.
In the scheme, according to the urgent blood request and the information of the blood donation points, the optimal blood donation point can be rapidly determined, and timely response to the urgent blood request is ensured.
On the basis of the above technical solution, optionally, determining an emergency blood dispatching plan according to the positions of the blood donation points, the real-time information of the blood donation points, the emergency blood positions and the emergency blood information includes:
Determining a first blood taking and donation point meeting the requirements of emergency blood information according to the real-time information of each donation point;
acquiring a first blood taking and donation point position, and determining a target blood taking and donation point according to the first blood taking and donation point position and the emergency blood using position;
Acquiring a target blood taking and donation point position, and determining the shortest running route between the target blood taking and donation point and the emergency blood position according to the target blood taking and donation point position and the emergency blood position;
And determining an emergency blood dispatching plan according to the shortest driving route and the emergency blood information.
In this embodiment, the first blood-taking and blood-donation point may be a set of all blood-donation points that can meet the urgent blood information requirement.
The target blood-taking and donation site may be a final selected blood-donation site determined from the first blood-taking and donation site location and the emergency blood-taking location for providing an emergency blood supply, and may specifically be the closest donation site to the emergency blood-taking location.
The shortest travel route may refer to the shortest path from the target blood-taking donation point to the point of emergency use.
The required blood taking amount and the corresponding blood type can be determined according to the emergency blood information, and then all blood taking points meeting the requirements are screened according to the blood taking amount and the corresponding blood type to serve as first blood taking points. The closest blood taking point from the emergency blood taking position is selected as the target blood taking point. The shortest travel route between the target blood-taking and blood-donating point and the emergency blood-using position is determined by using map data and a route planning algorithm. And finally, making an emergency blood dispatching plan according to the shortest driving route and the emergency blood information, and ensuring that the blood is timely conveyed to the emergency blood position.
In the scheme, the transportation time can be reduced and the emergency response capability can be improved by determining the target blood taking and donation point and the shortest driving route.
And S104, if the resource allocation emergency event exists, determining a first blood donation point, a missing resource type and a missing resource quantity of resources to be allocated according to the operation data.
The first point of donation may refer to the point of donation from which resource allocation is first required among all points of donation, and the type and amount of resources that are missing may refer to the type and amount of supplies that are missing from the point of donation.
The collected operational data may be analyzed to determine which donor site requires preferential allocation of resources, and specifically, may include factors such as the lowest inventory of materials and the greater number of donors. And determining a first blood donation point needing to allocate resources according to the analysis result. When the first donor site is determined, the type and amount of resources that are missing from the donor site may be determined, and in particular, may be determined by comparing the actual inventory and demand. For example, during real-time monitoring of a donation event, point a is found to have a low stock of materials and is predicted to be in greater demand for future donation events. Thus, donor site A is determined to be the first donor site where the resource needs to be allocated. The types of resources that are lacking may include blood collection sets, blood bags, and sterilization supplies. Based on the data analysis of real-time monitoring, the blood donation point A is found to lack 10 sets of blood collection devices, 50 blood bags and 5 bottles of disinfection products. Therefore, these resources need to be allocated to ensure proper operation of donor site a.
S105, current resource information of each blood donation point is obtained, a resource allocation plan is determined according to the blood donation scheduling plan, the current resource information of each blood donation point, the type of the missing resource and the number of the missing resource, and resource allocation is carried out on the first blood donation point according to the resource allocation plan.
The current resource information of each blood donation point can refer to the current stock condition of materials of each blood donation point, and concretely, the current stock condition of blood collection apparatuses, blood bags and disinfection supplies can be included.
The resource allocation plan may be a determination of which resources need to be allocated from which donor sites to transport to the first donor site, and the number of allocation.
The method comprises the steps of acquiring current material stock information from each blood donation point, determining material conditions required by each blood donation point according to a blood donation scheduling plan, determining sufficient material stock of the blood donation points according to current resource information of each blood donation point and predicted required material conditions, determining which resources are required to be allocated from which blood donation points to meet requirements according to the types of the lacking resources and the quantity of the lacking resources, and putting the corresponding blood donation points, the allocated resource types and the corresponding quantity of the resources into a resource allocation plan. And according to the resource allocation plan, allocating the determined resources from the corresponding blood donation points to the first blood donation point, and scheduling logistics personnel to transport and allocate materials. For example, according to a blood donation scheduling plan and real-time monitoring data, it is determined that point a requires allocation of resources, and that 50 blood collection sets, 40 blood bags, and 60 sterilization supplies are missing. And according to the blood donation scheduling plan, determining that 30 blood collection apparatuses, 20 blood bags and 40 disinfection supplies are needed for the blood donation point B plan, wherein the blood donation point B plan actually has 60 blood collection apparatuses, 40 blood bags and 80 disinfection supplies, the blood donation point C plan needs 30 blood collection apparatuses, 20 blood bags and 40 disinfection supplies, and the blood donation point C plan actually has 50 blood collection apparatuses, 40 blood bags and 60 disinfection supplies, determining that 30 blood collection apparatuses, 20 blood bags and 40 disinfection supplies are taken out of the blood donation point B to be conveyed to A, taking out 20 blood collection apparatuses, 20 blood bags and 20 disinfection supplies from the blood donation point C to be conveyed to A, and writing a resource allocation plan.
According to the technical scheme, historical blood donation data of all blood donation points and environmental data of target days are obtained, the historical blood donation data and the environmental data of the target days are input into a preset blood donation prediction model to obtain blood donation prediction data of all the blood donation points on the target days, a blood donation scheduling plan of all the blood donation points on the target days is determined according to the blood donation prediction data, operation data of all the blood donation points are monitored in real time according to the blood donation scheduling plan, whether emergency events exist or not is determined according to the operation data and the blood donation scheduling plan, if emergency events exist, a first blood donation point, the type of resources which are needed to be allocated and the number of resources which are lack are determined according to the operation data, current resource information of all the blood donation points is obtained, a resource allocation plan is determined according to the blood donation scheduling plan, the current resource information of all the blood donation points, the type of the resources which are lack and the number of resources which are lack, and resources are allocated to the first blood donation point according to the resource allocation plan. According to the intelligent scheduling method for the blood donators, the blood donation conditions of all blood donation points on the target day can be more accurately predicted by combining the historical blood donation data and the environmental data, so that a blood donation scheduling plan is optimized, and the efficiency of blood donation activities is improved. By monitoring the operation data of each blood donation point in real time, the emergency system can quickly respond when an emergency occurs, and timely allocate resources to ensure the smooth progress of blood donation activities.
Example two
Fig. 2 is a flow chart of an intelligent dispatching method for blood donors according to a second embodiment of the present application, as shown in fig. 2, and the specific method includes the following steps:
S201, determining the type and the quantity of the resources required by each preset time point of each blood donation point on the target day according to the blood donation prediction data, and determining the resource scheduling plan of each blood donation point on the target day according to the type and the quantity of the resources required by each preset time point.
The predetermined time point may be a time point preset in the blood donation activity for planning and scheduling the progress of the blood donation activity, and in this embodiment, from 0 point per day, an hour may be set as a predetermined time point.
The type of resources and the number of resources required are determined according to the predicted blood donation data, and depend on the predicted number of blood donors, the amount of blood donations and the scale and the requirement of blood donation activities, wherein the types of resources required can comprise blood collection devices, equipment for collecting blood samples, particularly needles, pipes and the like, blood bags, bags for storing the collected blood samples, disinfectants for disinfecting blood donation sites and blood collection devices, and medical devices such as blood pressure meters, thermometers and the like. The amount of resources may be estimated based on the predicted number of donors and the amount of donated blood to ensure that the demand for blood donation activity is met at each preset point in time.
The expected scale and demand of each preset point in time blood donation activity may be analyzed to determine the type and amount of resources required based on the blood donation prediction data. According to the types and the quantity of the resources required by each preset time point, a resource scheduling plan of each blood donation point is formulated, specifically, the required quantity of each resource type of each preset time point in each blood donation point can be added to obtain the total quantity required by each resource type of one whole day of a target day, and the total quantity required by each resource type is written into the resource scheduling plan.
S202, determining the type of staff and the number of staff required by each preset time point of each blood donation point in a target day according to the blood donation prediction data, acquiring staff information, and determining target staff required to be scheduled by each blood donation point at each preset time point according to the staff information, the type of staff and the number of staff.
The staff information may refer to the staff condition of all staff currently existing, and specifically may include the type and number of staff.
The target staff may be staff that need to be dispatched to the individual donor sites at the respective preset time points, ensuring that each donor site has a sufficient number and type of staff at each preset time point to address the needs of the donor activity.
The type and the number of the staff required by each blood donation point at each preset time point of the target day can be analyzed according to the blood donation prediction data, the information of all the staff which can be scheduled on the target day is obtained in the database, and the target staff required to be scheduled at each preset time point is determined according to the type and the number of the staff required by each preset time point of the blood donation point at the target day and the staff information. In determining the target staff, the requirement of each blood donation point for various staff and the number of the existing staff of each blood donation point are considered. If the number of staff of a certain type at a certain point in time is abundant at a certain preset point in time, then the excess staff can be dispatched to other points in time to meet their needs. For example, 2 medical staff is required at 10 am for a blood donation point, 5 medical staff is required at 10 am for a blood donation point, staff information is obtained, and it is determined that the two blood donation points require dispatch of medical staff at 10 am. And the next preset time point determines that the blood donation point A needs 4 medical staff, and the blood donation point B needs 3 medical staff, so that 2 medical staff with abundant blood donation points B can be dispatched to the blood donation point A, and the target staff to be dispatched at each preset time point can be obtained by the same.
S203, acquiring position information of each blood donation point and blood donation point information requiring staff scheduling at each preset time point, determining a staff scheduling route of a target day according to the position information and the blood donation point information requiring staff scheduling at each preset time point, and determining staff scheduling time according to the staff scheduling route and the corresponding preset time point.
The location information may refer to geographic location coordinates of the individual donor sites for determining the distance and relative positional relationship between the individual donor sites.
The donor site information may include the name, number, and location of the donor site.
The worker scheduling route may be a scheduling route for determining the worker on the target day according to the position information of each blood donation point and the information of the blood donation point to be scheduled, and specifically may include determining an optimal driving route or walking route between each blood donation point.
The staff scheduling time may include a departure time and an arrival time of the staff.
The position information of each blood donation point can be acquired through map service or a related geographic information database, and the information of the blood donation point which needs to be scheduled by the staff at each preset time point is determined according to the staff scheduling plan. And determining a worker scheduling route of the target day by utilizing the collected position information and scheduling information and combining a map service or a navigation tool, and determining an optimal driving route or walking route by using a route planning tool or software according to the position and scheduling sequence of the blood donation point. When a worker schedule route is determined, the time to travel on the schedule route may be calculated. And calculating the departure time and the arrival time according to the target preset time point to be scheduled, and combining the departure time and the arrival time into the scheduling time of the staff. For example, if it is determined that 2 medical staff is to be scheduled from a donor site to B donor site on the target day at 10 am, the staff scheduling route from a donor site to B donor site is queried based on the obtained location information for each donor site. And then calculating how much distance is needed by the route, determining how long the route needs to travel, if the route needs to travel for 10 minutes, determining that the route starts from the blood donation point A at 9 am and starts from the blood donation point B at 10 am, writing the starting time and the arrival time into the staff scheduling time, and the like, and determining all preset time points, corresponding staff scheduling routes and staff scheduling time which need to be scheduled by the staff.
S204, determining a personnel scheduling plan of the blood donation point on a target day according to the personnel scheduling route, the personnel scheduling time, the target personnel and the preset time points.
The determined staff scheduling route, staff scheduling time, target staff and preset time point can be written into a staff scheduling plan, and specifically, the form of the preset time point-staff scheduling route-staff scheduling time-target staff can be expressed.
S205, determining a blood donation scheduling plan of each blood donation point on a target day according to the resource scheduling plan and the personnel scheduling plan.
After the resource scheduling plan and the personnel scheduling plan are determined, the resource scheduling plan and the personnel scheduling plan are combined to form the blood donation scheduling plan of the target day.
In this embodiment, by reasonably scheduling resources and personnel, the utilization rate of the resources can be optimized to the greatest extent, and resource idling and waste are avoided, so that the efficiency is improved and the cost is reduced. And resources and personnel can be rapidly allocated, so that smooth blood donation activities are ensured.
Example III
Fig. 3 is a flow chart of an intelligent dispatching method for blood donors according to a third embodiment of the present application, as shown in fig. 3, and the specific method includes the following steps:
S301, acquiring historical blood donation data and environmental data of a target day of each blood donation point, and inputting the historical blood donation data and the environmental data of the target day into a preset blood donation prediction model to obtain blood donation prediction data of each blood donation point on the target day.
S302, determining a blood donation scheduling plan of each blood donation point on a target day according to the blood donation prediction data.
S303, scheduling each blood donation point according to the blood donation scheduling plan on a target day, monitoring operation data of each blood donation point in real time, determining real-time average waiting time of blood donators of each blood donation point in each link according to the operation data, and determining that personnel allocation emergency exists if the average waiting time of the blood donators exceeds a preset waiting time threshold.
The real-time average wait time may be the average wait time of the donor in the queue for each link, including the time spent in the in-line wait process, until they can receive the donor service.
The preset wait time threshold may refer to a previously set maximum allowable value of donor wait time. If the real-time average queuing time of the donor exceeds the threshold, the queuing time is excessively long, and corresponding measures need to be considered to reduce the queuing time so as to improve service efficiency.
Personnel allocation emergency events may be emergency situations triggered when the real-time average queuing time of the donor exceeds a preset waiting time threshold. In this case, more staff is required to be allocated to reduce the queuing time and ensure the smooth progress of the blood donation activity.
The monitoring system or software can be used for monitoring the operation data of each link in real time, including a blood donation link, a consultation link and a registration link. And recording the arrival time of each donor, the time of entering each link, the time of finishing each link and the like. For the blood donation link, the waiting time of all the blood donors in the blood donation link before the current time point can be calculated according to the time stamp of the blood donor entering the blood donation link, and the average value is calculated as the real-time average waiting time. And for the consultation link and the registration link, calculating the waiting time of all blood donors before the current time point in the links according to the time stamps of the blood donors entering the consultation link and the registration link, and respectively averaging to obtain the average value as the real-time average waiting time. For example, the time for each donor to enter the donor session at point A is 09:00 for donor A, 09:05 for donor B, and 09:15 for donor C. The wait time of these donors during the donor session can be calculated and then averaged as a real-time average wait time. Comparing the real-time average waiting time of each link with a preset waiting time threshold value, and if the real-time average waiting time of each link exceeds the preset waiting time threshold value, determining that personnel allocation emergency event exists.
In this embodiment, monitoring the real-time average waiting time of each link in time can help the manager to know the waiting condition of the donor, so that measures can be taken in time, the waiting time can be shortened, and the blood donation efficiency and the user experience can be improved.
Example IV
Fig. 4 is a schematic structural diagram of an intelligent dispatching system for blood donors according to a fourth embodiment of the present application, as shown in fig. 4, specifically including the following steps:
The blood donation data prediction module 401 is configured to obtain historical blood donation data of each blood donation point and environmental data of a target day, and input the historical blood donation data and the environmental data of the target day into a preset blood donation prediction model to obtain blood donation prediction data of each blood donation point on the target day;
a blood donation schedule determination module 402 for determining a blood donation schedule for each donor site on a target day based on the blood donation prediction data;
An emergency determining module 403, configured to schedule each blood-donation point on a target day according to the blood-donation scheduling plan, monitor operation data of each blood-donation point in real time, and determine whether an emergency exists according to the operation data and the blood-donation scheduling plan;
A resource emergency response module 404, configured to determine, if there is a resource allocation emergency, a first blood donation point, a type of a missing resource, and a number of missing resources that need to allocate resources according to the operation data;
The resource allocation module 405 is configured to obtain current resource information of each blood-donation point, determine a resource allocation plan according to the blood-donation scheduling plan, the current resource information of each blood-donation point, the type of the missing resource, and the number of the missing resource, and allocate the resource to the first blood-donation point according to the resource allocation plan.
The embodiment of the application comprises a blood donation data prediction module, a blood donation scheduling plan determining module, an emergency event determining module, a resource emergency response module and a resource allocation module, wherein the blood donation data prediction module is used for acquiring historical blood donation data of each blood donation point and environmental data of a target day, inputting the historical blood donation data and the environmental data of the target day into a preset blood donation prediction model to obtain the blood donation prediction data of each blood donation point on the target day, the blood donation scheduling plan determining module is used for determining a blood donation scheduling plan of each blood donation point on the target day according to the blood donation prediction data, the emergency event determining module is used for scheduling each blood donation point on the target day according to the blood donation scheduling plan, monitoring operation data of each blood donation point in real time, determining whether emergency events exist according to the operation data and the blood donation scheduling plan, and if emergency event occurs, determining a first blood donation point needing to allocate resources, a lack of resources type and lack of resources according to the operation data, and determining a resource allocation plan according to the current resource information of each blood donation point, the resource allocation plan and the allocation plan. Through the intelligent dispatching system for the blood donators, the blood donation condition of each blood donation point on the target day can be more accurately predicted by combining the historical blood donation data and the environmental data, so that a blood donation dispatching plan is optimized, and the efficiency of blood donation activities is improved. By monitoring the operation data of each blood donation point in real time, the emergency system can quickly respond when an emergency occurs, and timely allocate resources to ensure the smooth progress of blood donation activities.
Example five
Fig. 5 shows a schematic block diagram of an electronic device 500 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
The electronic device 500 includes a computing unit 501 that can perform various appropriate actions and processes according to a computer program stored in a ROM502 or a computer program loaded from a storage unit 508 into a RAM 503. In the RAM503, various programs and data required for the operation of the electronic device 500 may also be stored. The computing unit 501, ROM502, and RAM503 are connected to each other by a bus 504. I/O interface 505 is also connected to bus 504.
Various components in the electronic device 500 are connected to the I/O interface 505, including an input unit 506 such as a keyboard, a mouse, etc., an output unit 507 such as various types of displays, speakers, etc., a storage unit 508 such as a magnetic disk, optical disk, etc., and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the electronic device 500 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as the donor intelligent scheduling method. For example, in some embodiments, the intelligent donor person scheduling method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 500 via the ROM502 and/or the communication unit 509. When the computer program is loaded into RAM503 and executed by computing unit 501, one or more steps of the donor intelligent scheduling method described above may be performed. Alternatively, in other embodiments, computing unit 501 may be configured to perform the donor intelligent scheduling method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems-on-chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be a special or general purpose programmable processor, operable to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
The foregoing description is only of the preferred embodiments of the application and the technical principles employed. The present application is not limited to the specific embodiments described herein, but is capable of numerous modifications, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Thus, while the application has been described in detail in terms of the above embodiments, the application is not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the application.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution disclosed in the present application can be achieved, and are not limited herein.