fasten-onprem/backend/pkg/models/medical_profile.go

40 lines
2.6 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package models
//demographics Object (optional) (See demographics)
//alcohol Object (optional) The users alcohol usage. See alcohol object.
//smoking Object (optional) The users smoking habits. See smoking object.
type Profile struct {
OriginBase
//embedded structs
Demographics Demographics `json:"demographics" gorm:"serializer:json;default:'{}'"`
}
type Demographics struct {
Address Address `json:"address,omitempty"` // Object (See address object)
Dob *string `json:"dob,omitempty"` //String (optional) The users date of birth e.g. "04/21/1965"
Ethnicity *string `json:"ethnicity,omitempty"` // String (optional) The ethnicity of the user e.g. "Not Hispanic of Latino"
Gender *string `json:"gender,omitempty"` // String (optional) The users gender e.g. "male"
Language *string `json:"language,omitempty"` //String (optional) The users primary language e.g. "eng"
MaritalStatus *string `json:"maritalStatus,omitempty"` // String (optional) The users marital status (eg: “married”, “single”)
Name Name `json:"name,omitempty"` // Object (optional) (See name object)
Race *string `json:"race,omitempty"` // String (optional) The users race e.g. "White"
EthnicityCodes *string `json:"ethnicityCodes,omitempty"` // ethnicityCodes Array[Object] (optional) CDC Race & Ethnicity and SNOMED CT Ethnicity codes: See codes
MaritalStatusCodes *string `json:"maritalStatusCodes,omitempty"` // String (optional) SNOMED CT Marital status codes: see codes object
GenderCodes *string `json:"genderCodes,omitempty"` //String (optional) SNOMED CT Gender codes: See codes
}
type Address struct {
City *string `json:"city,omitempty"` // (optional) City of address e.g. "SAN FRANCISCO"
Country *string `json:"country,omitempty"` // (optional) Country of address e.g. "US"
State *string `json:"state,omitempty"` // (optional) State of address e.g. "CA"
Street []string `json:"street,omitempty"` // Array[String] (optional) Street of address e.g. ["156 22ND AVE NW"]
Zip *string `json:"zip,omitempty"` // (optional) Zip of address e.g. "94123"
}
type Name struct {
Prefix *string `json:"prefix,omitempty"` // String (optional) The title of the provider e.g. "MD"
Given []string `json:"given,omitempty"` // Array[String] Name values associated with the provider e.g. ["Travis", "R"]
Family *string `json:"family,omitempty"` // String (optional) Family name of the provider e.g. "Liddell"
}