code: def get_patients_locations(self, patient_id):
          
          doc_xml = "<docParams><item name='User' value='@@USER@@'/></docParams>"
          doc_xml = doc_xml.replace("@@USER@@", str(patient_id))
          magic = self._magic_json(
              action=TouchWorksMagicConstants.ACTION_GET_PATIENT_LOCATIONS,
              parameter1=doc_xml)
          response = self._http_request(TouchWorksEndPoints.MAGIC_JSON, data=magic)
          result = self._get_results_or_raise_if_magic_invalid(
              magic,
              response,
              TouchWorksMagicConstants.RESULT_GET_PATIENT_LOCATIONS)
          return result
docs: invokes TouchWorksMagicConstants.ACTION_GET_ENCOUNTER_LIST_FOR_PATIENT action
          :return: JSON response