ORKHealthClinicalTypeRecorder Class Reference

Inherits from ORKRecorder : NSObject
Declared in ORKHealthClinicalTypeRecorder.h

The ORKHealthClinicalTypeRecorder class represents a recorder for collecting health records data from HealthKit during an active task.

– initWithIdentifier:healthClinicalType:healthFHIRResourceType:step:outputDirectory:

Returns an initialized health clinical type recorder using the specified HKClinicalType and HKFHIRResourceType.

- (instancetype)initWithIdentifier:(NSString *)identifier healthClinicalType:(HKClinicalType *)healthClinicalType healthFHIRResourceType:(nullable HKFHIRResourceType)healthFHIRResourceType step:(nullable ORKStep *)step outputDirectory:(nullable NSURL *)outputDirectory

Parameters

identifier

The unique identifier of the recorder (assigned by the recorder configuration).

healthClinicalType

The HKClinicalType data that should be collected during the active task.

healthFHIRResourceType

The HKFHIRResourceType for the predicate used to query the HKClinicalType.

step

The step that requested this recorder.

outputDirectory

The directory in which the health records data queried from HealthKit should be stored.

Return Value

An initialized health quantity type recorder.

Declared In

ORKHealthClinicalTypeRecorder.h