Address class

An address expressed using postal conventions (as opposed to GPS or other location definition formats). This datatype may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world.

https://hl7.org/fhir/datatypes.html#Address

Constructors

Address({String? use, String? type, String? text, FixedList<String>? line, String? city, String? district, String? state, String? postalCode, String? country, Period? period})
Creates an instance of Address.
Address.fromJson(JsonObject _json)
Creates an instance of Address from a JSON object.

Properties

city String?
Name of city, town etc.
no setter
country String?
Country (e.g. may be ISO 3166 2 or 3 letter code)
no setter
district String?
District name (aka county)
no setter
hashCode int
The hash code for this object.
no setteroverride
json → JsonObject
Converts the Address instance to a JSON object.
no setter
line FixedList<String>?
Street name, number, direction & P.O. Box etc. This repeating element order: The order in which lines should appear in an address label
no setter
period Period?
Time period when address was/is in use
no setter
postalCode String?
Postal code for area
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
Sub-unit of country (abbreviations ok)
no setter
text String?
Text representation of the address
no setter
type String?
postal | physical | both
no setter
use String?
home | work | temp | old | billing - purpose of this address
no setter

Methods

copyWith({String? use, String? type, String? text, FixedList<String>? line, String? city, String? district, String? state, String? postalCode, String? country, Period? period}) Address
Creates a copy of the Address instance and allows for non-destructive mutation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

cityField → const FieldDefinition<String>
Field definition for city
countryField → const FieldDefinition<String>
Field definition for country
districtField → const FieldDefinition<String>
Field definition for district
fieldDefinitions → const List<FieldDefinition<Object>>
All field definitions for Address
lineField → const FieldDefinition<FixedList<String>>
Field definition for line
periodField → const FieldDefinition<Period>
Field definition for period
postalCodeField → const FieldDefinition<String>
Field definition for postalCode
stateField → const FieldDefinition<String>
Field definition for state
textField → const FieldDefinition<String>
Field definition for text
typeField → const FieldDefinition<String>
Field definition for type
useField → const FieldDefinition<String>
Field definition for use