PCKTask
public struct PCKTask : PCKVersionable
An PCKTask
is the ParseCareKit equivalent of OCKTask
. An OCKTask
represents some task or action that a
patient is supposed to perform. Tasks are optionally associable with an OCKCarePlan
and must have a unique
id and schedule. The schedule determines when and how often the task should be performed, and the
impactsAdherence
flag may be used to specify whether or not the patients adherence to this task will affect
their daily completion rings.
-
Declaration
Swift
public var nextVersionUUIDs: [UUID]?
-
Declaration
Swift
public var previousVersionUUIDs: [UUID]?
-
Declaration
Swift
public var effectiveDate: Date?
-
Declaration
Swift
public var entityId: String?
-
Declaration
Swift
public var schemaVersion: OCKSemanticVersion?
-
Declaration
Swift
public var createdDate: Date?
-
Declaration
Swift
public var updatedDate: Date?
-
Declaration
Swift
public var deletedDate: Date?
-
Declaration
Swift
public var timezone: TimeZone?
-
Declaration
Swift
public var userInfo: [String : String]?
-
Declaration
Swift
public var groupIdentifier: String?
-
Declaration
Swift
public var tags: [String]?
-
Declaration
Swift
public var source: String?
-
Declaration
Swift
public var asset: String?
-
Declaration
Swift
public var notes: [OCKNote]?
-
Declaration
Swift
public var remoteID: String?
-
Declaration
Swift
public var encodingForParse: Bool { get set }
-
Declaration
Swift
public static var className: String { get }
-
Declaration
Swift
public var objectId: String?
-
Declaration
Swift
public var createdAt: Date?
-
Declaration
Swift
public var updatedAt: Date?
-
Declaration
Swift
public var ACL: ParseACL?
-
Declaration
Swift
public var originalData: Data?
-
If true, completion of this task will be factored into the patient’s overall adherence. True by default.
Declaration
Swift
public var impactsAdherence: Bool?
-
Instructions about how this task should be performed.
Declaration
Swift
public var instructions: String?
-
A title that will be used to represent this task to the patient.
Declaration
Swift
public var title: String?
-
A schedule that specifies how often this task occurs.
Declaration
Swift
public var schedule: OCKSchedule?
-
The care plan to which this task belongs.
Declaration
Swift
public var carePlan: PCKCarePlan? { get set }
-
The UUID of the care plan to which this task belongs.
Declaration
Swift
public var carePlanUUID: UUID? { get set }
-
Declaration
Swift
public init()
-
Declaration
Swift
public func new(with careKitEntity: OCKEntity) throws -> PCKTask
-
Declaration
Swift
public func addToCloud(completion: @escaping (Result<PCKSynchronizable, Error>) -> Void)
-
Declaration
Swift
public func updateCloud(completion: @escaping (Result<PCKSynchronizable, Error>) -> Void)
-
Declaration
Swift
public func pullRevisions(since localClock: Int, cloudClock: OCKRevisionRecord.KnowledgeVector, remoteID: String, mergeRevision: @escaping (Result<OCKRevisionRecord, ParseError>) -> Void)
-
Declaration
Swift
public func pushRevision(cloudClock: Int, remoteID: String, completion: @escaping (Error?) -> Void)
-
Declaration
Swift
public static func copyValues(from other: PCKTask, to here: PCKTask) throws -> PCKTask
-
Link versions and related classes
Declaration
Swift
public func linkRelated(completion: @escaping (Result<PCKTask, Error>) -> Void)
-
Declaration
Swift
public func encode(to encoder: Encoder) throws