162 lines
8.4 KiB
Go
162 lines
8.4 KiB
Go
package masteraddress
|
|
|
|
import (
|
|
_struct "api-poliklinik/pkg/models/struct"
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
)
|
|
|
|
type State struct {
|
|
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
|
|
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
|
|
Status string `bson:"status" json:"status"`
|
|
Name string `bson:"name" json:"name"`
|
|
Period _struct.Period `bson:"period" json:"period"`
|
|
CreatedAt string `bson:"createdAt" json:"createdAt"`
|
|
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
|
|
}
|
|
|
|
type City struct {
|
|
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
|
|
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
|
|
Status string `bson:"status" json:"status"`
|
|
Name string `bson:"name" json:"name"`
|
|
State _struct.Reference `bson:"state" json:"state"`
|
|
Period _struct.Period `bson:"period" json:"period"`
|
|
CreatedAt string `bson:"createdAt" json:"createdAt"`
|
|
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
|
|
}
|
|
|
|
type District struct {
|
|
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
|
|
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
|
|
Status string `bson:"status" json:"status"`
|
|
Name string `bson:"name" json:"name"`
|
|
City _struct.Reference `bson:"city" json:"city"`
|
|
Period _struct.Period `bson:"period" json:"period"`
|
|
CreatedAt string `bson:"createdAt" json:"createdAt"`
|
|
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
|
|
}
|
|
|
|
type Village struct {
|
|
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
|
|
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
|
|
Status string `bson:"status" json:"status"`
|
|
Name string `bson:"name" json:"name"`
|
|
District _struct.Reference `bson:"district" json:"district"`
|
|
Period _struct.Period `bson:"period" json:"period"`
|
|
CreatedAt string `bson:"createdAt" json:"createdAt"`
|
|
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
|
|
}
|
|
|
|
type Communication struct {
|
|
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
|
|
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
|
|
Status string `bson:"status" json:"status"`
|
|
Name string `bson:"name" json:"name"`
|
|
Description string `bson:"description" json:"description"`
|
|
Period _struct.Period `bson:"period" json:"period"`
|
|
CreatedAt string `bson:"createdAt" json:"createdAt"`
|
|
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
|
|
}
|
|
|
|
type Disability struct {
|
|
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
|
|
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
|
|
Status string `bson:"status" json:"status"`
|
|
Name string `bson:"name" json:"name"`
|
|
Description string `bson:"description" json:"description"`
|
|
Period _struct.Period `bson:"period" json:"period"`
|
|
CreatedAt string `bson:"createdAt" json:"createdAt"`
|
|
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
|
|
}
|
|
|
|
type Education struct {
|
|
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
|
|
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
|
|
Status string `bson:"status" json:"status"`
|
|
Name string `bson:"name" json:"name"`
|
|
Description string `bson:"description" json:"description"`
|
|
Period _struct.Period `bson:"period" json:"period"`
|
|
CreatedAt string `bson:"createdAt" json:"createdAt"`
|
|
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
|
|
}
|
|
|
|
type Job struct {
|
|
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
|
|
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
|
|
Status string `bson:"status" json:"status"`
|
|
Name string `bson:"name" json:"name"`
|
|
Description string `bson:"description" json:"description"`
|
|
Period _struct.Period `bson:"period" json:"period"`
|
|
CreatedAt string `bson:"createdAt" json:"createdAt"`
|
|
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
|
|
}
|
|
|
|
type MartialStatus struct {
|
|
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
|
|
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
|
|
Status string `bson:"status" json:"status"`
|
|
Name string `bson:"name" json:"name"`
|
|
Description string `bson:"description" json:"description"`
|
|
Period _struct.Period `bson:"period" json:"period"`
|
|
CreatedAt string `bson:"createdAt" json:"createdAt"`
|
|
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
|
|
}
|
|
|
|
type Religion struct {
|
|
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
|
|
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
|
|
Status string `bson:"status" json:"status"`
|
|
Name string `bson:"name" json:"name"`
|
|
Description string `bson:"description" json:"description"`
|
|
Period _struct.Period `bson:"period" json:"period"`
|
|
CreatedAt string `bson:"createdAt" json:"createdAt"`
|
|
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
|
|
}
|
|
|
|
type Tribe struct {
|
|
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
|
|
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
|
|
Status string `bson:"status" json:"status"`
|
|
Name string `bson:"name" json:"name"`
|
|
Description string `bson:"description" json:"description"`
|
|
Period _struct.Period `bson:"period" json:"period"`
|
|
CreatedAt string `bson:"createdAt" json:"createdAt"`
|
|
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
|
|
}
|
|
|
|
type Icdmongo struct {
|
|
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
|
|
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
|
|
Status string `bson:"status" json:"status"`
|
|
Name string `bson:"name" json:"name"`
|
|
Description string `bson:"description" json:"description"`
|
|
Comment string `bson:"comment" json:"comment"`
|
|
Period _struct.Period `bson:"period" json:"period"`
|
|
CreatedAt string `bson:"createdAt" json:"createdAt"`
|
|
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
|
|
}
|
|
|
|
type Smfmongo struct {
|
|
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
|
|
Identifier []_struct.Identifier `bson:"identifier" json:"identifier"`
|
|
Status string `bson:"status" json:"status"`
|
|
Name string `bson:"name" json:"name"`
|
|
Period _struct.Period `bson:"period" json:"period"`
|
|
CreatedAt string `bson:"createdAt" json:"createdAt"`
|
|
UpdatedAt string `bson:"updatedAt" json:"updatedAt"`
|
|
}
|