{"size": 949, "ext": "js", "max_stars_repo_path": "src/Redux/actions.js", "max_stars_repo_name": "alikhutaba/Ame", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/Redux/actions.js", "max_issues_repo_name": "alikhutaba/Ame", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/Redux/actions.js", "max_forks_repo_name": "alikhutaba/Ame", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 14.1641791045, "max_line_length": 47, "alphanum_fraction": 0.6543730242}
import {
    ADD_NEW_PATIENT_DETAILS,
    ADD_NEW_PATIENT_DIAGNOSIS,
    ADD_NEW_DIAGNOSIS_NUMBER,
    SAVE_ALL_ALLERGENS,
    SAVE_ALL_PROTOCOLS,
    ADD_DEMO,
    REMOVE_DEMO,
} from "./actionsTypes";


export const addPatient = patient => ({
    type: ADD_NEW_PATIENT_DETAILS,
    payload: { patient }
});

export const addDiagnosisNumber = number => ({
    type: ADD_NEW_DIAGNOSIS_NUMBER,
    payload: { number }
});

export const addDiagnosis = newDiagnosis => ({
    type: ADD_NEW_PATIENT_DIAGNOSIS,
    payload: { newDiagnosis }
});





export const saveAllAllergens = allergens => ({
    type: SAVE_ALL_ALLERGENS,
    payload: { allergens }
});


export const saveAllProtocols = protocols => ({
    type: SAVE_ALL_PROTOCOLS,
    payload: { protocols }
});









export const addDemo = demo => ({
    type: ADD_DEMO,
    payload: { demo }
});


export const removeDemo = demo => ({
    type: REMOVE_DEMO,
    payload: { demo }
});







