Class: Mirah::Data::Organization

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

Overview

Organizations in the Mirah system currently represent a hierarchy of units/facilities requiring either different treatment configurations (e.g. inpatient facilities require different measurement protocols to outpatient) or useful for the purpose of analytics. It is roughly based on www.hl7.org/fhir/organization.html

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

#external_idstring (readonly)

Returns The identifier provided by your system.

Returns:

  • (string)

    The identifier provided by your system



16
# File 'lib/mirah/data/organization.rb', line 16

attribute :external_id

#external_part_of_idstring (readonly)

Returns Your system identifier for the organization this organization is a child of.

Returns:

  • (string)

    Your system identifier for the organization this organization is a child of



28
# File 'lib/mirah/data/organization.rb', line 28

attribute :external_part_of_id, path: %w[partOf], target: 'externalId'

#idstring (readonly)

Returns The internal Mirah identifier.

Returns:

  • (string)

    The internal Mirah identifier



12
# File 'lib/mirah/data/organization.rb', line 12

attribute :id

#namestring (readonly)

Returns The organization’s name.

Returns:

  • (string)

    The organization’s name



20
# File 'lib/mirah/data/organization.rb', line 20

attribute :name

#part_of_idstring (readonly)

Returns The internal mirah id of the organization this organization is a child of.

Returns:

  • (string)

    The internal mirah id of the organization this organization is a child of



24
# File 'lib/mirah/data/organization.rb', line 24

attribute :part_of_id, path: %w[partOf], target: 'id'