15.1.309. tablet_qt/menu/setmenucpftadulteatingdisorders.cpp

/*
    Copyright (C) 2012, University of Cambridge, Department of Psychiatry.
    Created by Rudolf Cardinal (rnc1001@cam.ac.uk).

    This file is part of CamCOPS.

    CamCOPS is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    CamCOPS is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with CamCOPS. If not, see <https://www.gnu.org/licenses/>.
*/

#include "setmenucpftadulteatingdisorders.h"

#include "common/uiconst.h"
#include "lib/uifunc.h"
#include "menulib/menuitem.h"
#include "taskchains/cpftadulteatingdisorderscoiinanchain.h"
#include "taskchains/cpftadulteatingdisorderss3clinicalchain.h"
#include "tasks/aq.h"
#include "tasks/bmi.h"
#include "tasks/cet.h"
#include "tasks/chit.h"
#include "tasks/cia.h"
#include "tasks/edeq.h"
#include "tasks/eq5d5l.h"
#include "tasks/gad7.h"
#include "tasks/gbogpc.h"
#include "tasks/gbogras.h"
#include "tasks/gbogres.h"
#include "tasks/ided3d.h"
#include "tasks/isaaq10.h"
#include "tasks/isaaqed.h"
#include "tasks/paradise24.h"
#include "tasks/phq9.h"
#include "tasks/suppsp.h"
#include "tasks/swemwbs.h"

SetMenuCpftAdultEatingDisorders::SetMenuCpftAdultEatingDisorders(
    CamcopsApp& app
) :
    MenuWindow(app, uifunc::iconFilename(uiconst::ICON_DOLPHIN))
{
}

QString SetMenuCpftAdultEatingDisorders::title() const
{
    return tr("CPFT Adult Eating Disorders Service");
}

QString SetMenuCpftAdultEatingDisorders::subtitle() const
{
    return tr(
        "Cambridgeshire and Peterborough NHS Foundation Trust, UK — "
        "adult eating disorders service"
    );
}

void SetMenuCpftAdultEatingDisorders::makeItems()
{
    m_items = {
        MAKE_CHANGE_PATIENT(m_app),
        MenuItem(tr("Task chains")).setLabelOnly(),
        MAKE_TASK_CHAIN_MENU_ITEM(
            new CpftAdultEatingDisordersS3ClinicalChain(m_app)
        ),
        MAKE_TASK_CHAIN_MENU_ITEM(
            new CpftAdultEatingDisordersCoiinAnChain(m_app)
        ),

        MenuItem(tr("Generic measures")).setLabelOnly(),
        MAKE_TASK_MENU_ITEM(Eq5d5l::EQ5D5L_TABLENAME, m_app),
        MAKE_TASK_MENU_ITEM(Swemwbs::SWEMWBS_TABLENAME, m_app),
        MAKE_TASK_MENU_ITEM(Paradise24::PARADISE24_TABLENAME, m_app),

        MenuItem(tr("Specific conditions")).setLabelOnly(),
        MAKE_TASK_MENU_ITEM(Aq::AQ_TABLENAME, m_app),
        MAKE_TASK_MENU_ITEM(Bmi::BMI_TABLENAME, m_app),
        MAKE_TASK_MENU_ITEM(Cet::CET_TABLENAME, m_app),
        MAKE_TASK_MENU_ITEM(Cia::CIA_TABLENAME, m_app),
        MAKE_TASK_MENU_ITEM(Edeq::EDEQ_TABLENAME, m_app),
        MAKE_TASK_MENU_ITEM(Gad7::GAD7_TABLENAME, m_app),
        MAKE_TASK_MENU_ITEM(Phq9::PHQ9_TABLENAME, m_app),

        MenuItem(tr("Treatment/care")).setLabelOnly(),
        MAKE_TASK_MENU_ITEM(GboGReS::GBOGRES_TABLENAME, m_app),
        MAKE_TASK_MENU_ITEM(GboGPC::GBOGPC_TABLENAME, m_app),
        MAKE_TASK_MENU_ITEM(GboGRaS::GBOGRAS_TABLENAME, m_app),

        MenuItem(tr("Research")).setLabelOnly(),
        MAKE_TASK_MENU_ITEM(Chit::CHIT_TABLENAME, m_app),
        MAKE_TASK_MENU_ITEM(IDED3D::IDED3D_TABLENAME, m_app),
        MAKE_TASK_MENU_ITEM(Isaaq10::ISAAQ10_TABLENAME, m_app),
        MAKE_TASK_MENU_ITEM(IsaaqEd::ISAAQED_TABLENAME, m_app),
        MAKE_TASK_MENU_ITEM(Suppsp::SUPPSP_TABLENAME, m_app),
    };
}