All files / src/redux/ProProgress service.js

0% Statements 0/9
100% Branches 0/0
0% Functions 0/2
0% Lines 0/9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38                                                                           
import APIService from '../../lib/APIService';
import { BASE_URL_STATS } from '../../helper/urlConstants';
 
const FETCH_PROPROGRESSLIST = `query($input: getProProgressStatusInput!)
{
getProProgressStatus(input:$input){
  patientuid
  not_started
  in_progress
  completed
  patient_fullname
  mrn
  npi
  visituid
  visitdate
  questionnaire_display_name
  questionnaire_status
  practiceid
  providerid
  year
  unit
  totalcount
}
}`;
 
export const fetchProProgressFromServer = async params => {
    const requestOptions = {
        query: FETCH_PROPROGRESSLIST,
        variables: params
    };
    const res = await APIService.post(BASE_URL_STATS, requestOptions);
    return res.data.data.getProProgressStatus;
};
 
export const setSelectedProProgressToStore = async proProgressObj => {
    return proProgressObj;
};