Study Definitions and supporting code for the My Heart Counts iOS application.
This package consists of 3 (three) targets:
MHCStudyDefinitioncontains supporting code that is shared between the MHC app and the study definition, e.g., static properties defining custom active tasks;MHCStudyDefinitionExporterimplements anexport(to:)function that writes a study bundle archive to the file system;MHCStudyDefinitionExporterCLIis a CLI tool that callsexport(to:)to export a study bundle archive.
Note that the package does not make the actual study definition available as an SPM package; this is intentional. Instead, the package only implements the code that exports the study bundle, in a format the MHC app can then download from a server and consume.
The swift test command may be used to run a dry-run export of the study definition, which will fail if the integrity verification step performed as part of the export finds any issues with the study definition (e.g., invalid references, invalid questionnaire definitions, etc).
The repo's CI setup performs this check on every push, to ensure that only valid study definitions can be merged.
This project is licensed under the MIT License. See Licenses for more information.
This project is developed as part of the Stanford Byers Center for Biodesign at Stanford University. See CONTRIBUTORS.md for a full list of all MyHeartCounts-StudyDefinitions contributors.

