@@ -43,9 +43,8 @@ void testDiseaseVersions() throws IOException {
4343
4444 assertNotNull (versions );
4545 assertFalse (versions .isEmpty ());
46- DiseaseVersion version = versions .get ( 0 );
46+ DiseaseVersion version = versions .stream (). filter ( v -> "latest" . equals ( v . getName ())). findFirst (). orElseThrow ( );
4747 assertEquals ("latest" , version .getName ());
48- assertNull (version .getType ()); // type not returned when no permisisons
4948 assertNotNull (version .getFirstPublished ());
5049 assertNotNull (version .getCount ());
5150 }
@@ -89,7 +88,7 @@ void testDiseaseById() throws IOException {
8988 Disease disease = _DISEASE .getById ("latest" , "51f6cf58e3e27c3994bd5408" ).execute ().body ();
9089
9190 assertNotNull (disease );
92- assertEquals ( "Acute erythroid leukemia (AEL)" , disease . getName ( ));
91+ assertTrue ( disease . getName (). startsWith ( "Acute erythroid leukemia (AEL)" ));
9392 assertEquals (Disease .Type .HEMATO , disease .getType ());
9493 assertEquals ("9840/3" , disease .getIcdO3Morphology ());
9594 assertFalse (disease .getSamePrimaries ().isEmpty ());
@@ -117,7 +116,7 @@ void testDiseaseById() throws IOException {
117116 assertEquals (2 , disease .getTreatment ().size ());
118117 assertNotNull (disease .getGenetics ());
119118 assertFalse (disease .getAlternateName ().isEmpty ());
120- assertEquals ( "Acute erythemia [OBS]" , disease .getAlternateName ().get (0 ).getValue ());
119+ assertTrue ( disease .getAlternateName ().get (0 ).getValue (). startsWith ( "Acute erythemia [OBS]" ));
121120 assertTrue (disease .getIcdO2Morphology ().contains ("9840/3" ));
122121 assertTrue (disease .getIcdO1Morphology ().contains ("9840/3" ));
123122 assertEquals ("C94.0 Acute erythroid leukemia" , disease .getIcd10CmCode ().get (0 ).getValue ());
@@ -142,7 +141,7 @@ void testDiseaseById() throws IOException {
142141 assertEquals ("See abstractor notes" , disease .getModuleId ().get (0 ).getValue ());
143142 assertNull (disease .getBiomarkers ());
144143 assertNull (disease .getTreatmentText ());
145- assertTrue (disease .getDiagnosticConfirmation ().get ( 0 ). getValue (). startsWith ( "This histology can be determined by positive histology" ));
144+ assertFalse (disease .getDiagnosticConfirmation ().isEmpty ( ));
146145 }
147146
148147 @ Test
0 commit comments