@bahmni/clinical-app 0.0.1-dev.278 → 0.0.1-dev.281

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.
@@ -1,6 +1,8 @@
1
+ import { PrintOption } from '@bahmni/widgets';
1
2
  import { default as React } from 'react';
2
3
  interface PatientHeaderProps {
3
4
  isActionAreaVisible: boolean;
5
+ printOptions?: PrintOption[];
4
6
  }
5
7
  /**
6
8
  * Header component for the Bahmni Clinical application
@@ -1 +1 @@
1
- {"version":3,"file":"PatientHeader.d.ts","sourceRoot":"","sources":["../../../src/components/patientHeader/PatientHeader.tsx"],"names":[],"mappings":"AAaA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,UAAU,kBAAkB;IAC1B,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA0E/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"PatientHeader.d.ts","sourceRoot":"","sources":["../../../src/components/patientHeader/PatientHeader.tsx"],"names":[],"mappings":"AAQA,OAAO,EAKL,KAAK,WAAW,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAqC,MAAM,OAAO,CAAC;AAM1D,UAAU,kBAAkB;IAC1B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAoG/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { FhirEncounter } from '../models/encounter';
2
+ interface UsePatientVisitResult {
3
+ activeVisit: FhirEncounter | null;
4
+ lastVisit: FhirEncounter | null;
5
+ loading: boolean;
6
+ error: Error | null;
7
+ refetch: () => void;
8
+ }
9
+ /**
10
+ * Fetches all visits once and derives:
11
+ * - activeVisit: the ongoing visit (no period.end)
12
+ * - lastVisit: most recently ended visit (only when no active visit)
13
+ */
14
+ export declare const usePatientVisit: (patientUUID: string | null) => UsePatientVisitResult;
15
+ export {};
16
+ //# sourceMappingURL=usePatientVisit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePatientVisit.d.ts","sourceRoot":"","sources":["../../src/hooks/usePatientVisit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,UAAU,qBAAqB;IAC7B,WAAW,EAAE,aAAa,GAAG,IAAI,CAAC;IAClC,SAAS,EAAE,aAAa,GAAG,IAAI,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,aAAa,MAAM,GAAG,IAAI,KACzB,qBA2DF,CAAC"}