Skip to content

Commit

Permalink
v2482 pre
Browse files Browse the repository at this point in the history
  • Loading branch information
koskedk committed Jun 5, 2020
1 parent 0b2d5a3 commit 908ff6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,8 @@ public ExtractPatientAdverseEventHandler(IPatientAdverseEventSourceExtractor pat

public async Task<bool> Handle(ExtractPatientAdverseEvent request, CancellationToken cancellationToken)
{
int found = 0;
//Extract
try
{
found = await _patientAdverseEventSourceExtractor.Extract(request.Extract,
request.DatabaseProtocol);
}
catch (Exception e)
{
Log.Error(e,"Adverse Events");
}
int found = await _patientAdverseEventSourceExtractor.Extract(request.Extract, request.DatabaseProtocol);

//Validate
await _extractValidator.Validate(request.Extract.Id, found, nameof(PatientAdverseEventExtract),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public PatientExtractView Read(Guid id)
.Include(x => x.PatientVisitExtracts)
.Include(x => x.PatientAdverseEventExtracts)
.AsNoTracking()
.SingleOrDefault(x => x.Id == id);
.FirstOrDefault(x => x.Id == id);
return patientExtractView;
}

Expand Down

0 comments on commit 908ff6f

Please sign in to comment.