athena_health 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1225a3207b0b308de9bc85e4ce256a0baf304097
4
- data.tar.gz: f7965eda22300a5724e66d96f7f036c7a51fe5ea
3
+ metadata.gz: 2de93bc8f82bb2d42d97dbb3aa757950ee343bab
4
+ data.tar.gz: fa9ff2631ac43fc1cd057ff27d66316475c030dd
5
5
  SHA512:
6
- metadata.gz: afe138d5dbe627cc235a9c15be2be077661e5f5a34d0b627865009da75f969ab677975e17fd40a74ebf3b445801ffcd07ab61b3669b60f8d7dcbc851107bd902
7
- data.tar.gz: 18b78f8409f171bcc08dca6bfb4923e69f6a38c6f1650d437efeef86ba5d130db70b294b91cad7175972006d65465512a32f7ea377ee4859f7144e30a7351048
6
+ metadata.gz: bdc5614d7c69011e7cd8ff87e69ad0df8966e35efe9a78d3215b8464b082e076dfc899bf5c78b35c011e3bc54622b8ed426b794efba63290691e5a8f72e3b693
7
+ data.tar.gz: 887cfd3ab18840adc03b84f3d5d47e9ab5681d816dc1e1ab08ab3a7e9bee018d75a169847c1e83c7d1cab3d2c14586fcef16acc346c7e98d9e12308b687266f5
@@ -29,7 +29,7 @@ module AthenaHealth
29
29
  method: method,
30
30
  headers: { "Authorization" => "Bearer #{@token}"},
31
31
  params: params,
32
- body: body,
32
+ body: body
33
33
  ).run
34
34
 
35
35
  if response.response_code == 401 && !second_call
@@ -133,6 +133,14 @@ module AthenaHealth
133
133
  DocumentCollection.new(response)
134
134
  end
135
135
 
136
+ def create_patient_document(practice_id:, department_id:, patient_id:, params: {})
137
+ @api.call(
138
+ endpoint: "#{practice_id}/patients/#{patient_id}/documents",
139
+ method: :post,
140
+ body: params.merge!(departmentid: department_id.to_s)
141
+ )
142
+ end
143
+
136
144
  def patient_default_pharmacy(practice_id:, department_id:, patient_id:)
137
145
  response = @api.call(
138
146
  endpoint: "#{practice_id}/chart/#{patient_id}/pharmacies/default",
@@ -1,3 +1,3 @@
1
1
  module AthenaHealth
2
- VERSION = '1.0.5'.freeze
2
+ VERSION = '1.0.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: athena_health
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Urbański
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-03 00:00:00.000000000 Z
11
+ date: 2016-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus