@ltht-react/care-plan-detail 2.0.186 → 2.0.188

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,15 +1,15 @@
1
- # CarePlanDetail
2
-
3
- <!-- STORY -->
4
-
5
- ### Import
6
-
7
- ```js
8
- import CarePlanDetail from '@ltht-react/care-plan-detail'
9
- ```
10
-
11
- ### Usage
12
-
13
- ```jsx
14
- <CarePlanDetail />
15
- ```
1
+ # CarePlanDetail
2
+
3
+ <!-- STORY -->
4
+
5
+ ### Import
6
+
7
+ ```js
8
+ import CarePlanDetail from '@ltht-react/care-plan-detail'
9
+ ```
10
+
11
+ ### Usage
12
+
13
+ ```jsx
14
+ <CarePlanDetail />
15
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ltht-react/care-plan-detail",
3
- "version": "2.0.186",
3
+ "version": "2.0.188",
4
4
  "description": "ltht-react clinical CarePlanDetail component.",
5
5
  "author": "LTHT",
6
6
  "homepage": "",
@@ -28,12 +28,12 @@
28
28
  "dependencies": {
29
29
  "@emotion/react": "^11.0.0",
30
30
  "@emotion/styled": "^11.0.0",
31
- "@ltht-react/description-list": "^2.0.186",
32
- "@ltht-react/styles": "^2.0.186",
33
- "@ltht-react/type-detail": "^2.0.186",
34
- "@ltht-react/types": "^2.0.186",
35
- "@ltht-react/utils": "^2.0.186",
31
+ "@ltht-react/description-list": "^2.0.188",
32
+ "@ltht-react/styles": "^2.0.188",
33
+ "@ltht-react/type-detail": "^2.0.188",
34
+ "@ltht-react/types": "^2.0.188",
35
+ "@ltht-react/utils": "^2.0.188",
36
36
  "react": "^18.2.0"
37
37
  },
38
- "gitHead": "33f7fb163c9a81d34b01d9e1bafaa8307e536a05"
38
+ "gitHead": "db9a3b619b84b838cf14219aeec376975beea4fd"
39
39
  }
package/src/index.tsx CHANGED
@@ -1,34 +1,34 @@
1
- import { FC } from 'react'
2
- import { CarePlan, DetailViewType } from '@ltht-react/types'
3
- import {
4
- StringDetail,
5
- PeriodDetail,
6
- NarrativeDetail,
7
- ResourceReferenceListDetail,
8
- CollapsibleDetailCollection,
9
- CollapsibleDetailCollectionProps,
10
- } from '@ltht-react/type-detail'
11
-
12
- const CarePlanDetail: FC<Props> = ({ carePlan, viewType = DetailViewType.Compact }) => {
13
- const performers = carePlan?.activity?.map((a) => a?.detail?.performer?.map((p) => p)).reduce((p) => p)
14
-
15
- return (
16
- <CollapsibleDetailCollection viewType={viewType}>
17
- <StringDetail term="Plan" description={carePlan.title} />
18
- <StringDetail term="Description" description={carePlan.description} />
19
- <PeriodDetail period={carePlan.period} />
20
- <StringDetail term="Intent" description={carePlan.intent.toString()} />
21
- <StringDetail term="Status" description={carePlan.status.toString()} />
22
- <NarrativeDetail narrative={carePlan.text} />
23
- <ResourceReferenceListDetail term="Addresses" resourceReferences={carePlan?.addresses} />
24
- <ResourceReferenceListDetail term="Performer(s)" resourceReferences={performers} />
25
- <ResourceReferenceListDetail term="Author(s)" resourceReferences={carePlan?.author} />
26
- </CollapsibleDetailCollection>
27
- )
28
- }
29
-
30
- interface Props extends CollapsibleDetailCollectionProps {
31
- carePlan: CarePlan
32
- }
33
-
34
- export default CarePlanDetail
1
+ import { FC } from 'react'
2
+ import { CarePlan, DetailViewType } from '@ltht-react/types'
3
+ import {
4
+ StringDetail,
5
+ PeriodDetail,
6
+ NarrativeDetail,
7
+ ResourceReferenceListDetail,
8
+ CollapsibleDetailCollection,
9
+ CollapsibleDetailCollectionProps,
10
+ } from '@ltht-react/type-detail'
11
+
12
+ const CarePlanDetail: FC<Props> = ({ carePlan, viewType = DetailViewType.Compact }) => {
13
+ const performers = carePlan?.activity?.map((a) => a?.detail?.performer?.map((p) => p)).reduce((p) => p)
14
+
15
+ return (
16
+ <CollapsibleDetailCollection viewType={viewType}>
17
+ <StringDetail term="Plan" description={carePlan.title} />
18
+ <StringDetail term="Description" description={carePlan.description} />
19
+ <PeriodDetail period={carePlan.period} />
20
+ <StringDetail term="Intent" description={carePlan.intent.toString()} />
21
+ <StringDetail term="Status" description={carePlan.status.toString()} />
22
+ <NarrativeDetail narrative={carePlan.text} />
23
+ <ResourceReferenceListDetail term="Addresses" resourceReferences={carePlan?.addresses} />
24
+ <ResourceReferenceListDetail term="Performer(s)" resourceReferences={performers} />
25
+ <ResourceReferenceListDetail term="Author(s)" resourceReferences={carePlan?.author} />
26
+ </CollapsibleDetailCollection>
27
+ )
28
+ }
29
+
30
+ interface Props extends CollapsibleDetailCollectionProps {
31
+ carePlan: CarePlan
32
+ }
33
+
34
+ export default CarePlanDetail
package/lib/index.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import { FC } from 'react';
2
- import { CarePlan } from '@ltht-react/types';
3
- import { CollapsibleDetailCollectionProps } from '@ltht-react/type-detail';
4
- declare const CarePlanDetail: FC<Props>;
5
- interface Props extends CollapsibleDetailCollectionProps {
6
- carePlan: CarePlan;
7
- }
8
- export default CarePlanDetail;
package/lib/index.js DELETED
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var jsx_runtime_1 = require("react/jsx-runtime");
4
- var types_1 = require("@ltht-react/types");
5
- var type_detail_1 = require("@ltht-react/type-detail");
6
- var CarePlanDetail = function (_a) {
7
- var _b;
8
- var carePlan = _a.carePlan, _c = _a.viewType, viewType = _c === void 0 ? types_1.DetailViewType.Compact : _c;
9
- var performers = (_b = carePlan === null || carePlan === void 0 ? void 0 : carePlan.activity) === null || _b === void 0 ? void 0 : _b.map(function (a) { var _a, _b; return (_b = (_a = a === null || a === void 0 ? void 0 : a.detail) === null || _a === void 0 ? void 0 : _a.performer) === null || _b === void 0 ? void 0 : _b.map(function (p) { return p; }); }).reduce(function (p) { return p; });
10
- return ((0, jsx_runtime_1.jsxs)(type_detail_1.CollapsibleDetailCollection, { viewType: viewType, children: [(0, jsx_runtime_1.jsx)(type_detail_1.StringDetail, { term: "Plan", description: carePlan.title }), (0, jsx_runtime_1.jsx)(type_detail_1.StringDetail, { term: "Description", description: carePlan.description }), (0, jsx_runtime_1.jsx)(type_detail_1.PeriodDetail, { period: carePlan.period }), (0, jsx_runtime_1.jsx)(type_detail_1.StringDetail, { term: "Intent", description: carePlan.intent.toString() }), (0, jsx_runtime_1.jsx)(type_detail_1.StringDetail, { term: "Status", description: carePlan.status.toString() }), (0, jsx_runtime_1.jsx)(type_detail_1.NarrativeDetail, { narrative: carePlan.text }), (0, jsx_runtime_1.jsx)(type_detail_1.ResourceReferenceListDetail, { term: "Addresses", resourceReferences: carePlan === null || carePlan === void 0 ? void 0 : carePlan.addresses }), (0, jsx_runtime_1.jsx)(type_detail_1.ResourceReferenceListDetail, { term: "Performer(s)", resourceReferences: performers }), (0, jsx_runtime_1.jsx)(type_detail_1.ResourceReferenceListDetail, { term: "Author(s)", resourceReferences: carePlan === null || carePlan === void 0 ? void 0 : carePlan.author })] }));
11
- };
12
- exports.default = CarePlanDetail;
13
- //# sourceMappingURL=index.js.map
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;AACA,2CAA4D;AAC5D,uDAOgC;AAEhC,IAAM,cAAc,GAAc,UAAC,EAA+C;;QAA7C,QAAQ,cAAA,EAAE,gBAAiC,EAAjC,QAAQ,mBAAG,sBAAc,CAAC,OAAO,KAAA;IAC9E,IAAM,UAAU,GAAG,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,QAAQ,0CAAE,GAAG,CAAC,UAAC,CAAC,gBAAK,OAAA,MAAA,MAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,MAAM,0CAAE,SAAS,0CAAE,GAAG,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,EAAD,CAAC,CAAC,CAAA,EAAA,EAAE,MAAM,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,EAAD,CAAC,CAAC,CAAA;IAEvG,OAA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