@ltht-react/diagnosis-summary 1.3.117 → 1.3.118

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/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 |
@@ -32,13 +32,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
32
32
  var jsx_runtime_1 = require("react/jsx-runtime");
33
33
  var styled_1 = __importDefault(require("@emotion/styled"));
34
34
  var styles_1 = require("@ltht-react/styles");
35
+ var utils_1 = require("@ltht-react/utils");
35
36
  var StyledOnsetEstimated = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n font-size: x-small;\n white-space: pre-wrap;\n display: inline-block;\n text-decoration: ", ";\n"], ["\n color: ", ";\n font-size: x-small;\n white-space: pre-wrap;\n display: inline-block;\n text-decoration: ", ";\n"])), styles_1.TEXT_COLOURS.INFO, function (_a) {
36
37
  var enteredInError = _a.enteredInError;
37
38
  return (enteredInError ? 'line-through' : 'none');
38
39
  });
39
40
  var DiagnosisOnsetEstimated = function (_a) {
40
41
  var condition = _a.condition, enteredInError = _a.enteredInError, rest = __rest(_a, ["condition", "enteredInError"]);
41
- return (jsx_runtime_1.jsx(StyledOnsetEstimated, __assign({ enteredInError: enteredInError }, rest, { children: condition.onsetDateEstimated ? ' (estimated)' : '' }), void 0));
42
+ var onsetDateEstimated = utils_1.getBooleanExtension(condition.extension, 'https://fhir.leedsth.nhs.uk/ValueSet/diagnosis-onset-date-estimated-1');
43
+ return (jsx_runtime_1.jsx(StyledOnsetEstimated, __assign({ enteredInError: enteredInError }, rest, { children: onsetDateEstimated ? ' (estimated)' : '' }), void 0));
42
44
  };
43
45
  exports.default = DiagnosisOnsetEstimated;
44
46
  var templateObject_1;
@@ -1 +1 @@
1
- {"version":3,"file":"diagnosis-onset-estimated.js","sourceRoot":"","sources":["../../src/atoms/diagnosis-onset-estimated.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2DAAoC;AAEpC,6CAAiD;AAGjD,IAAM,oBAAoB,GAAG,gBAAM,CAAC,GAAG,4LAAoB,aAChD,EAAiB,mGAIP,EAAkE,KACtF,KALU,qBAAY,CAAC,IAAI,EAIP,UAAC,EAAkB;QAAhB,cAAc,oBAAA;IAAO,OAAA,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC;AAA1C,CAA0C,CACtF,CAAA;AAED,IAAM,uBAAuB,GAAc,UAAC,EAAsC;IAApC,IAAA,SAAS,eAAA,EAAE,cAAc,oBAAA,EAAK,IAAI,cAApC,+BAAsC,CAAF;IAAO,OAAA,CACrF,kBAAC,oBAAoB,aAAC,cAAc,EAAE,cAAc,IAAM,IAAI,cAC3D,SAAS,CAAC,kBAAkB,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,YAC9B,CACxB,CAAA;CAAA,CAAA;AAWD,kBAAe,uBAAuB,CAAA"}
1
+ {"version":3,"file":"diagnosis-onset-estimated.js","sourceRoot":"","sources":["../../src/atoms/diagnosis-onset-estimated.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2DAAoC;AAEpC,6CAAiD;AAGjD,2CAAuD;AAEvD,IAAM,oBAAoB,GAAG,gBAAM,CAAC,GAAG,4LAAoB,aAChD,EAAiB,mGAIP,EAAkE,KACtF,KALU,qBAAY,CAAC,IAAI,EAIP,UAAC,EAAkB;QAAhB,cAAc,oBAAA;IAAO,OAAA,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC;AAA1C,CAA0C,CACtF,CAAA;AAED,IAAM,uBAAuB,GAAc,UAAC,EAAsC;IAApC,IAAA,SAAS,eAAA,EAAE,cAAc,oBAAA,EAAK,IAAI,cAApC,+BAAsC,CAAF;IAC9E,IAAM,kBAAkB,GAAG,2BAAmB,CAC5C,SAAS,CAAC,SAAS,EACnB,uEAAuE,CACxE,CAAA;IAED,OAAO,CACL,kBAAC,oBAAoB,aAAC,cAAc,EAAE,cAAc,IAAM,IAAI,cAC3D,kBAAkB,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,YACpB,CACxB,CAAA;AACH,CAAC,CAAA;AAWD,kBAAe,uBAAuB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ltht-react/diagnosis-summary",
3
- "version": "1.3.117",
3
+ "version": "1.3.118",
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.117",
31
- "@ltht-react/hooks": "^1.0.107",
32
- "@ltht-react/icon": "^1.3.117",
33
- "@ltht-react/list": "^1.3.115",
34
- "@ltht-react/styles": "^1.3.109",
35
- "@ltht-react/type-summary": "^1.3.117",
36
- "@ltht-react/types": "^1.0.113",
37
- "@ltht-react/utils": "^1.1.115",
30
+ "@ltht-react/button": "^1.3.118",
31
+ "@ltht-react/hooks": "^1.0.108",
32
+ "@ltht-react/icon": "^1.3.118",
33
+ "@ltht-react/list": "^1.3.116",
34
+ "@ltht-react/styles": "^1.3.110",
35
+ "@ltht-react/type-summary": "^1.3.118",
36
+ "@ltht-react/types": "^1.0.114",
37
+ "@ltht-react/utils": "^1.1.116",
38
38
  "react": "^17.0.0"
39
39
  },
40
- "gitHead": "d192bc20dbe2462c17e4de9a1366ba0168de987b"
40
+ "gitHead": "61e0fbe9be8384645b888782595a44ca991dba4a"
41
41
  }