athena_health 1.0.12 → 1.0.13

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: 15d018c329b70c978813c3fd598c4175042f5cbe
4
- data.tar.gz: 9ef5f241924d4c7c7444046c75134d98f2b3872a
3
+ metadata.gz: ab7b04de7b904154825fe88ed61d2fd61bde66c1
4
+ data.tar.gz: f764c8ccfcf065152421d1a3148e3b38d6493e2a
5
5
  SHA512:
6
- metadata.gz: b5bdb3d3b81d6b057f358ea0b86f9cbd548f8ce1ad1238db292c3077d7454a7bdbdb8521f610bade58b3fe226b595061f4f29528b6c6691e7f30c30a64f79f38
7
- data.tar.gz: eed6a8ceb17cbb442d7eeb55c9b18a4a723ef9f1ad134bdc390a198f8b8f3a9ab565eb11fba68e39dc26a00f90851527a344614a7cc302818733a86edbd2ec97
6
+ metadata.gz: 580d313b0933e2d9def9fc9999cf053bbeeb1c45bad5e9a77bfab5187fc05bc1b05c58f9d85f7451f37915e22cb3fc78eb37ea936a6448ee90b9f7b9c1d18401
7
+ data.tar.gz: 6b24b66242b4e0da8a7ce4f0218b63717a31f30cd5a79368d79430822f0d3b9a9b2ff0c8b88fb45fa3efe13b342f96275bc3589717b157af44e8606b235d8e25
data/.travis.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.3.0
3
+ - 2.3.1
4
4
  before_install: gem install bundler -v 1.11.2
data/lib/athena_health.rb CHANGED
@@ -55,6 +55,8 @@ require 'athena_health/pharmacy_collection'
55
55
  require 'athena_health/medication'
56
56
  require 'athena_health/allergy'
57
57
  require 'athena_health/laboratory'
58
+ require 'athena_health/note'
59
+ require 'athena_health/note_collection'
58
60
 
59
61
  module AthenaHealth
60
62
  end
@@ -1,21 +1,25 @@
1
1
  module AthenaHealth
2
2
  class Appointment < BaseModel
3
- attribute :date, String
4
3
  attribute :appointmentid, Integer
5
- attribute :departmentid, Integer
6
- attribute :appointmenttype, String
7
4
  attribute :appointmentstatus, String
8
- attribute :patientid, Integer
9
- attribute :providerid, Integer
10
- attribute :starttime, String
11
- attribute :duration, Integer
5
+ attribute :appointmenttype, String
12
6
  attribute :appointmenttypeid, Integer
13
- attribute :patientappointmenttypename, String
7
+ attribute :coordinatorenterprise, Boolean
8
+ attribute :date, String
9
+ attribute :departmentid, Integer
10
+ attribute :duration, Integer
11
+ attribute :encounterstatus, String
12
+ attribute :frozen, Boolean
14
13
  attribute :lastmodified, String
15
- attribute :scheduleddatetime, String
14
+ attribute :patient, Patient
15
+ attribute :patientappointmenttypename, String
16
+ attribute :patientid, Integer
17
+ attribute :providerid, Integer
18
+ attribute :rescheduledappointmentid, Integer
16
19
  attribute :scheduledby, String
20
+ attribute :scheduleddatetime, String
21
+ attribute :starttime, String
17
22
  attribute :templateappointmentid, Integer
18
- attribute :encounterstatus, String
19
23
 
20
24
  def appointment_status
21
25
  {
@@ -67,6 +67,24 @@ module AthenaHealth
67
67
 
68
68
  AppointmentCollection.new(response)
69
69
  end
70
+
71
+ def appointment_notes(practice_id:, appointment_id:, params: {})
72
+ response = @api.call(
73
+ endpoint: "#{practice_id}/appointments/#{appointment_id}/notes",
74
+ method: :get,
75
+ params: params
76
+ )
77
+
78
+ NoteCollection.new(response)
79
+ end
80
+
81
+ def create_appointment_note(practice_id:, appointment_id:, note_text:)
82
+ @api.call(
83
+ endpoint: "#{practice_id}/appointments/#{appointment_id}/notes",
84
+ method: :post,
85
+ body: { notetext: note_text }
86
+ )
87
+ end
70
88
  end
71
89
  end
72
90
  end
@@ -0,0 +1,8 @@
1
+ module AthenaHealth
2
+ class Note < BaseModel
3
+ attribute :notetext, String
4
+ attribute :noteid, Integer
5
+ attribute :created, String
6
+ attribute :createdby, String
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ module AthenaHealth
2
+ class NoteCollection < BaseCollection
3
+ attribute :notes, Array[Note]
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module AthenaHealth
2
- VERSION = '1.0.12'.freeze
2
+ VERSION = '1.0.13'.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.12
4
+ version: 1.0.13
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-16 00:00:00.000000000 Z
11
+ date: 2016-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -146,6 +146,8 @@ files:
146
146
  - lib/athena_health/lab_result_collection.rb
147
147
  - lib/athena_health/laboratory.rb
148
148
  - lib/athena_health/medication.rb
149
+ - lib/athena_health/note.rb
150
+ - lib/athena_health/note_collection.rb
149
151
  - lib/athena_health/order.rb
150
152
  - lib/athena_health/order_collection.rb
151
153
  - lib/athena_health/patient.rb