Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use patient input as pointer #377

Merged
merged 1 commit into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading