Address constructor

const Address({
  1. @JsonKey(name: 'id') String? fhirId,
  2. @JsonKey(name: 'extension') List<FhirExtension>? extension_,
  3. @JsonKey(unknownEnumValue: AddressUse.unknown) AddressUse? use,
  4. @JsonKey(name: '_use') Element? useElement,
  5. @JsonKey(unknownEnumValue: AddressType.unknown) 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.

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

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 manageable, 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 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 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 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 Extensions for line

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

cityElement Extensions for city

district The name of the administrative area (county).

districtElement 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 Extensions for state

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

postalCodeElement Extensions for postalCode

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

countryElement 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] 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 manageable, 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.
  @JsonKey(unknownEnumValue: AddressUse.unknown) AddressUse? use,

  /// [useElement] 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.
  @JsonKey(unknownEnumValue: AddressType.unknown) AddressType? type,

  /// [typeElement] 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] 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] 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] Extensions for city
  @JsonKey(name: '_city') Element? cityElement,

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

  /// [districtElement] 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] Extensions for state
  @JsonKey(name: '_state') Element? stateElement,

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

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

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

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

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