Class: ChangeHealthcare::OrderDiagnosis
- Inherits:
-
BaseApiObject
- Object
- BaseApiObject
- ChangeHealthcare::OrderDiagnosis
- Defined in:
- lib/change_healthcare/order_diagnosis.rb
Class Method Summary collapse
- .attributes ⇒ Object
- .chc_object_name ⇒ Object
-
.get(params) ⇒ Object
cli-cert.emdeon.com/api/cert/orderdiagnosis.html#get params = xxxxxxxxxx or xxxxxxxxxx.
Methods inherited from BaseApiObject
Constructor Details
This class inherits a constructor from ChangeHealthcare::BaseApiObject
Class Method Details
.attributes ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/change_healthcare/order_diagnosis.rb', line 3 def self.attributes %i[ name op date clientid split_code orderable description exclusive_flag cpp_count expiration_date orderdiagnosis orderable_type special_test_flag ordertest specimen clearance freq_abn icd_10_cm_code order_diag_description has_aoe order icd_9_cm_code placer_order_number orderable_description ownerid created_by lcp_fda_flag order_code sequence estimated_cost category user_description ] end |
.chc_object_name ⇒ Object
42 43 44 |
# File 'lib/change_healthcare/order_diagnosis.rb', line 42 def self.chc_object_name 'orderdiagnosis' end |
.get(params) ⇒ Object
cli-cert.emdeon.com/api/cert/orderdiagnosis.html#get params = xxxxxxxxxx or xxxxxxxxxx
48 49 50 51 52 53 54 55 56 57 |
# File 'lib/change_healthcare/order_diagnosis.rb', line 48 def self.get(params) # if orderdiagnosis reference is passed in use default orderdiagnosis.get call if params[:orderdiagnosis].present? resp = call_api(__method__.to_s, params, false) response_to_list(resp) # if order reference is passed in use servlet.apiOrderServlet to grab all order details and fetch orderdiagnosis info elsif params[:order].present? Servlet.api_order_servlet(params)['orderdiagnosis'].map { |diagnosis| new(diagnosis) } end end |