invokes TouchWorksMagicConstants.ACTION_GET_ENCOUNTER_LIST_FOR_PATIENT action
        :param patient_id
        :param medhx_status - 	Field in EEHR expects U, G, or D. SP defaults to Null and
            errors out if included.
                U=Unknown
                G=Granted
                D=Declined
        :return: JSON response

def set_patient_medhx_flag(self, patient_id,
                               medhx_status):
        """
        invokes TouchWorksMagicConstants.ACTION_GET_ENCOUNTER_LIST_FOR_PATIENT action
        :param patient_id
        :param medhx_status - 	Field in EEHR expects U, G, or D. SP defaults to Null and
            errors out if included.
                U=Unknown
                G=Granted
                D=Declined
        :return: JSON response
        """
        magic = self._magic_json(
            action=TouchWorksMagicConstants.ACTION_SET_PATIENT_MEDHX_FLAG,
            patient_id=patient_id,
            parameter1=medhx_status
        )
        response = self._http_request(TouchWorksEndPoints.MAGIC_JSON, data=magic)
        result = self._get_results_or_raise_if_magic_invalid(
            magic,
            response,
            TouchWorksMagicConstants.RESULT_SET_PATIENT_MEDHX_FLAG)
        return result