def get_encounter_list(patient_id = "", encounter_type = "",
                           when_or_limit = "", nostradamus = 0,
                           show_past_flag = "Y",
                           billing_provider_user_name = "")
      params =
        MagicParams.format(
          user_id: @allscripts_username,
          patient_id: patient_id,
          parameter1: encounter_type, # from Encounter_Type_DE
          parameter2: when_or_limit,
          parameter3: nostradamus,
          parameter4: show_past_flag,
          parameter5: billing_provider_user_name,
        )
      results = magic("GetEncounterList", magic_params: params)
      results["getencounterlistinfo"]
    end
def get_encounter_list(patient_id = "", encounter_type = "",
                           when_or_limit = "", nostradamus = 0,
                           show_past_flag = "Y",
                           billing_provider_user_name = "")
      params =
        MagicParams.format(
          user_id: @allscripts_username,
          patient_id: patient_id,
          parameter1: encounter_type, # from Encounter_Type_DE
          parameter2: when_or_limit,
          parameter3: nostradamus,
          parameter4: show_past_flag,
          parameter5: billing_provider_user_name,
        )
      results = magic("GetEncounterList", magic_params: params)
      results["getencounterlistinfo"]
    end
a wrapper around GetEncounterList

 @param patient_id [String] patient id
 @param encounter_type [String] encounter type to filter on from Encounter_Type_DE
 @param when_or_limit [String] filter by specified date
 @param nostradamus [String] how many days to look into the future. Defaults to 0.
 @param show_past_flag [String] show previous encounters, "Y" or "N". Defaults to Y
 @param billing_provider_user_name [String] filter by user name (if specified)
 @return [Array<Hash>, Array, MagicError] a list of encounters