text: webpackJsonp([24],{"./node_modules/lodash/_baseSlice.js":function(e,t){function a(e,t,a){var l=-1,s=e.length;t<0&&(t=-t>s?0:s+t),a=a>s?s:a,a<0&&(a+=s),s=t>a?0:a-t>>>0,t>>>=0;for(var n=Array(s);++l<s;)n[l]=e[l+t];return n}e.exports=a},"./node_modules/lodash/fp/find.js":function(e,t,a){var l=a("./node_modules/lodash/fp/convert.js"),s=l("find",a("./node_modules/lodash/find.js"));s.placeholder=a("./node_modules/lodash/fp/placeholder.js"),e.exports=s},"./node_modules/lodash/fp/slice.js":function(e,t,a){var l=a("./node_modules/lodash/fp/convert.js"),s=l("slice",a("./node_modules/lodash/slice.js"));s.placeholder=a("./node_modules/lodash/fp/placeholder.js"),e.exports=s},"./node_modules/lodash/fp/toLower.js":function(e,t,a){var l=a("./node_modules/lodash/fp/convert.js"),s=l("toLower",a("./node_modules/lodash/toLower.js"),a("./node_modules/lodash/fp/_falseOptions.js"));s.placeholder=a("./node_modules/lodash/fp/placeholder.js"),e.exports=s},"./node_modules/lodash/slice.js":function(e,t,a){function l(e,t,a){var l=null==e?0:e.length;return l?(a&&"number"!=typeof a&&n(e,t,a)?(t=0,a=l):(t=null==t?0:r(t),a=void 0===a?l:r(a)),s(e,t,a)):[]}var s=a("./node_modules/lodash/_baseSlice.js"),n=a("./node_modules/lodash/_isIterateeCall.js"),r=a("./node_modules/lodash/toInteger.js");e.exports=l},"./node_modules/lodash/toLower.js":function(e,t,a){function l(e){return s(e).toLowerCase()}var s=a("./node_modules/lodash/toString.js");e.exports=l},"./src/components/containers/SortableTable/SortableTable.js":function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,n,r=a("./node_modules/babel-runtime/helpers/classCallCheck.js"),o=l(r),c=a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"),u=l(c),i=a("./node_modules/babel-runtime/helpers/inherits.js"),d=l(i),m=a("./node_modules/lodash/fp/find.js"),f=l(m),E=a("./node_modules/lodash/fp/uniqueId.js"),p=l(E),N=a("./node_modules/lodash/fp/isUndefined.js"),v=l(N),_=a("./node_modules/react/react.js"),h=l(_),b=a("./node_modules/prop-types/index.js"),P=l(b),S=a("./src/components/containers/SortableTable/sortable-table-header-components/SortableTableHeaderRow.js"),O=l(S),g=a("./src/components/containers/SortableTable/SortableTableRow.js"),R=l(g),D=a("./src/components/containers/SortableTable/SortableTableEmptyDataRow.js"),T=l(D),I=a("./src/utils/table-helpers/table.utils.js"),C=(n=s=function(e){function t(){var a,l,s;(0,o.default)(this,t);for(var n=arguments.length,r=Array(n),c=0;c<n;c++)r[c]=arguments[c];return a=l=(0,u.default)(this,e.call.apply(e,[this].concat(r))),l.checkSortableTableRows=function(e){var t=[],a=[];return e.map(function(e){return t.push(e),e}),t.slice(0,4).forEach(function(e){""===e[0].value&&a.push(e[0].value)}),a.length>0},l.getSortableTableRows=function(e,t,a){var s=l.props,n=s.onCellClick,r=s.columnNameSortBy,o=s.headers,c=s.table,u=s.id,i=o.length-1;return(0,v.default)(t)||l.checkSortableTableRows(e)?h.default.createElement(T.default,{isLoading:!0,emptyDataMessage:a,amountCollumns:i}):t.length?e.map(function(e,a){return h.default.createElement(R.default,{key:(0,p.default)("__SortableTableRow__"),rowData:e,onCellClick:n,columnNameSortBy:r,headers:o,index:a,table:c,resourceData:t,id:u})}):h.default.createElement(T.default,{isLoading:!1,emptyDataMessage:a,amountCollumns:i})},l.addHighlighters=function(e,t){e&&e.map(function(e,a){e.highlighters&&e.highlighters.length&&e.highlighters.map(function(e){var l=(0,f.default)({name:e.name})(t[a]);l&&(l.highlighter=e.status)})})},s=a,(0,u.default)(l,s)}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.headers,a=e.data,l=e.onHeaderCellClick,s=e.sortingOrder,n=e.columnNameSortBy,r=e.table,o=e.resourceData,c=e.emptyDataMessage,u=(0,I.getArrByTemplate)(t,a);return this.addHighlighters(a,u),h.default.createElement("table",{className:"table table-striped table-bordered table-sorted table-hover table-fixedcol table-patients-full rwd-table "+r},h.default.createElement("colgroup",null,t.map(function(e){return e.display?h.default.createElement("col",{style:{width:e.width,display:e.display},key:(0,p.default)("__colHeaders__")}):h.default.createElement("col",{style:{width:e.width},key:(0,p.default)("__colHeaders__")})})),h.default.createElement("thead",null,h.default.createElement(O.default,{headers:t,onHeaderCellClick:l,sortingOrder:s,columnNameSortBy:n})),h.default.createElement("tbody",null,this.getSortableTableRows(u,o,c)))},t}(_.PureComponent),s.propTypes={headers:P.default.arrayOf(P.default.object).isRequired,data:P.default.arrayOf(P.default.object).isRequired,onHeaderCellClick:P.default.func.isRequired,onCellClick:P.default.func.isRequired,sortingOrder:P.default.oneOf(["asc","desc"]).isRequired,columnNameSortBy:P.default.string.isRequired,table:P.default.string.isRequired},s.defaultProps={table:"",data:[]},n);t.default=C},"./src/components/containers/SortableTable/SortableTableEmptyDataRow.js":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("./node_modules/react/react.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(e){return s.default.createElement("tr",null,s.default.createElement("td",{colSpan:e.amountCollumns},e.isLoading?s.default.createElement("span",{className:"label label-default"},"Loading..."):s.default.createElement("span",{className:"label label-default"},e.emptyDataMessage)))};t.default=n},"./src/components/containers/SortableTable/SortableTableRow.js":function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,n,r=a("./node_modules/babel-runtime/helpers/classCallCheck.js"),o=l(r),c=a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"),u=l(c),i=a("./node_modules/babel-runtime/helpers/inherits.js"),d=l(i),m=a("./node_modules/lodash/fp/uniqueId.js"),f=l(m),E=a("./node_modules/lodash/fp/get.js"),p=l(E),N=a("./node_modules/lodash/fp/find.js"),v=l(N),_=a("./node_modules/lodash/fp/flow.js"),h=l(_),b=a("./node_modules/react/react.js"),P=l(b),S=a("./node_modules/prop-types/index.js"),O=l(S),g=a("./node_modules/classnames/index.js"),R=l(g),D=(n=s=function(e){function t(){return(0,o.default)(this,t),(0,u.default)(this,e.apply(this,arguments))}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.rowData,a=e.headers,l=e.onCellClick,s=e.columnNameSortBy,n=e.id,r=(0,h.default)((0,v.default)({name:"sourceId"}),(0,p.default)("value"))(t),o=t.map(function(e,t){return e.highlighter?P.default.createElement("td",{"data-table-hover":!0,"data-th":a[t].title,key:(0,f.default)("__SortableTableRow__"),name:e.name,onClick:function(){return l(r)},className:(0,R.default)("highlighter-wrapper",{sorted:e.name===s}),tabIndex:0==t?0:-1},P.default.createElement("span",null,P.default.createElement("span",{className:"highlighter-"+e.highlighter}),P.default.createElement("span",null,e.value))):P.default.createElement("td",{"data-table-hover":!0,"data-th":a[t].title,key:(0,f.default)("__SortableTableRow__"),name:e.name,onClick:function(){return l(r)},onKeyPress:function(e){"Enter"==e.key&&l(r)},className:(0,R.default)({sorted:e.name===s}),tabIndex:0==t?0:-1},e.value)});return P.default.createElement("tr",{className:(0,R.default)({info:n===r})},o)},t}(b.PureComponent),s.propTypes={rowData:O.default.arrayOf(O.default.shape({name:O.default.string,value:O.default.oneOfType([O.default.string,O.default.number])})),onCellClick:O.default.func.isRequired,columnNameSortBy:O.default.string.isRequired},n);t.default=D},"./src/components/containers/SortableTable/sortable-table-header-components/SortableTableHeaderCell.js":function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=a("./node_modules/react/react.js"),n=l(s),r=a("./node_modules/prop-types/index.js"),o=l(r),c=a("./node_modules/classnames/index.js"),u=l(c),i=function(e){var t=e.name,a=e.title,l=e.icon,s=e.onClick,r=e.sortingOrder;return n.default.createElement("th",{className:(0,u.default)({sorted:r},r),name:t,onClick:function(e){return s(e,t)}},n.default.createElement("span",null,a)," ",l)};i.propTypes={name:o.default.string.isRequired,title:o.default.string.isRequired,onClick:o.default.func.isRequired,sortingOrder:o.default.oneOf([null,"asc","desc"]),icon:o.default.oneOfType([o.default.element,o.default.string])},t.default=i},"./src/components/containers/SortableTable/sortable-table-header-components/SortableTableHeaderRow.js":function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,n,r=a("./node_modules/babel-runtime/helpers/extends.js"),o=l(r),c=a("./node_modules/babel-runtime/helpers/classCallCheck.js"),u=l(c),i=a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"),d=l(i),m=a("./node_modules/babel-runtime/helpers/inherits.js"),f=l(m),E=a("./node_modules/lodash/fp/uniqueId.js"),p=l(E),N=a("./node_modules/lodash/fp/isFunction.js"),v=l(N),_=a("./node_modules/react/react.js"),h=l(_),b=a("./node_modules/prop-types/index.js"),P=l(b),S=a("./src/components/containers/SortableTable/sortable-table-header-components/SortableTableHeaderCell.js"),O=l(S),g=(n=s=function(e){function t(){var a,l,s;(0,u.default)(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return a=l=(0,d.default)(this,e.call.apply(e,[this].concat(r))),l.state={sortingOrder:"asc"},l.getNextSorting=function(e,t){if(l.props.columnNameSortBy!==e)return"asc";switch(t){case"asc":return"desc";case"desc":default:return"asc"}},l.handleCellClick=function(e,t){if("viewPatientNavigation"!==t){var a=l.props.onHeaderCellClick,s=l.getNextSorting(t,l.state.sortingOrder);l.setState({sortingOrder:s}),(0,v.default)(a)&&a(e,{name:t,sortingOrder:s})}},s=a,(0,d.default)(l,s)}return(0,f.default)(t,e),t.prototype.render=function(){var e=this,t=this.state.sortingOrder,a=this.props.columnNameSortBy,l=function(e){return e===a?t:null};return h.default.createElement("tr",null,this.props.headers.map(function(t){var a=t.key,s=t.title,n=t.icon;return h.default.createElement(O.default,(0,o.default)({key:(0,p.default)("__SortableTableHeaderCell__"),onClick:e.handleCellClick,sortingOrder:l(a),name:a},{title:s,icon:n}))}))},t}(_.PureComponent),s.propTypes={headers:P.default.arrayOf(P.default.shape({key:P.default.string.isRequired,title:P.default.string.isRequired,icon:P.default.oneOfType([P.default.element,P.default.string]),transformer:P.default.func})).isRequired,onHeaderCellClick:P.default.func.isRequired,columnNameSortBy:P.default.string.isRequired},n);t.default=g},"./src/components/form-fields/FormSection.js":function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,n,r=a("./node_modules/babel-runtime/helpers/classCallCheck.js"),o=l(r),c=a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"),u=l(c),i=a("./node_modules/babel-runtime/helpers/inherits.js"),d=l(i),m=a("./node_modules/react/react.js"),f=l(m),E=a("./node_modules/classnames/index.js"),p=l(E),N=(n=s=function(e){function t(){var a,l,s;(0,o.default)(this,t);for(var n=arguments.length,r=Array(n),c=0;c<n;c++)r[c]=arguments[c];return a=l=(0,u.default)(this,e.call.apply(e,[this].concat(r))),l.state={isOpenAccordion:!1},l.toggleAccordion=function(){l.setState({isOpenAccordion:!l.state.isOpenAccordion})},s=a,(0,u.default)(l,s)}return(0,d.default)(t,e),t.prototype.componentWillMount=function(){var e=this.props.isOpenAccordion;this.setState({isOpenAccordion:!!e})},t.prototype.render=function(){var e=this.props,t=e.title,a=e.isImportBtn,l=e.onImportClick,s=e.isAccordion,n=e.isBordered,r=e.theme,o=e.children,c=this.state.isOpenAccordion;return f.default.createElement("div",{className:(0,p.default)("form-group-section form-group-section-"+r,{"form-group-section-bordered":n,accordion:s,open:c})},t||s||a?f.default.createElement("div",{className:"form-group-section-heading"},s||a?f.default.createElement("div",{className:"control-group without-side-indent right"},a?f.default.createElement("button",{onClick:l,className:"btn btn-"+r},f.default.createElement("span",{className:"btn-text"},"Import Data")):null,s?f.default.createElement("button",{onClick:this.toggleAccordion,className:"btn btn-"+r+" btn-inverse btn-square btn-form-group-section-toggle"},f.default.createElement("i",{className:"btn-icon fa fa-chevron-up"})):null):null,t?f.default.createElement("h3",{className:"panel-title"},t):null):null,f.default.createElement("div",{className:"form-group-section-body"},o))},t}(m.PureComponent),s.defaultProps={isBordered:!1,isAccordion:!1,isImportBtn:!1},n);t.default=N},"./src/components/form-fields/FormSectionList.js":function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,n,r=a("./node_modules/babel-runtime/helpers/classCallCheck.js"),o=l(r),c=a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"),u=l(c),i=a("./node_modules/babel-runtime/helpers/inherits.js"),d=l(i),m=a("./node_modules/react/react.js"),f=l(m),E=a("./node_modules/prop-types/index.js"),p=l(E),N=(n=s=function(e){function t(){return(0,o.default)(this,t),(0,u.default)(this,e.apply(this,arguments))}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.title,a=e.children;return f.default.createElement("div",{className:"form-group-section-list"},f.default.createElement("div",{className:"form-group-section-heading"},f.default.createElement("label",{className:"control-label"},t)),a)},t}(m.PureComponent),s.propTypes={title:p.default.string.isRequired},n);t.default=N},"./src/components/plugin-page-component/PluginDetailHeader.js":function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=a("./node_modules/babel-runtime/helpers/classCallCheck.js"),n=l(s),r=a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"),o=l(r),c=a("./node_modules/babel-runtime/helpers/inherits.js"),u=l(c),i=a("./node_modules/react/react.js"),d=l(i),m=a("./src/components/ui-elements/PTButton/PTButton.js"),f=l(m),E=function(e){function t(){return(0,n.default)(this,t),(0,o.default)(this,e.apply(this,arguments))}return(0,u.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.onExpand,a=e.name,l=e.title,s=e.onShow,n=e.currentPanel,r=e.isBtnShowPanel;return d.default.createElement("div",{className:"panel-heading"},d.default.createElement("div",{className:"control-group right"},d.default.createElement(f.default,{className:"btn btn-success btn-inverse btn-square hidden-xs hidden-sm btn-expand-panel","aria-label":"Expand / Collapse",onClick:function(){return t(a,n)}},d.default.createElement("i",{className:"btn-icon fa fa-expand"}),d.default.createElement("i",{className:"btn-icon fa fa-compress"})),r?d.default.createElement(f.default,{className:"btn btn-success btn-inverse btn-square btn-toggle-rotate","aria-label":"Toggle",onClick:function(){return s(a)}},d.default.createElement("i",{className:"btn-icon fa fa-chevron-up"})):null),d.default.createElement("h2",{className:"panel-title"},l))},t}(i.PureComponent);t.default=E},"./src/components/plugin-page-component/PluginDetailPanel.js":function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,n,r=a("./node_modules/babel-runtime/helpers/classCallCheck.js"),o=l(r),c=a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"),u=l(c),i=a("./node_modules/babel-runtime/helpers/inherits.js"),d=l(i),m=a("./node_modules/lodash/fp/isUndefined.js"),f=l(m),E=a("./node_modules/react/react.js"),p=l(E),N=a("./node_modules/prop-types/index.js"),v=l(N),_=a("./node_modules/classnames/index.js"),h=l(_),b=a("./src/components/ui-elements/PTButton/PTButton.js"),P=l(b),S=a("./src/components/plugin-page-component/PluginDetailHeader.js"),O=l(S),g=(n=s=function(e){function t(){return(0,o.default)(this,t),(0,u.default)(this,e.apply(this,arguments))}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.name,a=e.title,l=e.children,s=e.isOpen,n=e.onShow,r=e.onExpand,o=e.onEdit,c=e.editedPanel,u=e.onCancel,i=e.onSaveSettings,d=e.formValues,m=e.currentPanel,E=e.isCreatePanelVisible,N=e.isBtnShowPanel,v=e.isShowControlPanel,_=e.isEditButton;return p.default.createElement("div",{className:(0,h.default)("panel panel-secondary",{open:s})},p.default.createElement(O.default,{onExpand:r,name:t,title:a,onShow:n,currentPanel:m,isBtnShowPanel:N}),p.default.createElement("div",{className:"panel-body"},l,!v||E||!(0,f.default)(c[t])&&c[t]||!_?null:p.default.createElement("div",{className:"panel-control"},p.default.createElement("div",{className:"wrap-control-group"},p.default.createElement("div",{className:"control-group right"},p.default.createElement(P.default,{className:"btn btn-success btn-inverse btn-edit","aria-label":"Edit",onClick:function(){return o(t)}},p.default.createElement("i",{className:"btn-icon fa fa-edit"}),p.default.createElement("span",{className:"btn-text"}," Edit"))))),v&&!E&&c[t]?p.default.createElement("div",{className:"panel-control"},p.default.createElement("div",{className:"wrap-control-group"},p.default.createElement("div",{className:"control-group right"},p.default.createElement(P.default,{className:"btn btn-danger","aria-label":"Cancel",onClick:function(){return u(t)}},p.default.createElement("i",{className:"btn-icon fa fa-ban"}),p.default.createElement("span",{className:"btn-text"}," Cancel")),p.default.createElement(P.default,{className:"btn btn-success","aria-label":"Complete",onClick:function(){return i(d,t)}},p.default.createElement("i",{className:"btn-icon fa fa-check"}),p.default.createElement("span",{className:"btn-text"}," Complete"))))):null))},t}(E.PureComponent),s.propTypes={name:v.default.string.isRequired,title:v.default.string.isRequired,isOpen:v.default.bool.isRequired,children:v.default.element.isRequired,onShow:v.default.func,onExpand:v.default.func.isRequired,onEdit:v.default.func,onCancel:v.default.func,onSaveSettings:v.default.func,editedPanel:v.default.object,isShowControlPanel:v.default.bool,isEditButton:v.default.bool},s.defaultProps={isShowControlPanel:!0,isEditButton:!0},n);t.default=g},"./src/components/plugin-page-component/PluginListHeader.js":function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,n,r=a("./node_modules/babel-runtime/helpers/classCallCheck.js"),o=l(r),c=a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"),u=l(c),i=a("./node_modules/babel-runtime/helpers/inherits.js"),d=l(i),m=a("./node_modules/react/react.js"),f=l(m),E=a("./node_modules/prop-types/index.js"),p=l(E),N=a("./src/components/ui-elements/PTButton/PTButton.js"),v=l(N),_=(n=s=function(e){function t(){var a,l,s;(0,o.default)(this,t);for(var n=arguments.length,r=Array(n),c=0;c<n;c++)r[c]=arguments[c];return a=l=(0,u.default)(this,e.call.apply(e,[this].concat(r))),l.state={isFilterInputVisible:!1},l.toggleFilterInputVisibility=function(){return l.setState(function(e){return{isFilterInputVisible:!e.isFilterInputVisible}},function(){return!l.state.isFilterInputVisible&&l.props.onFilterChange({target:{value:""}})})},s=a,(0,u.default)(l,s)}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.state.isFilterInputVisible,t=this.props,a=t.onFilterChange,l=t.panelTitle,s=t.isBtnExpandVisible,n=t.isBtnTableVisible,r=t.onExpand,o=t.name,c=t.currentPanel;return f.default.createElement("div",{className:"panel-heading"},f.default.createElement("div",{className:"control-group right"},s?f.default.createElement(v.default,{className:"btn btn-success btn-inverse btn-square hidden-xs hidden-sm btn-expand-panel","aria-label":"Expand / Collapse",onClick:function(){return r(o,c)}},f.default.createElement("i",{className:"btn-icon fa fa-expand"}),f.default.createElement("i",{className:"btn-icon fa fa-compress"})):null,n?f.default.createElement(v.default,{className:"btn btn-success btn-inverse btn-dropdown-toggle btn-table","aria-label":"Table"},f.default.createElement("i",{className:"btn-icon fa fa-table"})):null,f.default.createElement(v.default,{className:"btn btn-success btn-inverse btn-filter","aria-label":"Filter",onClick:this.toggleFilterInputVisibility,accessKey:"G"},f.default.createElement("i",{className:"btn-icon fa fa-filter"}))),f.default.createElement("h2",{className:"panel-title"},l),e&&f.default.createElement("div",{className:"panel-filter"},f.default.createElement("div",{className:"inner-addon addon-left"},f.default.createElement("div",{className:"addon"},f.default.createElement("i",{className:"fa fa-filter"})),f.default.createElement("input",{className:"form-control",placeholder:"Filter...",onChange:a,autoFocus:!0}))))},t}(m.PureComponent),s.propTypes={onFilterChange:p.default.func.isRequired,panelTitle:p.default.string.isRequired},n);t.default=_},"./src/components/plugin-page-component/PluginMainPanel.js":function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,n,r=a("./node_modules/babel-runtime/helpers/classCallCheck.js"),o=l(r),c=a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"),u=l(c),i=a("./node_modules/babel-runtime/helpers/inherits.js"),d=l(i),m=a("./node_modules/lodash/fp/flow.js"),f=l(m),E=a("./node_modules/lodash/fp/slice.js"),p=l(E),N=a("./node_modules/lodash/fp/size.js"),v=l(N),_=a("./node_modules/react/react.js"),h=l(_),b=a("./src/components/ui-elements/PTButton/PTButton.js"),P=l(b),S=a("./src/components/containers/SortableTable/SortableTable.js"),O=l(S),g=a("./src/components/presentational/PaginationBlock/PaginationBlock.js"),R=l(g),D=a("./src/components/ui-elements/Spinner/Spinner.js"),T=l(D),I=(n=s=function(e){function t(){var a,l,s;(0,o.default)(this,t);for(var n=arguments.length,r=Array(n),c=0;c<n;c++)r[c]=arguments[c];return a=l=(0,u.default)(this,e.call.apply(e,[this].concat(r))),l.getClinicalNotesOnFirstPage=function(e){var t=l.props,a=t.listPerPageAmount,s=t.offset;return(0,v.default)(e)>a?(0,p.default)(s,s+a)(e):e},l.shouldHavePagination=function(e){return(0,v.default)(e)>l.props.listPerPageAmount},s=a,(0,u.default)(l,s)}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.headers,a=e.resourceData,l=e.emptyDataMessage,s=e.onHeaderCellClick,n=e.onCellClick,r=e.columnNameSortBy,o=e.sortingOrder,c=e.filteredData,u=e.totalEntriesAmount,i=e.offset,d=e.setOffset,m=e.isBtnCreateVisible,E=e.onCreate,p=e.listPerPageAmount,N=e.isLoading,v=e.id,_=(0,f.default)(this.getClinicalNotesOnFirstPage)(c),b=this.shouldHavePagination(c);return h.default.createElement("div",{className:"panel-body"},h.default.createElement(O.default,{headers:t,data:_,resourceData:a,emptyDataMessage:l,onHeaderCellClick:s,onCellClick:n,columnNameSortBy:r,sortingOrder:o,id:v}),N?h.default.createElement(T.default,null):null,b||m?h.default.createElement("div",{className:"panel-control"},h.default.createElement("div",{className:"wrap-control-group"},b&&h.default.createElement("div",{className:"control-group with-indent left"},h.default.createElement(R.default,{entriesPerPage:p,totalEntriesAmount:u,offset:i,setOffset:d})),m&&h.default.createElement("div",{className:"control-group with-indent right"},h.default.createElement(P.default,{className:"btn btn-success btn-inverse btn-create","aria-label":"Create",onClick:function(){return E()}},h.default.createElement("i",{className:"btn-icon fa fa-plus"}),h.default.createElement("span",{className:"btn-text"}," Create"))))):null)},t}(_.PureComponent),s.defaultProps={listPerPageAmount:10,emptyDataMessage:"No list"},n);t.default=I},"./src/components/theme/config/synopsisRequests.js":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.themeSynopsisRequests=t.themeSynopsisOnMount=t.fetchPatientVitalsDetailOnMount=t.fetchPatientVitalsOnMount=t.fetchPatientVaccinationsDetailOnMount=t.fetchPatientVaccinationsOnMount=t.fetchPatientTransfersOfCareDetailOnMount=t.fetchPatientTransfersOfCareOnMount=t.fetchPatientTopThreeThingsDetailOnMount=t.fetchPatientTopThreeThingsOnMount=t.fetchPatientTestResultsDetailOnMount=t.fetchPatientTestResultsOnMount=t.fetchPatientReferralsDetailOnMount=t.fetchPatientReferralsOnMount=t.fetchPatientProceduresDetailOnMount=t.fetchPatientProceduresOnMount=t.fetchPatientPersonalNotesDetailOnMount=t.fetchPatientPersonalNotesOnMount=t.fetchPatientPromsDetailOnMount=t.fetchPatientPromsOnMount=t.fetchPatientOrdersDetailOnMount=t.fetchPatientOrdersOnMount=t.fetchPatientImagesOnMount=t.fetchPatientGenericPluginDetailOnMount=t.fetchPatientGenericPluginOnMount=t.fetchPatientMDTsDetailOnMount=t.fetchPatientMDTsOnMount=t.fetchPatientEventsDetailOnMount=t.fetchPatientEventsOnMount=t.fetchPatientDrawingsDetailOnMount=t.fetchPatientDrawingsOnMount=t.fetchPatientDocumentsDetailOnMount=t.fetchPatientDocumentsOnMount=t.fetchPatientDiaryEntryDetailOnMount=t.fetchPatientDiaryEntryOnMount=t.fetchPatientClinicalStatementsDetailOnMount=t.fetchPatientClinicalStatementsOnMount=t.fetchPatientClinicalNotesDetailOnMount=t.fetchPatientClinicalNotesOnMount=void 0;var l=a("./node_modules/lodash/fp/get.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(l),n=a("./src/components/theme/plugins/Feeds/ducks/fetch-feeds.duck.js"),r=a("./src/components/theme/plugins/TopThreeThings/ducks/fetch-patient-top-three-things.duck.js"),o=a("./src/components/theme/plugins/Vaccinations/ducks/fetch-patient-vaccinations.duck.js"),c=function(e){return{componentDidMount:function(){var t=this.props,a=t.actions,l=t.match,n=(0,s.default)("params.userId",l);n&&a[e]({userId:n})},componentWillReceiveProps:function(t){var a=this.props,l=a.actions,n=a.match,r=(0,s.default)("match.params.userId",t);r!==(0,s.default)("params.userId",n)&&l[e]({userId:r})}}},u=function(e){return{componentDidMount:function(){var t=this.props,a=t.actions,l=t.match,n=(0,s.default)("params.userId",l),r=(0,s.default)("params.sourceId",l);n&&r&&a[e]({userId:n,sourceId:r})}}};t.fetchPatientClinicalNotesOnMount=c("fetchPatientClinicalNotesRequest"),t.fetchPatientClinicalNotesDetailOnMount=u("fetchPatientClinicalNotesDetailRequest"),t.fetchPatientClinicalStatementsOnMount=c("fetchPatientClinicalStatementsRequest"),t.fetchPatientClinicalStatementsDetailOnMount=u("fetchPatientTopThreeThingsDetailRequest"),t.fetchPatientDiaryEntryOnMount=c("fetchPatientDiaryEntryRequest"),t.fetchPatientDiaryEntryDetailOnMount=u("fetchPatientDiaryEntryDetailRequest"),t.fetchPatientDocumentsOnMount=c("fetchPatientDocumentsRequest"),t.fetchPatientDocumentsDetailOnMount=u("fetchPatientDocumentsDetailRequest"),t.fetchPatientDrawingsOnMount=c("fetchPatientDrawingsRequest"),t.fetchPatientDrawingsDetailOnMount=u("fetchPatientDrawingsDetailRequest"),t.fetchPatientEventsOnMount=c("fetchPatientEventsRequest"),t.fetchPatientEventsDetailOnMount=u("fetchPatientEventsDetailRequest"),t.fetchPatientMDTsOnMount=c("fetchPatientMDTsRequest"),t.fetchPatientMDTsDetailOnMount=u("fetchPatientMDTsDetailRequest"),t.fetchPatientGenericPluginOnMount=c("fetchPatientGenericPluginRequest"),t.fetchPatientGenericPluginDetailOnMount=u("fetchPatientGenericPluginDetailRequest"),t.fetchPatientImagesOnMount=c("fetchPatientImagesRequest"),t.fetchPatientOrdersOnMount=c("fetchPatientOrdersRequest"),t.fetchPatientOrdersDetailOnMount=u("fetchPatientOrdersDetailRequest"),t.fetchPatientPromsOnMount=c("fetchPatientPromsRequest"),t.fetchPatientPromsDetailOnMount=u("fetchPatientPromsDetailRequest"),t.fetchPatientPersonalNotesOnMount=c("fetchPatientPersonalNotesRequest"),t.fetchPatientPersonalNotesDetailOnMount=u("fetchPatientPersonalNotesDetailRequest"),t.fetchPatientProceduresOnMount=c("fetchPatientProceduresRequest"),t.fetchPatientProceduresDetailOnMount=u("fetchPatientProceduresDetailRequest"),t.fetchPatientReferralsOnMount=c("fetchPatientReferralsRequest"),t.fetchPatientReferralsDetailOnMount=u("fetchPatientReferralsDetailRequest"),t.fetchPatientTestResultsOnMount=c("fetchPatientTestResultsRequest"),t.fetchPatientTestResultsDetailOnMount=u("fetchPatientTestResultsDetailRequest"),t.fetchPatientTopThreeThingsOnMount=c("fetchPatientTopThreeThingsRequest"),t.fetchPatientTopThreeThingsDetailOnMount=u("fetchPatientTopThreeThingsDetailRequest"),t.fetchPatientTransfersOfCareOnMount=c("fetchPatientTransfersOfCareRequest"),t.fetchPatientTransfersOfCareDetailOnMount=u("fetchPatientTransfersOfCareDetailRequest"),t.fetchPatientVaccinationsOnMount=c("fetchPatientVaccinationsRequest"),t.fetchPatientVaccinationsDetailOnMount=u("fetchPatientVaccinationsDetailRequest"),t.fetchPatientVitalsOnMount=c("fetchPatientVitalsRequest"),t.fetchPatientVitalsDetailOnMount=u("fetchPatientVitalsDetailRequest"),t.themeSynopsisOnMount=function(e){return{componentDidMount:function(){var t=this.props,a=t.actions,l=t.match,n=(0,s.default)("params.userId",l);e.forEach(function(e){n&&a[e]({userId:n})})},componentWillReceiveProps:function(t){var a=this.props,l=a.actions,n=a.match,r=(0,s.default)("match.params.userId",t),o=(0,s.default)("params.userId",n);e.forEach(function(e){r!==o&&l[e]({userId:r})})}}}(["fetchFeedsRequest","fetchPatientTopThreeThingsSynopsisRequest","fetchPatientVaccinationsSynopsisRequest"]),t.themeSynopsisRequests={fetchFeedsRequest:n.fetchFeedsRequest,fetchPatientTopThreeThingsSynopsisRequest:r.fetchPatientTopThreeThingsSynopsisRequest,fetchPatientVaccinationsSynopsisRequest:o.fetchPatientVaccinationsSynopsisRequest}},"./src/components/theme/plugins/Documents/Documents.js":function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,n,r,o,c,u,i=a("./node_modules/babel-runtime/helpers/defineProperty.js"),d=l(i),m=a("./node_modules/babel-runtime/helpers/extends.js"),f=l(m),E=a("./node_modules/babel-runtime/helpers/classCallCheck.js"),p=l(E),N=a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"),v=l(N),_=a("./node_modules/babel-runtime/helpers/inherits.js"),h=l(_),b=a("./node_modules/recompose/compose.js"),P=l(b),S=a("./node_modules/recompose/lifecycle.js"),O=l(S),g=a("./node_modules/lodash/fp/size.js"),R=l(g),D=a("./node_modules/lodash/fp/isEmpty.js"),T=l(D),I=a("./node_modules/lodash/fp/toLower.js"),C=l(I),M=a("./node_modules/react/react.js"),A=l(M),L=a("./node_modules/prop-types/index.js"),y=l(L),x=a("./node_modules/react-bootstrap/es/index.js"),j=a("./node_modules/classnames/index.js"),Y=l(j),w=a("./node_modules/redux/es/index.js"),U=a("./node_modules/react-redux/es/index.js"),V=a("./src/components/plugin-page-component/PluginListHeader.js"),H=l(V),B=a("./src/components/plugin-page-component/PluginMainPanel.js"),F=l(B),k=a("./src/components/theme/plugins/Documents/table-columns.config.js"),G=a("./src/components/theme/plugins/Documents/forms.config.js"),q=a("./src/components/theme/plugins/Documents/ducks/fetch-patient-documents.duck.js"),W=a("./src/components/theme/plugins/Documents/ducks/fetch-patient-documents-detail.duck.js"),K=a("./src/components/theme/config/synopsisRequests.js"),X=a("./src/components/theme/plugins/Documents/selectors.js"),z=a("./src/components/theme/config/clientUrls.js"),J=a("./src/utils/plugin-helpers.utils.js"),Q=a("./src/components/theme/plugins/Documents/DocumentsDetail/DocumentsDetail.js"),Z=l(Q),$=a("./src/utils/time-helpers.utils.js"),ee="documentsMain",te="documentPanel",ae=function(e){return{actions:(0,w.bindActionCreators)({fetchPatientDocumentsRequest:q.fetchPatientDocumentsRequest,fetchPatientDocumentsDetailRequest:W.fetchPatientDocumentsDetailRequest},e)}},le=(s=(0,U.connect)(X.patientDocumentsSelector,ae),n=(0,U.connect)(X.patientDocumentsDetailSelector,ae),r=(0,P.default)((0,O.default)(K.fetchPatientDocumentsOnMount),(0,O.default)(K.fetchPatientDocumentsDetailOnMount)),s(o=n(o=r((u=c=function(e){function t(){var a,l,s;(0,p.default)(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return a=l=(0,v.default)(this,e.call.apply(e,[this].concat(r))),l.state={nameShouldInclude:"",selectedColumns:k.defaultColumnsSelected,openedPanel:te,columnNameSortBy:G.valuesNames.TYPE,sortingOrder:"asc",expandedPanel:"all",isBtnExpandVisible:!1,isAllPanelsVisible:!1,isDetailPanelVisible:!1,isSecondPanel:!1,isCreatePanelVisible:!1,editedPanel:{},offset:0,isSubmit:!1,isLoading:!0},l.handleExpand=function(e,t){t===ee?"all"===l.state.expandedPanel?l.setState({expandedPanel:e}):l.setState({expandedPanel:"all"}):"all"===l.state.expandedPanel?l.setState({expandedPanel:e,openedPanel:e}):l.setState({expandedPanel:"all"})},l.handleFilterChange=function(e){var t=e.target.value;return l.setState({nameShouldInclude:(0,C.default)(t)})},l.handleHeaderCellClick=function(e,t){var a=t.name,s=t.sortingOrder;return l.setState({columnNameSortBy:a,sortingOrder:s})},l.handleDetailDocumentsClick=function(e){var t=l.props,a=t.actions,s=t.userId;l.setState({isSecondPanel:!0,isDetailPanelVisible:!0,isBtnExpandVisible:!0,openedPanel:te,editedPanel:{},expandedPanel:"all",isLoading:!0}),a.fetchPatientDocumentsDetailRequest({userId:s,sourceId:e}),l.context.router.history.push(z.themeClientUrls.PATIENTS+"/"+s+"/"+z.themeClientUrls.DOCUMENTS+"/"+e)},l.handleSetOffset=function(e){return l.setState({offset:e})},l.handleCreate=function(){},l.handleEdit=function(e){l.setState(function(t){return{editedPanel:(0,f.default)({},t.editedPanel,(0,d.default)({},e,!0)),isSubmit:!1}})},l.handleDocumentDetailCancel=function(e){l.setState(function(t){return{editedPanel:(0,f.default)({},t.editedPanel,(0,d.default)({},e,!1)),isSubmit:!1,isLoading:!0}})},l.handleSaveSettingsDetailForm=function(){},l.handleShow=function(e){l.setState({openedPanel:e})},l.formToShowCollection=function(e){var t=l.state,a=t.columnNameSortBy,s=t.sortingOrder,n=t.nameShouldInclude;return e=J.operationsOnCollection.modificate(e,[{keyFrom:G.valuesNames.DATE_CREATED,keyTo:G.valuesNames.DATE_CREATED+"Convert",fn:$.getDDMMMYYYY}]),J.operationsOnCollection.filterAndSort({collection:e,filterBy:n,sortingByKey:a,sortingByOrder:s,filterKeys:[G.valuesNames.TYPE,G.valuesNames.DATE_CREATED+"Convert",G.valuesNames.SOURCE]})},s=a,(0,v.default)(l,s)}return(0,h.default)(t,e),t.prototype.componentWillReceiveProps=function(){var e=this,t=this.context.router.route.match.params.sourceId,a=this.context.router.route.match.params.userId;this.context.router.history.location.pathname===z.themeClientUrls.PATIENTS+"/"+a+"/"+z.themeClientUrls.DOCUMENTS+"/"+t&&void 0!==t&&this.setState({isSecondPanel:!0,isDetailPanelVisible:!0,isBtnExpandVisible:!0,isBtnCreateVisible:!0,isCreatePanelVisible:!1}),this.context.router.history.location.pathname===z.themeClientUrls.PATIENTS+"/"+a+"/"+z.themeClientUrls.DOCUMENTS&&this.setState({isSecondPanel:!1,isBtnExpandVisible:!1,isBtnCreateVisible:!0,isCreatePanelVisible:!1,openedPanel:te,isDetailPanelVisible:!1,expandedPanel:"all"}),setTimeout(function(){e.setState({isLoading:!1})},500)},t.prototype.render=function(){var e=this.state,t=e.selectedColumns,a=e.columnNameSortBy,l=e.sortingOrder,s=e.isSecondPanel,n=e.isDetailPanelVisible,r=e.isBtnExpandVisible,o=e.expandedPanel,c=e.openedPanel,u=e.editedPanel,i=e.offset,d=e.isSubmit,m=e.isLoading,f=this.props,E=f.allDocuments,p=f.documentDetail,N=f.userId,v="documentsDetail"===o||o===te,_=o===ee,h=k.columnsConfig.filter(function(e){return t[e.key]}),b=this.formToShowCollection(E),P=void 0;return n&&!(0,T.default)(p)&&(P=p.sourceId),A.default.createElement("section",{className:"page-wrapper"},A.default.createElement("div",{className:(0,Y.default)("section",{"full-panel full-panel-main":_,"full-panel full-panel-details":v})},A.default.createElement(x.Row,null,_||"all"===o?A.default.createElement(x.Col,{xs:12,className:(0,Y.default)({"col-panel-main":s})},A.default.createElement("div",{className:"panel panel-primary"},A.default.createElement(H.default,{onFilterChange:this.handleFilterChange,panelTitle:"Documents",isBtnExpandVisible:r,isBtnTableVisible:!1,name:ee,onExpand:this.handleExpand,currentPanel:ee}),A.default.createElement(F.default,{headers:h,resourceData:E,emptyDataMessage:"No documents",onHeaderCellClick:this.handleHeaderCellClick,onCellClick:this.handleDetailDocumentsClick,columnNameSortBy:a,sortingOrder:l,table:"documents",filteredData:b,totalEntriesAmount:(0,R.default)(b),offset:i,setOffset:this.handleSetOffset,onCreate:this.handleCreate,id:P,isLoading:m}))):null,("all"===o||v)&&n?A.default.createElement(x.Col,{xs:12,className:(0,Y.default)({"col-panel-details":s})},A.default.createElement(Z.default,{onExpand:this.handleExpand,name:"documentsDetail",openedPanel:c,onShow:this.handleShow,expandedPanel:o,currentPanel:"documentsDetail",detail:p,onEdit:this.handleEdit,editedPanel:u,onCancel:this.handleDocumentDetailCancel,onSaveSettings:this.handleSaveSettingsDetailForm,isSubmit:d,userId:N})):null)))},t}(M.PureComponent),c.propTypes={allDocuments:y.default.arrayOf(y.default.object)},c.contextTypes={router:y.default.shape({history:y.default.object})},o=u))||o)||o)||o);t.default=le},"./src/components/theme/plugins/Documents/DocumentsDetail/DocumentsDetail.js":function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,n,r=a("./node_modules/babel-runtime/helpers/classCallCheck.js"),o=l(r),c=a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"),u=l(c),i=a("./node_modules/babel-runtime/helpers/inherits.js"),d=l(i),m=a("./node_modules/react/react.js"),f=l(m),E=a("./src/components/plugin-page-component/PluginDetailPanel.js"),p=l(E),N=a("./src/components/theme/plugins/Documents/DocumentsDetail/DocumentsDetailDischarge.js"),v=l(N),_=a("./src/components/theme/plugins/Documents/DocumentsDetail/DocumentsDetailReferral.js"),h=l(_),b=a("./src/components/ui-elements/ConfirmationModal/ConfirmationModal.js"),P=l(b),S=a("./src/components/theme/plugins/Documents/forms.config.js"),O=a("./node_modules/prop-types/index.js"),g=l(O),R=a("./src/config/client-urls.constants.js"),D="discharge",T="referral",I=(n=s=function(e){function t(){var a,l,s;(0,o.default)(this,t);for(var n=arguments.length,r=Array(n),c=0;c<n;c++)r[c]=arguments[c];return a=l=(0,u.default)(this,e.call.apply(e,[this].concat(r))),l.state={isOpenModal:!1,typeImportData:"",importData:null},l.getTypeOfDocument=function(){var e=l.props.detail,t=null;if(e=e||{},e[S.valuesNames.TYPE]){var a=e[S.valuesNames.TYPE].toLowerCase();a.indexOf(D)>=0&&(t=D),a.indexOf(T)>=0&&(t=T)}return t},l.openModal=function(){l.setState({isOpenModal:!0})},l.closeModal=function(){l.setState({isOpenModal:!1})},l.importHandler=function(e,t){return function(){l.openModal(),l.setState({typeImportData:e,importData:t})}},l.onOkModal=function(){var e=l.props.userId,t=l.state,a=t.typeImportData,s=t.importData;l.closeModal(),s.isImport=!0,s.originalSource=location.href,s.originalComposition=l.getTypeOfDocument(),l.context.router.history.push({pathname:R.clientUrls.PATIENTS+"/"+e+"/"+a+"/create",state:{importData:s}})},s=a,(0,u.default)(l,s)}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.onExpand,a=e.onShow,l=e.openedPanel,s=e.expandedPanel,n=e.currentPanel,r=e.onEdit,o=e.editedPanel,c=e.onCancel,u=e.onSaveSettings,i=e.testResultsDetailFormValues,d=this.props.detail,m=this.state.isOpenModal,E=this.getTypeOfDocument();return d=d||{},f.default.createElement("div",{className:"section-detail"},f.default.createElement("div",{className:"panel-group accordion"},"documentPanel"===s||"all"===s?f.default.createElement(p.default,{onExpand:t,name:"documentPanel",title:"Document Details",onShow:a,isOpen:"documentPanel"===l,currentPanel:n,onEdit:r,editedPanel:o,onCancel:c,onSaveSettings:u,formValues:i,isBtnShowPanel:!1,isShowControlPanel:!1},f.default.createElement("div",{className:"panel-body-inner"},E===D?f.default.createElement(v.default,{detail:d,importHandler:this.importHandler}):E===T?f.default.createElement(h.default,{detail:d,importHandler:this.importHandler}):f.default.createElement("div",{className:"form"},f.default.createElement("div",{className:"form-group-wrapper"},f.default.createElement("div",{className:"form-group"},f.default.createElement("div",{className:"form-control-static"},"No Data")))))):null),m&&f.default.createElement(P.default,{title:"Documents Import Access Disclaimer",isShow:!0,onOk:this.onOkModal,onHide:this.closeModal,onCancel:this.closeModal,isShowOkButton:!0,isShowCancelButton:!0,textOkButton:"Agree",textCancelButton:"Decline"},f.default.createElement("span",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nec lobortis elit. Aenean mi nunc, feugiat ut aliquet non, iaculis vel tellus. Donec semper felis placerat, posuere nisi a, suscipit turpis. Integer sit amet lacus pellentesque, vestibulum libero id, sagittis nisi. Phasellus eleifend, neque eget vulputate semper, enim dui dictum neque, non iaculis felis augue at nunc.")))},t}(m.PureComponent),s.contextTypes={router:g.default.shape({history:g.default.object}),history:g.default.object},n);t.default=I},"./src/components/theme/plugins/Documents/DocumentsDetail/DocumentsDetailDischarge.js":function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=a("./node_modules/babel-runtime/helpers/classCallCheck.js"),n=l(s),r=a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"),o=l(r),c=a("./node_modules/babel-runtime/helpers/inherits.js"),u=l(c),i=a("./node_modules/react/react.js"),d=l(i),m=a("./src/components/form-fields/FormSectionList.js"),f=l(m),E=a("./src/components/form-fields/FormSection.js"),p=l(E),N=a("./src/utils/time-helpers.utils.js"),v=a("./src/components/theme/plugins/Documents/forms.config.js"),_=a("./node_modules/classnames/index.js"),h=l(_),b=function(e){function t(){return(0,n.default)(this,t),(0,o.default)(this,e.apply(this,arguments))}return(0,u.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.detail,a=e.importHandler;t=t||{};var l=(0,N.getDDMMMYYYY)(t[v.valuesNames.DATE]),s=(0,N.getDDMMMYYYY)(t[v.valuesNames.PI_DISCHARGING_DATE]),n=(0,N.getDDMMMYYYY)(t[v.valuesNames.PI_ADMISSION_DATE]);return d.default.createElement("div",{className:"form"},d.default.createElement("div",{className:"form-group-wrapper"},d.default.createElement("div",{className:"row-expand"},t[v.valuesNames.NAME]?d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.NAME),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.NAME]))):null,d.default.createElement("div",{className:(0,h.default)({"col-expand-left":!t[v.valuesNames.NAME],"col-expand-right":t[v.valuesNames.NAME]})},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.DATE),d.default.createElement("div",{className:"form-control-static"},l)))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.AUTHOR),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.AUTHOR])))),d.default.createElement(f.default,{title:v.valuesLabels.TITLE_FACILITY},d.default.createElement(p.default,null,d.default.createElement("div",{className:"form-group-wrapper"},d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.FACILITY),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.FACILITY]))))))),d.default.createElement(f.default,{title:v.valuesLabels.TITLE_PATIENT_INDENTIFIER},d.default.createElement(p.default,null,d.default.createElement("div",{className:"form-group-wrapper"},d.default.createElement("div",{className:"row-expand"},t[v.valuesNames.PI_MRNTYPE]?d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.PI_MRNTYPE),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.PI_MRNTYPE]))):null,t[v.valuesNames.PI_OTHTYPE]?d.default.createElement("div",{className:(0,h.default)({"col-expand-left":!t[v.valuesNames.PI_MRNTYPE],"col-expand-right":t[v.valuesNames.PI_MRNTYPE]})},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.PI_OTHTYPE),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.PI_OTHTYPE]))):null),d.default.createElement("div",{className:"row-expand"},t[v.valuesNames.PI_GMSTYPE]?d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.PI_GMSTYPE),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.PI_GMSTYPE]))):null),d.default.createElement("div",{className:"row-expand"},t[v.valuesNames.PI_NAME]?d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.PI_NAME),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.PI_NAME]))):null,t[v.valuesNames.PI_ID_TYPE]?d.default.createElement("div",{className:(0,h.default)({"col-expand-left":!t[v.valuesNames.PI_NAME],"col-expand-right":t[v.valuesNames.PI_NAME]})},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.PI_ID_TYPE),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.PI_ID_TYPE]))):null),d.default.createElement("div",{className:"row-expand"},t[v.valuesNames.PI_SOURCE]?d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.PI_SOURCE),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.PI_SOURCE]))):null,t[v.valuesNames.PI_DISCHARGING]?d.default.createElement("div",{className:(0,h.default)({"col-expand-left":!t[v.valuesNames.PI_SOURCE],"col-expand-right":t[v.valuesNames.PI_SOURCE]})},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.PI_DISCHARGING),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.PI_DISCHARGING]))):null),d.default.createElement("div",{className:"row-expand"},t[v.valuesNames.PI_DISCHARGING_DATE]?d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.PI_DISCHARGING_DATE),d.default.createElement("div",{className:"form-control-static"},s))):null),d.default.createElement("div",{className:"row-expand"},t[v.valuesNames.PI_CLINICAL]?d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.PI_CLINICAL),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.PI_CLINICAL]))):null,t[v.valuesNames.PI_ADMISSION_DATE]?d.default.createElement("div",{className:(0,h.default)({"col-expand-left":!t[v.valuesNames.PI_CLINICAL],"col-expand-right":t[v.valuesNames.PI_CLINICAL]})},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.PI_ADMISSION_DATE),d.default.createElement("div",{className:"form-control-static"},n))):null)))),t[v.valuesNames.DIAGNOSIS]?d.default.createElement(f.default,{title:v.valuesLabels.TITLE_DIAGNOSIS},t[v.valuesNames.DIAGNOSIS].map(function(e,t){return d.default.createElement(p.default,{key:t,title:v.valuesLabels.DG_PROBLEM+": "+e[v.valuesNames.DG_PROBLEM],isImportBtn:!0,isAccordion:!0,isBordered:!0,onImportClick:a("diagnoses",e),theme:"primary"},d.default.createElement("div",{className:"form-group-wrapper"},d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.DG_PROBLEM),d.default.createElement("div",{className:"form-control-static"},e[v.valuesNames.DG_PROBLEM]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.DG_DESCR),d.default.createElement("div",{className:"form-control-static"},e[v.valuesNames.DG_DESCR])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.DG_TERMINOLOGY),d.default.createElement("div",{className:"form-control-static"},e[v.valuesNames.DG_TERMINOLOGY]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.DG_TERMINOLOGY_CODE),d.default.createElement("div",{className:"form-control-static"},e[v.valuesNames.DG_TERMINOLOGY_CODE]))))))})):null))},t}(i.PureComponent);t.default=b},"./src/components/theme/plugins/Documents/DocumentsDetail/DocumentsDetailReferral.js":function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=a("./node_modules/babel-runtime/helpers/classCallCheck.js"),n=l(s),r=a("./node_modules/babel-runtime/helpers/possibleConstructorReturn.js"),o=l(r),c=a("./node_modules/babel-runtime/helpers/inherits.js"),u=l(c),i=a("./node_modules/react/react.js"),d=l(i),m=a("./src/components/form-fields/FormSectionList.js"),f=l(m),E=a("./src/components/form-fields/FormSection.js"),p=l(E),N=a("./src/utils/time-helpers.utils.js"),v=a("./src/components/theme/plugins/Documents/forms.config.js"),_=function(e){function t(){return(0,n.default)(this,t),(0,o.default)(this,e.apply(this,arguments))}return(0,u.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.detail,a=e.importHandler;t=t||{};var l=(0,N.getDDMMMYYYY)(t[v.valuesNames.DATE]),s=(0,N.getDDMMMYYYY)(t[v.valuesNames.REFERRAL_DATE]);return d.default.createElement("div",{className:"form"},d.default.createElement("div",{className:"form-group-wrapper"},d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.COMPOSER_NAME),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.COMPOSER_NAME]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.DATE),d.default.createElement("div",{className:"form-control-static"},l)))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.AUTHOR),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.AUTHOR])))),d.default.createElement(f.default,{title:v.valuesLabels.TITLE_FACILITY},d.default.createElement(p.default,null,d.default.createElement("div",{className:"form-group-wrapper"},d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.FACILITY),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.FACILITY]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.FACILITY_PROVIDER_ID),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.FACILITY_PROVIDER_ID]))))))),d.default.createElement(f.default,{title:v.valuesLabels.TITLE_REFERRAL},d.default.createElement(p.default,null,d.default.createElement("div",{className:"form-group-wrapper"},d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.REFERRAL_DATE),d.default.createElement("div",{className:"form-control-static"},s))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.REFERRAL_TYPE),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.REFERRAL_TYPE])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.REFERRAL_STATUS),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.REFERRAL_STATUS]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.REFERRAL_REF),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.REFERRAL_REF])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.REFERRAL_FROM),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.REFERRAL_FROM]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.REFERRAL_TO),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.REFERRAL_TO])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.REFERRAL_COMMENTS),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.REFERRAL_COMMENTS])))),t[v.valuesNames.REFERRAL_REASONS]&&t[v.valuesNames.REFERRAL_REASONS].length?d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.REFERRAL_COMMENTS),t[v.valuesNames.REFERRAL_REASONS].map(function(e,t){return d.default.createElement("div",{className:"form-control-static",key:t},e[v.valuesNames.REFERRAL_REASON])})))):null))),d.default.createElement(f.default,{title:v.valuesLabels.TITLE_PROVIDER},d.default.createElement(p.default,null,d.default.createElement("div",{className:"form-group-wrapper"},d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.PROVIDER_NAME),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.PROVIDER_NAME]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.PROVIDER_ID),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.PROVIDER_ID])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.PROVIDER_WORK_PHONE),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.PROVIDER_WORK_PHONE]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.PROVIDER_EMERGENCY_PHONE),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.PROVIDER_EMERGENCY_PHONE])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.PROVIDER_EMAIL_PHONE),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.PROVIDER_EMAIL_PHONE]))))))),d.default.createElement(f.default,{title:v.valuesLabels.TITLE_STATUS},d.default.createElement(p.default,null,d.default.createElement("div",{className:"form-group-wrapper"},d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.STATUS),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.STATUS]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.STATUS_ORIGINAL_CODE),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.STATUS_ORIGINAL_CODE])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.STATUS_CODE),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.STATUS_CODE]))))))),d.default.createElement(f.default,{title:v.valuesLabels.TITLE_SYNOPSIS},d.default.createElement(p.default,null,d.default.createElement("div",{className:"form-group-wrapper"},d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.SYNOPSIS_NARRATIVE),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.SYNOPSIS_NARRATIVE]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.SYNOPSIS_ILLNESS),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.SYNOPSIS_ILLNESS])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.SYNOPSIS_COMMENTS),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.SYNOPSIS_COMMENTS]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.SYNOPSIS_HOSPITAL),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.SYNOPSIS_HOSPITAL]))))))),t[v.valuesNames.PAST_I_HYPERTENSION]?d.default.createElement(f.default,{title:v.valuesLabels.TITLE_PAST_ILLNESS},d.default.createElement(p.default,null,d.default.createElement("div",{className:"form-group-wrapper"},d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.PAST_I_HYPERTENSION),t[v.valuesNames.PAST_I_HYPERTENSION].map(function(e,t){return d.default.createElement("div",{className:"form-control-static form-control-static--item row",key:t},d.default.createElement("label",{className:"control-label col-lg-4"},e[v.valuesNames.PAST_I_HYPERTENSION_VALUE],":"),d.default.createElement("div",{className:"col-lg-8"},d.default.createElement("div",{className:"form-control-static"},(0,N.getDDMMMYYYY)(e[v.valuesNames.PAST_I_HYPERTENSION_DATE]))))}))))))):null,t[v.valuesNames.SP_CONCLUSION]?d.default.createElement(f.default,{title:v.valuesLabels.TITLE_SURGICAL_PROCEDURES},d.default.createElement(p.default,null,d.default.createElement("div",{className:"form-group-wrapper"},d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.SP_CONCLUSION),t[v.valuesNames.SP_CONCLUSION].map(function(e,t){return d.default.createElement("div",{className:"form-control-static form-control-static--item row",key:t},d.default.createElement("label",{className:"control-label col-lg-4"},e[v.valuesNames.SP_CONCLUSION_VALUE],":"),d.default.createElement("div",{className:"col-lg-8"},d.default.createElement("div",{className:"form-control-static"},(0,N.getDDMMMYYYY)(e[v.valuesNames.SP_CONCLUSION_DATE]))))}))))))):null,t[v.valuesNames.MEDICATIONS]?d.default.createElement(f.default,{title:v.valuesLabels.TITLE_MEDICATIONS},d.default.createElement("div",null,t[v.valuesNames.MEDICATIONS].map(function(e,t){return d.default.createElement(p.default,{key:t,title:v.valuesLabels.M_NAME+": "+e[v.valuesNames.M_NAME],isImportBtn:!0,isAccordion:!0,isBordered:!0,onImportClick:a("medications",e),theme:"primary"},d.default.createElement("div",{className:"form-group-wrapper"},d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.M_NAME),d.default.createElement("div",{className:"form-control-static"},e[v.valuesNames.M_NAME])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.M_START_DATE),d.default.createElement("div",{className:"form-control-static"},(0,N.getDDMMMYYYY)(e[v.valuesNames.M_START_DATE])))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.M_TIME),d.default.createElement("div",{className:"form-control-static"},(0,N.getDDMMMYYYY)(e[v.valuesNames.M_TIME]))))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.M_DOSE_A),d.default.createElement("div",{className:"form-control-static"},e[v.valuesNames.M_DOSE_A]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.M_DOSE_D),d.default.createElement("div",{className:"form-control-static"},e[v.valuesNames.M_DOSE_D])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.M_DOSE_T),d.default.createElement("div",{className:"form-control-static"},e[v.valuesNames.M_DOSE_T]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.M_ROUTE),d.default.createElement("div",{className:"form-control-static"},e[v.valuesNames.M_ROUTE])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.M_TERMINOLOGY),d.default.createElement("div",{className:"form-control-static"},e[v.valuesNames.M_TERMINOLOGY])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.M_CODE),d.default.createElement("div",{className:"form-control-static"},e[v.valuesNames.M_CODE])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.M_AUTHOR),d.default.createElement("div",{className:"form-control-static"},e[v.valuesNames.M_AUTHOR]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.M_DATE),d.default.createElement("div",{className:"form-control-static"},(0,N.getDDMMMYYYY)(e[v.valuesNames.M_DATE]))))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.M_SOURCE),d.default.createElement("div",{className:"form-control-static"},e[v.valuesNames.M_SOURCE]))))))}))):null,d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.M_USE),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.M_USE])))),t[v.valuesNames.ALLERGIES]?d.default.createElement(f.default,{title:v.valuesLabels.TITLE_ALLERGIES},t[v.valuesNames.ALLERGIES].map(function(e,t){return d.default.createElement(p.default,{key:t,title:v.valuesLabels.A_NAME+": "+e[v.valuesNames.A_NAME],isImportBtn:!0,isAccordion:!0,isBordered:!0,onImportClick:a("allergies",e),theme:"primary"},d.default.createElement("div",{className:"form-group-wrapper"},d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.A_NAME),d.default.createElement("div",{className:"form-control-static"},e[v.valuesNames.A_NAME])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.A_STATUS),d.default.createElement("div",{className:"form-control-static"},e[v.valuesNames.A_STATUS]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.A_TAKEN),d.default.createElement("div",{className:"form-control-static"},(0,N.getDDMMMYYYY)(e[v.valuesNames.A_TAKEN]))))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.A_TERMINOLOGY),d.default.createElement("div",{className:"form-control-static"},e[v.valuesNames.A_TERMINOLOGY]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.A_TERMINOLOGY_CODE),d.default.createElement("div",{className:"form-control-static"},e[v.valuesNames.A_TERMINOLOGY_CODE])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.A_AUTHOR),d.default.createElement("div",{className:"form-control-static"},e[v.valuesNames.A_AUTHOR]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.A_DATE_CREATED),d.default.createElement("div",{className:"form-control-static"},(0,N.getDDMMMYYYY)(e[v.valuesNames.DATE_CREATED]))))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.A_SOURCE),d.default.createElement("div",{className:"form-control-static"},e[v.valuesNames.A_SOURCE]))))))})):null,d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.USE_TOBACCO),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.USE_TOBACCO]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.USE_ALCOHOL),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.USE_ALCOHOL])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.PHYSICAL_I),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.PHYSICAL_I])))),d.default.createElement(f.default,{title:v.valuesLabels.TITLE_VITALS},d.default.createElement(p.default,null,d.default.createElement("div",{className:"form-group-wrapper"},d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.V_SBP),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.V_SBP]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.V_SBPU),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.V_SBPU])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.V_DBP),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.V_DBP]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.V_DBPU),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.V_DBPU])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.V_P),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.V_P]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.V_PU),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.V_PU])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.V_H),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.V_H]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.V_HU),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.V_HU])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.V_W),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.V_W]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.V_WU),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.V_WU])))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.V_BM),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.V_BM]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.V_BMU),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.V_BMU]))))))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.OTHER_EXAM),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.OTHER_EXAM]))),d.default.createElement("div",{className:"col-expand-right"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.DOC_ORIGINAL_SOURCE),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.DOC_ORIGINAL_SOURCE]))))),d.default.createElement("div",{className:"row-expand"},d.default.createElement("div",{className:"col-expand-left"},d.default.createElement("div",{className:"form-group"},d.default.createElement("label",{className:"control-label"},v.valuesLabels.SOURCE),d.default.createElement("div",{className:"form-control-static"},t[v.valuesNames.SOURCE])))))},t}(i.PureComponent);t.default=_},"./src/components/theme/plugins/Documents/forms.config.js":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.valuesNames={DATE:"documentDate",AUTHOR:"author_name",TYPE:"documentType",FACILITY:"facility",FACILITY_PROVIDER_ID:"providerContact_id",DATE_CREATED:"dateCreated",NAME:"documentName",PI_MRNTYPE:"patientIdentifier_mrnType",PI_OTHTYPE:"patientIdentifier_othType",PI_GMSTYPE:"patientIdentifier_gmsType",PI_NAME:"responsibleProfessional_name",PI_ID_TYPE:"responsibleProfessional_idType",PI_SOURCE:"source",PI_DISCHARGING:"dischargingOrganisation",PI_DISCHARGING_DATE:"dateTimeOfDischarge",PI_CLINICAL:"clinicalSynopsis",PI_ADMISSION_DATE:"dateOfAdmission",DIAGNOSIS:"diagnosisList",DG_PROBLEM:"problem",DG_DESCR:"description",DG_TERMINOLOGY:"terminology",DG_TERMINOLOGY_CODE:"terminologyCode",COMPOSER_NAME:"composerName",REFERRAL_DATE:"referralDateTime",REFERRAL_TYPE:"referralType",REFERRAL_STATUS:"referralStatus_value",REFERRAL_REF:"referralReferenceNumber",REFERRAL_FROM:"referredFrom",REFERRAL_TO:"referredTo",REFERRAL_COMMENTS:"referralComments",REFERRAL_REASONS:"reasonForReferral",REFERRAL_REASON:"reason",PROVIDER_NAME:"providerContact_organisationName",PROVIDER_ID:"providerContact_id",PROVIDER_WORK_PHONE:"providerContact_workNumber",PROVIDER_EMERGENCY_PHONE:"providerContact_emergencyNumber",PROVIDER_EMAIL_PHONE:"providerContact_email",STATUS:"referralStatus_value",STATUS_ORIGINAL_CODE:"referralStatus_originalCode",STATUS_CODE:"referralStatus_code",SYNOPSIS_NARRATIVE:"clinicalNarrative",SYNOPSIS_ILLNESS:"presentIllness",SYNOPSIS_COMMENTS:"clinicalSynopsisComments",SYNOPSIS_HOSPITAL:"previousHospitalAttendance",PAST_I_HYPERTENSION:"pastIllensses",PAST_I_HYPERTENSION_VALUE:"value",PAST_I_HYPERTENSION_DATE:"date",SP_CONCLUSION:"conclusion",SP_CONCLUSION_VALUE:"value",SP_CONCLUSION_DATE:"date",MEDICATIONS:"medications",M_NAME:"name",M_START_DATE:"startDate",M_TIME:"startTime",M_DOSE_A:"doseAmount",M_DOSE_D:"doseDirections",M_DOSE_T:"doseTiming",M_ROUTE:"route",M_TERMINOLOGY:"termonology",M_CODE:"code",M_AUTHOR:"author_name",M_DATE:"startDate",M_SOURCE:"source",M_USE:"medication_anticoagulation_use",ALLERGIES:"allergies",A_NAME:"cause",A_STATUS:"status",A_TAKEN:"sampleTaken",A_TERMINOLOGY:"conclusion",A_TERMINOLOGY_CODE:"conclusion",A_AUTHOR:"author",A_DATE_CREATED:"dateCreated",A_SOURCE:"source",USE_TOBACCO:"tobaccoUse",USE_ALCOHOL:"alcoholUse",PHYSICAL_I:"physicalImparement",V_SBP:"systolicBP",V_SBPU:"systolicBP_units",V_DBP:"diastolicBP",V_DBPU:"diastolicBP_units",V_P:"pulse",V_PU:"pulse_units",V_H:"height",V_HU:"height_units",V_W:"weight",V_WU:"weight_units",V_BM:"bodyMass",V_BMU:"bodyMass_units",OTHER_EXAM:"otherExaminationFindings",DOC_ORIGINAL_SOURCE:"documentOriginalSource",SOURCE:"source",SOURCE_ID:"sourceId"},t.valuesLabels={DATE:"Document Date",AUTHOR:"Author",TYPE:"Name",TITLE_FACILITY:"Facility",FACILITY:"Name",FACILITY_PROVIDER_ID:"Provide ID",DATE_CREATED:"Date",NAME:"Document Name",TITLE_PATIENT_INDENTIFIER:"Patient Identifier",PI_MRNTYPE:"MRM Type",PI_OTHTYPE:"OTH Type",PI_GMSTYPE:"GMS Type",PI_NAME:"Responsible Professional",PI_ID_TYPE:"Responsible Professional Type",PI_SOURCE:"From",PI_DISCHARGING:"Discharging Organisation",PI_DISCHARGING_DATE:"Discharging Date",PI_CLINICAL:"Clinical Synopsis",PI_ADMISSION_DATE:"Date of Admission",TITLE_DIAGNOSIS:"Diagnosis List",DG_PROBLEM:"Problem",DG_DESCR:"Description",DG_TERMINOLOGY:"Terminology",DG_TERMINOLOGY_CODE:"Terminology Code",COMPOSER_NAME:"Document Name",TITLE_REFERRAL:"Referral",REFERRAL_DATE:"Date",REFERRAL_TYPE:"Type",REFERRAL_STATUS:"Priority",REFERRAL_REF:"Ref",REFERRAL_FROM:"From",REFERRAL_TO:"To",REFERRAL_COMMENTS:"Comments",REFERRAL_REASONS:"Comments",TITLE_PROVIDER:"Organisation/Provide",PROVIDER_NAME:"Name",PROVIDER_ID:"ID",PROVIDER_WORK_PHONE:"Work Phone",PROVIDER_EMERGENCY_PHONE:"Emergency Phone",PROVIDER_EMAIL_PHONE:"Email",TITLE_STATUS:"Referral Status",STATUS:"Status",STATUS_ORIGINAL_CODE:"Original Code",STATUS_CODE:"Code",TITLE_SYNOPSIS:"Clinical Synopsis",SYNOPSIS_NARRATIVE:"Narrative",SYNOPSIS_ILLNESS:"Present Illness",SYNOPSIS_COMMENTS:"Comments",SYNOPSIS_HOSPITAL:"Previous Hospital",TITLE_PAST_ILLNESS:"Past Illness",PAST_I_HYPERTENSION:"Hypertension",TITLE_SURGICAL_PROCEDURES:"Surgical Procedures",SP_CONCLUSION:"Hypertension",TITLE_MEDICATIONS:"Medications",M_NAME:"Name",M_START_DATE:"Start Date",M_TIME:"Start Time",M_DOSE_A:"Dose Amount",M_DOSE_D:"Dose Directions",M_DOSE_T:"Dose Timing",M_ROUTE:"Route",M_TERMINOLOGY:"Terminology",M_CODE:"Code",M_AUTHOR:"Author",M_DATE:"Date",M_SOURCE:"Source",M_USE:"Medication Anticoagulation Use",TITLE_ALLERGIES:"Allergies",A_NAME:"Cause",A_STATUS:"Cause",A_TAKEN:"Cause Code",A_TERMINOLOGY:"Reaction",A_TERMINOLOGY_CODE:"Terminology",A_AUTHOR:"Terminology Code",A_DATE_CREATED:"Author",A_SOURCE:"Date",USE_TOBACCO:"Tobacco Use",USE_ALCOHOL:"Alcohol Use",PHYSICAL_I:"Physical Impairment",TITLE_VITALS:"Measurements",V_SBP:"Systolic BP",V_SBPU:"Systolic BP Units",V_DBP:"Diastolic BP",V_DBPU:"Diastolic BP Units",V_P:"Pulse",V_PU:"Pulse Units",V_H:"Height",V_HU:"Height Units",V_W:"Weight",V_WU:"Weight Units",V_BM:"Body Mass",V_BMU:"Body Mass Units",OTHER_EXAM:"Other Examination Findings",DOC_ORIGINAL_SOURCE:"Original Source",SOURCE:"Source",SOURCE_ID:"Source ID"}},"./src/components/theme/plugins/Documents/selectors.js":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.patientDocumentsDetailSelector=t.patientDocumentsSelector=void 0;var l=a("./node_modules/lodash/fp/getOr.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(l),n=a("./node_modules/reselect/lib/index.js"),r=a("./src/utils/plugin-helpers.utils.js"),o=a("./src/components/theme/plugins/Documents/forms.config.js"),c=(0,n.createSelector)(function(e){return e.patientsDocuments},function(e,t){return(0,s.default)(null,"match.params.userId",t)},function(e,t){return{allDocuments:r.operationsOnCollection.modificateDateForTable(e[t],o.valuesNames.DATE_CREATED),userId:t}}),u=(0,n.createSelector)(function(e){return e.documentsDetail},function(e,t){return(0,s.default)(null,"match.params.userId",t)},function(e,t){return{documentDetail:e[t],userId:t}});t.patientDocumentsSelector=c,t.patientDocumentsDetailSelector=u},"./src/components/theme/plugins/Documents/table-columns.config.js":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultColumnsSelected=t.columnsConfig=void 0;var l=a("./src/utils/time-helpers.utils.js");t.columnsConfig=[{key:"documentType",title:"Name",width:"56%"},{key:"dateCreated",title:"Date",transformer:l.getDDMMMYYYY,width:"25%"},{key:"source",title:"Source",width:"19%"},{key:"sourceId",title:"SourceID",display:"none"}],t.defaultColumnsSelected={documentType:!0,dateCreated:!0,source:!0,sourceId:!0}}});