athena_health 0.9.5 → 0.9.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: 4400591e3b0dfc80dabc6f56864e0836a396e77b
4
- data.tar.gz: fd89975dcb5bf52e4ae4dbbb325afa65c8892e9d
3
+ metadata.gz: c6b9312ad84245da31088e1581aacf7193e5c029
4
+ data.tar.gz: 39576dde0e78b63e645f87ff88b5bcb02dfc5a20
5
5
  SHA512:
6
- metadata.gz: 2793a0deaab0192a84e2f0744e03a5fe8c4f85496ef1e537bd487f83fec8fe18de4e403962d70171611580ffd975cf57f0fb6ebb93c10020ac36a1dfaf7b0251
7
- data.tar.gz: fc75c281e30139417c3cc4537d79d353a7d82764382bc954659fda4af4638145894e7f191e982b0e37e957ccb359d170e9b7aca8685e9e8b5f24bbaa7123d2ae
6
+ metadata.gz: ceb1e0ebd88847672ca2b1f2e732a6168f2d66db5488cc9a0a705a21af0ae1ad9d99892a9a83ce5aa2936d363e11a40d389a841c6610cf3fc531360b90d18090
7
+ data.tar.gz: 6d71a2f14838c844747ca07e71ddf1d1cd83537af76c54afba0566f063d2ccaa14859d1b2d882b30615c9f4478be1f94b8328a866fccd0662e2ccdf7d26e504b
data/lib/athena_health.rb CHANGED
@@ -38,14 +38,14 @@ require 'athena_health/encounter'
38
38
  require 'athena_health/encounter_collection'
39
39
  require 'athena_health/order'
40
40
  require 'athena_health/order_collection'
41
+ require 'athena_health/analyte'
42
+ require 'athena_health/analyte_collection'
41
43
  require 'athena_health/lab_result'
42
44
  require 'athena_health/lab_result_collection'
43
45
  require 'athena_health/question'
44
46
  require 'athena_health/question_collection'
45
47
  require 'athena_health/prescription'
46
48
  require 'athena_health/prescription_collection'
47
- require 'athena_health/analyte'
48
- require 'athena_health/analyte_collection'
49
49
 
50
50
  module AthenaHealth
51
51
  end
@@ -122,6 +122,16 @@ module AthenaHealth
122
122
 
123
123
  AppointmentCollection.new(response)
124
124
  end
125
+
126
+ def patient_appointment(practice_id:, patient_id:, appointment_id:, params: {})
127
+ response = @api.call(
128
+ endpoint: "#{practice_id}/patients/#{patient_id}/appointments/#{appointment_id}",
129
+ method: :get,
130
+ params: params
131
+ )
132
+
133
+ AppointmentCollection.new(response)
134
+ end
125
135
  end
126
136
  end
127
137
  end
@@ -3,7 +3,7 @@ module AthenaHealth
3
3
  attribute :labresultdate, String
4
4
  attribute :labresultnote, String
5
5
  attribute :labresultid, Integer
6
- attribute :analytes, Array
6
+ attribute :analytes, Array[Analyte]
7
7
  attribute :description, String
8
8
  end
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module AthenaHealth
2
- VERSION = '0.9.5'.freeze
2
+ VERSION = '0.9.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: 0.9.5
4
+ version: 0.9.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-04-08 00:00:00.000000000 Z
11
+ date: 2016-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus