Class JIntoxicationType
A data type for a physiological state of a person due to the presence of drugs, alcohol, or other toxic substance.
Inheritance
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class JIntoxicationType : IEquatable<JIntoxicationType>
Properties
Context
jIntoxicationType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public JIntoxicationType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<JIntoxicationType.ContextEnum> | jIntoxicationType JSON-LD context |
IntoxicantCategory
A kind of substance by which a person is intoxicated. NIEM reference is j:IntoxicationIntoxicantCategoryText
Declaration
[DataMember(Name = "intoxicantCategory")]
public List<NcTextType> IntoxicantCategory { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A kind of substance by which a person is intoxicated. NIEM reference is j:IntoxicationIntoxicantCategoryText |
IntoxicantCategoryCode
A kind of substance by which a person is intoxicated. NIEM reference is j:IntoxicationIntoxicantCategoryCode
Declaration
[DataMember(Name = "intoxicantCategoryCode")]
public List<UcrDrugCategoryCodeType> IntoxicantCategoryCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<UcrDrugCategoryCodeType> | A kind of substance by which a person is intoxicated. NIEM reference is j:IntoxicationIntoxicantCategoryCode |
IsAlcoholInvolved
True if alcohol contributed to the intoxication of a person; false otherwise. NIEM reference is j:IntoxicationAlcoholInvolvedIndicator
Declaration
[DataMember(Name = "isAlcoholInvolved")]
public List<NiemXsboolean> IsAlcoholInvolved { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsboolean> | True if alcohol contributed to the intoxication of a person; false otherwise. NIEM reference is j:IntoxicationAlcoholInvolvedIndicator |
IsDrugInvolved
True if a drug contributed to the intoxication of a person; false otherwise. NIEM reference is j:IntoxicationDrugInvolvedIndicator
Declaration
[DataMember(Name = "isDrugInvolved")]
public List<NiemXsboolean> IsDrugInvolved { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsboolean> | True if a drug contributed to the intoxication of a person; false otherwise. NIEM reference is j:IntoxicationDrugInvolvedIndicator |
IsIntoxicantIllegal
True if a substance that contributed to the intoxication of a person was illegal at the time and location of the event; false if it was legal. NIEM reference is j:IntoxicationIntoxicantIllegalIndicator
Declaration
[DataMember(Name = "isIntoxicantIllegal")]
public List<NiemXsboolean> IsIntoxicantIllegal { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsboolean> | True if a substance that contributed to the intoxication of a person was illegal at the time and location of the event; false if it was legal. NIEM reference is j:IntoxicationIntoxicantIllegalIndicator |
IsOverLimit
True if the quantity of an intoxicating substance in the system of a person is over the legal limit; false otherwise. NIEM reference is j:IntoxicationOverLimitIndicator
Declaration
[DataMember(Name = "isOverLimit")]
public List<NiemXsboolean> IsOverLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsboolean> | True if the quantity of an intoxicating substance in the system of a person is over the legal limit; false otherwise. NIEM reference is j:IntoxicationOverLimitIndicator |
Level
A degree to which a person is intoxicated or under the influence of a substance. NIEM reference is j:IntoxicationLevelText
Declaration
[DataMember(Name = "level")]
public List<NcTextType> Level { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A degree to which a person is intoxicated or under the influence of a substance. NIEM reference is j:IntoxicationLevelText |
RelatedActivity
An activity in which the intoxication of a person was suspected or measured. NIEM reference is j:IntoxicationRelatedActivity
Declaration
[DataMember(Name = "relatedActivity")]
public List<NcActivityType> RelatedActivity { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcActivityType> | An activity in which the intoxication of a person was suspected or measured. NIEM reference is j:IntoxicationRelatedActivity |
TestCategory
A kind of test performed to determine the nature and/or level of intoxication of a person. NIEM reference is j:IntoxicationTestCategoryText
Declaration
[DataMember(Name = "testCategory")]
public List<NcTextType> TestCategory { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A kind of test performed to determine the nature and/or level of intoxication of a person. NIEM reference is j:IntoxicationTestCategoryText |
TestDate
A date a test of intoxication was performed. NIEM reference is j:IntoxicationTestDate
Declaration
[DataMember(Name = "testDate")]
public List<NcDateType> TestDate { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcDateType> | A date a test of intoxication was performed. NIEM reference is j:IntoxicationTestDate |
TestDescription
A description of a test performed to determine the nature and/or level of intoxication of a person. NIEM reference is j:IntoxicationTestDescriptionText
Declaration
[DataMember(Name = "testDescription")]
public List<NcTextType> TestDescription { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A description of a test performed to determine the nature and/or level of intoxication of a person. NIEM reference is j:IntoxicationTestDescriptionText |
Tester
An entity which administers a test to determine the intoxication of a person. NIEM reference is j:IntoxicationTester
Declaration
[DataMember(Name = "tester")]
public List<NcEntityType> Tester { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcEntityType> | An entity which administers a test to determine the intoxication of a person. NIEM reference is j:IntoxicationTester |
Methods
Equals(JIntoxicationType)
Returns true if JIntoxicationType instances are equal
Declaration
public bool Equals(JIntoxicationType other)
Parameters
Type | Name | Description |
---|---|---|
JIntoxicationType | other | Instance of JIntoxicationType 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(JIntoxicationType, JIntoxicationType)
Declaration
public static bool operator ==(JIntoxicationType left, JIntoxicationType right)
Parameters
Type | Name | Description |
---|---|---|
JIntoxicationType | left | |
JIntoxicationType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(JIntoxicationType, JIntoxicationType)
Declaration
public static bool operator !=(JIntoxicationType left, JIntoxicationType right)
Parameters
Type | Name | Description |
---|---|---|
JIntoxicationType | left | |
JIntoxicationType | right |
Returns
Type | Description |
---|---|
System.Boolean |