@bahmni/clinical-app 0.0.1-dev.220 → 0.0.1-dev.222
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/dist/{DocumentsTable-CJ7fZ08M-BBg0Stsv.js → DocumentsTable-CxTI1Hgb-DwoYlX4u.js} +2 -2
- package/dist/{FormsTable-B5bhuwKx-ILWKeMi8.js → FormsTable-DvLskkhx-Wx17ryEW.js} +19 -19
- package/dist/{LNWAZHJI-B37fkPgy.js → LNWAZHJI-DI225q7c.js} +2 -2
- package/dist/{MWZ6AO7Z-BwDyfEIR.js → MWZ6AO7Z-CguRAJpQ.js} +2 -2
- package/dist/{Observations-DkQGjP2q-B6XgVC5P.js → Observations-BU9Xc30t-alt_7jLA.js} +4 -4
- package/dist/{YPM2AS64-C4xIMPse.js → YPM2AS64-uUkV26GU.js} +1 -1
- package/dist/components/consultationPad/__tests__/__mocks__/indexMocks.d.ts +32 -0
- package/dist/components/consultationPad/__tests__/__mocks__/indexMocks.d.ts.map +1 -0
- package/dist/components/consultationPad/__tests__/__mocks__/inputControlRegistryMocks.d.ts +3 -0
- package/dist/components/consultationPad/__tests__/__mocks__/inputControlRegistryMocks.d.ts.map +1 -0
- package/dist/components/consultationPad/__tests__/__mocks__/servicesMocks.d.ts +30 -0
- package/dist/components/consultationPad/__tests__/__mocks__/servicesMocks.d.ts.map +1 -0
- package/dist/components/consultationPad/components/InputControlRenderer.d.ts +9 -0
- package/dist/components/consultationPad/components/InputControlRenderer.d.ts.map +1 -0
- package/dist/components/consultationPad/components/ObservationFormsPanel.d.ts +4 -0
- package/dist/components/consultationPad/components/ObservationFormsPanel.d.ts.map +1 -0
- package/dist/components/consultationPad/{ConsultationPad.d.ts → index.d.ts} +2 -1
- package/dist/components/consultationPad/index.d.ts.map +1 -0
- package/dist/components/consultationPad/inputControlRegistry.d.ts +4 -0
- package/dist/components/consultationPad/inputControlRegistry.d.ts.map +1 -0
- package/dist/components/consultationPad/models.d.ts +21 -0
- package/dist/components/consultationPad/models.d.ts.map +1 -0
- package/dist/components/consultationPad/services.d.ts +16 -0
- package/dist/components/consultationPad/services.d.ts.map +1 -0
- package/dist/components/consultationPad/utils.d.ts +10 -0
- package/dist/components/consultationPad/utils.d.ts.map +1 -0
- package/dist/components/forms/encounterDetails/EncounterDetails.d.ts +2 -6
- package/dist/components/forms/encounterDetails/EncounterDetails.d.ts.map +1 -1
- package/dist/components/forms/immunizationHistory/ImmunizationHistoryForm.d.ts +3 -0
- package/dist/components/forms/immunizationHistory/ImmunizationHistoryForm.d.ts.map +1 -0
- package/dist/components/forms/immunizationHistory/__tests__/__mocks__/immunizationHistoryMocks.d.ts +135 -0
- package/dist/components/forms/immunizationHistory/__tests__/__mocks__/immunizationHistoryMocks.d.ts.map +1 -0
- package/dist/components/forms/immunizationHistory/components/SelectedImmunizationItem.d.ts +16 -0
- package/dist/components/forms/immunizationHistory/components/SelectedImmunizationItem.d.ts.map +1 -0
- package/dist/components/forms/immunizationHistory/constants.d.ts +2 -0
- package/dist/components/forms/immunizationHistory/constants.d.ts.map +1 -0
- package/dist/components/forms/immunizationHistory/index.d.ts +4 -0
- package/dist/components/forms/immunizationHistory/index.d.ts.map +1 -0
- package/dist/components/forms/immunizationHistory/models.d.ts +73 -0
- package/dist/components/forms/immunizationHistory/models.d.ts.map +1 -0
- package/dist/components/forms/immunizationHistory/stores.d.ts +3 -0
- package/dist/components/forms/immunizationHistory/stores.d.ts.map +1 -0
- package/dist/components/forms/immunizationHistory/utils.d.ts +17 -0
- package/dist/components/forms/immunizationHistory/utils.d.ts.map +1 -0
- package/dist/components/forms/index.d.ts +8 -0
- package/dist/components/forms/index.d.ts.map +1 -0
- package/dist/components/forms/observations/ObservationFormsContainer.d.ts +0 -2
- package/dist/components/forms/observations/ObservationFormsContainer.d.ts.map +1 -1
- package/dist/components/patientHeader/ConsultationActionButton.d.ts +0 -8
- package/dist/components/patientHeader/ConsultationActionButton.d.ts.map +1 -1
- package/dist/components/patientHeader/PatientHeader.d.ts +0 -2
- package/dist/components/patientHeader/PatientHeader.d.ts.map +1 -1
- package/dist/events/startConsultation/constants.d.ts +2 -0
- package/dist/events/startConsultation/constants.d.ts.map +1 -0
- package/dist/events/startConsultation/event.d.ts +3 -0
- package/dist/events/startConsultation/event.d.ts.map +1 -0
- package/dist/events/startConsultation/hooks.d.ts +3 -0
- package/dist/events/startConsultation/hooks.d.ts.map +1 -0
- package/dist/events/startConsultation/index.d.ts +5 -0
- package/dist/events/startConsultation/index.d.ts.map +1 -0
- package/dist/events/startConsultation/models.d.ts +4 -0
- package/dist/events/startConsultation/models.d.ts.map +1 -0
- package/dist/hooks/useEncounterSession.d.ts +1 -1
- package/dist/hooks/useEncounterSession.d.ts.map +1 -1
- package/dist/{index-B1zhpc_t.js → index-CP_FtC4s.js} +21011 -20175
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +44 -13
- package/dist/locales/locale_es.json +44 -13
- package/dist/pages/ConsultationPage.d.ts.map +1 -1
- package/dist/providers/clinicalConfig/models.d.ts +18 -0
- package/dist/providers/clinicalConfig/models.d.ts.map +1 -1
- package/dist/providers/clinicalConfig/schema.json.d.ts +97 -4
- package/dist/stores/encounterDetailsStore.d.ts +2 -0
- package/dist/stores/encounterDetailsStore.d.ts.map +1 -1
- package/dist/stores/index.d.ts +7 -0
- package/dist/stores/index.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/components/consultationPad/ConsultationPad.d.ts.map +0 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Reference } from 'fhir/r4';
|
|
2
|
+
import { InputControlAttributes } from '../../../providers/clinicalConfig/models';
|
|
3
|
+
export interface ImmunizationDrug {
|
|
4
|
+
code?: string;
|
|
5
|
+
display: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ImmunizationLocation {
|
|
8
|
+
uuid?: string;
|
|
9
|
+
display: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ImmunizationInputEntry {
|
|
12
|
+
id: string;
|
|
13
|
+
drug: ImmunizationDrug | null;
|
|
14
|
+
vaccineCode: {
|
|
15
|
+
code: string;
|
|
16
|
+
display: string;
|
|
17
|
+
};
|
|
18
|
+
administeredOn: Date | null;
|
|
19
|
+
administeredLocation: ImmunizationLocation | null;
|
|
20
|
+
route: string | null;
|
|
21
|
+
site: string | null;
|
|
22
|
+
expiryDate: Date | null;
|
|
23
|
+
manufacturer: string | null;
|
|
24
|
+
batchNumber: string | null;
|
|
25
|
+
errors: {
|
|
26
|
+
drug?: string;
|
|
27
|
+
administeredOn?: string;
|
|
28
|
+
administeredLocation?: string;
|
|
29
|
+
route?: string;
|
|
30
|
+
site?: string;
|
|
31
|
+
expiryDate?: string;
|
|
32
|
+
manufacturer?: string;
|
|
33
|
+
batchNumber?: string;
|
|
34
|
+
};
|
|
35
|
+
hasBeenValidated: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface ValueSetComboBoxItem {
|
|
38
|
+
code: string;
|
|
39
|
+
display: string;
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface LocationComboBoxItem {
|
|
43
|
+
uuid: string;
|
|
44
|
+
display: string;
|
|
45
|
+
}
|
|
46
|
+
export interface CreateImmunizationBundleEntriesParams {
|
|
47
|
+
selectedImmunizations: ImmunizationInputEntry[];
|
|
48
|
+
encounterSubject: Reference;
|
|
49
|
+
encounterReference: string;
|
|
50
|
+
practitionerUUID: string;
|
|
51
|
+
}
|
|
52
|
+
export interface ImmunizationHistoryState {
|
|
53
|
+
selectedImmunizations: ImmunizationInputEntry[];
|
|
54
|
+
attributes: InputControlAttributes[] | undefined;
|
|
55
|
+
addImmunization: (vaccineCode: {
|
|
56
|
+
code: string;
|
|
57
|
+
display: string;
|
|
58
|
+
}) => void;
|
|
59
|
+
removeImmunization: (id: string) => void;
|
|
60
|
+
setAttributes: (attrs: InputControlAttributes[]) => void;
|
|
61
|
+
updateAdministeredOn: (id: string, value: Date | null) => void;
|
|
62
|
+
updateVaccineDrug: (id: string, drug: ImmunizationDrug | null) => void;
|
|
63
|
+
updateAdministeredLocation: (id: string, value: ImmunizationLocation | null) => void;
|
|
64
|
+
updateRoute: (id: string, value: string) => void;
|
|
65
|
+
updateSite: (id: string, value: string) => void;
|
|
66
|
+
updateExpiryDate: (id: string, value: Date | null) => void;
|
|
67
|
+
updateManufacturer: (id: string, value: string) => void;
|
|
68
|
+
updateBatchNumber: (id: string, value: string) => void;
|
|
69
|
+
validateAll: () => boolean;
|
|
70
|
+
reset: () => void;
|
|
71
|
+
getState: () => ImmunizationHistoryState;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunizationHistory/models.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stores.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunizationHistory/stores.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,wBAAwB,EAGzB,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,2BAA2B,uFAmPvC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Location } from '@bahmni/services';
|
|
2
|
+
import { Medication, ValueSet, ValueSetExpansionContains, BundleEntry } from 'fhir/r4';
|
|
3
|
+
import { InputControlAttributes } from '../../../providers/clinicalConfig/models';
|
|
4
|
+
import { CreateImmunizationBundleEntriesParams, LocationComboBoxItem, ValueSetComboBoxItem } from './models';
|
|
5
|
+
export declare function findAttr(name: string, attributes: InputControlAttributes[] | undefined): InputControlAttributes | undefined;
|
|
6
|
+
export declare function getValueSetComboBoxItems(searchTerm: string, valueSet: ValueSet | undefined, emptyMessage: string): ValueSetComboBoxItem[];
|
|
7
|
+
export declare function getMedicationComboBoxItems(searchTerm: string, medications: Medication[] | undefined, vaccineCode: string, emptyMessage: string): ValueSetComboBoxItem[];
|
|
8
|
+
export declare function getLocationComboBoxItems(searchTerm: string, locations: Location[] | undefined): LocationComboBoxItem[];
|
|
9
|
+
export declare function getComboBoxItems(searchTerm: string, codeableConcepts: ValueSet | undefined, isLoading: boolean, isError: boolean, messages: {
|
|
10
|
+
loading: string;
|
|
11
|
+
error: string;
|
|
12
|
+
empty: string;
|
|
13
|
+
}): (ValueSetExpansionContains & {
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
})[];
|
|
16
|
+
export declare function createImmunizationBundleEntries({ selectedImmunizations, encounterSubject, encounterReference, practitionerUUID, }: CreateImmunizationBundleEntriesParams): BundleEntry[];
|
|
17
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunizationHistory/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAEL,UAAU,EACV,QAAQ,EACR,yBAAyB,EACzB,WAAW,EAEZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAQlF,OAAO,EACL,qCAAqC,EAGrC,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAwBlB,wBAAgB,QAAQ,CACtB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,sBAAsB,EAAE,GAAG,SAAS,GAC/C,sBAAsB,GAAG,SAAS,CAEpC;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,QAAQ,GAAG,SAAS,EAC9B,YAAY,EAAE,MAAM,GACnB,oBAAoB,EAAE,CAWxB;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,UAAU,EAAE,GAAG,SAAS,EACrC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,GACnB,oBAAoB,EAAE,CAkBxB;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,QAAQ,EAAE,GAAG,SAAS,GAChC,oBAAoB,EAAE,CAQxB;AAED,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,EAClB,gBAAgB,EAAE,QAAQ,GAAG,SAAS,EACtC,SAAS,EAAE,OAAO,EAClB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC1D,CAAC,yBAAyB,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,EAAE,CAaxD;AAED,wBAAgB,+BAA+B,CAAC,EAC9C,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GACjB,EAAE,qCAAqC,GAAG,WAAW,EAAE,CA8CvD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as AllergiesForm } from './allergies/AllergiesForm';
|
|
2
|
+
export { default as ConditionsAndDiagnoses } from './conditionsAndDiagnoses/ConditionsAndDiagnoses';
|
|
3
|
+
export { default as EncounterDetails } from './encounterDetails/EncounterDetails';
|
|
4
|
+
export { ImmunizationHistoryForm } from './immunizationHistory';
|
|
5
|
+
export { default as InvestigationsForm } from './investigations/InvestigationsForm';
|
|
6
|
+
export { default as MedicationsForm } from './medications/MedicationsForm';
|
|
7
|
+
export { default as VaccinationForm } from './vaccinations/VaccinationForm';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/forms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AACpG,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -5,8 +5,6 @@ interface ObservationFormsContainerProps {
|
|
|
5
5
|
onViewingFormChange: (viewingForm: ObservationForm | null) => void;
|
|
6
6
|
viewingForm?: ObservationForm | null;
|
|
7
7
|
onRemoveForm?: (formUuid: string) => void;
|
|
8
|
-
pinnedForms: ObservationForm[];
|
|
9
|
-
updatePinnedForms: (newPinnedForms: ObservationForm[]) => Promise<void>;
|
|
10
8
|
onFormObservationsChange?: (formUuid: string, observations: Form2Observation[], validationErrorType?: null | typeof VALIDATION_STATE_EMPTY | typeof VALIDATION_STATE_MANDATORY | typeof VALIDATION_STATE_INVALID | typeof VALIDATION_STATE_SCRIPT_ERROR) => void;
|
|
11
9
|
existingObservations?: Form2Observation[];
|
|
12
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObservationFormsContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationFormsContainer.tsx"],"names":[],"mappings":"AAWA,OAAO,wCAAwC,CAAC;AAChD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,gBAAgB,EAMjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAA2B,MAAM,OAAO,CAAC;AAEhD,OAAO,EAEL,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ObservationFormsContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationFormsContainer.tsx"],"names":[],"mappings":"AAWA,OAAO,wCAAwC,CAAC;AAChD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,gBAAgB,EAMjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAA2B,MAAM,OAAO,CAAC;AAEhD,OAAO,EAEL,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAQlC,UAAU,8BAA8B;IACtC,mBAAmB,EAAE,CAAC,WAAW,EAAE,eAAe,GAAG,IAAI,KAAK,IAAI,CAAC;IACnE,WAAW,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,wBAAwB,CAAC,EAAE,CACzB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,gBAAgB,EAAE,EAChC,mBAAmB,CAAC,EAChB,IAAI,GACJ,OAAO,sBAAsB,GAC7B,OAAO,0BAA0B,GACjC,OAAO,wBAAwB,GAC/B,OAAO,6BAA6B,KACrC,IAAI,CAAC;IACV,oBAAoB,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC3C;AAED,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAoXvE,CAAC;AAuBF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
interface ConsultationActionButtonProps {
|
|
3
3
|
isActionAreaVisible: boolean;
|
|
4
|
-
setIsActionAreaVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
4
|
}
|
|
6
|
-
/**
|
|
7
|
-
* ConsultationActionButton component that shows "New Consultation" or "Edit Consultation"
|
|
8
|
-
* based on encounter session state
|
|
9
|
-
*
|
|
10
|
-
* @param {ConsultationActionButtonProps} props - Component props
|
|
11
|
-
* @returns {React.ReactElement} The ConsultationActionButton component
|
|
12
|
-
*/
|
|
13
5
|
declare const ConsultationActionButton: React.FC<ConsultationActionButtonProps>;
|
|
14
6
|
export default ConsultationActionButton;
|
|
15
7
|
//# sourceMappingURL=ConsultationActionButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsultationActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/patientHeader/ConsultationActionButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConsultationActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/patientHeader/ConsultationActionButton.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,6BAA6B;IACrC,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CA8BrE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
interface PatientHeaderProps {
|
|
3
3
|
isActionAreaVisible: boolean;
|
|
4
|
-
setIsActionAreaVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
4
|
}
|
|
6
5
|
/**
|
|
7
6
|
* Header component for the Bahmni Clinical application
|
|
8
7
|
* Displays patient details with consultation action button
|
|
9
8
|
*
|
|
10
9
|
* @param {boolean} isActionAreaVisible - Whether the action area is currently visible
|
|
11
|
-
* @param {function} setIsActionAreaVisible - Function to toggle action area visibility
|
|
12
10
|
* @returns {React.ReactElement} The Header component
|
|
13
11
|
*/
|
|
14
12
|
declare const PatientHeader: React.FC<PatientHeaderProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PatientHeader.d.ts","sourceRoot":"","sources":["../../../src/components/patientHeader/PatientHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,kBAAkB;IAC1B,mBAAmB,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PatientHeader.d.ts","sourceRoot":"","sources":["../../../src/components/patientHeader/PatientHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,kBAAkB;IAC1B,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAe/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/events/startConsultation/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/events/startConsultation/event.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,yBAAyB,GACpC,SAAS,sBAAsB,KAC9B,IAKF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/events/startConsultation/hooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,6BAA6B,GACxC,UAAU,CAAC,OAAO,EAAE,sBAAsB,KAAK,IAAI,SAUpD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/events/startConsultation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACvD,YAAY,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/events/startConsultation/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Provider } from '@bahmni/services';
|
|
2
2
|
import { Encounter } from 'fhir/r4';
|
|
3
3
|
interface UseEncounterSessionOptions {
|
|
4
|
-
/** The practitioner to use for session filtering */
|
|
5
4
|
practitioner: Provider | null;
|
|
5
|
+
encounterTypeUUID?: string;
|
|
6
6
|
}
|
|
7
7
|
interface UseEncounterSessionReturn {
|
|
8
8
|
hasActiveSession: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEncounterSession.d.ts","sourceRoot":"","sources":["../../src/hooks/useEncounterSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,UAAU,0BAA0B;IAClC,
|
|
1
|
+
{"version":3,"file":"useEncounterSession.d.ts","sourceRoot":"","sources":["../../src/hooks/useEncounterSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,UAAU,0BAA0B;IAClC,YAAY,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,UAAU,yBAAyB;IACjC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,SAAS,GAAG,IAAI,CAAC;IAClC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED;;;;;GAKG;AAEH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,0BAA0B,GAClC,yBAAyB,CA0F3B"}
|