Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'both' in random order to RangeOfMotion tasks #1403

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion ResearchKit/ActiveTasks/ORKRangeOfMotionStep.m
Expand Up @@ -57,7 +57,7 @@ - (instancetype)initWithIdentifier:(NSString *)identifier limbOption:(ORKPredefi
- (void)validateParameters {
[super validateParameters];

if (self.limbOption != ORKPredefinedTaskLimbOptionLeft && self.limbOption != ORKPredefinedTaskLimbOptionRight) {
if (self.limbOption != ORKPredefinedTaskLimbOptionLeft && self.limbOption != ORKPredefinedTaskLimbOptionRight && self.limbOption != ORKPredefinedTaskLimbOptionBoth) {
@throw [NSException exceptionWithName:NSInvalidArgumentException
reason:ORKLocalizedString(@"LIMB_OPTION_LEFT_OR_RIGHT_ERROR", nil)
userInfo:nil];
Expand Down
4 changes: 2 additions & 2 deletions ResearchKit/Common/ORKOrderedTask+ORKPredefinedActiveTask.h
Expand Up @@ -193,7 +193,7 @@ NS_ASSUME_NONNULL_BEGIN


/**
The knee range of motion task returns a task that measures the range of motion for either a left or right knee.
The knee range of motion task returns a task that measures the range of motion for either a left or right knee, or both.

@param identifier The task identifier to use for this task, appropriate to the study.
@param limbOption Which knee is being measured.
Expand All @@ -207,7 +207,7 @@ NS_ASSUME_NONNULL_BEGIN


/**
The shoulder range of motion task returns a task that measures the range of motion for either a left or right shoulder.
The shoulder range of motion task returns a task that measures the range of motion for either a left or right shoulder, or both.

@param identifier The task identifier to use for this task, appropriate to the study.
@param limbOption Which shoulder is being measured.
Expand Down