Skip to content

Data Models

Biograph contains 134 DocTypes across 15 functional domains. All support standard Frappe CRUD via /api/resource/{DocType}/{name}.

Type legend: Master (reference data), Document (transactional), Child (child table), Single (singleton config), Tree (hierarchical), Log (audit trail)


Core Patient Management (10)

DocTypeTypePurpose
PatientMasterCore patient record — demographics, history, linked user
Patient RelationChildPatient family/relation links (enables portal access for dependents)
Patient Medical RecordLogAuto-generated timeline of all clinical events
Patient History SettingsSingleConfigures which DocTypes appear in patient history
Patient History Standard Document TypeChildStandard doc types in history
Patient History Custom Document TypeChildCustom doc types in history
Patient Care TypeMasterTypes of patient care
Patient Duplicate Check Rule ConfigurationSingleDeduplication rules
Patient Duplicate Check Rule LinkChildRule links
Patient Duplicate Check FieldChildFields used for matching

Appointments & Scheduling (10)

DocTypeTypePurpose
Patient AppointmentDocumentCore appointment record
Appointment TypeMasterTypes (Walk-in, Online, Follow-up)
Appointment Type Service ItemChildBilling items per type
Patient Appointment TherapyChildTherapy links
Practitioner ScheduleMasterWeekly time slot templates
Healthcare Schedule Time SlotChildIndividual time slots
Practitioner Service Unit ScheduleChildPractitioner-to-unit mapping
Practitioner AvailabilityDocumentDate-specific availability overrides
Fee ValidityDocumentFree follow-up windows
Fee Validity ReferenceChildAppointment references

Clinical / Encounters (11)

DocTypeTypePurpose
Patient EncounterDocumentClinical consultation (core clinical document)
Patient Encounter DiagnosisChildDiagnoses recorded
Patient Encounter SymptomChildSymptoms/complaints
Drug PrescriptionChildMedications prescribed
Lab PrescriptionChildLab tests ordered
Procedure PrescriptionChildProcedures ordered
Clinical NoteChildSOAP-style clinical notes
Clinical Note TypeMasterNote categories
Doctor Advice TemplateMasterReusable advice text
Discharge SummaryDocumentDischarge documentation
Vital SignsDocumentVital sign recordings

Laboratory (18)

DocTypeTypePurpose
Lab TestDocumentTest order and results
Lab Test TemplateMasterTest definitions
Lab Test Group TemplateChildGrouped test items
Lab Test SampleMasterSample type definitions
Lab Test UOMMasterUnits of measurement
Normal Test ResultChildNumeric results
Normal Test TemplateChildNumeric test definitions
Descriptive Test ResultChildText-based results
Descriptive Test TemplateChildText test definitions
Sample CollectionDocumentSample tracking
Sample TypeMasterBiological sample types
SpecimenMasterSpecimen definitions
SensitivityMasterAntibiotic sensitivity vocab
Sensitivity Test ResultChildSensitivity results
OrganismMasterOrganism vocab
Organism Test ItemChildOrganism entries
Organism Test ResultChildOrganism results
AntibioticMasterAntibiotic vocab

Observations & Diagnostics (6)

DocTypeTypePurpose
ObservationDocumentIndividual measurement/result (FHIR-aligned)
Observation TemplateMasterObservation definitions with reference ranges
Observation ComponentChildSub-observations in panels
Observation Reference RangeChildNormal ranges by age/gender
Observation Sample CollectionChildSample links
Diagnostic ReportDocumentGroups observations into a report

Clinical Procedures (3)

DocTypeTypePurpose
Clinical ProcedureDocumentProcedure execution record
Clinical Procedure TemplateMasterProcedure definitions
Clinical Procedure ItemChildConsumable items

Medications & Prescriptions (16)

DocTypeTypePurpose
MedicationMaster (Tree)Drug definitions (hierarchical)
Medication ClassMasterDrug classification
Medication Class InteractionChildClass-level interactions
Medication IngredientChildActive ingredients
Medication Linked ItemChildLinks to ERPNext stock items
Medication RequestDocumentPrescription order (FHIR)
Medication History ItemChildPatient medication history
Mediciation Override Reason CodeMasterOverride reasons
Drug InteractionMasterDrug-drug interactions
Drug PrescriptionChildPrescription entries
Lab PrescriptionChildLab order entries
Procedure PrescriptionChildProcedure order entries
Dosage FormMasterForms (tablet, syrup, injection)
Dosage StrengthChildStrength options
Prescription DosageMasterFrequency patterns (1-0-1)
Prescription DurationMasterDuration options (5 days, 2 weeks)

Inpatient Management (11)

DocTypeTypePurpose
Inpatient RecordDocumentAdmission-to-discharge record
Inpatient Record ItemChildBillable items
Inpatient OccupancyChildBed occupancy tracking
Inpatient Medication OrderDocumentIP medication orders
Inpatient Medication Order EntryChildOrder entries
Inpatient Medication EntryDocumentMedication administration log
Inpatient Medication Entry DetailChildAdministration details
Discharge SummaryDocumentDischarge documentation
Nursing TaskDocumentNursing task tracking
Nursing Checklist TemplateMasterChecklist templates
Nursing Checklist Template TaskChildChecklist items

Therapy & Rehabilitation (16)

DocTypeTypePurpose
Therapy TypeMasterTherapy definitions
Therapy PlanDocumentPatient treatment plans
Therapy Plan DetailChildPlan items
Therapy Plan TemplateMasterReusable plan definitions
Therapy Plan Template DetailChildTemplate items
Therapy SessionDocumentIndividual session records
Exercise TypeMasterExercise definitions
Exercise Type StepChildExercise steps
ExerciseChildExercise entries in therapy types
Exercise Difficulty LevelMasterDifficulty levels
Patient AssessmentDocumentStructured assessments
Patient Assessment TemplateMasterAssessment form definitions
Patient Assessment SheetChildAssessment sheets
Patient Assessment DetailChildAssessment items
Patient Assessment ParameterMasterAssessment parameters
Body Part / Body Part LinkMaster/ChildAnatomical reference

Insurance (8)

DocTypeTypePurpose
Insurance PayorMasterInsurance company records
Insurance Payor ContractChildContract terms
Insurance Payor Eligibility PlanChildEligibility plans
Patient Insurance PolicyDocumentPatient's insurance details
Patient Insurance CoverageDocumentCoverage determination
Item Insurance EligibilityChildPer-item eligibility
Insurance ClaimDocumentClaim records
Insurance Claim CoverageChildClaim coverage details

Treatment & Packages (7)

DocTypeTypePurpose
Treatment CounsellingDocumentPre-admission counselling
Treatment Plan TemplateMasterTreatment plan definitions
Treatment Plan Template ItemChildTemplate items
Treatment Plan Template PractitionerChildAssigned practitioners
Healthcare PackageMasterBundled service packages
Healthcare Package ItemChildPackage items
Package SubscriptionDocumentPatient subscriptions

Service Requests (4)

DocTypeTypePurpose
Service RequestDocumentGeneric service order (FHIR)
Service Request CategoryMasterRequest categories
Service Request ReasonChildOrder reasons
Doctor Advice TemplateMasterAdvice text templates

Coding & Classification (5)

DocTypeTypePurpose
Code SystemMasterCoding systems (ICD-10, CPT, SNOMED, LOINC)
Code ValueMasterIndividual codes
Code Value SetMasterGrouped code sets
Codification TableChildCode links on templates
Medical CodeMasterSearchable codes

Infrastructure & Settings (10)

DocTypeTypePurpose
Healthcare SettingsSingleGlobal configuration
Healthcare Service UnitTreeHospital hierarchy (building > floor > ward > bed)
Healthcare Service Unit TypeMasterUnit type definitions
Service Unit Type ItemChildBilling items per type
Medical DepartmentMasterClinical departments
Healthcare PractitionerMasterDoctor/nurse/therapist records
Practitioner Service Unit ScheduleChildPractitioner-unit mapping
Healthcare ActivityLogActivity log
Healthcare Payment RecordDocumentPortal payment tracking
Surgery History ItemChildSurgical history entries

ABDM — India Regional (2)

DocTypeTypePurpose
ABDM SettingsSingleABDM integration config
ABDM RequestDocumentAPI request logs

Entity Relationships

Patient ──────┬──→ Patient Appointment ──→ Patient Encounter
              │         │                       │
              │         ↓                       ├──→ Service Request ──→ Lab Test
              │    Fee Validity                 │                   ──→ Clinical Procedure
              │                                 │                   ──→ Observation
              │                                 ├──→ Medication Request
              │                                 └──→ Diagnosis / Symptoms

              ├──→ Inpatient Record
              │         ├──→ IP Medication Order ──→ IP Medication Entry ──→ Stock Entry
              │         ├──→ Inpatient Occupancy (bed tracking)
              │         └──→ Discharge Summary

              ├──→ Therapy Plan ──→ Therapy Session

              ├──→ Insurance Policy ──→ Coverage ──→ Insurance Claim

              ├──→ Sample Collection ──→ Observation ──→ Diagnostic Report

              └──→ Patient Medical Record (auto-generated from all submitted docs)

Healthcare Practitioner ──→ Practitioner Schedule ──→ Time Slots

         └──→ Healthcare Service Unit (tree: building > floor > ward > bed)

All billable services ──→ Sales Invoice (ERPNext) ──→ Payment Entry (ERPNext)