Skip to content

Commit

Permalink
chore: use patient input as pointer
Browse files Browse the repository at this point in the history
Signed-off-by: Kathurima Kimathi <kathurimakimathi415@gmail.com>
  • Loading branch information
KathurimaKimathi committed Feb 29, 2024
1 parent 1e7435f commit 81ea784
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/clinical/domain/patient.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ type FHIRPatientInput struct {
Link []*FHIRPatientLinkInput `json:"link,omitempty"`

// Meta stores more information about the resource
Meta FHIRMetaInput `json:"meta,omitempty"`
Meta *FHIRMetaInput `json:"meta,omitempty"`

// Extension is an optional element that provides additional information not captured in the basic resource definition
Extension []*FHIRExtension `json:"extension,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion pkg/clinical/usecases/clinical/patient.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ func (c *UseCasesClinicalImpl) CreatePatient(ctx context.Context, input dto.Pati
return nil, err
}

patientInput.Meta = domain.FHIRMetaInput{
patientInput.Meta = &domain.FHIRMetaInput{
Tag: tags,
}

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 @@ -95,7 +95,7 @@ func (c *UseCasesClinicalImpl) CreatePubsubPatient(ctx context.Context, payload
return err
}

patientInput.Meta = domain.FHIRMetaInput{
patientInput.Meta = &domain.FHIRMetaInput{
Tag: tags,
}

Expand Down

0 comments on commit 81ea784

Please sign in to comment.