LT-92: Modality criteria
This commit is contained in:
1 parent
774de08646
commit
c822f71baa
2 files changed
+62
No files matched your search
@@ -2,6 +2,7 @@ import { BaseChecker } from './BaseChecker';
|
||||
import { MaxTargetPerOrganCriteria } from '../criterias/MaxTargetPerOrganCriteria';
|
||||
import { MaxTargetsCriteria } from '../criterias/MaxTargetsCriteria';
|
||||
import { MeasurementsLengthCriteria } from '../criterias/MeasurementsLengthCriteria';
|
||||
import { ModalityCriteria } from '../criterias/ModalityCriteria';
|
||||
|
||||
export class RecistChecker extends BaseChecker {
|
||||
|
||||
@@ -11,6 +12,7 @@ export class RecistChecker extends BaseChecker {
|
||||
this.criterias.push(new MaxTargetsCriteria(5));
|
||||
this.criterias.push(new MaxTargetPerOrganCriteria(2));
|
||||
this.criterias.push(new MeasurementsLengthCriteria({}));
|
||||
this.criterias.push(new ModalityCriteria(this.getModalityCheckerOptions()));
|
||||
}
|
||||
|
||||
check(data) {
|
||||
@@ -24,4 +26,11 @@ export class RecistChecker extends BaseChecker {
|
||||
return nonconformity;
|
||||
}
|
||||
|
||||
getModalityCheckerOptions() {
|
||||
return {
|
||||
method: 'restrict',
|
||||
modalities: ['US']
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user