npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@pucp-gidis-hiisc/esm-fua-app

v1.7.0

Published

Main openmrs O3 peruhce microfrontend

Downloads

59

Readme

Node.js CI

@pucp-gidis-hiisc/esm-fua-app — Formato Único de Atenciones (FUA)

Microfrontend para OpenMRS 3.x que implementa la UI del Formato Único de Atenciones (FUA) para el contexto peruano. Permite listar, filtrar y visualizar solicitudes FUA, así como abrir el visor HTML del documento generado por el backend.

Características

  • Dashboard FUA con tiles por estado (solicitados, en progreso, completados, rechazados).
  • Tabs/tablas con filtros de fecha y estado de solicitud FUA.
  • Visor HTML del FUA (integrado con el microservicio generador).
  • Link de acceso desde el panel izquierdo de OpenMRS 3.

Instalación

Instalar desde npm (tag next):

npm install @pucp-gidis-hiisc/esm-fua-app@next
# o
yarn add @pucp-gidis-hiisc/esm-fua-app@next

Agregar a tu import map (OpenMRS 3 SPA):

{
	"imports": {
		"@pucp-gidis-hiisc/esm-fua-app": "https://unpkg.com/@pucp-gidis-hiisc/esm-fua-app@next/dist/pucp-gidis-hiisc-esm-fua-app.js"
	}
}

Con eso, el módulo registra sus rutas y extensiones automáticamente.

Rutas y Extensiones

  • Rutas registradas:
    • #/fua-request (dashboard principal FUA)
    • #/fua-viewer (visor de FUA)
  • Extensiones principales (slots):
    • homepage-dashboard-slot → enlace “Formato Único de Atención”.
    • fua-tiles-slot → tiles de resumen por estado.
    • fua-panels-slot → paneles/tablas por estado.

Configuración

Puedes sobreescribir la configuración vía SPA config de OpenMRS:

{
	"@pucp-gidis-hiisc/esm-fua-app": {
		"enableFuaApprovalWorkflow": false,
		"fuaGeneratorEndpoint": "https://<tu-host>/services/fua-generator/demo"
	}
}

Campos soportados:

  • enableFuaApprovalWorkflow (boolean): habilita el flujo de aprobación (WIP según backend).
  • fuaGeneratorEndpoint (string): URL del microservicio que genera el HTML del FUA.

Requisitos de Backend

Este microfrontend espera que el backend (OMOD FUA) exponga endpoints compatibles, por ejemplo:

  • GET /ws/module/fua/solicitudes — listado/paginado y filtrado por estado/fechas.
  • PUT /ws/module/fua/estado/update/{fuaId} — actualización de estado.
  • POST /ws/module/fua/visitInfo/{visitUuid}/generator/{format} — render del HTML del FUA.
  • GET /ws/module/fua/estado/list — catálogo de estados disponibles.

Consulta la documentación del OMOD para detalles de parámetros y autenticación.

Desarrollo local

Desde el monorepo:

# levantar en modo desarrollo (desde la raíz)
yarn start

# build de este paquete
yarn workspace @pucp-gidis-hiisc/esm-fua-app build

Estructura relevante:

  • src/ componentes, extensiones, rutas y workspaces.
  • src/routes.json define rutas y extensiones.
  • src/config-schema.ts define la configuración soportada.

Compatibilidad

Peer deps clave:

  • @openmrs/esm-framework 8.x
  • react 18.x
  • react-router-dom 6.x

Licencia

MPL-2.0