Routinely collected primary healthcare data can be used to conduct cost-effective research that provides real-world health insights and health benefits. Such research has wide-ranging potential to impact health, economic and socio-cultural outcomes and health policy.
Full article available to subscribers
Routinely collected primary healthcare data can be used to conduct cost-effective research that provides real-world health insights and health benefits. Such research has wide-ranging potential to impact health, economic and socio-cultural outcomes and health policy.1 Health researchers can use primary healthcare data to identify which treatments work best for specific patient groups.2 Health outcomes can be improved through better understanding of disease, leading to more effective prevention strategies, earlier diagnosis and better-informed models of health. Research provides the necessary evidence to support system-level health policy change. This has the potential to increase equity, as well as the alignment and influence of health priority goals. Within an Aotearoa New Zealand context this is especially important because of the impact that colonisation and racism have on health outcomes for Māori (Indigenous New Zealanders).3 For multiple medical conditions, Māori are less likely to receive timely diagnosis and treatment compared to Pākehā (New Zealand Europeans).3 Any research that occurs through New Zealand primary healthcare data analysis needs to benefit all New Zealanders. Health improvements resulting from the above can contribute to broader wellbeing, social participation and workforce productivity.
Primary healthcare is the entry point to the New Zealand health system, with around 75% of the population visiting a general practice annually. All clinical and administrative activities undertaken in primary healthcare settings are recorded in the electronic health record or patient management system (PMS), for example clinician notes, diagnoses, prescriptions and test results. These data contribute to, and can be linked with, various national datasets for research purposes.4 Primary healthcare records contain granular data across the human lifespan: given the widespread early use of PMS in New Zealand, up to several decades of individual patient-level data are potentially available, including whānau (family) history of disease, past or current acute and chronic disease, abnormal clinical events or measurements and procedures, and prescribing and other summary data.
Primary healthcare data offers considerable potential for understanding the aetiology and sequelae of disease. However, there are some major caveats to using these data; it is often stored in free-text form or idiosyncratically coded, potentially limiting its utility for research.4,5 Accessing national-level data is difficult because there is no single primary healthcare data repository in New Zealand. Across the health system, health data are separated by discipline and care setting. Primary healthcare data are further siloed by various point-of-care PMSs operating in individual practices. Primary healthcare data are not well-linked to other datasets. Collation of some health data occurs via primary health organisations (PHOs) contracted by the government to provide regional primary healthcare services, but this is principally for funding and service allocation rather than research. National health datasets are relied upon for research and policy development, such as the National Minimum Data Set (births, deaths, hospital admissions and discharges) and the Pharmaceutical Collection (prescriptions). However, these data provide only an incomplete understanding of population health and service use. The largest New Zealand research dataset, the Integrated Data Infrastructure (IDI), includes general practice enrolment and community prescribing data, but no other primary healthcare data (see: https://www.stats.govt.nz/integrated-data/integrated-data-infrastructure/).
One solution to improve access is to develop a research network which provides the infrastructure to collate and link health data for research purposes.6,7 This concept underpins the regional Southern Primary Care Research Network (SPCRN) (Otago and Southland) and is used across the South Island by Te Waipounamu data collective.4,8 SPCRN data access is controlled by a governance group, co-governed 50:50 with Māori; members are clinicians, Pacific peoples, community and academics. Data access is limited to accepted researchers who have gained ethical approval for a specific project.4
The research network approach has been successfully used for decades internationally.6 The United Kingdom (UK) makes particularly good use of primary healthcare data via numerous research networks, including the Clinical Practice Research Datalink (see: https://www.cprd.com), QResearch (see: https://www.qresearch.org) and the Oxford-RCGP Research and Surveillance Centre (see: https://www.rcgp.org.uk). The United States of America (USA) also uses these routinely collected data effectively via practice-based research networks, supported by the Agency for Healthcare Research and Quality (see: https://www.ahrq.gov/ncepcr/communities/pbrn/index.html), as do many other countries.6
To overcome the current challenges of accessing primary healthcare data in New Zealand, three new complementary methodological and technical solution pathways are described here as 1) platform-level, 2) algorithm-level and 3) data-level approaches, together with the advantages and limitations of each (Box 1).
View Box 1.
Building on the strengths of these three pathways, a practical and scalable solution could centre on the generation of multimodal synthetic datasets, where both clinical text and structured tabular features are co-generated to reflect the complexity of real-world patient records. This approach provides a foundation for capacity building and methodological development, enabling research without exposing sensitive patient information (e.g., where the original identifiable or sensitive personal primary care data can remain at source). While not essential, federated learning offers a valuable option for collaborative model training across institutions, allowing the use of diverse datasets without centralising raw data. Similarly, TREs can enhance the approach by securely hosting synthetic datasets and co-ordinating federated learning activities, supporting governance, auditability and legal compliance. By prioritising data-level innovation and optionally integrating platform-level and algorithm-level enhancements, this strategy offers a promising pathway to unlock the potential of primary care data. However, given the limitations of each individual approach described above, robust discussion on the ethics and safety of data-level approaches within a New Zealand context is required.
Māori data governance is a critical factor in the New Zealand context. The Māori health data governance model, based on the eight pou (pillars) from Te Kāhui Raraunga Māori data governance model, provides a basis for discussion on the technical approaches described above, particularly relating to the development of a synthetic dataset.11,12 This model incorporates the concept of data sovereignty, which relates to the rights and interests Māori have in relation to Māori data.12 The first six pou are the most relevant, and some discussion questions follow. The questions within each pou are intended to be a starting point to identify potential risks and benefits of a synthetic data set. Answering these questions and discussions with stakeholder groups, including Māori, will need to occur prior to the development of a national primary healthcare dataset, whatever approach is taken.
The technical approaches described above raise specific ethical concerns but should also direct our attention to bigger philosophical questions; the potential integration of synthetic datasets requires consideration of value prioritisation and paradigmatic differences in data sharing approaches. The main specific ethical concerns relate to re-identification, transparency, bias and fairness. Privacy considerations and requirements may limit the extent to which health data can be shared for research.19 Although synthetic data has the potential to address privacy concerns that currently hinder data sharing, risks of re-identification remain.20 This means that staying close to the original data will need to be balanced against privacy goals in these datasets. The lack of understanding exactly how AI models generate synthetic data further contributes to questions of representation: can synthetic data represent the realities of healthcare accurately?21 Synthetic datasets offer the potential to correct for certain biases, but are also at risk of perpetuating or amplifying biases that exist in the source data.22 Māori datasets are known to have errors, and if used for the development of synthetic datasets will both limit the benefit of synthetic datasets and increase the potential for harm, further reducing equity.23,24
The distance synthetic datasets create between data and data subjects aims to protect privacy and confidentiality; at the same time, this distance may have unintended negative consequences in terms of fairness and community engagement.25 The distance makes it harder to ensure any benefits derived from the data return to the data subjects. Moreover, when researchers rely on synthetic datasets, there is less incentive to engage with communities, in particular underserved or under-represented populations.25 Overall, to be successful, synthetic datasets will require robust governance, monitoring of data quality, identification and mitigation of potential bias and awareness of potential group harm.20,21,25 Consideration should also be made that the original real-world data be used to verify findings whenever possible.
Globally, two different stewardship models for health data sharing can be discerned: an open-access model and a governance model. The differences in underlying values and methods are significant enough to consider them as two separate paradigms.
For the open-access model (e.g., TREs), accessibility for researchers is the main priority.2 Privacy is protected through de-identification and new avenues, such as the creation of synthetic datasets as described above. Although there is no direct link with patient data, reciprocity and community governance remain important ethical principles. To uphold these principles, UK health research funders (e.g., the National Institute for Health and Care Research and the Medical Research Council) require researchers to include active participation of patients and the public in their research. This has led to research team development that includes patients and the public as co-investigators (e.g., to support study design, data and results interpretation, and dissemination/knowledge transfer). There is a minimum expectation that some research funding is dedicated to help facilitate public participation and a growing expectation from journals such as the British Medical Journal to include statements describing public involvement.
In the governance model, access to data is controlled or restricted. Researchers need to present their plans to a governance group that manages data access. There is less emphasis on de-identification or anonymisation, as the fact that data may be identifiable or that there is a risk of re-identification is considered in the regulatory process. Reciprocity and transparency are prioritised: ensuring benefits from the research go back to the data subjects, understanding and mitigating bias and carefully monitoring outputs from the research are key attention points of the governance work. In the latter model, there is a closer relationship between the data subjects and the researchers. One example of how this governance model can be realised is provided by the recently developed Rakeiora Genomics Platform that is already being applied to whole-genome DNA sequencing data.26
The UK primary healthcare synthetic dataset (OpenSAFELY) has been developed and constructed within the open-access model. However, this does not preclude the use of synthetic data in a governance model. Synthetic data may be useful to help fill data gaps and balance representation in data sets, and communities could be involved in decision-making around the use of synthetic datasets.25 A synthetic national health dataset based on routinely collected primary healthcare data, leveraging these sophisticated methods of leaving data in situ and providing improved access, could be an important resource for “public good” research and public policy creation.27,28 Encouraging more systematic coding of disease within primary healthcare records (for example using SNOMED-CT codes), would permit more straightforward and robust analyses, particularly for chronic conditions.
The New Zealand public recognise there are benefits to sharing their healthcare data and are willing to share anonymised health information for research purposes, with appropriate safeguards in place.29,30 A discussion on how to best share primary health data for research in New Zealand is needed. Māori data governance frameworks are ideally positioned to form the basis of such a discussion and are easily adaptable to consider new technological methods.11 In a governance model, a national data infrastructure could be created with strict governance over the data and access. In an open-access model, datasets could be de-identified or synthesised, with the aim of sharing primary healthcare data as widely as possible for research. These are different models that require different infrastructures.
Regional networks with capacity to link primary healthcare data for research are already operational in some parts of New Zealand, such as the SPCRN.4 PHOs are well placed to access primary healthcare data as they usually have some capacity to do this already. A first step is to empower all PHOs to permit health data access for research. The next step is to collate regional primary healthcare data into larger groupings, such as the agreement made by the Te Waipounamu data collective.8 A national primary healthcare data–sharing agreement between New Zealand PHOs and a central organisation responsible for the data governance and administration has potential to improve the research capacity and capability of primary health researchers. From here, considerations may be given to consider whether following the UK example of developing TREs and/or a synthetic dataset is appropriate for New Zealand.
New Zealand lacks an integrated national primary care research approach that can interrogate routinely collected primary healthcare data and is missing out on the potential benefits of research using these data. Some regions have taken steps to improve data access for researchers; however, access across New Zealand is patchy, and no national collection exists. International experience suggests various technical methods can be used to improve researcher access to primary healthcare data, be it platform-level, algorithm-level or data-level, or using a combination of these.
We have described two stewardship models for primary healthcare data. The governance model requires strict control, governance and oversight. The alternative is a more open-access, privacy-preserving model which could use methods such as the creation of synthetic datasets to provide easier access for researchers to develop and test models within a trusted research environment.
The advantages and disadvantages of these technical approaches and stewardship models need to be carefully considered in the New Zealand context to ensure any action taken to widen primary healthcare data access for research includes Māori data governance and upholds ethical research standards. Broadening the conversation to include patients and the public is needed to understand the impact of developing a national primary healthcare research network and the use of new technical approaches to increase researcher access to primary healthcare data.
Primary healthcare data can be used to conduct cost-effective research that improves understanding of population health and disease, leading to more effective prevention, earlier diagnosis, better-informed health models and improved health equity. However, Aotearoa New Zealand lacks a national primary healthcare data collection and has no national infrastructure to integrate and interrogate routinely collected primary healthcare data.
This paper describes new technical approaches used internationally to improve researcher access to healthcare data and considers how this may be applied in the New Zealand context using Māori data governance and ethical data stewardship principles.
Data access may be improved through platform-level, algorithm-level and data-level approaches. Māori data governance and ethical data stewardship principles can be applied to these new technical approaches. A governance model requires strict management, administration and oversight. An open-access model could provide easier access for researchers to develop and test models on synthetic data within a trusted research environment.
Improving primary healthcare data access for research in New Zealand requires partnership that upholds Māori data governance principles and ethical research standards. Debate of the advantages and disadvantages of these technical approaches and stewardship models including patients and the public is welcomed.
Sharon Leitch: Department of Primary Health Care, Faculty of Medicine, University of Otago, Dunedin, New Zealand.
Alex Wang: School of Mathematics and Statistics and School of Health, Te Herenga Waka—Victoria University of Wellington, Wellington, New Zealand.
Tania Moerenhout: Bioethics, Faculty of Medicine, University of Otago, Dunedin, New Zealand.
Lisa Kremer: School of Pharmacy, University of Otago, Dunedin, New Zealand.
Colin Simpson: Department of Epidemiology and Biostatistics, School of Population Health, The University of Auckland, Auckland, New Zealand.
Tim Stokes: Department of Primary Health Care, Faculty of Medicine, University of Otago, Dunedin, New Zealand.
Sharon Leitch: Department of Primary Health Care, Faculty of Medicine, University of Otago, Dunedin, New Zealand.
Nil.
1) Health and Disability System Review – Final Report – Pūrongo Whakamutunga [Internet]. Wellington, New Zealand: Health and Disability System Review; 2020 Mar [cited 2025 May 29]. Available from: https://www.health.govt.nz/publications/health-and-disability-system-review-final-report
2) Goldacre B, Morley J, Hamilton N. Better, broader, safer: using health data for research and analysis [Internet]. United Kingdom: Department of Health and Social Care; 2022 Apr [cited 2025 Nov 24]. Available from: https://assets.publishing.service.gov.uk/media/624ea0ade90e072a014d508a/goldacre-review-using-health-data-for-research-and-analysis.pdf
3) Hauora: Report on Stage One of the Health Services and Outcomes Kaupapa Inquiry [Internet]. Wellington, New Zealand: Waitangi Tribunal; 2019 [cited 2025 Nov 18]. Available from: https://www.tewhatuora.govt.nz/assets/For-the-health-sector/Specific-life-stage/Health-of-older-people/Hauora-2023-W.pdf
4) Leitch S, Pigden A, Ryde A, et al. The Southern Primary Care Research Network 3 years on - reflections from the end of the beginning. J Prim Health Care. 2025 Sep 19;17(3):269-275. doi: 10.1071/HC25020.
5) Choi YC, Poppe K, Selak V, et al. Identifying long-term conditions in New Zealand general practice using structured and unstructured data: a cross-sectional study. BMJ Health Care Inform. 2025 May 22;32(1):e101393. doi: 10.1136/bmjhci-2024-101393.
6) Dania A, Nagykaldi Z, Haaranen A, et al. A Review of 50-Years of International Literature on the Internal Environment of Building Practice-Based Research Networks (PBRNs). J Am Board Fam Med. 2021 Jul-Aug;34(4):762-797. doi: 10.3122/jabfm.2021.04.200595.
7) Green LA, White LL, Barry HC, et al. Infrastructure requirements for practice-based research networks. Ann Fam Med. 2005 May-Jun;3 Suppl 1(Suppl 1):S5-11. doi: 10.1370/afm.299.
8) Te Waipounamu PHOs join forces on data [Internet]. Auckland, New Zealand: Health Informatics New Zealand; 2024 Jul 21 [cited 2025 Apr 29]. Available from: https://www.hinz.org.nz/news/677885/Te-Waipounamu-PHOs-join-forces-on-data.htm
9) Graham M, Milne R, Fitzsimmons P, Sheehan M. Trust and the Goldacre Review: why trusted research environments are not about trust. J Med Ethics. 2023 Oct;49(10):670-673. doi: 10.1136/jme-2022-108435.
10) Lilley S, Oliver G, Cranefield J, et al. Māori data sovereignty: contributions to data cultures in the government sector in New Zealand. Inform Commun Soc 2024 Jan;27(16):2801-2816. doi: 10.1080/1369118X.2024.2302987.
11) Kremer L, Crengle S, Bartholomew K, et al. The Māori Health Data Governance Model: A planning and protocol checklist. First Nations Health and Wellbeing-The Lowitja Journal. 2025;3:100074. doi: 10.1016/j.fnhli.2025.100074.
12) Kukutai T, Campbell-Kamariera K, Mead A, et al. Māori data governance model: Te Kāhui Raraunga [Internet]. Te Kāhui Raraunga Charitable Trust; 2023 [cited 2025 Oct 15]. Available from: https://www.kahuiraraunga.io/maoridatagovernance
13) Sadilek A, Liu L, Nguyen D, et al. Privacy-first health research with federated learning. NPJ Digit Med. 2021 Sep 7;4(1):132. doi: 10.1038/s41746-021-00489-2.
14) Dang TK, Lan X, Weng J, et al. Federated learning for electronic health records. ACM Transactions on Intelligent Systems and Technology (TIST). 2022 May;13(5):1-17. doi:10.1145/3514500.
15) Wang AX, Chukova SS, Sporle A, et al. Enhancing public research on citizen data: An empirical investigation of data synthesis using Statistics New Zealand’s Integrated Data Infrastructure. Inf Process Manag. 2024;61(1):103558. doi: 10.25455/wgtn.24501268.
16) Wang AX, Nguyen BP, Simpson CR. Generative AI for Tabular Data Synthesis. In: Wu AX, et al. Advances in Knowledge Discovery and Data Mining. Springer; 2025:381-398. Lecture Notes in Computer Science; vol 15873. doi:10.1007/978-981-96-8183-9_28
17) Xu X, Li J, Zhu Z, et al. A Comprehensive Review on Synergy of Multi-Modal Data and AI Technologies in Medical Diagnosis. Bioengineering (Basel). 2024 Feb 25;11(3):219. doi: 10.3390/bioengineering11030219.
18) van Breugel B, Liu T, Oglic D, et al. Synthetic data in biomedicine via generative artificial intelligence. Nat Rev Bioeng. 2024 Oct;2(12):991-1004. doi: 10.1038/s44222-024-00245-7.
19) Office of the Privacy Commissioner. Health Information Privacy Code 2020 [Internet]. Wellington, New Zealand: New Zealand Government; 2020 [cited 2026 Feb 12]. Available from: https://www.privacy.org.nz/assets/Codes-of-Practice-2020/Health-Information-Privacy-Code-2020-website-version.pdf
20) Foraker R, Morrow JD, Johnson JA, et al. Understanding synthetic data: artificial datasets for real-world evidence. BMJ Evid Based Med. 2025 Jul 2:bmjebm-2024-113617. doi: 10.1136/bmjebm-2024-113617.
21) Boraschi D, van der Schaar M, Costa A, Milne R. Governing synthetic data in medical research: the time is now. Lancet Digit Health. 2025 Apr;7(4):e233-e234. doi: 10.1016/j.landig.2025.01.012.
22) Resnik DB, Hosseini M, Kim JJH, et al. GenAI synthetic data create ethical challenges for scientists. Here's how to address them. Proc Natl Acad Sci U S A. 2025 Mar 4;122(9):e2409182122. doi: 10.1073/pnas.2409182122.
23) Harris R, Paine SJ, Atkinson J, et al. We still don't count: the under-counting and under-representation of Māori in health and disability sector data. N Z Med J. 2022 Dec 16;135(1567):54-78. doi: 10.26635/6965.5849.
24) Sheridan N, Jansen RM, Harwood M, et al. Hauora Māori - Māori health: a right to equal outcomes in primary care. Int J Equity Health. 2024 Feb 27;23(1):42. doi: 10.1186/s12939-023-02071-6.
25) Susser D, Schiff DS, Gerke S, et al. Synthetic Health Data: Real Ethical Promise and Peril. Hastings Cent Rep. 2024 Sep;54(5):8-13. doi: 10.1002/hast.4911.
26) Rye CE, Puketapu-Watson H, Wihongi H, et al. Rakeiora Genomics Platform: a pathfinder for genomic medicine research in Aotearoa New Zealand. J R Soc N Z. 2025 Mar 24;55(6):2481-2505. doi: 10.1080/03036758.2025.2469626.
27) Chadd K, Caute A, Pettican A, Enderby P. Operationalising routinely collected patient data in research to further the pursuit of social justice and health equity: a team-based scoping review. BMC Med Res Methodol. 2025 Jan 21;25(1):14. doi: 10.1186/s12874-025-02466-9.
28) Emerson SD, McLinden T, Sereda P, et al. Secondary use of routinely collected administrative health data for epidemiologic research: Answering research questions using data collected for a different purpose. Int J Popul Data Sci. 2024 Nov 19;9(1):2407. doi: 10.23889/ijpds.v9i1.2407.
29) Dobson R, Whittaker R, Garner K, et al. Aotearoa New Zealand Public Perceptions of the Use of Personal Health Information. Wellington, New Zealand: Ministry of Health – Manatū Hauora; 2022 Apr [cited 2025 Oct 1]. Available from: https://www.health.govt.nz/system/files/2022-04/nz-public-perceptions-of-the-use-of-personal-health-information.pdf
30) Groenewald E, Appleton J, Hallam B, et al. Contribution and legacy: a qualitative study of older people's attitudes about sharing their routinely collected health data for research purposes in New Zealand. BMC Med Ethics. 2025 May 30;26(1):70. doi: 10.1186/s12910-025-01212-6.
Sign in to view your account and access
the latest publications by the NZMJ.
Don't have an account?
Let's get started with creating an account.
Already have an account?
Become a member to enjoy unlimited digital access and support the ongoing publication of the New Zealand Medical Journal.
The New Zealand Medical Journal is fully available to individual subscribers and does not incur a subscription fee. This applies to both New Zealand and international subscribers. Institutions are encouraged to subscribe. The value of institutional subscriptions is essential to the NZMJ, as supporting a reputable medical journal demonstrates an institution’s commitment to academic excellence and professional development. By continuing to pay for a subscription, institutions signal their support for valuable medical research and contribute to the journal's continued success.
Please email us at nzmj@pmagroup.co.nz