class R4GeoDhisToFhirTransformerUtils extends AbstractGeoDhisToFhirTransformerUtils {

    @Override
    public void updateAddressLocation( @Nonnull IElement element, @Nullable Location location ) throws TransformerException
    {
        final Element e = (Element) element;
        e.getExtension().removeIf( i -> GEO_LOCATION_URI.equals( i.getUrl() ) );
        if ( location != null )
        {
            e.addExtension().setUrl( GEO_LOCATION_URI )
                .addExtension( new Extension().setUrl( LATITUDE_URL )
                    .setValue( new DecimalType( location.getLatitude() ) ) )
                .addExtension( new Extension().setUrl( LONGITUDE_URL )
                    .setValue( new DecimalType( location.getLongitude() ) ) );
        }
    }

    public  R4GeoDhisToFhirTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext, @Nonnull ValueConverter valueConverter );

}