Logo GenPRES

Informedica.GenForm.Lib Namespace

Type/Module Description

AccessDevice

Maps the access of a patient to an access device, and an access device to and from its string form for the Dto.

Analyze

Checks the mapping of dose rules back to sheet rows by a round trip of the rows through the dose rules. Loading merges all rows with the same identity, such as the same source, generic, route, patient, dose type and dose text, into one dose rule, so the mapping back cannot return the separate rows. Instead, runPass checks that every input row that loading keeps is contained in an output row with the same identity. Quantities are compared in base units, so 1000 mg equals 1 g. A first pass on the source data reports a missing row when the source has different content under one identity. A second pass on the output of the first pass, which has one rule per identity, finds every row, and fixpointDelta compares the rows of both passes.

Api

Creates the cached resource provider for a spreadsheet and reloads its cache, gives access to the loaded resources of a provider, and filters dose rules, solution rules and prescription rules for a patient.

Check

Checks the limits and frequencies of a dose rule against the G-Standaard dose rules and grades each difference.

DoseLimit

Creates a dose limit, tests the target and the limits of a dose limit, reads a norm dose and prints dose ranges.

DoseRule

Builds dose rules from grouped sheet rows, adds form limits and products, reconstitutes and pre-dilutes the products of a dose rule, removes empty limits and the dose rules left without limits, maps dose rules back to rows, filters dose rules and reports warnings.

DoseRuleData

Parses the rows of the DoseRules sheet, sets the hash ids and the numbers of the rows, removes the values a dose type does not use, refuses the dose rules with a wrong unit or range or without a generic or route, and writes the rows as TSV.

DoseRuleLoader

Builds the dose rules, with warnings, from the rows of the DoseRules sheet and the products.

DoseType

Parses a dose type from a name and a dose text, compares dose types, returns the sort order number of a dose type, returns a dose type as text, and replaces the dose text of a dose type.

Export

Builds the dose rule export rows with the G-Standaard check, writes the rows to a TSV file, and sets the ids of solution rule rows. The round-trip check of the rows is in the Analyze module.

Filter

Holds the empty dose filter and the empty solution filter, and sets the patient data of a dose filter.

FormLogging

Formats a formulary message as text for the log and holds a logger without any output.

Gender

Parses and prints the gender of a rule, maps the gender of a patient to a rule gender, and tests a gender against a filter.

Generic

Creates a generic from a label, a form and product ids, and returns the label or the generic name as text.

GenericLabel

Creates the label of a generic from a name, a form and a brand, and returns the label or the generic name as text.

HashId

Creates, cleans and reads a HashId.

LimitTarget

Returns the name of a limit target and tells whether a limit target is the orderable, a component or a substance.

LinkRule

Turns the rows of the LinkRules sheet into link rules, checks the rows against the dose rules, and matches a side of a link rule against an order.

Logging

Logs a formulary message through a logger at the informative, warning or error level.

Mapping

Reads the Units, Routes, FormRoute, ValidForms, Totals, RuleSets and LinkRules sheets into rows and maps unit names and route names.

PatientCategory

Creates patient categories, tests whether one patient can be in two categories, tests whether a rule applies to the department and location of a patient, returns a sort value for a category, and returns a category as Dutch text.

PatientData

Reads patient data in the terms of the rules and tests whether a patient is an adult or matches a patient category.

PharmaceuticalForm

Creates a pharmaceutical form from a text, a solution when the text contains vloeistof and a solid otherwise, and returns the text.

PrescriptionRule

Combines the dose rules for a filter with the matching solution rules and renal rules into prescription rules for a patient.

Product

Parses the Formulary sheet and builds, reconstitutes, pre-dilutes and filters the product components from G-Standaard products and Formulary rows.

ProductId

Creates product ids from GPK and HPK codes and parses the codes of a sheet cell separated by semicolons.

RenalFunction

Maps the renal function of a patient to the renal function of the renal rules and converts a renal function to and from text.

RenalRule

Parses the RenalRules sheet into renal rules, selects the renal rules for a patient and applies a renal rule to a dose rule.

Resources

Declares the resources of the formulary, loads each resource once in dependency order, and provides the loaded resources with an optional cache.

RuleDataId

Creates the ids of the data rows of a rule.

RuleSet (Module)

Checks the rows of the RuleSets sheet against the dose rules, expands the rows without a generic, builds a rule set per kind and selects the rows of a rule set for a patient.

RuleSet (Type)

The dose rule selection of a kind: the rows of the "RuleSets" sheet of one category.

SolutionRule

Parses the SolutionRules sheet into solution rules, filters the solution rules, and reports warnings for the rows and against the dose rules.

Source

Declares the type of a Kinderformularium entry and the type of a link provider, converts a source to text, finds the Kinderformularium entry of a generic for a route, and builds the Markdown link to the Kinderformularium or the Farmacotherapeutisch Kompas for a generic.

SourceLoader

Fetches the medication index of the Nederlands Kinderformularium and parses the JSON into a list of medications. A failed fetch returns an error with the reason.

Types

Holds the domain types of the formulary: products, dose rules, solution rules, renal rules, prescription rules, filters and the row types of the sheets.

Utils

Holds helper modules for parallel work, results, messages, sheet downloads, TSV cells, numbers, units, values with a unit and ranges used across the formulary library.

VenousAccess

Checks whether a patient has the access device of a rule and whether two access devices can belong to one patient.

Type something to start searching.