Method and device for editing an electronic prescription
Patent Information
- Authority / Receiving Office
- EP · EP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-04-19
- Publication Date
- 2026-03-04
AI Technical Summary
The complexity of biological data analysis and variability in limits based on patient parameters lead to errors in prescribing additional biological examinations, as existing technologies lack a specialized interpreter for digitizing medical knowledge and maintaining effective treatment of biological assessments.
A computer-based method and device for publishing digital prescriptions that utilize rules with conditions and actions to compare biological data values with limits, featuring an interpreter that replaces data identifiers with variables and generates an intermediate representation for evaluation, allowing for easy rule maintenance and user-friendly interaction.
This solution enables accurate and efficient generation of digital prescriptions for biological examinations, reducing errors by providing an interactive interface for doctors and allowing for the execution of actions based on evaluated conditions, thereby improving the prescription process.
Smart Images

Figure FR2024050517_31102024_PF_FP_ABST
Abstract
Description
[0001] Description
[0002] Title of the invention: Method and device for editing a digital prescription
[0003] Background of the invention
[0004] The present invention relates to a method and a device for editing a digital prescription for biological tests or for assisting in the editing of such a prescription.
[0005] As is well known, the content of a patient's biological test order is often determined based on the patient's biological and / or clinical data and, of course, the doctor's expertise and experience.
[0006] It is common for the laboratory test order issued by the physician to contain recommendations for additional tests. Although this is rarely the case, these laboratory tests can be performed on samples already collected if a short expiration date is respected and the sample collection tubes are of the correct type.
[0007] As is well known, issuing a supplementary order for biological tests following receipt of a biological assessment can take some time when the analysis of the assessment is complex. Similarly, writing the order for biological tests can be time-consuming due to the quantity of prescriptions to be included.
[0008] Finally, when faced with the same biological assessment, the prescriptions for biological tests issued by different doctors can be very different and are not always in accordance with the recommendations of the High Authority for Health or learned medical societies.
[0009] The invention aims at an interactive system which helps the doctor to prepare his prescription for biological tests in digital form by responding to at least one of the difficulties mentioned above.
[0010] To this end, the inventors considered designing an interpreter and making it available to doctors. As is known, an interpreter is a computer tool configured to analyze instructions written in a computer language, and to translate these instructions into an intermediate language allowing their execution by a computer, the analysis and translation necessary for the execution of the program being carried out each time the program is executed.
[0011] To date, there is no interpreter specialized in the analysis of biological data.
[0012] When designing such an interpreter, the inventors faced a problem specific to the processing of biological data.
[0013] As is known, biological data is generally considered normal or abnormal depending on its value relative to one or more limits, for example a lower limit and an upper limit.
[0014] For example, some studies state:
[0015] - hypoglycemia: less than 0.60g / l
[0016] - normal blood sugar: fasting between 0.70g / l and 1.10g / l; 1h30 after a meal: less than 1.40g / l;
[0017] - fasting hyperglycemia: greater than 1.10g / l However, for certain biological data, such limits can vary depending on numerous parameters, for example depending on the age, sex or morphology of the patient, or changes in the analysis methods.
[0018] This variability of the limits in the biological analysis reports, the complexity of the analysis of a biological assessment and the lack of time lead doctors to make errors in the prescriptions of additional biological tests that may be necessary.
[0019] The inventors were therefore faced with the problem of implementing a computer interpreter suitable for the digitization of medical knowledge relating to the analysis of biological assessments, in particular the processing of such terminals, and the maintainability of an effective interpreter for the processing of these terminals while providing the medical user with an extremely simple interactive interface. This interpreter will serve as a potential support base for additional biological examinations prescribed by doctors; the laboratory will be able, if necessary, to carry out these prescribed additional examinations on the same sample used for the initial biological assessment.
[0020] Subject matter and summary of the invention
[0021] The invention thus relates to a method for editing a digital prescription for biological tests, this method being implemented by a computer and comprising the following steps:
[0022] - Obtaining at least one rule including:
[0023] (i) an expression representing a condition and comprising at least one identifier of a biological data item and at least one predetermined expression intended to be interpreted as an instruction for comparing a value of said biological data item with at least one terminal;
[0024] (ii) an expression representing an action to be performed depending on a result of an evaluation of said condition;
[0025] - generation of an intermediate representation of said at least one rule, in which:
[0026] (i) the biological data identifier is replaced by a first variable associated with that biological data; and
[0027] (ii) said expression representing said condition is replaced by an instruction for comparing said first variable with at least one second variable associated with a single type of said at least one terminal;
[0028] - obtaining a data structure representing patient data, said structure comprising for at least one biological data item:
[0029] (i) a value of said biological data for said patient; and
[0030] (ii) at least one terminal associated with said biological data;
[0031] - at least one evaluation of said intermediate representation of said at least one rule, said evaluation comprising:
[0032] (a) a substitution step in which: (i) a value of the first variable associated with the biological data is instantiated by the value of said biological data if it exists in the patient data; and
[0033] (ii) a value of the second variable is instantiated by a terminal associated with said biological data if it exists in the patient's data;
[0034] (b) a verification of said condition if it has been defined by said substitution; and if so:
[0035] (ii) an execution of said action based on a result of said verification, the execution of the action of at least one said rule editing said digital prescription to insert recommendation elements therein.
[0036] Correlatively, the invention relates to a device for editing a digital prescription for biological examinations, this device comprising:
[0037] - a module for obtaining at least one rule comprising:
[0038] (i) an expression representing a condition and comprising at least one identifier of a biological data item and at least one predetermined expression intended to be interpreted as an instruction for comparing a value of said biological data item with at least one terminal;
[0039] (ii) an expression representing an action to be performed depending on a result of an evaluation of said condition;
[0040] - an interpreter configured to generate an intermediate representation of said at least one rule, in which:
[0041] (i) the biological data identifier is replaced by a first variable associated with that biological data; and
[0042] (ii) said expression representing said condition is replaced by an instruction for comparing said first variable with at least one second variable associated with a single type of said at least one terminal;
[0043] - a module for obtaining a data structure representing patient data, said structure comprising for at least one biological data:
[0044] (i) a value of said biological data for said patient; and
[0045] (ii) at least one terminal associated with said biological data;
[0046] - an engine configured to evaluate said intermediate representation of said at least one rule, said evaluation comprising:
[0047] (a) a substitution step in which:
[0048] (i) a value of the first variable associated with the biological data is instantiated with the value of said biological data if it exists in the patient data; and
[0049] (ii) a value of the second variable is instantiated by a terminal associated with said biological data if it exists in the patient's data;
[0050] (b) a step of verifying said condition if it has been defined by said substitution; and where applicable: (ii) a step of executing said action based on a result of said verification, the execution of the action of at least one said rule editing said digital prescription to insert recommendation elements therein.
[0051] Thus, and in general, the invention proposes a solution for editing or assisting a user, typically a doctor, in editing digital prescriptions for biological tests.
[0052] This solution uses rules that include actions to be executed based on the result of an evaluation of the comparison of a patient's biological data value with a terminal.
[0053] In a particular embodiment, the terminals may be of two types, namely low terminals and high terminals.
[0054] Very advantageously, the predetermined expression intended to be interpreted as an instruction for comparing a biological data value with at least one terminal can be a single expression which depends only on the type of the terminal.
[0055] Very advantageously, in a particular embodiment, this expression is the same for all biological data.
[0056] These expressions can therefore be very short, for example, five characters, three characters, or just one character.
[0057] For example, the expression "X-" can be interpreted as an instruction to compare the value of biological data X with the lower bound associated with this biological data in the patient's data if it exists.
[0058] Similarly, the expression "X+" can be interpreted as an instruction to compare the value of the biological data X with the upper bound associated with this biological data in the patient's data if it exists.
[0059] Similarly, the expression "X~" can be interpreted as an instruction to compare the value of the biological data X with the lower bound and with the upper bound associated with this biological data in the patient's data if they exist.
[0060] It is understood that the person editing the rule does not need to know either the name or the value of these limits in the patient data.
[0061] We understand that two rules can use the same expression, for example “-”, for two different biological data.
[0062] For example "X- & Y-" can be interpreted as an instruction to compare:
[0063] - on the one hand the value of the biological data X with the lower bound associated with this biological data X in the patient's data if it exists; and
[0064] - on the other hand the value of the biological data Y with the lower limit associated with this biological data Y in the patient's data if it exists.
[0065] Furthermore, the interpreter is configured to replace a said expression representing a condition with an instruction for comparing said first variable associated with biological data with at least one second variable associated with the type of the terminal. In a particular embodiment, the rules interpreted by the interpreter can be maintained and updated over time by a person not familiar with computers. Indeed, it is advantageous for these rules to be maintained by a person with medical expertise rather than by a person with programmer expertise.
[0066] With this in mind, it is necessary to present the rules writer or maintainer with an interpreted computer language whose grammar is as simple as possible. By "simple" we mean concise and close to the way in which the writer would have formulated these rules in medical jargon.
[0067] To this end, in a particular embodiment of the invention:
[0068] (i) a single symbol represents all lower bound comparisons. For example: HEM- will be interpreted by the interpreter into an intermediate representation evaluated to the value "True" if and only if the hemoglobin value received in the patient data is less than the lower admissible bound value as it will be received in this data.
[0069] (ii) a single symbol represents all upper bounds. For example: HEM+ will compare the hemoglobin value to the upper bound value, as these values will be received in the patient data.
[0070] Furthermore, in a particular embodiment, the identifiers of all biological measurements (used in the conditions of the rules or suggested as addition to the prescription by an action) are pre-established by the interpreter. For example, in this way, HEM is automatically understood as hemoglobin.
[0071] In a particular embodiment, the grammar can be supplemented by simple arithmetic and logical operators:
[0072] For example: "(HEM < 2*BB)" corresponds to a comparison of the hemoglobin value with a value corresponding to 2 times the lower bound value, such as these values will be received in the patient data.
[0073] For example, "HEM- & VGM+" combines the conditions HEM- and VGM+ using a traditional "AND" logical operator.
[0074] In a particular embodiment, the name of the first variable associated with said biological data is derived from the identifier of this biological data.
[0075] Thus, if a new biological data is to be considered, the user can simply enter it with the identifier of this biological data. The editor interactively creates a variable associated with this biological data by deriving its name from the identifier.
[0076] In a particular embodiment:
[0077] (i) the execution of the action of at least one said rule triggers the sending to a user of a question identified in said action;
[0078] (ii) a response to said question being used during a subsequent occurrence of said substitution step to replace a value of a variable associated with biological data or clinical data in a said intermediate representation. This embodiment advantageously makes it possible to supplement the patient's data with information received in response to questions.
[0079] These questions can be asked using a web service.
[0080] Thus, in a particular embodiment, the execution of the action of at least one said rule comprises the following steps:
[0081] - adding an identifier of the said question to a predetermined variable;
[0082] - exposure of said variable to a web service configured to send the user the question associated with this identifier and to obtain the answer to said question.
[0083] In a particular embodiment, the various steps of the editing method are determined by computer program instructions or are implemented by a silicon chip which comprises transistors adapted to constitute model gates of a non-programmable hard-wired model.
[0084] Consequently, the invention also relates to a computer program on an information medium, this program being capable of being implemented in a controller computer, this program comprising instructions adapted to the implementation of the steps of an editing method as described above.
[0085] This program may use any programming language, and may be in the form of source code, object code, or code intermediate between source code and object code, such as in a partially compiled form, or in any other desirable form.
[0086] The invention also relates to a computer-readable information medium, and comprising instructions of a computer program as mentioned above. The information medium may be any entity or device capable of storing the program. For example, the medium may comprise a storage means, such as a ROM, a non-volatile memory of the flash type or even a magnetic recording means, for example a hard disk. Furthermore, the information medium may be a transmissible medium such as an electrical or optical signal, which may be conveyed via an electrical or optical cable, by radio or by other means. The program according to the invention may in particular be downloaded from a network such as the Internet. Alternatively, the information medium may be an integrated circuit in which the program is incorporated, the circuit being adapted to execute or to be used in the execution of the method in question.
[0087] Brief description of the drawings:
[0088] Other characteristics and advantages of the present invention will emerge from the description given below, with reference to the appended drawings which illustrate exemplary embodiments thereof which are not in any limiting nature. In the figures:
[0089] [Fig. 1] Figure 1 represents in the form of a flowchart, the main steps of a method for editing a prescription for biological tests in accordance with a particular embodiment of the invention; [Fig. 2] Figure 2 represents the functional architecture of a computer in accordance with a particular embodiment of the invention;
[0090] [Fig. 3] Figure 3 gives examples of rules that can be used in a particular embodiment of the invention;
[0091] [Fig. 4] Figure 4 represents intermediate representations of the rules of Figure 3 in a particular embodiment of the invention;
[0092] [Fig. 5] Figure 5 represents a data structure containing patient data;
[0093] [Fig. 6-1] Figure 6-1 illustrates a first execution of the intermediate representations of Figure 4;
[0094] [Fig. 6-2] Figure 6-2 illustrates a second execution of the intermediate representations of Figure 4.
[0095] Detailed description of an exemplary embodiment of the invention
[0096] Figure 1 represents in the form of a flowchart, the main steps of a method for editing a digital prescription ORD for biological tests in accordance with a particular embodiment of the invention.
[0097] In the embodiment described here, this method is implemented by a DISP device whose functional architecture is represented in Figure 2. In the embodiment described here, this device comprises:
[0098] - a COM communication module configured to be able to obtain a data structure representing patient data,
[0099] - an interface for entering or obtaining at least one rule. This interface is, for example, a human-machine interface (HMI) allowing a user to enter a rule with input / output means or the COM communication module then configured to receive a rule entered remotely;
[0100] - an INT interpreter configured to generate an intermediate representation of at least one rule;
[0101] - a MEM memory in which the rules and their intermediate representation are stored;
[0102] - a MOT rules engine configured to execute the intermediate representations to insert into a biological examination prescription recommendation elements determined from said data; and
[0103] - a CW web client configured to communicate with a SW web service.
[0104] In the embodiment described here, the INT interpreter is configured to interpret at least one REG rule, in Python or C language and the MOT engine is configured to execute intermediate representations conforming to this language.
[0105] In the embodiment described here, the MOT interpreter manages in MEM memory:
[0106] - a VM variable containing a list of recommendation elements to be added to the ORD order for biological tests, this list being initially empty; and
[0107] - a VQ variable containing a list of question IDs, this list being initially empty.
[0108] It is assumed that during a step E5, a user, for example a doctor, authenticates himself to the DISP device using an identifier and a password.
[0109] In the embodiment described here, following any authentication the rules are automatically loaded into memory during a step E10, interpreted during a step E20 and their intermediate representations are stored in memory.
[0110] In the embodiment described here, a REG rule may include:
[0111] (i) one or more expressions containing a COND condition; and
[0112] (ii) an expression representing an action ACT to be performed depending on the result of an evaluation of said condition.
[0113] These expressions can themselves include sub-expressions, which can themselves include sub-expressions, and so on.
[0114] These expressions and subexpressions can be isolated in a rule using regular expressions.
[0115] In one embodiment of the invention, the conditions comprise at least one expression which may comprise at least one identifier of biological data or clinical data.
[0116] In one embodiment of the invention, the actions comprise at least one identifier of a set of recommendations to be added to the biological examination order or at least the identifier of a message.
[0117] In the embodiment described here, the REG rules conform to a grammar which defines that: a / the recommendation elements to be added to the biological examination order begin with the special character “@”; b / the messages are identified by an identifier beginning with the special character “*”. More precisely, in the embodiment described here, a message can be:
[0118] (i) either a question awaiting an answer intended to be injected as clinical data into a patient's data;
[0119] (ii) a declarative message that does not expect a response.
[0120] In the embodiment described herein:
[0121] (i) question type message identifiers begin with “*Q_”;
[0122] (ii) declarative message identifiers begin with the special character “*” but not with “*Q_”.
[0123] As examples of biological data identifiers, in the example described here:
[0124] - HEM is a hemoglobin identifier;
[0125] - CRP is an identifier of C-Reactive Protein;
[0126] - GL is a blood glucose identifier; and
[0127] - VGM is an identifier of a mean corpuscular volume. As an example of a clinical data identifier, in the example described here:
[0128] - AN M is an anemia identifier;
[0129] - q_potomane is an identifier for potomania.
[0130] As an example of recommendation items, in the example described here, @BAN is a set of recommendation items to be added to the ORD order for laboratory tests in the case of normocytic anemia.
[0131] As an example of a question-type message, in the example described here "*Q_Potomaniac" is the identifier of a question asking the doctor if the patient is a potomaniac, for example the question "is the patient a potomaniac? YES / NO".
[0132] As an example of a declarative message, in the example described here “*stroke” is the identifier of a message advising the physician to refer the patient to the emergency room for risk of stroke.
[0133] In the example described here, the grammar includes:
[0134] - an expression " » which must be interpreted as an implication indicating the action ACT to be executed depending on a result of the evaluation of a condition COND;
[0135] - an expression “-” which must be interpreted as “less than a limit”;
[0136] - an expression “+” which must be interpreted as “greater than a limit”;
[0137] - an expression “&” which must be interpreted as a logical AND operator;
[0138] - an expression “~” which must be interpreted as “between a lower bound and an upper bound”;
[0139] - a constant “1” which, when assigned to a variable representing clinical data, means that the clinical data is positive.
[0140] Figure 3 gives three examples of rules that conform to this grammar.
[0141] The REGi rule states that if a hemoglobin value is below a lower limit and the patient is not potomaniac, the patient has anemia.
[0142] Rule REG2 indicates that if a patient suffers from anemia and their mean corpuscular volume is below a lower limit, recommendation elements must be added to the prescription to carry out biological measurements corresponding to the normocytic anemia assessment, if these elements are not already present in the prescription.
[0143] The REG3 rule indicates that if the hemoglobin is lower than a lower limit, the user must be asked the question with the identifier *Q_Potomane so that the latter indicates whether the patient is potomaniac or not.
[0144] During step E20, the interpreter INT generates an intermediate representation IREGI of each of the rules REG.
[0145] Figure 4 represents intermediate RIREGI representations of the REG rules of Figure 3 in a particular embodiment of the invention.
[0146] In the embodiment described herein, an intermediate representation RIREGI comprises:
[0147] - at least one variable associated with biological data whose value is intended to be replaced by a biological data value from patient data;
[0148] - at least one BB or BH variable whose value is intended to be replaced by a lower or upper bound value from patient data
[0149] - at least one condition to be assessed and;
[0150] - at least one action to be performed based on the outcome of the evaluation.
[0151] In the exemplary embodiment described here, the name of a variable associated with a biological or clinical data item is derived from the identifier of that data item. In the exemplary embodiment described here, for a biological or clinical data item with identifier X, the interpreter defines the variable [X].
[0152] Thus, in the example of figure 4, the intermediate representation RIREGI includes:
[0153] - the [HEM] hemoglobin variable, the value of which is to be substituted by a hemoglobin value from patient data;
[0154] - the variable [q_potomane] of potomania whose value is to be replaced by 1 or 0, depending on whether the patient's data indicates that the patient is potomaniac or not.
[0155] - the lower bound variable [BB] whose value is to be substituted by a lower bound value of hemoglobin from patient data;
[0156] - "[HEM] < [BB] AND [q_potomonane] = 0" is a condition to be evaluated; and
[0157] - assigning the value 1 to the ANM identifier of anemia is an action to be carried out if the evaluation of this condition is positive.
[0158] Note that this intermediate IREGI representation does not modify either the VM variable or the VQ variable.
[0159] In the example of Figure 4, the intermediate representation RIREGZ includes:
[0160] - the [VGM] variable of the mean corpuscular volume, the value of which is to be substituted by a value of mean corpuscular volume from patient data;
[0161] - the lower bound variable [BB] whose value is to be substituted by a lower bound value of mean globular volume from patient data;
[0162] - “ANM=1 AND [VGM] < [BB]” is a condition to be evaluated; and
[0163] - adding, to the VM variable, the character string identified by @BAN and containing the recommendation elements in the case of normocytic anemia is an action to be carried out if the evaluation of this condition is positive.
[0164] In the example of Figure 4, the intermediate representation RIREGS includes:
[0165] - the [HEM] hemoglobin variable, the value of which is to be substituted by a hemoglobin value from patient data;
[0166] - the lower bound variable [BB] whose value is to be substituted by a lower bound value of hemoglobin from patient data;
[0167] - “[HEM] < [BB]” is a condition to be evaluated; and
[0168] - adding, to the variable VQ, the identifier *Q_Potoamane of the question "Is the patent potomane?" is an action to be carried out if the evaluation of this condition is positive. It is fundamental to note that the expression ("-") in the rules and their interpretation ("> [BB]") in the intermediate representations are independent of the biological data. In particular:
[0169] (i) the expression “-” is identical in the REGi and REG2 rules and
[0170] (ii) the expression (“<[BB]”) is identical in the intermediate representations RIREGI and RIR EG2 , while they target different conditions (comparison of a hemoglobin value to a lower hemoglobin limit and comparison of a globular volume to a lower mean globular volume limit). Indeed the variable [BB] is associated with the type of limit, in this case the lower limits, and allows the processing of the lower limits associated with all biological data.
[0171] In other words, the INT interpreter always uses the same expression to represent a comparison with a lower bound in an intermediate representation and always the same expression to represent a comparison with an upper bound in an intermediate representation.
[0172] In the example described here; the ORD computer has a SYS file system in which patient data is stored.
[0173] In the embodiment described here, the data of a patient D are received from an external provider, for example from a doctor or a biological analysis laboratory by standard telecommunication means during a step E30 (for example by email).
[0174] In the embodiment described here, this data is received in the format of a table conforming to the LANG language.
[0175] Figure 5 represents such data D.
[0176] In this example, the data is organized in rows, with each row containing a biological data value and at least one lower bound BB or one upper bound BH.
[0177] For example, in Figure 5, this data includes:
[0178] - a value of 10, a lower limit of 12 and an upper limit of 15 for the biological data hemoglobin HEM;
[0179] - a value of 90, a lower limit of 80 and an upper limit of 100 for the biological data mean corpuscular volume VGM.
[0180] The patient data does not include the q_potomane variable. It will be populated later with clinical data obtained in response to a question asked to the doctor.
[0181] In the embodiment described herein, the RIREGI intermediate representations are then executed one or more times, each execution comprising:
[0182] - a substitution step E40; and
[0183] - an E50 verification step.
[0184] In the substitution step E40, the MOT engine substitutes in the computer memory, for each of the biological data that it finds both in an intermediate representation RIREGI, RIREGZ, RIREGS and in the patient data, the terminal, biological data or clinical data identifiers of the intermediate representation by: (i) the corresponding terminal, biological data or clinical data values from the patient data D if they are present in the patient data; or
[0185] (ii) by a keyword “??” representing an undefined value otherwise.
[0186] During the verification step E50, the conditions of the RIREGI intermediate representations that are defined are verified by the MOT engine.
[0187] This step essentially consists of evaluating the condition of the intermediate representation and executing the action based on the result of this evaluation.
[0188] In the embodiment described here, the RIREGI intermediate representations are evaluated until the values of all variables remain unchanged. An E65 test is provided for this purpose.
[0189] The processing of patient data from the example in Figure 5 will now be detailed.
[0190] First assessment
[0191] Thus, with reference to Figure 6-1, during the first occurrence of step E40, the MOT engine substitutes in the computer memory:
[0192] - for the REGi rule, the HEM and BB variables by 10 and 12 and the q_potomane variable by “??”;
[0193] - for rule REG2, the variables VGM and BB by 70 and 80;
[0194] - for rule REG3, the variables HEM and BB by 10 and 12.
[0195] During the first occurrence of step E50:
[0196] - for the REGi rule, the condition 10< 12 is verified but not the condition ??= 0 so the action is not executed, so the ANM value is undefined;
[0197] - for rule REG2, the value of the ANM variable being undefined, the condition ANM = 1 is undefined so the action is not executed. The VM variable is not modified;
[0198] - for rule REG3, the condition 10< 12 is verified so the action is executed (step E60). The variable VQ is modified and contains the question identifier *Q_Potomane.
[0199] In the embodiment described herein, the VQ variable is exposed to a SW web service configured to send the user the questions associated with the identifiers of the VQ variable and to modify the patient data with the answers to these questions.
[0200] In the example described here, it is assumed that the physician user answers the *q_potomane identifier question that the patient is not a potomane. Therefore, the patient's data includes a new clinical data item q_potomane and a value of 0 for this clinical data item.
[0201] During this first assessment, at least one variable was changed (e.g., VQ). The E65 test result is negative and a second assessment is performed.
[0202] Second assessment
[0203] Referring to Figure 6-2, during the second occurrence of step E40, the MOT engine substitutes in the computer memory:
[0204] - for the REGi rule, the HEM and BB variables by 10 and 12 and the q_potomane variable by 0; - for the REG2 rule, the VGM and BB variables by 70 and 80;
[0205] - for rule REG3, the variables HEM and BB by 10 and 12.
[0206] During the second occurrence of step E50:
[0207] - for the REGi rule, the condition 10< 12 is verified and the condition 0 = 0 so the action is executed (step E60) and the value of the ANM variable is set to 1;
[0208] - for rule REG2, the value of the variable ANM being equal to 1, the condition ANM=1 is verified so the action is executed (step E60). The variable VM is modified to include the measures identified by the identifier @BAN. The recommendation elements in the case of normocytic anemia are inserted into the digital prescription ORD;
[0209] - for rule REG3, the condition 10< 12 is verified so the action can be executed but the variable VQ is not modified because it already contains the question identifier *Q_Potomane.
[0210] During this second evaluation, at least one variable evaluated during step E50 was modified (e.g. VM). The result of test E65 is negative and a third evaluation is carried out.
[0211] Third assessment
[0212] During the third occurrence of step E40, the MOT engine substitutes in the computer memory:
[0213] - for the REG rule 1; the variables HEM and BB by 10 and 12 and the variable q_potomane by 0;
[0214] - for rule REG2, the variables VGM and BB by 70 and 80;
[0215] - for rule REG3, the variables HEM and BB by 10 and 12.
[0216] During the second occurrence of step E50:
[0217] - for the REGi rule, the condition 10< 12 is verified and the condition 0 = 0 so the action is executed and the value of the ANM variable is set to 1; This variable is not modified.
[0218] - for rule REG2, the value of the ANM variable being equal to 1, the condition ANM=1 is verified so the action is executed. But the VM variable already includes the measurements identified by the identifier @BAN so this VM variable is not modified;
[0219] - for rule REG3, the condition 10< 12 is verified so the action can be executed but the variable VQ is not because it is modified because it already contains the question identifier *Q_Potomane.
[0220] During this third assessment, no variables are changed and the result of the E65 test is positive.
[0221] The ORD order for biological tests can then be processed by the user, for example, completed and then printed, transmitted or made available to the patient via a server.
Claims
CLAIMS
1. Method for editing a digital prescription (ORD) for biological tests, this method being implemented by a computer (DISP) and comprising the following steps: - obtaining (E10) at least one rule (REGi, REG2, REG3) comprising: (i) an expression representing a condition (COND) and comprising at least one identifier (VGM) of a biological data item and at least one predetermined expression (“-”) intended to be interpreted as an instruction for comparing a value of said biological data item with at least one terminal; (ii) an expression representing an action (ACT) to be performed depending on a result of an evaluation of said condition; - generation (E20) of an intermediate representation (RIREGI) of said at least one rule (REGi), in which: (i) the biological data identifier (HEM) is replaced by a first variable ([HEM]) associated with this biological data; and (ii) said expression representing said condition is replaced by an instruction for comparing said first variable ([HEM]) with at least one second variable ([BB], [BH]) associated with a single type of said at least one terminal; - obtaining (E30) a data structure representing data (D) of a patient, said structure comprising for at least one biological data (HEM): (i) a value of said biological data for said patient; and (ii) at least one terminal associated with said biological data; - at least one evaluation (E40, E50) of said intermediate representation (RIREGI) of said at least one rule (REGi), said evaluation comprising: (a) a substitution step (E40) in which: (i) a value of the first variable ([HEM]) associated with the biological data (HEM) is instantiated with the value of said biological data if it exists in the patient data; and (ii) a value of the second variable ([BB], [BH]) is instantiated by a terminal associated with said biological data if it exists in the patient's data; (b) a verification step (E50) of said condition if it has been defined by said substitution (E40); and where applicable: (c) a step of executing (E60) said action based on a result of said verification, executing the action of at least one said rule (REG2) editing said digital order (ORD) to insert recommendation elements therein.
2. Editing method according to claim 1, wherein the name of the first variable ([HEM]) associated with said biological data is derived from the identifier (HEM) of this biological data.
3. An editing method according to claim 1 or 2, wherein the execution of the action of at least one said rule (REG3) triggers the sending to a user of a question identified in said action, an answer to said question being used during a subsequent occurrence of said substitution step to replace a value of a variable associated with biological data or clinical data in a said intermediate representation (REGi).
4. Editing method according to claim 3, wherein the execution of the action of at least one said rule (REG3) comprises the following steps: - adding an identifier of the said question to a predetermined variable (VQ); - exposure of said variable (VQ) to a web service (SW) configured to send the user the question associated with this identifier and to obtain the answer to said question.
5. Device (DISP) for editing a digital prescription (ORD) for biological tests, this device comprising: - a module (IHM) for obtaining at least one rule (REG 1; REG2, REG3) including: (i) an expression representing a condition and comprising at least one identifier (VGM) of a biological data item and at least one predetermined expression (“-”, “+”) intended to be interpreted as an instruction for comparing a value of said biological data item with at least one terminal; (ii) an expression representing an action to be performed depending on the result of an evaluation of said condition; - an interpreter (INT) configured to generate (E20) an intermediate representation (RIREGI) of said at least one rule (REGi), in which: (i) the biological data identifier (HEM) is replaced by a first variable ([HEM]) associated with this biological data; and (ii) said expression representing said condition being replaced by an instruction for comparing said first variable ([HEM]) with at least one second variable ([BB], [BH]) associated with a single type of said at least one terminal; - a module (COM) for obtaining a data structure representing data (D) of a patient, said structure comprising for at least one biological data (HEM): (i) a value of said biological data for said patient; and (ii) at least one terminal associated with said biological data; - an engine (MOT) configured to execute at least one evaluation (E40, E50) of said intermediate representation (RIREGI) of said at least one rule, said evaluation comprising: (a) a substitution step (E40) in which: (i) a value of the first variable associated with the biological data is instantiated by the value of said biological data if it exists in the patient data; and (ii) a value of the second variable ([BB], [BH]) is instantiated by a terminal associated with said biological data if it exists in the patient's data; (b) a step (EE50) of verifying said condition if it has been defined by said substitution (E40); and where applicable: (ii) a step (E60) of executing said action based on a result of said verification, the execution of the action of at least one said rule (REG2) editing said digital prescription (ORD) of biological examinations to insert recommendation elements therein.
6. Computer program (PG) comprising instructions for executing the steps of the method for editing biological test prescriptions according to any one of claims 1 to 4 when said program is executed by a computer.