packages/optimise-ui/src/components/comorbidityPicker/icd11Picker.jsx
import React, { Component } from 'react';
import { connect } from 'react-redux';
import TreePicker from '../treePicker';
@connect(state => ({
hash: state.availableFields.icd11_Hash[0],
tree: state.availableFields.icd11_Tree
}))
class ICD11Picker extends Component {
render() {
return (
<TreePicker {...this.props} formatter={(node) => <><b>{node.code[0] === 'B' ? '' : node.code} </b>{node.name}</>} />
);
}
}
export {ICD11Picker};