@bahmni/widgets 0.0.1-dev.4 → 0.0.1-dev.401
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 +1 -1
- package/dist/DocumentsTable-Dzer5eOY.js +228 -0
- package/dist/FormsTable-CwXX7pm4.js +306 -0
- package/dist/Observations-00pOtH3y.js +214 -0
- package/dist/activePractitioner/ActivePractitionerContext.d.ts +10 -0
- package/dist/activePractitioner/ActivePractitionerContext.d.ts.map +1 -0
- package/dist/activePractitioner/ActivePractitionerProvider.d.ts +7 -0
- package/dist/activePractitioner/ActivePractitionerProvider.d.ts.map +1 -0
- package/dist/activePractitioner/index.d.ts +5 -0
- package/dist/activePractitioner/index.d.ts.map +1 -0
- package/dist/activePractitioner/useActivePractitioner.d.ts +7 -0
- package/dist/activePractitioner/useActivePractitioner.d.ts.map +1 -0
- package/dist/allergies/AllergiesTable.d.ts +2 -4
- package/dist/allergies/AllergiesTable.d.ts.map +1 -1
- package/dist/appContext/AppContextProvider.d.ts +7 -0
- package/dist/appContext/AppContextProvider.d.ts.map +1 -0
- package/dist/appContext/index.d.ts +2 -0
- package/dist/appContext/index.d.ts.map +1 -0
- package/dist/appointments/AppointmentsTable.d.ts +5 -0
- package/dist/appointments/AppointmentsTable.d.ts.map +1 -0
- package/dist/appointments/components/AppointmentTabContent.d.ts +23 -0
- package/dist/appointments/components/AppointmentTabContent.d.ts.map +1 -0
- package/dist/appointments/components/PastAppointments.d.ts +18 -0
- package/dist/appointments/components/PastAppointments.d.ts.map +1 -0
- package/dist/appointments/components/UpcomingAppointments.d.ts +18 -0
- package/dist/appointments/components/UpcomingAppointments.d.ts.map +1 -0
- package/dist/appointments/components/__tests__/appointmentComponentTestHelper.d.ts +19 -0
- package/dist/appointments/components/__tests__/appointmentComponentTestHelper.d.ts.map +1 -0
- package/dist/appointments/constants.d.ts +5 -0
- package/dist/appointments/constants.d.ts.map +1 -0
- package/dist/appointments/hooks/useAppointmentQuery.d.ts +10 -0
- package/dist/appointments/hooks/useAppointmentQuery.d.ts.map +1 -0
- package/dist/appointments/hooks/useFormattedAppointments.d.ts +9 -0
- package/dist/appointments/hooks/useFormattedAppointments.d.ts.map +1 -0
- package/dist/appointments/hooks/usePaginatedAppointments.d.ts +20 -0
- package/dist/appointments/hooks/usePaginatedAppointments.d.ts.map +1 -0
- package/dist/appointments/index.d.ts +2 -0
- package/dist/appointments/index.d.ts.map +1 -0
- package/dist/appointments/models.d.ts +13 -0
- package/dist/appointments/models.d.ts.map +1 -0
- package/dist/appointments/utils.d.ts +6 -0
- package/dist/appointments/utils.d.ts.map +1 -0
- package/dist/commandPalette/CommandPalette.d.ts +3 -0
- package/dist/commandPalette/CommandPalette.d.ts.map +1 -0
- package/dist/commandPalette/CommandPaletteContext.d.ts +12 -0
- package/dist/commandPalette/CommandPaletteContext.d.ts.map +1 -0
- package/dist/commandPalette/CommandPaletteProvider.d.ts +13 -0
- package/dist/commandPalette/CommandPaletteProvider.d.ts.map +1 -0
- package/dist/commandPalette/PatientCommandItem.d.ts +12 -0
- package/dist/commandPalette/PatientCommandItem.d.ts.map +1 -0
- package/dist/commandPalette/index.d.ts +5 -0
- package/dist/commandPalette/index.d.ts.map +1 -0
- package/dist/commandPalette/models.d.ts +40 -0
- package/dist/commandPalette/models.d.ts.map +1 -0
- package/dist/commandPalette/useCommandPalette.d.ts +3 -0
- package/dist/commandPalette/useCommandPalette.d.ts.map +1 -0
- package/dist/commandPalette/useCommandPaletteKeyboard.d.ts +3 -0
- package/dist/commandPalette/useCommandPaletteKeyboard.d.ts.map +1 -0
- package/dist/commandPalette/useCommandPaletteSearch.d.ts +10 -0
- package/dist/commandPalette/useCommandPaletteSearch.d.ts.map +1 -0
- package/dist/commandPalette/useDebounce.d.ts +2 -0
- package/dist/commandPalette/useDebounce.d.ts.map +1 -0
- package/dist/commandPalette/utils.d.ts +24 -0
- package/dist/commandPalette/utils.d.ts.map +1 -0
- package/dist/conditions/ConditionsTabContent.d.ts +21 -0
- package/dist/conditions/ConditionsTabContent.d.ts.map +1 -0
- package/dist/conditions/ConditionsTable.d.ts +2 -5
- package/dist/conditions/ConditionsTable.d.ts.map +1 -1
- package/dist/conditions/index.d.ts +1 -1
- package/dist/conditions/index.d.ts.map +1 -1
- package/dist/conditions/models.d.ts +1 -0
- package/dist/conditions/models.d.ts.map +1 -1
- package/dist/conditions/utils.d.ts.map +1 -1
- package/dist/configProvider/createConfigHook.d.ts +3 -0
- package/dist/configProvider/createConfigHook.d.ts.map +1 -0
- package/dist/configProvider/createConfigProvider.d.ts +21 -0
- package/dist/configProvider/createConfigProvider.d.ts.map +1 -0
- package/dist/configProvider/index.d.ts +3 -0
- package/dist/configProvider/index.d.ts.map +1 -0
- package/dist/confirmationModal/ConfirmationModal.d.ts +16 -0
- package/dist/confirmationModal/ConfirmationModal.d.ts.map +1 -0
- package/dist/diagnoses/DiagnosesTable.d.ts +2 -1
- package/dist/diagnoses/DiagnosesTable.d.ts.map +1 -1
- package/dist/documentPrintButton/DocumentPrintButton.d.ts +20 -0
- package/dist/documentPrintButton/DocumentPrintButton.d.ts.map +1 -0
- package/dist/documentPrintButton/index.d.ts +3 -0
- package/dist/documentPrintButton/index.d.ts.map +1 -0
- package/dist/documentPrintButton/printViaIframe.d.ts +2 -0
- package/dist/documentPrintButton/printViaIframe.d.ts.map +1 -0
- package/dist/documentUpload/DocumentUpload.d.ts +5 -0
- package/dist/documentUpload/DocumentUpload.d.ts.map +1 -0
- package/dist/documentUpload/constants.d.ts +3 -0
- package/dist/documentUpload/constants.d.ts.map +1 -0
- package/dist/documentUpload/index.d.ts +5 -0
- package/dist/documentUpload/index.d.ts.map +1 -0
- package/dist/documentUpload/models.d.ts +16 -0
- package/dist/documentUpload/models.d.ts.map +1 -0
- package/dist/documentUpload/renderDocumentTile.d.ts +9 -0
- package/dist/documentUpload/renderDocumentTile.d.ts.map +1 -0
- package/dist/documentUpload/utils.d.ts +2 -0
- package/dist/documentUpload/utils.d.ts.map +1 -0
- package/dist/documents/DocumentsTable.d.ts +5 -0
- package/dist/documents/DocumentsTable.d.ts.map +1 -0
- package/dist/documents/constants.d.ts +2 -0
- package/dist/documents/constants.d.ts.map +1 -0
- package/dist/documents/index.d.ts +2 -0
- package/dist/documents/index.d.ts.map +1 -0
- package/dist/documents/utils.d.ts +7 -0
- package/dist/documents/utils.d.ts.map +1 -0
- package/dist/forms/FormsTable.d.ts +6 -0
- package/dist/forms/FormsTable.d.ts.map +1 -0
- package/dist/forms/index.d.ts +2 -0
- package/dist/forms/index.d.ts.map +1 -0
- package/dist/forms/models.d.ts +13 -0
- package/dist/forms/models.d.ts.map +1 -0
- package/dist/genericServiceRequest/GenericServiceRequestTable.d.ts +10 -0
- package/dist/genericServiceRequest/GenericServiceRequestTable.d.ts.map +1 -0
- package/dist/genericServiceRequest/__tests__/__mocks__/serviceRequestMocks.d.ts +15 -0
- package/dist/genericServiceRequest/__tests__/__mocks__/serviceRequestMocks.d.ts.map +1 -0
- package/dist/genericServiceRequest/index.d.ts +2 -0
- package/dist/genericServiceRequest/index.d.ts.map +1 -0
- package/dist/genericServiceRequest/models.d.ts +18 -0
- package/dist/genericServiceRequest/models.d.ts.map +1 -0
- package/dist/genericServiceRequest/utils.d.ts +38 -0
- package/dist/genericServiceRequest/utils.d.ts.map +1 -0
- package/dist/hooks/usePatientPhoto.d.ts +10 -0
- package/dist/hooks/usePatientPhoto.d.ts.map +1 -0
- package/dist/immunizationHistory/ImmunizationHistory.d.ts +5 -0
- package/dist/immunizationHistory/ImmunizationHistory.d.ts.map +1 -0
- package/dist/immunizationHistory/__tests__/__mocks__/immunizationMocks.d.ts +6 -0
- package/dist/immunizationHistory/__tests__/__mocks__/immunizationMocks.d.ts.map +1 -0
- package/dist/immunizationHistory/components/AdministeredTab.d.ts +9 -0
- package/dist/immunizationHistory/components/AdministeredTab.d.ts.map +1 -0
- package/dist/immunizationHistory/components/NotAdministeredTab.d.ts +9 -0
- package/dist/immunizationHistory/components/NotAdministeredTab.d.ts.map +1 -0
- package/dist/immunizationHistory/constants.d.ts +10 -0
- package/dist/immunizationHistory/constants.d.ts.map +1 -0
- package/dist/immunizationHistory/index.d.ts +2 -0
- package/dist/immunizationHistory/index.d.ts.map +1 -0
- package/dist/immunizationHistory/model.d.ts +48 -0
- package/dist/immunizationHistory/model.d.ts.map +1 -0
- package/dist/immunizationHistory/utils.d.ts +13 -0
- package/dist/immunizationHistory/utils.d.ts.map +1 -0
- package/dist/index-BqbZxHvD.js +114862 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +29 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +63 -81397
- package/dist/labinvestigation/AttachmentViewer.d.ts +10 -0
- package/dist/labinvestigation/AttachmentViewer.d.ts.map +1 -0
- package/dist/labinvestigation/LabInvestigation.d.ts +2 -1
- package/dist/labinvestigation/LabInvestigation.d.ts.map +1 -1
- package/dist/labinvestigation/LabInvestigationItem.d.ts +4 -2
- package/dist/labinvestigation/LabInvestigationItem.d.ts.map +1 -1
- package/dist/labinvestigation/models.d.ts +41 -0
- package/dist/labinvestigation/models.d.ts.map +1 -0
- package/dist/labinvestigation/utils.d.ts +34 -0
- package/dist/labinvestigation/utils.d.ts.map +1 -0
- package/dist/location/LocationContext.d.ts +13 -0
- package/dist/location/LocationContext.d.ts.map +1 -0
- package/dist/location/LocationProvider.d.ts +7 -0
- package/dist/location/LocationProvider.d.ts.map +1 -0
- package/dist/location/LocationSelector.d.ts +3 -0
- package/dist/location/LocationSelector.d.ts.map +1 -0
- package/dist/location/__tests__/__mocks__/LocationSelectorMocks.d.ts +14 -0
- package/dist/location/__tests__/__mocks__/LocationSelectorMocks.d.ts.map +1 -0
- package/dist/location/index.d.ts +4 -0
- package/dist/location/index.d.ts.map +1 -0
- package/dist/medications/MedicationsTable.d.ts +2 -1
- package/dist/medications/MedicationsTable.d.ts.map +1 -1
- package/dist/medications/__tests__/__mocks__/actionsMocks.d.ts +4 -0
- package/dist/medications/__tests__/__mocks__/actionsMocks.d.ts.map +1 -0
- package/dist/medications/__tests__/__mocks__/medicationMocks.d.ts +10 -0
- package/dist/medications/__tests__/__mocks__/medicationMocks.d.ts.map +1 -0
- package/dist/medications/components/Actions.d.ts +12 -0
- package/dist/medications/components/Actions.d.ts.map +1 -0
- package/dist/medications/components/actionHandlers.d.ts +4 -0
- package/dist/medications/components/actionHandlers.d.ts.map +1 -0
- package/dist/medications/constants.d.ts +8 -0
- package/dist/medications/constants.d.ts.map +1 -0
- package/dist/medications/index.d.ts +1 -0
- package/dist/medications/index.d.ts.map +1 -1
- package/dist/medications/models.d.ts +30 -0
- package/dist/medications/models.d.ts.map +1 -0
- package/dist/medications/utils.d.ts +4 -11
- package/dist/medications/utils.d.ts.map +1 -1
- package/dist/observations/Observations.d.ts +12 -0
- package/dist/observations/Observations.d.ts.map +1 -0
- package/dist/observations/__mocks__/observationTestData.d.ts +176 -0
- package/dist/observations/__mocks__/observationTestData.d.ts.map +1 -0
- package/dist/observations/components/ObsByEncounter.d.ts +10 -0
- package/dist/observations/components/ObsByEncounter.d.ts.map +1 -0
- package/dist/observations/index.d.ts +5 -0
- package/dist/observations/index.d.ts.map +1 -0
- package/dist/observations/models.d.ts +47 -0
- package/dist/observations/models.d.ts.map +1 -0
- package/dist/observations/utils.d.ts +16 -0
- package/dist/observations/utils.d.ts.map +1 -0
- package/dist/observationsRenderer/ObservationsRenderer.d.ts +18 -0
- package/dist/observationsRenderer/ObservationsRenderer.d.ts.map +1 -0
- package/dist/observationsRenderer/index.d.ts +3 -0
- package/dist/observationsRenderer/index.d.ts.map +1 -0
- package/dist/patientDetails/PatientDetails.d.ts.map +1 -1
- package/dist/patientDetails/__tests__/__mocks__/patientDetailsMocks.d.ts +4 -0
- package/dist/patientDetails/__tests__/__mocks__/patientDetailsMocks.d.ts.map +1 -0
- package/dist/patientDetails/models.d.ts +7 -0
- package/dist/patientDetails/models.d.ts.map +1 -0
- package/dist/patientDetails/utils.d.ts +4 -0
- package/dist/patientDetails/utils.d.ts.map +1 -0
- package/dist/patientPrograms/PatientProgramsTable.d.ts +8 -0
- package/dist/patientPrograms/PatientProgramsTable.d.ts.map +1 -0
- package/dist/patientPrograms/__tests__/__mocks__/patientProgramMocks.d.ts +3 -0
- package/dist/patientPrograms/__tests__/__mocks__/patientProgramMocks.d.ts.map +1 -0
- package/dist/patientPrograms/constants.d.ts +3 -0
- package/dist/patientPrograms/constants.d.ts.map +1 -0
- package/dist/patientPrograms/index.d.ts +2 -0
- package/dist/patientPrograms/index.d.ts.map +1 -0
- package/dist/patientPrograms/model.d.ts +24 -0
- package/dist/patientPrograms/model.d.ts.map +1 -0
- package/dist/patientPrograms/utils.d.ts +10 -0
- package/dist/patientPrograms/utils.d.ts.map +1 -0
- package/dist/programDetails/ProgramDetails.d.ts +15 -0
- package/dist/programDetails/ProgramDetails.d.ts.map +1 -0
- package/dist/programDetails/__mocks__/mocks.d.ts +3 -0
- package/dist/programDetails/__mocks__/mocks.d.ts.map +1 -0
- package/dist/programDetails/constants.d.ts +4 -0
- package/dist/programDetails/constants.d.ts.map +1 -0
- package/dist/programDetails/index.d.ts +2 -0
- package/dist/programDetails/index.d.ts.map +1 -0
- package/dist/programDetails/model.d.ts +21 -0
- package/dist/programDetails/model.d.ts.map +1 -0
- package/dist/programDetails/utils.d.ts +6 -0
- package/dist/programDetails/utils.d.ts.map +1 -0
- package/dist/radiologyInvestigation/ExpandedContentForPrimaryOrder.d.ts +13 -0
- package/dist/radiologyInvestigation/ExpandedContentForPrimaryOrder.d.ts.map +1 -0
- package/dist/radiologyInvestigation/QualityAssessment.d.ts +8 -0
- package/dist/radiologyInvestigation/QualityAssessment.d.ts.map +1 -0
- package/dist/radiologyInvestigation/RadiologyInvestigationTable.d.ts +3 -1
- package/dist/radiologyInvestigation/RadiologyInvestigationTable.d.ts.map +1 -1
- package/dist/radiologyInvestigation/__mocks__/mocks.d.ts +16 -16
- package/dist/radiologyInvestigation/__mocks__/mocks.d.ts.map +1 -1
- package/dist/radiologyInvestigation/index.d.ts +1 -1
- package/dist/radiologyInvestigation/index.d.ts.map +1 -1
- package/dist/radiologyInvestigation/models.d.ts +22 -0
- package/dist/radiologyInvestigation/models.d.ts.map +1 -0
- package/dist/radiologyInvestigation/utils.d.ts +12 -3
- package/dist/radiologyInvestigation/utils.d.ts.map +1 -1
- package/dist/radiologyInvestigationReport/RadiologyInvestigationReport.d.ts +7 -0
- package/dist/radiologyInvestigationReport/RadiologyInvestigationReport.d.ts.map +1 -0
- package/dist/radiologyInvestigationReport/index.d.ts +2 -0
- package/dist/radiologyInvestigationReport/index.d.ts.map +1 -0
- package/dist/registry/index.d.ts +11 -0
- package/dist/registry/index.d.ts.map +1 -0
- package/dist/registry/model.d.ts +28 -0
- package/dist/registry/model.d.ts.map +1 -0
- package/dist/registry/widgetMap.d.ts +3 -0
- package/dist/registry/widgetMap.d.ts.map +1 -0
- package/dist/search/commonSearch/CommonSearchWidget.d.ts +4 -0
- package/dist/search/commonSearch/CommonSearchWidget.d.ts.map +1 -0
- package/dist/search/commonSearch/__tests__/__mocks__/commonSearchWidgetMocks.d.ts +15 -0
- package/dist/search/commonSearch/__tests__/__mocks__/commonSearchWidgetMocks.d.ts.map +1 -0
- package/dist/search/commonSearch/__tests__/__mocks__/criterionRowMocks.d.ts +5 -0
- package/dist/search/commonSearch/__tests__/__mocks__/criterionRowMocks.d.ts.map +1 -0
- package/dist/search/commonSearch/__tests__/__mocks__/dateCriterionInputMocks.d.ts +7 -0
- package/dist/search/commonSearch/__tests__/__mocks__/dateCriterionInputMocks.d.ts.map +1 -0
- package/dist/search/commonSearch/__tests__/__mocks__/lookupCriterionInputMocks.d.ts +13 -0
- package/dist/search/commonSearch/__tests__/__mocks__/lookupCriterionInputMocks.d.ts.map +1 -0
- package/dist/search/commonSearch/__tests__/__mocks__/numericCriterionInputMocks.d.ts +7 -0
- package/dist/search/commonSearch/__tests__/__mocks__/numericCriterionInputMocks.d.ts.map +1 -0
- package/dist/search/commonSearch/__tests__/__mocks__/optionsCriterionInputMocks.d.ts +4 -0
- package/dist/search/commonSearch/__tests__/__mocks__/optionsCriterionInputMocks.d.ts.map +1 -0
- package/dist/search/commonSearch/__tests__/__mocks__/resultsTableMocks.d.ts +25 -0
- package/dist/search/commonSearch/__tests__/__mocks__/resultsTableMocks.d.ts.map +1 -0
- package/dist/search/commonSearch/__tests__/__mocks__/searchFormMocks.d.ts +15 -0
- package/dist/search/commonSearch/__tests__/__mocks__/searchFormMocks.d.ts.map +1 -0
- package/dist/search/commonSearch/__tests__/__mocks__/searchSummaryMocks.d.ts +14 -0
- package/dist/search/commonSearch/__tests__/__mocks__/searchSummaryMocks.d.ts.map +1 -0
- package/dist/search/commonSearch/__tests__/__mocks__/textCriterionInputMocks.d.ts +4 -0
- package/dist/search/commonSearch/__tests__/__mocks__/textCriterionInputMocks.d.ts.map +1 -0
- package/dist/search/commonSearch/__tests__/__mocks__/utilsMocks.d.ts +34 -0
- package/dist/search/commonSearch/__tests__/__mocks__/utilsMocks.d.ts.map +1 -0
- package/dist/search/commonSearch/components/CriterionRow.d.ts +12 -0
- package/dist/search/commonSearch/components/CriterionRow.d.ts.map +1 -0
- package/dist/search/commonSearch/components/DateCriterionInput.d.ts +11 -0
- package/dist/search/commonSearch/components/DateCriterionInput.d.ts.map +1 -0
- package/dist/search/commonSearch/components/LookupCriterionInput.d.ts +10 -0
- package/dist/search/commonSearch/components/LookupCriterionInput.d.ts.map +1 -0
- package/dist/search/commonSearch/components/NumericCriterionInput.d.ts +11 -0
- package/dist/search/commonSearch/components/NumericCriterionInput.d.ts.map +1 -0
- package/dist/search/commonSearch/components/OptionsCriterionInput.d.ts +10 -0
- package/dist/search/commonSearch/components/OptionsCriterionInput.d.ts.map +1 -0
- package/dist/search/commonSearch/components/ResultsTable.d.ts +9 -0
- package/dist/search/commonSearch/components/ResultsTable.d.ts.map +1 -0
- package/dist/search/commonSearch/components/SearchForm.d.ts +12 -0
- package/dist/search/commonSearch/components/SearchForm.d.ts.map +1 -0
- package/dist/search/commonSearch/components/SearchSummary.d.ts +7 -0
- package/dist/search/commonSearch/components/SearchSummary.d.ts.map +1 -0
- package/dist/search/commonSearch/components/TextCriterionInput.d.ts +10 -0
- package/dist/search/commonSearch/components/TextCriterionInput.d.ts.map +1 -0
- package/dist/search/commonSearch/components/index.d.ts +11 -0
- package/dist/search/commonSearch/components/index.d.ts.map +1 -0
- package/dist/search/commonSearch/constants.d.ts +5 -0
- package/dist/search/commonSearch/constants.d.ts.map +1 -0
- package/dist/search/commonSearch/index.d.ts +2 -0
- package/dist/search/commonSearch/index.d.ts.map +1 -0
- package/dist/search/commonSearch/models.d.ts +134 -0
- package/dist/search/commonSearch/models.d.ts.map +1 -0
- package/dist/search/commonSearch/schema.json.d.ts +300 -0
- package/dist/search/commonSearch/sourceMaps.d.ts +3 -0
- package/dist/search/commonSearch/sourceMaps.d.ts.map +1 -0
- package/dist/search/commonSearch/utils.d.ts +37 -0
- package/dist/search/commonSearch/utils.d.ts.map +1 -0
- package/dist/search/index.d.ts +4 -0
- package/dist/search/index.d.ts.map +1 -0
- package/dist/search/models.d.ts +5 -0
- package/dist/search/models.d.ts.map +1 -0
- package/dist/search/registry/index.d.ts +3 -0
- package/dist/search/registry/index.d.ts.map +1 -0
- package/dist/search/registry/models.d.ts +6 -0
- package/dist/search/registry/models.d.ts.map +1 -0
- package/dist/search/registry/registry.d.ts +9 -0
- package/dist/search/registry/registry.d.ts.map +1 -0
- package/dist/search/searchPatient/SearchPatient.d.ts +4 -0
- package/dist/search/searchPatient/SearchPatient.d.ts.map +1 -0
- package/dist/search/searchPatient/__mocks__/mocks.d.ts +10 -0
- package/dist/search/searchPatient/__mocks__/mocks.d.ts.map +1 -0
- package/dist/search/searchPatient/actions/appointmentSearchResultActionHandler.d.ts +13 -0
- package/dist/search/searchPatient/actions/appointmentSearchResultActionHandler.d.ts.map +1 -0
- package/dist/search/searchPatient/components/PatientSearchResults.d.ts +15 -0
- package/dist/search/searchPatient/components/PatientSearchResults.d.ts.map +1 -0
- package/dist/search/searchPatient/components/SearchPatientInput.d.ts +20 -0
- package/dist/search/searchPatient/components/SearchPatientInput.d.ts.map +1 -0
- package/dist/search/searchPatient/index.d.ts +3 -0
- package/dist/search/searchPatient/index.d.ts.map +1 -0
- package/dist/search/searchPatient/models.d.ts +7 -0
- package/dist/search/searchPatient/models.d.ts.map +1 -0
- package/dist/search/searchPatient/schema.json.d.ts +188 -0
- package/dist/{searchPatient → search/searchPatient}/strategies/AppointmentSearchStrategy.d.ts +1 -1
- package/dist/search/searchPatient/strategies/AppointmentSearchStrategy.d.ts.map +1 -0
- package/dist/{searchPatient → search/searchPatient}/strategies/AttributeSearchStrategy.d.ts +2 -2
- package/dist/search/searchPatient/strategies/AttributeSearchStrategy.d.ts.map +1 -0
- package/dist/{searchPatient → search/searchPatient}/strategies/NameOrIdSearchStrategy.d.ts +7 -3
- package/dist/search/searchPatient/strategies/NameOrIdSearchStrategy.d.ts.map +1 -0
- package/dist/{searchPatient → search/searchPatient/strategies}/SearchStrategy.interface.d.ts +2 -1
- package/dist/search/searchPatient/strategies/SearchStrategy.interface.d.ts.map +1 -0
- package/dist/{searchPatient → search/searchPatient}/strategies/SearchStrategyRegistry.d.ts +1 -1
- package/dist/search/searchPatient/strategies/SearchStrategyRegistry.d.ts.map +1 -0
- package/dist/search/searchPatient/utils.d.ts +8 -0
- package/dist/search/searchPatient/utils.d.ts.map +1 -0
- package/dist/tasks/TaskList.d.ts +9 -0
- package/dist/tasks/TaskList.d.ts.map +1 -0
- package/dist/tasks/__tests__/__mocks__/configMocks.d.ts +9 -0
- package/dist/tasks/__tests__/__mocks__/configMocks.d.ts.map +1 -0
- package/dist/tasks/__tests__/__mocks__/taskActionsMocks.d.ts +32 -0
- package/dist/tasks/__tests__/__mocks__/taskActionsMocks.d.ts.map +1 -0
- package/dist/tasks/__tests__/__mocks__/taskListMocks.d.ts +49 -0
- package/dist/tasks/__tests__/__mocks__/taskListMocks.d.ts.map +1 -0
- package/dist/tasks/actions/TaskActions.d.ts +9 -0
- package/dist/tasks/actions/TaskActions.d.ts.map +1 -0
- package/dist/tasks/actions/actionHandlers.d.ts +4 -0
- package/dist/tasks/actions/actionHandlers.d.ts.map +1 -0
- package/dist/tasks/actions/index.d.ts +3 -0
- package/dist/tasks/actions/index.d.ts.map +1 -0
- package/dist/tasks/constants.d.ts +12 -0
- package/dist/tasks/constants.d.ts.map +1 -0
- package/dist/tasks/index.d.ts +2 -0
- package/dist/tasks/index.d.ts.map +1 -0
- package/dist/tasks/models.d.ts +38 -0
- package/dist/tasks/models.d.ts.map +1 -0
- package/dist/tasks/utils.d.ts +10 -0
- package/dist/tasks/utils.d.ts.map +1 -0
- package/dist/tasks/views/TaskViewResults.d.ts +9 -0
- package/dist/tasks/views/TaskViewResults.d.ts.map +1 -0
- package/dist/tasks/views/ViewFormData/ViewFormData.d.ts +12 -0
- package/dist/tasks/views/ViewFormData/ViewFormData.d.ts.map +1 -0
- package/dist/tasks/views/ViewFormData/index.d.ts +2 -0
- package/dist/tasks/views/ViewFormData/index.d.ts.map +1 -0
- package/dist/tasks/views/index.d.ts +4 -0
- package/dist/tasks/views/index.d.ts.map +1 -0
- package/dist/tasks/views/viewHandlers.d.ts +4 -0
- package/dist/tasks/views/viewHandlers.d.ts.map +1 -0
- package/dist/userGlobalAction/UserGlobalAction.d.ts +5 -0
- package/dist/userGlobalAction/UserGlobalAction.d.ts.map +1 -0
- package/dist/userGlobalAction/actions/changePassword/index.d.ts +3 -0
- package/dist/userGlobalAction/actions/changePassword/index.d.ts.map +1 -0
- package/dist/userGlobalAction/actions/index.d.ts +3 -0
- package/dist/userGlobalAction/actions/index.d.ts.map +1 -0
- package/dist/userGlobalAction/actions/logout/index.d.ts +3 -0
- package/dist/userGlobalAction/actions/logout/index.d.ts.map +1 -0
- package/dist/userGlobalAction/constants.d.ts +2 -0
- package/dist/userGlobalAction/constants.d.ts.map +1 -0
- package/dist/userGlobalAction/index.d.ts +4 -0
- package/dist/userGlobalAction/index.d.ts.map +1 -0
- package/dist/userGlobalAction/models.d.ts +9 -0
- package/dist/userGlobalAction/models.d.ts.map +1 -0
- package/dist/userGlobalAction/registry/context.d.ts +10 -0
- package/dist/userGlobalAction/registry/context.d.ts.map +1 -0
- package/dist/userGlobalAction/registry/hook.d.ts +2 -0
- package/dist/userGlobalAction/registry/hook.d.ts.map +1 -0
- package/dist/userGlobalAction/registry/index.d.ts +3 -0
- package/dist/userGlobalAction/registry/index.d.ts.map +1 -0
- package/dist/userGlobalAction/registry/provider.d.ts +7 -0
- package/dist/userGlobalAction/registry/provider.d.ts.map +1 -0
- package/dist/userPrivileges/UserPrivilegeProvider.d.ts.map +1 -1
- package/dist/userPrivileges/consultationPadPrivileges.d.ts +18 -0
- package/dist/userPrivileges/consultationPadPrivileges.d.ts.map +1 -0
- package/dist/userPrivileges/useHasPrivilege.d.ts +2 -0
- package/dist/userPrivileges/useHasPrivilege.d.ts.map +1 -0
- package/dist/utils/Investigations.d.ts +18 -0
- package/dist/utils/Investigations.d.ts.map +1 -0
- package/dist/utils/Observations.d.ts +14 -0
- package/dist/utils/Observations.d.ts.map +1 -0
- package/dist/utils/urlUtils.d.ts +2 -0
- package/dist/utils/urlUtils.d.ts.map +1 -0
- package/dist/vitalFlowSheet/VitalFlowSheet.d.ts +4 -1
- package/dist/vitalFlowSheet/VitalFlowSheet.d.ts.map +1 -1
- package/package.json +9 -11
- package/dist/allergies/useAllergies.d.ts +0 -14
- package/dist/allergies/useAllergies.d.ts.map +0 -1
- package/dist/diagnoses/useDiagnoses.d.ts +0 -14
- package/dist/diagnoses/useDiagnoses.d.ts.map +0 -1
- package/dist/hooks/useActivePractitioner.d.ts +0 -15
- package/dist/hooks/useActivePractitioner.d.ts.map +0 -1
- package/dist/labinvestigation/useLabInvestigations.d.ts +0 -11
- package/dist/labinvestigation/useLabInvestigations.d.ts.map +0 -1
- package/dist/medications/useMedicationRequest.d.ts +0 -14
- package/dist/medications/useMedicationRequest.d.ts.map +0 -1
- package/dist/patientDetails/usePatient.d.ts +0 -14
- package/dist/patientDetails/usePatient.d.ts.map +0 -1
- package/dist/radiologyInvestigation/useRadiologyInvestigation.d.ts +0 -14
- package/dist/radiologyInvestigation/useRadiologyInvestigation.d.ts.map +0 -1
- package/dist/searchPatient/SearchPatient.d.ts +0 -9
- package/dist/searchPatient/SearchPatient.d.ts.map +0 -1
- package/dist/searchPatient/SearchStrategy.interface.d.ts.map +0 -1
- package/dist/searchPatient/index.d.ts +0 -2
- package/dist/searchPatient/index.d.ts.map +0 -1
- package/dist/searchPatient/strategies/AppointmentSearchStrategy.d.ts.map +0 -1
- package/dist/searchPatient/strategies/AttributeSearchStrategy.d.ts.map +0 -1
- package/dist/searchPatient/strategies/NameOrIdSearchStrategy.d.ts.map +0 -1
- package/dist/searchPatient/strategies/SearchStrategyRegistry.d.ts.map +0 -1
- /package/{LICENCE → LICENSE} +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export interface EncounterDetails {
|
|
2
|
+
id: string;
|
|
3
|
+
type: string;
|
|
4
|
+
date: string;
|
|
5
|
+
provider?: string;
|
|
6
|
+
location?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ReferenceRange {
|
|
9
|
+
low?: {
|
|
10
|
+
value: number;
|
|
11
|
+
unit?: string;
|
|
12
|
+
};
|
|
13
|
+
high?: {
|
|
14
|
+
value: number;
|
|
15
|
+
unit?: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface ObservationValue {
|
|
19
|
+
value: string | number | boolean;
|
|
20
|
+
unit?: string;
|
|
21
|
+
type: 'quantity' | 'codeable' | 'string' | 'boolean' | 'integer' | 'range' | 'ratio' | 'time' | 'dateTime' | 'period' | 'sampledData';
|
|
22
|
+
referenceRange?: ReferenceRange;
|
|
23
|
+
isAbnormal?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface ExtractedObservation {
|
|
26
|
+
id: string;
|
|
27
|
+
display: string;
|
|
28
|
+
observationValue?: ObservationValue;
|
|
29
|
+
effectiveDateTime?: string;
|
|
30
|
+
issued?: string;
|
|
31
|
+
encounter?: EncounterDetails;
|
|
32
|
+
members?: ExtractedObservation[];
|
|
33
|
+
sortId?: string;
|
|
34
|
+
conceptId?: string;
|
|
35
|
+
comment?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface ExtractedObservationsResult {
|
|
38
|
+
observations: ExtractedObservation[];
|
|
39
|
+
groupedObservations: ExtractedObservation[];
|
|
40
|
+
}
|
|
41
|
+
export interface ObservationsByEncounter {
|
|
42
|
+
encounterId: string;
|
|
43
|
+
encounterDetails?: EncounterDetails;
|
|
44
|
+
observations: ExtractedObservation[];
|
|
45
|
+
groupedObservations: ExtractedObservation[];
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/observations/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,IAAI,CAAC,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EACA,UAAU,GACV,UAAU,GACV,QAAQ,GACR,SAAS,GACT,SAAS,GACT,OAAO,GACP,OAAO,GACP,MAAM,GACN,UAAU,GACV,QAAQ,GACR,aAAa,CAAC;IAClB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,2BAA2B;IAC1C,YAAY,EAAE,oBAAoB,EAAE,CAAC;IACrC,mBAAmB,EAAE,oBAAoB,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,YAAY,EAAE,oBAAoB,EAAE,CAAC;IACrC,mBAAmB,EAAE,oBAAoB,EAAE,CAAC;CAC7C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Observation, Bundle, Encounter } from 'fhir/r4';
|
|
2
|
+
import { EncounterDetails, ExtractedObservation, ExtractedObservationsResult, ObservationsByEncounter } from './models';
|
|
3
|
+
export declare const extractFormFieldPath: (observation: Observation | undefined) => string | undefined;
|
|
4
|
+
export declare const extractFormName: (observation: Observation | undefined) => string | undefined;
|
|
5
|
+
export declare const formatEncounterTitle: (encounterDetails: EncounterDetails | undefined, t: (key: string) => string) => string;
|
|
6
|
+
export declare const formatObservationValue: (observation: ExtractedObservation, t?: (key: string) => string, conceptDatatypeMap?: Record<string, string>) => string;
|
|
7
|
+
export declare const transformObservationToRowCell: (observation: ExtractedObservation, index: number, t?: (key: string) => string) => {
|
|
8
|
+
index: number;
|
|
9
|
+
header: string;
|
|
10
|
+
value: string;
|
|
11
|
+
provider: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
export declare function extractObservationsFromBundle(bundle: Bundle<Observation | Encounter>): ExtractedObservationsResult;
|
|
14
|
+
export declare function groupObservationsByEncounter(result: ExtractedObservationsResult): ObservationsByEncounter[];
|
|
15
|
+
export declare function sortObservationsByEncounterDate(observations: ObservationsByEncounter[]): ObservationsByEncounter[];
|
|
16
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/observations/utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzD,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,2BAA2B,EAC3B,uBAAuB,EACxB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,oBAAoB,GAC/B,aAAa,WAAW,GAAG,SAAS,KACnC,MAAM,GAAG,SAQX,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,aAAa,WAAW,GAAG,SAAS,KACnC,MAAM,GAAG,SAYX,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,kBAAkB,gBAAgB,GAAG,SAAS,EAC9C,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,KACzB,MAMF,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,aAAa,oBAAoB,EACjC,IAAI,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,EAC3B,qBAAqB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC1C,MAsCF,CAAC;AAoDF,eAAO,MAAM,6BAA6B,GACxC,aAAa,oBAAoB,EACjC,OAAO,MAAM,EACb,IAAI,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM;;;;;CAQ5B,CAAC;AAsDF,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,MAAM,CAAC,WAAW,GAAG,SAAS,CAAC,GACtC,2BAA2B,CAuC7B;AAED,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,2BAA2B,GAClC,uBAAuB,EAAE,CA8C3B;AAED,wBAAgB,+BAA+B,CAC7C,YAAY,EAAE,uBAAuB,EAAE,GACtC,uBAAuB,EAAE,CAW3B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Observation } from 'fhir/r4';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export interface ObservationsRendererProps {
|
|
4
|
+
observations: Observation[];
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
isError?: boolean;
|
|
7
|
+
errorMessage?: string;
|
|
8
|
+
emptyStateMessage?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
testIdPrefix?: string;
|
|
11
|
+
hideThumbnail?: boolean;
|
|
12
|
+
controlOrder?: string[];
|
|
13
|
+
sectionMap?: Record<string, string>;
|
|
14
|
+
conceptDatatypeMap?: Record<string, string>;
|
|
15
|
+
}
|
|
16
|
+
export declare const ObservationsRenderer: React.FC<ObservationsRendererProps>;
|
|
17
|
+
export default ObservationsRenderer;
|
|
18
|
+
//# sourceMappingURL=ObservationsRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObservationsRenderer.d.ts","sourceRoot":"","sources":["../../src/observationsRenderer/ObservationsRenderer.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAkB,MAAM,OAAO,CAAC;AAYvC,MAAM,WAAW,yBAAyB;IACxC,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7C;AAsPD,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA6JpE,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/observationsRenderer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACvE,YAAY,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PatientDetails.d.ts","sourceRoot":"","sources":["../../src/patientDetails/PatientDetails.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PatientDetails.d.ts","sourceRoot":"","sources":["../../src/patientDetails/PatientDetails.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAQzC,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAoF3B,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patientDetailsMocks.d.ts","sourceRoot":"","sources":["../../../../src/patientDetails/__tests__/__mocks__/patientDetailsMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,eAAO,MAAM,eAAe,EAAE,oBAgB7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,oBAahC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/patientDetails/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,MAAM,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FormattedPatientData } from '@bahmni/services';
|
|
2
|
+
import { PatientDetailsViewModel } from './models';
|
|
3
|
+
export declare function createPatientDetailsViewModel(patient: FormattedPatientData, t: (key: string) => string): PatientDetailsViewModel;
|
|
4
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/patientDetails/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAGrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAsBnD,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,oBAAoB,EAC7B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GACzB,uBAAuB,CAOzB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { WidgetProps } from '../registry/model';
|
|
3
|
+
/**
|
|
4
|
+
* Component to display patient programs using SortableDataTable
|
|
5
|
+
*/
|
|
6
|
+
declare const PatientProgramsTable: React.FC<WidgetProps>;
|
|
7
|
+
export default PatientProgramsTable;
|
|
8
|
+
//# sourceMappingURL=PatientProgramsTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PatientProgramsTable.d.ts","sourceRoot":"","sources":["../../src/patientPrograms/PatientProgramsTable.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAehD;;GAEG;AACH,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAmS/C,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patientProgramMocks.d.ts","sourceRoot":"","sources":["../../../../src/patientPrograms/__tests__/__mocks__/patientProgramMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD,eAAO,MAAM,WAAW,EAAE,uBAYzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/patientPrograms/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAM,EAOhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,EAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/patientPrograms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface representing a formatted program for easier consumption by components
|
|
3
|
+
*/
|
|
4
|
+
export interface PatientProgramViewModel {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly uuid: string;
|
|
7
|
+
readonly programName: string;
|
|
8
|
+
readonly dateEnrolled: string;
|
|
9
|
+
readonly dateCompleted: string | null;
|
|
10
|
+
readonly outcomeName: string | null;
|
|
11
|
+
readonly outcomeDetails: string | null;
|
|
12
|
+
readonly currentStateName: string | null;
|
|
13
|
+
readonly attributes: Record<string, string | Date | null>;
|
|
14
|
+
readonly careManagerDisplay?: string | null;
|
|
15
|
+
}
|
|
16
|
+
export interface ProgramField {
|
|
17
|
+
name: string;
|
|
18
|
+
enableTranslation?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface ProgramNavigationConfigEntry {
|
|
21
|
+
program: string;
|
|
22
|
+
navigationURL: string;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/patientPrograms/model.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;IAC1D,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7C;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ProgramEnrollment } from '@bahmni/services';
|
|
2
|
+
import { EpisodeOfCare } from 'fhir/r4';
|
|
3
|
+
import { PatientProgramViewModel, ProgramField } from './model';
|
|
4
|
+
export declare function extractProgramAttributeNames(fields?: ProgramField[]): string[];
|
|
5
|
+
export declare function createProgramHeaders(fields: ProgramField[], t: (key: string) => string): Array<{
|
|
6
|
+
key: string;
|
|
7
|
+
header: string;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const createPatientProgramViewModal: (program: ProgramEnrollment, programAttributes: string[], episodeOfCare?: EpisodeOfCare) => PatientProgramViewModel;
|
|
10
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/patientPrograms/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEhE,wBAAgB,4BAA4B,CAC1C,MAAM,CAAC,EAAE,YAAY,EAAE,GACtB,MAAM,EAAE,CAKV;AAED,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,YAAY,EAAE,EACtB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GACzB,KAAK,CAAC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAKxC;AAED,eAAO,MAAM,6BAA6B,GACxC,SAAS,iBAAiB,EAC1B,mBAAmB,MAAM,EAAE,EAC3B,gBAAgB,aAAa,KAC5B,uBAmBD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ProgramField } from './model';
|
|
3
|
+
export declare const programsQueryKeys: (programUUID: string) => readonly ["programs", string];
|
|
4
|
+
interface ProgramDetailsProps {
|
|
5
|
+
programUUID: string;
|
|
6
|
+
config: {
|
|
7
|
+
fields: ProgramField[];
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Component to display programs details
|
|
12
|
+
*/
|
|
13
|
+
declare const ProgramDetails: React.FC<ProgramDetailsProps>;
|
|
14
|
+
export default ProgramDetails;
|
|
15
|
+
//# sourceMappingURL=ProgramDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgramDetails.d.ts","sourceRoot":"","sources":["../../src/programDetails/ProgramDetails.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAA4B,MAAM,OAAO,CAAC;AASjD,OAAO,EAA2B,YAAY,EAAE,MAAM,SAAS,CAAC;AAOhE,eAAO,MAAM,iBAAiB,GAAI,aAAa,MAAM,kCACjB,CAAC;AAmBrC,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE;QACN,MAAM,EAAE,YAAY,EAAE,CAAC;KACxB,CAAC;CACH;AAED;;GAEG;AACH,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAqQjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../src/programDetails/__mocks__/mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,eAAO,MAAM,yBAAyB,EAAE,iBAgOvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/programDetails/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAM,EAOhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,EAAoB,CAAC;AAEhE,eAAO,MAAM,+BAA+B,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/programDetails/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface ProgramDetailsViewModel {
|
|
2
|
+
readonly id: string;
|
|
3
|
+
readonly uuid: string;
|
|
4
|
+
readonly programName: string;
|
|
5
|
+
readonly dateEnrolled: string;
|
|
6
|
+
readonly dateCompleted: string | null;
|
|
7
|
+
readonly outcomeName: string | null;
|
|
8
|
+
readonly outcomeDetails: string | null;
|
|
9
|
+
readonly currentStateName: string | null;
|
|
10
|
+
readonly attributes: Record<string, string | Date | null>;
|
|
11
|
+
readonly careManagerDisplay?: string | null;
|
|
12
|
+
readonly allowedStates: {
|
|
13
|
+
uuid: string;
|
|
14
|
+
display: string;
|
|
15
|
+
}[];
|
|
16
|
+
}
|
|
17
|
+
export interface ProgramField {
|
|
18
|
+
name: string;
|
|
19
|
+
enableTranslation?: boolean;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/programDetails/model.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;IAC1D,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5C,QAAQ,CAAC,aAAa,EAAE;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,EAAE,CAAC;CACL;AACD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ProgramEnrollment } from '@bahmni/services';
|
|
2
|
+
import { EpisodeOfCare } from 'fhir/r4';
|
|
3
|
+
import { ProgramDetailsViewModel, ProgramField } from './model';
|
|
4
|
+
export declare function extractProgramAttributeNames(fields?: ProgramField[]): string[];
|
|
5
|
+
export declare function createProgramDetailsViewModel(enrollment: ProgramEnrollment, programAttributes: string[], episodeOfCare?: EpisodeOfCare): ProgramDetailsViewModel;
|
|
6
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/programDetails/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEhE,wBAAgB,4BAA4B,CAC1C,MAAM,CAAC,EAAE,YAAY,EAAE,GACtB,MAAM,EAAE,CAKV;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,iBAAiB,EAC7B,iBAAiB,EAAE,MAAM,EAAE,EAC3B,aAAa,CAAC,EAAE,aAAa,GAC5B,uBAAuB,CA0BzB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataTableHeader } from '@carbon/react';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { RadiologyInvestigationViewModel } from './models';
|
|
4
|
+
export interface ExpandedContentForPrimaryOrderProps {
|
|
5
|
+
investigation: RadiologyInvestigationViewModel;
|
|
6
|
+
headers: DataTableHeader[];
|
|
7
|
+
renderCell: (row: RadiologyInvestigationViewModel, cellId: string, primaryInvestigation?: RadiologyInvestigationViewModel) => React.ReactNode;
|
|
8
|
+
showLinkedOrders: boolean;
|
|
9
|
+
showReport: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const ExpandedContentForPrimaryOrder: React.FC<ExpandedContentForPrimaryOrderProps>;
|
|
12
|
+
export default ExpandedContentForPrimaryOrder;
|
|
13
|
+
//# sourceMappingURL=ExpandedContentForPrimaryOrder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpandedContentForPrimaryOrder.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/ExpandedContentForPrimaryOrder.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAG3D,MAAM,WAAW,mCAAmC;IAClD,aAAa,EAAE,+BAA+B,CAAC;IAC/C,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,UAAU,EAAE,CACV,GAAG,EAAE,+BAA+B,EACpC,MAAM,EAAE,MAAM,EACd,oBAAoB,CAAC,EAAE,+BAA+B,KACnD,KAAK,CAAC,SAAS,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAAE,CACnD,mCAAmC,CA8DpC,CAAC;AAEF,eAAe,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface QualityAssessmentProps {
|
|
3
|
+
imagingStudyId: string | null;
|
|
4
|
+
onDateLoaded?: (date: string | undefined) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const QualityAssessment: React.FC<QualityAssessmentProps>;
|
|
7
|
+
export default QualityAssessment;
|
|
8
|
+
//# sourceMappingURL=QualityAssessment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QualityAssessment.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/QualityAssessment.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAGlD,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;CACnD;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA8C9D,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { WidgetProps } from '../registry/model';
|
|
3
|
+
export declare const radiologyInvestigationQueryKeys: (patientUUID: string) => readonly ["radiologyInvestigation", string];
|
|
2
4
|
/**
|
|
3
5
|
* Component to display patient radiology investigations grouped by date in accordion format
|
|
4
6
|
* Each accordion item contains an SortableDataTable with radiology investigations for that date
|
|
5
7
|
*/
|
|
6
|
-
declare const RadiologyInvestigationTable: React.FC
|
|
8
|
+
declare const RadiologyInvestigationTable: React.FC<WidgetProps>;
|
|
7
9
|
export default RadiologyInvestigationTable;
|
|
8
10
|
//# sourceMappingURL=RadiologyInvestigationTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadiologyInvestigationTable.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/RadiologyInvestigationTable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadiologyInvestigationTable.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/RadiologyInvestigationTable.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAiBhD,eAAO,MAAM,+BAA+B,GAAI,aAAa,MAAM,gDACjB,CAAC;AAsBnD;;;GAGG;AACH,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAiiBtD,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
1
|
+
import { ServiceRequest, Bundle, ImagingStudy as FhirImagingStudy } from 'fhir/r4';
|
|
2
|
+
import { RadiologyInvestigationViewModel, ImagingStudy } from '../models';
|
|
3
|
+
export declare const mockCategoryUuid = "radiology-uuid-123";
|
|
4
|
+
export declare const mockServiceRequest: ServiceRequest;
|
|
5
|
+
export declare const mockValidBundle: Bundle<ServiceRequest | FhirImagingStudy>;
|
|
6
|
+
export declare const mockRadiologyInvestigations: RadiologyInvestigationViewModel[];
|
|
7
|
+
export declare const createMockRadiologyInvestigation: (id: string, testName: string, priority: string, replaces?: string[]) => RadiologyInvestigationViewModel;
|
|
8
|
+
export declare const mockRadiologyInvestigationsForFiltering: RadiologyInvestigationViewModel[];
|
|
9
|
+
export declare const mockRadiologyChainReplacement: RadiologyInvestigationViewModel[];
|
|
10
|
+
export declare const createMockServiceRequestBundle: (serviceRequest: ServiceRequest) => Bundle<ServiceRequest | FhirImagingStudy>;
|
|
11
|
+
export declare const createMockServiceRequest: (overrides?: Partial<ServiceRequest>) => ServiceRequest;
|
|
12
|
+
export declare const createMockImagingStudy: (overrides?: Partial<FhirImagingStudy>) => FhirImagingStudy;
|
|
13
|
+
export declare const createMockBundleWithServiceRequestAndImagingStudy: (serviceRequest: ServiceRequest, imagingStudies: FhirImagingStudy[]) => Bundle<ServiceRequest | FhirImagingStudy>;
|
|
14
|
+
export declare const mockImagingStudies: ImagingStudy[];
|
|
15
|
+
export declare const mockImagingStudiesWithoutAvailable: ImagingStudy[];
|
|
16
|
+
export declare const mockRadiologyInvestigationWithAvailableImagingStudies: RadiologyInvestigationViewModel[];
|
|
17
17
|
//# sourceMappingURL=mocks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../src/radiologyInvestigation/__mocks__/mocks.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../src/radiologyInvestigation/__mocks__/mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,MAAM,EACN,YAAY,IAAI,gBAAgB,EACjC,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,+BAA+B,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE1E,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AAErD,eAAO,MAAM,kBAAkB,EAAE,cA6DhC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,cAAc,GAAG,gBAAgB,CAQrE,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,+BAA+B,EAkBxE,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAC3C,IAAI,MAAM,EACV,UAAU,MAAM,EAChB,UAAU,MAAM,EAChB,WAAW,MAAM,EAAE,KAClB,+BAQD,CAAC;AAEH,eAAO,MAAM,uCAAuC,EAAE,+BAA+B,EA2BlF,CAAC;AAEJ,eAAO,MAAM,6BAA6B,EAAE,+BAA+B,EAoCxE,CAAC;AAEJ,eAAO,MAAM,8BAA8B,GACzC,gBAAgB,cAAc,KAC7B,MAAM,CAAC,cAAc,GAAG,gBAAgB,CAQzC,CAAC;AAEH,eAAO,MAAM,wBAAwB,GACnC,YAAY,OAAO,CAAC,cAAc,CAAC,KAClC,cAiBD,CAAC;AAEH,eAAO,MAAM,sBAAsB,GACjC,YAAY,OAAO,CAAC,gBAAgB,CAAC,KACpC,gBAaD,CAAC;AAEH,eAAO,MAAM,iDAAiD,GAC5D,gBAAgB,cAAc,EAC9B,gBAAgB,gBAAgB,EAAE,KACjC,MAAM,CAAC,cAAc,GAAG,gBAAgB,CAWzC,CAAC;AAEH,eAAO,MAAM,kBAAkB,EAAE,YAAY,EAgB5C,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,YAAY,EAW5D,CAAC;AAEF,eAAO,MAAM,qDAAqD,EAAE,+BAA+B,EAsBhG,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as RadiologyInvestigationTable } from './RadiologyInvestigationTable';
|
|
1
|
+
export { default as RadiologyInvestigationTable, radiologyInvestigationQueryKeys, } from './RadiologyInvestigationTable';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,2BAA2B,EACtC,+BAA+B,GAChC,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface ImagingStudy {
|
|
2
|
+
id: string;
|
|
3
|
+
StudyInstanceUIDs: string;
|
|
4
|
+
status: string;
|
|
5
|
+
}
|
|
6
|
+
export interface RadiologyInvestigationViewModel {
|
|
7
|
+
readonly id: string;
|
|
8
|
+
readonly testName: string;
|
|
9
|
+
readonly priority: string;
|
|
10
|
+
readonly orderedBy: string;
|
|
11
|
+
readonly orderedDate: string;
|
|
12
|
+
readonly status: string;
|
|
13
|
+
readonly replaces?: string[];
|
|
14
|
+
readonly basedOn?: string[];
|
|
15
|
+
readonly imagingStudies?: ImagingStudy[];
|
|
16
|
+
readonly note?: string;
|
|
17
|
+
readonly reportIds?: string[];
|
|
18
|
+
readonly reportedBy?: string;
|
|
19
|
+
readonly reportedDate?: string;
|
|
20
|
+
readonly linkedOrders?: RadiologyInvestigationViewModel[];
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,QAAQ,CAAC,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IACzC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,YAAY,CAAC,EAAE,+BAA+B,EAAE,CAAC;CAC3D"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ServiceRequest, Bundle, ImagingStudy as FhirImagingStudy } from 'fhir/r4';
|
|
2
|
+
import { RadiologyInvestigationViewModel, ImagingStudy } from './models';
|
|
2
3
|
/**
|
|
3
4
|
* Priority order for radiology investigation priorities (case insensitive)
|
|
4
5
|
* Index 0 = highest priority, higher index = lower priority
|
|
@@ -18,7 +19,7 @@ export declare const getRadiologyPriority: (priority: string) => number;
|
|
|
18
19
|
* @param investigations - Array of radiology investigations to sort
|
|
19
20
|
* @returns New sorted array (does not mutate original)
|
|
20
21
|
*/
|
|
21
|
-
export declare const sortRadiologyInvestigationsByPriority: (investigations:
|
|
22
|
+
export declare const sortRadiologyInvestigationsByPriority: (investigations: RadiologyInvestigationViewModel[]) => RadiologyInvestigationViewModel[];
|
|
22
23
|
/**
|
|
23
24
|
* Filters out radiology investigations that have replacement relationships
|
|
24
25
|
* Removes both the replacing entry (has replaces field) and the replaced entries (referenced in replaces)
|
|
@@ -26,5 +27,13 @@ export declare const sortRadiologyInvestigationsByPriority: (investigations: Rad
|
|
|
26
27
|
* @param investigations - Array of formatted radiology investigations
|
|
27
28
|
* @returns Filtered array without replacement-related entries
|
|
28
29
|
*/
|
|
29
|
-
export declare const filterRadiologyInvestionsReplacementEntries: (investigations:
|
|
30
|
+
export declare const filterRadiologyInvestionsReplacementEntries: (investigations: RadiologyInvestigationViewModel[]) => RadiologyInvestigationViewModel[];
|
|
31
|
+
export declare const getAvailableImagingStudies: (imagingStudies?: ImagingStudy[]) => ImagingStudy[];
|
|
32
|
+
export declare const groupInvestigationsByPrimaryOrder: (investigations: RadiologyInvestigationViewModel[]) => RadiologyInvestigationViewModel[];
|
|
33
|
+
/**
|
|
34
|
+
* Transforms FHIR Bundle containing ServiceRequest and ImagingStudy resources into radiology investigation view models
|
|
35
|
+
* @param bundle - FHIR Bundle containing ServiceRequest and ImagingStudy resources
|
|
36
|
+
* @returns Array of RadiologyInvestigationViewModel view models ready for table rendering
|
|
37
|
+
*/
|
|
38
|
+
export declare function createRadiologyInvestigationViewModels(bundle: Bundle<ServiceRequest | FhirImagingStudy>): RadiologyInvestigationViewModel[];
|
|
30
39
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,MAAM,EACN,YAAY,IAAI,gBAAgB,EACjC,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,+BAA+B,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAEzE;;;;GAIG;AACH,eAAO,MAAM,cAAc,UAAsB,CAAC;AAElD;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,UAAU,MAAM,KAAG,MAEvD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qCAAqC,GAChD,gBAAgB,+BAA+B,EAAE,KAChD,+BAA+B,EAIjC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,2CAA2C,GACtD,gBAAgB,+BAA+B,EAAE,KAChD,+BAA+B,EAMjC,CAAC;AAiDF,eAAO,MAAM,0BAA0B,GACrC,iBAAiB,YAAY,EAAE,KAC9B,YAAY,EAEd,CAAC;AAyBF,eAAO,MAAM,iCAAiC,GAC5C,gBAAgB,+BAA+B,EAAE,KAChD,+BAA+B,EAoCjC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,MAAM,CAAC,cAAc,GAAG,gBAAgB,CAAC,GAChD,+BAA+B,EAAE,CA+CnC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface RadiologyInvestigationReportProps {
|
|
3
|
+
reportId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const RadiologyInvestigationReport: React.FC<RadiologyInvestigationReportProps>;
|
|
6
|
+
export default RadiologyInvestigationReport;
|
|
7
|
+
//# sourceMappingURL=RadiologyInvestigationReport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadiologyInvestigationReport.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigationReport/RadiologyInvestigationReport.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,MAAM,WAAW,iCAAiC;IAChD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CACjD,iCAAiC,CAmClC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigationReport/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentType, LazyExoticComponent } from 'react';
|
|
2
|
+
import { WidgetConfig, WidgetProps } from './model';
|
|
3
|
+
export declare const registerWidget: (config: WidgetConfig) => void;
|
|
4
|
+
export declare const getWidget: (type: string) => LazyExoticComponent<ComponentType<WidgetProps>> | undefined;
|
|
5
|
+
export declare const getWidgetConfig: (type: string) => WidgetConfig | undefined;
|
|
6
|
+
export declare const hasWidget: (type: string) => boolean;
|
|
7
|
+
export declare const getAllWidgetTypes: () => string[];
|
|
8
|
+
export declare const getAllWidgetConfigs: () => WidgetConfig[];
|
|
9
|
+
export declare const resetWidgetRegistry: () => void;
|
|
10
|
+
export type { WidgetConfig, WidgetProps } from './model';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/registry/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAsEpD,eAAO,MAAM,cAAc,GAAI,QAAQ,YAAY,KAAG,IAErD,CAAC;AAEF,eAAO,MAAM,SAAS,GACpB,MAAM,MAAM,KACX,mBAAmB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,GAAG,SAEpD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,YAAY,GAAG,SAE7D,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,KAAG,OAExC,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO,MAAM,EAE1C,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,YAAY,EAElD,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,IAEtC,CAAC;AAEF,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Encounter } from 'fhir/r4';
|
|
2
|
+
import { ComponentType, LazyExoticComponent } from 'react';
|
|
3
|
+
export interface WidgetActionConfig {
|
|
4
|
+
label: string;
|
|
5
|
+
type: string;
|
|
6
|
+
requiredPrivilege?: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface WidgetProps {
|
|
9
|
+
config?: Record<string, unknown>;
|
|
10
|
+
episodeOfCareUuids?: string[];
|
|
11
|
+
encounterUuids?: string[];
|
|
12
|
+
visitUuids?: string[];
|
|
13
|
+
onEditClick?: () => void;
|
|
14
|
+
disableActions?: boolean;
|
|
15
|
+
/** Whether the encounter session allows editing/creating resources. */
|
|
16
|
+
canEditOrCreate?: boolean;
|
|
17
|
+
/** UUID of the active encounter (from the encounter session store). */
|
|
18
|
+
activeEncounterUuid?: string | null;
|
|
19
|
+
/** Full active encounter resource from the encounter session store. */
|
|
20
|
+
activeEncounter?: Encounter | null;
|
|
21
|
+
/** True when the active encounter is the clinician's own resumable (MATCHED) encounter. */
|
|
22
|
+
activeEncounterMatched?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface WidgetConfig {
|
|
25
|
+
type: string;
|
|
26
|
+
component: LazyExoticComponent<ComponentType<WidgetProps>>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/registry/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAE3D,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,uEAAuE;IACvE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,uEAAuE;IACvE,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,uEAAuE;IACvE,eAAe,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IACnC,2FAA2F;IAC3F,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AACD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,mBAAmB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC;CAC5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widgetMap.d.ts","sourceRoot":"","sources":["../../src/registry/widgetMap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,eAAO,MAAM,cAAc,EAAE,YAAY,EAiExC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommonSearchWidget.d.ts","sourceRoot":"","sources":["../../../src/search/commonSearch/CommonSearchWidget.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAsB9C,QAAA,MAAM,kBAAkB,GAAI,qBAAqB,iBAAiB,4CAoNjE,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|