Module: AllscriptsApi::Documents::DocumentMethods
- Included in:
- Client
- Defined in:
- lib/allscripts_api/documents/document_methods.rb
Overview
A collection of named convenience methods that map to Allscripts magic actions related to documents. These methods are included in Client and can be accessed from instances of that class.
Instance Method Summary collapse
-
#save_document_image(patient_id, document_params, document_buffer = nil, base_64_data = nil) ⇒ Hash, MagicError
rubocop:disable LineLength a wrapper around SaveDocumentImage, which saves pdfs to Allscripts.
Instance Method Details
#save_document_image(patient_id, document_params, document_buffer = nil, base_64_data = nil) ⇒ Hash, MagicError
rubocop:disable LineLength a wrapper around SaveDocumentImage, which saves pdfs to Allscripts
rubocop:Enable LineLength
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/allscripts_api/documents/document_methods.rb', line 19 def save_document_image(patient_id, document_params, document_buffer = nil, base_64_data = nil) params = MagicParams.format( user_id: @allscripts_username, patient_id: patient_id, parameter1: document_params, parameter6: base_64_data, data: document_buffer ) results = magic("SaveDocumentImage", magic_params: params) results["savedocumentimageinfo"] end |