-
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.
feat: add repository methods for subscription resource
Signed-off-by: Kathurima Kimathi <kathurimakimathi415@gmail.com>
- Loading branch information
1 parent
4a68670
commit 3d1adab
Showing
6 changed files
with
172 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package domain | ||
|
||
type FHIRSubscriptionInput struct { | ||
ID *string `json:"id,omitempty"` | ||
Meta *FHIRMetaInput `json:"meta,omitempty"` | ||
Extension []Extension `json:"extension,omitempty"` | ||
Status SubscriptionTypeEnum `json:"status"` | ||
Contact []FHIRContactPointInput `json:"contact,omitempty"` | ||
End *string `json:"end,omitempty"` | ||
Reason string `json:"reason"` | ||
Criteria string `json:"criteria"` | ||
Error *string `json:"error,omitempty"` | ||
Channel FHIRSubscriptionChannel `json:"channel"` | ||
} | ||
|
||
// FHIRSubscriptionChannel the channel on which to report matches to the criteria | ||
type FHIRSubscriptionChannelInput struct { | ||
ID *string `json:"id,omitempty"` | ||
Type *string `json:"type"` | ||
Endpoint *string `json:"endpoint,omitempty"` | ||
Payload *string `json:"payload,omitempty"` | ||
Header []string `json:"header,omitempty"` | ||
} | ||
|
||
// FHIRSubscription models a subscription output | ||
type FHIRSubscription struct { | ||
ID *string `json:"id,omitempty"` | ||
Meta *FHIRMeta `json:"meta,omitempty"` | ||
ImplicitRules *string `json:"implicitRules,omitempty"` | ||
Language *string `json:"language,omitempty"` | ||
Text *FHIRNarrative `json:"text,omitempty"` | ||
Extension []*Extension `json:"extension,omitempty"` | ||
ModifierExtension []*Extension `json:"modifierExtension,omitempty"` | ||
Identifier []*FHIRIdentifier `json:"identifier,omitempty"` | ||
Status SubscriptionTypeEnum `json:"status"` | ||
Contact []FHIRContactPoint `json:"contact,omitempty"` | ||
End *string `json:"end,omitempty"` | ||
Reason string `json:"reason"` | ||
Criteria string `json:"criteria"` | ||
Error *string `json:"error,omitempty"` | ||
Channel FHIRSubscriptionChannel `json:"channel"` | ||
} | ||
|
||
// FHIRSubscriptionChannel ... | ||
type FHIRSubscriptionChannel struct { | ||
ID *string `json:"id,omitempty"` | ||
Meta *FHIRMeta `json:"meta,omitempty"` | ||
ImplicitRules *string `json:"implicitRules,omitempty"` | ||
Language *string `json:"language,omitempty"` | ||
Text *FHIRNarrative `json:"text,omitempty"` | ||
Extension []*Extension `json:"extension,omitempty"` | ||
ModifierExtension []*Extension `json:"modifierExtension,omitempty"` | ||
Identifier []*FHIRIdentifier `json:"identifier,omitempty"` | ||
Type *string `json:"type"` | ||
Endpoint *string `json:"endpoint,omitempty"` | ||
Payload *string `json:"payload,omitempty"` | ||
Header []string `json:"header,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