Skip to content

Commit

Permalink
Set a numeric FAKE_PATIENT to work with the BFD (#777)
Browse files Browse the repository at this point in the history
Before this bcda jobs were unable to start due to an inability to obtain a "transaction time".
  • Loading branch information
whytheplatypus authored Jul 6, 2022
1 parent 406aa35 commit 08995ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bcda/api/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ func (h *Handler) bulkRequest(w http.ResponseWriter, r *http.Request, reqType se
}

// request a fake patient in order to acquire the bundle's lastUpdated metadata
b, err := bb.GetPatient("FAKE_PATIENT", strconv.FormatUint(uint64(newJob.ID), 10), acoID.String(), "", time.Now())
b, err := bb.GetPatient("0", strconv.FormatUint(uint64(newJob.ID), 10), acoID.String(), "", time.Now())
if err != nil {
log.API.Error(err)
h.RespWriter.Exception(w, http.StatusInternalServerError, responseutils.FormatErr, "Failure to retrieve transactionTime metadata from FHIR Data Server.")
Expand Down

0 comments on commit 08995ce

Please sign in to comment.