Skip to content

Commit

Permalink
Resolve review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
lincmba committed Jul 8, 2024
1 parent 7067ddf commit 1c1d783
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class Constants {
public static final String TAG_SEARCH_PARAM = "_tag";
public static final String TYPE_SEARCH_PARAM = "type";
public static final String DEFAULT_ADMIN_LEVEL_TYPE_URL =
"https://smartregister.org/codes/administrative-level";
"https://smartregister.org/CodeSystem/administrative-level";
public static final String AUTHORIZATION = "Authorization";
public static final String KEYCLOAK_UUID = "keycloak-uuid";
public static final String IDENTIFIER = "_id";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
import javax.servlet.http.HttpServletRequest;

import org.hl7.fhir.instance.model.api.IBaseBundle;
import org.hl7.fhir.r4.model.*;
import org.hl7.fhir.r4.model.Bundle;
import org.hl7.fhir.r4.model.CodeableConcept;
import org.hl7.fhir.r4.model.Coding;
import org.hl7.fhir.r4.model.Identifier;
import org.hl7.fhir.r4.model.Location;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
Expand All @@ -23,7 +27,9 @@
import org.smartregister.model.location.LocationHierarchy;

import ca.uhn.fhir.rest.client.api.IGenericClient;
import ca.uhn.fhir.rest.gclient.*;
import ca.uhn.fhir.rest.gclient.ICriterion;
import ca.uhn.fhir.rest.gclient.IQuery;
import ca.uhn.fhir.rest.gclient.IUntypedQuery;
import ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException;

public class LocationHierarchyEndpointHelperTest {
Expand Down Expand Up @@ -153,7 +159,7 @@ public void testGenerateAdminLevelsWithInvalidRange() {
}

@Test
public void testGetPaginatedLocationsPaginatesLocationsNa() {
public void testGetDecendantsWithAdminLevelFiltersReturnsLocationsWithinAdminLevel() {
String locationId = "12345";
Location parentLocation = new Location();
parentLocation.setId(locationId);
Expand Down

0 comments on commit 1c1d783

Please sign in to comment.