Eligibility & Consent

  • The consent controller helps using a FHIR Contract resource to capture consent.

    The controller can read a bundled Contract resource and return view controllers that can be used for eligibility checking (use eligibilityStatusViewController(config:onStartConsent:)) and/or consenting (use consentViewController(onUserDidConsent:onUserDidDecline:)).

    See more

    Declaration

    Swift

    public class ConsentController
  • Struct to hold various options for consenting.

    There are default values to all properties, so you only need to override what you want to change.

    See more

    Declaration

    Swift

    public struct ConsentTaskOptions
  • Callback used when signing the consent. Provides Contract, Patient and an optional Error.

    Declaration

    Swift

    public typealias ConsentSigningCallback = ((Contract, Patient, Error?) -> Void)
  • Name of notification sent when the user completes and agrees to consent.

    Declaration

    Swift

    public let C3UserDidConsentNotification = NSNotification.Name(rawValue: "C3UserDidConsentNotification")
  • Name of notification sent when the user cancels or declines to consent.

    Declaration

    Swift

    public let C3UserDidDeclineConsentNotification = NSNotification.Name(rawValue:"C3UserDidDeclineConsentNotification")
  • User info dictionary key containing the consenting result in a C3UserDidConsentNotification notification.

    Declaration

    Swift

    public let C3ConsentResultKey = "consent-result"
  • An ORKTask-implementing class that can be fed to an ORKTaskViewController to guide a user through consenting.

    Data to be shown is read from the Contract resource, which will be converted into an ORKConsentDocument.

    See more

    Declaration

    Swift

    public class ConsentTask: ORKOrderedTask
  • Class to hold on to the consent result.

    See more

    Declaration

    Swift

    open class ConsentResult
  • View controller to inform about eligible or ineligible status.

    Simple implementation, you must assign all properties before the view is loaded, dynamic changes are not currently supported!

    See more

    Declaration

    Swift

    open class EligibilityStatusViewController: UIViewController
  • View controller presenting all eligibility criteria provided in the receiversrequirements` property, allowing the user to proceed to a summary page that informs of eligibility and allows to proceed to to consenting or not.

    See more

    Declaration

    Swift

    open class EligibilityCheckViewController: UITableViewController