001package org.hl7.fhir.convertors.advisors.impl;
002
003import org.hl7.fhir.convertors.advisors.interfaces.BaseAdvisor30;
004
005import javax.annotation.Nonnull;
006import java.util.ArrayList;
007import java.util.Collections;
008import java.util.List;
009
010public class BaseAdvisor_10_30 extends BaseAdvisor30<org.hl7.fhir.dstu2.model.Extension> {
011
012  private final List<String> ignoredUrls = new ArrayList<>(Collections.singletonList("http://hl7.org/fhir/3.0/StructureDefinition/extension-CapabilityStatement.acceptUnknown"));
013
014  public BaseAdvisor_10_30() {
015  }
016
017  public BaseAdvisor_10_30(Boolean failFast) {
018    this.failFast = failFast;
019  }
020
021  public boolean ignoreExtension(@Nonnull String path,
022                                 @Nonnull String url) {
023    return this.ignoredUrls.contains(url);
024  }
025}