OpenMRS icon

OpenMRS

Interact with OpenMRS FHIR R4 API

Actions18

Encounter → Create

AI-generated

Summary

Creates a new Encounter resource in OpenMRS.

Inputs

  • encounterPayload (required) — Full FHIR Encounter resource. Must include resourceType, status, class, subject (Patient reference), and period.

Output shape

a single Encounter resource

The created Encounter is returned; validation errors cause a node operation error.

Examples

Example 1: Add an ambulatory encounter for a patient

Set resource to Encounter, operation to Create, and provide a valid Encounter JSON in encounterPayload

Example 2: Create an encounter via custom FHIR JSON

Supply a custom Encounter JSON in encounterPayload, optionally adjust period or type coding, then execute

Links

Discussion