CN109543170B - Formula editing method based on ultrasonic equipment, ultrasonic equipment and storage medium - Google Patents

Formula editing method based on ultrasonic equipment, ultrasonic equipment and storage medium Download PDF

Info

Publication number
CN109543170B
CN109543170B CN201811418062.9A CN201811418062A CN109543170B CN 109543170 B CN109543170 B CN 109543170B CN 201811418062 A CN201811418062 A CN 201811418062A CN 109543170 B CN109543170 B CN 109543170B
Authority
CN
China
Prior art keywords
formula
node
information
operator
generating
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.)
Active
Application number
CN201811418062.9A
Other languages
Chinese (zh)
Other versions
CN109543170A (en
Inventor
庄锐
孔维智
石佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sonoscape Medical Corp
Original Assignee
Sonoscape Medical Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Sonoscape Medical Corp filed Critical Sonoscape Medical Corp
Priority to CN201811418062.9A priority Critical patent/CN109543170B/en
Publication of CN109543170A publication Critical patent/CN109543170A/en
Application granted granted Critical
Publication of CN109543170B publication Critical patent/CN109543170B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Algebra (AREA)
  • Computational Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Artificial Intelligence (AREA)
  • Pure & Applied Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a method for editing a formula based on ultrasonic equipment, the ultrasonic equipment and a storage medium, comprising the following steps: the user selects each formula composition item and sets the association relation of each formula composition item, so that the editing of the formula is realized, and a first formula is obtained; according to the association relation between the formula composition items forming the first formula and each formula composition item, generating first storage information for displaying the first formula and second storage information for representing the operation relation of the first formula, so that the editing mode of the self-defined formula is simplified, and the formula does not need to be edited through a script.

Description

Formula editing method based on ultrasonic equipment, ultrasonic equipment and storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a formula editing method based on an ultrasonic device, and a storage medium.
Background
Currently, an ultrasonic diagnostic apparatus generally includes a measurement function for an ultrasonic image, and calculates required data by measurement of the ultrasonic image, for example, calculates the volume of the abdomen by measuring the length, width, and height of the abdomen. The calculation result usually needs to be generated according to the related formula, however, any calculation tool cannot contain all calculation formulas, and cannot be covered in some special cases.
In order to solve the above problems, some high-end ultrasonic diagnostic apparatuses currently can implement the customization of the calculation formula, but currently, the calculation formula is usually edited in a manner of editing a script. Thus, the current method of customizing formulas requires users to be familiar with related grammars, the current method of customizing scripts cannot be used by users not familiar with related grammars, and editing scripts is very complex.
Disclosure of Invention
In view of the above, the embodiment of the invention discloses a method for editing a formula based on ultrasonic equipment, ultrasonic equipment and a storage medium, which solve the problem of complex formula editing caused by editing the formula by a script mode in the prior art.
The invention discloses a formula editing method based on ultrasonic equipment, which comprises the following steps:
generating a first formula in response to the association relation between each formula composition item selected by the user and each formula composition item set;
generating first storage information for displaying the first formula according to the association relation between formula components forming the first formula and each formula component;
generating second storage information for representing the operation relation of the first formula according to the first storage information of the first formula.
Optionally, the formula composition term includes:
the nodes, each node comprising input and/or output terminals and connecting lines for connecting the terminals.
Optionally, the node includes:
a measurement term, operator, or pre-stored formula.
Optionally, the first stored information includes:
node information and connection line information;
the node information includes: node type, node attribute and size and position information of the node;
the connection line information includes: the left node identification of the connecting wire, the left node port type of the connecting wire, the right node identification of the connecting wire, the right node port type of the connecting wire and the coordinates of turning of the connecting wire.
Optionally, the generating the second stored information representing the first formula operation relation includes:
generating a reference node of a binary tree and an operator node of the binary tree according to each component item of the first formula; the operator nodes comprise operators in the first formula, and the reference nodes comprise measurement items in the first formula;
and generating connection relations between each reference node and operator nodes according to the association relations among each component item of the first formula.
Optionally, the method further comprises:
and checking the validity of the first formula according to the second stored information of the first formula.
Optionally, the checking the validity of the first formula according to the second stored information of the first formula includes:
judging whether abnormal conditions exist in the reference node and the operator node;
and/or
Judging whether the connection relation between the reference node and the operator node has abnormal conditions or not;
if the abnormal condition exists, the abnormal information is sent to the user.
Optionally, the method further comprises:
when a call request of a first formula is received, acquiring data of a reference node in the first formula;
traversing the binary tree of the first formula according to a preset traversing sequence to obtain a calculation result;
and feeding back the calculation result to a display device of the ultrasonic device.
Optionally, the method further comprises:
when an initialization instruction is monitored, acquiring target department information;
and acquiring information of formula composition items related to the target department.
The embodiment of the invention also discloses an ultrasonic device, which comprises: a display device, a memory, a processor, a computer program stored in the memory and executable on the processor,
the display device is used for displaying a formula editing interface;
the processor may be configured to perform the steps of, the method for executing the computer program is realized as follows:
generating a first formula in response to the association between each formula component item selected by the user and each formula component item;
generating first storage information for displaying the first formula according to the association relation between formula components forming the first formula and each formula component;
generating second storage information for representing the operation relation of the first formula according to the first storage information of the first formula.
Optionally, the processor is further configured to implement the following method when executing the computer program:
optionally, the formula composition term includes:
the nodes, each node comprising input and/or output terminals and connecting lines for connecting the terminals.
Optionally, the node includes:
a measurement term, operator, or pre-stored formula.
Optionally, the first stored information includes:
node information and connection line information;
the node information includes: node type, node attribute and size and position information of the node;
the connection line information includes: the left node identification of the connecting wire, the left node port type of the connecting wire, the right node identification of the connecting wire, the right node port type of the connecting wire and the coordinates of turning of the connecting wire.
Optionally, the generating the second stored information representing the first formula operation relation includes:
generating a reference node of a binary tree and an operator node of the binary tree according to each component item of the first formula; the operator nodes comprise operators in the first formula, and the reference nodes comprise measurement items in the first formula;
and generating connection relations between each reference node and operator nodes according to the association relations among each component item of the first formula.
Optionally, the method further comprises:
and checking the validity of the first formula according to the second stored information of the first formula.
Optionally, the checking the validity of the first formula according to the second stored information of the first formula includes:
judging whether abnormal conditions exist in the reference node and the operator node;
and/or
Judging whether the connection relation between the reference node and the operator node has abnormal conditions or not;
if the abnormal condition exists, the abnormal information is sent to the user.
Optionally, the method further comprises:
when a call request of a first formula is received, acquiring data of a reference node in the first formula;
traversing the binary tree of the first formula according to a preset traversing sequence to obtain a calculation result;
and feeding back the calculation result to a display device of the ultrasonic device.
Optionally, the method further comprises:
when an initialization instruction is monitored, acquiring target department information;
and acquiring information of formula composition items related to the target department.
The embodiment of the invention also discloses a storage medium, wherein the storage medium stores a computer program which, when being executed by a processor, realizes the steps of any one of the methods based on the ultrasonic equipment formula editing.
The embodiment of the invention discloses a method for editing a formula based on ultrasonic equipment and the ultrasonic equipment, wherein the method comprises the following steps: the user selects each formula composition item and sets the association relation of each formula composition item, so that the editing of the formula is realized, and a first formula is obtained; according to the association relation between the formula composition items forming the first formula and each formula composition item, first storage information for displaying the first formula and second storage information for representing the operation relation of the first formula are generated, so that the editing of a formula by a user is simplified through the formula composition items, and the first storage information realizes the display of the edited formula. And, the composition term of each formula includes: each node comprises an input terminal and/or an output terminal and a connecting wire for connecting the terminals, so that a graphical formula editing mode is realized.
In addition, the second stored information also realizes the checking of the validity of the formula, thus ensuring that an effective formula is obtained.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a schematic flow chart of a formula editing method based on an ultrasonic device according to an embodiment of the present invention;
FIG. 2 illustrates a first exemplary diagram of an edited formula provided by an embodiment of the invention;
FIG. 3 illustrates a second exemplary diagram of an edited formula provided by an embodiment of the invention;
FIG. 4 shows an exemplary diagram of a binary tree according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating a method for using a custom-edited formula provided by an embodiment of the present invention;
FIG. 6 shows a process of formulating through a binary tree;
fig. 7 shows a schematic structural diagram showing an ultrasonic apparatus.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a flow chart of a formula editing method based on an ultrasonic device according to an embodiment of the present invention is shown, where in this embodiment, the method includes:
s101: responding to the association relation between each formula composition item selected by the user and each formula composition item set;
in this embodiment, the constituent terms are parts that constitute the first formula, and the first formula referred to herein is a representation of the formula, for example, a graphical representation, in which the constituent terms that constitute the formula include: nodes, each node comprising input and/or output terminals, connecting lines for connecting the terminals, wherein the terminals may comprise: left and right terminals, the left terminal representing an input and the terminals representing an output, and the number of terminals may be different for different nodes. The node comprises: the measurement terms, operators, and pre-stored formulas, where the pre-stored formulas may be formulas that have been edited before.
It follows that a graphical representation of the formula can be constructed from the formula constituent terms, which facilitates user editing of the formula.
Illustrating: when the user wants to edit some special formulas in a self-defined way, the user can select the nodes such as measurement items, operation relations and the like, or can also select the nodes such as constants and the like; based on the relationships between the measured terms, constants and operators, the nodes are related by connecting lines as shown in FIG. 2.
The nodes can be selected and connecting lines between the node terminals can be set in various manners, for example, a mouse dragging manner, a mouse or keyboard selecting manner, and a manner of inputting related nodes in a self-defined manner.
S102, generating first storage information for displaying the first formula according to the association relation between formula components forming the first formula and each formula component;
in this embodiment, the first storage information is data for storing names, sizes, positions and connection relations of respective formula constituent items in the first formula, and specifically includes: node information and connection line information; wherein the node information includes: node type, node attribute, size and position information of the node; the connection line information includes: the left node identification of the connecting wire, the left node port type of the connecting wire, the right node identification of the connecting wire, the right node port type of the connecting wire and the coordinates of turning of the connecting wire.
Wherein, the left node identifier or the right node identifier of the connection line is identifier information for representing the left connection or the right node of the connection line, for example, the name of the left node of the connection line, the name of the right node of the connection line, and the port types of the left node and the right node may include: an input port and an output port.
Illustrating: as shown in fig. 3, a first formula composed of formula constituent items, node information and connection line information of the first formula include:
Node1:{Type:Measure;Value:“Bladder(ABD).Bladder-L”;Rect:(121,178,120,60);}
Node2:{Type:Number;Value:“0.5236”;Rect:(173,282,60,60);}
Node3:{Type:Operate;Value:“*”;Rect:(314,245,60,60);}
Node4:{Type:Result;Value:“Blad”;Rect:(443,245,60,60);}
the background connection line data includes Side1 (connection line left node), type1 (connection line right node), side2 (connection line right node), type2 (right node port), turnPos (coordinates of connection line turning).
Line1:{Side1:Node1;Type1:Out1;Side2:Node3;Type2:In1;TurnPos:(277,223);}
Line2:{Side1:Node2;Type1:Out1;Side2:Node3;Type2:In2;TurnPos:(177,327);}
Line3:{Side1:Node3;Type1:Out1;Side2:Node4;Type2:In1;TurnPos:(406,290);}。
For the first stored information, when the user invokes the first formula, the first formula may be displayed on the display device according to the first stored information.
S103, generating second storage information for representing the first formula operation relation according to the formula composition items forming the first formula and the association relation of the formula composition items;
in this embodiment, the second stored information may be in various forms that represent the operational relationship of the first formula, for example, may be a binary tree, and in this manner, the second stored information includes: reference nodes of the binary tree and operator nodes of the binary tree, and connecting lines connecting the reference nodes and the operator nodes. Wherein the reference node comprises: the measurement items, constants, pre-stored formulas and the like in the nodes can be understood as all the nodes except the operation symbol in the first formula; the operator node includes: each operator in a node.
Specifically, the method for generating the second storage information includes:
generating a reference node of a binary tree and an operator node of the binary tree according to each component item of the first formula; the operator nodes comprise operators in the first formula, and the reference nodes comprise measurement items in the first formula;
and generating connection relations between each reference node and operator nodes according to the association relations among each component item of the first formula.
Illustrating: as shown in fig. 4, the 3 multiplication operators are operator nodes, and are measurement item nodes in addition to the operator nodes.
The second stored information generated to represent the first formula may include two functions, specifically, the following:
function one: inspection function
And checking the validity of the first formula according to the second stored information of the first formula.
In this embodiment, the purpose of performing validity check on the first formula is to make the formula edited by the user meaningful, that is, to check whether the first formula has a node abnormality or an operation abnormality.
Because the second stored information may represent an operational relationship of the first formula, the validity of the first formula may be detected according to the second stored information of the first formula, which specifically includes:
judging whether abnormal conditions exist in the reference node and the operator node;
and/or
Judging whether the connection relation between the reference node and the operator node has abnormal conditions or not;
if the abnormal condition exists, the abnormal information is sent to the user.
Illustrating: the abnormal situation may include: the non-existent measurement items, divided by 0 in the operation, form a dead loop, no set result, lack of wiring, etc.
In the detection of validity of the first formula, the abnormal condition may be set according to actual needs, and in this embodiment, the method is not limited.
And the function II: arithmetic function
Referring to fig. 5, a flow chart of a method for using a custom-edited formula according to an embodiment of the present invention is shown, where in this embodiment, the method includes:
s501: when a call request of a first formula is received, acquiring a binary tree corresponding to the first formula;
in this embodiment, the first formula is any formula edited by user.
S502, traversing a binary tree of a first formula according to a preset traversing sequence to obtain a calculation result;
in this embodiment, when the binary tree node of the formula is generated, the traversal order of the binary tree node is also set.
And traversing the binary tree, wherein the traversing sequence is that a father node is traversed firstly, then a left child node is traversed, then a right child node is traversed, finally, operation is carried out, and the result is returned to the father node.
For example, referring to fig. 6, when traversing the binary tree node of fig. 6, the traversal order is: firstly, traversing from a root node, namely traversing from a 'formula blade' node, and then traversing left and right child nodes in sequence according to the sequence of traversing left child nodes and then traversing right child nodes.
The specific traversal process includes:
1. traversing the left child node operator 1 of the formula blade according to the sequence number 1;
2. the operator 1 node includes children nodes, traversing the left children node of operator 1 ("constant" node) by sequence number 2;
2. the constant node does not contain child nodes, so that the traversal is completed, and a numerical value is returned according to the sequence number 3;
3. traversing the right child node of operator 1 (operator 2) by sequence number 4;
4. operator 2 contains child nodes, traversing left child node of operator 2 according to sequence number 5 "measure item Blader (ABD). Blader-L";
5. the measurement item Blader (ABD). Blader-L does not contain child nodes, and returns a numerical value (the numerical value is 2.3) to the operator 2 node according to the sequence number 6;
6. traversing the right child node of the operator 2 node (operator 3) in sequence number 7;
7. operator 3 contains child nodes, traversing its left child node (measurement item Blader (ABD). Blader-W) according to sequence number 8;
8. the measurement item Blader (ABD). Blader-W does not contain child nodes, returns the value (value 2.5) to operator 3;
9. traversing the right child node of operator 3 (measurement item Blader (ABD). Blader-H) by sequence number 10;
10. the measurement item Blader (ABD). Blader-H does not contain child nodes, returns a value (value is 3) to the operator 3 node according to sequence number 11;
11. at this time, the operator 3 traverses all the child nodes, performs multiplication operation on all the obtained values, and returns an operation result (the operation result is 7.5) to the operator 2 node according to the sequence number 12;
12. after the node of the operator 2 receives the numerical value of the operator 3, traversing all the child nodes, multiplying all the obtained numerical values, and returning an operation result (the operation result is 17.25) to the operator 1 according to the sequence number 13;
13. after the operator 1 receives the numerical value of the operator 3, traversing all the child nodes, multiplying all the obtained numerical values, and returning an operation result (the operation result is 9.032) to the formula blade according to the sequence number 14;
14. the formula blade traverses all the child nodes and outputs a result.
In the embodiment, the result is operated through the binary tree of the formula, so that the operation result of the formula can be obtained, and the purpose of operation can be realized through the formula edited by the formula composition item by the user is ensured.
In the embodiment, a user selects each formula composition item and sets the association relation of each formula composition item, so that the editing of the formula is realized, and a first formula is obtained; generating first storage information for displaying the first formula and second storage information for representing the operation relation of the first formula according to the association relation between formula components forming the first formula and each formula component; and checking the validity of the first formula according to the second stored information of the first formula, and obtaining a successfully edited first formula under the condition that the first formula is legal. Thus, the editing mode of the custom formula is simplified, and the formula does not need to be edited through a script.
In order to enable a user to clearly understand the technical scheme of the application, from the practical implementation perspective, the description is presented:
the scheme comprises the following three processes:
1. man-machine interaction process:
the process may be understood as a process in which a user selects a formula composition term, and a terminal generates a first formula in response to the formula composition term selected by the user;
wherein the formula composition term includes: nodes, each node comprising input and/or output terminals, connecting wires for connecting the terminals; the node comprises: measurement terms, operators, pre-stored formulas.
Specifically, the human-computer interaction process includes:
initializing an interface when the terminal receives an opening formula editing interface; wherein the initializing process comprises: loading current department information and related information of formula composition items corresponding to the department information, wherein the related information of the formula composition items comprises: measuring a term list, an operator list and a formula list;
after the loading of the related information in the formula editing interface is completed, the user can select the related nodes and associate the nodes through connecting lines.
The user can select the nodes and set the connecting lines in an interaction mode with the mouse. For example, the manner in which the user interacts with the mouse may include:
1. the clicking of the mouse is operated differently according to the clicking position.
1) Clicking on the menu means creating a node, the menu listing all supported nodes, creating the corresponding node based on the menu click location.
2) The existing node in the click formula represents that the node is selected, and then can be dragged, deleted and modified.
3) Clicking on the I/O terminal of a node indicates that a wire is drawn from that terminal.
4) Clicking on a link in the formula will select the link, which can then be moved or deleted.
5) If the blank area is clicked, the frame selection operation can be realized next.
2. The movement of the mouse is operated differently according to different modes,
1) If the mode is the operation node mode, the node position moves along with the movement of the mouse.
2) If the wiring mode is established, the wiring is led out from the terminal, and the tail end position moves along with the mouse.
3) If the connection mode is adjusted, the two ends of the connection are unchanged, and the inflection point position of the connection moves along with the mouse.
4) If the mode is a frame selection mode, the selection frame range is changed along with the position of the mouse.
3. The release of the mouse is different according to the position and the current mode of the release.
1) If the connection mode is created, the release point position needs to be further judged.
2) If the release point is another node I/O terminal, the two nodes are connected.
3) If the link is released at other positions, the link is invalid and deleted.
4) If the frame selection mode is adopted, the frame range is determined to be selected when the frame selection mode is released, and the nodes in the frame are highlighted.
5) The other modes release back to the view mode.
By combining the operation means, the user can perform operations such as node creation, movement, connection and the like through clicking, movement and release operations of a mouse, so that editing of a self-defined formula is completed.
2. A background treatment process;
the process is as follows: according to the generated first formula, the background stores the first formula in two different modes, wherein the first mode corresponds to first stored information, and the second mode corresponds to second stored information; the first storage information is used for displaying a first formula in the terminal, and the second storage information is used for checking the validity of the first formula.
In addition, the result operation can be performed by applying the edited formula, and specifically, the operation result can be operated by the second storage information. Therefore, the second stored information of the first formula can be used for checking the validity of the formula in the process of formula editing, and the operation result can be calculated after the formula editing is completed.
Referring to fig. 7, an ultrasound device 700 is shown, the device comprising:
a display device 701, a memory 702, a processor 703, and a computer program stored in the memory and executable on the processor.
Wherein, the display device 701 is configured to display a formula editing interface;
the processor 703 is configured to implement the following method when executing the computer program:
generating a first formula in response to the association between each formula component item selected by the user and each formula component item;
generating first storage information for displaying the first formula according to the association relation between formula components forming the first formula and each formula component;
generating second storage information for representing the operation relation of the first formula according to the first storage information of the first formula.
Optionally, the processor is further configured to:
optionally, the formula composition term includes:
the nodes, each node comprising input and/or output terminals and connecting lines for connecting the terminals.
Optionally, the node includes:
a measurement term, operator, or pre-stored formula.
Optionally, the first stored information includes:
node information and connection line information;
the node information includes: node type, node attribute and size and position information of the node;
the connection line information includes: the left node identification of the connecting wire, the left node port type of the connecting wire, the right node identification of the connecting wire, the right node port type of the connecting wire and the coordinates of turning of the connecting wire.
Optionally, the generating the second stored information representing the first formula operation relation includes:
generating a reference node of a binary tree and an operator node of the binary tree according to each component item of the first formula; the operator nodes comprise operators in the first formula, and the reference nodes comprise measurement items in the first formula;
and generating connection relations between each reference node and operator nodes according to the association relations among each component item of the first formula.
Optionally, the method further comprises:
and checking the validity of the first formula according to the second stored information of the first formula.
Optionally, the checking the validity of the first formula according to the second stored information of the first formula includes:
judging whether abnormal conditions exist in the reference node and the operator node;
and/or
Judging whether the connection relation between the reference node and the operator node has abnormal conditions or not;
if the abnormal condition exists, the abnormal information is sent to the user.
Optionally, the method further comprises:
when a call request of a first formula is received, acquiring data of a reference node in the first formula;
traversing the binary tree of the first formula according to a preset traversing sequence to obtain a calculation result;
and feeding back the calculation result to a display device of the ultrasonic device.
Optionally, the method further comprises:
when an initialization instruction is monitored, acquiring target department information;
and acquiring information of formula composition items related to the target department. The device can edit the formula by a user in a man-machine interaction mode.
In this embodiment, after a user selects each formula component term and sets an association relationship of each formula component term, by using the ultrasonic device, so as to obtain a first formula, according to the association relationship between the formula component term and each formula component term that form the first formula, first storage information for displaying the first formula and second storage information for representing the operation relationship of the first formula are generated; and checking the validity of the first formula according to the second stored information of the first formula, and obtaining a successfully edited first formula under the condition that the first formula is legal. Thus, the editing mode of the custom formula is simplified, and the formula does not need to be edited through a script.
An embodiment of the present invention provides a storage medium having a program stored thereon, which when executed by a processor, implements the ultrasound-device-based formula editing method, the method including:
generating a first formula in response to the association relation between each formula composition item selected by the user and each formula composition item set;
generating first storage information for displaying the first formula according to the association relation between formula components forming the first formula and each formula component;
generating second storage information for representing the operation relation of the first formula according to the first storage information of the first formula.
Optionally, the formula composition term includes:
the nodes, each node comprising input and/or output terminals and connecting lines for connecting the terminals.
Optionally, the node includes:
a measurement term, operator, or pre-stored formula.
Optionally, the first stored information includes:
node information and connection line information;
the node information includes: node type, node attribute and size and position information of the node;
the connection line information includes: the left node identification of the connecting wire, the left node port type of the connecting wire, the right node identification of the connecting wire, the right node port type of the connecting wire and the coordinates of turning of the connecting wire.
Optionally, the generating the second stored information representing the first formula operation relation includes:
generating a reference node of a binary tree and an operator node of the binary tree according to each component item of the first formula; the operator nodes comprise operators in the first formula, and the reference nodes comprise measurement items in the first formula;
and generating connection relations between each reference node and operator nodes according to the association relations among each component item of the first formula.
Optionally, the method further comprises:
and checking the validity of the first formula according to the second stored information of the first formula.
Optionally, the checking the validity of the first formula according to the second stored information of the first formula includes:
judging whether abnormal conditions exist in the reference node and the operator node;
and/or
Judging whether the connection relation between the reference node and the operator node has abnormal conditions or not;
if the abnormal condition exists, the abnormal information is sent to the user.
Optionally, the method further comprises:
when a call request of a first formula is received, acquiring data of a reference node in the first formula;
traversing the binary tree of the first formula according to a preset traversing sequence to obtain a calculation result;
and feeding back the calculation result to a display device of the ultrasonic device.
Optionally, the method further comprises:
when an initialization instruction is monitored, acquiring target department information;
and acquiring information of formula composition items related to the target department.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described as different from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A formula editing method based on ultrasonic equipment, comprising:
generating a first formula in response to the association relation between each formula composition item selected by the user and each formula composition item set; the formula composition term includes: node, input and/or output terminals of each node, and connection lines for connecting the terminals, the node comprising: a measurement term, an operator or a prestored formula, wherein the measurement term is obtained by measuring an ultrasonic image;
generating first storage information for displaying the first formula according to the association relation between formula components forming the first formula and each formula component;
generating second storage information for representing the operation relation of the first formula according to the first storage information of the first formula.
2. The method of claim 1, wherein the first stored information comprises:
node information and connection line information;
the node information includes: node type, node attribute and size and position information of the node;
the connection line information includes: the left node identification of the connecting wire, the left node port type of the connecting wire, the right node identification of the connecting wire, the right node port type of the connecting wire and the coordinates of turning of the connecting wire.
3. The method of claim 1, wherein generating the second stored information representing the first formula operational relationship comprises:
generating a reference node of a binary tree and an operator node of the binary tree according to each component item of the first formula; the operator nodes comprise operators in the first formula, and the reference nodes comprise measurement items in the first formula;
and generating connection relations between each reference node and operator nodes according to the association relations among each component item of the first formula.
4. The method as recited in claim 1, further comprising:
and checking the validity of the first formula according to the second stored information of the first formula.
5. The method of claim 4, wherein the checking the validity of the first formula based on the second stored information of the first formula comprises:
judging whether abnormal conditions exist in the reference node and the operator node;
and/or
Judging whether the connection relation between the reference node and the operator node has abnormal conditions or not;
if the abnormal condition exists, the abnormal information is sent to the user.
6. A method according to claim 3, further comprising:
when a call request of a first formula is received, acquiring data of a reference node in the first formula;
traversing the binary tree of the first formula according to a preset traversing sequence to obtain a calculation result;
and feeding back the calculation result to a display device of the ultrasonic device.
7. The method as recited in claim 1, further comprising:
when an initialization instruction is monitored, acquiring target department information;
and acquiring information of formula composition items related to the target department.
8. An ultrasound device, comprising: a display device, a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that,
the display device may be configured to display a display image, the formula editing interface is used for displaying a formula editing interface;
the processor being adapted to carry out the steps of the method according to any one of claims 1-7 when said computer program is executed.
9. A storage medium having stored therein a computer program, characterized in that the computer program, when being executed by a processor, realizes the steps of the method according to any of claims 1-7.
CN201811418062.9A 2018-11-26 2018-11-26 Formula editing method based on ultrasonic equipment, ultrasonic equipment and storage medium Active CN109543170B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811418062.9A CN109543170B (en) 2018-11-26 2018-11-26 Formula editing method based on ultrasonic equipment, ultrasonic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811418062.9A CN109543170B (en) 2018-11-26 2018-11-26 Formula editing method based on ultrasonic equipment, ultrasonic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109543170A CN109543170A (en) 2019-03-29
CN109543170B true CN109543170B (en) 2023-07-07

Family

ID=65850151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811418062.9A Active CN109543170B (en) 2018-11-26 2018-11-26 Formula editing method based on ultrasonic equipment, ultrasonic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109543170B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521411A (en) * 2011-12-28 2012-06-27 畅捷通信息技术股份有限公司 Formula and formula data processing device and formula and formula data processing method
CN103810152A (en) * 2013-11-11 2014-05-21 远光软件股份有限公司 Visualized formula editor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6948128B2 (en) * 1996-12-20 2005-09-20 Avid Technology, Inc. Nonlinear editing system and method of constructing an edit therein

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521411A (en) * 2011-12-28 2012-06-27 畅捷通信息技术股份有限公司 Formula and formula data processing device and formula and formula data processing method
CN103810152A (en) * 2013-11-11 2014-05-21 远光软件股份有限公司 Visualized formula editor

Also Published As

Publication number Publication date
CN109543170A (en) 2019-03-29

Similar Documents

Publication Publication Date Title
CN111080170B (en) Workflow modeling method and device, electronic equipment and storage medium
US10057118B2 (en) Method and apparatus for enabling dynamic analytics configuration on a mobile device
US9292413B2 (en) Setting breakpoints in a code debugger used with a GUI object
CN111274000B (en) Service arrangement method and device, electronic equipment and storage medium
CN108664406A (en) Exploitation test method, terminal device and the medium of mobile application
CN110673842A (en) Visual programming method and system, storage medium and equipment
CN106952426B (en) Data processing method and device
CN109543170B (en) Formula editing method based on ultrasonic equipment, ultrasonic equipment and storage medium
US20220236860A1 (en) Visualization system based on artificial intelligence inference and method thereof
CN115048104A (en) Code generation method and device based on syntax tree and electronic equipment
CN111865634B (en) Method and device for generating configuration file of site in Internet of things system
KR102300005B1 (en) Method and system for assisting software development using connection of graphic objects, each representing a software component
CN112667795B (en) Dialogue tree construction method and device, dialogue tree operation method, device and system
CN111459820B (en) Model application method and device and data analysis processing system
CN115629990B (en) Service testing method and device, electronic equipment and storage medium
JP4817697B2 (en) Conversion rule evaluation program and conversion rule evaluation device
KR101985491B1 (en) Result generating and monitoring apparatus using visualzation of formula with diagram mode
CN114466259B (en) Data processing method, device and equipment of Internet of things gateway and Internet of things gateway
US20200125483A1 (en) Systems and methods for testing a customer environment
WO2020057104A1 (en) Method and device for application development
JP4922644B2 (en) Time series analysis program, time series analysis system, and time series analysis apparatus used therefor
EP4036711A1 (en) Visualization system based on artificial intelligence inference and method thereof
JP6590753B2 (en) Simple OpS device, control method, and control program
AU2021200532A1 (en) Visualization System Based on Artificial Intelligence Inference and Method Thereof
JP6052892B2 (en) Apparatus for automatically generating GUI stub, method and program thereof

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
GR01 Patent grant
GR01 Patent grant