Skip to content

[Technical Questions] Adding HL7 FHIR json to questionnaire #47

Discussion options

You must be logged in to vote

Hi @carolinentran,

The questionnaire JSON is being imported in BehaviorScheduler.swift located in Behavior/Schedule.

If you look at lines 32-42, you'll see where the Task that represents the Social Support Questionnaire is being created:

return Task(
    title: String(localized: "TASK_SOCIAL_SUPPORT_QUESTIONNAIRE_TITLE"),
    description: String(localized: "TASK_SOCIAL_SUPPORT_QUESTIONNAIRE_DESCRIPTION"),
    schedule: Schedule(
        start: Calendar.current.startOfDay(for: Date()),
        repetition: .matching(dateComponents),
        end: .numberOfEvents(365)
    ),
    notifications: true,
    context: BehaviorTaskContext.questionnaire(Bundle.main.questionnaire(withName: "SocialSupp…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@carolinentran
Comment options

Answer selected by PSchmiedmayer
Comment options

You must be logged in to vote
4 replies
@carolinentran
Comment options

@PSchmiedmayer
Comment options

@carolinentran
Comment options

@PSchmiedmayer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants