Skip to content

Create a new B2C flow #48

@GoulartNogueira

Description

@GoulartNogueira

I've already setup vercel workflow successfully (app\api\integrations\mobilemed\report\workflow\route.ts)

Now let's expand the flow to:

  1. Load exams from API
    Use filters:
  filtros: [
    {
      campo: 'exame.data_realizacao',
      operador: 'between',
      valor: [lastMonth, today],
    },
    {
      campo: 'exame.data_laudo',
      operador: 'between',
      valor: [yesterday, today],
    },
    {
      campo: 'exame.usuario_id',
      operador: 'in',
      valor: settings!.mobilemedCredentials!.doctorIds,
    }
  ],
  1. Process this batch in backend (using app\api\calculate\route.ts or app\api\calculate\engine.ts)
  2. Create a simple summary text from the result. And submit it using notify.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions