Skip to content

Commit

Permalink
revert some unnecessary param naming changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pmanko2 committed Jun 9, 2022
1 parent 21013a1 commit adeaf83
Showing 1 changed file with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,14 @@ private IBundleProvider handleLocationReverseInclude(ReferenceAndListParam param
return null;
}

private IBundleProvider handleObservationReverseInclude(ReferenceAndListParam param, String targetType) {
private IBundleProvider handleObservationReverseInclude(ReferenceAndListParam params, String targetType) {
switch (targetType) {
case FhirConstants.OBSERVATION:
ObservationSearchParams observationSearchParams = new ObservationSearchParams();
observationSearchParams.setHasMember(param);
observationSearchParams.setHasMember(params);
return observationService.searchForObservations(observationSearchParams);
case FhirConstants.DIAGNOSTIC_REPORT:
return diagnosticReportService.searchForDiagnosticReports(null, null, null, null, param, null, null, null,
return diagnosticReportService.searchForDiagnosticReports(null, null, null, null, params, null, null, null,
null);
}

Expand All @@ -248,21 +248,21 @@ private IBundleProvider handlePractitionerReverseInclude(ReferenceAndListParam p
return null;
}

private IBundleProvider handleEncounterReverseInclude(ReferenceAndListParam encounterParam, String targetType) {
private IBundleProvider handleEncounterReverseInclude(ReferenceAndListParam params, String targetType) {
switch (targetType) {
case FhirConstants.OBSERVATION:
ObservationSearchParams observationSearchParams = new ObservationSearchParams();
observationSearchParams.setEncounter(encounterParam);
observationSearchParams.setEncounter(params);
return observationService.searchForObservations(observationSearchParams);
case FhirConstants.DIAGNOSTIC_REPORT:
return diagnosticReportService.searchForDiagnosticReports(encounterParam, null, null, null, null, null, null,
return diagnosticReportService.searchForDiagnosticReports(params, null, null, null, null, null, null,
null, null);
case FhirConstants.MEDICATION_REQUEST:
return medicationRequestService.searchForMedicationRequests(null, encounterParam, null, null, null, null,
return medicationRequestService.searchForMedicationRequests(null, params, null, null, null, null,
null, null);
case FhirConstants.PROCEDURE_REQUEST:
case FhirConstants.SERVICE_REQUEST:
return serviceRequestService.searchForServiceRequests(null, null, encounterParam, null, null, null, null,
return serviceRequestService.searchForServiceRequests(null, null, params, null, null, null, null,
null);
}

Expand All @@ -279,28 +279,28 @@ private IBundleProvider handleMedicationReverseInclude(ReferenceAndListParam par
return null;
}

private IBundleProvider handlePatientReverseInclude(ReferenceAndListParam patientParam, String targetType) {
private IBundleProvider handlePatientReverseInclude(ReferenceAndListParam params, String targetType) {
switch (targetType) {
case FhirConstants.OBSERVATION:
ObservationSearchParams observationSearchParams = new ObservationSearchParams();
observationSearchParams.setPatient(patientParam);
observationSearchParams.setPatient(params);
return observationService.searchForObservations(observationSearchParams);
case FhirConstants.DIAGNOSTIC_REPORT:
return diagnosticReportService.searchForDiagnosticReports(null, patientParam, null, null, null, null, null,
return diagnosticReportService.searchForDiagnosticReports(null, params, null, null, null, null, null,
null, null);
case FhirConstants.ALLERGY_INTOLERANCE:
return allergyIntoleranceService.searchForAllergies(patientParam, null, null, null, null, null, null, null,
return allergyIntoleranceService.searchForAllergies(params, null, null, null, null, null, null, null,
null, null);
case FhirConstants.ENCOUNTER:
EncounterSearchParams encounterSearchParams = new EncounterSearchParams();
encounterSearchParams.setSubject(patientParam);
encounterSearchParams.setSubject(params);
return encounterService.searchForEncounters(encounterSearchParams);
case FhirConstants.MEDICATION_REQUEST:
return medicationRequestService.searchForMedicationRequests(patientParam, null, null, null, null, null, null,
return medicationRequestService.searchForMedicationRequests(params, null, null, null, null, null, null,
null);
case FhirConstants.SERVICE_REQUEST:
case FhirConstants.PROCEDURE_REQUEST:
return serviceRequestService.searchForServiceRequests(patientParam, null, null, null, null, null, null,
return serviceRequestService.searchForServiceRequests(params, null, null, null, null, null, null,
null);
}

Expand Down

0 comments on commit adeaf83

Please sign in to comment.