Create Encounter Command

Command to create a new patient encounter (visit) in the EHR system

Overview

The CreateEncounterCommand initiates a new patient visit record in the EHR, capturing the visit context and enabling clinical documentation.

Command Schema

{
"commandId": "uuid",
"commandType": "CreateEncounterCommand",
"data": {
"encounterId": "string",
"patientId": "string",
"providerId": "string",
"encounterType": "inpatient | outpatient | emergency | urgent_care | telehealth",
"appointmentId": "string",
"chiefComplaint": "string",
"facilityId": "string",
"departmentId": "string",
"startDateTime": "ISO 8601"
}
}

Encounter Types

  • Inpatient: Hospital admission
  • Outpatient: Office visit
  • Emergency: ED visit
  • Urgent Care: Walk-in clinic
  • Telehealth: Virtual visit