Skip to content

Commit

Permalink
Unit test fixes following upgrade to depend on 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mseaton committed May 5, 2024
1 parent 97c2e32 commit 543161a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void testConceptSearchInAnotherLocale() throws Exception {
@Test
public void testConceptSearchByIcd10Code() throws Exception {
ConceptClass diagnosis = conceptService.getConceptClassByName("Diagnosis");
ConceptSource icd10 = conceptService.getConceptSourceByName("ICD-10");
ConceptSource icd10 = conceptService.getConceptSource(2);

Map<String, Concept> concepts = setupConcepts();

Expand Down Expand Up @@ -153,7 +153,7 @@ public void testConceptSearchForSetMembers() throws Exception {
public void testConceptSearchByNameFromSpecificSources() throws Exception {
Map<String, Concept> concepts = setupConcepts();
ConceptClass diagnosis = conceptService.getConceptClassByName("Diagnosis");
ConceptSource icd10 = conceptService.getConceptSourceByName("ICD-10");
ConceptSource icd10 = conceptService.getConceptSource(2);

List<ConceptSearchResult> searchResults = emrConceptService.conceptSearch("ia", Locale.ENGLISH, Collections.singleton(diagnosis), null, Collections.singleton(icd10), null);

Expand All @@ -177,8 +177,8 @@ private Map<String, Concept> setupConcepts() {
Map<String, Concept> concepts = new HashMap<String, Concept>();

ConceptMapType sameAs = conceptService.getConceptMapTypeByName("same-as");
ConceptSource icd10 = conceptService.getConceptSourceByName("ICD-10");
ConceptSource snomed = conceptService.getConceptSourceByName("SNOMED CT");
ConceptSource icd10 = conceptService.getConceptSource(2);
ConceptSource snomed = conceptService.getConceptSource(3);

ConceptDatatype na = conceptService.getConceptDatatypeByName("N/A");
ConceptClass diagnosis = conceptService.getConceptClassByName("Diagnosis");
Expand Down

0 comments on commit 543161a

Please sign in to comment.