Module: AllscriptsApi::Orders::OrderingMethods
- Included in:
- Client
- Defined in:
- lib/allscripts_api/orders/ordering_methods.rb
Overview
A collection convenience methods for ordering that map to Allscripts magic actions. Some of these methods wrap multiple actions. These methods are included in Client and can be accessed from instances of that class.
Instance Method Summary collapse
-
#save_order(patient_id, xml, order_category, dictionary_id, problem_id = nil, trans_id = nil) ⇒ Hash|MagicError
a wrapper around SaveOrder, which save and order of the sepcified category, among: AdministeredMedication, Immunization, InstructionOrder, ProcedureOrder, Referral, SuppliesOrder.
Instance Method Details
#save_order(patient_id, xml, order_category, dictionary_id, problem_id = nil, trans_id = nil) ⇒ Hash|MagicError
a wrapper around SaveOrder, which save and order of the sepcified category, among: AdministeredMedication, Immunization, InstructionOrder, ProcedureOrder, Referral, SuppliesOrder.
xml can be constructed with AllscriptsApi::Order.build_xml
Immunization, InstructionOrder, ProcedureOrder, Referral, SuppliesOrder. may be passed in as part of the xml necessary when updating a past order
29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/allscripts_api/orders/ordering_methods.rb', line 29 def save_order(patient_id, xml, order_category, dictionary_id, problem_id = nil, trans_id = nil) params = MagicParams.format( user_id: @allscripts_username, patient_id: patient_id, parameter1: xml, parameter2: order_category, parameter3: dictionary_id, parameter4: problem_id, parameter5: trans_id ) magic("SaveOrder", magic_params: params) end |