80 lines
6.0 KiB
Go
80 lines
6.0 KiB
Go
package insertpatient
|
|
|
|
import (
|
|
_struct "api-poliklinik/pkg/models/struct"
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
)
|
|
|
|
type Patient struct {
|
|
ResourceType string `json:"resourceType" bson:"resourceType,omitempty" `
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id" `
|
|
Identifier []_struct.Identifier `json:"identifier" bson:"identifier,omitempty" `
|
|
Active bool `json:"active" bson:"active,omitempty"`
|
|
Name []_struct.HumanName `json:"name" bson:"name,omitempty" `
|
|
Telecom []_struct.ContactPoint `json:"telecom" bson:"telecom,omitempty" `
|
|
Gender string `json:"gender" bson:"gender,omitempty" `
|
|
BirthDate string `json:"birthDate" bson:"birthDate,omitempty" `
|
|
DeceasedBoolean bool `json:"deceasedBoolean" bson:"deceasedBoolean,omitempty" `
|
|
DeceasedDateTime string `json:"deceasedDateTime" bson:"deceasedDateTime,omitempty" `
|
|
Address []_struct.Address `json:"address" bson:"address,omitempty" `
|
|
MaritalStatus _struct.CodeableConcept `json:"maritalStatus" bson:"maritalStatus,omitempty" `
|
|
MultipleBirthBoolean bool `json:"multipleBirthBoolean" bson:"multipleBirthBoolean,omitempty" `
|
|
MultipleBirthInteger int `json:"multipleBirthInteger" bson:"multipleBirthInteger,omitempty" `
|
|
Photo []_struct.Photo `json:"photo" bson:"photo,omitempty" `
|
|
Contact []_struct.Contact `json:"contact" bson:"contact,omitempty" `
|
|
Communication []_struct.Communication `json:"communication" bson:"communication,omitempty" `
|
|
Link []_struct.Link `json:"link" bson:"link,omitempty" `
|
|
CreatedAt string `json:"createdAt" bson:"createdAt" `
|
|
UpdatedAt string `json:"updatedAt" bson:"updatedAt" `
|
|
DeletedAt string `json:"deletedAt" bson:"deletedAt,omitempty" `
|
|
Extension []_struct.Extension `json:"extension" bson:"extension,omitempty" `
|
|
}
|
|
|
|
type GetBY struct {
|
|
Identifier []_struct.Identifier `json:"identifier" bson:"identifier,omitempty" `
|
|
}
|
|
|
|
type UpdatePatient struct {
|
|
ResourceType string `json:"resourceType" bson:"resourceType,omitempty"`
|
|
ID string `bson:"-"`
|
|
Identifier []_struct.Identifier `json:"identifier" bson:"identifier,omitempty"`
|
|
Active bool `json:"active" bson:"active,omitempty"`
|
|
Name []_struct.HumanName `json:"name" bson:"name,omitempty"`
|
|
Telecom []_struct.ContactPoint `json:"telecom" bson:"telecom,omitempty"`
|
|
Gender string `json:"gender" bson:"gender,omitempty"`
|
|
BirthDate string `json:"birthDate" bson:"birthDate,omitempty"`
|
|
DeceasedBoolean bool `json:"deceasedBoolean" bson:"deceasedBoolean,omitempty"`
|
|
DeceasedDateTime string `json:"deceasedDateTime" bson:"deceasedDateTime,omitempty"`
|
|
Address []_struct.Address `json:"address,omitempty" bson:"address,omitempty"`
|
|
MaritalStatus _struct.CodeableConcept `json:"maritalStatus,omitempty" bson:"maritalStatus,omitempty"`
|
|
MultipleBirthBoolean bool `json:"multipleBirthBoolean,omitempty" bson:"multipleBirthBoolean,omitempty"`
|
|
MultipleBirthInteger int `json:"multipleBirthInteger,omitempty" bson:"multipleBirthInteger,omitempty"`
|
|
Photo []_struct.Photo `json:"photo,omitempty" bson:"photo,omitempty"`
|
|
Contact []_struct.Contact `json:"contact,omitempty" bson:"contact,omitempty"`
|
|
Communication []_struct.Communication `json:"communication,omitempty" bson:"communication,omitempty"`
|
|
Link []_struct.Link `json:"link,omitempty" bson:"link,omitempty"`
|
|
Extension []_struct.Extension `json:"extension,omitempty" bson:"extension,omitempty"`
|
|
}
|
|
|
|
type DeletePatient struct {
|
|
ResourceType string `json:"resourceType,omitempty" bson:"resourceType,omitempty"`
|
|
ID string `bson:"-"`
|
|
Identifier []_struct.Identifier `json:"identifier,omitempty" bson:"identifier,omitempty"`
|
|
Active bool `json:"active,omitempty" bson:"active,omitempty"`
|
|
Name []_struct.HumanName `json:"name,omitempty" bson:"name,omitempty"`
|
|
Telecom []_struct.ContactPoint `json:"telecom,omitempty" bson:"telecom,omitempty"`
|
|
Gender string `json:"gender,omitempty" bson:"gender,omitempty"`
|
|
BirthDate string `json:"birthDate,omitempty" bson:"birthDate,omitempty"`
|
|
DeceasedBoolean bool `json:"deceasedBoolean,omitempty" bson:"deceasedBoolean,omitempty"`
|
|
DeceasedDateTime string `json:"deceasedDateTime,omitempty" bson:"deceasedDateTime,omitempty"`
|
|
Address []_struct.Address `json:"address,omitempty" bson:"address,omitempty"`
|
|
MaritalStatus _struct.CodeableConcept `json:"maritalStatus,omitempty" bson:"maritalStatus,omitempty"`
|
|
MultipleBirthBoolean bool `json:"multipleBirthBoolean,omitempty" bson:"multipleBirthBoolean,omitempty"`
|
|
MultipleBirthInteger int `json:"multipleBirthInteger,omitempty" bson:"multipleBirthInteger,omitempty"`
|
|
Photo []_struct.Photo `json:"photo,omitempty" bson:"photo,omitempty"`
|
|
Contact []_struct.Contact `json:"contact,omitempty" bson:"contact,omitempty"`
|
|
Communication []_struct.Communication `json:"communication,omitempty" bson:"communication,omitempty"`
|
|
Link []_struct.Link `json:"link,omitempty" bson:"link,omitempty"`
|
|
Extension []_struct.Extension `json:"extension,omitempty" bson:"extension,omitempty"`
|
|
}
|