Skip to content

Commit

Permalink
Merge pull request #330 from synthetichealth/code_versions
Browse files Browse the repository at this point in the history
Add version field on Code
  • Loading branch information
jawalonoski committed Mar 21, 2024
2 parents f78aaf0 + 343e1f2 commit 99335df
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/editor/Code.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ export class Code extends Component<Props> {
}
}

checkVersionKey() {
if(this.props.code.version) {
return (
<div>
System Version (Optional): <RIEInput className='editable-text' value={this.props.code.version} propName="version" change={this.props.onChange('version')} />
</div>
);
}else {
return (
<div>
System Version (Optional): <RIEInput className='editable-text' value="" propName="version" change={this.props.onChange('version')} />
</div>
);
}
}

render() {
let code = this.props.code;
let system = this.props.system;
Expand All @@ -41,6 +57,7 @@ export class Code extends Component<Props> {
Code: <RIEInput className='editable-text' value={code.code} propName="code" change={this.props.onChange('code')} />
<br />
Display: <RIEInput className='editable-text' value={code.display} propName="display" change={this.props.onChange('display')} />
{this.checkVersionKey()}
{this.checkValueSetKey()}
</div>
);
Expand Down

0 comments on commit 99335df

Please sign in to comment.