Skip to main content
Pega Plantão is a Brazilian workforce management platform used by hospitals and healthcare facilities to schedule, staff, and pay on-call medical shifts (plantões).

Configuring Pega Plantão as a Source

In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the Pega Plantão option from the list of connectors. Click Next and you’ll be prompted to add your access.

1. Add account access

You’ll need OAuth2 credentials and a coordinator login to connect to the Pega Plantão API. The following configurations are available:
  • Client ID: Your OAuth2 Client ID, requested from Pega Plantão support.
  • Client Secret: Your OAuth2 Client Secret, requested from Pega Plantão support.
  • Username: Login of the Pega Plantão coordinator user that will be used to sync data.
  • Password: Password of the Pega Plantão coordinator user.
  • Start Date: (Optional) The earliest date to sync for date-filtered streams. When omitted, date-filtered streams sync full history and the daily professional-status stream starts from today.
Once you’re done, click Next.

2. Select streams

Choose which data streams you want to sync. For faster extractions, select only the streams that are relevant to your analysis. Select the streams and click Next.

3. Configure data streams

Customize how you want your data to appear in your catalog. Select the desired layer, a folder to organize it, a name for each table, and the type of sync. Once you are done configuring, click Next.

4. Configure data source

Describe your data source for easy identification within your organization. Define your Trigger based on how often you need data updated. Once you are ready, click Next to finalize the setup.

5. Check your new source

You can view your new source on the Sources page. If needed, manually trigger the source extraction by clicking on the arrow button.
For you to be able to see it on your Catalog, you need at least one successful source run.
Some endpoints documented by the Pega Plantão API are not covered by this connector: Afastamentos (absences) has no GET endpoint (only POST/PUT/PATCH/DELETE), and Chamados, Contratos, Demonstrativos, and Fornecedores were out of scope for the initial implementation.

Streams and Fields

Below you’ll find all available data streams from Pega Plantão and their corresponding fields:
FieldType
GroupIdstring
Namestring
FieldType
CodLocalstring
CodigoInternostring
Nomestring
Descricaostring
Enderecostring
Cidadestring
Estadostring
Latitudenumber
Longitudenumber
Ativoboolean
FieldType
CodSetorstring
CodLocalstring
CodigoInternostring
Nomestring
Descricaostring
Ativoboolean
FieldType
ProfessionalIdstring
CodLocalstring
CodSetorstring
Namestring
Emailstring
Phonestring
Phone1string
ProfessionalIdUFstring
Addressstring
Address2string
AddressNumberinteger
Townstring
Zipcodestring
Citystring
Statestring
UserTypestring
InternalCodestring
MoreDetailsstring
CompanyNamestring
CompanyTradeNamestring
CNPJstring
CPFstring
BankNumberstring
BankBranchstring
BankAccountstring
BankAccountOperationstring
AdmissionDatedatetime
FieldType
CodigoPlantaostring
Localstring
CodigoLocalstring
Setorstring
CodigoSetorstring
Iniciodatetime
Fimdatetime
Tipostring
Valornumber
ValorConsideradonumber
ProfFixostring
CodigoProfFixostring
ProfFixoStatusstring
ProfDePlantaostring
CodigoProfDePlantaostring
RegistroEntradadatetime
RegistroSaidadatetime
DataCriacaodatetime
FieldType
CodigoPlantaostring
Localstring
CodigoLocalstring
Setorstring
CodigoSetorstring
Iniciodatetime
Fimdatetime
Tipostring
Valornumber
ProfFixostring
CpfProfFixostring
CodigoProfFixostring
ProfFixoStatusstring
ProfDePlantaostring
CpfProfDePlantaostring
CodigoProfDePlantaostring
Descricaostring
ComentarioInternostring
RegistroEntradadatetime
RegistroSaidadatetime
Produtividadesstring (JSON)
DataCriacaodatetime
Anunciadoboolean
FieldType
ProfessionalIdstring
Namestring
Emailstring
Phonestring
Phone1string
ProfessionalIdUFstring
Addressstring
Address2string
AddressNumberinteger
Townstring
Zipcodestring
Citystring
Statestring
UserTypestring
InternalCodestring
MoreDetailsstring
CompanyNamestring
CompanyTradeNamestring
CNPJstring
CPFstring
BankNumberstring
BankBranchstring
BankAccountstring
BankAccountOperationstring
AdmissionDatedatetime
FieldType
CodProfissionalstring
Emailstring
CodigoProfissaostring
CodUfConselhoProfissionalinteger
RegistroConselhoProfissionalstring
NomeCompletostring
DataAdmissaodatetime
DadosContatoCodUfinteger
DadosContatoTelefonestring
DadosContatoCelularstring
DadosContatoCepstring
DadosContatoRuastring
DadosContatoNumerointeger
DadosContatoComplementostring
DadosContatoCodCidadeinteger
DadosContatoBairrostring
EnviarConviteboolean
Detalhesstring
CodInternostring
CPFstring
Gruposarray (string)
FieldType
CodProfissionalstring
DataIniciostring
NomeProfissionalstring
CodSituacaostring
Situacaostring
HorarioPlantaodatetime
HorarioFimPlantaodatetime
FieldType
TipoPlantaoIdstring
Nomestring
Corstring