Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/main/java/com/imsweb/staging/eod/EodStagingData.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public enum EodInput {
GESTATIONAL_PROG_INDEX("gestational_prog_index"),
HER2_SUMMARY("her2_summary"),
LDH_LEVEL("ldh_level"),
LN_POS_AXILLARY_LEVEL_1_2("ln_pos_axillary_level_1_2"),
LN_SIZE_OF_METS("ln_size_of_mets"),
MEASURED_BASAL_DIAMETER("measured_basal_diameter"),
MEASURED_THICKNESS("measured_thickness"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
public class EodPublicUpdateFromAPI {

public static void main(String[] args) throws IOException {
UpdaterUtils.update("eod_public", "3.3", new HashSet<>(Collections.singletonList("STAGING")), Paths.get("c:/dev/tmp"));
UpdaterUtils.update("eod_public", "3.4", new HashSet<>(Collections.singletonList("STAGING")), Paths.get("d:/tmp"));
}

}
40 changes: 28 additions & 12 deletions src/test/java/com/imsweb/staging/eod/EodStagingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import java.net.URISyntaxException;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Objects;
Expand Down Expand Up @@ -54,12 +53,12 @@ public String getAlgorithm() {

@Override
public String getVersion() {
return "3.3";
return "3.4";
}

@Test
void testBasicInitialization() {
assertThat(_STAGING.getSchemaIds()).hasSize(141);
assertThat(_STAGING.getSchemaIds()).hasSize(149);
assertThat(_STAGING.getTableIds()).isNotEmpty();

assertThat(_STAGING.getSchema("urethra")).isNotNull();
Expand Down Expand Up @@ -134,7 +133,7 @@ void testSchemaSelection() {

// test searching on only hist
lookup = _STAGING.lookupSchema(new EodSchemaLookup(null, "9702"));
assertThat(lookup).hasSize(8);
assertThat(lookup).hasSize(2);

// test that searching on only discriminator_1 returns no results
schemaLookup = new EodSchemaLookup(null, null);
Expand Down Expand Up @@ -307,19 +306,36 @@ void testBadLookupInStage() {
void testInvolvedTables() {
Set<String> tables = _STAGING.getInvolvedTables("adnexa_uterine_other");

assertThat(tables).containsOnly("seer_mets_48348", "nodes_dcc", "grade_clinical_standard_non_ajcc_32473", "grade_pathological_standard_non_ajcc_5627",
"adnexa_uterine_other_97891", "nodes_pos_fpa", "tumor_size_pathological_25597", "tumor_size_clinical_60979", "primary_site", "histology",
"nodes_exam_76029", "grade_post_therapy_clin_69737", "grade_post_therapy_path_75348", "schema_selection_adnexa_uterine_other",
"year_dx_validation", "summary_stage_rpa", "tumor_size_summary_63115", "extension_bcn", "combined_grade_56638", "neoadjuvant_therapy_37302",
"derived_grade_standard_non_ajcc_63932", "neoadj_tx_treatment_effect_18122", "neoadj_tx_clinical_response_31723", "ss2018_adnexa_uterine_other_values_44976",
"behavior", "type_of_reporting_source_76696");
assertThat(tables).containsOnly("seer_mets_48348",
"nodes_dcc",
"grade_clinical_standard_non_ajcc_32473",
"grade_pathological_standard_non_ajcc_5627",
"adnexa_uterine_other_97891",
"nodes_pos_fpa",
"tumor_size_pathological_25597",
"tumor_size_clinical_60979",
"primary_site",
"histology",
"nodes_exam_76029",
"grade_post_therapy_clin_69737",
"grade_post_therapy_path_75348",
"schema_selection_adnexa_uterine_other",
"year_dx_validation",
"summary_stage_rpa",
"tumor_size_summary_63115",
"extension_bcn",
"combined_grade_56638",
"derived_grade_standard_non_ajcc_63932",
"ss2018_adnexa_uterine_other_values_44976",
"behavior",
"type_of_reporting_source_76696");
}

@Test
void testInvolvedSchemas() {
Set<String> schemas = _STAGING.getInvolvedSchemas("her2_summary_30512");

assertThat(schemas).isEqualTo(new HashSet<>(Collections.singletonList("breast")));
assertThat(schemas).isEqualTo(new HashSet<>(Arrays.asList("breast", "breast_v9_2027")));
}

@Test
Expand Down Expand Up @@ -445,7 +461,7 @@ void testContentReturnedForInvalidInput() {
assertThat(data.getErrors()).hasSize(5);
assertThat(data.getPath()).hasSize(5);
assertThat(data.getOutput()).hasSize(4);
assertThat(data.getOutput()).containsEntry(EodOutput.DERIVED_VERSION.toString(), "3.3");
assertThat(data.getOutput()).containsEntry(EodOutput.DERIVED_VERSION.toString(), "3.4");
}

@Test
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/imsweb/staging/eod/EodUpdateFromAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
public class EodUpdateFromAPI {

public static void main(String[] args) throws IOException {
UpdaterUtils.update("eod", "3.3", new HashSet<>(Collections.singletonList("STAGING")), Paths.get("c:/dev/tmp"));
UpdaterUtils.update("eod", "3.4", new HashSet<>(Collections.singletonList("STAGING")), Paths.get("d:/tmp"));
}

}
Binary file removed src/test/resources/algorithms/eod_public-3.3.zip
Binary file not shown.
Binary file not shown.
Loading