-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Link to Documentation: https://savannahghi.atlassian.net/wiki/spaces/OHE/pages/468025506/API+Documentation#Record-Consent
- Loading branch information
1 parent
8bd788b
commit 6f6cf99
Showing
17 changed files
with
765 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package domain | ||
|
||
import ( | ||
"github.com/savannahghi/clinical/pkg/clinical/application/dto" | ||
) | ||
|
||
// Consent models a fhir consent resource | ||
type FHIRConsent struct { | ||
ID *string `json:"id,omitempty"` | ||
Status *dto.ConsentStatusEnum `json:"status"` | ||
Scope *FHIRCodeableConcept `json:"scope"` | ||
Category []*FHIRCodeableConcept `json:"category"` | ||
PolicyRule *FHIRCodeableConcept `json:"policyRule,omitempty"` | ||
Provision *FHIRConsentProvision `json:"provision,omitempty"` | ||
Patient *FHIRReference `json:"patient,omitempty"` | ||
Meta *FHIRMetaInput `json:"meta,omitempty"` | ||
} | ||
|
||
// ConsentProvision models a fhir consent provision | ||
type FHIRConsentProvision struct { | ||
ID *string `json:"id,omitempty"` | ||
Type *dto.ConsentProvisionTypeEnum `json:"type,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.