@ltht-react/diagnosis-summary 1.3.82 → 1.3.86
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 +804 -772
- package/README.md +22 -22
- package/lib/organisms/diagnosis-summary.js +1 -1
- 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 |
|
|
@@ -56,7 +56,7 @@ var DiagnosisSummary = function (_a) {
|
|
|
56
56
|
if (condition.metadata.isRedacted) {
|
|
57
57
|
return (jsx_runtime_1.jsx(StyledSummary, __assign({}, rest, { children: jsx_runtime_1.jsx(diagnosis_redacted_1.default, { condition: condition }, void 0) }), void 0));
|
|
58
58
|
}
|
|
59
|
-
var enteredInError = condition.verificationStatus === types_1.ConditionVerificationStatus.
|
|
59
|
+
var enteredInError = condition.verificationStatus === types_1.ConditionVerificationStatus.EnteredInError;
|
|
60
60
|
return (jsx_runtime_1.jsxs(StyledSummary, __assign({}, rest, { children: [jsx_runtime_1.jsxs(StyledDescription, { children: [jsx_runtime_1.jsx(StyledTitle, { children: jsx_runtime_1.jsx(diagnosis_title_1.default, { enteredInError: enteredInError, condition: condition }, void 0) }, void 0),
|
|
61
61
|
extensionTemplateDisplayName && !isMobile && (jsx_runtime_1.jsx(IconButtonWrapper, { onClick: extensionClickHandler, type: "button", buttonStyle: "clear", value: "", icon: jsx_runtime_1.jsx(icon_1.FolderPlusIcon, { size: "medium" }, void 0), iconPlacement: "center", iconColour: styles_1.LINK_COLOURS.TEXT.DEFAULT, title: "This diagnosis can be extended further to form '" + extensionTemplateDisplayName + "' by clicking here" }, void 0)),
|
|
62
62
|
extensionTemplateDisplayName && isMobile && (jsx_runtime_1.jsx(IconWrapper, { children: jsx_runtime_1.jsx(icon_1.FolderPlusIcon, { size: "medium", title: "This diagnosis can be extended further to form '" + extensionTemplateDisplayName + "' from the quick actions menu" }, void 0) }, void 0)),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ltht-react/diagnosis-summary",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.86",
|
|
4
4
|
"description": "ltht-react clinical DiagnosisSummary component.",
|
|
5
5
|
"author": "LTHT",
|
|
6
6
|
"homepage": "",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@emotion/react": "^11.0.0",
|
|
29
29
|
"@emotion/styled": "^11.0.0",
|
|
30
|
-
"@ltht-react/button": "^1.3.
|
|
31
|
-
"@ltht-react/hooks": "^1.0.
|
|
32
|
-
"@ltht-react/icon": "^1.3.
|
|
33
|
-
"@ltht-react/list": "^1.3.
|
|
34
|
-
"@ltht-react/styles": "^1.3.
|
|
35
|
-
"@ltht-react/type-summary": "^1.3.
|
|
36
|
-
"@ltht-react/types": "^1.0.
|
|
37
|
-
"@ltht-react/utils": "^1.1.
|
|
30
|
+
"@ltht-react/button": "^1.3.86",
|
|
31
|
+
"@ltht-react/hooks": "^1.0.76",
|
|
32
|
+
"@ltht-react/icon": "^1.3.86",
|
|
33
|
+
"@ltht-react/list": "^1.3.84",
|
|
34
|
+
"@ltht-react/styles": "^1.3.78",
|
|
35
|
+
"@ltht-react/type-summary": "^1.3.86",
|
|
36
|
+
"@ltht-react/types": "^1.0.82",
|
|
37
|
+
"@ltht-react/utils": "^1.1.84",
|
|
38
38
|
"react": "^17.0.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "e651743cafef7e1b8af6885031097c3c603f8acf"
|
|
41
41
|
}
|