Exemplo n.º 1
0
        public void HashesRespectFolderExtensions()
        {
            Assert.Equal((ulong)0x085B31F63008E2B6, BSAUtils.GetBSAHash("005930b6.dds"));


            // Old code has a bug where we were stripping the `.esp` from the folder which we shoudn't do when creating folder paths
            Assert.Equal((ulong)0x38C7A858743A7370, BSAUtils.GetFolderBSAHash((RelativePath)@"textures\actors\character\facegendata\facetint\darkend.esp"));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Get the current BSA for the patient passed in.
        /// </summary>
        /// <param name="context"></param>
        protected override void DoWork(CodeActivityContext context)
        {
            int  obxId         = 0;
            int  patId1        = PatId1.Get(context);
            bool includeOrders = IncludeOrders != null?IncludeOrders.Get(context) : false;

            DoseCalcSourceTypeEnum bsaSourceType;
            int bsaSource;

            BSA.Set(context,
                    includeOrders
                        ? BSAUtils.FindExistingBSAForDoseCalc(patId1, MedDefs.OrderingDoseCalcFormulas.BsaFormulasAndManual, out bsaSourceType, out bsaSource)
                        : BSAUtils.GetMostRecentBSA(patId1, MedDefs.OrderingDoseCalcFormulas.BsaFormulasAndManual, ref obxId));
        }