示例#1
0
        /// <summary> Checks if the calc factor variance is valid based on previous acceptances. </summary>
        /// <param name="context"></param>
        protected override void DoWork(CodeActivityContext context)
        {
            int    drgId = DrgId.Get(context);
            double dose  = Dose.Get(context);
            var    ext   = context.GetExtension <IOrderApprovalExtension>();

            Result.Set(context, ext.IsDoseAccepted(drgId, dose));
        }
示例#2
0
        /// <summary>
        /// Records the accepted variance passed in.
        /// </summary>
        /// <param name="context"></param>
        protected override void DoWork(CodeActivityContext context)
        {
            int    drgId       = DrgId.Get(context);
            double allowedDose = AllowedDose.Get(context);
            var    ext         = context.GetExtension <IOrderApprovalExtension>();

            ext.AcceptDose(drgId, allowedDose);
        }