lib/neutrino/gateway/patient.rb
# Gets a patient's documents
#
# @param [Hash] params specify what patient to get, must specify `:root` and `extension`
#   can specify `:date_from` and `:date_to` to filter a range, and/or various whitelists
# @param [Hash] options specify query values
# @return [Hash] the patient's documents
Gets a patient's documents
Gets a patient ' s documents
def patient_documents(params, options = {})
          path = "#{base_uri(params)}/patient_documents"
          path << Uri::DateRange.new
                    .beginning_at(params[:date_from])
                    .ending_at(params[:date_to])
                    .to_s
          path << Uri::WhitelistFactory.new
                    .from_whitelists_in(params)
                    .build
                    .to_s
          path << current_if_specified_in(params)
          request(path, options)
            .if_403_raise(Neutrino::Gateway::Exceptions::InvalidTenantOperation)
            .if_404_raise(Neutrino::Gateway::Exceptions::PatientNotFoundError)
            .to_hash
        end
def patient_documents ( params , options = { } ) path = "#{base_uri(params)}/patient_documents" path << Uri :: DateRange . new . beginning_at ( params [ :date_from ] ) . ending_at ( params [ :date_to ] ) . to_s path << Uri :: WhitelistFactory . new . from_whitelists_in ( params ) . build . to_s path << current_if_specified_in ( params ) request ( path , options ) . if_403_raise ( Neutrino :: Gateway :: Exceptions :: InvalidTenantOperation ) . if_404_raise ( Neutrino :: Gateway :: Exceptions :: PatientNotFoundError ) . to_hash end
Gets a patient's documents
Gets a patient ' s documents
the patient's documents
the patient ' s documents
Hash
params
<not_specific>
options
<not_specific>
<not_specific>
options specify query values
options specify query values