QuestionnairePromise

open class QuestionnairePromise: QuestionnairePromiseProto

A promise that can turn a FHIR Questionnaire into an ORKOrderedTask.

  • The questionnaire’s steps, internally assigned after the promise has been successfully fulfilled.

    Declaration

    Swift

    internal(set) open var steps: [ORKStep]?
  • The task representing the questionnaire; available once the promise has been fulfilled.

    Declaration

    Swift

    internal(set) open var task: ORKTask?
  • Undocumented

    Declaration

    Swift

    open class QuestionnairePromise: QuestionnairePromiseProto
  • Attempts to fulfill the questionnaire promise by creating steps for all questions.

    Upon completion, the receiver has filled its steps and task properties for you to use; unless there was an error preventing creation of those. Errors may be reported but steps and the task may still be created.

    Declaration

    Swift

    open func fulfill(requiring parentRequirements: [ResultRequirement]?, callback: @escaping (([Error]?) -> Void))

    Parameters

    parentRequirements

    An array of ResultRequirement instances required by parent elements

    callback

    Callback to be called upon promise fulfillment with a list of errors, if any. Called on the main thread.

  • String representation of the receiver.

    Declaration

    Swift

    open var description: String