-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorganization.go
34 lines (29 loc) · 1.04 KB
/
organization.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package accountsrv
type OrgAccount struct {
ID string `db:"id" json:"id"`
Name string `db:"name" json:"name"`
Type string `db:"type" json:"type"`
JoinedOn string `db:"joined_on" json:"joined_on"`
}
type OrgProfile struct {
AccountID string `db:"account_id" json:"account_id"`
Phone string `db:"phone" json:"phone"`
Address string `db:"address" json:"address"`
Timezone string `db:"timezone" json:"timezone"`
Website string `db:"website" json:"website"`
}
type ProviderDetails struct {
AccountID string `db:"account_id" json:"account_id"`
NPI string `db:"npi" json:"npi"`
TaxID string `db:"tax_id" json:"tax_id"`
}
type PayorDetails struct {
AccountID string `db:"account_id" json:"account_id"`
PayorID string `db:"payor_id" json:"payor_id"`
}
type DetailedOrg struct {
Account OrgAccount `json:"account"`
Profile OrgProfile `json:"profile"`
ProviderDetails ProviderDetails `json:"provider_details,omitempty"`
PayorDetails PayorDetails `json:"payor_details,omitempty"`
}