Class ChCoreAddressAdapter

java.lang.Object
org.projecthusky.fhir.emed.ch.common.datatype.ChCoreAddressAdapter

public class ChCoreAddressAdapter extends Object
An adapter for the CHCoreAddress datatype.
Author:
Quentin Ligier
  • Field Details

  • Constructor Details

    • ChCoreAddressAdapter

      public ChCoreAddressAdapter()
      Creates a new adapter around an empty address.
    • ChCoreAddressAdapter

      public ChCoreAddressAdapter(org.hl7.fhir.r4.model.Address address)
      Constructor with an instance of address.
      Parameters:
      address - The instance of address to use. It will be mutated if using setter methods.
  • Method Details

    • getAddress

      public org.hl7.fhir.r4.model.Address getAddress()
      Returns the underlying address.
      Returns:
      the address.
    • getCityBfs

      public @Nullable String getCityBfs()
      Returns the city BFS or null if it is not present.
      Returns:
      the city BFS or null.
      See Also:
    • setCityBfs

      public ChCoreAddressAdapter setCityBfs(@Nullable String bfs)
      Sets the city BFS.
      Parameters:
      bfs - The city BFS.
      Returns:
      this.
      See Also:
    • getCountryCode

      public @Nullable String getCountryCode()
      Gets the country code (ISO Country Alpha-2 or ISO Country Alpha-3 code), or null.
      Returns:
      the country code or null.
    • setCountryCode

      public ChCoreAddressAdapter setCountryCode(@Nullable String countryCode)
      Sets the country code (ISO Country Alpha-2 or ISO Country Alpha-3 code).
      Parameters:
      countryCode - The country code (ISO Country Alpha-2 or ISO Country Alpha-3 code).
      Returns:
      this.
    • getLines

      Returns the list of address lines.
      Returns:
      a list of address line adapters.
    • addLine

      Adds an address line.
      Parameters:
      addressLineAdapter - The address line adapter.
      Returns:
      this.