lib/neutrino/gateway/patient_document.rb
# Gets a patient document's data
#
# @param [Hash] params specify what patient document to get, must specify either `:id` or `:root` and `extension`
# @param [Hash] options specify query values
# @return [String] the patient document's data
# @raise [Exceptions::PatientDocumentNotFoundError] when NEUTRINO returns a 404 status code
Gets a patient document's data
Gets a patient document ' s data
def data(params, options = {})
          path = "#{base_uri(params)}/data"
          path += ".#{params[:format]}" if params[:format]
          request(path, options).if_404_raise(Neutrino::Gateway::Exceptions::PatientDocumentNotFoundError)
                                .if_400_raise(Neutrino::Gateway::Exceptions::DocumentConversionNotSupported).data_and_type
        end
def data ( params , options = { } ) path = "#{base_uri(params)}/data" path += ".#{params[:format]}" if params [ :format ] request ( path , options ) . if_404_raise ( Neutrino :: Gateway :: Exceptions :: PatientDocumentNotFoundError ) . if_400_raise ( Neutrino :: Gateway :: Exceptions :: DocumentConversionNotSupported ) . data_and_type end
Gets a patient document's data
Gets a patient document ' s data
the patient document's data
the patient document ' s data
String
[Exceptions::PatientDocumentNotFoundError] when NEUTRINO returns a 404 status code
[ Exceptions :: PatientDocumentNotFoundError ] when NEUTRINO returns a 404 status code
params
<not_specific>
options
<not_specific>
<not_specific>
options specify query values
options specify query values