1. Service scope: from routine records to reviewable research
Real-world research and real-world data services support research organizations, healthcare institutions and sleep industry projects with question definition, data preparation, study design, analysis and evidence delivery. Their central task is to explain how the circumstances in which data arise relate to the research question. Delivering a clean table completes only one part of that work.
FDA defines real-world data (RWD) as routinely collected information about patient health or healthcare delivery. Real-world evidence (RWE) is clinical evidence about medical product use and potential benefits or risks derived from its analysis.[1] App visits, orders and product reviews therefore require classification by their actual purpose; coming from real users does not by itself make them clinical evidence.
1.1 Different commissions require different deliverables
| Service form | Result to specify in the commission |
|---|---|
| Data feasibility assessment | Observable populations, periods and variables; questions the existing sources cannot answer; whether additional collection is needed. |
| Data preparation and research datasets | Authorized extraction, mapping, linkage, quality flags and dictionaries, without a promised research finding. |
| Study execution and statistical analysis | Protocol, statistical analysis plan (SAP), cohort construction, analysis code, results and explanation of bias. |
| Ongoing registries and evidence updates | Rules for new records, quality monitoring, version freezes and update reports that explain changes from the previous release. |
Real-world research accommodates different designs. FDA's 2025 device guidance discusses observational studies and randomized studies using RWD, within the scope of device regulatory submissions.[2] The service cannot substitute a label for a protocol or guarantee regulatory acceptance. Consumer experience research, medical device evaluation and drug research need separate statements of their subjects and intended uses.
1.2 Deliver a feasibility conclusion before fixing the scope
A suggested first deliverable is a one-page question inventory: who is studied, what is compared, which outcomes are observed, when observation starts, how long it lasts, and which operations the data permission allows. Mark each item as directly available, requiring derivation or verification, requiring new collection, or unanswerable. Missing essential outcomes or comparators should prompt a narrower question or a different source, with the reason documented.
2. Sleep data: preserve source, measurement meaning and time structure
2.1 Identical names do not establish identical measurements
The following is a suggested source review table. Sleep researchers and data specialists should confirm field meanings together and adapt it to actual devices and institutions. It is not a statement of device performance.
| Data source | Material to review | Boundaries to confirm first |
|---|---|---|
| Clinical records and routine sleep tests | Recorded diagnoses, test results, treatment arrangements and follow-up | Preserve test type, scoring rules and report date; distinguish report summaries from raw signals. |
| Payment or claims records | Visits, prescriptions, procedures and costs | Explain coding and payment context; a prescription, payment or dispensing record does not establish ingestion or actual use. |
| CPAP and related device logs | Usage duration, sessions, device outputs and connectivity | Record model, algorithm version and upload window; create separate fields for usage, device-estimated residual events and clinical outcomes. |
| Wearables, bedside sensors and apps | Device-defined sleep intervals and movement or physiological derivatives | Record placement, valid-record rules and version; retain the vendor's sleep score name and scale instead of mapping it to a diagnosis. |
| Sleep diaries and questionnaires | Subjective sleep experience, timing, symptoms or function | Record completion time, recall window, instrument and language version; keep reports separate from sensor estimates. |
| Registries and research follow-up | Exposures, outcomes and covariates collected under a cohort's arrangements | Identify routine care and additional research fields; retain scheduled and actual follow-up times and reasons for non-completion. |
FDA's remote data acquisition guidance distinguishes verification of measurement accuracy and precision, validation in the proposed study population, and usability evaluation.[3] Evidence requested for a project should correspond to the function, model, version and context. AASM's 2018 position statement emphasizes validation and boundaries with medical evaluation; it is not an inventory of the regulatory status of every product in 2026.[4]
2.2 Connect the person, device, session and sleep episode
Suggested identifiers distinguish the research participant, source institution, study device, session and sleep episode. Specify rules for a participant changing devices, a device changing users, and one sleep episode spanning multiple sessions. Device serial numbers and identity linkage tables belong in an authorized environment; minimize analytic exports within the approved scope.
Time handling should preserve the original timestamp, time zone or offset, upload time and the study's rule for assigning an episode to a date. Provide examples for midnight crossings, daylight saving transitions, travel and daytime sleep among shift workers. Flag an absent time zone as unknown or apply a confirmed source rule; do not silently assume server time.
Distinguish the time-in-bed window, device recording window, estimated sleep duration and analyzable interval. Apply protocol rules to overlapping sessions, duplicate uploads, naps and interruptions before deriving metrics. Retain durations and exclusion reasons before and after each step so that failed synchronization is not converted to zero sleep or analyzable time described as full-day coverage.
3. Study design: specify comparators and time zero in the protocol
3.1 Establish what the study will estimate
A descriptive question might concern device-record coverage in a clinic cohort. A comparative question might concern usage behavior or predefined clinical outcomes under two follow-up services. A prediction question needs a prediction time and the information available then. Set the objectives and interpretation for each question type; descriptive changes should not be presented as intervention effects.
For causal comparisons, a target trial framework can organize eligibility, strategies, assignment, follow-up, outcomes, the target effect and analysis. It articulates a question rather than giving observational data randomized assignment.[5] Also deliver a list of important confounders and their measurement times, identifying unrecorded factors and proxy fields.
3.2 Example: comparing CPAP follow-up support
This fictional protocol review example illustrates procurement and acceptance questions and reports no actual effect. The comparison concerns a follow-up support service. CPAP logs provide a behavioral measure; symptoms or other clinical outcomes require separate definitions if studied.
| Protocol item | Definition to deliver | Review question |
|---|---|---|
| Target population | New users meeting the protocol conditions at specified institutions | Are established users mixed in? Can prior use be identified? |
| Compared strategies | Support service and a clearly described usual follow-up | Are content, start time and actual availability recorded? |
| Time zero | Rules for eligibility, strategy assignment and start of follow-up | Does future persistence determine eligibility or group membership? |
| Behavioral measure | Protocol-defined usage and coverage within a specified window | Is the denominator all days due for observation, uploaded days or valid-record days? |
| Clinical outcome | Separately defined symptoms, function or clinical measurement | Are baseline and follow-up measured with comparable conditions and versions? |
| Observation end | Planned endpoint, withdrawal, institution change or loss of source coverage | Can absent uploads distinguish discontinuation, failure and leaving the source? |
| Analysis and interpretation | Target effect, confounding, missingness and sensitivity analyses | Are severity, support circumstances and institutional distributions comparable? |
Do not promise a universal minimum sample size or valid-night count. Report independent participants, observation time, outcome events, key-field coverage, attrition and group comparability separately. Statistical staff should explain the sample size or precision assumptions for the particular outcome, expected difference, design and analysis unit.
4. Data services: explain the origin of every analytic field
4.1 Extraction, mapping and linkage
A suggested layered process starts with records verifiable in source systems, moves authorized extracts into controlled processing, and produces standardized data followed by a frozen study dataset. Where raw data cannot be copied, preserve queries, versions and execution records that can be checked in the source environment. A flow diagram should identify processors, storage locations, export boundaries and responsibility at each stage.
For important fields, record source table and column, original unit, conversion rule, code-list version, derivation formula, missing-value representation and quality flags. When using a common data model, list information that could not be mapped, was combined or was lost. A common table structure alone does not establish measurement equivalence.
Linkage across clinical records, questionnaires and device logs should deliver rules, matched and unmatched counts, conflict handling and review records. Examine linkage by institution, year, device type or study group, and check false and missed matches in an approved sample. A high match rate does not establish correct linkage. Data governance and authorization owners must first confirm which keys may be used.
4.2 Variable verification and reasons for missingness
FDA's July 2024 EHR and claims guidance addresses study-variable definitions and validation, distinguishing information not routinely collected from information expected but missing.[6] A project should separately record source-not-collected, not-measured, not-uploaded, unavailable-for-extraction and quality-excluded states. Preserve unknown reasons instead of hiding them in one null label.
For principal exposures, outcomes and high-impact fields, specify reference records, sampling, reviewers, disagreement resolution and coverage of institutions and versions. For natural language processing or AI extraction from clinical notes, provide field-level verification results and scope. Check negation, historical events, timing and units. Fluent model output is not an acceptance criterion for field correctness.
4.3 Acceptance metrics need denominators and disposition records
This suggested framework has no universal passing percentages. Agree thresholds before viewing comparative results, according to the importance of each question. When a threshold is missed, record its impact on analysis and conclusions and the remediation decision.
| Check | Suggested reporting definition | Reviewable deliverable |
|---|---|---|
| Field availability | People or intervals due for measurement, available values and reasons for absence | Missingness by institution, period and group; flags separating original and imputed values. |
| Time and record validity | Intervals due, collected, valid and excluded under stated rules | Valid-record rules and lists of overlaps, date-assignment and time-zone issues. |
| Linkage | Linkable objects, matches, unmatched objects and conflicts | Matching-rule version and approved sample review of false and missed matches. |
| Codes and units | Distinct codes or records requiring mapping and counts left unmapped | Mapping tables, unit-conversion history and unresolved fields. |
| Exposure and outcome verification | Sampling scope, reference standard and classification differences | Verification plan and results, with the population the sample represents. |
| Cohort construction | Counts and exclusion reasons at each step, including overlapping criteria | Rerunnable construction logic and participant flow. |
| Reproducible generation | Agreement of outputs for specified data, code and dependency versions | Freeze inventory, file checksums, execution logs and output comparison. |
| Unresolved issues | Main-analysis defects, owners and closure conditions | Issue register, rerun after repair and changes to conclusions. |
5. Common failures: more records cannot repair design errors
5.1 Review bias and error pathways before analysis
Original target trial methods research explains time-related bias from misaligning eligibility, strategy assignment and follow-up.[7] The following scenarios are editorial checks designed for sleep projects. The actual objective requires a corresponding analysis plan; completing a checklist does not prove that bias has disappeared.
| Failure scenario | Pathway affecting results | Review or handling to request |
|---|---|---|
| Selecting a cohort by future persistent uploading | Early withdrawals disappear; findings describe continuously observable people | Distinguish future selection conditions from baseline eligibility and rebuild for the target question. |
| Prioritizing high-risk patients for support | Pre-existing group differences enter the service comparison | Review baseline severity, institutions and support circumstances; explain adjustment and unmeasured factors. |
| Analyzing only fully uploaded nights | Disconnection, non-wear or discontinued use disappears from observation | Show all intended windows and reasons; compare findings under different missingness assumptions. |
| A metric shifts after an algorithm upgrade | A version change is interpreted as sleep or treatment change | Mark transitions; inspect stable-version periods and available bridging evidence. |
| Treating nights from one person as independent samples | Record count is mistaken for independent participant count | Distinguish participants and intervals; use estimation and uncertainty calculations appropriate to repeated measurements. |
| Randomly splitting nights for prediction validation | The same person enters training and validation, or future information enters predictors | Isolate participants, periods or institutions for the objective; restrict fields to the prediction time. |
| Repeatedly changing endpoints until significance appears | Analysis selection determines what is shown | Preserve the original plan, revisions and exploratory analyses; explain multiplicity and selection. |
Use of propensity scores, weighting, matching or regression should come with assumptions and diagnostics. Request explanations of group overlap, extreme weights, the matched population and unmeasured confounding, rather than merely checking successful software execution. If the data cannot support causal interpretation, use association or descriptive wording consistent with the design.
5.2 Deliver results together with population, conditions and uncertainty
Suggested result tables include the analytic population, observation window, units, denominators, estimates and uncertainty intervals. Distinguish prespecified, revised and exploratory analyses. Record sensitivity analyses concerning missingness, outcome definitions and version restrictions, including circumstances that change the conclusion. For subgroup differences, explain prespecification and information available; a significance value alone does not establish the population to which a result applies.
A study of sleep device logs may support particular descriptions of usage. Without measuring clinical outcomes, it cannot be rewritten as improvement in insomnia, apnea or health risks. Report questionnaire changes, device-output changes and clinical-outcome changes separately, and put limitations on extrapolation beyond the study population in the conclusion itself.
6. Delivery, access and maintenance
6.1 From protocol to frozen version
EMA's 2026 RWD quality framework concerns EU medicines regulation and discusses quality and data-processing lineage. This guide uses the final version published on 27 March 2026 rather than the earlier consultation draft.[8] A service contract can adapt the following package to a project; these editorial tables are not regulatory certification requirements.
| Delivery stage | Suggested acceptance content |
|---|---|
| Feasibility and initiation | Question inventory, source coverage, permission boundaries, research and data responsibilities, and unanswerable questions. |
| Design freeze | Protocol, SAP, variable dictionary, time rules, verification and quality plans, and approval or review records. |
| Dataset freeze | Extraction date, source and processing versions, cohort flow, quality report, authorized export content and file checksums. |
| Analysis and reporting | Code and dependencies, execution logs, result tables, sensitivity analyses, limitations and revisions. |
| Handover and updates | Materials rerunnable in an authorized environment, access and retention inventory, issue closure and update triggers. |
The research lead confirms questions and interpretation; source owners explain original records and permissions; the service provider performs processing, quality checks and analysis; statistical and domain reviewers confirm methods and measurements. Specify who in the subcontracting chain may access which data, approve rule changes and take responsibility for the final research interpretation.
6.2 Research authorization, ethics and privacy
China's Personal Information Protection Law classifies health information as sensitive and defines de-identification separately from anonymization.[9] Assess data that remain identifiable through a linkage table according to actual identifiability. Suggested controls separate linkage keys from analysis tables, restrict queries, exports and relinking, and inspect nocturnal audio, free text and fine-grained timestamps for identity clues.
China's 2023 ethical review measures cover relevant research using health records and behavioral information. Exemption from ethical review depends on the specified conditions.[10] Retain the responsible institution's determination of the review route, consent or applicable waiver. Retrospective design or absence of a new intervention does not alone establish exemption.
For US HIPAA contexts, HHS explains Expert Determination and Safe Harbor de-identification methods; confirm their scope and criteria for the project.[11] Chinese anonymization, HIPAA de-identification and replacement by a study identifier are not interchangeable labels. Confirm the authorized scope for inter-institutional or international access, secondary use and public release separately.
6.3 Change control and ongoing maintenance
New institutions, device or algorithm upgrades, coding changes, late records, permission changes and important corrections should trigger impact review. Preserve the prior freeze, compare new or corrected records with it, and recheck cohort counts, distributions, major quality issues and result differences. Changes to principal analysis rules require a protocol or SAP update explaining when and why the change occurred.
The maintenance plan should cover retention, access revocation and end-of-project disposition. The level of material retained for reproducibility must satisfy research needs, authorization and applicable rules together; reproducibility is not a reason to keep identifiable data indefinitely. Retired interfaces need an end date and a continuity plan, with subsequent reports identifying the changed observation coverage.
7. Sources and scope of application
The sources below support definitions, methods and jurisdictional boundaries. Procurement checks, sleep scenarios and delivery arrangements in this guide are editorial recommendations without universal passing thresholds or predetermined effect conclusions.
[1] FDA: Real-World Evidence. RWD and RWE definitions.
[2] FDA: Use of Real-World Evidence to Support Regulatory Decision-Making for Medical Devices. Final guidance dated 18 December 2025, superseding the 2017 version; device scope and designs.
[3] FDA: Digital Health Technologies for Remote Data Acquisition in Clinical Investigations. Final guidance, December 2023; verification, validation and usability.
[4] AASM: Consumer Sleep Technology position statement. J Clin Sleep Med, 2018;14(5):877–880. Used for validation and medical-evaluation boundaries.
[5] Hernán and Robins: Using Big Data to Emulate a Target Trial When a Randomized Trial Is Not Available. Am J Epidemiol, 2016;183(8):758–764. Organization of research questions.
[6] FDA: Real-World Data—Assessing Electronic Health Records and Medical Claims Data. Final guidance, July 2024; drug and biological product context, variable validation and missing information.
[7] Hernán et al.: Specifying a target trial prevents immortal time bias and other self-inflicted injuries in observational analyses. J Clin Epidemiol, 2016;79:70–75. Alignment of eligibility, assignment and follow-up.
[8] EMA: Data Quality Framework for EU medicines regulation—application to Real-World Data. EMA/503781/2024, final version published 27 March 2026; quality and lineage for EU medicines regulation.
[9] Personal Information Protection Law of the People's Republic of China. Official publication by the Shanghai Communications Administration; concepts in Articles 28 and 73, among others.
[10] National Health Commission: Measures for Ethical Review of Life Sciences and Medical Research Involving Humans. Guo Wei Ke Jiao Fa [2023] No. 4; review and exemption conditions for relevant research in China.
[11] HHS: HIPAA Privacy Rule de-identification guidance. Methods in the US HIPAA context.
[12] NMPA: announcement of the trial guideline on RWD for medical device clinical evaluation. Announcement No. 77 of 2020, officially republished by Hainan's drug and medical device evaluation service center. It concerns device clinical evaluation in China; pilot experience is not a universal market-access pathway for sleep products.