lib/neutrino/gateway/patient_document.rb
# Gets a list of document ids with no patient identity expansion
#
# @param [Hash] params specify which document ids to get.
# @option params [String] :patient_root Optional patient root to retrieve
# @option params [String] :patient_extension Optional patient extension if limiting to a single MRN.
# @option params [String] :precedence Optional request to limit ids to primanry, secondary, originator, or unknown
# @option params [String] :date_from Optional query to limit ids for a starting created at date
# @option params [String] :date_to Optional query to limit ids for an ending created at date
# @param [Hash] options Other query values if needed
# @return [Array] the documents ids
# @raise [Exceptions::BadRequestError] when NEUTRINO returns a 4xx status
Gets a list of document ids with no patient identity expansion
Gets a list of document ids with no patient identity expansion
def patient_document_ids(params, options = {})
          params.merge!(options)
          path = "#{api(options)}/patient_document/ids"
          path << "/#{params[:precedence]}" if params[:precedence]
          request(path, params)
              .if_400_raise(Neutrino::Gateway::Exceptions::BadRequestError)
              .if_403_raise(Neutrino::Gateway::Exceptions::InvalidTenantOperation)
              .to_hash
        end
def patient_document_ids ( params , options = { } ) params . merge! ( options ) path = "#{api(options)}/patient_document/ids" path << "/#{params[:precedence]}" if params [ :precedence ] request ( path , params ) . if_400_raise ( Neutrino :: Gateway :: Exceptions :: BadRequestError ) . if_403_raise ( Neutrino :: Gateway :: Exceptions :: InvalidTenantOperation ) . to_hash end
Gets a list of document ids with no patient identity expansion
Gets a list of document ids with no patient identity expansion
the documents ids
the documents ids
Array
[Exceptions::BadRequestError] when NEUTRINO returns a 4xx status
[ Exceptions :: BadRequestError ] when NEUTRINO returns a 4xx status
params
:date_to Optional query to limit ids for an ending created at date
: date_to Optional query to limit ids for an ending created at date
options
<not_specific>
<not_specific>
options Other query values if needed
options Other query values if needed