Skip to main content

Events

An event in RCM is one clinical encounter. The exact term varies by country:

CountryLocal termExamples
BrazilatendimentoInternação, atendimento ambulatorial, atendimento de pronto-socorro
ColombiaepisodioEpisodio de hospitalización, episodio ambulatorio
Other LATAMatenciónSame concepts, different label
Internationallyencounter / episode of care

This page uses "event" as the canonical English term used in the API (e.g. origin_event_id).

An event captures the clinical side of what happened:

  • Which patient
  • What kind of service (consultation, surgery, ER visit, diagnostic, etc.)
  • When it happened
  • Under which payer agreement it should be billed
  • The diagnoses and procedures recorded by the provider

This is distinct from the account, which is the billing wrapper that may group one or more events from the same patient.

How events are created

You don't create events explicitly via a "create event" endpoint. Instead, RCM creates them implicitly when you send the first charge that references a new origin_event_id:

So in practice you only ever send charges — and RCM derives the event + account from the origin_event_id and the patient/agreement information embedded in the charge request.

What lives on an event

FieldDescription
origin_event_idYour HIS/PMS identifier for this encounter. Required, used as the deduplication key. Stable across re-submissions of charges.
service_typeOne of CONSULTATION, HOSPITALIZATION, EMERGENCY, DIAGNOSTIC, etc. Determined by the service_type_code on the first charge.
patient_id, patient_name, patient_document_type, patient_document_numberPatient information at the time of service.
agreement_codeWhich provider-payer contract applies to this encounter.
origin_event_creation_date_timeWhen the encounter happened in the HIS (not when RCM received the data).
cost_center_code, cost_center_nameProvider-internal accounting reference.
base_eventtrue for the primary encounter, false for related secondary events (see below).

Base events vs secondary events

Inside an account you can have:

  • One base event — the main atendimento (e.g. the hospital admission).
  • Zero or more secondary events — related encounters that should be billed together (e.g. an outpatient follow-up visit that's part of the same surgical package, an interconsultation requested during a stay).

Secondary events use parent_event_id on the charge request to link to the base event. RCM keeps them as separate Event records so the clinical history stays accurate, but groups them into the same Account for billing.

Updating event data

Event-level data is set on event creation, from the first charge that referenced its origin_event_id. Resending a charge with the same origin_event_id does not overwrite event-level fields — only charges and support files keep being added. To change event data after the fact, call one of these endpoints explicitly:

Looking up an event

The canonical lookup is by origin_event_id:

curl -X GET "https://sandbox.osigu.com/rcm/v1/accounts/base-accounts/origin-events/EVT-12345/deep-info" \
-H "Authorization: Bearer $TOKEN"

Returns the full event + its account + linked charges + support files. See getDeepBaseAccountInfoByOriginId.

You can also list events indirectly through dispatch packages (groupings of events sent to a payer) — see Account dispatch lookups.

  • Accounts — the billing wrapper that groups one or more events.
  • Charges — the billable lines that attach to an event.
  • Support files — documentation that justifies what happened on the event.