Skip to main content
QMSQMS
QMS
  • Welcome to your QMS
  • Quality Manual
  • Procedures
  • Records
  • Legit.Health Plus Version 1.1.0.0
  • Legit.Health Plus Version 1.1.0.1
  • Licenses and accreditations
  • Applicable Standards and Regulations
  • Grants
    • Planning
    • Instructions to LLM to generate a JSON with projects and tasks
    • Grant Project Generator - LLM Instructions
  • Public tenders
  • Grants
  • Grant Project Generator - LLM Instructions

Grant Project Generator - LLM Instructions

Task​

Generate a structured JSON file containing grant-eligible projects and tasks for Legit.Health's department planning.

Context​

I work for Legit.Health. I am the manager of the [XXXXXX] deparment.

Check out our website to see what we do: https://legit.health/

Also check the instructions for use: https://apidocs-draft.legit.health/

My boss asked me what projects do I have in mind for the coming years, so she can ask for grants and funding. Now, I will describe the projects I have in mind and then offer some clarifications.

I have created this [spreadsheet/list] containing the projects and tasks I have in mind for my department.

Schema Definition​

Project Object​

interface Project {
id: string; // Unique identifier (e.g., "ENS-CERT")
title: string; // Concise project name
description: string; // 1-2 sentence overview
priority: "high" | "medium" | "low";
estimatedStartDate: string; // ISO 8601 date format (YYYY-MM-DD)
estimatedDuration: string; // e.g., "12 months", "24 months"
totalEstimatedCost: number; // Sum of all task costs
tasks: Task[]; // Array of project tasks
}

Task Object​

interface Task {
id: string; // Unique identifier (e.g., "ENS-001")
title: string; // Concise task name
description: string; // Specific deliverables
needsSubcontractorHiring: boolean;
needsNewEmployeeHiring: boolean;
needsExistingEmployees: boolean;
hoursRequired: number; // Total hours (>0)
costEstimation: number; // EUR amount (>0)
purpose: Purpose[]; // Multiple selection allowed
targetCountry: Country; // Single selection
plCategory: PLCategory; // Single selection
}

Enumerations​

Purpose (multiple selection)​

  • "business_development"
  • "regulatory_requirement"
  • "research_development"

Country (single selection)​

  • "US", "ES", "FR", "DE", "IT", "UK", "unspecified"

P&L Category (single selection)​

  • Infrastructure: "variable_hosting", "fixed_hosting", "equipment_setup"
  • Development: "product_dev_consulting", "data_annotation", "dataset_acquisition", "prototype_development"
  • IP & Compliance: "patents_ip", "licenses_certifications", "clinical_validation"
  • Marketing: "pr_communications", "lead_generation", "website_sales_infra", "sales_tools", "collateral_material"
  • Admin: "admin_office", "admin_travel", "admin_hr", "admin_advisors", "admin_legal", "admin_funds", "admin_other"

Business Rules​

Resource Allocation​

  • At least one of needsSubcontractorHiring, needsNewEmployeeHiring, or needsExistingEmployees must be true
  • If hoursRequired > 0, at least one hiring/employee flag must be true

Purpose Classification​

Activity TypePrimary PurposeExamples
Documentation creationresearch_developmentTechnical docs, usability studies
Evidence generationresearch_developmentClinical trials, validation studies
Certification feesregulatory_requirementFDA submission, CE marking, SOC 2 audit
Market expansionbusiness_developmentNew country launch, partnership setup

Validation Rules​

  1. hoursRequired must be > 0 if any resource flag is true
  2. costEstimation must include all costs (labor + external)
  3. totalEstimatedCost must equal sum of all task costEstimation values
  4. Task id must be unique within project
  5. At least one purpose must be selected per task

Example Output​

{
"projects": [
{
"id": "ENS-CERT",
"title": "ENS Certification",
"description": "Achieve Spanish National Security Scheme certification for public healthcare contracts",
"priority": "high",
"estimatedStartDate": "2025-01-15",
"estimatedDuration": "12 months",
"totalEstimatedCost": 285000,
"tasks": [
{
"id": "ENS-001",
"title": "Security gap analysis",
"description": "Comprehensive assessment of current vs. required security measures",
"needsSubcontractorHiring": true,
"needsNewEmployeeHiring": false,
"needsExistingEmployees": true,
"hoursRequired": 200,
"costEstimation": 20000,
"purpose": ["research_development", "regulatory_requirement"],
"targetCountry": "ES",
"plCategory": "product_dev_consulting"
},
{
"id": "ENS-002",
"title": "Certification audit fees",
"description": "Payment to accredited certification body for ENS audit",
"needsSubcontractorHiring": false,
"needsNewEmployeeHiring": false,
"needsExistingEmployees": true,
"hoursRequired": 40,
"costEstimation": 15000,
"purpose": ["regulatory_requirement"],
"targetCountry": "ES",
"plCategory": "licenses_certifications"
}
]
}
]
}

Input Processing​

When provided with unstructured project descriptions:

  1. Identify discrete projects based on major objectives
  2. Break each project into measurable tasks
  3. Infer resource requirements from task descriptions
  4. Apply business rules for purpose classification
  5. Calculate costs based on provided estimates or industry standards
  6. Validate output against schema and rules
Previous
Instructions to LLM to generate a JSON with projects and tasks
Next
Public tenders
  • Task
  • Context
  • Schema Definition
    • Project Object
    • Task Object
  • Enumerations
    • Purpose (multiple selection)
    • Country (single selection)
    • P&L Category (single selection)
  • Business Rules
    • Resource Allocation
    • Purpose Classification
    • Validation Rules
  • Example Output
  • Input Processing
All the information contained in this QMS is confidential. The recipient agrees not to transmit or reproduce the information, neither by himself nor by third parties, through whichever means, without obtaining the prior written permission of Legit.Health (AI LABS GROUP S.L.)