{
  "tool": "matric-nqf4.agrisci_npk",
  "name": "Fertiliser nutrient mass (CDU-GEN-NSC-400)",
  "answers": "The mass of N, P and K in a bag from its stated percentages.",
  "degree": {
    "id": "competency:matric-nqf4",
    "code": "CDU-GEN-NSC-400",
    "name": "Senior Certificate (Amended) — exam-readiness programme (NQF 4 matric)",
    "version": "1.0.0"
  },
  "reference": "Umalusi/NSC subject catalogue, worked reference (offline reconstruction); Agricultural Sciences row of §4 — nutrient mass from a fertiliser label",
  "endpoint": "/faculty/matric-nqf4/agrisci_npk",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "bagMassKg",
      "nPercent",
      "pPercent",
      "kPercent"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "bagMassKg": {
        "type": "number",
        "description": "bag mass (kg, > 0) (kg)",
        "minimum": 0.001,
        "maximum": 100000
      },
      "nPercent": {
        "type": "number",
        "description": "N (%)",
        "minimum": 0,
        "maximum": 100
      },
      "pPercent": {
        "type": "number",
        "description": "P (%)",
        "minimum": 0,
        "maximum": 100
      },
      "kPercent": {
        "type": "number",
        "description": "K (%)",
        "minimum": 0,
        "maximum": 100
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "massN",
      "massP",
      "massK"
    ],
    "properties": {
      "massN": {
        "type": "number",
        "description": "kg of N"
      },
      "massP": {
        "type": "number",
        "description": "kg of P"
      },
      "massK": {
        "type": "number",
        "description": "kg of K"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "bagMassKg": 50,
    "nPercent": 10,
    "pPercent": 6,
    "kPercent": 4
  }
}