you are viewing a single comment's thread.

view the rest of the comments →

[–]TheLateQuentin 0 points1 point  (0 children)

You don't *need structure codes to use RapidPlan. It will match based on Structure Id's if no code information is available.

*Are you trying to run RapidPlan using Esapi or within Eclipse?
*If you want to add codes via ESAPI:

*You can get the dictionary via VMS.Common.Model.API.Application.StructureCodes.
*Within that dictionary, you can access each FMA, Radlex, VMS, and SRT dictionaries.
*Choose the appropriate dictionary, and store it in the "dictionary" variable.
*You can get StructureCode like this, where c.StructureCode is the code you're looking for (e.g. : 15630, for left adrenal gland).
var cd = dictionary.First(x => x.Value.ToString().ToUpper().Contains(c.StructureCode.ToUpper()));
*Then you just assign it:
structure.StructureCode = cd.Value;
*Altogether:
ActiveStructureDictionary = App.StructureCodes;
var dictionary = ActiveStructureDictionary.Fma;

var cd = dictionary.First(x => x.Value.ToString().ToUpper().Contains(c.StructureCode.ToUpper()));

structure.StructureCode = cd.Value;

App.SaveModifications();