@ltht-react/diagnosis-summary 2.0.90 → 2.0.92
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 +22 -22
- package/package.json +10 -10
- package/src/atoms/diagnosis-category.tsx +31 -31
- package/src/atoms/diagnosis-onset-estimated.tsx +39 -39
- package/src/atoms/diagnosis-status.tsx +38 -38
- package/src/atoms/diagnosis-sub-header.tsx +29 -29
- package/src/atoms/diagnosis-title.tsx +37 -37
- package/src/constants.ts +3 -3
- package/src/index.tsx +3 -3
- package/src/molecules/diagnosis-redacted.tsx +31 -31
- package/src/organisms/diagnosis-summary.tsx +168 -168
- package/lib/atoms/diagnosis-sub-title.d.ts +0 -7
- package/lib/atoms/diagnosis-sub-title.js +0 -45
- package/lib/atoms/diagnosis-sub-title.js.map +0 -1
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 |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ltht-react/diagnosis-summary",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.92",
|
|
4
4
|
"description": "ltht-react clinical DiagnosisSummary component.",
|
|
5
5
|
"author": "LTHT",
|
|
6
6
|
"homepage": "",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@emotion/react": "^11.0.0",
|
|
30
30
|
"@emotion/styled": "^11.0.0",
|
|
31
|
-
"@ltht-react/button": "^2.0.
|
|
32
|
-
"@ltht-react/hooks": "^2.0.
|
|
33
|
-
"@ltht-react/icon": "^2.0.
|
|
34
|
-
"@ltht-react/list": "^2.0.
|
|
35
|
-
"@ltht-react/styles": "^2.0.
|
|
36
|
-
"@ltht-react/type-summary": "^2.0.
|
|
37
|
-
"@ltht-react/types": "^2.0.
|
|
38
|
-
"@ltht-react/utils": "^2.0.
|
|
31
|
+
"@ltht-react/button": "^2.0.92",
|
|
32
|
+
"@ltht-react/hooks": "^2.0.92",
|
|
33
|
+
"@ltht-react/icon": "^2.0.92",
|
|
34
|
+
"@ltht-react/list": "^2.0.92",
|
|
35
|
+
"@ltht-react/styles": "^2.0.92",
|
|
36
|
+
"@ltht-react/type-summary": "^2.0.92",
|
|
37
|
+
"@ltht-react/types": "^2.0.92",
|
|
38
|
+
"@ltht-react/utils": "^2.0.92",
|
|
39
39
|
"react": "^18.2.0"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "38e73d8070788d851439e08e61ffae6a16ea8004"
|
|
42
42
|
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { FC, HTMLAttributes } from 'react'
|
|
2
|
-
import styled from '@emotion/styled'
|
|
3
|
-
|
|
4
|
-
import { TEXT_COLOURS } from '@ltht-react/styles'
|
|
5
|
-
import { Condition } from '@ltht-react/types'
|
|
6
|
-
import { codeableConceptDisplaySummary } from '@ltht-react/utils'
|
|
7
|
-
|
|
8
|
-
const StyledConditionCategory = styled.div<IStyledDescription>`
|
|
9
|
-
color: ${TEXT_COLOURS.SECONDARY.VALUE};
|
|
10
|
-
text-align: left;
|
|
11
|
-
font-size: smaller;
|
|
12
|
-
padding-top: 0.25rem;
|
|
13
|
-
text-decoration: ${({ enteredInError }) => (enteredInError ? 'line-through' : 'none')};
|
|
14
|
-
`
|
|
15
|
-
|
|
16
|
-
const DiagnosisCategory: FC<Props> = ({ condition, enteredInError, ...rest }) => (
|
|
17
|
-
<StyledConditionCategory enteredInError={enteredInError} {...rest}>
|
|
18
|
-
{codeableConceptDisplaySummary(condition.severity)}
|
|
19
|
-
</StyledConditionCategory>
|
|
20
|
-
)
|
|
21
|
-
|
|
22
|
-
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
23
|
-
condition: Condition
|
|
24
|
-
enteredInError: boolean
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface IStyledDescription {
|
|
28
|
-
enteredInError: boolean
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export default DiagnosisCategory
|
|
1
|
+
import { FC, HTMLAttributes } from 'react'
|
|
2
|
+
import styled from '@emotion/styled'
|
|
3
|
+
|
|
4
|
+
import { TEXT_COLOURS } from '@ltht-react/styles'
|
|
5
|
+
import { Condition } from '@ltht-react/types'
|
|
6
|
+
import { codeableConceptDisplaySummary } from '@ltht-react/utils'
|
|
7
|
+
|
|
8
|
+
const StyledConditionCategory = styled.div<IStyledDescription>`
|
|
9
|
+
color: ${TEXT_COLOURS.SECONDARY.VALUE};
|
|
10
|
+
text-align: left;
|
|
11
|
+
font-size: smaller;
|
|
12
|
+
padding-top: 0.25rem;
|
|
13
|
+
text-decoration: ${({ enteredInError }) => (enteredInError ? 'line-through' : 'none')};
|
|
14
|
+
`
|
|
15
|
+
|
|
16
|
+
const DiagnosisCategory: FC<Props> = ({ condition, enteredInError, ...rest }) => (
|
|
17
|
+
<StyledConditionCategory enteredInError={enteredInError} {...rest}>
|
|
18
|
+
{codeableConceptDisplaySummary(condition.severity)}
|
|
19
|
+
</StyledConditionCategory>
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
23
|
+
condition: Condition
|
|
24
|
+
enteredInError: boolean
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface IStyledDescription {
|
|
28
|
+
enteredInError: boolean
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export default DiagnosisCategory
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { FC, HTMLAttributes } from 'react'
|
|
2
|
-
import styled from '@emotion/styled'
|
|
3
|
-
|
|
4
|
-
import { TEXT_COLOURS } from '@ltht-react/styles'
|
|
5
|
-
import { Condition } from '@ltht-react/types'
|
|
6
|
-
|
|
7
|
-
import { getBooleanExtension } from '@ltht-react/utils'
|
|
8
|
-
|
|
9
|
-
const StyledOnsetEstimated = styled.div<IStyledDescription>`
|
|
10
|
-
color: ${TEXT_COLOURS.INFO};
|
|
11
|
-
font-size: x-small;
|
|
12
|
-
white-space: pre-wrap;
|
|
13
|
-
display: inline-block;
|
|
14
|
-
text-decoration: ${({ enteredInError }) => (enteredInError ? 'line-through' : 'none')};
|
|
15
|
-
`
|
|
16
|
-
|
|
17
|
-
const DiagnosisOnsetEstimated: FC<Props> = ({ condition, enteredInError, ...rest }) => {
|
|
18
|
-
const onsetDateEstimated = getBooleanExtension(
|
|
19
|
-
condition.extension,
|
|
20
|
-
'https://fhir.leedsth.nhs.uk/ValueSet/diagnosis-onset-date-estimated-1'
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<StyledOnsetEstimated enteredInError={enteredInError} {...rest}>
|
|
25
|
-
{onsetDateEstimated ? ' (estimated)' : ''}
|
|
26
|
-
</StyledOnsetEstimated>
|
|
27
|
-
)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
31
|
-
condition: Condition
|
|
32
|
-
enteredInError: boolean
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
interface IStyledDescription {
|
|
36
|
-
enteredInError: boolean
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export default DiagnosisOnsetEstimated
|
|
1
|
+
import { FC, HTMLAttributes } from 'react'
|
|
2
|
+
import styled from '@emotion/styled'
|
|
3
|
+
|
|
4
|
+
import { TEXT_COLOURS } from '@ltht-react/styles'
|
|
5
|
+
import { Condition } from '@ltht-react/types'
|
|
6
|
+
|
|
7
|
+
import { getBooleanExtension } from '@ltht-react/utils'
|
|
8
|
+
|
|
9
|
+
const StyledOnsetEstimated = styled.div<IStyledDescription>`
|
|
10
|
+
color: ${TEXT_COLOURS.INFO};
|
|
11
|
+
font-size: x-small;
|
|
12
|
+
white-space: pre-wrap;
|
|
13
|
+
display: inline-block;
|
|
14
|
+
text-decoration: ${({ enteredInError }) => (enteredInError ? 'line-through' : 'none')};
|
|
15
|
+
`
|
|
16
|
+
|
|
17
|
+
const DiagnosisOnsetEstimated: FC<Props> = ({ condition, enteredInError, ...rest }) => {
|
|
18
|
+
const onsetDateEstimated = getBooleanExtension(
|
|
19
|
+
condition.extension,
|
|
20
|
+
'https://fhir.leedsth.nhs.uk/ValueSet/diagnosis-onset-date-estimated-1'
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
<StyledOnsetEstimated enteredInError={enteredInError} {...rest}>
|
|
25
|
+
{onsetDateEstimated ? ' (estimated)' : ''}
|
|
26
|
+
</StyledOnsetEstimated>
|
|
27
|
+
)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
31
|
+
condition: Condition
|
|
32
|
+
enteredInError: boolean
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface IStyledDescription {
|
|
36
|
+
enteredInError: boolean
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export default DiagnosisOnsetEstimated
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { FC, HTMLAttributes } from 'react'
|
|
2
|
-
import styled from '@emotion/styled'
|
|
3
|
-
|
|
4
|
-
import { TEXT_COLOURS } from '@ltht-react/styles'
|
|
5
|
-
import { Condition } from '@ltht-react/types'
|
|
6
|
-
import { titleCase } from '@ltht-react/utils'
|
|
7
|
-
|
|
8
|
-
const StyledConditionStatus = styled.div<IStyledDescription>`
|
|
9
|
-
color: ${TEXT_COLOURS.SECONDARY.VALUE};
|
|
10
|
-
text-align: left;
|
|
11
|
-
font-size: smaller;
|
|
12
|
-
padding-top: 0.25rem;
|
|
13
|
-
text-decoration: ${({ enteredInError }) => (enteredInError ? 'line-through' : 'none')};
|
|
14
|
-
`
|
|
15
|
-
|
|
16
|
-
const DiagnosisStatus: FC<Props> = ({ condition, enteredInError, ...rest }) => {
|
|
17
|
-
const values = []
|
|
18
|
-
|
|
19
|
-
if (condition.clinicalStatus) values.push(titleCase(condition.clinicalStatus))
|
|
20
|
-
if (condition.verificationStatus) values.push(titleCase(condition.verificationStatus))
|
|
21
|
-
|
|
22
|
-
return (
|
|
23
|
-
<StyledConditionStatus enteredInError={enteredInError} {...rest}>
|
|
24
|
-
{values.length > 0 ? values.join(' - ') : 'Insufficient data provided'}
|
|
25
|
-
</StyledConditionStatus>
|
|
26
|
-
)
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
30
|
-
condition: Condition
|
|
31
|
-
enteredInError: boolean
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
interface IStyledDescription {
|
|
35
|
-
enteredInError: boolean
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export default DiagnosisStatus
|
|
1
|
+
import { FC, HTMLAttributes } from 'react'
|
|
2
|
+
import styled from '@emotion/styled'
|
|
3
|
+
|
|
4
|
+
import { TEXT_COLOURS } from '@ltht-react/styles'
|
|
5
|
+
import { Condition } from '@ltht-react/types'
|
|
6
|
+
import { titleCase } from '@ltht-react/utils'
|
|
7
|
+
|
|
8
|
+
const StyledConditionStatus = styled.div<IStyledDescription>`
|
|
9
|
+
color: ${TEXT_COLOURS.SECONDARY.VALUE};
|
|
10
|
+
text-align: left;
|
|
11
|
+
font-size: smaller;
|
|
12
|
+
padding-top: 0.25rem;
|
|
13
|
+
text-decoration: ${({ enteredInError }) => (enteredInError ? 'line-through' : 'none')};
|
|
14
|
+
`
|
|
15
|
+
|
|
16
|
+
const DiagnosisStatus: FC<Props> = ({ condition, enteredInError, ...rest }) => {
|
|
17
|
+
const values = []
|
|
18
|
+
|
|
19
|
+
if (condition.clinicalStatus) values.push(titleCase(condition.clinicalStatus))
|
|
20
|
+
if (condition.verificationStatus) values.push(titleCase(condition.verificationStatus))
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<StyledConditionStatus enteredInError={enteredInError} {...rest}>
|
|
24
|
+
{values.length > 0 ? values.join(' - ') : 'Insufficient data provided'}
|
|
25
|
+
</StyledConditionStatus>
|
|
26
|
+
)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
30
|
+
condition: Condition
|
|
31
|
+
enteredInError: boolean
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface IStyledDescription {
|
|
35
|
+
enteredInError: boolean
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export default DiagnosisStatus
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { FC, HTMLAttributes } from 'react'
|
|
2
|
-
import styled from '@emotion/styled'
|
|
3
|
-
|
|
4
|
-
import { TEXT_COLOURS } from '@ltht-react/styles'
|
|
5
|
-
|
|
6
|
-
const StyledConditionSubHeader = styled.div<IStyledDescription>`
|
|
7
|
-
color: ${TEXT_COLOURS.SECONDARY.VALUE};
|
|
8
|
-
text-align: left;
|
|
9
|
-
font-size: smaller;
|
|
10
|
-
padding-top: 0.25rem;
|
|
11
|
-
text-decoration: ${({ enteredInError }) => (enteredInError ? 'line-through' : 'none')};
|
|
12
|
-
`
|
|
13
|
-
|
|
14
|
-
const DiagnosisSubHeader: FC<Props> = ({ text, enteredInError, ...rest }) => (
|
|
15
|
-
<StyledConditionSubHeader enteredInError={enteredInError} {...rest}>
|
|
16
|
-
{text}
|
|
17
|
-
</StyledConditionSubHeader>
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
21
|
-
text: string
|
|
22
|
-
enteredInError: boolean
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface IStyledDescription {
|
|
26
|
-
enteredInError: boolean
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export default DiagnosisSubHeader
|
|
1
|
+
import { FC, HTMLAttributes } from 'react'
|
|
2
|
+
import styled from '@emotion/styled'
|
|
3
|
+
|
|
4
|
+
import { TEXT_COLOURS } from '@ltht-react/styles'
|
|
5
|
+
|
|
6
|
+
const StyledConditionSubHeader = styled.div<IStyledDescription>`
|
|
7
|
+
color: ${TEXT_COLOURS.SECONDARY.VALUE};
|
|
8
|
+
text-align: left;
|
|
9
|
+
font-size: smaller;
|
|
10
|
+
padding-top: 0.25rem;
|
|
11
|
+
text-decoration: ${({ enteredInError }) => (enteredInError ? 'line-through' : 'none')};
|
|
12
|
+
`
|
|
13
|
+
|
|
14
|
+
const DiagnosisSubHeader: FC<Props> = ({ text, enteredInError, ...rest }) => (
|
|
15
|
+
<StyledConditionSubHeader enteredInError={enteredInError} {...rest}>
|
|
16
|
+
{text}
|
|
17
|
+
</StyledConditionSubHeader>
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
21
|
+
text: string
|
|
22
|
+
enteredInError: boolean
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface IStyledDescription {
|
|
26
|
+
enteredInError: boolean
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default DiagnosisSubHeader
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { FC, HTMLAttributes } from 'react'
|
|
2
|
-
import styled from '@emotion/styled'
|
|
3
|
-
|
|
4
|
-
import { TEXT_COLOURS } from '@ltht-react/styles'
|
|
5
|
-
import { Condition } from '@ltht-react/types'
|
|
6
|
-
import { codeableConceptTextSummary } from '@ltht-react/utils'
|
|
7
|
-
|
|
8
|
-
const StyledConditionTitle = styled.div<IStyledDescription>`
|
|
9
|
-
color: ${TEXT_COLOURS.PRIMARY};
|
|
10
|
-
text-align: left;
|
|
11
|
-
text-decoration: ${({ enteredInError }) => (enteredInError ? 'line-through' : 'none')};
|
|
12
|
-
`
|
|
13
|
-
|
|
14
|
-
const DiagnosisTitle: FC<Props> = ({ condition, enteredInError, ...rest }) => {
|
|
15
|
-
const codes = []
|
|
16
|
-
const snippets = []
|
|
17
|
-
|
|
18
|
-
if (condition.code) codes.push(condition.code)
|
|
19
|
-
snippets.push(codeableConceptTextSummary(codes))
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<StyledConditionTitle enteredInError={enteredInError} {...rest}>
|
|
23
|
-
{snippets.length > 0 ? snippets.join(', ') : 'Insufficient data provided'}
|
|
24
|
-
</StyledConditionTitle>
|
|
25
|
-
)
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
29
|
-
condition: Condition
|
|
30
|
-
enteredInError: boolean
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface IStyledDescription {
|
|
34
|
-
enteredInError: boolean
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export default DiagnosisTitle
|
|
1
|
+
import { FC, HTMLAttributes } from 'react'
|
|
2
|
+
import styled from '@emotion/styled'
|
|
3
|
+
|
|
4
|
+
import { TEXT_COLOURS } from '@ltht-react/styles'
|
|
5
|
+
import { Condition } from '@ltht-react/types'
|
|
6
|
+
import { codeableConceptTextSummary } from '@ltht-react/utils'
|
|
7
|
+
|
|
8
|
+
const StyledConditionTitle = styled.div<IStyledDescription>`
|
|
9
|
+
color: ${TEXT_COLOURS.PRIMARY};
|
|
10
|
+
text-align: left;
|
|
11
|
+
text-decoration: ${({ enteredInError }) => (enteredInError ? 'line-through' : 'none')};
|
|
12
|
+
`
|
|
13
|
+
|
|
14
|
+
const DiagnosisTitle: FC<Props> = ({ condition, enteredInError, ...rest }) => {
|
|
15
|
+
const codes = []
|
|
16
|
+
const snippets = []
|
|
17
|
+
|
|
18
|
+
if (condition.code) codes.push(condition.code)
|
|
19
|
+
snippets.push(codeableConceptTextSummary(codes))
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<StyledConditionTitle enteredInError={enteredInError} {...rest}>
|
|
23
|
+
{snippets.length > 0 ? snippets.join(', ') : 'Insufficient data provided'}
|
|
24
|
+
</StyledConditionTitle>
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
29
|
+
condition: Condition
|
|
30
|
+
enteredInError: boolean
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface IStyledDescription {
|
|
34
|
+
enteredInError: boolean
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export default DiagnosisTitle
|
package/src/constants.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const SNIPPET_HOVER_TEXT = 'https://leedsth.nhs.uk/cds/snippet-hover-text'
|
|
2
|
-
|
|
3
|
-
export default SNIPPET_HOVER_TEXT
|
|
1
|
+
const SNIPPET_HOVER_TEXT = 'https://leedsth.nhs.uk/cds/snippet-hover-text'
|
|
2
|
+
|
|
3
|
+
export default SNIPPET_HOVER_TEXT
|
package/src/index.tsx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import DiagnosisSummary from './organisms/diagnosis-summary'
|
|
2
|
-
|
|
3
|
-
export default DiagnosisSummary
|
|
1
|
+
import DiagnosisSummary from './organisms/diagnosis-summary'
|
|
2
|
+
|
|
3
|
+
export default DiagnosisSummary
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { FC } from 'react'
|
|
2
|
-
import styled from '@emotion/styled'
|
|
3
|
-
|
|
4
|
-
import { Condition } from '@ltht-react/types'
|
|
5
|
-
import { DateSummary, RedactedDescription } from '@ltht-react/type-summary'
|
|
6
|
-
|
|
7
|
-
const StyledRedactedDescription = styled.div`
|
|
8
|
-
flex-grow: 1;
|
|
9
|
-
text-align: left;
|
|
10
|
-
`
|
|
11
|
-
|
|
12
|
-
const StyledDateSummary = styled.div`
|
|
13
|
-
text-align: right;
|
|
14
|
-
`
|
|
15
|
-
|
|
16
|
-
const DiagnosisRedacted: FC<Props> = ({ condition }) => (
|
|
17
|
-
<>
|
|
18
|
-
<StyledRedactedDescription>
|
|
19
|
-
<RedactedDescription />
|
|
20
|
-
</StyledRedactedDescription>
|
|
21
|
-
<StyledDateSummary>
|
|
22
|
-
<DateSummary datetime={condition?.onset?.dateTime} />
|
|
23
|
-
</StyledDateSummary>
|
|
24
|
-
</>
|
|
25
|
-
)
|
|
26
|
-
|
|
27
|
-
interface Props {
|
|
28
|
-
condition?: Condition | null
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export default DiagnosisRedacted
|
|
1
|
+
import { FC } from 'react'
|
|
2
|
+
import styled from '@emotion/styled'
|
|
3
|
+
|
|
4
|
+
import { Condition } from '@ltht-react/types'
|
|
5
|
+
import { DateSummary, RedactedDescription } from '@ltht-react/type-summary'
|
|
6
|
+
|
|
7
|
+
const StyledRedactedDescription = styled.div`
|
|
8
|
+
flex-grow: 1;
|
|
9
|
+
text-align: left;
|
|
10
|
+
`
|
|
11
|
+
|
|
12
|
+
const StyledDateSummary = styled.div`
|
|
13
|
+
text-align: right;
|
|
14
|
+
`
|
|
15
|
+
|
|
16
|
+
const DiagnosisRedacted: FC<Props> = ({ condition }) => (
|
|
17
|
+
<>
|
|
18
|
+
<StyledRedactedDescription>
|
|
19
|
+
<RedactedDescription />
|
|
20
|
+
</StyledRedactedDescription>
|
|
21
|
+
<StyledDateSummary>
|
|
22
|
+
<DateSummary datetime={condition?.onset?.dateTime} />
|
|
23
|
+
</StyledDateSummary>
|
|
24
|
+
</>
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
interface Props {
|
|
28
|
+
condition?: Condition | null
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export default DiagnosisRedacted
|
|
@@ -1,168 +1,168 @@
|
|
|
1
|
-
import { FC, HTMLAttributes } from 'react'
|
|
2
|
-
import styled from '@emotion/styled'
|
|
3
|
-
|
|
4
|
-
import { Condition, ConditionVerificationStatus } from '@ltht-react/types'
|
|
5
|
-
import { DateSummary } from '@ltht-react/type-summary'
|
|
6
|
-
import Icon from '@ltht-react/icon'
|
|
7
|
-
import { Button, ButtonProps } from '@ltht-react/button'
|
|
8
|
-
|
|
9
|
-
import { BTN_COLOURS, MOBILE_MAXIMUM_MEDIA_QUERY, SMALL_SCREEN_MAXIMUM_MEDIA_QUERY } from '@ltht-react/styles'
|
|
10
|
-
import Title from '../atoms/diagnosis-title'
|
|
11
|
-
import SubHeader from '../atoms/diagnosis-sub-header'
|
|
12
|
-
import OnsetDateEstimated from '../atoms/diagnosis-onset-estimated'
|
|
13
|
-
import Redacted from '../molecules/diagnosis-redacted'
|
|
14
|
-
import SNIPPET_HOVER_TEXT from '../constants'
|
|
15
|
-
|
|
16
|
-
const StyledTitle = styled.div`
|
|
17
|
-
display: inline-block;
|
|
18
|
-
`
|
|
19
|
-
const StyledSummary = styled.div`
|
|
20
|
-
display: flex;
|
|
21
|
-
justify-content: center;
|
|
22
|
-
`
|
|
23
|
-
const StyledDescription = styled.div`
|
|
24
|
-
flex-grow: 1;
|
|
25
|
-
`
|
|
26
|
-
const StyledLeftContainer = styled.div`
|
|
27
|
-
display: flex;
|
|
28
|
-
flex-grow: 1;
|
|
29
|
-
flex-direction: row;
|
|
30
|
-
|
|
31
|
-
${MOBILE_MAXIMUM_MEDIA_QUERY} {
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
}
|
|
34
|
-
`
|
|
35
|
-
const StyledControlsContainer = styled.div`
|
|
36
|
-
display: flex;
|
|
37
|
-
margin: auto 10px auto 10px;
|
|
38
|
-
flex-direction: column;
|
|
39
|
-
|
|
40
|
-
${MOBILE_MAXIMUM_MEDIA_QUERY} {
|
|
41
|
-
margin: 10px 0 0 0;
|
|
42
|
-
flex-flow: row wrap;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
${SMALL_SCREEN_MAXIMUM_MEDIA_QUERY} {
|
|
46
|
-
margin: 10px 5px 0 0;
|
|
47
|
-
flex-direction: column;
|
|
48
|
-
}
|
|
49
|
-
`
|
|
50
|
-
const StyledButton = styled(Button)`
|
|
51
|
-
margin: 2px 0 2px 0;
|
|
52
|
-
font-size: 0.8em !important;
|
|
53
|
-
padding: 1px 5px;
|
|
54
|
-
|
|
55
|
-
${MOBILE_MAXIMUM_MEDIA_QUERY} {
|
|
56
|
-
margin: 2px 5px 2px 0;
|
|
57
|
-
width: fit-content;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
${SMALL_SCREEN_MAXIMUM_MEDIA_QUERY} {
|
|
61
|
-
margin: 2px 0 2px 0;
|
|
62
|
-
width: 100%;
|
|
63
|
-
max-width: 200px;
|
|
64
|
-
}
|
|
65
|
-
`
|
|
66
|
-
|
|
67
|
-
const StyledDate = styled.div`
|
|
68
|
-
text-align: left;
|
|
69
|
-
width: 15%;
|
|
70
|
-
`
|
|
71
|
-
const IconButtonWrapper = styled(Button)`
|
|
72
|
-
-webkit-box-align: center;
|
|
73
|
-
align-items: center;
|
|
74
|
-
-webkit-box-pack: center;
|
|
75
|
-
justify-content: center;
|
|
76
|
-
margin-right: 0.5rem;
|
|
77
|
-
display: inline-block !important;
|
|
78
|
-
margin-left: 0.5rem;
|
|
79
|
-
width: auto;
|
|
80
|
-
`
|
|
81
|
-
const IconWrapper = styled.div`
|
|
82
|
-
margin-left: 0.5rem;
|
|
83
|
-
display: inline-block;
|
|
84
|
-
`
|
|
85
|
-
|
|
86
|
-
const DiagnosisSummary: FC<Props> = ({
|
|
87
|
-
condition,
|
|
88
|
-
extendedTemplateDisplayName,
|
|
89
|
-
extensionTemplateDisplayName,
|
|
90
|
-
extensionClickHandler,
|
|
91
|
-
isReadOnly = false,
|
|
92
|
-
dateOnlyView = false,
|
|
93
|
-
canExtendDiagnosis = false,
|
|
94
|
-
controls = [],
|
|
95
|
-
...rest
|
|
96
|
-
}) => {
|
|
97
|
-
if (condition.metadata.isRedacted) {
|
|
98
|
-
return (
|
|
99
|
-
<StyledSummary {...rest}>
|
|
100
|
-
<Redacted condition={condition} />
|
|
101
|
-
</StyledSummary>
|
|
102
|
-
)
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
const enteredInError = condition.verificationStatus === ConditionVerificationStatus.EnteredInError
|
|
106
|
-
|
|
107
|
-
const snippetText = condition?.metadata.tag?.find((coding) => coding?.system === SNIPPET_HOVER_TEXT)?.display ?? ''
|
|
108
|
-
|
|
109
|
-
return (
|
|
110
|
-
<StyledSummary {...rest}>
|
|
111
|
-
<StyledLeftContainer>
|
|
112
|
-
<StyledDescription>
|
|
113
|
-
<StyledTitle>
|
|
114
|
-
<Title enteredInError={enteredInError} condition={condition} />
|
|
115
|
-
</StyledTitle>
|
|
116
|
-
{extensionTemplateDisplayName && !isReadOnly && canExtendDiagnosis && !enteredInError && (
|
|
117
|
-
<IconButtonWrapper
|
|
118
|
-
onClick={extensionClickHandler}
|
|
119
|
-
type="button"
|
|
120
|
-
styling={{ buttonStyle: 'clear' }}
|
|
121
|
-
value=""
|
|
122
|
-
icon={<Icon type="folder-plus" size="medium" />}
|
|
123
|
-
iconPlacement="center"
|
|
124
|
-
iconColour={BTN_COLOURS.PRIMARY.VALUE}
|
|
125
|
-
title={`This diagnosis can be extended further using form '${extensionTemplateDisplayName}' by clicking here`}
|
|
126
|
-
/>
|
|
127
|
-
)}
|
|
128
|
-
{extendedTemplateDisplayName && (
|
|
129
|
-
<IconWrapper>
|
|
130
|
-
<Icon
|
|
131
|
-
type="comment"
|
|
132
|
-
size="medium"
|
|
133
|
-
title={`This diagnosis has been extended beyond standard diagnosis with form '${extendedTemplateDisplayName}'.
|
|
134
|
-
To view these extra details, click into the full diagnosis detail or edit the existing form.`}
|
|
135
|
-
/>
|
|
136
|
-
</IconWrapper>
|
|
137
|
-
)}
|
|
138
|
-
<SubHeader enteredInError={enteredInError} text={snippetText} />
|
|
139
|
-
</StyledDescription>
|
|
140
|
-
|
|
141
|
-
{!isReadOnly && controls.length > 0 && (
|
|
142
|
-
<StyledControlsContainer>
|
|
143
|
-
{controls.map((props, index) => (
|
|
144
|
-
<StyledButton key={index} {...props} />
|
|
145
|
-
))}
|
|
146
|
-
</StyledControlsContainer>
|
|
147
|
-
)}
|
|
148
|
-
</StyledLeftContainer>
|
|
149
|
-
<StyledDate>
|
|
150
|
-
<DateSummary enteredInError={enteredInError} datetime={condition?.assertedDate} dateOnlyView={dateOnlyView} />
|
|
151
|
-
<OnsetDateEstimated enteredInError={enteredInError} condition={condition} />
|
|
152
|
-
</StyledDate>
|
|
153
|
-
</StyledSummary>
|
|
154
|
-
)
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
158
|
-
condition: Condition
|
|
159
|
-
extendedTemplateDisplayName?: string | undefined
|
|
160
|
-
extensionTemplateDisplayName?: string | undefined
|
|
161
|
-
extensionClickHandler?(): void
|
|
162
|
-
isReadOnly: boolean
|
|
163
|
-
dateOnlyView?: boolean
|
|
164
|
-
controls?: ButtonProps[]
|
|
165
|
-
canExtendDiagnosis?: boolean
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export default DiagnosisSummary
|
|
1
|
+
import { FC, HTMLAttributes } from 'react'
|
|
2
|
+
import styled from '@emotion/styled'
|
|
3
|
+
|
|
4
|
+
import { Condition, ConditionVerificationStatus } from '@ltht-react/types'
|
|
5
|
+
import { DateSummary } from '@ltht-react/type-summary'
|
|
6
|
+
import Icon from '@ltht-react/icon'
|
|
7
|
+
import { Button, ButtonProps } from '@ltht-react/button'
|
|
8
|
+
|
|
9
|
+
import { BTN_COLOURS, MOBILE_MAXIMUM_MEDIA_QUERY, SMALL_SCREEN_MAXIMUM_MEDIA_QUERY } from '@ltht-react/styles'
|
|
10
|
+
import Title from '../atoms/diagnosis-title'
|
|
11
|
+
import SubHeader from '../atoms/diagnosis-sub-header'
|
|
12
|
+
import OnsetDateEstimated from '../atoms/diagnosis-onset-estimated'
|
|
13
|
+
import Redacted from '../molecules/diagnosis-redacted'
|
|
14
|
+
import SNIPPET_HOVER_TEXT from '../constants'
|
|
15
|
+
|
|
16
|
+
const StyledTitle = styled.div`
|
|
17
|
+
display: inline-block;
|
|
18
|
+
`
|
|
19
|
+
const StyledSummary = styled.div`
|
|
20
|
+
display: flex;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
`
|
|
23
|
+
const StyledDescription = styled.div`
|
|
24
|
+
flex-grow: 1;
|
|
25
|
+
`
|
|
26
|
+
const StyledLeftContainer = styled.div`
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-grow: 1;
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
|
|
31
|
+
${MOBILE_MAXIMUM_MEDIA_QUERY} {
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
}
|
|
34
|
+
`
|
|
35
|
+
const StyledControlsContainer = styled.div`
|
|
36
|
+
display: flex;
|
|
37
|
+
margin: auto 10px auto 10px;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
|
|
40
|
+
${MOBILE_MAXIMUM_MEDIA_QUERY} {
|
|
41
|
+
margin: 10px 0 0 0;
|
|
42
|
+
flex-flow: row wrap;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
${SMALL_SCREEN_MAXIMUM_MEDIA_QUERY} {
|
|
46
|
+
margin: 10px 5px 0 0;
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
}
|
|
49
|
+
`
|
|
50
|
+
const StyledButton = styled(Button)`
|
|
51
|
+
margin: 2px 0 2px 0;
|
|
52
|
+
font-size: 0.8em !important;
|
|
53
|
+
padding: 1px 5px;
|
|
54
|
+
|
|
55
|
+
${MOBILE_MAXIMUM_MEDIA_QUERY} {
|
|
56
|
+
margin: 2px 5px 2px 0;
|
|
57
|
+
width: fit-content;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
${SMALL_SCREEN_MAXIMUM_MEDIA_QUERY} {
|
|
61
|
+
margin: 2px 0 2px 0;
|
|
62
|
+
width: 100%;
|
|
63
|
+
max-width: 200px;
|
|
64
|
+
}
|
|
65
|
+
`
|
|
66
|
+
|
|
67
|
+
const StyledDate = styled.div`
|
|
68
|
+
text-align: left;
|
|
69
|
+
width: 15%;
|
|
70
|
+
`
|
|
71
|
+
const IconButtonWrapper = styled(Button)`
|
|
72
|
+
-webkit-box-align: center;
|
|
73
|
+
align-items: center;
|
|
74
|
+
-webkit-box-pack: center;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
margin-right: 0.5rem;
|
|
77
|
+
display: inline-block !important;
|
|
78
|
+
margin-left: 0.5rem;
|
|
79
|
+
width: auto;
|
|
80
|
+
`
|
|
81
|
+
const IconWrapper = styled.div`
|
|
82
|
+
margin-left: 0.5rem;
|
|
83
|
+
display: inline-block;
|
|
84
|
+
`
|
|
85
|
+
|
|
86
|
+
const DiagnosisSummary: FC<Props> = ({
|
|
87
|
+
condition,
|
|
88
|
+
extendedTemplateDisplayName,
|
|
89
|
+
extensionTemplateDisplayName,
|
|
90
|
+
extensionClickHandler,
|
|
91
|
+
isReadOnly = false,
|
|
92
|
+
dateOnlyView = false,
|
|
93
|
+
canExtendDiagnosis = false,
|
|
94
|
+
controls = [],
|
|
95
|
+
...rest
|
|
96
|
+
}) => {
|
|
97
|
+
if (condition.metadata.isRedacted) {
|
|
98
|
+
return (
|
|
99
|
+
<StyledSummary {...rest}>
|
|
100
|
+
<Redacted condition={condition} />
|
|
101
|
+
</StyledSummary>
|
|
102
|
+
)
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
const enteredInError = condition.verificationStatus === ConditionVerificationStatus.EnteredInError
|
|
106
|
+
|
|
107
|
+
const snippetText = condition?.metadata.tag?.find((coding) => coding?.system === SNIPPET_HOVER_TEXT)?.display ?? ''
|
|
108
|
+
|
|
109
|
+
return (
|
|
110
|
+
<StyledSummary {...rest}>
|
|
111
|
+
<StyledLeftContainer>
|
|
112
|
+
<StyledDescription>
|
|
113
|
+
<StyledTitle>
|
|
114
|
+
<Title enteredInError={enteredInError} condition={condition} />
|
|
115
|
+
</StyledTitle>
|
|
116
|
+
{extensionTemplateDisplayName && !isReadOnly && canExtendDiagnosis && !enteredInError && (
|
|
117
|
+
<IconButtonWrapper
|
|
118
|
+
onClick={extensionClickHandler}
|
|
119
|
+
type="button"
|
|
120
|
+
styling={{ buttonStyle: 'clear' }}
|
|
121
|
+
value=""
|
|
122
|
+
icon={<Icon type="folder-plus" size="medium" />}
|
|
123
|
+
iconPlacement="center"
|
|
124
|
+
iconColour={BTN_COLOURS.PRIMARY.VALUE}
|
|
125
|
+
title={`This diagnosis can be extended further using form '${extensionTemplateDisplayName}' by clicking here`}
|
|
126
|
+
/>
|
|
127
|
+
)}
|
|
128
|
+
{extendedTemplateDisplayName && (
|
|
129
|
+
<IconWrapper>
|
|
130
|
+
<Icon
|
|
131
|
+
type="comment"
|
|
132
|
+
size="medium"
|
|
133
|
+
title={`This diagnosis has been extended beyond standard diagnosis with form '${extendedTemplateDisplayName}'.
|
|
134
|
+
To view these extra details, click into the full diagnosis detail or edit the existing form.`}
|
|
135
|
+
/>
|
|
136
|
+
</IconWrapper>
|
|
137
|
+
)}
|
|
138
|
+
<SubHeader enteredInError={enteredInError} text={snippetText} />
|
|
139
|
+
</StyledDescription>
|
|
140
|
+
|
|
141
|
+
{!isReadOnly && controls.length > 0 && (
|
|
142
|
+
<StyledControlsContainer>
|
|
143
|
+
{controls.map((props, index) => (
|
|
144
|
+
<StyledButton key={index} {...props} />
|
|
145
|
+
))}
|
|
146
|
+
</StyledControlsContainer>
|
|
147
|
+
)}
|
|
148
|
+
</StyledLeftContainer>
|
|
149
|
+
<StyledDate>
|
|
150
|
+
<DateSummary enteredInError={enteredInError} datetime={condition?.assertedDate} dateOnlyView={dateOnlyView} />
|
|
151
|
+
<OnsetDateEstimated enteredInError={enteredInError} condition={condition} />
|
|
152
|
+
</StyledDate>
|
|
153
|
+
</StyledSummary>
|
|
154
|
+
)
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
158
|
+
condition: Condition
|
|
159
|
+
extendedTemplateDisplayName?: string | undefined
|
|
160
|
+
extensionTemplateDisplayName?: string | undefined
|
|
161
|
+
extensionClickHandler?(): void
|
|
162
|
+
isReadOnly: boolean
|
|
163
|
+
dateOnlyView?: boolean
|
|
164
|
+
controls?: ButtonProps[]
|
|
165
|
+
canExtendDiagnosis?: boolean
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export default DiagnosisSummary
|
|
@@ -1,45 +0,0 @@
|
|
|
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 StyledConditionSubHeader = 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) {
|
|
36
|
-
var enteredInError = _a.enteredInError;
|
|
37
|
-
return (enteredInError ? 'line-through' : 'none');
|
|
38
|
-
});
|
|
39
|
-
var DiagnosisSubHeader = function (_a) {
|
|
40
|
-
var text = _a.text, enteredInError = _a.enteredInError, rest = __rest(_a, ["text", "enteredInError"]);
|
|
41
|
-
return ((0, jsx_runtime_1.jsx)(StyledConditionSubHeader, __assign({ enteredInError: enteredInError }, rest, { children: text })));
|
|
42
|
-
};
|
|
43
|
-
exports.default = DiagnosisSubHeader;
|
|
44
|
-
var templateObject_1;
|
|
45
|
-
//# sourceMappingURL=diagnosis-sub-title.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"diagnosis-sub-title.js","sourceRoot":"","sources":["../../src/atoms/diagnosis-sub-title.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2DAAoC;AAEpC,6CAAiD;AAEjD,IAAM,wBAAwB,GAAG,gBAAM,CAAC,GAAG,sLAAoB,aACpD,EAA4B,6FAIlB,EAAkE,KACtF,KALU,qBAAY,CAAC,SAAS,CAAC,KAAK,EAIlB,UAAC,EAAkB;QAAhB,cAAc,oBAAA;IAAO,OAAA,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC;AAA1C,CAA0C,CACtF,CAAA;AAED,IAAM,kBAAkB,GAAc,UAAC,EAAiC;IAA/B,IAAA,IAAI,UAAA,EAAE,cAAc,oBAAA,EAAK,IAAI,cAA/B,0BAAiC,CAAF;IAAO,OAAA,CAC3E,uBAAC,wBAAwB,aAAC,cAAc,EAAE,cAAc,IAAM,IAAI,cAC/D,IAAI,IACoB,CAC5B,CAAA;CAAA,CAAA;AAWD,kBAAe,kBAAkB,CAAA"}
|