Skip to content

Commit

Permalink
chore: modify consent input (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
allansifuna committed Jan 31, 2024
1 parent 256084a commit b5d036e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 23 deletions.
22 changes: 1 addition & 21 deletions pkg/clinical/presentation/graph/generated/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pkg/clinical/presentation/graph/inputs.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ input Pagination {
}

input ConsentInput{
status: ConsentStatusEnum!
provision: ConsentProvisionTypeEnum!
patientID: String!
denyReason: String
Expand Down
3 changes: 2 additions & 1 deletion pkg/clinical/usecases/clinical/consent.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ func (u *UseCasesClinicalImpl) RecordConsent(ctx context.Context, input dto.Cons
Tag: tags,
}

status := dto.ConditionStatusActive
consent := domain.FHIRConsent{
Provision: consentProvision,
Status: &input.Status,
Status: (*dto.ConsentStatusEnum)(&status),
Patient: subjectReference,
Scope: scope,
Category: []*domain.FHIRCodeableConcept{category},
Expand Down

0 comments on commit b5d036e

Please sign in to comment.