Skip to content

Using the Library

Chuck May edited this page Nov 20, 2025 · 10 revisions

Everything starts with getting an instance of the Staging object. Algorithms are external .ZIP files that are included in each release page. Download the file and initialize the Staging instance in one these ways:

Load from Path

Stagingstaging = Staging.getInstance(Paths.get("C:/path/to/algorithm/cs.02.05.50.zip"));

Load from String representing a full path

Stagingstaging = Staging.getInstance("C:/path/to/algorithm/cs.02.05.50.zip");

Load from a InputStream

try (InputStreamis = Files.newInputStream(zipFilePath)) {
Stagingstaging = Staging.getInstance(is);
}

The staging entity supports the following APIs:

APIDescription
findMatchingTableRowFor a given table, return the index of the row that matches the key/value combination
getInputsLooks at all tables involved in the mapping and returns a list of input keys that may be used during staging
getInvolvedSchemasReturn a list of schema identifiers which the specified table is used in
getInvolvedTablesReturn a list of tables identifiers involved in the specified schema
getOutputsLooks at all tables involved in the mapping and returns a list of output keys that may be created during staging
getSchemaReturn a schema based on schema identifier
getSchemaIdsReturn the complete list a schema identifiers
getTableReturn a table based on table identifier
getTableIdsReturn the complete list of table identifiers
isCodeValidReturn true if the passed field and value are valid in the specified schema
isValidHistologyReturn true if the histology is valid
isValidSiteReturn true if the primary site is valid
lookupSchemaLook up a schema based on a set of inputs
stageStage a case

Clone this wiki locally