Address constructor

const Address({
  1. @JsonKey(name: 'id') String? fhirId,
  2. @JsonKey(name: 'extension') List<FhirExtension>? extension_,
  3. AddressUse? use,
  4. @JsonKey(name: '_use') Element? useElement,
  5. AddressType? type,
  6. @JsonKey(name: '_type') Element? typeElement,
  7. String? text,
  8. @JsonKey(name: '_text') Element? textElement,
  9. List<String>? line,
  10. @JsonKey(name: '_line') List<Element>? lineElement,
  11. String? city,
  12. @JsonKey(name: '_city') Element? cityElement,
  13. String? district,
  14. @JsonKey(name: '_district') Element? districtElement,
  15. String? state,
  16. @JsonKey(name: '_state') Element? stateElement,
  17. String? postalCode,
  18. @JsonKey(name: '_postalCode') Element? postalCodeElement,
  19. String? country,
  20. @JsonKey(name: '_country') Element? countryElement,
  21. Period? period,
})

Address An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type 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.The ISO21090-codedString may be used to provide a coded representation of the contents of strings in an Address.

id Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

extension_ ("extension") May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

use The purpose of this address.

useElement ("_use") Extensions for use

type Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.

typeElement ("_type") Extensions for type

text Specifies the entire address as it should be displayed e.g. on a postal label. This may be provided instead of or as well as the specific parts.

textElement ("_text") Extensions for text

line This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.

lineElement ("_line") Extensions for line

city The name of the city, town, suburb, village or other community or delivery center.

cityElement ("_city") Extensions for city

district The name of the administrative area (county).

districtElement ("_district") Extensions for district

state Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (e.g. US 2 letter state codes).

stateElement ("_state") Extensions for state

postalCode A postal code designating a region defined by the postal service.

postalCodeElement ("_postalCode") Extensions for postalCode

country Country - a nation as commonly understood or generally accepted.

countryElement ("_country") Extensions for country

period Time period when address was/is in use.

Implementation

const factory Address({
  /// [id] Unique id for the element within a resource (for internal
  ///  references). This may be any string value that does not contain spaces.
  @JsonKey(name: 'id') String? fhirId,

  /// [extension_] ("extension") May be used to represent additional
  ///  information that is not part of the basic definition of the element.
  ///  To make the use of extensions safe and managable, there is a strict
  ///  set of governance applied to the definition and use of extensions.
  ///  Though any implementer can define an extension, there is a set of
  ///  requirements that SHALL be met as part of the definition of the
  ///  extension.
  @JsonKey(name: 'extension') List<FhirExtension>? extension_,

  /// [use] The purpose of this address.
  AddressUse? use,

  /// [useElement] ("_use") Extensions for use
  @JsonKey(name: '_use') Element? useElement,

  /// [type] Distinguishes between physical addresses (those you can visit)
  ///  and mailing addresses (e.g. PO Boxes and care-of addresses). Most
  ///  addresses are both.
  AddressType? type,

  /// [typeElement] ("_type") Extensions for type
  @JsonKey(name: '_type') Element? typeElement,

  /// [text] Specifies the entire address as it should be displayed e.g. on a
  ///  postal label. This may be provided instead of or as well as the
  ///  specific parts.
  String? text,

  /// [textElement] ("_text") Extensions for text
  @JsonKey(name: '_text') Element? textElement,

  /// [line] This component contains the house number, apartment number,
  ///  street name, street direction,  P.O. Box number, delivery hints, and
  ///  similar address information.
  List<String>? line,

  /// [lineElement] ("_line") Extensions for line
  @JsonKey(name: '_line') List<Element>? lineElement,

  /// [city] The name of the city, town, suburb, village or other community
  ///  or delivery center.
  String? city,

  /// [cityElement] ("_city") Extensions for city
  @JsonKey(name: '_city') Element? cityElement,

  /// [district] The name of the administrative area (county).
  String? district,

  /// [districtElement] ("_district") Extensions for district
  @JsonKey(name: '_district') Element? districtElement,

  /// [state] Sub-unit of a country with limited sovereignty in a federally
  ///  organized country. A code may be used if codes are in common use (e.g.
  ///  US 2 letter state codes).
  String? state,

  /// [stateElement] ("_state") Extensions for state
  @JsonKey(name: '_state') Element? stateElement,

  /// [postalCode] A postal code designating a region defined by the postal
  ///  service.
  String? postalCode,

  /// [postalCodeElement] ("_postalCode") Extensions for postalCode
  @JsonKey(name: '_postalCode') Element? postalCodeElement,

  /// [country] Country - a nation as commonly understood or generally
  ///  accepted.
  String? country,

  /// [countryElement] ("_country") Extensions for country
  @JsonKey(name: '_country') Element? countryElement,

  /// [period] Time period when address was/is in use.
  Period? period,
}) = _Address;