A method, system, and storage medium for simulating production of a pharmaceutical process recipe
By recording and adjusting the reaction information of intermediate process steps in drug production, single-step simulation verification and parameter optimization are performed, solving the problem of long simulation verification time for drug production formulas, enabling rapid detection and adjustment of erroneous steps, and improving production efficiency.
Patent Information
- Application Number
- CN202211609652.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-14
- Publication Date
- 2026-01-16
- Estimated Expiration
- 2042-12-14
AI Technical Summary
The simulation and verification process of drug production formulas in the existing technology is too time-consuming, and the modification and verification time is too long, making it difficult to quickly find and adjust the erroneous steps.
The reaction information of intermediate process steps is recorded by simulating production methods. Single-step simulation verification and parameter adjustment are carried out until the intermediate product yield and theoretical output value are within the allowable range. The control parameters are then optimized by using database queries and historical data.
It shortens the time required for modifying and validating drug production formulas, quickly identifies and isolates erroneous steps, ensures that subsequent steps are not affected, and improves production efficiency.
Smart Images

Figure CN116130026B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of information technology, and in particular to a method and system for simulating production of a drug process formula, and a storage medium. BACKGROUND
[0002] Currently, in the production execution system (MES) of the pharmaceutical industry, the formula for drug production is often very complex and lengthy. If the correctness of the formula is to be verified, it may take several days or even more than ten days to completely execute the formula process according to the normal run instruction process and completely comply with the legal regulations for drug production, so as to know whether the design of the electronic formula is completely correct and completely meets the needs. If the final result is problematic, it is necessary to modify the parameters and simulate from the beginning again, which takes too long to modify and verify. SUMMARY
[0003] The present application provides a method for simulating production of a drug process formula, which comprises the following steps:
[0004] S1, simulating production according to a drug process formula, comparing the final product information obtained by the initial simulation production with the design product information in the drug process formula, and recording the reaction information of each intermediate process step of the initial simulation production if the final product information does not match the design information, wherein the reaction information includes reaction control parameters, and the attributes and quantities of the input and corresponding product participating in the step;
[0005] S2, re-simulating a single step according to the process formula, obtaining an intermediate product after simulating each intermediate process step, and comparing the intermediate product with the theoretical output value of the intermediate process step in the electronic process formula stored in the formula database to determine whether the deviation of the simulated intermediate product yield from the theoretical output value is within a first range;
[0006] S3, if the deviation is within the first range, continuing to simulate the subsequent process step, otherwise, marking the step, replacing the theoretical output value of the intermediate process step with the simulation input quantity of the next process step, and continuing to simulate the next process step;
[0007] S4, adjusting the control parameters and performing single-step simulation verification on the marked intermediate process steps until the deviation of the simulated intermediate product yield from the theoretical yield of the intermediate process step is within the first range.
[0008] Preferably, the step S3 further comprises:
[0009] S31, if the deviation of the simulated intermediate product yield from the theoretical output value is outside the first range, marking the step and querying the theoretical input quantity of the intermediate process step stored in the formula database;
[0010] S32, replacing the simulation input of the original single-step simulation with the theoretical input of the intermediate process step, re-performing the single-step simulation of the process step, and comparing the newly obtained intermediate product data with the theoretical output value of the intermediate process step;
[0011] S33, if the deviation between the newly obtained intermediate product data and the theoretical output value is within the second range, canceling the marking of the intermediate process step, otherwise replacing the theoretical output value of the intermediate process step with the simulation input of the next process step and continuing the simulation of the next process step, the second range being included in the first range.
[0012] Preferably, the step S33 further comprises:
[0013] if the deviation between the newly obtained intermediate product data and the theoretical output value is within the second range, canceling the marking of the intermediate process step;
[0014] obtaining the intermediate product output of each step before the intermediate process step in the current simulation, comparing the output deviation value with the theoretical output value of the corresponding step stored in the formula database, and obtaining the output deviation value;
[0015] obtaining the deviation step adjacent to and continuous with the intermediate process step, adjusting and single-step simulation checking the control parameters in the deviation step until the deviation between the simulation intermediate product output and the theoretical output of the intermediate process step is within the second range, and the output deviation value of the deviation step is within the second range.
[0016] Preferably, the step S4 comprises:
[0017] obtaining the attribute information of the input and the corresponding intermediate product of each marked intermediate process step, and querying whether there is historical simulation data of other process formula containing the intermediate process step in the formula database according to the attribute information, if there is, calling the control parameters of the intermediate process step in the historical simulation data;
[0018] comparing the control parameters of the intermediate process step of the queried historical simulation data with the control parameters of the corresponding step in the current simulation, if the deviation range is greater than the set range, replacing the historical control parameters of the intermediate process step in the historical simulation data with the original control parameters of the intermediate process step in the current simulation;
[0019] calling the input data of the intermediate process step stored during the initial simulation production, performing single-step simulation and obtaining intermediate product information, if the deviation between the obtained intermediate product and the theoretical output value of the intermediate process step in the process formula is less than the first range, saving the adjusted control parameters.
[0020] The application also discloses a simulation production system of a drug process formula, which comprises: a first running module, which is used for simulating production according to a drug process formula, comparing final product information obtained through the first simulation production with design product information in the drug process formula, and recording reaction information of each intermediate process step of the first simulation production if the final product information is found to be inconsistent with the design information, wherein the reaction information comprises reaction control parameters, and attributes and quantities of input and corresponding product of the step; a single-step simulation module, which is used for re-simulating a single step according to the process formula, obtaining an intermediate product after each intermediate process step is simulated, and comparing the intermediate product with a theoretical output value of the intermediate process step in the electronic process formula stored in a formula database to determine whether a deviation of the simulated intermediate product output and the theoretical output value is within a first range; a marking module, which is used for replacing the theoretical output value of the intermediate process step with a simulation input quantity of a next process step and continuing to simulate the next process step when the deviation of the simulated intermediate product output and the theoretical output value is not within the first range; and an adjusting module, which is used for adjusting control parameters of each marked intermediate process step and verifying a single-step simulation until the deviation of the simulated intermediate product output and the theoretical output value of the intermediate process step is within the first range.
[0021] Preferably, the marking module comprises: a querying module, which is used for marking and querying a theoretical input quantity of the intermediate process step in the formula database when the deviation of the simulated intermediate product output and the theoretical output value is outside the first range; a replacing module, which is used for replacing the theoretical input quantity of the intermediate process step with a simulation input quantity of a next process step and re-simulating a single step of the process, comparing newly obtained intermediate product data with the theoretical output value of the intermediate process step; and an updating module, which is used for determining whether the deviation of the newly obtained intermediate product data and the theoretical output value is within a second range, and if yes, canceling the marking of the intermediate process step, and if no, replacing the theoretical output value of the intermediate process step with a simulation input quantity of a next process step and continuing to simulate the next process step, wherein the second range is included in the first range.
[0022] Preferably, the updating module is further configured to cancel the marking of the intermediate process step if the deviation of the newly obtained intermediate product data and the theoretical output value is within the second range, obtain intermediate product outputs of steps before the intermediate process step in this simulation, compare the intermediate product outputs with theoretical output values of the corresponding steps stored in the formula database respectively and obtain output deviation values, and obtain deviation steps adjacent to and continuous with the intermediate process step, and adjust control parameters in the deviation steps and verify a single-step simulation until the deviation of the simulated intermediate product output and the theoretical output value of the intermediate process step is within the second range, and the output deviation values of the deviation steps are within the second range.
[0023] Preferably, the adjustment module comprises: a historical data query module, configured to acquire attribute information of the input and the corresponding intermediate product of each intermediate process step marked, and query whether there is historical simulation data of other process recipes containing the intermediate process step in the recipe database according to the attribute information, and if so, retrieve the control parameters of the intermediate process step in the historical simulation data; a comparison module, configured to compare the control parameters of the intermediate process step of the historical simulation data queried with the control parameters of the corresponding step in the simulation, and if the deviation range is greater than the set range, replace the original control parameters of the intermediate process step in the simulation with the historical control parameters of the intermediate process step in the historical simulation data; and a verification module, configured to retrieve the input data of the intermediate process step during the initial simulation production, perform single-step simulation and acquire intermediate product information, and if the deviation between the acquired intermediate product and the theoretical output value of the intermediate process step in the process recipe is less than a first range, save the adjusted control parameters.
[0024] The application further discloses a device for simulating production of a pharmaceutical process recipe, which comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the steps of any of the above methods when executing the computer program.
[0025] The application further discloses a computer readable storage medium, which stores a computer program, and the computer program implements the steps of any of the above methods when executed by a processor.
[0026] The simulation production method, system and storage medium of the pharmaceutical process formula disclosed by the application record the reaction information of each intermediate process step of the initial simulation production when the final product information obtained by simulating production according to the process formula of the medicine does not match the design product information; then, single-step simulation is performed again according to the process formula, the intermediate product is obtained after each intermediate process step is simulated, and the intermediate product is compared with the theoretical output value of the intermediate process step in the electronic process formula stored in the formula database to determine whether the deviation of the simulated intermediate product yield and the theoretical output value is within a first range; if the deviation is within the first range, the subsequent process step simulation is continued, otherwise, the intermediate process step is marked, the theoretical output value of the intermediate process step is replaced by the simulation input quantity of the next process step, and the next process step simulation is continued; finally, the control parameter adjustment and single-step simulation verification of the marked intermediate process steps are performed until the deviation of the simulated intermediate product yield and the theoretical yield of the intermediate process step is within the first range. Therefore, for the problematic formula, all variable data in the process flow and the execution of each step of the formula flow can be clearly known through the single-step debugging process, the intermediate steps that may have problems are immediately marked and isolated, so that the subsequent step simulation verification is not affected, and the error step can be found as soon as possible and adjusted accordingly, thereby effectively shortening the modification and verification time of the pharmaceutical production formula.
[0027] Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will become apparent to those skilled in the art upon examination of the following and / or can be learned by practice of the application. BRIEF DESCRIPTION OF DRAWINGS
[0028] The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application. In the drawings:
[0029] Figure 1 The flowchart of the simulation production method of the pharmaceutical process formula disclosed by the present embodiment.
[0030] Figure 2 The specific flowchart of step S3 disclosed by the present embodiment.
[0031] Figure 3 The specific flowchart of step S33 disclosed by the present embodiment.
[0032] Figure 4 The specific flowchart of step S4 disclosed by the present embodiment. DETAILED DESCRIPTION
[0033] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the described embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0034] Unless otherwise defined, the technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention pertains. The terms “first,” “second,” and similar terms used in the specification and claims of this patent application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Similarly, the terms “an” or “a” and similar terms do not indicate a limitation of quantity, but rather indicate the presence of at least one.
[0035] This embodiment discloses a simulated production method for a pharmaceutical process formulation, as shown in the attached figure. Figure 1 As shown, it may specifically include the following contents.
[0036] Step S1: Simulate production according to the drug's process formulation. Compare the final product information obtained from the initial simulation production with the designed product information in the drug's process formulation. If the final product information does not match the set information, record the reaction information of each intermediate process step in the initial simulation production. The reaction information includes reaction control parameters, as well as the attributes and quantities of the inputs and corresponding products involved in the step.
[0037] The electronic formula in the MES system includes a bill of materials (BOM) for the raw materials and excipients used to produce the drug, the process flow, and reaction control parameters. The reaction control parameters include trigger conditions and control actions. The BOM for raw materials and excipients specifies the raw materials and excipients required to produce the product. The process flow is the sum of the production logic of all production units required to produce the drug. The trigger conditions are used to control the switching of production logic within or between production units, while the control actions are the actions that need to be performed within each production unit.
[0038] After the initial simulated production, if the final product information is found to be inconsistent with the set information, the data of the addition status of raw materials and excipients, the control parameters of each intermediate process step, the intermediate product information, and other reaction information during the simulation are bound and entered into the simulation process database.
[0039] After the system performs electronic formula simulation execution or debugging, it will bind and enter the data such as the addition status of raw materials and excipients, control parameters of each intermediate process step, and intermediate product information into the simulation process database.
[0040] Step S2, re-perform single step simulation according to the process recipe, obtain the intermediate product after each simulation of an intermediate process step, and compare it with the theoretical output value of the intermediate process step in the electronic process recipe stored in the recipe database, to determine whether the deviation of the simulated intermediate product yield from the theoretical output value is within the first range.
[0041] Step S3, if within the first range, continue to simulate the subsequent process step, otherwise mark it, replace the theoretical output value of the intermediate process step with the simulation input of the next process step, and continue to simulate the next process step. Specifically, when the deviation of the intermediate product yield of an intermediate process step from the theoretical output value is greater than the first range, we can consider that the reaction of the intermediate process step has a problem, and the output of the intermediate product needs to be corrected before it can affect the execution of the subsequent process step.
[0042] In this embodiment, as shown in the accompanying Figure 2 , this step S3 can specifically include the following contents.
[0043] Step S31, if the deviation of the simulated intermediate product yield from the theoretical output value is outside the first range, mark it and query the theoretical input of the intermediate process step stored in the recipe database.
[0044] Step S32, replace the simulation input in the original single step simulation with the theoretical input of the intermediate process step, re-perform the single step simulation of the process step, and compare the newly obtained intermediate product data with the theoretical output value of the intermediate process step.
[0045] Step S33, if the deviation of the newly obtained intermediate product data from the theoretical output value is within the second range, cancel the marking of the intermediate process step, otherwise replace the theoretical output value of the intermediate process step with the simulation input of the next process step and continue to simulate the next process step, the second range is included in the first range. The second range is a smaller deviation allowed range than the first range. Generally, when the deviation of the intermediate product data from the theoretical output value is within the second range, it can be completely determined that the reaction parameters of the process step producing the result are correct, and the reaction process of the step is completed in accordance with the requirements.
[0046] In this embodiment, as shown in the accompanying Figure 3 , step S33 can also specifically include:
[0047] Step S331, if the deviation between the newly obtained intermediate product data and the theoretical output value is within the second range, the marked intermediate process step is cancelled. When the deviation between the newly obtained intermediate product data and the theoretical output value is within the second range, it indicates that the marked process step is completely qualified in this simulation execution, and the deviation in the previous simulation is not caused by the process step itself, but by the input reactant, and thus the deviation of the process step is caused by the accumulated output intermediate product of the upstream step.
[0048] Step S332, the intermediate product yield of each step before the intermediate process step in this simulation is obtained, and compared with the theoretical output value of the corresponding step stored in the recipe database to obtain the output deviation value.
[0049] Step S333, the deviation step adjacent to and continuous with the intermediate process step is obtained, and the control parameters in the deviation step are adjusted and single-step simulation verified until the simulation intermediate product yield of the intermediate process step and the theoretical yield deviation is within the second range, and the output deviation value of the deviation step is within the second range. When it is found that the error is not caused by the originally marked process step but by the accumulated error from the upstream step, the verification range of the intermediate product output value of the upstream process step adjacent thereto is increased to the second range, which can be adjusted in real time according to actual needs.
[0050] Step S4, the control parameters of the marked intermediate process steps are adjusted and single-step simulation verified until the simulation intermediate product yield obtained by the intermediate process step and the theoretical yield deviation is within the first range.
[0051] In this embodiment, as shown in the accompanying drawings, this step S4 can include the following contents. Figure 4
[0052] Step S101, the attribute information of the input and corresponding intermediate product of the marked intermediate process step is obtained, and whether there is historical simulation data of other process recipes containing the intermediate process step in the recipe database is queried according to the attribute information, and if there is, the control parameters of the intermediate process step in the historical simulation data are called.
[0053] Step S102, the control parameters of the intermediate process step of the queried historical simulation data are compared with the control parameters of the corresponding step in this simulation, and if the deviation range is greater than the set range, the historical control parameters of the intermediate process step in the historical simulation data are replaced with the original control parameters of the intermediate process step in this simulation.
[0054] Step S103, the input data of the intermediate process step in the initial simulation production is retrieved and single step simulation is performed to obtain the intermediate product information. If the deviation between the obtained intermediate product and the theoretical output value of the intermediate process step in the process recipe is less than the first range, the adjusted control parameter is saved.
[0055] If the deviation is still greater than the first range, the theoretical input value of the intermediate process step is obtained from the recipe database. The single step simulation is performed again by changing the input value of the marked intermediate process step to determine whether there is a problem in the process step, which can include the following contents.
[0056] Step S104, if the deviation between the obtained intermediate product and the theoretical output value of the intermediate process step in the process recipe is greater than the first range, the theoretical input value of the intermediate process step stored in the recipe database is queried.
[0057] Step S105, the theoretical input value of the intermediate process step is used to replace the simulation input value in the original single step simulation, and the single step simulation of the process step is performed again. The newly obtained intermediate product data is compared with the theoretical output value of the intermediate process step.
[0058] Step S106, if the deviation between the newly obtained intermediate product data and the theoretical output value is within the second range, the marking of the intermediate process step is cancelled, wherein the second range is included in the first range, i.e. the second range is less than the first range.
[0059] As can be seen from step S106, if the deviation between the newly obtained intermediate product data and the theoretical output value is within the second range, it indicates that the control parameter setting of the intermediate process step is not a problem, and the abnormal output of the intermediate product of the step is caused by the input of the reactant of the step, i.e. caused by the gradual deviation accumulation of the output data of the multiple process steps before the step.
[0060] Therefore, the debugging results of the steps before the process step can be re-verified, and the verification requirements can be improved, which can include the following steps.
[0061] The intermediate products of the steps before the marked process step are re-verified in sequence, and the re-evaluation step of the deviation between the intermediate product yield of the process step and the theoretical output value of the step in the process recipe is obtained.
[0062] Obtaining continuous re-evaluation steps adjacent to the identified process step, respectively replacing the simulation input quantity of the corresponding original simulation debugging with the theoretical input quantity of these continuous re-evaluation steps, re-performing single-step simulation of the process step, comparing the newly obtained intermediate product data with the theoretical output value of the intermediate process step, and resetting the control parameters of the re-evaluation step with a deviation greater than the second range until the simulation intermediate product yield obtained by the process step is within the second range of the theoretical output value.
[0063] The simulation production method of the pharmaceutical process formula disclosed in the present application, when the final product information obtained by the simulation production according to the pharmaceutical process formula does not match the design product information, records the reaction information of each intermediate process step of the initial simulation production; then re-performs single-step simulation according to the process formula, obtains the intermediate product after each simulation of an intermediate process step, and compares it with the theoretical output value of the intermediate process step in the electronic process formula stored in the formula database to determine whether the deviation of the simulated intermediate product yield from the theoretical output value is within the first range; if it is within the first range, continue to simulate the subsequent process step, otherwise mark it, replace the theoretical output value of the intermediate process step with the simulation input quantity of the next process step, and continue to simulate the next process step; finally, adjust the control parameters of the marked intermediate process steps and perform single-step simulation verification until the deviation of the simulated intermediate product yield from the theoretical yield of the intermediate process step is within the first range. This makes it possible to clearly know all variable data in the process flow and the execution of each step in the formula flow through the single-step debugging process for problematic formulas, immediately mark and isolate the intermediate steps that may have problems, so as to not affect the simulation verification of subsequent steps, thereby discovering the error steps and making corresponding adjustments as soon as possible, effectively shortening the modification and verification time of the pharmaceutical production formula.
[0064] In another embodiment, a simulation production system of a drug process recipe is also disclosed, comprising: a first run module configured to simulate production according to a drug process recipe, compare final product information obtained from the first simulation production with design product information in the drug process recipe, and if the final product information is found to be inconsistent with the design information, record reaction information of each intermediate process step of the first simulation production, the reaction information comprising reaction control parameters, and attributes and quantities of input and corresponding product of the step; a single step simulation module configured to re-simulate a single step according to the process recipe, obtain an intermediate product after each intermediate process step is simulated, and compare the intermediate product with a theoretical output value of the intermediate process step in the electronic process recipe stored in a recipe database to determine whether a deviation between the simulated intermediate product and the theoretical output value is within a first range; a marking module configured to replace the theoretical output value of the intermediate process step with a simulation input quantity of a next process step when the deviation between the simulated intermediate product and the theoretical output value is not within the first range, and continue to simulate the next process step; and an adjusting module configured to adjust control parameters of the marked intermediate process step and perform single step simulation verification until the deviation between the simulated intermediate product and the theoretical output value of the intermediate process step is within the first range.
[0065] In the embodiment, the marking module comprises: a querying module configured to mark and query a theoretical input quantity of the intermediate process step stored in the recipe database when the deviation between the simulated intermediate product and the theoretical output value is outside the first range; a replacing module configured to replace the theoretical input quantity of the intermediate process step with a simulation input quantity of a next process step, and re-simulate the single step, compare the newly obtained intermediate product data with the theoretical output value of the intermediate process step; and an updating module configured to determine whether the deviation between the newly obtained intermediate product data and the theoretical output value is within a second range, and if yes, cancel the marking of the intermediate process step, and if no, replace the theoretical output value of the intermediate process step with the simulation input quantity of the next process step and continue to simulate the next process step, the second range being included in the first range.
[0066] In the embodiment, the updating module is further configured to cancel the marking of the intermediate process step if the deviation between the newly obtained intermediate product data and the theoretical output value is within the second range, obtain intermediate product quantities of steps before the intermediate process step in the simulation, compare the intermediate product quantities with theoretical output values of the corresponding steps stored in the recipe database respectively to obtain output deviation values, and obtain deviation steps adjacent to and continuous with the intermediate process step, and adjust control parameters in the deviation steps and perform single step simulation verification until the deviation between the simulated intermediate product and the theoretical output value of the intermediate process step is within the second range, and the output deviation values of the deviation steps are within the second range.
[0067] In the embodiment, the adjusting module comprises a historical data querying module, configured to acquire attribute information of the input and the corresponding intermediate product of each intermediate process step marked, and query whether there is historical simulation data of other process recipes containing the intermediate process step in the recipe database according to the attribute information, and if so, call the control parameter of the intermediate process step in the historical simulation data; a comparing module, configured to compare the control parameter of the intermediate process step of the historical simulation data queried with the control parameter of the corresponding step in the simulation, and if the deviation range is greater than the set range, replace the original control parameter of the intermediate process step in the simulation with the historical control parameter of the intermediate process step in the historical simulation data; and a checking module, configured to call the input data of the intermediate process step in the initial simulation production stored, perform single-step simulation and acquire intermediate product information, and if the deviation between the acquired intermediate product and the theoretical output value of the intermediate process step in the process recipe is less than the first range, save the adjusted control parameter.
[0068] It should be noted that the embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts of each embodiment can be referred to each other. For the simulation production system of the drug process recipe disclosed in the embodiments, since it corresponds to the simulation production method of the drug process recipe disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part.
[0069] In some other embodiments, a simulation production device of a drug process recipe is also provided, which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements each step of the simulation production method of the drug process recipe described in the above embodiments when executing the computer program.
[0070] The simulation production device of the drug process recipe can comprise but is not limited to a processor and a memory. Those skilled in the art can understand that the schematic diagram is only an example of the simulation production device of the drug process recipe, and does not constitute a limitation on the simulation production device of the drug process recipe. It can comprise more or fewer components than the diagram, or combine certain components, or different components, for example, the simulation production device of the drug process recipe can also comprise an input / output device, a network access device, a bus, etc.
[0071] The processor can be a central processing unit (CPU), and can also be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The processor is a control center of the simulation production device of the pharmaceutical process formula, and is connected to each part of the simulation production device of the pharmaceutical process formula through various interfaces and lines.
[0072] The memory can be used to store the computer program and / or modules, and the processor realizes various functions of the simulation production device of the pharmaceutical process formula by running or executing the computer program and / or modules stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required by a function, etc. In addition, the memory can include a high-speed random access memory, and can also include a nonvolatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash memory device, or other volatile solid-state storage device.
[0073] If the simulation production device of the medicine process formula is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above-mentioned embodiment methods can also be completed by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when the processor executes the computer program, the steps of the above-mentioned various simulation production methods of the medicine process formula can be implemented. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or some intermediate forms, etc. The computer-readable medium can include any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content included in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.
[0074] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
[0075] In summary, the above is only a preferred embodiment of the present application, and any equivalent changes and modifications made within the scope of the patent application of the present application shall be included in the scope of the present application.
Claims
1. A method of simulated production of a drug product process recipe, characterized in that, The method comprises the following steps: S1, according to the process recipe of the drug, the final product information obtained by the initial simulation production is compared with the design product information in the process recipe of the drug, if the final product information is found to be inconsistent with the design information, the reaction information of each intermediate process step of the initial simulation production is recorded, the reaction information comprises reaction control parameters, and attributes and quantities of input and corresponding product participating in the step; S2, according to the process recipe, single step simulation is carried out again, after each intermediate process step is simulated, the intermediate product is obtained and compared with the theoretical output value of the intermediate process step in the electronic process recipe stored in the recipe database, whether the deviation of the simulated intermediate product yield and the theoretical output value is within the first range is judged; S3, if it is within the first range, the subsequent process step simulation is continued, otherwise it is marked, the theoretical output value of the intermediate process step is replaced by the simulation input quantity of the next process step, and the next process step simulation is continued; S4, the control parameter adjustment and single step simulation verification of the marked intermediate process step are carried out until the deviation of the simulated intermediate product yield and the theoretical yield of the intermediate process step is within the first range.
2. The simulated production method of a pharmaceutical process recipe according to claim 1, wherein, The step S3 further comprises: S31, if the deviation of the simulated intermediate product yield and the theoretical output value is outside the first range, the intermediate process step is marked and the theoretical input quantity of the intermediate process step stored in the recipe database is queried; S32, the theoretical input quantity of the intermediate process step is used to replace the simulation input quantity in the original single step simulation, the single step simulation of the process step is carried out again, and the newly obtained intermediate product data is compared with the theoretical output value of the intermediate process step; S33, if the deviation of the newly obtained intermediate product data and the theoretical output value is within the second range, the marking of the intermediate process step is cancelled, otherwise the theoretical output value of the intermediate process step is replaced by the simulation input quantity of the next process step, and the next process step simulation is continued, and the second range is included in the first range.
3. The method of simulated production of a pharmaceutical process recipe according to claim 2, wherein, The step S33 further comprises: If the deviation of the newly obtained intermediate product data and the theoretical output value is within the second range, the marking of the intermediate process step is cancelled; The intermediate product yield of each step before the intermediate process step in the current simulation is obtained, and the yield deviation value is obtained by comparing the yield deviation value with the theoretical output value of the corresponding step stored in the recipe database; The deviation step adjacent to and continuous with the intermediate process step is obtained, the control parameter adjustment and single step simulation verification of the deviation step are carried out until the deviation of the simulated intermediate product yield and the theoretical yield of the intermediate process step is within the second range, and the yield deviation value of the deviation step is within the second range.
4. The method of simulated production of a pharmaceutical process recipe according to claim 3, wherein, The step S4 comprises: The attribute information of the input and the corresponding intermediate product of the marked intermediate process step is obtained, and whether there is historical simulation data of other process recipes containing the intermediate process step in the recipe database is queried according to the attribute information, if there is, the control parameter of the intermediate process step in the historical simulation data is called; comparing the control parameters of the intermediate process step of the queried historical simulation data with the control parameters of the corresponding step in the current simulation, and if the deviation range is greater than the set range, replacing the historical control parameters of the intermediate process step in the historical simulation data with the original control parameters of the intermediate process step in the current simulation; retrieving the input data of the intermediate process step during the initial simulation production, performing single-step simulation and obtaining intermediate product information, and if the deviation between the obtained intermediate product and the theoretical output value of the intermediate process step in the process recipe is less than the first range, saving the adjusted control parameters.
5. A simulated production system of a pharmaceutical process recipe, characterized by, comprise: an initial running module for performing simulation production according to a process recipe of a drug, comparing final product information obtained by initial simulation production with design product information in the drug process recipe, and if it is found that the final product information does not match the set information, recording reaction information of each intermediate process step of the initial simulation production, the reaction information including reaction control parameters, and attributes and quantities of inputs and corresponding products participating in the step; a single-step simulation module for performing single-step simulation according to the process recipe, obtaining intermediate products after each simulation of an intermediate process step, and comparing the obtained intermediate product with a theoretical output value of the intermediate process step in an electronic process recipe stored in a recipe database to determine whether the deviation between the simulated intermediate product yield and the theoretical output value is within a first range; an indicating module for replacing the theoretical output value of the intermediate process step with a simulation input quantity of a next process step when the deviation between the simulated intermediate product yield and the theoretical output value is not within the first range, and continuing to simulate the next process step; an adjusting module for adjusting control parameters of each indicated intermediate process step and verifying the single-step simulation, until the deviation between the simulated intermediate product yield and the theoretical yield of the intermediate process step is within the first range.
6. The simulated production system of a pharmaceutical process recipe of claim 5, wherein, The indicating module comprises: a querying module for indicating and querying a theoretical input quantity of the intermediate process step in the recipe database when the deviation between the simulated intermediate product yield and the theoretical output value is outside the first range; a replacing module for replacing the theoretical input quantity of the intermediate process step with a simulation input quantity of the original single-step simulation, re-performing single-step simulation of the process step, and comparing the newly obtained intermediate product data with the theoretical output value of the intermediate process step; an updating module for determining whether the deviation between the newly obtained intermediate product data and the theoretical output value is within a second range, and if yes, canceling the indication of the intermediate process step, and if no, replacing the theoretical output value of the intermediate process step with a simulation input quantity of a next process step and continuing to simulate the next process step, the second range being included in the first range.
7. The simulated production system of a pharmaceutical process recipe according to claim 6, wherein, The updating module is further configured to cancel the marking of the intermediate process step if the deviation of the newly obtained intermediate product data from the theoretical output value is within the second range; obtain the intermediate product output of each step before the intermediate process step in the current simulation, compare the outputs with the theoretical output values of the corresponding steps stored in the recipe database respectively, and obtain the output deviation values; obtain the deviation steps adjacent to and continuous with the intermediate process step, adjust the control parameters in the deviation steps and perform single-step simulation verification until the deviation of the simulation intermediate product output of the intermediate process step from the theoretical output is within the second range, and the output deviation values of the deviation steps are within the second range.
8. The simulated production system of a pharmaceutical process recipe according to claim 7, wherein, The adjusting module comprises: a historical data query module configured to obtain the attribute information of the input and the corresponding intermediate product of each marked intermediate process step, and query whether there is historical simulation data of other process recipes containing the intermediate process step in the recipe database according to the attribute information, and if so, retrieve the control parameters of the intermediate process step in the historical simulation data; a comparison module configured to compare the control parameters of the intermediate process step of the queried historical simulation data with the control parameters of the corresponding step in the current simulation, and if the deviation range is greater than the set range, replace the original control parameters of the intermediate process step in the current simulation with the historical control parameters of the intermediate process step in the historical simulation data; a verification module configured to retrieve the input data of the intermediate process step during the initial simulation and perform single-step simulation to obtain intermediate product information, and if the deviation of the obtained intermediate product from the theoretical output value of the intermediate process step in the process recipe is less than the first range, save the adjusted control parameters.
9. A simulated production device for a pharmaceutical process recipe, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: The processor executes the computer program to realize the steps of the method of any one of claims 1-4.
10. A computer-readable storage medium, the computer-readable storage medium storing a computer program, characterized in that: The computer program is executed by the processor to realize the steps of the method of any one of claims 1-4.
Citation Information
Patent Citations
Strategy release method and system based on whole-process gray release and electronic equipment
CN111580855A
Medical technological process method and device, computer equipment and storage medium
CN111680868A