Skip to content

Specific Encounters

Inpatient Admission

Inpatient Admission represents a patient's hospital stay where at least one overnight stay is required for treatment, observation, or procedures.

FieldTypeRequiredDescription
visit_codestringYESReference to visit the unique code
is_newbooleanField to distinguish new cases from follow-ups
codestringYESUnique identifier for the operation
symptomsarray of stringsPrimary symptom or problem reported by the doctor (nullable)
wardstringYESName of the ward or clinic, or sub-clinic
service_typestringYESName of the service or purpose of inpatient (nullable)
started_atdatetimeYESDate and time operation started
ended_atdatetimeDate and time the operation ended
encountered_bystringYESName of the healthcare provider
titlestringPosition, whether doctor or nurse, or else
created_atdatetimeYESRecord creation timestamp
updated_atdatetimeYESRecord the last update timestamp

Example

json
{  
  "inpatients": [  
    {  
      "visit_code": "V420650",  
      "code": "E317001",
      "symptoms": ["fever","red skin"],  
      "ward": "General IPD",  
      "service_type": "Internal Medicine",  
      "started_at": "2025-03-20T14:00:00.000+07:00",  
      "ended_at": "2025-03-23T10:00:00.000+07:00",
      "encountered_by": "Dr. Chhun Sovannarith",
      "title": "Doctor",  
      "created_at": "2025-03-20T14:00:00.000+07:00",  
      "updated_at": "2025-03-23T10:00:00.000+07:00"  
    }  
  ]  
}

Outpatient

Outpatient represents a patient visit for treatment or consultation without requiring overnight hospital stay.

FieldTypeRequiredDescription
visit_codestringYESReference to visit the unique code
is_newbooleanField to distinguish new cases from follow-ups
codestringYESUnique identifier for the operation
symptomsarray of stringsPrimary symptom or problem reported by the doctor (nullable)
wardstringYESName of the ward or clinic, or sub-clinic
service_typestringYESName of the service or purpose of outpatient (nullable)
started_atdatetimeYESDate and time the operation started
ended_atdatetimeDate and time the operation ended
encountered_bystringYESName of the healthcare provider
titlestringPosition, whether doctor or nurse, or else
created_atdatetimeYESRecord creation timestamp
updated_atdatetimeYESRecord the last update timestamp

Example

json
{  
  "outpatients": [  
    {  
      "visit_code": "V420650",  
      "code": "E317000",
      "symptoms": ["fever","red skin"],  
      "ward": "General Outpatient",  
      "service_type": "General Medicine",  
      "started_at": "2025-03-17T09:35:00.000+07:00",  
      "ended_at": "2025-03-17T10:15:00.000+07:00",
      "encountered_by": "Dr. Chhun Sovannarith",
      "title": "Doctor",  
      "created_at": "2025-03-17T09:35:00.000+07:00",  
      "updated_at": "2025-03-17T10:15:00.000+07:00"  
    }  
  ]  
}

Emergency

Emergency represents a patient visit requiring immediate attention for acute or potentially life-threatening conditions.

Data Model

FieldTypeRequiredDescription
visit_codestringYESReference to visit the unique code
is_newbooleanField to distinguish new cases from follow-ups
codestringYESUnique identifier for the operation
symptomsarray of stringsPrimary symptom or problem reported by the doctor (nullable)
wardstringYESName of the ward or clinic, or sub-clinic
service_typestringYESName of the service type or purpose (nullable)
started_atdatetimeYESDate and time the encounter started
ended_atdatetimeDate and time the encounter ended
emergency_notetextYESDetailed notes about the emergency (nullable)
encountered_bystringYESName of the healthcare provider
titlestringPosition, whether doctor or nurse, or else
created_atdatetimeYESRecord creation timestamp
updated_atdatetimeYESRecord the last update timestamp

Example

json
{  
  "emergencies": [  
    {  
      "visit_code": "V420650",  
      "code": "E317001",
      "ward": "Emergency",  
      "service_type": "Emergency Medicine",  
      "started_at": "2025-03-17T15:30:00.000+07:00",  
      "ended_at": "2025-03-17T17:45:00.000+07:00",
      "encountered_by": "Dr. Chhun Sovannarith",
      "title": "Doctor",  
      "emergency_notes": "Patient brought by family after motorcycle accident. GCS 14/15. No loss of consciousness. Skull X-ray negative for fracture. CT not available. Multiple abrasions on right side. No apparent fractures. Wound cleaning and dressing performed. Tetanus prophylaxis given.",  
      "created_at": "2025-03-17T15:30:00.000+07:00",  
      "updated_at": "2025-03-17T17:45:00.000+07:00"  
    }  
  ]  
}

Surgery

Surgery refers to medical procedures performed on a patient in an operating theatre to treat, repair, or diagnose a condition, usually under anesthesia.

Data Model

FieldTypeRequiredDescription
visit_codestringYESReference to visit the unique code
is_newbooleanField to distinguish new cases from follow-ups
encounter_codestringUnique identifier for the encounter result in operation
codestringYESUnique identifier for the operation
symptomsarray of stringsPrimary symptom or problem reported by the doctor (nullable)
theater_namestringYESName of the operating theater
service_typestringYESName of the operation
started_atdatetimeYESDate and time the operation started
ended_atdatetimeYESDate and time the operation ended
reasonstringYESReason for operating
anesthesia_typestringType of anesthesia used
procedure_notestextYESDetailed notes about the procedure
complicationsarray of stringsAny complications during the operation
specimensarray of stringsSpecimens collected during the operation
pre_operative_diagnosisstringThe clinical diagnosis made BEFORE surgery, based on symptoms, physical examination, and investigations
post_operative_diagnosisstringThe final diagnosis confirmed AFTER the surgery, based on what the surgeon actually found during the operation
blood_lossstringAmount of blood loss during surgery (including unit)
surgeon_namestringYESName of the surgeon
anesthetist_namestringName of the anesthetist
assistant_namesarray of stringsNames of assistants
created_atdatetimeYESRecord creation timestamp
updated_atdatetimeRecord the last update timestamp
detailsobjectDetail how the surgery was performed

Detail Model

FieldTypeRequiredDescription
positionstringYESHow the patient lies during surgery

Example

json
{  
  "surgeries": [{  
    "visit_code": "V420650",  
    "encounter_code": "E401001",  
    "code": "SUR20250401001",  
    "theater_name": "Operating Theater 2",  
    "service_type": "Laparoscopic Cholecystectomy",  
    "started_at": "2025-04-01T08:30:00.000+07:00",  
    "ended_at": "2025-04-01T10:15:00.000+07:00",  
    "reason": "Symptomatic gallstones with recurrent biliary colic",  
    "anesthesia_type": "General Endotracheal",  
    "procedure_notes": "Patient positioned supine. Pneumoperitoneum established with Veress needle. Four ports were placed. Gallbladder dissected from liver bed with hook cautery. Cystic duct and artery identified, clipped and divided. Gallbladder removed through umbilical port. Hemostasis confirmed. No bile leak. Ports removed under direct visualization. Wounds closed with 3-0 Vicryl and 4-0 Monocryl. Patient tolerated procedure well.",  
    "complications": [  
      "Mild bleeding from liver bed, controlled with electrocautery"  
    ],  
    "specimens": [  
      "Gallbladder with multiple stones",  
      "Cystic fluid sample"  
    ],
    "blood_loss": "5cl",  
    "surgeon_name": "Dr. Sok Vichet",  
    "anesthetist_name": "Dr. Meas Sokunthea",  
    "assistant_names": [  
      "Dr. Chhan Rathana", "Nurse Van Bopha"  
    ],  
    "created_at": "2025-04-01T08:30:00.000+07:00",  
    "updated_at": "2025-04-01T10:20:00.000+07:00"  
  }]  
}

Progress Notes

Progress Note documents a patient's ongoing assessment, treatment, and response during their care. It often uses the SOAP format.

Data Model

FieldTypeRequiredDescription
visit_codestringYESReference to visit the unique code
encounter_codestringReference to the parent encounter code
codestringYESUnique identifier for the daily progress note
started_atdatetimeYESDate and time assessment started
ended_atdatetimeDate and time assessment ended
encountered_bystringYESName of the healthcare provider
titlestringYESPosition, whether doctor or nurse, or else
created_atdatetimeYESRecord creation timestamp
updated_atdatetimeYESRecord the last update timestamp

Example

json
{  
  "progress_notes": [  
    {  
      "visit_code": "VS20250317001",  
      "encounter_code": "E417001",  
      "code": "E317001",  
      "started_at": "2025-03-17T16:00:00.000+07:00",  
      "ended_at": "2025-03-17T16:15:00.000+07:00",  
      "encountered_by": "Dr. Chhun Sovannarith",
      "title": "Doctor",  
      "created_at": "2025-03-20T14:00:00.000+07:00",  
      "updated_at": "2025-03-23T10:00:00.000+07:00"  
    }  
  ]  
}