first commit
This commit is contained in:
86
types/person.types.go
Normal file
86
types/person.types.go
Normal file
@@ -0,0 +1,86 @@
|
||||
package types
|
||||
|
||||
type PersonStore interface {
|
||||
GetPersonByID(id int) (*Person, error)
|
||||
}
|
||||
|
||||
type Person struct {
|
||||
PersonID int `json:"PersonID" db:"PersonID"`
|
||||
PersonName string `json:"PersonName" db:"PersonName"`
|
||||
PersonSalutation string `json:"PersonSalutation" db:"PersonSalutation"`
|
||||
PersonPrefix string `json:"PersonPrefix" db:"PersonPrefix"`
|
||||
PersonSuffix string `json:"PersonSuffix" db:"PersonSuffix"`
|
||||
PersonGender string `json:"PersonGender" db:"PersonGender"`
|
||||
PersonBirthPlace string `json:"PersonBirthPlace" db:"PersonBirthPlace"`
|
||||
PersonBirthDate string `json:"PersonBirthDate" db:"PersonBirthDate"`
|
||||
PersonReligionCode string `json:"PersonReligionCode" db:"PersonReligionCode"`
|
||||
PersonReligionSystem string `json:"PersonReligionSystem" db:"PersonReligionSystem"`
|
||||
PersonBloodTypeCode string `json:"PersonBloodTypeCode" db:"PersonBloodTypeCode"`
|
||||
PersonBloodTypeSystem string `json:"PersonBloodTypeSystem" db:"PersonBloodTypeSystem"`
|
||||
PersonRhesusCode string `json:"PersonRhesusCode" db:"PersonRhesusCode"`
|
||||
PersonRhesusSystem string `json:"PersonRhesusSystem" db:"PersonRhesusSystem"`
|
||||
PersonEducationCode string `json:"PersonEducationCode" db:"PersonEducationCode"`
|
||||
PersonEducationSystem string `json:"PersonEducationSystem" db:"PersonEducationSystem"`
|
||||
PersonJobClassCode string `json:"PersonJobClassCode" db:"PersonJobClassCode"`
|
||||
PersonJobClassSystem string `json:"PersonJobClassSystem" db:"PersonJobClassSystem"`
|
||||
PersonEtnicityCode string `json:"PersonEtnicityCode" db:"PersonEtnicityCode"`
|
||||
PersonEtnicitySystem string `json:"PersonEtnicitySystem" db:"PersonEtnicitySystem"`
|
||||
PersonMaritalBirth string `json:"PersonMaritalBirth" db:"PersonMaritalBirth"`
|
||||
PersonMaritalStatus string `json:"PersonMaritalStatus" db:"PersonMaritalStatus"`
|
||||
}
|
||||
|
||||
type PersonJSON struct {
|
||||
PersonID int `json:"PersonID" db:"PersonID"`
|
||||
PersonName string `json:"PersonName" db:"PersonName"`
|
||||
PersonSalutation string `json:"PersonSalutation" db:"PersonSalutation"`
|
||||
PersonPrefix string `json:"PersonPrefix" db:"PersonPrefix"`
|
||||
PersonSuffix string `json:"PersonSuffix" db:"PersonSuffix"`
|
||||
PersonGender string `json:"PersonGender" db:"PersonGender"`
|
||||
PersonBirthPlace string `json:"PersonBirthPlace" db:"PersonBirthPlace"`
|
||||
PersonBirthDate string `json:"PersonBirthDate" db:"PersonBirthDate"`
|
||||
PersonReligion CodeableTerminology `json:"PersonReligion"`
|
||||
PersonBlood CodeableTerminology `json:"PersonBlood"`
|
||||
PersonRhesus CodeableTerminology `json:"PersonRhesus"`
|
||||
PersonEducation CodeableTerminology `json:"PersonEducation"`
|
||||
PersonJobClass CodeableTerminology `json:"PersonJobClass"`
|
||||
PersonEtnicity CodeableTerminology `json:"PersonEtnicity"`
|
||||
PersonMaritalBirth string `json:"PersonMaritalBirth" db:"PersonMaritalBirth"`
|
||||
PersonMaritalStatus string `json:"PersonMaritalStatus" db:"PersonMaritalStatus"`
|
||||
}
|
||||
|
||||
type PersonIdentifier struct {
|
||||
PersonIdentifierID int `json:"PersonIdentifierID" db:"PersonIdentifierID"`
|
||||
PersonIdentifierPersonID int `json:"PersonIdentifierPersonID" db:"PersonIdentifierPersonID"`
|
||||
PersonIdentifierUse string `json:"PersonIdentifierUse" db:"PersonIdentifierUse"`
|
||||
PersonIdentifierTypeCode string `json:"PersonIdentifierTypeCode" db:"PersonIdentifierTypeCode"`
|
||||
PersonIdentifierTypeSystem string `json:"PersonIdentifierTypeSystem" db:"PersonIdentifierTypeSystem"`
|
||||
PersonIdentifierCode string `json:"PersonIdentifierCode" db:"PersonIdentifierCode"`
|
||||
PersonIdentifierSystem string `json:"PersonIdentifierSystem" db:"PersonIdentifierSystem"`
|
||||
PersonIdentifierValue string `json:"PersonIdentifierValue" db:"PersonIdentifierValue"`
|
||||
}
|
||||
|
||||
type PersonAddress struct {
|
||||
PersonAddressID int `json:"PersonAddressID" db:"PersonAddressID"`
|
||||
PersonAddressPersonID int `json:"PersonAddressPersonID" db:"PersonAddressPersonID"`
|
||||
PersonAddressIsDefault string `json:"PersonAddressIsDefault" db:"PersonAddressIsDefault"`
|
||||
PersonAddressUse string `json:"PersonAddressUse" db:"PersonAddressUse"`
|
||||
PersonAddressType string `json:"PersonAddressType" db:"PersonAddressType"`
|
||||
PersonAddressText string `json:"PersonAddressText" db:"PersonAddressText"`
|
||||
PersonAddressLine1 string `json:"PersonAddressLine1" db:"PersonAddressLine1"`
|
||||
PersonAddressLine2 string `json:"PersonAddressLine2" db:"PersonAddressLine2"`
|
||||
PersonAddressRegionalCd string `json:"PersonAddressRegionalCd" db:"PersonAddressRegionalCd"`
|
||||
PersonAddressRT string `json:"PersonAddressRT" db:"PersonAddressRT"`
|
||||
PersonAddressRW string `json:"PersonAddressRW" db:"PersonAddressRW"`
|
||||
PersonAddressCity string `json:"PersonAddressCity" db:"PersonAddressCity"`
|
||||
PersonAddressDistrict string `json:"PersonAddressDistrict" db:"PersonAddressDistrict"`
|
||||
PersonAddressState string `json:"PersonAddressState" db:"PersonAddressState"`
|
||||
PersonAddressCountry string `json:"PersonAddressCountry" db:"PersonAddressCountry"`
|
||||
}
|
||||
|
||||
type PersonTelecom struct {
|
||||
PersonTelecomID int `json:"PersonTelecomID" db:"PersonTelecomID"`
|
||||
PersonTelecomPersonID int `json:"PersonTelecomPersonID" db:"PersonTelecomPersonID"`
|
||||
PersonTelecomSystem string `json:"PersonTelecomSystem" db:"PersonTelecomSystem"`
|
||||
PersonTelecomValue string `json:"PersonTelecomValue" db:"PersonTelecomValue"`
|
||||
PersonTelecomUse string `json:"PersonTelecomUse" db:"PersonTelecomUse"`
|
||||
}
|
||||
Reference in New Issue
Block a user