Informedica.GenOrder.Lib Namespace
| Modules | Description |
|
Serializes a Dto to canonical JSON for a digest and for the database, without whitespace and with fields in declared order, and reads JSON back. Arrays keep their order, a BigRational is written as numerator/denominator in lowest terms, and an option is written as its value or null. |
|
|
Finds the variables of an order that a set of given variables determines, by elimination over the product equations and the sum equations. A product equation y = x1 * x2 * .. is linear in the logarithms of its variables, so the elimination finds every variable the given variables fix, also when only several equations together fix the variable. A sum equation with one unknown variable, the total or a term, fixes the unknown variable. Only a given variable with a single value fixes other variables. |
|
|
Writes a dose type as a string for the Dtos and reads the string back. An unknown category or a null string gives UnknownDoseType. |
|
|
Replaces a string or array that is null after JSON deserialization by an empty value, and collects results into all values or all errors. |
|
|
Holds the table of order equations and returns the sum and product equations of an order for a dose type, with variable names filled in. |
|
|
Holds the OrderException, raises the OrderException for an order that could not be solved and returns the text of an exception. |
|
|
Reconciles the selections of a sent filter with the lists of a fresh filter and tells whether the reconciled filter dropped a selection. |
|
|
Looks up the prescription rules for a filter, keeps the rules that can be prescribed for the patient and returns the pick lists. The lookup of all prescription rules and the lookup of the pick lists log a failure and give an empty result; the lookup of the prescribable rules returns the error to the caller. |
|
|
Logs an order event at the informative, warning or debug level and an order exception message as an error. |
|
|
Creates the medications of a prescription rule, one for each solution rule or a single medication when the rule has no solution rules, each with its product components, substance items and limits, and builds an order from a medication. |
|
|
Writes a medication as YAML text and reads the text back, through the medication Dto. A text that cannot be read returns one error with its line and column. |
|
|
Reads a Dto or an array of Dtos with a given reader. A Dto that is null after JSON deserialization gives a Missing error with its path. |
|
|
Creates, solves, checks and prints an order: an orderable given on a schedule by a route, with a start date and an optional stop date. |
|
|
Returns the nutrition category whose rule set names the indication and allows the generic, otherwise Medication. |
|
|
Writes an order category as text: medication for a medication order, or for a nutrition order the word nutrition, a colon and the name of the nutrition category in lower case with hyphens, as nutrition:enteral-feeding. Reads the text back, ignoring case and the white space around it; an unknown text gives the error UnknownCategory. |
|
|
Declares the commands on an order context, creates an order context for patient data and evaluates a command on the context: looks up rules, makes the scenarios and changes the medication order of a scenario. |
|
|
Formats order events, order exceptions and the equations of an unsolved order as text, and creates a logger that passes each formatted message on. |
|
|
Creates an order plan for a patient, adds, updates and removes its order contexts, checks the links between orders and recalculates the totals. |
|
|
Processes an order by a command, as an action of the order program or through a pipeline of solve steps. A failure returns the order with the solver messages; a refusal by the order program that is not a failed solve returns the order with no messages. |
|
|
Creates the scenario of an order made from a prescription rule, with its text blocks and the notice on why an order has no preparation. |
|
|
Creates and changes an order variable, a solver variable with defined and calculated constraints: applies the constraints, selects or steps a value and prints values. |
|
|
Maps and returns the value of an evaluated or refused outcome of an evaluation. |
|
|
Returns the gender, age, weight, height and department of patient data and reads patient data from a Dto. Reading returns the errors when a value is invalid or the data cannot select rules. |
|
|
Creates a plan context, an order context with an id, a category, totals and a link, and evaluates a command on the plan context. |
|
|
Maps order equations to solver equations and back, and solves the equations on minimum, increment and maximum only or on the value sets as well. |
|
|
Evaluates each rule of a rule set to its scenarios and returns a standard order for each scenario, with the texts and the advice. |
|
|
Holds the serializable shape of a text block and the conversion of a text block to and from the Dto. |
|
|
Calculates the totals of the orders per time and per kg per time, each with its state against the norm for the patient. A valid norm that the prescriber sets for a total replaces the norm per kg per time of the Totals sheet. Every total is None without a weight, or when the gestational age is required and not given. |
|
|
Holds the domain types of the order library: order variables, orders, medications, order commands, actions and effects, scenarios, filters, order contexts, totals, order plans and standard orders. |
|
|
Holds the name of the spreadsheet environment variable, the reader of a spreadsheet sheet and the text format of a minimum and maximum. |
|
|
Prints a unit as short Dutch text, moves an adjust unit to the middle of a combined unit and collects value units into one. |
|
|
Replaces the values of a solver variable with a set of values and holds the added functions for a value range. |
|
|
Holds the functions for an Id and for the Name of a solver variable. |
GenPRES