<commit_before>//import React from 'react';
import CreatorShortcut from './CreatorShortcut';
//import ProgressionForm from '../forms/ProgressionForm';
import ProgressionStatusCreator from './ProgressionStatusCreator';
import ProgressionReasonsCreator from './ProgressionReasonsCreator';
import ProgressionAsOfDateCreator from './ProgressionAsOfDateCreator';
import ProgressionReferenceDateCreator from './ProgressionReferenceDateCreator';
import lookup from '../lib/progression_lookup';
import Lang from 'lodash'
import moment from 'moment';
import Progression from '../model/shr/oncology/Progression';
import Entry from '../model/shr/base/Entry';
import Reference from '../model/Reference';
import BreastCancer from '../model/shr/oncology/BreastCancer';

class ProgressionCreator extends CreatorShortcut {
    // onUpdate is passed from React components that need to be notified when the progression value(s) change
    // progression is optional and specifies an existing progression value being edited. Not used in no-patient mode
    constructor(onUpdate, progression) {
        super();
        if (Lang.isUndefined(progression)) {
            this.progression = new Progression();
            this.progression.value = 'unknown';
            this.progression.evidence = '';
            this.progression.asOfDate = null;
            this.progression.clinicallyRelevantTime = null;

            // TODO: This will be auto generated so this should be taken out when that code is merged<commit_msg>Fixed progression.evidence to be an array<commit_after>//import React from 'react';
import CreatorShortcut from './CreatorShortcut';
//import ProgressionForm from '../forms/ProgressionForm';
import ProgressionStatusCreator from './ProgressionStatusCreator';
import ProgressionReasonsCreator from './ProgressionReasonsCreator';
import ProgressionAsOfDateCreator from './ProgressionAsOfDateCreator';
import ProgressionReferenceDateCreator from './ProgressionReferenceDateCreator';
import lookup from '../lib/progression_lookup';
import Lang from 'lodash'
import moment from 'moment';
import Progression from '../model/shr/oncology/Progression';
import Entry from '../model/shr/base/Entry';
import Reference from '../model/Reference';
import BreastCancer from '../model/shr/oncology/BreastCancer';

class ProgressionCreator extends CreatorShortcut {
    // onUpdate is passed from React components that need to be notified when the progression value(s) change
    // progression is optional and specifies an existing progression value being edited. Not used in no-patient mode
    constructor(onUpdate, progression) {
        super();
        if (Lang.isUndefined(progression)) {
            this.progression = new Progression();
            this.progression.value = 'unknown';
            this.progression.evidence = [];
            this.progression.asOfDate = null;
            this.progression.clinicallyRelevantTime = null;

            // TODO: This will be auto generated so this should be taken out when that code is merged
{'fraction_non_alphanumeric': 0.09153998678122935, 'fraction_numerical': 0.0, 'mean_word_length': 4.003305785123967, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6798591', 'n_tokens_mistral': 770, 'n_tokens_neox': 727, 'n_words': 252}