{
  "address": "cf2d365700cdf435fce5cc3400588a76",
  "category": "other",
  "question": "Using this general formula, what is the total dose for a 70 kg patient at 5 mg/kg capped at a maximum of 500 mg?",
  "answer": "350.00 mg",
  "askedBy": {
    "kind": "guest",
    "display": "method deck",
    "stamped": false,
    "id": null
  },
  "answeredBy": "method",
  "madeAt": "2026-09-30T22:39:30.722Z",
  "validUntil": null,
  "validityClass": "forever",
  "sources": [
    {
      "label": "General pharmacology dosing-by-weight method",
      "url": null
    }
  ],
  "supersedes": null,
  "supersededBy": null,
  "isSeed": false,
  "seedSource": null,
  "seedAttribution": null,
  "duplicateOfQid": null,
  "publishedAt": null,
  "unpublishedAt": null,
  "voteCount": 0,
  "queuedForSubstrate": false,
  "answerMethod": "method",
  "unsourced": false,
  "source": {
    "kind": "edition_page",
    "value": "Standard weight-based dosing arithmetic (dose = weight x dose-per-kilogram, capped at a maximum where clinically indicated)",
    "retrieved_utc": "2026-09-30T19:25:00Z"
  },
  "qsha256": "d78d50cf17877e8de70223e0c7cfe3c558132482f9a4c79ff5cf7173a415ff08",
  "runOne": null,
  "cardContractVersion": "card_contract/1",
  "deck_id": "method-deck",
  "deck_title": "Method Deck",
  "method": {
    "name": "Weight-based dose (general formula)",
    "version": "1",
    "source_url_or_file": "methods/dose-by-weight.cjs",
    "sha256_of_method_file": "4dc4e7d92dbb70db8a5741d381d6fec685311124f494a57022c790937b482a6b"
  },
  "receipt": {
    "inSubstrate": false,
    "local": true,
    "modelCallsAtMint": 0,
    "tokensAtMint": 0
  },
  "method_deck": {
    "inputs": [
      {
        "name": "weight_kg",
        "type": "number",
        "unit": "kg",
        "required": true,
        "description": "Body weight in kilograms",
        "min": 0
      },
      {
        "name": "dose_per_kg",
        "type": "number",
        "unit": "as given by dose_per_kg_unit",
        "required": true,
        "description": "Dose amount per kilogram of body weight",
        "min": 0
      },
      {
        "name": "dose_per_kg_unit",
        "type": "string",
        "required": true,
        "description": "Unit of dose_per_kg, for example mg/kg or mcg/kg",
        "min": 1
      },
      {
        "name": "max_dose",
        "type": "number",
        "unit": "same unit as the computed dose",
        "required": false,
        "description": "Optional maximum total dose cap",
        "min": 0
      }
    ],
    "outputs": [
      {
        "name": "total_dose",
        "unit": "same base unit as dose_per_kg_unit",
        "description": "Computed total dose, capped at max_dose if provided and exceeded"
      }
    ],
    "steps": [
      "raw_dose = weight_kg * dose_per_kg.",
      "If max_dose is provided and raw_dose exceeds it, total_dose = max_dose; otherwise total_dose = raw_dose.",
      "Round the result to 2 decimal places."
    ],
    "constants": [],
    "examples": [
      {
        "name": "worked example",
        "inputs": {
          "weight_kg": 70,
          "dose_per_kg": 5,
          "dose_per_kg_unit": "mg/kg",
          "max_dose": 500
        },
        "expected": {
          "answer": "350.00 mg"
        },
        "check": "70 * 5 = 350, which is below the 500 mg cap, so total_dose = 350.00."
      },
      {
        "name": "test vector: cap applies",
        "inputs": {
          "weight_kg": 120,
          "dose_per_kg": 5,
          "dose_per_kg_unit": "mg/kg",
          "max_dose": 500
        },
        "expected": {
          "answer": "500.00 mg"
        },
        "check": "120 * 5 = 600, which exceeds the 500 mg cap, so total_dose is capped at 500.00."
      }
    ],
    "disclaimer": "General formula only. Not medical advice. Dosing decisions belong to a licensed clinician and the product's label.",
    "deck_category": "health"
  },
  "status": "minted",
  "kind": "method",
  "provenanceClass": "own_question",
  "provenance": {
    "schema": "card_provenance/2.0.0",
    "chain": [
      {
        "source": {
          "kind": "edition_page",
          "value": "Standard weight-based dosing arithmetic (dose = weight x dose-per-kilogram, capped at a maximum where clinically indicated)",
          "retrieved_utc": "2026-09-30T19:25:00Z"
        },
        "sha256": "d640831c57fe1e0c1e9170992f9d5403ba5fe77c818690f7f5c862a8e08e3fe7",
        "supersedes": null,
        "added_utc": "2026-09-30T22:39:30.722Z",
        "added_by": "method:Weight-based dose (general formula)",
        "why": "the method that computed this answer",
        "check": null,
        "status_label": "pending",
        "signature": null
      }
    ]
  }
}
