Skip to content

Commit

Permalink
fix: update fhir patient id
Browse files Browse the repository at this point in the history
Signed-off-by: maxwellgithinji <maxwellgithinji@gmail.com>
  • Loading branch information
maxwellgithinji committed Jun 6, 2023
1 parent b789b17 commit 70665ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/clinical/presentation/rest/handlers.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package rest

import (
"context"
"encoding/json"
"fmt"
"net/http"
Expand Down Expand Up @@ -34,7 +35,7 @@ func NewPresentationHandlers(usecases usecases.Interactor, extension BaseExtensi

// ReceivePubSubPushMessage receives and processes a pubsub message
func (p PresentationHandlersImpl) ReceivePubSubPushMessage(c *gin.Context) {
ctx := c.Request.Context()
ctx := context.Background()

message, err := p.baseExt.VerifyPubSubJWTAndDecodePayload(c.Writer, c.Request)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/clinical/usecases/clinical/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (c *UseCasesClinicalImpl) CreatePubsubPatient(ctx context.Context, payload
return err
}

err = c.infrastructure.MyCareHub.AddFHIRIDToPatientProfile(context.Background(), *patient.PatientRecord.ID, payload.ClientID)
err = c.infrastructure.MyCareHub.AddFHIRIDToPatientProfile(ctx, *patient.PatientRecord.ID, payload.ClientID)
if err != nil {
return err
}
Expand Down

0 comments on commit 70665ca

Please sign in to comment.