Class: Mirah::Data::DiagnosticCode

Inherits:
BaseObject show all
Defined in:
lib/mirah/data/diagnostic_code.rb

Overview

Diagnostic codes represent ICD10 or other codes that contain information on diagnosis. The Mirah system models this simply as a code and a name, effectively operating like a tag. For example, Major Depressive Disorder could be represented with the code F320.

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseObject

from_graphql_hash, #initialize, #to_graphql_hash

Constructor Details

This class inherits a constructor from Mirah::BaseObject

Instance Attribute Details

#codestring (readonly)

Returns A string representing the code, e.g. “F320”.

Returns:

  • (string)

    A string representing the code, e.g. “F320”



23
# File 'lib/mirah/data/diagnostic_code.rb', line 23

attribute :code

#external_idstring (readonly)

Returns The identifier provided by your system.

Returns:

  • (string)

    The identifier provided by your system



15
# File 'lib/mirah/data/diagnostic_code.rb', line 15

attribute :external_id

#idstring (readonly)

Returns The internal Mirah identifier.

Returns:

  • (string)

    The internal Mirah identifier



11
# File 'lib/mirah/data/diagnostic_code.rb', line 11

attribute :id

#namestring (readonly)

Returns A description of the code, e.g. “Major Depressive Disorder”.

Returns:

  • (string)

    A description of the code, e.g. “Major Depressive Disorder”



19
# File 'lib/mirah/data/diagnostic_code.rb', line 19

attribute :name