コード例 #1
0
        public ImportValueSet SearchRoseTree(string oid)
        {
            string      roseTreeLocation = AppSettings.HL7RoseTreeLocation;
            XmlDocument roseTreeDoc      = new XmlDocument();

            roseTreeDoc.Load(roseTreeLocation);

            HL7RIMValueSetImportProcessor <ImportValueSet, ImportValueSetMember> processor =
                new HL7RIMValueSetImportProcessor <ImportValueSet, ImportValueSetMember>(roseTreeDoc);

            ImportValueSet valueSet = processor.FindValueSet(this.tdb, oid);

            return(valueSet);
        }
コード例 #2
0
        protected override void ProcessRecord()
        {
            HL7RIMValueSetImportProcessor <ImportValueSet, ImportValueSetMember> processor = new HL7RIMValueSetImportProcessor <ImportValueSet, ImportValueSetMember>();

            if (!string.IsNullOrEmpty(this.Oid))
            {
                this.WriteVerbose("Finding value set by oid");
                ImportValueSet valueSet = processor.FindValueSet(this.tdb, this.Oid);

                this.WriteVerbose("Found value set");
                this.WriteObject(valueSet);
            }
            else
            {
                this.WriteVerbose("Finding all value sets");
                List <ImportValueSet> valueSets = processor.FindValueSets(this.tdb);

                this.WriteVerbose("Done");
                this.WriteObject(valueSets);
            }
        }