department-of-veterans-affairs/vets-website

View on GitHub

Showing 12,811 of 12,811 total issues

Similar blocks of code found in 21 locations. Consider refactoring.
Open

  {
    id: 5621490,
    reasonForStudy: null,
    radiologist: 'DOE,JOHN',
    clinicalHistory:
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 26..49
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 50..72
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 73..96
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 97..120
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 121..143
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 144..166
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 167..190
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 191..214
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 215..237
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 238..260
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 261..284
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 285..307
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 308..331
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 332..354
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 355..376
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 377..398
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 399..422
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 423..446
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 447..469
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 470..493

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 21 locations. Consider refactoring.
Open

  {
    id: 5621499,
    reasonForStudy: null,
    radiologist: 'DOE,JOHN',
    clinicalHistory: '\r\nR/O OBSTRUCTION\r\n\r\n',
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 2..25
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 26..49
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 50..72
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 73..96
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 97..120
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 121..143
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 144..166
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 167..190
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 191..214
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 238..260
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 261..284
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 285..307
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 308..331
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 332..354
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 355..376
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 377..398
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 399..422
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 423..446
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 447..469
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 470..493

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 21 locations. Consider refactoring.
Open

  {
    id: 5621494,
    reasonForStudy: null,
    radiologist: 'DOE,JOHN',
    clinicalHistory:
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 2..25
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 26..49
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 50..72
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 73..96
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 121..143
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 144..166
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 167..190
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 191..214
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 215..237
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 238..260
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 261..284
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 285..307
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 308..331
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 332..354
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 355..376
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 377..398
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 399..422
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 423..446
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 447..469
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 470..493

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 21 locations. Consider refactoring.
Open

  {
    id: 5621489,
    reasonForStudy: null,
    radiologist: 'DOE,JOHN',
    clinicalHistory:
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 2..25
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 26..49
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 50..72
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 73..96
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 97..120
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 121..143
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 144..166
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 167..190
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 191..214
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 215..237
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 238..260
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 261..284
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 285..307
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 308..331
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 332..354
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 355..376
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 377..398
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 399..422
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 423..446
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 447..469

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 21 locations. Consider refactoring.
Open

  {
    id: 5621495,
    reasonForStudy: null,
    radiologist: 'DOE,JOHN',
    clinicalHistory: '\r\nR/O CANCER RECURRENCEE\r\n\r\n',
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 2..25
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 26..49
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 50..72
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 73..96
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 97..120
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 144..166
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 167..190
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 191..214
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 215..237
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 238..260
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 261..284
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 285..307
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 308..331
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 332..354
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 355..376
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 377..398
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 399..422
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 423..446
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 447..469
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 470..493

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 21 locations. Consider refactoring.
Open

  {
    id: 5621505,
    reasonForStudy: null,
    radiologist: 'DOE,JOHN',
    clinicalHistory: '\r\n\r\n',
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 2..25
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 26..49
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 50..72
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 73..96
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 97..120
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 121..143
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 144..166
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 167..190
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 191..214
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 215..237
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 238..260
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 261..284
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 285..307
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 308..331
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 332..354
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 355..376
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 399..422
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 423..446
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 447..469
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 470..493

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 21 locations. Consider refactoring.
Open

  {
    id: 5621487,
    reasonForStudy: null,
    radiologist: 'DOE,JOHN',
    clinicalHistory:
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 2..25
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 26..49
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 50..72
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 73..96
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 97..120
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 121..143
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 144..166
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 167..190
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 191..214
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 215..237
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 238..260
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 261..284
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 285..307
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 308..331
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 332..354
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 355..376
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 377..398
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 399..422
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 447..469
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 470..493

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 21 locations. Consider refactoring.
Open

  {
    id: 5621500,
    reasonForStudy: null,
    radiologist: 'DOE,JOHN',
    clinicalHistory: '\r\nR/O OBSTRUCTION\r\n\r\n',
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 2..25
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 26..49
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 50..72
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 73..96
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 97..120
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 121..143
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 144..166
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 167..190
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 191..214
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 215..237
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 261..284
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 285..307
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 308..331
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 332..354
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 355..376
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 377..398
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 399..422
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 423..446
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 447..469
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 470..493

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 21 locations. Consider refactoring.
Open

  {
    id: 5621504,
    reasonForStudy: null,
    radiologist: 'DOE,JOHN',
    clinicalHistory: '\r\n\r\n',
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 2..25
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 26..49
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 50..72
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 73..96
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 97..120
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 121..143
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 144..166
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 167..190
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 191..214
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 215..237
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 238..260
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 261..284
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 285..307
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 308..331
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 332..354
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 377..398
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 399..422
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 423..446
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 447..469
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 470..493

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 21 locations. Consider refactoring.
Open

  {
    id: 5621492,
    reasonForStudy: null,
    radiologist: 'DOE,JOHN',
    clinicalHistory: '\r\nBACK PAIN       R/O DJD SEND FILMS WITH OLD\r\n\r\n',
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 2..25
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 26..49
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 73..96
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 97..120
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 121..143
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 144..166
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 167..190
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 191..214
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 215..237
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 238..260
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 261..284
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 285..307
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 308..331
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 332..354
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 355..376
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 377..398
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 399..422
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 423..446
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 447..469
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 470..493

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 21 locations. Consider refactoring.
Open

  {
    id: 5621498,
    reasonForStudy: null,
    radiologist: 'DOE,JOHN',
    clinicalHistory:
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 2..25
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 26..49
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 50..72
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 73..96
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 97..120
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 121..143
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 144..166
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 167..190
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 215..237
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 238..260
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 261..284
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 285..307
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 308..331
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 332..354
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 355..376
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 377..398
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 399..422
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 423..446
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 447..469
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 470..493

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 21 locations. Consider refactoring.
Open

  {
    id: 5621502,
    reasonForStudy: null,
    radiologist: 'DOE,JOHN',
    clinicalHistory:
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 2..25
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 26..49
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 50..72
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 73..96
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 97..120
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 121..143
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 144..166
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 167..190
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 191..214
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 215..237
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 238..260
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 261..284
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 285..307
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 332..354
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 355..376
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 377..398
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 399..422
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 423..446
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 447..469
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 470..493

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 21 locations. Consider refactoring.
Open

  {
    id: 5621488,
    reasonForStudy: null,
    radiologist: 'DOE,JOHN',
    clinicalHistory: '\r\nPAIN IN BOTH HIPS MORE ON THE RT SEND FILM\r\n\r\n',
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 2..25
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 26..49
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 50..72
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 73..96
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 97..120
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 121..143
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 144..166
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 167..190
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 191..214
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 215..237
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 238..260
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 261..284
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 285..307
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 308..331
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 332..354
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 355..376
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 377..398
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 399..422
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 423..446
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 470..493

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 21 locations. Consider refactoring.
Open

  {
    id: 5621496,
    reasonForStudy: null,
    radiologist: 'DOE,JOHN',
    clinicalHistory: '\r\nR/O CANCER RECURRENCE\r\n\r\n',
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 2..25
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 26..49
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 50..72
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 73..96
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 97..120
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 121..143
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 167..190
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 191..214
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 215..237
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 238..260
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 261..284
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 285..307
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 308..331
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 332..354
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 355..376
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 377..398
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 399..422
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 423..446
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 447..469
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 470..493

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 21 locations. Consider refactoring.
Open

  {
    id: 5621485,
    reasonForStudy: null,
    radiologist: 'DOE,JOHN',
    clinicalHistory:
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 2..25
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 26..49
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 50..72
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 73..96
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 97..120
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 121..143
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 144..166
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 167..190
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 191..214
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 215..237
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 238..260
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 285..307
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 308..331
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 332..354
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 355..376
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 377..398
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 399..422
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 423..446
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 447..469
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 470..493

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 21 locations. Consider refactoring.
Open

  {
    id: 5621501,
    reasonForStudy: null,
    radiologist: 'DOE,JOHN',
    clinicalHistory: '\r\nSMALL BOWEL OBSTRUCTION\r\n\r\n',
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 2..25
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 26..49
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 50..72
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 73..96
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 97..120
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 121..143
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 144..166
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 167..190
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 191..214
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 215..237
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 238..260
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 261..284
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 308..331
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 332..354
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 355..376
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 377..398
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 399..422
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 423..446
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 447..469
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 470..493

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 21 locations. Consider refactoring.
Open

  {
    id: 5621503,
    reasonForStudy: null,
    radiologist: 'DOE,JOHN',
    clinicalHistory: '\r\nPt. with colon ca; r/o chest mets.\r\n\r\n',
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 2..25
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 26..49
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 50..72
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 73..96
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 97..120
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 121..143
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 144..166
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 167..190
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 191..214
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 215..237
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 238..260
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 261..284
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 285..307
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 308..331
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 355..376
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 377..398
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 399..422
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 423..446
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 447..469
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 470..493

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 21 locations. Consider refactoring.
Open

  {
    id: 5621497,
    reasonForStudy: null,
    radiologist: 'DOE,JOHN',
    clinicalHistory:
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 2..25
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 26..49
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 50..72
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 73..96
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 97..120
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 121..143
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 144..166
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 191..214
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 215..237
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 238..260
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 261..284
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 285..307
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 308..331
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 332..354
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 355..376
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 377..398
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 399..422
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 423..446
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 447..469
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 470..493

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 21 locations. Consider refactoring.
Open

  {
    id: 5621486,
    reasonForStudy: null,
    radiologist: 'DOE,JOHN',
    clinicalHistory:
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 2..25
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 26..49
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 50..72
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 73..96
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 97..120
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 121..143
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 144..166
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 167..190
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 191..214
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 215..237
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 238..260
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 261..284
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 285..307
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 308..331
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 332..354
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 355..376
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 377..398
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 423..446
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 447..469
src/platform/mhv/api/mocks/medical-records/mhv-radiology/index.js on lines 470..493

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 5 locations. Consider refactoring.
Open

const allMessages = (state = initialState, action) => {
  switch (action.type) {
    case MESSAGES_RETRIEVE_STARTED:
      return {
        ...state,
src/applications/combined-debt-portal/combined/reducers/index.js on lines 36..58
src/applications/disability-benefits/view-payments/reducers/index.js on lines 13..35
src/applications/mhv-secure-messaging/reducers/oldReducers.js on lines 81..103
src/applications/personalization/dashboard/reducers/payments.js on lines 13..35

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 97.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language