You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DotNet/DataAcquisition.Domain/Application/Services/PatientCensusService.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,7 @@ public async Task<PatientIDsAcquired> Get(string facilityId, CancellationToken c
117
117
}
118
118
catch(Exceptionex)
119
119
{
120
-
_logger.LogError(ex,"Error retrieving patient list id {1} for facility {2} with base url of {3}.",listId.Sanitize(),facilityConfig.FacilityId.Sanitize(),facilityConfig.FhirBaseServerUrl.Sanitize());
120
+
_logger.LogError(ex,"Error retrieving patient list id {ListId} for facility {FacilityId} with base url of {BaseUrl}.",listId.Sanitize(),facilityConfig.FacilityId.Sanitize(),facilityConfig.FhirBaseServerUrl.Sanitize());
121
121
thrownewFhirApiFetchFailureException($"Error retrieving patient list id {listId} for facility {facilityConfig.FacilityId}.",ex);
_logger.LogError(ex,"Error creating log entry for facility {facilityId} and patient {patientId}",request.FacilityId.Sanitize(),dataAcqRequested.PatientId);
254
+
_logger.LogError(ex,"Error creating log entry for facility {FacilityId} and patient {PatientId}",request.FacilityId.Sanitize(),dataAcqRequested.PatientId);
returnProblem(title:"Internal Server Error",detail:message,statusCode:(int)HttpStatusCode.InternalServerError);
158
+
_logger.LogError(newEventId(LoggingIds.InsertItem,"CreateFhirConfiguration"),ex,"An exception occurred while attempting to get a FhirQueryConfiguration with a facility id of {FacilityId}.\n{ExceptionMessage}",facilityId,ex.Message);
159
+
returnProblem(title:"Internal Server Error",detail:ex.Message,statusCode:(int)HttpStatusCode.InternalServerError);
162
160
}
163
161
}
164
162
@@ -224,25 +222,23 @@ public async Task<ActionResult> UpdateFhirConfiguration(FhirQueryConfiguration?
returnProblem(title:"Internal Server Error",detail:message,statusCode:(int)HttpStatusCode.InternalServerError);
240
+
_logger.LogError(newEventId(LoggingIds.UpdateItem,"UpdateFhirConfiguration"),ex,"An exception occurred while attempting to update a fhir query configuration with a facility id of {FacilityId}.\n{ExceptionMessage}",facilityId,ex.Message);
241
+
returnProblem(title:"Internal Server Error",detail:ex.Message,statusCode:(int)HttpStatusCode.InternalServerError);
246
242
}
247
243
}
248
244
@@ -278,20 +274,18 @@ public async Task<ActionResult> DeleteFhirConfiguration(string facilityId, Cance
returnProblem(title:"Internal Server Error",detail:message,statusCode:(int)HttpStatusCode.InternalServerError);
287
+
_logger.LogError(newEventId(LoggingIds.DeleteItem,"DeleteFhirConfiguration"),ex,"An exception occurred while attempting to delete a fhir query configuration with a facility id of {FacilityId}.\n{ExceptionMessage}",facilityId,ex.Message);
288
+
returnProblem(title:"Internal Server Error",detail:ex.Message,statusCode:(int)HttpStatusCode.InternalServerError);
0 commit comments