Modifying a Context Group Example for C#
private void ModifyContextGroup(ref LTDICLib.LEADDicomDS
objDS)
{
objDS.ResetContextGroup();
objDS.LoadContextGroup("");
// Look for a Context Group
if (! (objDS.FindContextGroup("CID
6019")))
return;
// Look for a Coded Concept in the current Context Group
if (! (objDS.FindCodedConcept("SRT",
"F-01781")))
return;
// Set the Code Meaning of the current Coded Concept (French translation)
objDS.SetCodedConceptCodeMeaning("Situé
à 1 heure");
// Refer to Enumerating the Coded Concepts of a Context Group Example
// for C# for the function DisplayCodedConcept
DisplayCodedConcept(objDS, false);
// Delete the current Coded Concept
objDS.DeleteCodedConcept();
// Add a (testing) Coded Concept to the current Context Group
objDS.InsertCodedConcept("CSD",
"", "CV", "CM", false, "", 0);
DisplayCodedConcept(objDS, false);
// Restore the current Context Group (discard all the changes
// made to the Group)
objDS.DefaultContextGroup(false);
// Refer to Enumerating the Coded Concepts of a Context Group Example
// for C# for the procedure EnumCodedConcepts
EnumCodedConcepts(ref objDS);
// Delete the current Context Group
objDS.DeleteContextGroup();
}