@Test public void primaryEmpty() { final List<Address> addresses = new ArrayList<>(); Assert.assertNotNull( utils.getPrimaryAddress( addresses ) ); }
@Nullable @Override public ICompositeType getPrimaryAddress( @Nonnull List<? extends ICompositeType> addresses ) { return getOptionalPrimaryAddress( addresses ).orElse( new Address() ); }
R4AddressFhirToDhisTransformerUtils extends AbstractAddressFhirToDhisTransformerUtils { @Nullable @Override public ICompositeType getPrimaryAddress( @Nonnull List<? extends ICompositeType> addresses ) { return getOptionalPrimaryAddress( addresses ).orElse( new Address() ); } }
R4AddressFhirToDhisTransformerUtils extends AbstractAddressFhirToDhisTransformerUtils { @Nullable @Override public ICompositeType getPrimaryAddress( @Nonnull List<? extends ICompositeType> addresses ) { return getOptionalPrimaryAddress( addresses ).orElse( new Address() ); } R4AddressFhirToDhisTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext, @Nonnull R4DateTimeFhirToDhisTransformerUtils dateTimeTransformerUtils ); }
R4AddressFhirToDhisTransformerUtils extends AbstractAddressFhirToDhisTransformerUtils { @Nullable @Override public ICompositeType getPrimaryAddress( @Nonnull List<? extends ICompositeType> addresses ) { return getOptionalPrimaryAddress( addresses ).orElse( new Address() ); } R4AddressFhirToDhisTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext, @Nonnull R4DateTimeFhirToDhisTransformerUtils dateTimeTransformerUtils ); @Nonnull @Override Set<FhirVersion> getFhirVersions(); @Nullable @Override ICompositeType getPrimaryAddress( @Nonnull List<? extends ICompositeType> addresses ); @Nullable @Override String getSingleLine( @Nullable ICompositeType address, @Nonnull String delimiter ); @Nullable @Override String getConstructedText( @Nullable ICompositeType address, @Nonnull String delimiter ); @Nullable @Override String getText( @Nullable ICompositeType address ); }
R4AddressFhirToDhisTransformerUtils extends AbstractAddressFhirToDhisTransformerUtils { @Nullable @Override public ICompositeType getPrimaryAddress( @Nonnull List<? extends ICompositeType> addresses ) { return getOptionalPrimaryAddress( addresses ).orElse( new Address() ); } R4AddressFhirToDhisTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext, @Nonnull R4DateTimeFhirToDhisTransformerUtils dateTimeTransformerUtils ); @Nonnull @Override Set<FhirVersion> getFhirVersions(); @Nullable @Override ICompositeType getPrimaryAddress( @Nonnull List<? extends ICompositeType> addresses ); @Nullable @Override String getSingleLine( @Nullable ICompositeType address, @Nonnull String delimiter ); @Nullable @Override String getConstructedText( @Nullable ICompositeType address, @Nonnull String delimiter ); @Nullable @Override String getText( @Nullable ICompositeType address );  }