Class: Mirah::Data::Patient
- Inherits:
-
BaseObject
- Object
- BaseObject
- Mirah::Data::Patient
- Defined in:
- lib/mirah/data/patient.rb
Overview
Patients represent people who are in treatment. They can have appointments, and be the target of assessments. Patients are only treated in the context of an episode of care.
Instance Attribute Summary collapse
-
#birth_date ⇒ Date
readonly
The patient’s date of birth.
-
#email ⇒ string
readonly
The patient’s primary email address.
-
#external_id ⇒ string
readonly
The identifier provided by your system.
-
#external_managing_organization_id ⇒ string
readonly
Your system identifier for the organization this patient is with.
-
#family_name ⇒ string
readonly
The patient’s last or family name.
-
#gender ⇒ string
readonly
The patient’s gender.
-
#gender_identity ⇒ string
readonly
The patient’s gender identity as free text.
-
#gender_identity_fhir ⇒ string
readonly
The patient’s gender identity as FHIR extension coded.
-
#given_name ⇒ string
readonly
The patient’s first or given name.
-
#id ⇒ string
readonly
The internal Mirah identifier.
-
#legal_family_name ⇒ string
readonly
The patient’s legal last or family name.
-
#legal_given_name ⇒ string
readonly
The patient’s legal first or given name.
-
#legal_name ⇒ string
readonly
The patient’s full legal name.
-
#managing_organization_id ⇒ string
readonly
The internal mirah id of the organization this patient is with.
-
#phone_number ⇒ string
readonly
The patient’s primary phone number that is suitable for receiving text messages.
-
#preferred_family_name ⇒ string
readonly
The patient’s preferred last or family name.
-
#preferred_given_name ⇒ string
readonly
The patient’s preferred first or given name.
-
#preferred_name ⇒ string
readonly
The patient’s full preferred name.
-
#preferred_pronouns ⇒ string
readonly
The patient’s preferred pronouns.
-
#primary_language ⇒ string
readonly
The patient’s primary language.
-
#timezone ⇒ string
readonly
The patient’s timezone.
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
#birth_date ⇒ Date (readonly)
Returns The patient’s date of birth.
56 |
# File 'lib/mirah/data/patient.rb', line 56 attribute :birth_date, serializer: Serializers::DateSerializer.new |
#email ⇒ string (readonly)
Returns The patient’s primary email address.
76 |
# File 'lib/mirah/data/patient.rb', line 76 attribute :email |
#external_id ⇒ string (readonly)
Returns The identifier provided by your system.
14 |
# File 'lib/mirah/data/patient.rb', line 14 attribute :external_id |
#external_managing_organization_id ⇒ string (readonly)
Returns Your system identifier for the organization this patient is with.
94 |
# File 'lib/mirah/data/patient.rb', line 94 attribute :external_managing_organization_id, path: %w[managingOrganization], target: 'externalId' |
#family_name ⇒ string (readonly)
Returns The patient’s last or family name.
32 |
# File 'lib/mirah/data/patient.rb', line 32 attribute :family_name |
#gender ⇒ string (readonly)
Returns The patient’s gender.
60 |
# File 'lib/mirah/data/patient.rb', line 60 attribute :gender |
#gender_identity ⇒ string (readonly)
Returns The patient’s gender identity as free text.
64 |
# File 'lib/mirah/data/patient.rb', line 64 attribute :gender_identity |
#gender_identity_fhir ⇒ string (readonly)
Returns The patient’s gender identity as FHIR extension coded.
68 |
# File 'lib/mirah/data/patient.rb', line 68 attribute :gender_identity_fhir |
#given_name ⇒ string (readonly)
Returns The patient’s first or given name.
19 |
# File 'lib/mirah/data/patient.rb', line 19 attribute :given_name |
#id ⇒ string (readonly)
Returns The internal Mirah identifier.
10 |
# File 'lib/mirah/data/patient.rb', line 10 attribute :id |
#legal_family_name ⇒ string (readonly)
Returns The patient’s legal last or family name.
36 |
# File 'lib/mirah/data/patient.rb', line 36 attribute :legal_family_name |
#legal_given_name ⇒ string (readonly)
Returns The patient’s legal first or given name.
23 |
# File 'lib/mirah/data/patient.rb', line 23 attribute :legal_given_name |
#legal_name ⇒ string (readonly)
Returns The patient’s full legal name.
44 |
# File 'lib/mirah/data/patient.rb', line 44 attribute :legal_name |
#managing_organization_id ⇒ string (readonly)
Returns The internal mirah id of the organization this patient is with.
90 |
# File 'lib/mirah/data/patient.rb', line 90 attribute :managing_organization_id, path: %w[managingOrganization], target: 'id' |
#phone_number ⇒ string (readonly)
Returns The patient’s primary phone number that is suitable for receiving text messages. Please do not use a phone number which corresponds to a landline as text messages will not be received.
81 |
# File 'lib/mirah/data/patient.rb', line 81 attribute :phone_number |
#preferred_family_name ⇒ string (readonly)
Returns The patient’s preferred last or family name.
40 |
# File 'lib/mirah/data/patient.rb', line 40 attribute :preferred_family_name |
#preferred_given_name ⇒ string (readonly)
Returns The patient’s preferred first or given name.
27 |
# File 'lib/mirah/data/patient.rb', line 27 attribute :preferred_given_name |
#preferred_name ⇒ string (readonly)
Returns The patient’s full preferred name.
48 |
# File 'lib/mirah/data/patient.rb', line 48 attribute :preferred_name |
#preferred_pronouns ⇒ string (readonly)
Returns The patient’s preferred pronouns.
52 |
# File 'lib/mirah/data/patient.rb', line 52 attribute :preferred_pronouns |
#primary_language ⇒ string (readonly)
Returns The patient’s primary language.
72 |
# File 'lib/mirah/data/patient.rb', line 72 attribute :primary_language |
#timezone ⇒ string (readonly)
Returns The patient’s timezone. If not specified, the organization’s default will be used. Timezone should be formatted like: en.wikipedia.org/wiki/Tz_database.
86 |
# File 'lib/mirah/data/patient.rb', line 86 attribute :timezone |