Class HsSubstanceAbuseDetailsType
A data type for the details about a person's substance abuse.
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class HsSubstanceAbuseDetailsType : NcActivityType, IEquatable<NcActivityType>, IEquatable<HsSubstanceAbuseDetailsType>
Properties
Context
hsSubstanceAbuseDetailsType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public HsSubstanceAbuseDetailsType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<HsSubstanceAbuseDetailsType.ContextEnum> | hsSubstanceAbuseDetailsType JSON-LD context |
DrugUseAgeMeasure
An age at which the person first began using an illegal substance. NIEM reference is hs:DrugUseAgeMeasure
Declaration
[DataMember(Name = "drugUseAgeMeasure")]
public List<NcTimeMeasureType> DrugUseAgeMeasure { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTimeMeasureType> | An age at which the person first began using an illegal substance. NIEM reference is hs:DrugUseAgeMeasure |
DrugUseFrequencyCode
A code list describing how often the person uses drugs. NIEM reference is hs:DrugUseFrequencyCode
Declaration
[DataMember(Name = "drugUseFrequencyCode")]
public List<HsDrugUseFrequencyCodeType> DrugUseFrequencyCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<HsDrugUseFrequencyCodeType> | A code list describing how often the person uses drugs. NIEM reference is hs:DrugUseFrequencyCode |
DrugUseFrequencyDescription
A description of how often a person uses drugs. NIEM reference is hs:DrugUseFrequencyDescriptionText
Declaration
[DataMember(Name = "drugUseFrequencyDescription")]
public List<NcTextType> DrugUseFrequencyDescription { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A description of how often a person uses drugs. NIEM reference is hs:DrugUseFrequencyDescriptionText |
IsDrugUse
True if the person is currently using an illegal substance or has used an illegal substance in the immediate past; false otherwise. NIEM reference is hs:DrugUseIndicator
Declaration
[DataMember(Name = "isDrugUse")]
public List<NiemXsboolean> IsDrugUse { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsboolean> | True if the person is currently using an illegal substance or has used an illegal substance in the immediate past; false otherwise. NIEM reference is hs:DrugUseIndicator |
PreferredDrugName
A name of the substance identified as the primary drug of choice used by a person. NIEM reference is hs:PreferredDrugName
Declaration
[DataMember(Name = "preferredDrugName")]
public List<NcTextType> PreferredDrugName { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A name of the substance identified as the primary drug of choice used by a person. NIEM reference is hs:PreferredDrugName |
Substance
A matter or substance of which something consists. NIEM reference is nc:Substance
Declaration
[DataMember(Name = "substance")]
public List<NcSubstanceType> Substance { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcSubstanceType> | A matter or substance of which something consists. NIEM reference is nc:Substance |
SubstanceAbuseCurrentDescription
A description of current substance abuse. NIEM reference is hs:SubstanceAbuseCurrentDescriptionText
Declaration
[DataMember(Name = "substanceAbuseCurrentDescription")]
public List<NcTextType> SubstanceAbuseCurrentDescription { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A description of current substance abuse. NIEM reference is hs:SubstanceAbuseCurrentDescriptionText |
SubstanceAbusePastDescription
A description of past substance abuse issues which may include details about substances used or abused in the past, past treatment episodes or other details related to a person's substance use in the past. NIEM reference is hs:SubstanceAbusePastDescriptionText
Declaration
[DataMember(Name = "substanceAbusePastDescription")]
public List<NcTextType> SubstanceAbusePastDescription { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A description of past substance abuse issues which may include details about substances used or abused in the past, past treatment episodes or other details related to a person's substance use in the past. NIEM reference is hs:SubstanceAbusePastDescriptionText |
Methods
Equals(HsSubstanceAbuseDetailsType)
Returns true if HsSubstanceAbuseDetailsType instances are equal
Declaration
public bool Equals(HsSubstanceAbuseDetailsType other)
Parameters
Type | Name | Description |
---|---|---|
HsSubstanceAbuseDetailsType | other | Instance of HsSubstanceAbuseDetailsType 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(HsSubstanceAbuseDetailsType, HsSubstanceAbuseDetailsType)
Declaration
public static bool operator ==(HsSubstanceAbuseDetailsType left, HsSubstanceAbuseDetailsType right)
Parameters
Type | Name | Description |
---|---|---|
HsSubstanceAbuseDetailsType | left | |
HsSubstanceAbuseDetailsType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(HsSubstanceAbuseDetailsType, HsSubstanceAbuseDetailsType)
Declaration
public static bool operator !=(HsSubstanceAbuseDetailsType left, HsSubstanceAbuseDetailsType right)
Parameters
Type | Name | Description |
---|---|---|
HsSubstanceAbuseDetailsType | left | |
HsSubstanceAbuseDetailsType | right |
Returns
Type | Description |
---|---|
System.Boolean |