トリグリセリド 単位変換 API¶
一貫したリスク評価に基づいたトリグリセリドの単位変換を実行します。
エンドポイント¶
GET /api/v1/triglycerides-units-converterPOST /api/v1/triglycerides-units-converter/post
パラメータ¶
| 名前 | タイプ | 必須 | クエリ/ボディ | 説明 |
|---|---|---|---|---|
value | 数値 | はい | クエリ/ボディ | トリグリセリドの測定値。 |
from_unit | 文字列 | はい | クエリ/ボディ | mg/dL または mmol/L。 |
to_unit | 文字列 | はい | クエリ/ボディ | mg/dL または mmol/L。 |
lang | 文字列 | いいえ | クエリ | レスポンス言語 (en,es,de,fr,pt,ja,hi,ar)。 |
このエンドポイントを使用する理由¶
- 1つの API 呼び出しで、混在したラボ単位のデータを正規化します。
- 変換後のリスクコンテキストを維持します。
- 臨床およびフィットネスアプリにおける単位処理エラーを削減します。
リクエストの例¶
curl -X GET "https://api.hefitapi.com/api/v1/triglycerides-units-converter?value=180&from_unit=mg/dL&to_unit=mmol/L&lang=en" \
-H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/triglycerides-units-converter/post?lang=en" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"value":2.1,"from_unit":"mmol/L","to_unit":"mg/dL"}'
レスポンスの例¶
Info
以下のレスポンス例は、デモンストレーションのみを目的としています。 このエンドポイントに対してライブリクエストを送信して、完全でリアルタイム、および可能性のあるより詳細な JSON 構造を受け取ります。
{
"value": 180.0,
"from_unit": "mg/dL",
"to_unit": "mmol/L",
"converted_value": 2.032,
"canonical_mg_dL": 180.0,
"tg_band": "borderline",
"tg_band_label": "Borderline",
"risk_signal": "Monitor triglycerides trend and lifestyle factors.",
"action_plan": ["Improve nutrition quality and activity consistency"],
"_enterprise": {"client": "Acme Health", "plan": "pro", "request_id": "4f19842aa161d638", "quota": 120, "usage_tracking": true},
"_api_metadata_": {"endpoint_name": "triglycerides_units_converter", "response_language": "en"}
}
製品のポジショニング¶
ラボダッシュボード、予防医療製品、および多地域の臨床アプリケーションに適しています。
備考
mg/dL と mmol/L のみが有効な単位です。
推奨されるエンドポイント¶
GET /api/v1/cholesterol-units-converter- コレステロール 単位 変換 APIGET /api/v1/blood-sugar-converter- 血糖値 変換 APIGET /api/v1/bmi- BMI APIGET /api/v1/tdee- TDEE APIGET /api/v1/bmr- BMR APIGET /api/v1/protein-calculator- タンパク質 計算 API