Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import org.hl7.fhir.r4.model.StringType;
import org.json.JSONArray;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

Expand All @@ -42,6 +44,8 @@
@Component
public class PatientExtProvider implements IResourceProvider {

private static final Logger logger = LoggerFactory.getLogger(PatientExtProvider.class);

@Override
public Class<? extends IBaseResource> getResourceType() {
return PatientExt.class;
Expand Down Expand Up @@ -171,7 +175,7 @@ public List<PatientExt> findPatientsByDistrictAndLastModifDate(HttpServletReques
}
}
catch (Exception e){
e.printStackTrace();
logger.error("Error while fetching patient records by location and date", e);
}

return listRes;
Expand Down Expand Up @@ -236,7 +240,7 @@ public List<EncounterExt> findVisitsByVillageAndLastModifDate(@RequiredParam(nam
}
}
catch (Exception e){
e.printStackTrace();
logger.error("Error while fetching visits by village and last modified date", e);
}

return listRes;
Expand Down