Export Module
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.
Functions and values
| Function or value |
Description
|
Full Usage:
exportData provider generated
Parameters:
IResourceProvider
-
The resource provider for the forward map and the G-Standaard check.
generated : DoseRuleData[]
-
The generated rows of the last pass.
Returns: DoseRuleData array
The checked export rows.
|
Builds the export rows from generated rows. Builds the dose rules, adds the G-Standaard check, maps them back to rows and removes duplicates. Then sets the ids, puts the rows of a group together and numbers the rules of each group and the rows of each rule, as the loader does.
|
Full Usage:
exportSolutionData data
Parameters:
SolutionRuleData[]
Returns: SolutionRuleData array
|
Sets the Id, the RuleId, the RowId and the RowNo of each solution rule row, and puts the rows of a rule together in the order of the rows. Every row is kept, the diluent rows as they are.
|
Full Usage:
forward provider data
Parameters:
IResourceProvider
-
The resource provider with the route mappings, form routes, products and solution
rules.
data : DoseRuleData[]
-
The dose rule data rows.
Returns: DoseRule array
The dose rules.
|
Builds the dose rules from dose rule data with the loader and drops the warnings. Leaves out the slow G-Standaard check, which does not matter for containment; exportData runs it once.
|
Full Usage:
withChecks provider drs
Parameters:
IResourceProvider
-
The resource provider with the G-Standaard provider.
drs : DoseRule array
-
The dose rules to check.
Returns: DoseRule array
The dose rules with the Check field set.
|
Adds the G-Standaard check without a patient to each dose rule, in parallel. A frequency mismatch goes to FreqCheck, every other signal except Within goes to DoseCheck. A check is None when it has no message. The unknown patient data return all G-Standaard doses, so the category of the dose rule alone narrows the check.
|
Full Usage:
writeExport fileName data
Parameters:
string
-
The name of the TSV file.
data : DoseRuleData[]
-
The dose rule data rows.
Returns: string
The path in the parent directory that has the file, searched upward from the current
directory.
|
Writes the export rows as TSV to a file and returns the path of the file.
|
GenPRES