JSON Reference

Data Structure

JSON Reference

When you request the json output format (set output_config.format to json), the Convert and Bulk Convert endpoints return the FinalOutput schema. It is a flat, source-cited structure that captures patient demographics and one or more encounters, with the clinical entities detected inside each encounter.

For the standards-based alternative, request the fhir format instead and see Clinical Resources. The JSON schema carries additional enrichment that FHIR does not, including per-field source citations (page numbers and bounding boxes), MEAT evidence, and ICD-10 and HCC coding detail.

Top-level structure

FieldTypeDescription
versionstringnHance extraction schema and product version.
patient_demographicsarray of PatientDemographicsOne entry per page on which patient demographics were detected.
encountersarray of EncounterEncounters extracted and enriched from the document.

Patient demographics

FieldTypeDescription
first_namestringPatient first name.
middle_namestringPatient middle name.
last_namestringPatient last name.
date_of_birthstringDate of birth.
agestringAge as written in the document.
genderstringPatient gender.
medical_record_numberstringMedical record number (MRN).
addressstringPatient address.
phone_numberstringContact phone number.
emailstringContact email.
insurance_providerstringInsurance provider name.
insurance_idstringInsurance member ID.
primary_languagestringPrimary language.
page_numberintegerPage the demographics were found on. Nullable.
bounding_boxesobjectPer-field bounding boxes, keyed by demographic field name.

Encounter

FieldTypeDescription
encounter_idintegerUnique identifier for the encounter.
start_pageintegerFirst page of the encounter in the document.
end_pageintegerLast page of the encounter in the document.
note_typestringType of clinical record. See allowed values below.
dosarray of DateWithBoundingBoxesDates of service, each paired with bounding boxes.
admission_dateDateWithBoundingBoxesAdmission date paired with bounding boxes.
discharge_dateDateWithBoundingBoxesDischarge date paired with bounding boxes.
telehealth_encounterbooleanHow the visit was conducted. true for a telehealth (virtual) visit; false for an in-person, face to face visit.
visit_typestringType of visit, for example in-person (face to face), telehealth, outpatient, or inpatient.
providersarray of ProviderProviders named in the encounter.
signed_providerarray of SignedProviderProviders who signed the note.
facility_namestringFacility name.
specialtystringProvider or encounter specialty.
reason_for_visitstringReason for the visit.
vitalsarray of VitalsVital-sign readings.
lab_resultsarray of LabTestLaboratory results.
dietstringDiet notes.
cognitive_statusstringCognitive-status notes.
diagnosesarray of DiagnosisDiagnoses with ICD-10 codes and MEAT evidence.
combination_codesarray of CombinationCodeICD-10 combination codes derived from diagnosis pairs.
medicationsarray of MedicationMedications.
proceduresarray of ProcedureProcedures.
social_historySocialHistorySocial history.
family_historyarray of FamilyHistoryItemFamily history.
allergiesarray of AllergyAllergies.
care_planCarePlanCare plan.
symptomsarray of SymptomSymptoms.
diagnostic_testsarray of DiagnosticTestDiagnostic tests.
valid_encounterbooleanWhether this is a billable, real encounter.

note_type allowed values: progress note, labs, facesheet, discharge summary, emergency record, diagnostic imaging, therapy note, unknown, others.

Vitals

FieldTypeDescription
blood_pressurestringBlood pressure.
heart_ratestringHeart rate.
respiratory_ratestringRespiratory rate.
temperaturestringTemperature.
heightstringHeight.
weightstringWeight.
bmistringBody mass index.
oxygen_saturationstringOxygen saturation.
page_numberintegerPage the vitals were found on.

Diagnoses

FieldTypeDescription
namestringDiagnosis name.
descriptionstringFull description or context sentence from the document.
section_headerstringSection header the diagnosis was found under.
page_numberintegerPage the diagnosis was found on.
code1stringPrimary ICD-10 code. Nullable.
code2stringSecondary or alternative ICD-10 code. Nullable.
meatMeatLinkagesMEAT evidence and linked entities.
combination_codesarray of stringCombination ICD-10 codes this diagnosis participates in.
bounding_boxesarray of BoundingBoxWhere the diagnosis name appears on the page.

MEAT linkages

MEAT (Monitor, Evaluate, Assess, Treat) evidence for a diagnosis.

FieldTypeDescription
contextstringFree-text MEAT evidence from the document.
medicationarray of stringMedications linked to this diagnosis.
labarray of stringLab tests linked to this diagnosis.
procedurearray of stringProcedures linked to this diagnosis.
diagnostic_testarray of stringDiagnostic tests linked to this diagnosis.

Combination codes

FieldTypeDescription
codestringThe combination ICD-10 code.
main_diagnosisstringName of the main diagnosis in the pair.
main_codestringICD-10 code of the main diagnosis.
associated_diagnosisstringName of the associated diagnosis in the pair.
associated_codestringICD-10 code of the associated diagnosis.

Medications

FieldTypeDescription
namestringMedication name.
section_headerstringSection header the medication was found under.
medication_classstringDrug class, for example ACE inhibitor.
dosagestringDosage.
frequencystringFrequency.
routestringRoute of administration.
prescribed_datestringDate prescribed.
prescriberstringPrescriber.
statusstringStatus, for example active.
page_numberintegerPage the medication was found on.

Lab results

FieldTypeDescription
namestringLab test name.
resultstringResult value.
reference_rangestringReference range.
statusstringResult flag, for example high.
collection_datestringCollection date.
page_numberintegerPage the lab result was found on.

Procedures

FieldTypeDescription
namestringProcedure name.
section_headerstringSection header it was found under.
year_of_procedurestringYear of the procedure.
page_numberintegerPage the procedure was found on.

Diagnostic tests

FieldTypeDescription
namestringDiagnostic test name.
resultstringResult.
section_headerstringSection header it was found under.
date_performedstringDate performed.
page_numberintegerPage the diagnostic test was found on.

Allergies

FieldTypeDescription
namestringAllergen name.
reactionstringReaction.
severitystringSeverity.
page_numberintegerPage the allergy was found on.

Care plan

FieldTypeDescription
recommendationstringRecommendation.
treatmentstringTreatment.
therapystringTherapy.
follow_upstringFollow-up instructions.
page_numberintegerPage the care plan was found on.

Social history

FieldTypeDescription
occupationstringOccupation.
educationstringEducation.
marital_statusstringMarital status.
housingstringHousing situation.
abusearray of AbuseItemSubstance-use entries.
page_numberintegerPage the social history was found on.

Each abuse entry has type, status, and frequency string fields.

Family history

FieldTypeDescription
relationstringRelation to the patient.
conditionstringCondition.
age_of_onsetstringAge of onset.
page_numberintegerPage the entry was found on.

Symptoms

FieldTypeDescription
namestringSymptom name.
descriptionstringDescription.
section_headerstringSection header it was found under.
page_numberintegerPage the symptom was found on.

Providers

providers entries have name and page_number, plus bounding_boxes. signed_provider entries add credentials (for example MD) and signed_date.

Source citations

Most objects carry a page_number and bounding_boxes so every value can be traced back to its exact place on the page.

A BoundingBox is an array of four numbers, [x1, y1, x2, y2]. Values may be normalised floats between 0 and 1, or pixel integers. On patient demographics, bounding_boxes is an object keyed by field name; on diagnoses and providers it is an array of boxes.

Example

A trimmed json result for a single-encounter progress note.