Files
2025-05-10 14:35:26 +07:00

27 lines
1.5 KiB
Go

package address
type FHIRAddress struct {
ResourceType string `bson:"resourceType"`
Use string `bson:"use,omitempty"` // home | work | temp | old | billing - purpose of this address
Type string `bson:"type,omitempty"` // postal | physical | both
Text string `bson:"text,omitempty"` // Text representation of the address
Line []string `bson:"line,omitempty"` // Street name, number, direction & P.O. Box etc.
City string `bson:"city,omitempty"` // Name of city, town etc.
District string `bson:"district,omitempty"` // District name (aka county)
State string `bson:"state,omitempty"` // Sub-unit of country (abbreviations ok)
PostalCode string `bson:"postalCode,omitempty"` // Postal code for area
Country string `bson:"country,omitempty"` // Country (e.g. can be ISO 3166 2 or 3 letter code)
Period Period `bson:"period,omitempty"` // Time period when address was/is in use
Extension []Extension `bson:"extension,omitempty"` // Additional content defined by implementations
}
type Period struct {
Start string `bson:"start,omitempty"` // Starting time with inclusive boundary
End string `bson:"end,omitempty"` // End time with inclusive boundary, if not ongoing
}
type Extension struct {
URL string `bson:"url"` // identifies the meaning of the extension
ValueString string `bson:"valueString,omitempty"` // Value of extension
}