Apple & iOS
AuraScore 81/100

Academic ResearchKit Longitudinal Study Telemetry Framework

Architect an Apple ResearchKit and SensorKit data pipeline framework for university longitudinal clinical studies.

Deploy this framework when engineering academic medical and behavioral study applications on iOS. It provides strict guidelines for participant onboarding, active tasks, SensorKit data ingestion, and HIPAA/FERPA-compliant telemetry export.

Template

Role: Lead Biomedical iOS Software Engineer specializing in Apple ResearchKit and SensorKit framework integrations.

Context

  • Academic Medical Center: {{academic_medical_center}}
  • Longitudinal Research Scope: {{study_focus_area}}
  • Ingested Sensor Telemetry: {{sensor_telemetry_types}}
  • Regulatory Compliance Baseline: {{compliance_standard}}
  • Target Cohort Volume: {{participant_cohort_size}}
  • Downstream Research Export Target: {{export_format_target}}

Task

Construct a comprehensive ResearchKit and SensorKit longitudinal data pipeline and informed consent architecture that standardizes active task telemetry ingestion for {{academic_medical_center}}.

Method

  1. Define the ResearchKit Informed Consent module sequence, incorporating dynamic comprehension quizzes and PDF signature generation.
  2. Configure explicit SensorKit entitlement ingestion pipelines for {{sensor_telemetry_types}}, including authorization flow and cadence.
  3. Establish background sensor data aggregation schedules utilizing Apple HealthKit observer queries and encrypted local staging.
  4. Design the de-identification boundary where Participant Identifiers are cryptographically dissociated from raw biometric telemetry.
  5. Specify payload serialization pipelines transforming native iOS sensor samples into {{export_format_target}}.
  6. Formulate retry and backoff protocols for payload uploads during sporadic participant network connectivity.
  7. Detail study offboarding and consent withdrawal hooks ensuring complete local sensor purge pursuant to {{compliance_standard}}.

Constraints

  • Architecture MUST decouple identifiable consent records from sensor telemetry before transmission.
  • Raw sensor data MUST NOT be stored unencrypted outside the secure container.
  • Background telemetry processing MUST respect participant device thermal throttling and battery health limits.
  • Consent flows MUST require verifiable participant signature validation before granting sensor permissions.

Output format

  • Participant Onboarding & Consent Flow (Step-by-step state sequence, max 200 words)
  • Telemetry Acquisition Engine (Data pipeline specification detailing {{sensor_telemetry_types}} handling)
  • Data Sanitization & Export Pipeline (De-identification logic and schema definition for {{export_format_target}})
  • Regulatory Compliance Checklist (Structured mapping against {{compliance_standard}})

Self-review

  • Verify inclusion of all 6 context variables across the framework sections.
  • Ensure sensor sampling strategy does not exceed Apple platform background execution limits.
  • Check that consent revocation triggers an irrevocable local cache scrub.
AuraScore breakdown
81/100Provisional
Instruction clarity15/15 · Strong

Explicit role, a named task, and discrete steps the model can follow.

Context architecture12/12 · Strong

Background, inputs and variables the model needs before it starts.

Constraint engineering12/12 · Strong

Hard boundaries — what the model must and must not do.

Output specification6/14 · Thin

A named, field-level shape for the response.

Reasoning structure10/10 · Strong

Ordered work items that force analysis before an answer.

Model compatibility10/10 · Strong

Length and structure that travel across frontier models.

Token efficiency5/10 · Thin

Signal density — instruction weight without padding.

Reusability7/7 · Strong

Documented variables so the scaffold adapts to new inputs.

Robustness3/5 · Adequate

Quality bar, assumptions and behaviour when inputs are thin.

Observed performance1/5 · Thin

How much real usage the template has behind it.

developers
developers-apple
education-research
researchkit
sensorkit
clinical-trials