lib/neutrino/gateway/patient.rb
# Gets the base URI for a patient
#
# @param [Hash] params specify what patient to get, must specify `:root` and `extension`
# @return [String] the base URI for a patient
# @raise [Exceptions::BadRequestError] when `:root` or `:extension` are not specified
Gets the base URI for a patient
Gets the base URI for a patient
def base_uri(params)
          if params[:root].nil? || params[:extension].nil?
            fail Neutrino::Gateway::Exceptions::BadRequestError, 'Must specify a root and extension'
          end
          "#{api}/patient/#{URI.escape(params[:root])}/#{URI.escape(params[:extension])}"
        end
def base_uri ( params ) if params [ :root ] . nil? || params [ :extension ] . nil? fail Neutrino :: Gateway :: Exceptions :: BadRequestError , 'Must specify a root and extension' end "#{api}/patient/#{URI.escape(params[:root])}/#{URI.escape(params[:extension])}" end
Gets the base URI for a patient
Gets the base URI for a patient
the base URI for a patient
the base URI for a patient
String
[Exceptions::BadRequestError] when `:root` or `:extension` are not specified
[ Exceptions :: BadRequestError ] when ` : root ` or ` : extension ` are not specified
params
<not_specific>
<not_specific>
params specify what patient to get, must specify `:root` and `extension`
params specify what patient to get must specify ` : root ` and ` extension `