コード例 #1
0
 public void AddCommandArguments(DsioEducationItem item)
 {
     this.CommandArgs = new object[]
     {
         item.Ien, item.Description, item.Category, item.ItemType, item.Url, item.Code, item.CodeSystem
     };
 }
コード例 #2
0
        public DsioPatientEducationItem(DsioEducationItem baseItem)
        {
            PropertyInfo[] props = typeof(DsioEducationItem).GetProperties();

            foreach (PropertyInfo pi in props)
            {
                object orig = pi.GetValue(baseItem);
                if (pi.CanWrite)
                {
                    pi.SetValue(this, orig);
                }
            }
        }
コード例 #3
0
        protected override void ProcessLine(string line)
        {
            DsioEducationItem item = new DsioEducationItem();

            // 1^TESTING DESCRIPTION^INITIAL MATERIALS^PRINTED MATERIAL^^^NONE^
            // 2^SECOND DESCRIPTION^INITIAL LINKS^LINK TO MATERIAL^HTTP://WWW.MEDLINEPLUS.COM/MORE/ID/HELLO^^NONE^
            // 143^-----Purple Book^-----Initial Materials^^^LOINC^

            item.Ien         = Util.Piece(line, Caret, 1);
            item.Description = Util.Piece(line, Caret, 2);
            item.Category    = Util.Piece(line, Caret, 3);
            item.ItemType    = Util.Piece(line, Caret, 4);
            item.Url         = Util.Piece(line, Caret, 5);
            item.Code        = Util.Piece(line, Caret, 6);
            item.CodeSystem  = Util.Piece(line, Caret, 7);

            if (this.EducationItems == null)
            {
                this.EducationItems = new List <DsioEducationItem>();
            }

            this.EducationItems.Add(item);
        }