ORKHealthClinicalTypeRecorderConfiguration Class Reference

Inherits from ORKRecorderConfiguration : NSObject
Declared in ORKRecorder.h

– initWithIdentifier:healthClinicalType:healthFHIRResourceType:

Returns an initialized health clinical type recorder configuration using the specified clinical type.

- (instancetype)initWithIdentifier:(NSString *)identifier healthClinicalType:(HKClinicalType *)healthClinicalType healthFHIRResourceType:(nullable HKFHIRResourceType)healthFHIRResourceType

Parameters

identifier

The unique identifier of the recorder configuration.

healthClinicalType

The HKClinicalType that should be collected during the active task.

healthFHIRResourceType

The HKFHIRResourceType that should be used as predicate while querying for the healthClinicalType. Providing a HKFHIRResourceType that does not correspond to a HKClinicalType will NOT generate any result.

Return Value

An initialized health clinical type recorder configuration.

Discussion

This method is the designated initializer.

Declared In

ORKRecorder.h

– initWithCoder:

Returns a new health clinical type recorder configuration initialized from data in the given unarchiver.

- (instancetype)initWithCoder:(NSCoder *)aDecoder

Parameters

aDecoder

Coder from which to initialize the health clinical type recorder configuration.

Return Value

A new health clinical type recorder configuration.

Declared In

ORKRecorder.h

  healthClinicalType

The HKClinicalType to be collected from HealthKit. (read-only)

@property (nonatomic, readonly, copy) HKClinicalType *healthClinicalType

Declared In

ORKRecorder.h

  healthFHIRResourceType

The HKFHIRResourceType to used as predicate for HKQuery. (read-only)

@property (nonatomic, readonly, copy) HKFHIRResourceType healthFHIRResourceType

Declared In

ORKRecorder.h