mirah-ruby 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84889ff31445ea17565ffab2d6d20539e6ee29330d6b2c7962ac0909a45f6c14
4
- data.tar.gz: 8269903ad8c33be8de855d28ee9c8369cc6c3347abc84695df04fa0530558c48
3
+ metadata.gz: 76ec40df793b5716ae1e5f3ab4ff5c2163634910af216668912de9861d357d2f
4
+ data.tar.gz: 166a1138b4a93f953b1914ebdd13785fcf8f175bc2615c3c19c813ba116c32f0
5
5
  SHA512:
6
- metadata.gz: 2d6ff8c5c1f39d9d994909bd29f9a47c51a8d497961076f1baf0ecf9ce39eca15039f062e183bd3a5699e37676210f994b594afe6dd0ed3ca7637a6dfcaf0606
7
- data.tar.gz: 7315d6bf30af466e82a1375ad3545f83913a03495442ef3a959ba2f0035fe3e309ec99e73cbb562cdcf68e51c4b1ae19a1e8f39b58c16e5ba343ccf698a59384
6
+ metadata.gz: 6f9d8daebe43ffc1e5e95e98cb8ae37fd82ef3a412c773291e82cbb4a9ed294cd339e74a3999388dc6b564d333ac36209a444235803155be78daa1c186d64deb
7
+ data.tar.gz: 0071b8cba8dfc1d09d7fb731cd55f2719af3d4e1d57fe1b9366d95a64befa6c93f393e5018d08516c45e77f30a6d2eb3bdecdd3ceb4c67d11dd5d521ed3c6aac
@@ -104,6 +104,7 @@ module Mirah
104
104
  # @option input_values [String, nil] :primary_language see {Data::Patient#primary_language}
105
105
  # @option input_values [String, nil] :email see {Data::Patient#email}
106
106
  # @option input_values [String, nil] :phone_number see {Data::Patient#phone_number}
107
+ # @option input_values [String, nil] :external_managing_organization_id see {Data::Patient#external_managing_organization_id}
107
108
  # @return [PushResult<Data::Patient>] the operation result with a patient on success
108
109
  def push_patient(external_id:, **input_values)
109
110
  mutate(Graphql::Mutations::CreateOrUpdatePatientMutation,
@@ -41,6 +41,14 @@ module Mirah
41
41
  # @return [string] The patient's primary phone number that is suitable for receiving text messages.
42
42
  # Please do not use a phone number which corresponds to a landline as text messages will not be received.
43
43
  attribute :phone_number
44
+
45
+ # @!attribute [r] managing_organization_id
46
+ # @return [string] The internal mirah id of the organization this patient is with
47
+ attribute :managing_organization_id, path: %w[managingOrganization], target: 'id'
48
+
49
+ # @!attribute [r] external_managing_organization_id
50
+ # @return [string] Your system identifier for the organization this patient is with
51
+ attribute :external_managing_organization_id, path: %w[managingOrganization], target: 'externalId'
44
52
  end
45
53
  end
46
54
  end
@@ -24,6 +24,10 @@ module Mirah
24
24
  primaryLanguage
25
25
  email
26
26
  phoneNumber
27
+ managingOrganization {
28
+ id
29
+ externalId
30
+ }
27
31
  identifier {
28
32
  value
29
33
  }
@@ -35,6 +35,10 @@ module Mirah
35
35
  # @!attribute [r] phone_number
36
36
  # @return (see Mirah::Data::Patient#phone_number)
37
37
  input :phone_number, required: false
38
+
39
+ # @!attribute [r] external_managing_organization_id
40
+ # @return (see Mirah::Data::Patient#external_managing_organization_id)
41
+ input :external_managing_organization_id, required: false
38
42
  end
39
43
  end
40
44
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mirah
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mirah-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Jones
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-06-16 00:00:00.000000000 Z
12
+ date: 2020-06-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -214,7 +214,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  requirements: []
217
- rubygems_version: 3.1.2
217
+ rubyforge_project:
218
+ rubygems_version: 2.7.10
218
219
  signing_key:
219
220
  specification_version: 4
220
221
  summary: Connect to your data on Mirah.