@kenyaemr/esm-active-visits-app 8.1.1-pre.114 → 8.1.1-pre.118

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/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.2.0"},"extensions":[{"name":"active-visits-widget","slot":"homepage-widgets-slot","component":"activeVisits","order":0},{"name":"visit-summary-widget","slot":"visit-summary-slot","component":"visitDetail"},{"name":"active-visits-tile","slot":"home-metrics-tiles-slot","component":"homeActiveVisitsTile"},{"name":"total-visits-tile","slot":"home-metrics-tiles-slot","component":"homeTotalVisitsTile"}],"pages":[],"version":"8.1.1-pre.114"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.2.0"},"extensions":[{"name":"active-visits-widget","slot":"homepage-widgets-slot","component":"activeVisits","order":0},{"name":"visit-summary-widget","slot":"visit-summary-slot","component":"visitDetail"},{"name":"active-visits-tile","slot":"home-metrics-tiles-slot","component":"homeActiveVisitsTile"},{"name":"total-visits-tile","slot":"home-metrics-tiles-slot","component":"homeTotalVisitsTile"}],"pages":[],"version":"8.1.1-pre.118"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kenyaemr/esm-active-visits-app",
3
- "version": "8.1.1-pre.114",
3
+ "version": "8.1.1-pre.118",
4
4
  "description": "Active visits widget microfrontend for the OpenMRS SPA",
5
5
  "browser": "dist/kenyaemr-esm-active-visits-app.js",
6
6
  "main": "src/index.ts",
@@ -21,7 +21,7 @@ export default function useActiveVisits() {
21
21
  const { data, error, isLoading } = useSWR<{ data: { totalCount: number } }>(getUrl, openmrsFetch);
22
22
 
23
23
  return {
24
- count: data?.data.totalCount,
24
+ count: data?.data?.totalCount,
25
25
  error,
26
26
  isLoading,
27
27
  };
@@ -12,7 +12,7 @@ const useTotalVisits = () => {
12
12
  const { data, error, isLoading } = useSWR<{ data: { results: Array<Visit> } }>(visitsUrl, openmrsFetch);
13
13
 
14
14
  return {
15
- data: data?.data.results,
15
+ data: data?.data?.results,
16
16
  error,
17
17
  isLoading,
18
18
  };
@@ -16,21 +16,21 @@
16
16
  "noActiveVisitsForLocation": "No hay visitas activas para esta ubicación.",
17
17
  "noDiagnosesFound": "No se encontraron diagnósticos",
18
18
  "noEncountersFound": "No se encontraron encuentros",
19
- "noMedicationsFound": "No se encontraron medicaciones",
20
- "noNotesToShowForPatient": "No hay notas para mostrar de este paciente",
19
+ "noMedicationsFound": "No se encontraron medicamentos",
20
+ "noNotesToShowForPatient": "No hay notas para mostrar para este paciente",
21
21
  "noObservationsFound": "No se encontraron observaciones",
22
22
  "notes": "Notas",
23
23
  "noVisitsToDisplay": "No hay visitas para mostrar",
24
- "orderDurationAndUnit": "para {{duration}} {{durationUnit}}",
24
+ "orderDurationAndUnit": "por {{duration}} {{durationUnit}}",
25
25
  "orderIndefiniteDuration": "Duración indefinida",
26
- "patients": "Patients",
26
+ "patients": "Pacientes",
27
27
  "provider": "Proveedor",
28
28
  "quantity": "Cantidad",
29
- "refills": "Recargas",
29
+ "refills": "Reposiciones",
30
30
  "tests": "Pruebas",
31
31
  "thereIsNoInformationToDisplayHere": "No hay información para mostrar aquí",
32
- "time": "Tiempo",
33
- "totalVisits": "Total Visits Today",
32
+ "time": "Hora",
33
+ "totalVisits": "Total de Visitas Hoy",
34
34
  "visitStartTime": "Tiempo de Visita",
35
35
  "visitSummary": "Resumen de Visita",
36
36
  "visitType": "Tipo de Visita"
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "activeVisits": "Visites actives",
3
- "age": "Age",
3
+ "age": "Âge",
4
4
  "allEncounters": "Toutes les visites",
5
- "checkFilters": "Check the filters above",
5
+ "checkFilters": "Verifier les filtres ci-dessus",
6
6
  "diagnoses": "Diagnostic",
7
7
  "dose": "Dose",
8
8
  "encounterType": "Type de visite",
9
9
  "endDate": "Date de fin",
10
- "filterTable": "Filtre de recherche",
10
+ "filterTable": "Filtrer le tableau",
11
11
  "gender": "Genre",
12
12
  "idNumber": "Identifiant",
13
13
  "indication": "Indication",
@@ -24,13 +24,13 @@
24
24
  "orderDurationAndUnit": "Pour {{duration}} {{durationUnit}}",
25
25
  "orderIndefiniteDuration": "Durée illimitée",
26
26
  "patients": "Patients",
27
- "provider": "Fournisseur",
28
- "quantity": "Quantity",
27
+ "provider": "Prestataire",
28
+ "quantity": "Quantité",
29
29
  "refills": "Recharges",
30
30
  "tests": "Tests",
31
31
  "thereIsNoInformationToDisplayHere": "Il n'y pas d'information à présenter ici",
32
32
  "time": "Heure",
33
- "totalVisits": "Consultation total du jour",
33
+ "totalVisits": "Consultation Total du Jour",
34
34
  "visitStartTime": "Heure de la consultation",
35
35
  "visitSummary": "Compte rendu de la consultation",
36
36
  "visitType": "Type de consultation"