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); }
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); } }