<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;

/**
 * KBTrainingQuestionsSeeder
 * Seeds 20 Q&A items for the Training knowledge base category.
 */
class KBTrainingQuestionsSeeder extends Seeder
{
    use KBQuestionSeederHelper;

    public function run(): void
    {
        $this->seedQuestions('training', $this->questions());
    }

    private function questions(): array
    {
        return [
            [
                'title'      => 'What training programmes does SSHIA offer?',
                'content'    => '<p>SSHIA offers a comprehensive range of training programmes designed to build the capacity of health informatics professionals in South Sudan. Programmes range from short courses to professional certificate programmes and are delivered in-person, online, and in blended formats.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['training', 'programmes', 'courses', 'SSHIA training'],
                'is_featured' => true,
                'answers'    => [
                    '<p>SSHIA currently offers the following training categories:</p><ul><li><strong>Health Information Systems (HIS)</strong> — DHIS2, OpenMRS, iHRIS, and other national health information platforms used in South Sudan.</li><li><strong>Data Management and Analysis</strong> — Data quality, data cleaning, statistical analysis using SPSS, R, and Excel.</li><li><strong>Digital Health</strong> — mHealth, telemedicine, electronic health records, and digital health strategy.</li><li><strong>Health Informatics Fundamentals</strong> — Introduction to health informatics for new entrants to the field.</li><li><strong>Leadership and Management</strong> — Health informatics leadership, project management, and change management.</li><li><strong>Research Methods</strong> — Health informatics research design, data collection, and publication.</li></ul><p>Training is delivered through workshops, webinars, self-paced online courses, and blended learning programmes. Check the SSHIA training calendar on the portal for upcoming sessions.</p>',
                    '<p>SSHIA also offers customised in-house training for organisations that want to build the health informatics capacity of their teams. Contact the SSHIA Training Department at training@sshia.org to discuss a tailored training package for your organisation.</p>',
                ],
            ],
            [
                'title'      => 'How do I register for an SSHIA training programme?',
                'content'    => '<p>Registering for SSHIA training is straightforward and can be done online through the member portal or at the SSHIA secretariat. Early registration is recommended as places are limited.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['registration', 'training registration', 'enrolment', 'sign up'],
                'answers'    => [
                    '<p>To register for an SSHIA training programme:</p><ol><li>Log in to the <strong>SSHIA Member Portal</strong> at sshia.org.</li><li>Navigate to <strong>Training &gt; Upcoming Programmes</strong>.</li><li>Browse available programmes and click on the one you wish to attend.</li><li>Click <strong>Register Now</strong> and complete the registration form.</li><li>Select your payment method and complete payment.</li><li>You will receive a confirmation email with programme details, venue (or online link), and pre-reading materials.</li></ol><p>Non-members can also register for selected open programmes. Visit the public training page on sshia.org for details.</p>',
                    '<p>If you are registering on behalf of multiple staff members from your organisation, contact the SSHIA Training Department directly at training@sshia.org for group registration and potential group discounts.</p>',
                ],
            ],
            [
                'title'      => 'What are the fees for SSHIA training programmes?',
                'content'    => '<p>SSHIA training fees vary by programme type, duration, and delivery mode. Members receive discounted rates on all training programmes.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['training fees', 'cost', 'payment', 'discounts'],
                'answers'    => [
                    '<p>Training fees are structured as follows:</p><ul><li><strong>Short courses (1–2 days)</strong>: SSP 10,000–25,000 for members; SSP 20,000–40,000 for non-members.</li><li><strong>Professional certificate programmes (4–8 weeks)</strong>: SSP 50,000–150,000 for members; SSP 100,000–250,000 for non-members.</li><li><strong>Online self-paced courses</strong>: SSP 5,000–30,000 depending on the course.</li><li><strong>Webinars</strong>: Free for members; SSP 5,000 for non-members.</li></ul><p>Fees are reviewed annually. Contact the SSHIA Training Department for current fee schedules and USD equivalents for international participants.</p>',
                    '<p>SSHIA offers a limited number of training scholarships each year for members from low-income backgrounds or remote areas. Apply through the portal under <strong>Training &gt; Scholarships</strong> before the programme start date.</p>',
                ],
            ],
            [
                'title'      => 'How do I obtain an SSHIA training certificate?',
                'content'    => '<p>SSHIA issues certificates to participants who successfully complete training programmes and meet the attendance and assessment requirements.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['certificate', 'training certificate', 'completion', 'certification'],
                'is_featured' => true,
                'answers'    => [
                    '<p>To receive an SSHIA training certificate, you must:</p><ol><li>Attend at least <strong>80% of the programme sessions</strong> (in-person or online).</li><li>Complete all <strong>required assessments</strong> (quizzes, assignments, or practical exercises) with a passing score of 60% or above.</li><li>Submit any required <strong>post-training reports or projects</strong> by the specified deadline.</li></ol><p>Certificates are issued digitally within 14 days of programme completion and can be downloaded from the portal under <strong>My Training &gt; Certificates</strong>. Physical certificates can be collected at the SSHIA secretariat or posted upon request.</p>',
                    '<p>SSHIA training certificates include a unique verification code. Employers and institutions can verify the authenticity of a certificate at sshia.org/verify. Certificates do not expire but reflect the date of completion.</p>',
                ],
            ],
            [
                'title'      => 'Can I attend SSHIA training if I am not a member?',
                'content'    => '<p>SSHIA training programmes are primarily designed for members, but selected programmes are open to non-members and the general public.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['non-member', 'open training', 'public training', 'eligibility'],
                'answers'    => [
                    '<p>Yes, non-members can attend selected SSHIA training programmes, particularly open workshops, public webinars, and introductory courses. Non-members pay a higher fee than members. If you plan to attend multiple SSHIA training programmes, it is more cost-effective to become a member first. Membership fees are often recovered within one or two training registrations through the member discount.</p>',
                    '<p>Some advanced or specialised training programmes are exclusively available to SSHIA members. These are clearly marked on the training calendar. To access the full range of SSHIA training, we recommend applying for membership before registering for training.</p>',
                ],
            ],
            [
                'title'      => 'What is DHIS2 and why is it important for health workers in South Sudan?',
                'content'    => '<p>DHIS2 (District Health Information Software 2) is the national health information system used in South Sudan and many other countries in Africa. Understanding DHIS2 is essential for health workers involved in data collection, reporting, and analysis.</p>',
                'difficulty' => 'intermediate',
                'tags'       => ['DHIS2', 'health information system', 'data reporting', 'South Sudan HIS'],
                'is_featured' => true,
                'answers'    => [
                    '<p>DHIS2 is an open-source, web-based health management information system developed by the University of Oslo and widely adopted across Africa, Asia, and Latin America. In South Sudan, DHIS2 is the primary platform for collecting, managing, and analysing routine health data from health facilities across all ten states. It is used by the Ministry of Health, county health departments, hospitals, and health centres to track disease surveillance, immunisation coverage, maternal and child health indicators, and other key health metrics. Health workers who understand DHIS2 can enter data accurately, generate reports, and use data for decision-making at facility and county levels.</p>',
                    '<p>SSHIA offers DHIS2 training at beginner, intermediate, and advanced levels. The beginner course covers data entry and basic report generation. The intermediate course covers data analysis, dashboard creation, and data quality checks. The advanced course covers system administration, customisation, and integration with other health systems. Check the SSHIA training calendar for upcoming DHIS2 training sessions.</p>',
                ],
            ],
            [
                'title'      => 'What is the difference between in-person and online SSHIA training?',
                'content'    => '<p>SSHIA offers training in multiple formats to accommodate participants from different locations and with different learning preferences.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['online training', 'in-person training', 'blended learning', 'remote learning'],
                'answers'    => [
                    '<p><strong>In-person training</strong> is conducted at the SSHIA training centre in Juba or at partner venues across South Sudan. It offers face-to-face interaction with trainers and peers, hands-on practical exercises, and immediate feedback. In-person training is recommended for practical skills such as DHIS2 data entry, laboratory informatics, and equipment operation.</p><p><strong>Online training</strong> is delivered via the SSHIA e-learning platform and includes live webinars, self-paced courses, and virtual workshops. Online training is accessible from anywhere with an internet connection and is ideal for participants outside Juba or with busy schedules.</p><p><strong>Blended learning</strong> combines online pre-learning with in-person practical sessions, offering the benefits of both formats.</p>',
                    '<p>For participants in remote areas of South Sudan with limited internet connectivity, SSHIA is developing offline-compatible training materials that can be downloaded and completed without a continuous internet connection. Contact the Training Department for the latest information on offline training options.</p>',
                ],
            ],
            [
                'title'      => 'How do I access the SSHIA e-learning platform?',
                'content'    => '<p>The SSHIA e-learning platform hosts all online and self-paced training courses. It is accessible to registered members and enrolled participants.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['e-learning', 'online platform', 'LMS', 'self-paced'],
                'answers'    => [
                    '<p>To access the SSHIA e-learning platform:</p><ol><li>Log in to the <strong>SSHIA Member Portal</strong> at sshia.org.</li><li>Navigate to <strong>Training &gt; E-Learning Platform</strong>.</li><li>You will see all courses you are enrolled in under <strong>My Courses</strong>.</li><li>Click on a course to begin or continue learning.</li></ol><p>The platform supports video lectures, reading materials, quizzes, and discussion forums. Progress is automatically saved, so you can pause and resume at any time. The platform is accessible on desktop and mobile browsers.</p>',
                    '<p>If you experience technical difficulties accessing the e-learning platform, clear your browser cache and try again. If the problem persists, contact the SSHIA Technical Support team at support@sshia.org with a description of the issue and a screenshot if possible.</p>',
                ],
            ],
            [
                'title'      => 'What is OpenMRS and how is it used in South Sudan?',
                'content'    => '<p>OpenMRS (Open Medical Record System) is an open-source electronic medical record system used in health facilities across South Sudan to manage patient data and clinical information.</p>',
                'difficulty' => 'intermediate',
                'tags'       => ['OpenMRS', 'electronic medical records', 'EMR', 'patient data', 'clinical informatics'],
                'answers'    => [
                    '<p>OpenMRS is a collaborative open-source project that provides a robust, scalable electronic medical record system for resource-limited settings. In South Sudan, OpenMRS is deployed in selected hospitals and health centres to manage patient registration, clinical encounters, diagnoses, medications, and laboratory results. It enables health workers to access complete patient histories, reduces duplication of records, and supports continuity of care. SSHIA offers OpenMRS training for health workers, IT staff, and system administrators at facilities using or planning to implement OpenMRS.</p>',
                    '<p>OpenMRS integrates with DHIS2, allowing aggregate data from patient records to be automatically reported to the national health information system. This integration reduces the burden of manual data entry and improves data accuracy. SSHIA training on OpenMRS-DHIS2 integration is available for intermediate and advanced participants.</p>',
                ],
            ],
            [
                'title'      => 'Does SSHIA offer training on data quality in health information systems?',
                'content'    => '<p>Data quality is a critical challenge in health information systems across South Sudan. Poor data quality undermines decision-making, resource allocation, and health outcomes. SSHIA addresses this through dedicated training programmes.</p>',
                'difficulty' => 'intermediate',
                'tags'       => ['data quality', 'health data', 'data accuracy', 'data management'],
                'answers'    => [
                    '<p>Yes, SSHIA offers a dedicated <strong>Data Quality in Health Information Systems</strong> training programme. The programme covers:</p><ul><li>Understanding the dimensions of data quality (accuracy, completeness, timeliness, consistency)</li><li>Common causes of poor data quality in South Sudan health facilities</li><li>Data quality assessment tools and frameworks (WHO Data Quality Review)</li><li>Practical techniques for data cleaning and validation in DHIS2</li><li>Building a data quality culture in health facilities</li><li>Reporting and using data quality findings for improvement</li></ul><p>The programme is available as a 3-day workshop and as a self-paced online course. It is recommended for data managers, M&E officers, and health information officers at all levels.</p>',
                    '<p>SSHIA also conducts data quality support visits to health facilities upon request. A team of SSHIA-trained data quality advisors can visit your facility, assess your data quality challenges, and provide on-site coaching. Contact the SSHIA Training Department to arrange a data quality support visit.</p>',
                ],
            ],
            [
                'title'      => 'What is iHRIS and does SSHIA offer training on it?',
                'content'    => '<p>iHRIS (Integrated Human Resources Information System) is an open-source software used to manage health workforce data in South Sudan and other countries.</p>',
                'difficulty' => 'intermediate',
                'tags'       => ['iHRIS', 'human resources', 'health workforce', 'HR information system'],
                'answers'    => [
                    '<p>iHRIS is a suite of open-source software tools developed by IntraHealth International to help countries manage their health workforce data. In South Sudan, iHRIS is used by the Ministry of Health to track health worker registration, deployment, training, and performance. It helps planners understand where health workers are located, identify gaps in the workforce, and plan for training and recruitment. SSHIA offers iHRIS training for HR officers, health workforce planners, and system administrators at the Ministry of Health and county health departments.</p>',
                    '<p>SSHIA iHRIS training covers system navigation, data entry, report generation, and basic system administration. Advanced training on iHRIS customisation and integration with other health systems is available for IT professionals. Contact the SSHIA Training Department for the current iHRIS training schedule.</p>',
                ],
            ],
            [
                'title'      => 'How does SSHIA training support the national health information system strategy of South Sudan?',
                'content'    => '<p>SSHIA training is aligned with the South Sudan National Health Information System (NHIS) Strategy and contributes to building the human resource capacity needed to implement the strategy effectively.</p>',
                'difficulty' => 'advanced',
                'tags'       => ['NHIS strategy', 'national health policy', 'capacity building', 'South Sudan health system'],
                'answers'    => [
                    '<p>The South Sudan NHIS Strategy identifies human resource capacity as one of the key pillars for strengthening the national health information system. SSHIA training directly supports this pillar by building the skills of health workers, data managers, and IT professionals in the tools and methods needed to collect, manage, analyse, and use health data effectively. SSHIA works closely with the Ministry of Health, WHO, UNICEF, and other partners to ensure that training content is aligned with national priorities and standards. SSHIA-trained professionals are deployed across all ten states of South Sudan, contributing to a more capable and resilient health information workforce.</p>',
                    '<p>SSHIA also contributes to the development of national training curricula and competency frameworks for health informatics. Members of the SSHIA Training Committee participate in national working groups on health workforce development and health information system strengthening, ensuring that SSHIA training remains relevant and responsive to the evolving needs of the South Sudan health system.</p>',
                ],
            ],
            [
                'title'      => 'Can I get a refund if I cancel my training registration?',
                'content'    => '<p>SSHIA has a training cancellation and refund policy that balances the needs of participants with the operational requirements of running training programmes.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['refund', 'cancellation', 'training cancellation', 'refund policy'],
                'answers'    => [
                    '<p>SSHIA training refund policy:</p><ul><li><strong>Cancellation 14+ days before the programme start date</strong>: Full refund minus a 10% administrative fee.</li><li><strong>Cancellation 7–13 days before the start date</strong>: 50% refund.</li><li><strong>Cancellation less than 7 days before the start date</strong>: No refund, but you may transfer your registration to another person or to a future session of the same programme.</li><li><strong>No-show without prior notice</strong>: No refund.</li></ul><p>To request a cancellation or transfer, contact the SSHIA Training Department at training@sshia.org with your registration details.</p>',
                    '<p>If SSHIA cancels or postpones a training programme, registered participants will receive a full refund or the option to transfer to the rescheduled session. SSHIA will notify participants at least 5 days in advance of any cancellation or postponement.</p>',
                ],
            ],
            [
                'title'      => 'What is the SSHIA Professional Certificate in Health Informatics?',
                'content'    => '<p>The SSHIA Professional Certificate in Health Informatics is a flagship training programme that provides a comprehensive foundation in health informatics for professionals working in the South Sudan health sector.</p>',
                'difficulty' => 'intermediate',
                'tags'       => ['professional certificate', 'health informatics certificate', 'flagship programme', 'qualification'],
                'is_featured' => true,
                'answers'    => [
                    '<p>The SSHIA Professional Certificate in Health Informatics is a structured 8-week programme covering:</p><ul><li>Foundations of health informatics and health information systems</li><li>Health data standards and interoperability</li><li>DHIS2 for routine health data management</li><li>Electronic health records and clinical informatics</li><li>Health data analysis and visualisation</li><li>Digital health and mHealth</li><li>Health informatics leadership and change management</li><li>Research methods in health informatics</li></ul><p>The programme is delivered in a blended format (online modules plus in-person workshops in Juba). Participants who complete all modules and pass the final assessment receive the SSHIA Professional Certificate, which is recognised by the Ministry of Health and partner organisations.</p>',
                    '<p>The programme is designed for health workers, data managers, M&E officers, IT professionals, and administrators working in the health sector who want to formalise and deepen their health informatics knowledge. No prior health informatics qualification is required, but participants should have at least one year of experience working in the health sector.</p>',
                ],
            ],
            [
                'title'      => 'How do I verify an SSHIA training certificate?',
                'content'    => '<p>SSHIA training certificates include a unique verification code that allows employers and institutions to confirm their authenticity online.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['certificate verification', 'training certificate', 'authenticity', 'verification'],
                'answers'    => [
                    '<p>To verify an SSHIA training certificate, visit <strong>sshia.org/verify</strong> and enter the certificate number printed on the certificate. The system will display the holder\'s name, the programme completed, the completion date, and the certificate status (valid or expired). This service is available to the public without requiring a login. Employers are encouraged to verify certificates before accepting them as proof of training completion.</p>',
                    '<p>If a certificate cannot be verified online, it may have been issued before the online verification system was introduced. In such cases, contact the SSHIA Training Department at training@sshia.org with the certificate details for manual verification.</p>',
                ],
            ],
            [
                'title'      => 'Does SSHIA offer training on telemedicine and remote health services?',
                'content'    => '<p>Telemedicine is increasingly important in South Sudan, where geographic barriers and limited health infrastructure make it difficult for patients in remote areas to access specialist care.</p>',
                'difficulty' => 'intermediate',
                'tags'       => ['telemedicine', 'remote health', 'digital health', 'mHealth', 'telehealth'],
                'answers'    => [
                    '<p>Yes, SSHIA offers training on telemedicine and remote health services as part of its Digital Health training category. The programme covers:</p><ul><li>Introduction to telemedicine and its applications in low-resource settings</li><li>Telemedicine platforms and tools used in Africa</li><li>Clinical protocols for telemedicine consultations</li><li>Data privacy and security in telemedicine</li><li>Setting up and managing a telemedicine service</li><li>Case studies from South Sudan and the East African region</li></ul><p>The programme is relevant for clinicians, health administrators, IT professionals, and policymakers involved in digital health initiatives.</p>',
                    '<p>SSHIA is also developing a South Sudan-specific telemedicine framework in collaboration with the Ministry of Health and international partners. Members who complete the telemedicine training programme will be well-positioned to contribute to and benefit from this initiative.</p>',
                ],
            ],
            [
                'title'      => 'What continuing professional development (CPD) opportunities does SSHIA offer?',
                'content'    => '<p>Continuing professional development is essential for health informatics professionals to keep pace with rapidly evolving technologies, standards, and practices.</p>',
                'difficulty' => 'intermediate',
                'tags'       => ['CPD', 'continuing education', 'professional development', 'lifelong learning'],
                'answers'    => [
                    '<p>SSHIA offers a structured CPD programme for members, including:</p><ul><li><strong>Monthly webinars</strong> on current topics in health informatics (free for members)</li><li><strong>Annual SSHIA Conference</strong> — a major professional development event featuring keynote speakers, workshops, and networking</li><li><strong>Short courses and workshops</strong> throughout the year on emerging topics</li><li><strong>Online self-paced courses</strong> on the SSHIA e-learning platform</li><li><strong>Journal club</strong> — monthly discussions of recent health informatics research</li><li><strong>Peer learning groups</strong> — facilitated small-group learning communities for members with shared interests</li></ul><p>SSHIA CPD activities are assigned CPD points. Members are encouraged to accumulate at least 20 CPD points per year to maintain their professional standing.</p>',
                    '<p>SSHIA CPD records are maintained in the member portal. You can view your CPD history and download a CPD transcript under <strong>My Profile &gt; CPD Record</strong>. CPD transcripts are useful for job applications, performance reviews, and professional registration renewals.</p>',
                ],
            ],
            [
                'title'      => 'How does SSHIA training address the specific health challenges of South Sudan?',
                'content'    => '<p>South Sudan faces unique health challenges including conflict, displacement, disease outbreaks, and limited health infrastructure. SSHIA training is designed to be contextually relevant and practically applicable in the South Sudan setting.</p>',
                'difficulty' => 'advanced',
                'tags'       => ['South Sudan health', 'contextual training', 'health challenges', 'conflict settings'],
                'answers'    => [
                    '<p>SSHIA training incorporates South Sudan-specific content throughout all programmes, including:</p><ul><li>Case studies from South Sudan health facilities and counties</li><li>Training on the specific health information systems used in South Sudan (DHIS2, OpenMRS, iHRIS)</li><li>Modules on health data management in humanitarian and conflict settings</li><li>Content on disease surveillance for conditions prevalent in South Sudan (malaria, cholera, measles, acute watery diarrhoea)</li><li>Training on health data collection in areas with limited connectivity</li><li>Modules on working with displaced populations and refugee health data</li></ul><p>SSHIA trainers are South Sudanese health informatics professionals with direct experience working in the country\'s health system, ensuring that training is grounded in local realities.</p>',
                    '<p>SSHIA also collaborates with international organisations such as WHO, UNICEF, MSF, and IRC to develop training content that addresses the intersection of health informatics and humanitarian response. This ensures that SSHIA-trained professionals are equipped to work effectively in both development and emergency contexts.</p>',
                ],
            ],
            [
                'title'      => 'What is the SSHIA training calendar and how do I access it?',
                'content'    => '<p>The SSHIA training calendar lists all upcoming training programmes, workshops, webinars, and events for the current year. It is updated regularly as new programmes are added.</p>',
                'difficulty' => 'beginner',
                'tags'       => ['training calendar', 'schedule', 'upcoming training', 'events'],
                'answers'    => [
                    '<p>The SSHIA training calendar is available on the public website at sshia.org/training and in the member portal under <strong>Training &gt; Training Calendar</strong>. The calendar shows all upcoming programmes with dates, venues (or online links), fees, and registration deadlines. You can filter the calendar by training category, delivery mode (in-person, online, blended), and date range. Click on any programme to view full details and register.</p>',
                    '<p>SSHIA also sends a monthly training newsletter to all members with highlights of upcoming programmes and early registration discounts. Ensure your email address is up to date in the portal to receive the newsletter. You can also follow SSHIA on social media for training announcements.</p>',
                ],
            ],
            [
                'title'      => 'Can SSHIA training be recognised for academic credit?',
                'content'    => '<p>SSHIA is working to establish formal recognition arrangements with academic institutions so that SSHIA training can contribute to academic qualifications.</p>',
                'difficulty' => 'advanced',
                'tags'       => ['academic credit', 'recognition', 'university', 'accreditation'],
                'answers'    => [
                    '<p>SSHIA is currently in discussions with the University of Juba and other academic institutions in South Sudan and the region to establish credit recognition arrangements for SSHIA training programmes. Under these arrangements, completion of specified SSHIA programmes would be recognised as equivalent to academic modules, allowing participants to use their SSHIA training towards a formal qualification. Updates on these arrangements will be communicated through the SSHIA website and member newsletter.</p>',
                    '<p>In the meantime, SSHIA training certificates are widely recognised by employers, government ministries, and international organisations operating in South Sudan as evidence of professional competence. Many SSHIA members have used their training certificates to support applications for promotions, new positions, and international opportunities.</p>',
                ],
            ],
        ];
    }
}