Class JDrugTestType
A data type for a test to determine a subject current or recent drug use.
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class JDrugTestType : JTestType, IEquatable<NcActivityType>, IEquatable<JTestType>, IEquatable<JDrugTestType>
Properties
CategoryCode
A kind of drug test. NIEM reference is j:DrugTestCategoryCode
Declaration
[DataMember(Name = "categoryCode")]
public List<MmuccDrugTestCategoryCodeType> CategoryCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<MmuccDrugTestCategoryCodeType> | A kind of drug test. NIEM reference is j:DrugTestCategoryCode |
Context
jDrugTestType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public JDrugTestType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<JDrugTestType.ContextEnum> | jDrugTestType JSON-LD context |
DrugSampleSizeQuantity
A count of the sample size for the drug test. NIEM reference is j:DrugTestDrugSampleSizeQuantity
Declaration
[DataMember(Name = "drugSampleSizeQuantity")]
public List<NcQuantityType> DrugSampleSizeQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcQuantityType> | A count of the sample size for the drug test. NIEM reference is j:DrugTestDrugSampleSizeQuantity |
DrugTestedCategory
A kind of drug specifically tested. NIEM reference is j:DrugTestDrugTestedCategoryText
Declaration
[DataMember(Name = "drugTestedCategory")]
public List<NcTextType> DrugTestedCategory { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A kind of drug specifically tested. NIEM reference is j:DrugTestDrugTestedCategoryText |
ResultCode
A result of a drug test. NIEM reference is j:DrugTestResultCode
Declaration
[DataMember(Name = "resultCode")]
public List<MmuccDrugTestResultCodeType> ResultCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<MmuccDrugTestResultCodeType> | A result of a drug test. NIEM reference is j:DrugTestResultCode |
Methods
Equals(JDrugTestType)
Returns true if JDrugTestType instances are equal
Declaration
public bool Equals(JDrugTestType other)
Parameters
Type | Name | Description |
---|---|---|
JDrugTestType | other | Instance of JDrugTestType 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(JDrugTestType, JDrugTestType)
Declaration
public static bool operator ==(JDrugTestType left, JDrugTestType right)
Parameters
Type | Name | Description |
---|---|---|
JDrugTestType | left | |
JDrugTestType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(JDrugTestType, JDrugTestType)
Declaration
public static bool operator !=(JDrugTestType left, JDrugTestType right)
Parameters
Type | Name | Description |
---|---|---|
JDrugTestType | left | |
JDrugTestType | right |
Returns
Type | Description |
---|---|
System.Boolean |