Skip to content

Commit

Permalink
fix interface name
Browse files Browse the repository at this point in the history
  • Loading branch information
JPercival authored and taha.attari@smilecdr.com committed Oct 17, 2024
1 parent 517035f commit d8490ec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
import org.opencds.cqf.fhir.api.Repository;
import org.opencds.cqf.fhir.utility.BundleHelper;
import org.opencds.cqf.fhir.utility.PackageHelper;
import org.opencds.cqf.fhir.utility.adapter.IKnowledgeArtifactAdapter;
import org.opencds.cqf.fhir.utility.adapter.KnowledgeArtifactAdapter;

public class DeleteVisitor extends AbstractKnowledgeArtifactVisitor {

public static final String RETIRED_STATUS = "retired";

@Override
public IBase visit(IKnowledgeArtifactAdapter rootAdapter, Repository repository, IBaseParameters operationParams) {
public IBase visit(KnowledgeArtifactAdapter rootAdapter, Repository repository, IBaseParameters operationParams) {
if (!rootAdapter.getStatus().equals(RETIRED_STATUS)) {
throw new PreconditionFailedException("Cannot delete an artifact that is not in retired status");
}
Expand Down

0 comments on commit d8490ec

Please sign in to comment.