001package ca.cdr.api.fhir.interceptor;
002
003/*-
004 * #%L
005 * Smile CDR - CDR
006 * %%
007 * Copyright (C) 2016 - 2024 Smile CDR, Inc.
008 * %%
009 * All rights reserved.
010 * #L%
011 */
012
013import ca.uhn.fhir.jpa.subscription.model.CanonicalSubscription;
014import ca.uhn.fhir.rest.api.RestOperationTypeEnum;
015import org.hl7.fhir.instance.model.api.IBaseResource;
016
017public interface ISubscriptionDeliverer {
018
019        /**
020         * Deliver a resource
021         *  @param theOperation    The operation triggering this delivery
022         * @param theSubscription The subscription
023         * @param theResource     The resource
024         */
025        void deliver(RestOperationTypeEnum theOperation, CanonicalSubscription theSubscription, IBaseResource theResource);
026}