@openmrs/esm-styleguide 5.8.2-pre.2369 → 5.8.2-pre.2371
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/.turbo/turbo-build.log
CHANGED
|
@@ -45,4 +45,4 @@ WARNING in webpack performance recommendations:
|
|
|
45
45
|
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
|
|
46
46
|
For more info visit https://webpack.js.org/guides/code-splitting/
|
|
47
47
|
|
|
48
|
-
webpack 5.88.0 compiled with 3 warnings in
|
|
48
|
+
webpack 5.88.0 compiled with 3 warnings in 28485 ms
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-styleguide",
|
|
3
|
-
"version": "5.8.2-pre.
|
|
3
|
+
"version": "5.8.2-pre.2371",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "The styleguide for OpenMRS SPA",
|
|
6
6
|
"browser": "dist/openmrs-esm-styleguide.js",
|
|
@@ -63,12 +63,12 @@
|
|
|
63
63
|
"rxjs": "6.x"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@openmrs/esm-error-handling": "5.8.2-pre.
|
|
67
|
-
"@openmrs/esm-extensions": "5.8.2-pre.
|
|
68
|
-
"@openmrs/esm-navigation": "5.8.2-pre.
|
|
69
|
-
"@openmrs/esm-react-utils": "5.8.2-pre.
|
|
70
|
-
"@openmrs/esm-state": "5.8.2-pre.
|
|
71
|
-
"@openmrs/esm-translations": "5.8.2-pre.
|
|
66
|
+
"@openmrs/esm-error-handling": "5.8.2-pre.2371",
|
|
67
|
+
"@openmrs/esm-extensions": "5.8.2-pre.2371",
|
|
68
|
+
"@openmrs/esm-navigation": "5.8.2-pre.2371",
|
|
69
|
+
"@openmrs/esm-react-utils": "5.8.2-pre.2371",
|
|
70
|
+
"@openmrs/esm-state": "5.8.2-pre.2371",
|
|
71
|
+
"@openmrs/esm-translations": "5.8.2-pre.2371",
|
|
72
72
|
"@types/geopattern": "^1.2.9",
|
|
73
73
|
"autoprefixer": "^9.8.8",
|
|
74
74
|
"css-minimizer-webpack-plugin": "^1.2.0",
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
2
|
import useSWR from 'swr';
|
|
3
|
-
import { type FetchResponse, openmrsFetch } from '@openmrs/esm-api';
|
|
3
|
+
import { type FetchResponse, openmrsFetch, restBaseUrl } from '@openmrs/esm-api';
|
|
4
4
|
import { type CohortMemberResponse } from './types';
|
|
5
5
|
|
|
6
6
|
export function usePatientListsForPatient(patientUuid: string) {
|
|
7
7
|
const customRepresentation = 'custom:(uuid,patient:ref,cohort:(uuid,name,startDate,endDate))';
|
|
8
|
-
const url = patientUuid
|
|
8
|
+
const url = patientUuid
|
|
9
|
+
? `${restBaseUrl}/cohortm/cohortmember?patient=${patientUuid}&v=${customRepresentation}`
|
|
10
|
+
: null;
|
|
9
11
|
const { data, isLoading } = useSWR<FetchResponse<CohortMemberResponse>, Error>(url, openmrsFetch);
|
|
10
12
|
|
|
11
13
|
const cohorts = data?.data?.results.map((ref) => ({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/** @module @category UI */
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { Tag } from '@carbon/react';
|
|
3
4
|
import { useConfig, usePrimaryIdentifierCode } from '@openmrs/esm-react-utils';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import styles from './patient-banner-patient-info.module.scss';
|
|
6
5
|
import { type StyleguideConfigObject } from '../../config-schema';
|
|
6
|
+
import styles from './patient-banner-patient-info.module.scss';
|
|
7
7
|
|
|
8
8
|
interface PatientBannerPatientIdentifierProps {
|
|
9
9
|
identifier: fhir.Identifier[] | undefined;
|