← 返回
数据分析 中文

OnlyBaby

Analyze contraction JSON and baby log JSON to assess mum's labour/contraction situation and baby's feeding and diaper status. Use when the user provides (or references) contractions_*.json and babyLogs_*.json files and wants to know if mum is safe and baby is healthy, or asks for a summary of contractions, feeding, or diaper changes.
分析收缩JSON和婴儿日志JSON,评估妈妈的宫缩情况以及宝宝的喂养和尿布状态。当用户提供(引用)contractions_*.json和babyLogs_*.json文件,并想了解妈妈是否安全、宝宝是否健康,或请求收缩、喂养、尿布更换的摘要时使用。
jacklandrin
数据分析 clawhub v1.0.0 1 版本 99781.7 Key: 无需
★ 1
Stars
📥 1,808
下载
💾 40
安装
1
版本
#latest

概述

Analyze Mum & Baby Logs

Analyze two JSON data sources to produce a safety and health summary: mum's contraction situation and baby's milk feeding and diaper change status. Always end with a clear verdict and any recommendations.

When to Use

  • User provides or references contraction and baby log JSON files (e.g. contractions_.json, babyLogs_.json).
  • User asks whether mum is safe, baby is healthy, or for a summary of contractions / feeding / diapers.

Input Files

  1. Contractions JSON – Array of objects with id, startTime, endTime (ISO 8601).
  2. Baby logs JSON – Object with babyLog (array of entries) and birthday (ISO 8601). Each entry has id, timestamp, type, and type-specific details:
    • type === "feeding": feedingDetails.volumeML (number, mL).
    • type === "diaper": diaperDetails.hasPee, diaperDetails.hasPoo (booleans).
    • type === "breastFeeding": breastFeedingDetails.durationSeconds (number).

See references/schemas-and-thresholds.md for exact schemas and health/safety thresholds.

Workflow

1. Load and parse both JSON files

  • Resolve file paths from user message or workspace (e.g. Downloads, project paths).
  • Parse contractions as an array; baby data as object with babyLog and birthday.

2. Analyze contractions

  • Sort contractions by startTime (ascending = chronological).
  • For each contraction compute duration = endTime - startTime (in seconds/minutes).
  • Compute interval = time from previous contraction's endTime to current startTime (minutes). For the first contraction, interval is N/A.
  • Summarize: count, time range of data, typical duration, typical interval, and any pattern (e.g. regular vs irregular).
  • Apply safety rules from references/schemas-and-thresholds.md (e.g. 5-1-1 rule, when to seek care).

3. Analyze baby logs

  • From birthday and latest log timestamp, compute baby's age (e.g. days or weeks).
  • Split babyLog by type: feeding, diaper, and breastFeeding.
  • Feeding (bottle/expressed): extract feedingDetails.volumeML and timestamp. Compute total volume and feed count over last 24 h (and optionally last 48 h). Compute average volume per feed, average volume per hour (total mL / hours in window), and approximate interval between feeds.
  • BreastFeeding: extract breastFeedingDetails.durationSeconds and timestamp. Compute session count and total duration (e.g. total minutes) over last 24 h (and optionally last 48 h). Optionally report average session length.
  • Diaper: count wet (diaperDetails.hasPee), dirty (diaperDetails.hasPoo), and both. Compute counts over last 24 h (and optionally last 48 h).
  • Compare to age-appropriate thresholds in references/schemas-and-thresholds.md (feeds/sessions per day, wet/dirty diaper expectations).

4. Produce report and verdict

Output:

  1. Mum – Contraction summary

Count, date range, duration/interval stats, pattern. Then: Mum safe? (Yes / Monitor / Seek care) with short reason and any next step (e.g. "Continue timing; if 5-1-1, go to hospital").

  1. Baby – Feeding & diaper summary

Age; bottle feeds in last 24 h (count + total mL); breastfeeding sessions in last 24 h (count + total duration if present); diapers in last 24 h (wet/dirty). Then: Baby healthy? (Yes / Monitor / Concern) with short reason and any recommendation (e.g. "Ensure 8+ feeds and 6+ wet diapers per day").

  1. Caveat

One line: this is not medical advice; when in doubt, contact a midwife, OB, or paediatrician.

Output format

Use clear headings and bullet points. Lead with the two verdicts (mum safe? baby healthy?) then expand with numbers and brief reasoning. Keep the report scannable and under one screen where possible.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 18:26 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Stock Analysis

udiedrichsen
{"answer":"基于雅虎财经数据,分析股票与加密货币。支持投资组合管理、自选股预警、股息分析、8维评分、热门趋势扫描及传闻/早期信号探测。适用于股票分析、持仓追踪、财报异动、加密监控、热门股追踪或提前发掘非主流传闻。"}
★ 270 📥 56,930
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,027
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 367 📥 140,276