@ltht-react/diagnosis-summary 1.3.104 → 1.3.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +980 -948
- package/README.md +22 -22
- package/lib/atoms/diagnosis-category.d.ts +8 -8
- package/lib/atoms/diagnosis-category.js +50 -50
- package/lib/atoms/diagnosis-status.d.ts +8 -8
- package/lib/atoms/diagnosis-status.js +50 -50
- package/lib/atoms/diagnosis-title.d.ts +8 -8
- package/lib/atoms/diagnosis-title.js +48 -48
- package/lib/index.d.ts +2 -2
- package/lib/index.js +7 -7
- package/lib/molecules/diagnosis-redacted.d.ts +7 -7
- package/lib/molecules/diagnosis-redacted.js +22 -22
- package/lib/organisms/diagnosis-summary.d.ts +10 -10
- package/lib/organisms/diagnosis-summary.js +69 -69
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
# DiagnosisSummary
|
|
2
|
-
|
|
3
|
-
<!-- STORY -->
|
|
4
|
-
|
|
5
|
-
### Import
|
|
6
|
-
|
|
7
|
-
```js
|
|
8
|
-
import DiagnosisSummary from '@ltht-react/diagnosis-summary'
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
### Usage
|
|
12
|
-
|
|
13
|
-
```jsx
|
|
14
|
-
<DiagnosisSummary title="Conditions" conditions={conditions} clickHandler={handleCLick} />
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
### Properties
|
|
18
|
-
|
|
19
|
-
| Prop | Required | Default | Type | Description |
|
|
20
|
-
| :------------- | :------- | :-------- | :---------- | :------------------------------------------------------------ |
|
|
21
|
-
| `conditions` | Yes | | Condition[] | Array of conditions to display |
|
|
22
|
-
| `clickHandler` | No | undefined | Function | Callback click handler containing the selected condition item |
|
|
1
|
+
# DiagnosisSummary
|
|
2
|
+
|
|
3
|
+
<!-- STORY -->
|
|
4
|
+
|
|
5
|
+
### Import
|
|
6
|
+
|
|
7
|
+
```js
|
|
8
|
+
import DiagnosisSummary from '@ltht-react/diagnosis-summary'
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Usage
|
|
12
|
+
|
|
13
|
+
```jsx
|
|
14
|
+
<DiagnosisSummary title="Conditions" conditions={conditions} clickHandler={handleCLick} />
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### Properties
|
|
18
|
+
|
|
19
|
+
| Prop | Required | Default | Type | Description |
|
|
20
|
+
| :------------- | :------- | :-------- | :---------- | :------------------------------------------------------------ |
|
|
21
|
+
| `conditions` | Yes | | Condition[] | Array of conditions to display |
|
|
22
|
+
| `clickHandler` | No | undefined | Function | Callback click handler containing the selected condition item |
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FC, HTMLAttributes } from 'react';
|
|
2
|
-
import { Condition } from '@ltht-react/types';
|
|
3
|
-
declare const DiagnosisCategory: FC<Props>;
|
|
4
|
-
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
condition: Condition;
|
|
6
|
-
enteredInError: boolean;
|
|
7
|
-
}
|
|
8
|
-
export default DiagnosisCategory;
|
|
1
|
+
import { FC, HTMLAttributes } from 'react';
|
|
2
|
+
import { Condition } from '@ltht-react/types';
|
|
3
|
+
declare const DiagnosisCategory: FC<Props>;
|
|
4
|
+
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
condition: Condition;
|
|
6
|
+
enteredInError: boolean;
|
|
7
|
+
}
|
|
8
|
+
export default DiagnosisCategory;
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
-
var t = {};
|
|
19
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
-
t[p] = s[p];
|
|
21
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
-
t[p[i]] = s[p[i]];
|
|
25
|
-
}
|
|
26
|
-
return t;
|
|
27
|
-
};
|
|
28
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
-
};
|
|
31
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
33
|
-
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
34
|
-
var styles_1 = require("@ltht-react/styles");
|
|
35
|
-
var utils_1 = require("@ltht-react/utils");
|
|
36
|
-
var StyledConditionCategory = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n text-align: left;\n font-size: smaller;\n padding-top: 0.25rem;\n text-decoration: ", ";\n"], ["\n color: ", ";\n text-align: left;\n font-size: smaller;\n padding-top: 0.25rem;\n text-decoration: ", ";\n"])), styles_1.TEXT_COLOURS.SECONDARY.VALUE, function (_a) {
|
|
37
|
-
var enteredInError = _a.enteredInError;
|
|
38
|
-
return (enteredInError ? 'line-through' : 'none');
|
|
39
|
-
});
|
|
40
|
-
var DiagnosisCategory = function (_a) {
|
|
41
|
-
var condition = _a.condition, enteredInError = _a.enteredInError, rest = __rest(_a, ["condition", "enteredInError"]);
|
|
42
|
-
var values = [];
|
|
43
|
-
if (condition.category && condition.category.length)
|
|
44
|
-
values.push(utils_1.codeableConceptTextSummary(condition.category));
|
|
45
|
-
if (condition.severity)
|
|
46
|
-
values.push(utils_1.codeableConceptDisplaySummary(condition.severity));
|
|
47
|
-
return (jsx_runtime_1.jsx(StyledConditionCategory, __assign({ enteredInError: enteredInError }, rest, { children: values.join(' - ') }), void 0));
|
|
48
|
-
};
|
|
49
|
-
exports.default = DiagnosisCategory;
|
|
50
|
-
var templateObject_1;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
33
|
+
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
34
|
+
var styles_1 = require("@ltht-react/styles");
|
|
35
|
+
var utils_1 = require("@ltht-react/utils");
|
|
36
|
+
var StyledConditionCategory = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n text-align: left;\n font-size: smaller;\n padding-top: 0.25rem;\n text-decoration: ", ";\n"], ["\n color: ", ";\n text-align: left;\n font-size: smaller;\n padding-top: 0.25rem;\n text-decoration: ", ";\n"])), styles_1.TEXT_COLOURS.SECONDARY.VALUE, function (_a) {
|
|
37
|
+
var enteredInError = _a.enteredInError;
|
|
38
|
+
return (enteredInError ? 'line-through' : 'none');
|
|
39
|
+
});
|
|
40
|
+
var DiagnosisCategory = function (_a) {
|
|
41
|
+
var condition = _a.condition, enteredInError = _a.enteredInError, rest = __rest(_a, ["condition", "enteredInError"]);
|
|
42
|
+
var values = [];
|
|
43
|
+
if (condition.category && condition.category.length)
|
|
44
|
+
values.push(utils_1.codeableConceptTextSummary(condition.category));
|
|
45
|
+
if (condition.severity)
|
|
46
|
+
values.push(utils_1.codeableConceptDisplaySummary(condition.severity));
|
|
47
|
+
return (jsx_runtime_1.jsx(StyledConditionCategory, __assign({ enteredInError: enteredInError }, rest, { children: values.join(' - ') }), void 0));
|
|
48
|
+
};
|
|
49
|
+
exports.default = DiagnosisCategory;
|
|
50
|
+
var templateObject_1;
|
|
51
51
|
//# sourceMappingURL=diagnosis-category.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FC, HTMLAttributes } from 'react';
|
|
2
|
-
import { Condition } from '@ltht-react/types';
|
|
3
|
-
declare const DiagnosisStatus: FC<Props>;
|
|
4
|
-
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
condition: Condition;
|
|
6
|
-
enteredInError: boolean;
|
|
7
|
-
}
|
|
8
|
-
export default DiagnosisStatus;
|
|
1
|
+
import { FC, HTMLAttributes } from 'react';
|
|
2
|
+
import { Condition } from '@ltht-react/types';
|
|
3
|
+
declare const DiagnosisStatus: FC<Props>;
|
|
4
|
+
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
condition: Condition;
|
|
6
|
+
enteredInError: boolean;
|
|
7
|
+
}
|
|
8
|
+
export default DiagnosisStatus;
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
-
var t = {};
|
|
19
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
-
t[p] = s[p];
|
|
21
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
-
t[p[i]] = s[p[i]];
|
|
25
|
-
}
|
|
26
|
-
return t;
|
|
27
|
-
};
|
|
28
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
-
};
|
|
31
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
33
|
-
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
34
|
-
var styles_1 = require("@ltht-react/styles");
|
|
35
|
-
var utils_1 = require("@ltht-react/utils");
|
|
36
|
-
var StyledConditionStatus = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n text-align: right;\n font-size: smaller;\n padding-top: 0.25rem;\n text-decoration: ", ";\n"], ["\n color: ", ";\n text-align: right;\n font-size: smaller;\n padding-top: 0.25rem;\n text-decoration: ", ";\n"])), styles_1.TEXT_COLOURS.SECONDARY.VALUE, function (_a) {
|
|
37
|
-
var enteredInError = _a.enteredInError;
|
|
38
|
-
return (enteredInError ? 'line-through' : 'none');
|
|
39
|
-
});
|
|
40
|
-
var DiagnosisStatus = function (_a) {
|
|
41
|
-
var condition = _a.condition, enteredInError = _a.enteredInError, rest = __rest(_a, ["condition", "enteredInError"]);
|
|
42
|
-
var values = [];
|
|
43
|
-
if (condition.clinicalStatus)
|
|
44
|
-
values.push(utils_1.titleCase(condition.clinicalStatus));
|
|
45
|
-
if (condition.verificationStatus)
|
|
46
|
-
values.push(utils_1.titleCase(condition.verificationStatus));
|
|
47
|
-
return (jsx_runtime_1.jsx(StyledConditionStatus, __assign({ enteredInError: enteredInError }, rest, { children: values.join(' - ') }), void 0));
|
|
48
|
-
};
|
|
49
|
-
exports.default = DiagnosisStatus;
|
|
50
|
-
var templateObject_1;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
33
|
+
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
34
|
+
var styles_1 = require("@ltht-react/styles");
|
|
35
|
+
var utils_1 = require("@ltht-react/utils");
|
|
36
|
+
var StyledConditionStatus = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n text-align: right;\n font-size: smaller;\n padding-top: 0.25rem;\n text-decoration: ", ";\n"], ["\n color: ", ";\n text-align: right;\n font-size: smaller;\n padding-top: 0.25rem;\n text-decoration: ", ";\n"])), styles_1.TEXT_COLOURS.SECONDARY.VALUE, function (_a) {
|
|
37
|
+
var enteredInError = _a.enteredInError;
|
|
38
|
+
return (enteredInError ? 'line-through' : 'none');
|
|
39
|
+
});
|
|
40
|
+
var DiagnosisStatus = function (_a) {
|
|
41
|
+
var condition = _a.condition, enteredInError = _a.enteredInError, rest = __rest(_a, ["condition", "enteredInError"]);
|
|
42
|
+
var values = [];
|
|
43
|
+
if (condition.clinicalStatus)
|
|
44
|
+
values.push(utils_1.titleCase(condition.clinicalStatus));
|
|
45
|
+
if (condition.verificationStatus)
|
|
46
|
+
values.push(utils_1.titleCase(condition.verificationStatus));
|
|
47
|
+
return (jsx_runtime_1.jsx(StyledConditionStatus, __assign({ enteredInError: enteredInError }, rest, { children: values.join(' - ') }), void 0));
|
|
48
|
+
};
|
|
49
|
+
exports.default = DiagnosisStatus;
|
|
50
|
+
var templateObject_1;
|
|
51
51
|
//# sourceMappingURL=diagnosis-status.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FC, HTMLAttributes } from 'react';
|
|
2
|
-
import { Condition } from '@ltht-react/types';
|
|
3
|
-
declare const DiagnosisTitle: FC<Props>;
|
|
4
|
-
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
condition: Condition;
|
|
6
|
-
enteredInError: boolean;
|
|
7
|
-
}
|
|
8
|
-
export default DiagnosisTitle;
|
|
1
|
+
import { FC, HTMLAttributes } from 'react';
|
|
2
|
+
import { Condition } from '@ltht-react/types';
|
|
3
|
+
declare const DiagnosisTitle: FC<Props>;
|
|
4
|
+
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
condition: Condition;
|
|
6
|
+
enteredInError: boolean;
|
|
7
|
+
}
|
|
8
|
+
export default DiagnosisTitle;
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
-
var t = {};
|
|
19
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
-
t[p] = s[p];
|
|
21
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
-
t[p[i]] = s[p[i]];
|
|
25
|
-
}
|
|
26
|
-
return t;
|
|
27
|
-
};
|
|
28
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
-
};
|
|
31
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
33
|
-
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
34
|
-
var styles_1 = require("@ltht-react/styles");
|
|
35
|
-
var utils_1 = require("@ltht-react/utils");
|
|
36
|
-
var StyledConditionTitle = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n text-align: left;\n text-decoration: ", ";\n"], ["\n color: ", ";\n text-align: left;\n text-decoration: ", ";\n"])), styles_1.TEXT_COLOURS.PRIMARY, function (_a) {
|
|
37
|
-
var enteredInError = _a.enteredInError;
|
|
38
|
-
return (enteredInError ? 'line-through' : 'none');
|
|
39
|
-
});
|
|
40
|
-
var DiagnosisTitle = function (_a) {
|
|
41
|
-
var condition = _a.condition, enteredInError = _a.enteredInError, rest = __rest(_a, ["condition", "enteredInError"]);
|
|
42
|
-
var codes = [];
|
|
43
|
-
if (condition.code)
|
|
44
|
-
codes.push(condition.code);
|
|
45
|
-
return (jsx_runtime_1.jsx(StyledConditionTitle, __assign({ enteredInError: enteredInError }, rest, { children: utils_1.codeableConceptTextSummary(codes) }), void 0));
|
|
46
|
-
};
|
|
47
|
-
exports.default = DiagnosisTitle;
|
|
48
|
-
var templateObject_1;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
33
|
+
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
34
|
+
var styles_1 = require("@ltht-react/styles");
|
|
35
|
+
var utils_1 = require("@ltht-react/utils");
|
|
36
|
+
var StyledConditionTitle = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n text-align: left;\n text-decoration: ", ";\n"], ["\n color: ", ";\n text-align: left;\n text-decoration: ", ";\n"])), styles_1.TEXT_COLOURS.PRIMARY, function (_a) {
|
|
37
|
+
var enteredInError = _a.enteredInError;
|
|
38
|
+
return (enteredInError ? 'line-through' : 'none');
|
|
39
|
+
});
|
|
40
|
+
var DiagnosisTitle = function (_a) {
|
|
41
|
+
var condition = _a.condition, enteredInError = _a.enteredInError, rest = __rest(_a, ["condition", "enteredInError"]);
|
|
42
|
+
var codes = [];
|
|
43
|
+
if (condition.code)
|
|
44
|
+
codes.push(condition.code);
|
|
45
|
+
return (jsx_runtime_1.jsx(StyledConditionTitle, __assign({ enteredInError: enteredInError }, rest, { children: utils_1.codeableConceptTextSummary(codes) }), void 0));
|
|
46
|
+
};
|
|
47
|
+
exports.default = DiagnosisTitle;
|
|
48
|
+
var templateObject_1;
|
|
49
49
|
//# sourceMappingURL=diagnosis-title.js.map
|
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import DiagnosisSummary from './organisms/diagnosis-summary';
|
|
2
|
-
export default DiagnosisSummary;
|
|
1
|
+
import DiagnosisSummary from './organisms/diagnosis-summary';
|
|
2
|
+
export default DiagnosisSummary;
|
package/lib/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var diagnosis_summary_1 = __importDefault(require("./organisms/diagnosis-summary"));
|
|
7
|
-
exports.default = diagnosis_summary_1.default;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var diagnosis_summary_1 = __importDefault(require("./organisms/diagnosis-summary"));
|
|
7
|
+
exports.default = diagnosis_summary_1.default;
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { Condition } from '@ltht-react/types';
|
|
3
|
-
declare const DiagnosisRedacted: FC<Props>;
|
|
4
|
-
interface Props {
|
|
5
|
-
condition?: Condition | null;
|
|
6
|
-
}
|
|
7
|
-
export default DiagnosisRedacted;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Condition } from '@ltht-react/types';
|
|
3
|
+
declare const DiagnosisRedacted: FC<Props>;
|
|
4
|
+
interface Props {
|
|
5
|
+
condition?: Condition | null;
|
|
6
|
+
}
|
|
7
|
+
export default DiagnosisRedacted;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
-
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
12
|
-
var type_summary_1 = require("@ltht-react/type-summary");
|
|
13
|
-
var StyledRedactedDescription = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-grow: 1;\n text-align: left;\n"], ["\n flex-grow: 1;\n text-align: left;\n"])));
|
|
14
|
-
var StyledDateSummary = styled_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n text-align: right;\n"], ["\n text-align: right;\n"])));
|
|
15
|
-
var DiagnosisRedacted = function (_a) {
|
|
16
|
-
var _b;
|
|
17
|
-
var condition = _a.condition;
|
|
18
|
-
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [jsx_runtime_1.jsx(StyledRedactedDescription, { children: jsx_runtime_1.jsx(type_summary_1.RedactedDescription, {}, void 0) }, void 0),
|
|
19
|
-
jsx_runtime_1.jsx(StyledDateSummary, { children: jsx_runtime_1.jsx(type_summary_1.DateSummary, { datetime: (_b = condition === null || condition === void 0 ? void 0 : condition.onset) === null || _b === void 0 ? void 0 : _b.dateTime }, void 0) }, void 0)] }, void 0));
|
|
20
|
-
};
|
|
21
|
-
exports.default = DiagnosisRedacted;
|
|
22
|
-
var templateObject_1, templateObject_2;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
+
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
12
|
+
var type_summary_1 = require("@ltht-react/type-summary");
|
|
13
|
+
var StyledRedactedDescription = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-grow: 1;\n text-align: left;\n"], ["\n flex-grow: 1;\n text-align: left;\n"])));
|
|
14
|
+
var StyledDateSummary = styled_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n text-align: right;\n"], ["\n text-align: right;\n"])));
|
|
15
|
+
var DiagnosisRedacted = function (_a) {
|
|
16
|
+
var _b;
|
|
17
|
+
var condition = _a.condition;
|
|
18
|
+
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [jsx_runtime_1.jsx(StyledRedactedDescription, { children: jsx_runtime_1.jsx(type_summary_1.RedactedDescription, {}, void 0) }, void 0),
|
|
19
|
+
jsx_runtime_1.jsx(StyledDateSummary, { children: jsx_runtime_1.jsx(type_summary_1.DateSummary, { datetime: (_b = condition === null || condition === void 0 ? void 0 : condition.onset) === null || _b === void 0 ? void 0 : _b.dateTime }, void 0) }, void 0)] }, void 0));
|
|
20
|
+
};
|
|
21
|
+
exports.default = DiagnosisRedacted;
|
|
22
|
+
var templateObject_1, templateObject_2;
|
|
23
23
|
//# sourceMappingURL=diagnosis-redacted.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FC, HTMLAttributes } from 'react';
|
|
2
|
-
import { Condition } from '@ltht-react/types';
|
|
3
|
-
declare const DiagnosisSummary: FC<Props>;
|
|
4
|
-
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
condition: Condition;
|
|
6
|
-
extendedTemplateDisplayName?: string | undefined;
|
|
7
|
-
extensionTemplateDisplayName?: string | undefined;
|
|
8
|
-
extensionClickHandler?(): void;
|
|
9
|
-
}
|
|
10
|
-
export default DiagnosisSummary;
|
|
1
|
+
import { FC, HTMLAttributes } from 'react';
|
|
2
|
+
import { Condition } from '@ltht-react/types';
|
|
3
|
+
declare const DiagnosisSummary: FC<Props>;
|
|
4
|
+
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
condition: Condition;
|
|
6
|
+
extendedTemplateDisplayName?: string | undefined;
|
|
7
|
+
extensionTemplateDisplayName?: string | undefined;
|
|
8
|
+
extensionClickHandler?(): void;
|
|
9
|
+
}
|
|
10
|
+
export default DiagnosisSummary;
|