Class JDrugUseAssessmentType
A data type for an assessment process to determine a subject's past drug use and/or dependency.
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class JDrugUseAssessmentType : NcAssessmentType, IEquatable<NcActivityType>, IEquatable<NcAssessmentType>, IEquatable<JDrugUseAssessmentType>
Properties
Context
jDrugUseAssessmentType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public JDrugUseAssessmentType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<JDrugUseAssessmentType.ContextEnum> | jDrugUseAssessmentType JSON-LD context |
DrugFreeDuration
A number of consecutive months an offender was determined to be free of narcotics. NIEM reference is j:DrugUseAssessmentDrugFreeDuration
Declaration
[DataMember(Name = "drugFreeDuration")]
public List<NiemXsduration> DrugFreeDuration { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsduration> | A number of consecutive months an offender was determined to be free of narcotics. NIEM reference is j:DrugUseAssessmentDrugFreeDuration |
DrugTest
A drug test used as part of an assessment. NIEM reference is j:DrugUseAssessmentDrugTest
Declaration
[DataMember(Name = "drugTest")]
public List<JDrugTestType> DrugTest { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<JDrugTestType> | A drug test used as part of an assessment. NIEM reference is j:DrugUseAssessmentDrugTest |
DrugTreatmentProgramsAttendedQuantity
A number of drug treatment programs attended by the subject. NIEM reference is j:DrugUseAssessmentDrugTreatmentProgramsAttendedQuantity
Declaration
[DataMember(Name = "drugTreatmentProgramsAttendedQuantity")]
public List<NcQuantityType> DrugTreatmentProgramsAttendedQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcQuantityType> | A number of drug treatment programs attended by the subject. NIEM reference is j:DrugUseAssessmentDrugTreatmentProgramsAttendedQuantity |
DrugUseDrug
A type of drug. NIEM reference is j:DrugUseDrug
Declaration
[DataMember(Name = "drugUseDrug")]
public List<NcDrugType> DrugUseDrug { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcDrugType> | A type of drug. NIEM reference is j:DrugUseDrug |
FirstUsedAgeQuantity
A count for an age when an individual first used drugs. NIEM reference is j:DrugUseAssessmentFirstUsedAgeQuantity
Declaration
[DataMember(Name = "firstUsedAgeQuantity")]
public List<NcQuantityType> FirstUsedAgeQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcQuantityType> | A count for an age when an individual first used drugs. NIEM reference is j:DrugUseAssessmentFirstUsedAgeQuantity |
InPrisonDrugTreatmentProgramsAttendedQuantity
A number of drug treatment programs attended by the subject while incarcerated. NIEM reference is j:DrugUseAssessmentInPrisonDrugTreatmentProgramsAttendedQuantity
Declaration
[DataMember(Name = "inPrisonDrugTreatmentProgramsAttendedQuantity")]
public List<NcQuantityType> InPrisonDrugTreatmentProgramsAttendedQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcQuantityType> | A number of drug treatment programs attended by the subject while incarcerated. NIEM reference is j:DrugUseAssessmentInPrisonDrugTreatmentProgramsAttendedQuantity |
IsDrugDependency
True if the subject of assessment has a drug dependency; false otherwise. NIEM reference is j:DrugUseAssessmentDrugDependencyIndicator
Declaration
[DataMember(Name = "isDrugDependency")]
public List<NiemXsboolean> IsDrugDependency { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsboolean> | True if the subject of assessment has a drug dependency; false otherwise. NIEM reference is j:DrugUseAssessmentDrugDependencyIndicator |
IsUsedNeedle
True if subject reported use of needles; false otherwise. NIEM reference is j:DrugUseAssessmentUsedNeedleIndicator
Declaration
[DataMember(Name = "isUsedNeedle")]
public List<NiemXsboolean> IsUsedNeedle { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsboolean> | True if subject reported use of needles; false otherwise. NIEM reference is j:DrugUseAssessmentUsedNeedleIndicator |
LastDrugTestDate
A date of the assessment subject's last drug test. NIEM reference is j:DrugUseAssessmentLastDrugTestDate
Declaration
[DataMember(Name = "lastDrugTestDate")]
public List<NcDateType> LastDrugTestDate { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcDateType> | A date of the assessment subject's last drug test. NIEM reference is j:DrugUseAssessmentLastDrugTestDate |
PrimaryDrugOfChoice
A kind of values for drugs that have been used by the subject in the past. NIEM reference is j:DrugUseAssessmentPrimaryDrugOfChoiceText
Declaration
[DataMember(Name = "primaryDrugOfChoice")]
public List<NcTextType> PrimaryDrugOfChoice { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A kind of values for drugs that have been used by the subject in the past. NIEM reference is j:DrugUseAssessmentPrimaryDrugOfChoiceText |
RelapseTrigger
A relapse trigger that could lead the subject to use drugs. NIEM reference is j:DrugUseAssessmentRelapseTriggerText
Declaration
[DataMember(Name = "relapseTrigger")]
public List<NcTextType> RelapseTrigger { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A relapse trigger that could lead the subject to use drugs. NIEM reference is j:DrugUseAssessmentRelapseTriggerText |
SecondaryDrugOfChoice
A kind of values for secondary drug of choice. NIEM reference is j:DrugUseAssessmentSecondaryDrugOfChoiceText
Declaration
[DataMember(Name = "secondaryDrugOfChoice")]
public List<NcTextType> SecondaryDrugOfChoice { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A kind of values for secondary drug of choice. NIEM reference is j:DrugUseAssessmentSecondaryDrugOfChoiceText |
YearsOfProblemUseQuantity
A number indicating the years the subject has had drug-related problems. NIEM reference is j:DrugUseAssessmentYearsOfProblemUseQuantity
Declaration
[DataMember(Name = "yearsOfProblemUseQuantity")]
public List<NcQuantityType> YearsOfProblemUseQuantity { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcQuantityType> | A number indicating the years the subject has had drug-related problems. NIEM reference is j:DrugUseAssessmentYearsOfProblemUseQuantity |
Methods
Equals(JDrugUseAssessmentType)
Returns true if JDrugUseAssessmentType instances are equal
Declaration
public bool Equals(JDrugUseAssessmentType other)
Parameters
Type | Name | Description |
---|---|---|
JDrugUseAssessmentType | other | Instance of JDrugUseAssessmentType 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(JDrugUseAssessmentType, JDrugUseAssessmentType)
Declaration
public static bool operator ==(JDrugUseAssessmentType left, JDrugUseAssessmentType right)
Parameters
Type | Name | Description |
---|---|---|
JDrugUseAssessmentType | left | |
JDrugUseAssessmentType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(JDrugUseAssessmentType, JDrugUseAssessmentType)
Declaration
public static bool operator !=(JDrugUseAssessmentType left, JDrugUseAssessmentType right)
Parameters
Type | Name | Description |
---|---|---|
JDrugUseAssessmentType | left | |
JDrugUseAssessmentType | right |
Returns
Type | Description |
---|---|
System.Boolean |