Class CodeList
Provides a description of a set of categories that have a specific relationship, such as the categories Male and Female that can be grouped together as Gender. Categories (e.g., Male and Female) can belong to multiple code lists. The code list also provides the unique code values for each of the categories in the code list.
Inheritance
Inherited Members
Namespace: Algenta.Colectica.Model.Ddi
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
public class CodeList : DescribableBase, IVersionable, IIdentifiable, IHasCustomFields, IDescribable, IVisitable
Constructors
CodeList()
Initializes a new instance of the CodeList class.
Declaration
public CodeList()
Properties
CategoryScheme
Gets or sets the category scheme that contains the categories in this code list.
Declaration
public CategoryScheme CategoryScheme { get; set; }
Property Value
Type | Description |
---|---|
CategoryScheme |
Codes
Gets the codes.
Declaration
public ObservableCollection<Code> Codes { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<Code> |
ItemType
Gets the universally unique identifier representing the item's type.
Declaration
public override Guid ItemType { get; }
Property Value
Type | Description |
---|---|
Guid | The identifier representing the item's type. |
Overrides
Levels
Gets the levels of a hierarchical code list.
Declaration
public ObservableCollection<Level> Levels { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<Level> |
Methods
GetChildren()
Gets the identifiers of the item's children.
Declaration
public override ChildItemCollection GetChildren()
Returns
Type | Description |
---|---|
ChildItemCollection | The identifiers of the item's children. |
Overrides
GetFlattenedCodes()
Returns all codes in the hierarchy as a flat list.
Declaration
public Collection<Code> GetFlattenedCodes()
Returns
Type | Description |
---|---|
Collection<Code> | The flattened list of codes. |
RemoveChild(IdentifierTriple)
Removes the specified child.
Declaration
public override int RemoveChild(IdentifierTriple child)
Parameters
Type | Name | Description |
---|---|---|
IdentifierTriple | child | The child to be removed. |
Returns
Type | Description |
---|---|
System.Int32 | The number of children removed from the item. |
Overrides
ReplaceChild(IdentifierTriple, IVersionable)
Replaces the child with the specified identifier with the provided item.
Declaration
public override int ReplaceChild(IdentifierTriple toReplace, IVersionable child)
Parameters
Type | Name | Description |
---|---|---|
IdentifierTriple | toReplace | The identifier of the child to replace. |
IVersionable | child | The new child. |
Returns
Type | Description |
---|---|
System.Int32 | The number of children replaced. |