Class NcSubstanceType
A data type for the matter or substance of which something consists.
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class NcSubstanceType : NcItemType, IEquatable<NcItemType>, IEquatable<NcSubstanceType>
Properties
Category
A kind of substance. NIEM reference is nc:SubstanceCategoryText
Declaration
[DataMember(Name = "category")]
public List<NcTextType> Category { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A kind of substance. NIEM reference is nc:SubstanceCategoryText |
CompositionDescription
A description of the ingredients or makeup of a substance. NIEM reference is nc:SubstanceCompositionDescriptionText
Declaration
[DataMember(Name = "compositionDescription")]
public List<NcTextType> CompositionDescription { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A description of the ingredients or makeup of a substance. NIEM reference is nc:SubstanceCompositionDescriptionText |
ContainerDescription
A description of a container used to hold a substance. NIEM reference is nc:SubstanceContainerDescriptionText
Declaration
[DataMember(Name = "containerDescription")]
public List<NcTextType> ContainerDescription { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A description of a container used to hold a substance. NIEM reference is nc:SubstanceContainerDescriptionText |
Context
ncSubstanceType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public NcSubstanceType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<NcSubstanceType.ContextEnum> | ncSubstanceType JSON-LD context |
DrugCategoryCode
A kind of drug. NIEM reference is j:DrugCategoryCode
Declaration
[DataMember(Name = "drugCategoryCode")]
public List<UcrDrugCategoryCodeType> DrugCategoryCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<UcrDrugCategoryCodeType> | A kind of drug. NIEM reference is j:DrugCategoryCode |
DrugCategoryDeaCode
A drug. NIEM reference is j:DrugCategoryDEACode
Declaration
[DataMember(Name = "drugCategoryDeaCode")]
public List<DeaDrugCategoryCodeType> DrugCategoryDeaCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<DeaDrugCategoryCodeType> | A drug. NIEM reference is j:DrugCategoryDEACode |
DrugCode
A drug. NIEM reference is nc:DrugCode
Declaration
[DataMember(Name = "drugCode")]
public List<DeaDrugCodeType> DrugCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<DeaDrugCodeType> | A drug. NIEM reference is nc:DrugCode |
Form
A physical state or form in which a substance appears. NIEM reference is nc:SubstanceFormText
Declaration
[DataMember(Name = "form")]
public List<NcTextType> Form { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A physical state or form in which a substance appears. NIEM reference is nc:SubstanceFormText |
FoundDescription
A description of where a substance was found. NIEM reference is nc:SubstanceFoundDescriptionText
Declaration
[DataMember(Name = "foundDescription")]
public List<NcTextType> FoundDescription { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A description of where a substance was found. NIEM reference is nc:SubstanceFoundDescriptionText |
HazmatDeclarationUnHazmatCode
A United Nations/North American (UN/NA) Hazardous Materials Code pertaining to a hazardous material. NIEM reference is m:HazmatDeclarationUNHazmatCode
Declaration
[DataMember(Name = "hazmatDeclarationUnHazmatCode")]
public List<HazmatHazmatUNCodeType> HazmatDeclarationUnHazmatCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<HazmatHazmatUNCodeType> | A United Nations/North American (UN/NA) Hazardous Materials Code pertaining to a hazardous material. NIEM reference is m:HazmatDeclarationUNHazmatCode |
MetalCode
A code that identifies a metal. NIEM reference is j:MetalCode
Declaration
[DataMember(Name = "metalCode")]
public List<NdexMetalCodeType> MetalCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NdexMetalCodeType> | A code that identifies a metal. NIEM reference is j:MetalCode |
PreciousMetalCode
A code that identifies a rare metallic chemical element of high economic value, typically regarded as an investment and industrial commodity. . NIEM reference is j:PreciousMetalCode
Declaration
[DataMember(Name = "preciousMetalCode")]
public List<NdexPreciousMetalCodeType> PreciousMetalCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NdexPreciousMetalCodeType> | A code that identifies a rare metallic chemical element of high economic value, typically regarded as an investment and industrial commodity. . NIEM reference is j:PreciousMetalCode |
QuantityMeasure
A quantity of a substance being described. NIEM reference is nc:SubstanceQuantityMeasure
Declaration
[DataMember(Name = "quantityMeasure")]
public List<NcSubstanceMeasureType> QuantityMeasure { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcSubstanceMeasureType> | A quantity of a substance being described. NIEM reference is nc:SubstanceQuantityMeasure |
Methods
Equals(NcSubstanceType)
Returns true if NcSubstanceType instances are equal
Declaration
public bool Equals(NcSubstanceType other)
Parameters
Type | Name | Description |
---|---|---|
NcSubstanceType | other | Instance of NcSubstanceType to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Operators
Equality(NcSubstanceType, NcSubstanceType)
Declaration
public static bool operator ==(NcSubstanceType left, NcSubstanceType right)
Parameters
Type | Name | Description |
---|---|---|
NcSubstanceType | left | |
NcSubstanceType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(NcSubstanceType, NcSubstanceType)
Declaration
public static bool operator !=(NcSubstanceType left, NcSubstanceType right)
Parameters
Type | Name | Description |
---|---|---|
NcSubstanceType | left | |
NcSubstanceType | right |
Returns
Type | Description |
---|---|
System.Boolean |