Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ let package = Package(
.executable(name: "MHCStudyDefinitionExporterCLI", targets: ["MHCStudyDefinitionExporterCLI"])
],
dependencies: [
.package(url: "https://github.com/StanfordSpezi/SpeziFoundation.git", from: "2.7.7"),
.package(url: "https://github.com/StanfordSpezi/SpeziStudy.git", .upToNextMinor(from: "0.2.2")),
.package(url: "https://github.com/StanfordSpezi/SpeziStudy.git", .upToNextMinor(from: "0.1.19")),
.package(url: "https://github.com/StanfordSpezi/SpeziFoundation.git", from: "2.4.0"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.6.2"),
// not used directly but we need to fix it below 0.9.0 for the time being
.package(url: "https://github.com/apple/FHIRModels.git", .upToNextMinor(from: "0.8.0"))
Expand All @@ -54,7 +54,8 @@ let package = Package(
.copy("Resources/article"),
.copy("Resources/questionnaire"),
.copy("Resources/hhdExplainer")
]
],
swiftSettings: [.defaultIsolation(MainActor.self)]
),
.executableTarget(
name: "MHCStudyDefinitionExporterCLI",
Expand All @@ -63,7 +64,8 @@ let package = Package(
"MHCStudyDefinitionExporter",
.product(name: "SpeziStudyDefinition", package: "SpeziStudy"),
.product(name: "ArgumentParser", package: "swift-argument-parser")
]
],
swiftSettings: [.defaultIsolation(MainActor.self)]
),
.testTarget(
name: "MHCStudyDefinitionExporterTests",
Expand Down
14 changes: 6 additions & 8 deletions Sources/MHCStudyDefinitionExporter/Study.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import Foundation
import MHCStudyDefinition
import SpeziHealthKit
import enum SpeziHealthKitBulkExport.ExportSessionStartDate
import SpeziLocalization
import SpeziScheduler
import SpeziStudyDefinition

Expand All @@ -39,18 +38,17 @@ extension StudyBundle.FileReference {


let mhcStudyDefinition = StudyDefinition(
studyRevision: 39,
studyRevision: 38,
metadata: .init(
id: .mhcStudy,
title: [.enUS: "My Heart Counts"],
shortTitle: [.enUS: "MHC"],
title: "My Heart Counts",
shortTitle: "MHC",
icon: .systemSymbol("cube.transparent"),
explanationText: [:],
shortExplanationText: [
.enUS: "Improve your cardiovascular health"
],
explanationText: "",
shortExplanationText: "Improve your cardiovascular health",
studyDependency: nil,
participationCriterion: .ageAtLeast(18) && (.isFromRegion(.unitedStates) || .isFromRegion(.unitedKingdom)),
enrollmentConditions: .none,
consentFileRef: .init(category: .consent, filename: "Consent", fileExtension: "md")
),
components: [
Expand Down
Loading