Beispiel #1
0
        public void GetDoseUnitTest1()
        {
            var query    = MayoQuery.Read("D90%[cGy]");
            var expected = DoseValue.DoseUnit.cGy;
            var actual   = query.GetDoseUnit();

            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
        public void GetDoseUnitTest3()
        {
            var query    = MayoQuery.Read("V90Gy[%]");
            var expected = DoseValue.DoseUnit.Gy;
            var actual   = query.GetDoseUnit();

            Assert.AreEqual(expected, actual);
        }
Beispiel #3
0
        public void GetDosePresentationTest5()
        {
            var query    = MayoQuery.Read("Mean[cGy]");
            var expected = DoseValuePresentation.Absolute;
            var actual   = query.GetDosePresentation();

            Assert.AreEqual(expected, actual);
        }
Beispiel #4
0
        public void GetDosePresentationTest4()
        {
            var query    = MayoQuery.Read("V90%[cc]");
            var expected = DoseValuePresentation.Relative;
            var actual   = query.GetDosePresentation();

            Assert.AreEqual(expected, actual);
        }
Beispiel #5
0
        public void GetVolumePresentationTest3()
        {
            var query    = MayoQuery.Read("V90%[cc]");
            var expected = VolumePresentation.AbsoluteCm3;
            var actual   = query.GetVolumePresentation();

            Assert.AreEqual(expected, actual);
        }
Beispiel #6
0
        public void GetVolumePresentationTest2()
        {
            var query    = MayoQuery.Read("D90%[cGy]");
            var expected = VolumePresentation.Relative;
            var actual   = query.GetVolumePresentation();

            Assert.AreEqual(expected, actual);
        }
Beispiel #7
0
        public void GetDoseUnitTest4()
        {
            var query    = MayoQuery.Read("Max[%]");
            var expected = DoseValue.DoseUnit.Percent;
            var actual   = query.GetDoseUnit();

            Assert.AreEqual(expected, actual);
        }
        public static double ExecuteQuery(this PlanningItem pi, string mayoFormatQuery, params string[] ss)
        {
            var query = MayoQuery.Read(mayoFormatQuery);

            return(ExecuteQuery(pi, query, ss));
        }
Beispiel #9
0
        public static double ExecuteQuery(this PlanningItem pi, Structure s, string mayoFormatQuery)
        {
            var query = MayoQuery.Read(mayoFormatQuery);

            return(query.RunQuery(pi, new[] { s }));
        }
Beispiel #10
0
        public static double ExecuteQuery(this PlanningItem pi, IEnumerable <Structure> ss, string mayoFormatQuery)
        {
            var query = MayoQuery.Read(mayoFormatQuery);

            return(query.RunQuery(pi, ss));
        }