Medical Record
Structured extraction preset for clinical documents including encounters, vitals, diagnoses, medications, procedures, and lab results. Captures ICD-10/CPT codes, allergies, and assessment-and-plan sections with full medical coding support.
curl -X POST $XBERG_ENTERPRISE_URL/v1/extract \ -H "Authorization: Bearer $XBERG_API_KEY" \ -F file=@your-medical_record.pdf \ -F 'preset=medical_record'

Structured fields extracted by this preset
patientobjectrequirednamestringrequiredPatient full legal name.
date_of_birthstringPatient date of birth (ISO-8601).
sexstringBiological sex (M=male, F=female, X=other, U=unknown).
mrnstringMedical record number unique to the healthcare organization.
addressstringPatient residential address.
phonestringPatient contact telephone number.
providerobjectencounterobjectrequireddatestringrequiredEncounter date (ISO-8601).
typestringrequiredEncounter type (office_visit/telehealth/emergency/inpatient_admission/inpatient_discharge/urgent_care/follow_up/consultation/lab_only/imaging_only/other).
reasonstringChief reason for encounter.
attending_providerstringName of attending physician.
chief_complaintstringrequiredPatient's chief complaint or primary reason for visit.
history_of_present_illnessstringDetailed narrative of present illness history.
vitalsobjectallergiesarrayArray of known allergies.
medicationsarrayArray of current and past medications.
problemsarrayArray of current and past diagnoses.
proceduresarrayArray of procedures performed.
lab_resultsarrayArray of laboratory test results.
imagingarrayArray of imaging studies and findings.
assessment_and_planstringClinical assessment summary and treatment plan.
follow_upobjectConfiguration
Call Mode
text_plus_visionCitations
EnabledVersion
v1Tags
+System Prompt
Extract clinical data from the medical record. Record ICD-10 and CPT codes exactly as documented—do not infer, normalize, or correct codes. Dates must be ISO-8601 format. Vital signs should be integers where specified (heart rate, blood pressure, respiratory rate) or numbers (temperature, oxygen saturation). Do not diagnose or interpret findings beyond what is explicitly stated. Capture patient demographics, encounter details, chief complaint, medications with status, allergies with severity levels, problems with active/resolved/chronic status, procedures, lab results with abnormal flags, imaging findings, and follow-up plan. Never supplement missing information.