Class AddressBuilder.Impl

    • Constructor Detail

      • Impl

        public Impl()
        Required fields for Address
    • Method Detail

      • withId

        public AddressBuilder.Impl withId​(@NonNull
                                          @NonNull java.lang.String id)
        Parameters:
        id - - Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
      • withUse

        public AddressBuilder.Impl withUse​(@NonNull
                                           @NonNull com.babylonhealth.lit.core.ADDRESS_USE use)
        Parameters:
        use - - The purpose of this address.
      • withType

        public AddressBuilder.Impl withType​(@NonNull
                                            @NonNull com.babylonhealth.lit.core.ADDRESS_TYPE _type)
        Parameters:
        _type - - Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.
      • withText

        public AddressBuilder.Impl withText​(@NonNull
                                            @NonNull java.lang.String text)
        Parameters:
        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.
      • withLine

        public AddressBuilder.Impl withLine​(@NonNull
                                            @NonNull java.lang.String... line)
        Parameters:
        line - - This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.
      • withLine

        public AddressBuilder.Impl withLine​(@NonNull
                                            @NonNull java.util.Collection<java.lang.String> line)
        Parameters:
        line - - This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.
      • withCity

        public AddressBuilder.Impl withCity​(@NonNull
                                            @NonNull java.lang.String city)
        Parameters:
        city - - The name of the city, town, suburb, village or other community or delivery center.
      • withState

        public AddressBuilder.Impl withState​(@NonNull
                                             @NonNull java.lang.String state)
        Parameters:
        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).
      • withPeriod

        public AddressBuilder.Impl withPeriod​(@NonNull
                                              @NonNull com.babylonhealth.lit.core.model.Period period)
        Parameters:
        period - - Time period when address was/is in use.
      • withCountry

        public AddressBuilder.Impl withCountry​(@NonNull
                                               @NonNull java.lang.String country)
        Parameters:
        country - - Country - a nation as commonly understood or generally accepted.
      • withDistrict

        public AddressBuilder.Impl withDistrict​(@NonNull
                                                @NonNull java.lang.String district)
        Parameters:
        district - - The name of the administrative area (county).
      • withExtension

        public AddressBuilder.Impl withExtension​(@NonNull
                                                 @NonNull com.babylonhealth.lit.core.model.Extension... extension)
        Parameters:
        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.
      • withExtension

        public AddressBuilder.Impl withExtension​(@NonNull
                                                 @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)
        Parameters:
        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.
      • withPostalCode

        public AddressBuilder.Impl withPostalCode​(@NonNull
                                                  @NonNull java.lang.String postalCode)
        Parameters:
        postalCode - - A postal code designating a region defined by the postal service.