001/*-
002 * #%L
003 * Smile CDR - CDR
004 * %%
005 * Copyright (C) 2016 - 2024 Smile CDR, Inc.
006 * %%
007 * All rights reserved.
008 * #L%
009 */
010package ca.cdr.api.camel;
011
012import ca.cdr.api.model.json.TransactionLogStepJson;
013import ca.cdr.api.pub.hl7v2.model.Hl7v2ToFhirConversionResultJson;
014import ca.uhn.hl7v2.HL7Exception;
015import org.apache.camel.Exchange;
016
017import java.util.List;
018
019/**
020 * Contract for HL7V2 Camel procedures which provide their own constructed list of transaction log steps
021 */
022@FunctionalInterface
023public interface IHL7V2TxLogStepsProvider {
024
025        List<TransactionLogStepJson> provideTxLogSteps(
026                        Exchange theExchange, Hl7v2ToFhirConversionResultJson theConversionResult) throws HL7Exception;
027}