Hospital outpatient scheduling data generation method and device
By using the weekly schedule number source pool and the first characteristic code of the number, the daily schedule table and number source pool are generated, the problem of frequent database operations during the outpatient scheduling process of the hospital is solved, and the scheduling efficiency and user experience are improved.
Patent Information
- Application Number
- CN202411952418.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-05-27
AI Technical Summary
During the outpatient scheduling process of hospital outpatient scheduling, changes in registration paths or number sources require frequent reading and updating of the database, resulting in increased scheduling time, poor user experience, and low source management efficiency.
The corresponding daily schedule and daily schedule source pool are generated through the weekly schedule source pool and the first characteristic code of the number, so as to avoid frequent reading and updating of the database.
The time required for the scheduling process is reduced, and users can operate in real time, improving user experience and source management efficiency.
Smart Images

Figure CN120048452A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular, to a method, device, and storage medium for generating hospital outpatient scheduling data. Background Art
[0002] With the continuous improvement of informatization construction and the rapid popularization of Internet hospitals, there are more and more ways for patients to register. For example, registration at the window, self-service machine registration, online App registration, 114 registration, etc. Among them, the number of available registrations corresponding to different registration methods may vary. Therefore, during the process of scheduling the hospital, it is necessary to comprehensively arrange the scheduling based on the registration numbers of all registration methods.
[0003] Currently, during the scheduling process, if the number of a certain registration method or the number of available appointments changes, it is necessary to frequently read and update the database, which increases the time required for the scheduling process. At the same time, it may cause the front-end page to crash, making it impossible for users to operate, resulting in poor user experience and low efficiency in appointment source management. Summary of the Invention
[0004] The present invention aims to solve at least one of the technical problems in the related art to some extent.
[0005] To this end, the first object of the present invention is to propose a method for generating hospital outpatient scheduling data, which can generate a corresponding daily scheduling table and a daily appointment source pool through a weekly appointment source pool and a first feature code of the appointment type. When the registration method or the number of available appointments changes, it is possible to compare the first feature codes of the appointment types and generate a corresponding daily scheduling table and a daily appointment source pool based on the comparison results, without the need for frequent reading and updating operations on the database, reducing the time required for the scheduling process. At the same time, users can operate in real time, improving the user experience and the efficiency of appointment source management.
[0006] The second object of the present invention is to propose a device for generating hospital outpatient scheduling data.
[0007] To achieve the above object, an embodiment of the first aspect of the present invention proposes a method for generating hospital outpatient scheduling data, the method comprising:
[0008] Obtain a dictionary of appointment source paths corresponding to the hospital outpatient department, wherein the dictionary of appointment source paths includes the corresponding relationship between the appointment source path and the preset symbol;
[0009] Obtain the weekly serial number source allocation rule and the weekly scheduling record of the outpatient department, and generate a corresponding weekly appointment source pool based on the weekly scheduling record, the dictionary of appointment source paths, and the weekly serial number source allocation rule, wherein the weekly appointment source pool includes the first feature code of the appointment type, and the first feature code of the appointment type is used to indicate the registration number / registration serial number of different paths of the appointment type;
[0010] Generate a corresponding target daily shift schedule based on the weekly shift number source pool and the weekly shift record, and generate a daily shift number source pool based on the target daily shift schedule and the first feature code of the shift type.
[0011] In an embodiment of the present invention, the weekly serial number source allocation rules include an allocation path, an allocation rule, and an allocation quantity; the generating of the corresponding weekly shift number source pool based on the number source path dictionary and the weekly serial number source allocation rules includes:
[0012] Based on the allocation path, allocation rule, and allocation quantity of the same shift type in the weekly serial number source allocation rules, generate the first feature code corresponding to each shift type in the weekly shift record through the number source path dictionary and the number source feature code generation algorithm;
[0013] Update the first feature code to the weekly shift record, and generate the weekly shift number source pool based on the updated weekly shift record.
[0014] In an embodiment of the present invention, the generating of the corresponding target daily shift schedule based on the weekly shift number source pool and the weekly shift record, and the generating of the daily shift number source pool based on the target daily shift schedule and the first feature code of the shift type includes:
[0015] Obtain the start date and end date of the date to be scheduled;
[0016] Obtain the shift type to be scheduled, and determine whether the date of the shift type to be scheduled is between the start date and the end date;
[0017] If the target date to which the shift type to be scheduled belongs is between the start date and the end date, determine whether there is a weekly shift for the target date in the weekly shift record;
[0018] If there is a weekly shift for the target date in the weekly shift record, update / insert the shift type to be scheduled into the daily shift record to generate a new daily shift schedule, and determine the new daily shift schedule as the target daily shift schedule;
[0019] Generate the daily shift number source pool corresponding to the shift type based on the first feature code of the shift type and the target daily shift schedule;
[0020] Repeat the above steps until all shift types between the start date and the end date have been scheduled.
[0021] In an embodiment of the present invention, the if there is a weekly shift for the target date in the weekly shift record, then update / insert the shift type to be scheduled into the daily shift record to generate a new daily shift schedule includes:
[0022] Determine whether a daily shift schedule has been generated for the target date;
[0023] If it is determined that the daily shift schedule has not been generated for the target date, insert the shift number to be scheduled into the daily shift schedule, and determine the inserted daily shift schedule as the new daily shift schedule;
[0024] If it is determined that the daily shift schedule has been generated for the target date and has changed, obtain the daily shift schedule in the weekly shift number source pool, update the shift number to be scheduled in the daily shift schedule, and determine the updated daily shift schedule as the new daily shift schedule.
[0025] In an embodiment of the present invention, generating the daily shift number source pool corresponding to the number based on the first feature code of the number and the target daily shift schedule includes:
[0026] Determine whether the first feature code of the number has changed;
[0027] If the first feature code of the number has changed, delete the existing daily shift number source pool of the number;
[0028] Generate a corresponding new daily shift number source pool based on the target daily shift schedule.
[0029] In an embodiment of the present invention, determining whether the feature code of the number has changed includes:
[0030] Obtain the second feature code of the number corresponding to the target daily shift schedule;
[0031] Determine whether the second feature code is consistent with the first feature code;
[0032] If the second feature code is not consistent with the first feature code, determine that the feature code of the number has changed.
[0033] In an embodiment of the present invention, generating the first feature code corresponding to each number based on the allocation path, allocation rule, and allocation quantity of the same number in the weekly sequence number source allocation rule through the number source path dictionary and the number source feature code generation algorithm includes:
[0034] Match the allocation path of the same number with the number source path dictionary to obtain the identification code corresponding to the allocation path;
[0035] Based on the allocation rules and allocation quantities of various paths in the allocation path, determine the registration quantity / registration serial number corresponding to each path;
[0036] Sequentially and orderly splice the identification codes of various paths in the allocation path with the corresponding registration quantity / registration serial number to generate the first feature code corresponding to each number.
[0037] To achieve the above object, an embodiment of the second aspect of the present invention provides a device for generating hospital outpatient scheduling data, including:
[0038] An acquisition module, configured to acquire a source dictionary corresponding to the hospital outpatient department, where the source dictionary includes the correspondence between the source and a preset symbol;
[0039] A first generation module, configured to acquire the weekly source allocation rule and the weekly scheduling record of the outpatient department, and generate a corresponding weekly scheduling source pool based on the weekly scheduling record, the source dictionary, and the weekly source allocation rule, where the weekly scheduling source pool includes the first feature code of the category, and the first feature code of the category is used to indicate the registration quantity / registration serial number of different sources of the category;
[0040] A second generation module, configured to generate a corresponding target day scheduling table based on the weekly scheduling source pool and the weekly scheduling record, and generate a daily scheduling source pool based on the target day scheduling table and the first feature code of the category.
[0041] Another object of the present invention is to provide an electronic device, including:
[0042] At least one processor; and
[0043] A memory communicatively connected to the at least one processor; wherein,
[0044] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in the foregoing aspect.
[0045] Another object of the present invention is to provide a computer storage medium, where the computer storage medium stores computer-executable instructions; after the computer-executable instructions are executed by a processor, the computer executes the method described in the foregoing aspect.
[0046] In summary, the hospital outpatient scheduling data generation method and device provided by the present invention can generate a corresponding daily scheduling table and a daily scheduling source pool through the weekly scheduling source pool and the first feature code of the category. When the registration source or the source quantity changes, the first feature code of the category can be compared, and a corresponding daily scheduling table and a daily scheduling source pool can be generated based on the comparison result, without frequently reading and updating the database, reducing the time required for the scheduling process. At the same time, users can operate in real time, improving the user experience and the source management efficiency.
[0047] Additional aspects and advantages of the present invention will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present invention. Description of the Drawings
[0048] The above and / or additional aspects and advantages of the present invention will become apparent and be readily understood from the following description of embodiments in conjunction with the accompanying drawings, in which:
[0049] Figure 1 It is a schematic flowchart of a method for generating hospital outpatient scheduling data provided by an embodiment of the present invention;
[0050] Figure 2 It is a schematic structural diagram of a device for generating hospital outpatient scheduling data proposed by an embodiment of the present invention. Detailed implementation manners
[0051] The embodiments of the present invention will be described in detail below. The examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the accompanying drawings are exemplary and are intended to explain the present invention, and should not be construed as a limitation to the present invention.
[0052] The present invention will be described in detail below in conjunction with specific embodiments.
[0053] Figure 1 It is a schematic flowchart of a method for generating hospital outpatient scheduling data provided by an embodiment of the present invention.
[0054] As Figure 1 shown, the method may include the following steps:
[0055] Step 101, obtaining a source-of-number way dictionary corresponding to the hospital outpatient department;
[0056] In an embodiment of the present invention, the above source-of-number way dictionary may include the corresponding relationship between the source-of-number way and the preset symbol. Table 1 is a corresponding relationship table between the source-of-number way and the preset symbol.
[0057] Table 1
[0058] Number source path Window reservation Window registration Self-service machine Online App UnionPay appointment Internal department mutual appointment Cross-department mutual appointment 114 phone Pre-set symbol A B C D E F G H
[0059] As shown in Table 1, each registration way has a corresponding preset symbol. For example, the preset symbol corresponding to window reservation is A.
[0060] Step 102, obtaining the weekly sequence source allocation rule and the weekly scheduling record of the outpatient department, and generating a corresponding weekly scheduling source-of-number pool based on the weekly scheduling record, the source-of-number way dictionary, and the weekly sequence source allocation rule, where the weekly scheduling source-of-number pool includes the first feature code of the number category;
[0061] In an embodiment of the present invention, the above weekly serial number source allocation rules may be the allocation channels, allocation rules, and allocation quantities for the same category. For example, assuming the category is the general number of xx department, the allocation channel is window reservation, the allocation rule is Q quantity allocation, and the allocation quantity is 10. That is, 10 general numbers of xx department can be reserved through the window; the allocation channel is the online App, the allocation rule is N serial number allocation, and the allocation is 6, 11, 16, 21, 26. That is, the 6th, 11th, 16th, 21st, and 26th general numbers of xx department can be allocated according to the corresponding serial numbers through the online App; the allocation channel is UnionPay appointment, the allocation rule is E serial number range allocation, and the allocation is 13 - 15. That is, the 13th - 15th general numbers of xx department can be allocated according to the serial number range through UnionPay.
[0062] In an embodiment of the present invention, the above weekly scheduling record may be the scheduling records for all categories. Table 2 is the weekly scheduling record table proposed in the embodiment of the present invention.
[0063] Table 2
[0064]
[0065] Moreover, in an embodiment of the present invention, the above weekly scheduling record table may further include the corresponding scheduling personnel.
[0066] Further, in an embodiment of the present invention, after obtaining the weekly serial number source allocation rules and weekly scheduling records of the outpatient department through the above steps, a corresponding weekly scheduling number source pool may be generated based on the weekly scheduling records, number source channel dictionary, and weekly serial number source allocation rules.
[0067] Specifically, in an embodiment of the present invention, the method for generating a corresponding weekly scheduling number source pool based on the weekly scheduling records, number source channel dictionary, and weekly serial number source allocation rules may include the following steps:
[0068] Step 1021, based on the allocation channels, allocation rules, and allocation quantities for the same category in the weekly serial number source allocation rules, generate a first feature code corresponding to each category in the weekly scheduling record through the number source channel dictionary and the number source feature code generation algorithm;
[0069] In an embodiment of the present invention, after obtaining the weekly scheduling record through the above steps, a first feature code corresponding to each category in the weekly scheduling record may be generated based on the allocation channels, allocation rules, and allocation quantities for the same category in the weekly serial number source allocation rules through the number source channel dictionary and the number source feature code generation algorithm.
[0070] Among them, in an embodiment of the present invention, the first feature code of the above category is used to indicate the registration quantity / registration serial number of different channels of the category.
[0071] Specifically, in an embodiment of the present invention, the method for generating the first feature code corresponding to each category number through the distribution path, distribution rule, and distribution quantity of the same category number in the weekly serial number source distribution rule may include the following steps:
[0072] Step 1: Match the distribution path of the same category number with the number source path dictionary to obtain the recognition code corresponding to the distribution path;
[0073] Step 2: Based on the distribution rules and distribution quantities of various paths in the distribution path, determine the registration quantity / registration serial number corresponding to each path;
[0074] Step 3: Sequentially and orderly splice the recognition codes of various paths in the distribution path with the corresponding registration quantity / registration serial number to generate the first feature code corresponding to each category number.
[0075] It should be noted that in an embodiment of the present invention, after obtaining the recognition codes of various paths in the distribution path and the corresponding registration quantity / registration serial number, it is necessary to sequentially and orderly splice the recognition codes of various paths with the corresponding registration quantity / registration serial number in the order of all existing distribution paths to generate the first feature code corresponding to each category number, so as to determine whether the first feature code has changed subsequently. For example, if the distribution path of XX ordinary number includes A, C, D, then the order in the corresponding first feature code is ACD; if the distribution path of XX ordinary number includes A, C, B, then the order in the corresponding first feature code is ABC.
[0076] Among them, in an embodiment of the present invention, as shown in Table 1 and Table 2, the corresponding generated first feature code is A10B5D[6, 11, 16, 21, 26]E[13~15]F8G3H7.
[0077] Step 1022: Update the first feature code to the weekly schedule record, and generate a weekly schedule number source pool based on the updated weekly schedule record.
[0078] Among them, in an embodiment of the present invention, a weekly schedule number source record and a weekly number source distribution path can be obtained based on the updated weekly schedule record, and a weekly schedule number source pool can be generated according to the weekly number source distribution period.
[0079] Step 103: Generate a corresponding target daily schedule table based on the weekly schedule number source pool and the weekly schedule record, and generate a daily schedule number source pool based on the target daily schedule table and the first feature code of the category number.
[0080] In an embodiment of the present invention, after obtaining the weekly schedule number source pool and the weekly schedule record through the above steps, a corresponding target daily schedule table can be generated based on the weekly schedule number source pool and the weekly schedule record, and a daily schedule number source pool can be generated based on the target daily schedule table and the first feature code of the category number.
[0081] Among them, in an embodiment of the present invention, the method for generating a corresponding target daily shift schedule based on the weekly shift number source pool and the weekly shift record, and generating a daily shift number source pool based on the target daily shift schedule and the first feature code of the shift type may include the following steps:
[0082] Step 1031: Obtain the start date and end date of the date to be scheduled;
[0083] Step 1032: Obtain the shift type to be scheduled, and determine whether the date of the shift type to be scheduled is between the start date and the end date;
[0084] Step 1033: If the target date to which the shift type to be scheduled belongs is between the start date and the end date, determine whether there is a weekly shift for the target date to which the shift type to be scheduled belongs in the weekly shift record;
[0085] Step 1034: If there is a weekly shift for the target date in the weekly shift record, update / insert the shift type to be scheduled into the daily shift record to generate a new daily shift schedule, and determine the new daily shift schedule as the target daily shift schedule;
[0086] Step 1035: Generate a daily shift number source pool corresponding to the shift type based on the first feature code of the shift type and the target daily shift schedule;
[0087] Step 1036: Repeat the above steps until all shift types between the start date and the end date have been scheduled.
[0088] Among them, in an embodiment of the present invention, the above start date and end date may be the dates input by the user for which scheduling is desired, and the end date may be the start date or after the start date.
[0089] And, in an embodiment of the present invention, the above method of updating / inserting the shift type to be scheduled into the daily shift record to generate a new daily shift schedule if there is a weekly shift for the target date in the weekly shift record may include: determining whether a daily shift schedule has been generated for the target date; if it is determined that no daily shift schedule has been generated for the target date, it means that there was no scheduling within the target date before, then insert the shift type to be scheduled into the daily shift schedule, and determine the inserted daily shift schedule as the new daily shift schedule; if it is determined that a daily shift schedule has been generated for the target date, then determine whether the shift schedule for the target date to which the shift type belongs has changed. If it has changed, obtain the daily shift schedule in the weekly shift number source pool, update the shift type to be scheduled to the daily shift schedule, and determine the updated daily shift schedule as the new daily shift schedule; if it has not changed, then skip and execute the subsequent steps.
[0090] Among them, in an embodiment of the present invention, when generating a new daily schedule through the above steps, the stored first feature code is updated simultaneously to generate a second feature code corresponding to the new daily schedule for subsequent direct use. And, in an embodiment of the present invention, the generated new daily schedule can be determined as the target daily schedule.
[0091] Further, in an embodiment of the present invention, the method for generating a daily schedule corresponding to a number and a daily schedule number source pool based on the first feature code of the number and the target daily schedule may include the following steps:
[0092] Step a: Determine whether the first feature code of the number has changed;
[0093] Step b: If the first feature code of the number has changed, delete the existing daily schedule number source pool of the number;
[0094] Step c: Generate a corresponding new daily schedule number source pool based on the target daily schedule.
[0095] Among them, in an embodiment of the present invention, the method for determining whether the first feature code of the number has changed may include: obtaining the second feature code of the number corresponding to the target daily schedule, determining whether the second feature code is consistent with the first feature code. If the second feature code is inconsistent with the first feature code, it indicates that the allocation method or the registration number / registration quantity of the number has changed, then it is determined that the feature code of the number has changed; if the second feature code is consistent with the first feature code, it indicates that the allocation method or the registration number / registration quantity of the number has not changed, then it is determined that the feature code of the number has not changed. And, through the feature code string of the above number, the verification of whether the daily schedule has changed can be quickly realized, without verifying all the number sources of the same number in the database, reducing the operations on the database and improving the number source management efficiency.
[0096] And, in an embodiment of the present invention, after it is determined through the above steps that the first feature code of the number has changed, it indicates that the corresponding number source pool has changed, then delete the existing daily schedule number source pool of the number, and generate a corresponding new daily schedule number source pool based on the generated target daily schedule and the weekly number source pool template.
[0097] Among them, in an embodiment of the present invention, the amount of calculation and processing in the generation process of the daily schedule number source pool is almost the same as that without the number source pool code, and the number of data insertion operations on the database remains unchanged, reducing the read operations on the database, reducing the time required for the scheduling process, and at the same time, users can operate in real time, improving the user experience.
[0098] The hospital outpatient scheduling data generation method provided by the embodiments of the present invention obtains the source of appointment dictionary corresponding to the hospital outpatient department. Among them, the source of appointment dictionary includes the corresponding relationship between the source of appointment and the preset symbol; obtains the weekly serial number source allocation rule and the weekly scheduling record of the outpatient department, and generates the corresponding weekly scheduling source pool based on the weekly scheduling record, the source of appointment dictionary and the weekly serial number source allocation rule. Among them, the weekly scheduling source pool includes the first feature code of the appointment type, and the first feature code of the appointment type is used to indicate the number of appointments / serial numbers of different appointment types; generates the corresponding target day scheduling table based on the weekly scheduling source pool and the weekly scheduling record, and generates the daily scheduling source pool based on the target day scheduling table and the first feature code of the appointment type. Thus, the corresponding daily scheduling table and the daily scheduling source pool can be generated through the weekly scheduling source pool and the first feature code of the appointment type. When the appointment method or the number of appointment sources changes, the first feature codes of the appointment types can be compared, and the corresponding daily scheduling table and the daily scheduling source pool can be generated based on the comparison results, without frequent reading and updating operations on the database, reducing the time required for the scheduling process. At the same time, users can operate in real time, improving the user experience and the efficiency of appointment source management.
[0099] To implement the above embodiments, Figure 2 The present invention also provides a hospital outpatient scheduling data generation device, which may include:
[0100] An obtaining module 201, configured to obtain the source of appointment dictionary corresponding to the hospital outpatient department. Among them, the source of appointment dictionary includes the corresponding relationship between the source of appointment and the preset symbol;
[0101] A first generation module 202, configured to obtain the weekly serial number source allocation rule and the weekly scheduling record of the outpatient department, and generate the corresponding weekly scheduling source pool based on the weekly scheduling record, the source of appointment dictionary and the weekly serial number source allocation rule. Among them, the weekly scheduling source pool includes the first feature code of the appointment type, and the first feature code of the appointment type is used to indicate the number of appointments / serial numbers of different appointment types;
[0102] A second generation module 203, configured to generate the corresponding target day scheduling table based on the weekly scheduling source pool and the weekly scheduling record, and generate the daily scheduling source pool based on the target day scheduling table and the first feature code of the appointment type.
[0103] In an embodiment of the present invention, the above-mentioned weekly serial number source allocation rule includes the allocation method, the allocation rule and the allocation quantity; the first generation module 202 is specifically configured to:
[0104] Based on the allocation method, the allocation rule and the allocation quantity of the same appointment type in the weekly serial number source allocation rule, generate the first feature code corresponding to each appointment type in the weekly scheduling record through the source of appointment dictionary and the appointment feature code generation algorithm;
[0105] Update the first feature code into the weekly schedule record, and generate a weekly schedule number source pool based on the updated weekly schedule record.
[0106] In an embodiment of the present invention, the above-mentioned first generation module 202 is further configured to:
[0107] Match the allocation path of the same number type with the number source path dictionary to obtain the identification code corresponding to the allocation path;
[0108] Based on the allocation rules and allocation quantities of various paths in the allocation path, determine the registration quantity / registration serial number corresponding to each path;
[0109] Sequentially and orderly splice the identification codes of various paths in the allocation path with the corresponding registration quantity / registration serial number to generate the first feature code corresponding to each number type.
[0110] In an embodiment of the present invention, the above-mentioned second generation module 202 is specifically configured to:
[0111] Obtain the start date and end date of the date to be scheduled;
[0112] Obtain the number type to be scheduled, and determine whether the date of the number type to be scheduled is between the start date and the end date;
[0113] If the target date to which the number type to be scheduled belongs is between the start date and the end date, determine whether there is a weekly schedule for the target date in the weekly schedule record;
[0114] If there is a weekly schedule for the target date in the weekly schedule record, update / insert the number type to be scheduled into the daily schedule record to generate a new daily schedule, and determine the new daily schedule as the target daily schedule;
[0115] Based on the first feature code of the number type and the target daily schedule, generate a daily schedule number source pool corresponding to the number type;
[0116] Repeat the above steps until all number types between the start date and the end date have been scheduled.
[0117] In an embodiment of the present invention, the above-mentioned second generation module 202 is further configured to:
[0118] Determine whether a daily schedule has been generated for the target date;
[0119] If it is determined that no daily schedule has been generated for the target date, insert the number type to be scheduled into the daily schedule, and determine the inserted daily schedule as the new daily schedule;
[0120] If it is determined that a daily schedule has been generated for the target date and it has changed, obtain the daily schedule in the weekly schedule number source pool, update the number type to be scheduled into the daily schedule, and determine the updated daily schedule as the new daily schedule.
[0121] In one embodiment of the present invention, the above-mentioned second generation module 202 is further configured to:
[0122] Determine whether the first feature code of the number category has changed;
[0123] If the first feature code of the number category has changed, delete the existing daily scheduling number source pool of the number category;
[0124] Generate a corresponding new daily scheduling number source pool based on the target daily scheduling table.
[0125] In one embodiment of the present invention, the above-mentioned second generation module 202 is further configured to:
[0126] Obtain the second feature code of the number category corresponding to the target daily scheduling table;
[0127] Determine whether the second feature code is consistent with the first feature code;
[0128] If the second feature code is not consistent with the first feature code, determine that the feature code of the number category has changed.
[0129] The hospital outpatient scheduling data generation device provided by the embodiments of the present invention obtains a number source path dictionary corresponding to the hospital outpatient department, where the number source path dictionary includes the corresponding relationship between the number source path and the preset symbol; obtains the weekly serial number source allocation rule and the weekly scheduling record of the outpatient department, and generates a corresponding weekly scheduling number source pool based on the weekly scheduling record, the number source path dictionary, and the weekly serial number source allocation rule. The weekly scheduling number source pool includes the first feature code of the number category, and the first feature code of the number category is used to indicate the number of registrations / registration serial numbers of different paths of the number category; generates a corresponding target daily scheduling table based on the weekly scheduling number source pool and the weekly scheduling record, and generates a daily scheduling number source pool based on the target daily scheduling table and the first feature code of the number category. Thus, a corresponding daily scheduling table and a daily scheduling number source pool can be generated through the weekly scheduling number source pool and the first feature code of the number category. When the registration path or the number of number sources changes, the first feature code of the number category can be compared, and a corresponding daily scheduling table and a daily scheduling number source pool can be generated based on the comparison result, without frequent reading and updating operations on the database, reducing the time required for the scheduling process. At the same time, users can operate in real time, improving the user experience and the number source management efficiency.
[0130] The collection, storage, use, processing, transmission, provision, and disclosure of the user's personal information involved in the present invention all comply with the provisions of relevant laws and regulations and do not violate public order and good customs.
[0131] It should be noted that personal information from users should be collected for legal and reasonable purposes and not shared or sold outside of these legitimate uses. In addition, such collection / sharing should be carried out after obtaining the informed consent of the user, including but not limited to notifying the user to read the user agreement / user notice and sign an agreement / authorization including authorizing relevant user information before the user uses the function. In addition, any necessary steps should be taken to safeguard and protect access to such personal information data and ensure that others with access to the personal information data comply with their privacy policies and procedures.
[0132] The present invention is expected to provide an implementation scheme for users to selectively block the use or access of personal information data. That is, the present invention is expected to provide hardware and / or software to prevent or block access to such personal information data. Once the personal information data is no longer needed, the risk can be minimized by restricting data collection and deleting the data. In addition, when applicable, personal identifiers are removed from such personal information to protect the privacy of the user.
[0133] In the technical solution of the present invention, the acquisition, transmission, storage, use, processing, etc. of data all comply with the relevant provisions of national laws and regulations.
[0134] It should be noted that in the embodiments of the present invention, certain industry-existing solutions such as software, components, models, etc. may be mentioned. They should be regarded as exemplary, and their purpose is only to illustrate the feasibility in the implementation of the technical solution of this application, but it does not mean that the applicant has already or necessarily used this solution.
[0135] In the description of the foregoing embodiments, the descriptions referring to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples" mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0136] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, "a plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.
[0137] Any process or method description represented in a flowchart or otherwise described herein can be understood to represent a module, segment, or portion of code including one or more executable instructions for implementing a customized logical function or process. The scope of the preferred embodiments of the present invention includes additional implementations, where functions may be executed in a substantially simultaneous manner or in a reverse order according to the functions involved, rather than in the order shown or discussed, which should be understood by those skilled in the art to which the embodiments of the present invention pertain.
[0138] Logic and / or steps represented in a flowchart or otherwise described herein, for example, can be considered a sequenced list of executable instructions for implementing a logical function, and can be embodied specifically in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium include the following: an electrical connection having one or more wires (electronic device), a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can even be paper or other suitable medium on which a program can be printed, as the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpretation, or other suitable processing as necessary, and then stored in a computer memory.
[0139] It should be understood that various parts of the present invention can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.
[0140] Those of ordinary skill in the art can understand that all or part of the steps carried out in implementing the above-described embodiment methods can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.
[0141] In addition, in each embodiment of the present invention, the functional units can be integrated into one processing module, or each unit can exist physically alone, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. When the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0142] The above-mentioned storage medium can be a read-only memory, a magnetic disk, an optical disc, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.
Claims
1. A method for generating hospital outpatient scheduling data, characterized in that: include: Obtaining a number source path dictionary corresponding to the hospital outpatient department, wherein the number source path dictionary includes a correspondence between the number source path and a preset symbol; Obtain the weekly serial number source allocation rule and weekly scheduling record of the outpatient clinic, and generate a corresponding weekly scheduling number source pool based on the weekly scheduling record, the number source path dictionary and the weekly serial number source allocation rule, wherein the weekly scheduling number source pool includes a first feature code of the number, and the first feature code of the number is used to indicate the number of registrations / registration numbers of different paths of the number; A corresponding target daily shift schedule is generated based on the weekly shift number source pool and the weekly shift record, and a daily shift number source pool is generated based on the target daily shift schedule and the first feature code of the number.
2. The method according to claim 1, characterized in that The weekly number source allocation rule includes an allocation path, an allocation rule, and an allocation quantity; the generating of a corresponding weekly scheduling number source pool based on the weekly scheduling record, the number source path dictionary, and the weekly number source allocation rule includes: Based on the allocation path, allocation rules and allocation quantity of the same number in the weekly number source allocation rule, generate the first feature code corresponding to each number in the weekly shift scheduling record through the number source path dictionary and the number source feature code generation algorithm; The first feature code is updated to the weekly shift schedule record, and the weekly shift number source pool is generated based on the updated weekly shift schedule record.
3. The method according to claim 1, characterized in that The generating a corresponding target daily shift schedule based on the weekly shift number source pool and the weekly shift record, and generating a daily shift number source pool based on the target daily shift schedule and the first feature code of the number, comprises: Get the start date and end date of the scheduled shift; Obtain the shift number to be scheduled, and determine whether the date of the shift number to be scheduled is between the start date and the end date; If the target date of the shift number to be scheduled is between the start date and the end date, determine whether there is a weekly shift schedule in the weekly shift schedule record for the target date of the shift number to be scheduled; If the target date has a weekly shift schedule in the weekly shift schedule record, the shift number to be scheduled is updated / inserted into the daily shift schedule record to generate a new daily shift schedule, and the new daily shift schedule is determined as the target daily shift schedule; Based on the first feature code of the number and the target daily shift schedule, a daily shift number source pool corresponding to the number is generated; Repeat the above steps until all shifts between the start date and the end date have been scheduled.
4. The method according to claim 3, characterized in that If the target date has a weekly shift schedule in the weekly shift schedule record, the shift number to be scheduled is updated / inserted into the daily shift schedule record to generate a new daily shift schedule, including: Determine whether a daily shift schedule is generated for the target date; If it is determined that the daily shift schedule has not been generated for the target date, inserting the shift number to be scheduled into the daily shift schedule, and determining the inserted daily shift schedule as the new daily shift schedule; If it is determined that the daily schedule has been generated on the target date and has changed, the daily schedule in the weekly schedule number source pool is obtained, the shift number to be scheduled is updated to the daily schedule, and the updated daily schedule is determined as the new daily schedule.
5. The method according to claim 3, characterized in that: The step of generating a daily shift number source pool corresponding to the number based on the first feature code of the number and the target daily shift schedule includes: Determining whether the first characteristic code of the number has changed; If the first feature code of the number changes, the existing daily shift number source pool of the number is deleted; Based on the target daily shift schedule, a corresponding new daily shift number source pool is generated.
6. The method according to claim 5, characterized in that The step of determining whether the characteristic code of the number has changed includes: Obtaining a second characteristic code corresponding to the number of the target day shift schedule; Determining whether the second feature code is consistent with the first feature code; If the second feature code is inconsistent with the first feature code, it is determined that the feature code of the number has changed.
7. The method according to claim 2, characterized in that The method of generating a first feature code corresponding to each number type based on the allocation path, allocation rule and allocation quantity of the same number type in the weekly number source allocation rule by using the number source path dictionary and the number source feature code generation algorithm includes: Matching the allocation path of the same number with the number source path dictionary to obtain an identification code corresponding to the allocation path; Determine the registration quantity / registration serial number corresponding to each of the distribution channels based on the distribution rules and distribution quantities of each of the distribution channels; The identification codes of various distribution channels and the corresponding registration quantities / registration serial numbers are sequentially spliced to generate a first feature code corresponding to each number.
8. A device for generating outpatient scheduling data for a hospital, characterized in that: include: An acquisition module, used for acquiring a number source path dictionary corresponding to the hospital outpatient department, wherein the number source path dictionary includes a correspondence between the number source path and a preset symbol; The first generation module is used to obtain the weekly serial number source allocation rules and weekly scheduling records of the outpatient clinic, and generate a corresponding weekly scheduling number source pool based on the weekly scheduling records, the number source path dictionary and the weekly serial number source allocation rules, wherein the weekly scheduling number source pool includes a first feature code of the number, and the first feature code of the number is used to indicate the number of registrations / registration numbers of different paths of the number; The second generation module is used to generate a corresponding target daily shift schedule based on the weekly shift number source pool and the weekly shift record, and to generate a daily shift number source pool based on the target daily shift schedule and the first feature code of the number.
9. An electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.