CN111966431A - Calculation formula self-defining method applied to laboratory management system - Google Patents
Calculation formula self-defining method applied to laboratory management system Download PDFInfo
- Publication number
- CN111966431A CN111966431A CN202010587924.1A CN202010587924A CN111966431A CN 111966431 A CN111966431 A CN 111966431A CN 202010587924 A CN202010587924 A CN 202010587924A CN 111966431 A CN111966431 A CN 111966431A
- Authority
- CN
- China
- Prior art keywords
- parameter
- calculation formula
- management system
- type
- function library
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/11—Complex mathematical operations for solving equations, e.g. nonlinear equations, general mathematical optimization problems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
- G06Q10/06313—Resource planning in a project environment
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Human Resources & Organizations (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Mathematical Physics (AREA)
- Operations Research (AREA)
- Strategic Management (AREA)
- Data Mining & Analysis (AREA)
- Entrepreneurship & Innovation (AREA)
- Pure & Applied Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Optimization (AREA)
- Mathematical Analysis (AREA)
- Economics (AREA)
- Computational Mathematics (AREA)
- Algebra (AREA)
- Development Economics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Educational Administration (AREA)
- Databases & Information Systems (AREA)
- Game Theory and Decision Science (AREA)
- Biodiversity & Conservation Biology (AREA)
- Marketing (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Automatic Analysis And Handling Materials Therefor (AREA)
Abstract
本发明涉及计算机领域,尤其涉及一种应用于实验室管理系统的计算公式自定义方法,包括:在实验室管理系统中建立包括常用函数模型的函数库;根据检测分项定义各参数的参数类型、参数名以及数据类型;基于函数库并根据各参数的参数类型、参数名以及数据类型建立计算公式。本发明减少了计算过程所需要的时间、提高计算结果的准确性。
The invention relates to the field of computers, in particular to a calculation formula self-defining method applied to a laboratory management system, comprising: establishing a function library including commonly used function models in the laboratory management system; , parameter name and data type; establish a calculation formula based on the function library and according to the parameter type, parameter name and data type of each parameter. The invention reduces the time required for the calculation process and improves the accuracy of the calculation result.
Description
技术领域technical field
本发明涉及计算机领域,尤其涉及一种应用于实验室管理系统的计算公式自定义方法。The invention relates to the field of computers, in particular to a calculation formula self-defining method applied to a laboratory management system.
背景技术Background technique
在实验室管理系统中,存在很多需要通过计算才能得出结果的检测分项,比如一些含量的计算,组分的质量分数的计算等。以前的大部分实验室管理系统,在面对这种需通过复杂的计算公式才能获取结果的检测分项时,往往是把这部分计算的过程放在线下处理。比如通过Excel中的计算公式来计算或者人工计算。通过上述方法对于较复杂的计算公式,计算效率低下且出错率高。In the laboratory management system, there are many test items that need to be calculated to obtain results, such as the calculation of some content, the calculation of the mass fraction of components, etc. Most of the previous laboratory management systems often dealt with this part of the calculation process offline when faced with the detection sub-item that requires complex calculation formulas to obtain results. For example, it is calculated by calculation formulas in Excel or manually. With the above method, the calculation efficiency is low and the error rate is high for a relatively complex calculation formula.
发明内容SUMMARY OF THE INVENTION
为解决上述问题,本发明提出一种应用于实验室管理系统的计算公式自定义方法。In order to solve the above problems, the present invention proposes a calculation formula self-defining method applied to a laboratory management system.
一种应用于实验室管理系统的计算公式自定义方法,包括:A calculation formula customization method applied to a laboratory management system, comprising:
在实验室管理系统中建立包括常用函数模型的函数库;Build a function library including common function models in the laboratory management system;
根据检测分项定义各参数的参数类型、参数名以及数据类型;Define the parameter type, parameter name and data type of each parameter according to the detection sub-item;
基于函数库并根据各参数的参数类型、参数名以及数据类型建立计算公式。Based on the function library, the calculation formula is established according to the parameter type, parameter name and data type of each parameter.
优选的,所述在实验室管理系统中建立包括常用函数模型的函数库包括:Preferably, the establishment of a function library including commonly used function models in the laboratory management system includes:
在实验室管理系统的web应用启动时,将常用的函数模型插入到函数库。When the web application of the laboratory management system is started, the commonly used function models are inserted into the function library.
优选的,在所述根据检测分项定义各参数的参数类型、参数名以及数据类型之后包括:Preferably, after defining the parameter type, parameter name and data type of each parameter according to the detection sub-item, it includes:
在函数库中生成所述检测分项的数据记录,所述数据记录包括各参数关联的参数类型、参数名以及数据类型。A data record of the detection sub-item is generated in the function library, and the data record includes the parameter type, parameter name and data type associated with each parameter.
优选的,所述基于函数库并根据各参数的参数类型、参数名以及数据类型建立计算公式包括:Preferably, the calculation formula established based on the function library and according to the parameter type, parameter name and data type of each parameter includes:
根据待建立的计算公式从函数库中选择相应的常用函数模型构成初步计算公式;According to the calculation formula to be established, select the corresponding common function model from the function library to form the preliminary calculation formula;
根据参数的参数类型、参数名以及数据类型对初步计算公式中的原始参数进行替换得到最终计算公式。The final calculation formula is obtained by replacing the original parameters in the preliminary calculation formula according to the parameter type, parameter name and data type of the parameter.
优选的,其特征在于,还包括:Preferably, it is characterized in that, also comprises:
验证所建立的计算公式的正确性,若不正确则重新建立。Verify the correctness of the established calculation formula, and re-establish it if it is not correct.
优选的,所述验证所建立的计算公式的正确性包括:Preferably, the verification of the correctness of the established calculation formula includes:
对检测分项及各参数进行手动赋值,根据所建立的计算公式进行测试,若计算得到的执行结果与所赋值的结果相同,则判断计算公式设置无误;若计算得到的执行结果与所赋值的结果不同,则判断计算公式设置有误。Manually assign the detection items and parameters, and test according to the established calculation formula. If the calculated execution result is the same as the assigned result, it is judged that the calculation formula is set correctly; if the calculated execution result is the same as the assigned value. If the results are different, it is judged that the calculation formula is set incorrectly.
通过使用本发明,可以实现以下效果:By using the present invention, the following effects can be achieved:
1.在计算公式编辑方面,本发明能够提供全面的函数库库帮助计算者快速、准确编写合成公式。1. In the aspect of calculation formula editing, the present invention can provide a comprehensive function library to help the calculator quickly and accurately write the synthetic formula.
2.计算时,只需要录入计算所需的参数值,系统就会自动计算出所有结果并对结果自动赋值。相比较人工手动计算再赋值,大大减少了计算过程所需要的时间、提高计算结果的准确性,能够高效的完成整个计算过程。2. When calculating, you only need to enter the parameter values required for the calculation, and the system will automatically calculate all the results and assign the results automatically. Compared with manual calculation and reassignment, the time required for the calculation process is greatly reduced, the accuracy of the calculation result is improved, and the entire calculation process can be completed efficiently.
附图说明Description of drawings
下面结合附图和具体实施方式对本发明作进一步详细的说明。The present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.
图1是本发明实施例的流程示意图;1 is a schematic flowchart of an embodiment of the present invention;
图2是本发明实施例中步骤S105的示意流程图;FIG. 2 is a schematic flowchart of step S105 in the embodiment of the present invention;
图3是本发明实施例中步骤S108的示意流程图。FIG. 3 is a schematic flowchart of step S108 in the embodiment of the present invention.
具体实施方式Detailed ways
以下结合附图,对本发明的技术方案作进一步的描述,但本发明并不限于这些实施例。The technical solutions of the present invention will be further described below with reference to the accompanying drawings, but the present invention is not limited to these embodiments.
实验室管理系统:是将以数据库为核心的信息化技术与实验室管理需求相结合的信息化管理工具。实验室管理的对象是与实验室有关的人、事、物、信息、经费等,因此实验室管理主要包括:实验室人力资源管理、质量管理、仪器设备与试剂管理、环境管理、安全管理、信息管理以及实验室设置模式与管理体制、管理机构与职能、建设与规划等。Laboratory management system: It is an information management tool that combines information technology with database as the core and laboratory management requirements. The objects of laboratory management are people, things, things, information, funds, etc. related to the laboratory. Therefore, laboratory management mainly includes: laboratory human resources management, quality management, instrument equipment and reagent management, environmental management, safety management, Information management, laboratory setting mode and management system, management organization and functions, construction and planning, etc.
本发明的基本思想是在实验室管理系统中建立包括常用函数模型的函数库;根据检测分项定义各参数的参数类型、参数名以及数据类型;基于函数库并根据各参数的参数类型、参数名以及数据类型建立计算公式,对一些需要计算的检测分项,可以做到自动计算。The basic idea of the invention is to establish a function library including common function models in the laboratory management system; to define the parameter type, parameter name and data type of each parameter according to the detection sub-item; based on the function library and according to the parameter type, parameter of each parameter Name and data type to establish a calculation formula, and can be automatically calculated for some detection items that need to be calculated.
基于以上发明构思,本实施例提出一种应用于实验室管理系统的计算公式自定义方法,如图1所示包括以下步骤:Based on the above inventive concept, the present embodiment proposes a method for customizing a calculation formula applied to a laboratory management system, which includes the following steps as shown in FIG. 1 :
S102:在实验室管理系统中建立包括常用函数模型的函数库;S102: establish a function library including commonly used function models in the laboratory management system;
在实验室管理系统的web应用启动时,将常用的函数模型插入到函数库。其中常用的函数模块包括基本数学运算函数(加、减、乘、除)、聚合函数(平均值,求和等)和一些较复杂的函数,比如相对偏差、圆周率函数和三角函数等。When the web application of the laboratory management system is started, the commonly used function models are inserted into the function library. The commonly used function modules include basic mathematical operation functions (addition, subtraction, multiplication, division), aggregation functions (average, summation, etc.) and some more complex functions, such as relative deviation, pi function and trigonometric function.
Web应用是一种可以通过Web访问的应用程序,程序的最大好处是用户很容易访问应用程序,用户只需要有浏览器即可,不需要再安装其他软件。Web应用提供可视化的配置计算公式的界面,方便用户对计算公式的配置。此外,不需额外开发和搭建服务和依赖第三方软件,节省成本。A Web application is an application that can be accessed through the Web. The biggest advantage of the program is that the user can easily access the application. The user only needs a browser and does not need to install other software. The web application provides a visual interface for configuring calculation formulas, which is convenient for users to configure calculation formulas. In addition, there is no need to develop and build services and rely on third-party software, saving costs.
S104:根据检测分项定义各参数的参数类型、参数名以及数据类型;S104: Define the parameter type, parameter name and data type of each parameter according to the detection sub-item;
检测分项为用指定的方法检测某种物体(气体、液体、固体)指定的技术性能指标。The detection sub-item is the technical performance index specified for detecting a certain object (gas, liquid, solid) by a specified method.
参数类型可根据业务的需求选择,不同的参数类型代表参数的取值从不同的数据源模型获取,数据源模型指的是计算的时候参数数据的来源是具体哪个对象或者实体。The parameter type can be selected according to the needs of the business. Different parameter types represent the parameter values obtained from different data source models. The data source model refers to the specific object or entity that the parameter data comes from during calculation.
参数配置时,首先需定义参数变量名,如paramA,paramB,可参照javascript的变量定义规则。When configuring parameters, first define the parameter variable names, such as paramA and paramB, you can refer to the variable definition rules of javascript.
同时可配置参数的数据类型,数据类型是对程序所处理的数据的抽象,决定数据的含义、表达方式,存储格式和运算,可选是数字类型、字符串类型或数组类型。At the same time, the data type of the parameter can be configured. The data type is an abstraction of the data processed by the program, which determines the meaning, expression, storage format and operation of the data. It can be a number type, a string type or an array type.
在本实施例中,检测分项的参数可配置,可选择其他值类型为数值的检测分项作为参数。In this embodiment, the parameters of the detection sub-item can be configured, and other detection sub-items whose value types are numeric values can be selected as parameters.
S106:基于函数库并根据各参数的参数类型、参数名以及数据类型建立计算公式。S106: Establish a calculation formula based on the function library and according to the parameter type, parameter name and data type of each parameter.
首先根据待建立的计算公式从函数库中选择相应的常用函数模型构成初步计算公式;然后根据参数的参数类型、参数名以及数据类型对初步计算公式中的原始参数进行替换得到最终计算公式。First select the corresponding common function model from the function library according to the calculation formula to be established to form the preliminary calculation formula; then replace the original parameters in the preliminary calculation formula according to the parameter type, parameter name and data type of the parameters to obtain the final calculation formula.
在定义计算公式之后,在检验员录入检验数据时,对一些需要计算的检测分项,可以做到自动计算,省去了检验员人工计算和手动输入结果的时间,大大提高了效率和准确性。After defining the calculation formula, when the inspector enters the inspection data, some inspection items that need to be calculated can be automatically calculated, which saves the inspector's time for manual calculation and manual input of results, and greatly improves the efficiency and accuracy. .
在一些实施例中,如图2所示,在所述根据检测分项定义各参数的参数类型、参数名以及数据类型之后包括:In some embodiments, as shown in FIG. 2 , after the parameter type, parameter name and data type of each parameter are defined according to the detection sub-item, the following includes:
S105:在函数库中生成所述检测分项的数据记录,所述数据记录包括各检测分项关联的参数类型、参数名以及数据类型。S105: Generate a data record of the detection items in the function library, where the data records include parameter types, parameter names, and data types associated with each detection item.
参数配置完成之后,会在函数库里保存一个检测分项的数据记录,以便于对参数类型、参数名以及数据类型的修改或核对。After the parameter configuration is completed, a data record of the detection sub-item will be saved in the function library to facilitate the modification or verification of the parameter type, parameter name and data type.
在一些实施例中,如图3所示,本方法还包括:In some embodiments, as shown in Figure 3, the method further includes:
S108:验证所建立的计算公式的正确性,若不正确则重新建立。S108: Verify the correctness of the established calculation formula, and re-establish if it is not correct.
对检测分项及各参数进行手动赋值,根据所建立的计算公式进行测试,若计算得到的执行结果与所赋值的结果相同,则判断计算公式设置无误;若计算得到的执行结果与所赋值的结果不同,则判断计算公式设置有误。通过对计算公式的验证,以保证计算公式的正确性。Manually assign the detection items and parameters, and test according to the established calculation formula. If the calculated execution result is the same as the assigned result, it is judged that the calculation formula is set correctly; if the calculated execution result is the same as the assigned value. If the results are different, it is judged that the calculation formula is set incorrectly. Verify the calculation formula to ensure the correctness of the calculation formula.
以下为具体实例,计算氯含量:The following are specific examples, and the chlorine content is calculated:
如上表所示:选择检测分项,将硝酸银标准溶液的浓度的参数名定义为C,将滴定水样消耗标准溶液的体积的参数名定义为A,将滴定空白消耗标准溶液的体积的参数名定义为B,将水样的体积的参数名定义为V,将稀释倍数的参数名定义为N,其中检测分项的数据类型均为数字。As shown in the table above: select the detection sub-item, define the parameter name of the concentration of the silver nitrate standard solution as C, define the parameter name of the volume of the standard solution consumed by the titration water sample as A, and define the parameter name of the volume of the standard solution consumed by the titration blank The name is defined as B, the parameter name of the volume of the water sample is defined as V, the parameter name of the dilution factor is defined as N, and the data types of the detection items are all numbers.
基于函数库并根据参数的参数类型、参数名以及数据类型建立计算公式为ave(A,B)*C*35.45/V*1000*N,对计算公式进行测试,分别输入参数值,获取测试结果。Based on the function library and according to the parameter type, parameter name and data type of the parameter, a calculation formula is established as ave(A,B)*C*35.45/V*1000*N, the calculation formula is tested, the parameter values are entered respectively, and the test results are obtained. .
本发明所属技术领域的技术人员可以对所描述的具体实施例做各种各样的修改或补充或采用类似的方式替代,但并不会偏离本发明的精神或者超越所附权利要求书所定义的范围。Those skilled in the art to which the present invention pertains can make various modifications or additions to the described specific embodiments or substitute in similar manners, but will not deviate from the spirit of the present invention or go beyond the definitions of the appended claims range.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010587924.1A CN111966431A (en) | 2020-06-24 | 2020-06-24 | Calculation formula self-defining method applied to laboratory management system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010587924.1A CN111966431A (en) | 2020-06-24 | 2020-06-24 | Calculation formula self-defining method applied to laboratory management system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111966431A true CN111966431A (en) | 2020-11-20 |
Family
ID=73360691
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010587924.1A Pending CN111966431A (en) | 2020-06-24 | 2020-06-24 | Calculation formula self-defining method applied to laboratory management system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111966431A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113159630A (en) * | 2021-05-13 | 2021-07-23 | 北京三维天地科技股份有限公司 | Method for maintaining calculation formula in laboratory information management system |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6167565A (en) * | 1998-01-08 | 2000-12-26 | Microsoft Corporation | Method and system of custom marshaling of inter-language parameters |
| CN106126907A (en) * | 2016-06-22 | 2016-11-16 | 中国空气动力研究与发展中心高速空气动力研究所 | A kind of method and apparatus realizing self-defining formula calculating in wind tunnel test |
| CN110851344A (en) * | 2019-09-17 | 2020-02-28 | 恒生电子股份有限公司 | Big data testing method and device based on computational formula complexity and electronic equipment |
-
2020
- 2020-06-24 CN CN202010587924.1A patent/CN111966431A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6167565A (en) * | 1998-01-08 | 2000-12-26 | Microsoft Corporation | Method and system of custom marshaling of inter-language parameters |
| CN106126907A (en) * | 2016-06-22 | 2016-11-16 | 中国空气动力研究与发展中心高速空气动力研究所 | A kind of method and apparatus realizing self-defining formula calculating in wind tunnel test |
| CN110851344A (en) * | 2019-09-17 | 2020-02-28 | 恒生电子股份有限公司 | Big data testing method and device based on computational formula complexity and electronic equipment |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113159630A (en) * | 2021-05-13 | 2021-07-23 | 北京三维天地科技股份有限公司 | Method for maintaining calculation formula in laboratory information management system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3023876A1 (en) | Quality assurance tools for use with source code and a semantic model | |
| CN110990274B (en) | Data processing method, device and system for generating test cases | |
| CN107844424A (en) | Model-based testing system and method | |
| CN109710528B (en) | Test script generation method, device, equipment and medium | |
| CN111522868A (en) | Data rule processing method and device, electronic equipment and storage medium | |
| CN111626028A (en) | Report generation method, device and equipment based on function analysis and computer medium | |
| CN118966208B (en) | Self-reflective prompt word optimization method and system based on large language model | |
| CN118446194A (en) | A method and system for quickly generating forms based on Excel analysis | |
| CN117193751A (en) | Service code generation method, device, equipment and storage medium | |
| CN111966431A (en) | Calculation formula self-defining method applied to laboratory management system | |
| CN118035117A (en) | A fine-grained test case system for component-based satellite service software | |
| CN118860380A (en) | An intelligent auxiliary method and system for software development | |
| CN118570292A (en) | Coordinate system conversion generation method and related equipment | |
| Ho et al. | A Framework for automatic function point counting from source code | |
| Weber et al. | Detecting inconsistencies in multi-view uml models | |
| CN115169307A (en) | Table-based data processing method, device, device and storage medium | |
| CN112069245B (en) | Method for generating data analysis model based on visual web page and storage device | |
| CN109343844A (en) | A method of it is compared and is corrected based on Flex bill data | |
| CN114706771A (en) | Test data verification method, device, storage medium and electronic equipment | |
| CN112232031A (en) | Method, device and storage medium for verifying edge data model of power Internet of things | |
| CN118394313B (en) | Application program rapid construction method suitable for various personnel | |
| CN119473910A (en) | A method, device, equipment and storage medium for generating test data | |
| CN120386802A (en) | Task item creation method, task item query method, device and equipment | |
| CN117873561A (en) | Method and device for generating sample data based on OAS Schema | |
| CN116755680A (en) | A visual process editing method, device, storage medium and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information |
Country or region after: China Address after: No. 309, Liuhe Road, Binjiang District, Hangzhou, Zhejiang 310053 (High tech Zone) Applicant after: Zhongkong Technology Co.,Ltd. Applicant after: ZHEJIANG SUPCON SOFTWARE Co.,Ltd. Address before: No. six, No. 309, Binjiang District Road, Hangzhou, Zhejiang Applicant before: ZHEJIANG SUPCON TECHNOLOGY Co.,Ltd. Country or region before: China Applicant before: ZHEJIANG SUPCON SOFTWARE Co.,Ltd. |
|
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201120 |