Class NcDrugType
A data type for a legal or illegal substance that can be used as a medicine or a narcotic.
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class NcDrugType : NcSubstanceType, IEquatable<NcItemType>, IEquatable<NcSubstanceType>, IEquatable<NcDrugType>
Properties
Augmentation
Additional information about a drug. NIEM reference is j:DrugAugmentation
Declaration
[DataMember(Name = "augmentation")]
public List<JDrugAugmentationType> Augmentation { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<JDrugAugmentationType> | Additional information about a drug. NIEM reference is j:DrugAugmentation |
Context
ncDrugType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public NcDrugType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<NcDrugType.ContextEnum> | ncDrugType JSON-LD context |
CoverageExceptionReason
A reason why a drug may be excluded from coverage by certain third-party programs. NIEM reference is nc:DrugCoverageExceptionReasonText
Declaration
[DataMember(Name = "coverageExceptionReason")]
public List<NcTextType> CoverageExceptionReason { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A reason why a drug may be excluded from coverage by certain third-party programs. NIEM reference is nc:DrugCoverageExceptionReasonText |
DaysSupplyQuantity
A number of days a quantity of the drug will cover if used as directed or intended. NIEM reference is nc:DrugDaysSupplyQuantity
Declaration
[DataMember(Name = "daysSupplyQuantity")]
public List<NcQuantityType> DaysSupplyQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcQuantityType> | A number of days a quantity of the drug will cover if used as directed or intended. NIEM reference is nc:DrugDaysSupplyQuantity |
DeaClassSchedule
A class to which the Drug Enforcement Agency (DEA) has assigned the product under the Controlled Substances Act of 1970. NIEM reference is nc:DEAClassScheduleText
Declaration
[DataMember(Name = "deaClassSchedule")]
public List<NcTextType> DeaClassSchedule { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A class to which the Drug Enforcement Agency (DEA) has assigned the product under the Controlled Substances Act of 1970. NIEM reference is nc:DEAClassScheduleText |
DeaClassScheduleCode
A class to which the Drug Enforcement Agency (DEA) has assigned the product under the Controlled Substances Act of 1970. NIEM reference is nc:DEAClassScheduleCode
Declaration
[DataMember(Name = "deaClassScheduleCode")]
public List<DeaDEAClassScheduleCodeCodeType> DeaClassScheduleCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<DeaDEAClassScheduleCodeCodeType> | A class to which the Drug Enforcement Agency (DEA) has assigned the product under the Controlled Substances Act of 1970. NIEM reference is nc:DEAClassScheduleCode |
Strength
A level of potency of a drug. NIEM reference is nc:DrugStrengthText
Declaration
[DataMember(Name = "strength")]
public List<NcTextType> Strength { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A level of potency of a drug. NIEM reference is nc:DrugStrengthText |
Methods
Equals(NcDrugType)
Returns true if NcDrugType instances are equal
Declaration
public bool Equals(NcDrugType other)
Parameters
Type | Name | Description |
---|---|---|
NcDrugType | other | Instance of NcDrugType 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(NcDrugType, NcDrugType)
Declaration
public static bool operator ==(NcDrugType left, NcDrugType right)
Parameters
Type | Name | Description |
---|---|---|
NcDrugType | left | |
NcDrugType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(NcDrugType, NcDrugType)
Declaration
public static bool operator !=(NcDrugType left, NcDrugType right)
Parameters
Type | Name | Description |
---|---|---|
NcDrugType | left | |
NcDrugType | right |
Returns
Type | Description |
---|---|
System.Boolean |