How jagadeesandev/marley works
Marley Health is a Frappe/ERPNext hospital information system. Its central user workflow spans patient and outpatient/inpatient care, requests for services, and resulting clinical or laboratory records, with billing and insurance alongside care delivery. The tree and README establish additional procedure, rehabilitation, facility, and code-standard capabilities. Edges are limited to relationships visible in excerpts, the source index, or README; unsampled subsystems are represented without inferred call chains.
Main entry points: service_request.py Service requests · patient_insurance_coverage.py Patient coverage · sample_collection.py Sample collection · observation_template.py Observation templates
Components 26
Patient care
- Practitioners
healthcare/healthcare/doctype/healthcare_practitioner/healthcare_practitioner.py - Appointments
healthcare/healthcare/doctype/appointment_type/appointment_type.py - Patients
healthcare/healthcare/doctype/patient/patient.py - Encounters
healthcare/healthcare/doctype/patient_encounter/patient_encounter.py - Inpatient care
healthcare/healthcare/doctype/inpatient_record/inpatient_record.py - Service requests
healthcare/healthcare/doctype/service_request/service_request.py - Request lifecycle
healthcare/controllers/service_request_controller.py
Clinical services
- Clinical procedures
healthcare/healthcare/doctype/clinical_procedure_template/clinical_procedure_template.py - Observations
healthcare/healthcare/doctype/observation/observation.py - Observation templates
healthcare/healthcare/doctype/observation_template/observation_template.py - Sample collection
healthcare/healthcare/doctype/sample_collection/sample_collection.py - Laboratory management
healthcare/healthcare/doctype/lab_test/lab_test_list.js - Rehabilitation
healthcare/healthcare/doctype/therapy_session/therapy_session.py - Inpatient medication
healthcare/healthcare/doctype/inpatient_medication_entry/inpatient_medication_entry.py
Facility operations
- Service units
healthcare/healthcare/doctype/healthcare_service_unit/healthcare_service_unit.py - Fee validity
healthcare/healthcare/doctype/fee_validity/fee_validity.py - Healthcare settings
healthcare/healthcare/doctype/healthcare_settings/healthcare_settings.py
Billing and insurance
- Patient coverage
healthcare/healthcare/doctype/patient_insurance_coverage/patient_insurance_coverage.py - Insurance policies
healthcare/healthcare/doctype/patient_insurance_policy/patient_insurance_policy.py - Insurance payors
healthcare/healthcare/doctype/insurance_payor/insurance_payor.py - Item eligibility
healthcare/healthcare/doctype/item_insurance_eligibility/item_insurance_eligibility.py - ERPNext accounts
Configuration and integration
- Healthcare setup
healthcare/setup.py - India ABDM
healthcare/regional/india/abdm/abdm_config.py - ABDM utilities
healthcare/regional/india/abdm/utils.py
Other components
- Healthcare staff
Connections 23
- Healthcare staff → Appointments: uses care workflows
README.md - Service requests → Request lifecycle: inherits lifecycle
healthcare/healthcare/doctype/service_request/service_request.py - Service requests → Patient coverage: creates coverage
healthcare/healthcare/doctype/service_request/service_request.py - Service requests → Clinical procedures: creates procedure
healthcare/healthcare/doctype/service_request/service_request.py - Service requests → Sample collection: creates collection
healthcare/healthcare/doctype/service_request/service_request.py - Service requests → Observations: uses observations
healthcare/healthcare/doctype/service_request/service_request.py - Service requests → Observation templates: reads template
healthcare/healthcare/doctype/service_request/service_request.py - Sample collection → Observations: uses observations
healthcare/healthcare/doctype/sample_collection/sample_collection.py - Sample collection → Observation templates: uses templates
healthcare/healthcare/doctype/sample_collection/sample_collection.py - Observation templates → Clinical procedures: delegates pricing
healthcare/healthcare/doctype/observation_template/observation_template.py - Patient coverage → Insurance policies: checks policy
healthcare/healthcare/doctype/patient_insurance_coverage/patient_insurance_coverage.py - Patient coverage → Insurance payors: reads payor
healthcare/healthcare/doctype/patient_insurance_coverage/patient_insurance_coverage.py - Patient coverage → Item eligibility: checks eligibility
healthcare/healthcare/doctype/patient_insurance_coverage/patient_insurance_coverage.py - Inpatient medication → Healthcare settings: reads settings
healthcare/healthcare/doctype/inpatient_medication_entry/inpatient_medication_entry.py - ABDM utilities → India ABDM: reads configuration
healthcare/regional/india/abdm/utils.py - Practitioners → Service units: facility mapping
README.md - Appointments → Encounters: outpatient care
README.md - Inpatient care → Inpatient medication: inpatient services
README.md - Service requests → Laboratory management: laboratory capability
README.md - Service requests → Rehabilitation: rehabilitation capability
README.md - Fee validity → ERPNext accounts: billing integration
README.md - Patient coverage → ERPNext accounts: accounts integration
README.md - Healthcare setup → India ABDM: configures integration
healthcare/setup.py