CREATE PROCEDURE [dbo].[CalulatePrescriptionTransaction]
    @PyramidPrescriptionTempId INT,
    @FormulaDefinition NVARCHAR(MAX),
    @InsuranceCode VARCHAR(3)
AS
BEGIN
 
    EXEC dbo.EPMCalculateSupplementaryInsurance @PrescriptionType = 4,
                                                @InsuranceCode = @InsuranceCode,
                                                @FormulaDefinition = @FormulaDefinition,
                                                @PrescriptionId = NULL,
                                                @PyramidPrescriptionTempId = @PyramidPrescriptionTempId;
END;