Diagnosis Templates
Create reusable diagnosis sets with ICD-10 codes for common conditions
Overview
Diagnosis templates in SehaFile allow doctors to save frequently used combinations of ICD-10 diagnoses as reusable sets. Many clinical conditions involve multiple related diagnoses (e.g., Type 2 Diabetes often comes with Hypertension and Dyslipidemia). Templates let you apply a complete diagnosis set with one click, ensuring consistent and accurate clinical coding across all visits.
Creating a Diagnosis Template
- Navigate to Settings > Templates > Diagnosis — Click Settings, go to Templates, and select the Diagnosis sub-tab.
- Click "New Diagnosis Template" — The template form appears.
- Enter template name — Fill in name_ar (required) and name_en (optional). Use a descriptive name like "متلازمة الأيض" / "Metabolic Syndrome".
- Select specialty — Choose the relevant specialty to help filter templates during visits.
- Add diagnoses — For each diagnosis in the set:
- Search ICD-10 codes using the autocomplete field (ICD10Autocomplete component)
- Select the code (e.g., E11 for Type 2 Diabetes Mellitus)
- Enter description_ar and description_en
- Mark one as is_primary (the main reason for visit)
- Set sharing — Toggle is_shared to make available clinic-wide.
- Save — Click Save. The template is ready for use.
Diagnosis template editor showing ICD-10 code search with primary/secondary designation
Applying Templates During a Visit
In the visit form's diagnosis section (DiagnosisInput component), click the Templates icon. Search by name or specialty. Clicking Apply inserts all diagnoses from the template into the current visit. You can then add or remove individual diagnoses as needed.
Frequently Asked Questions
Can a template have multiple primary diagnoses?
No. Only one diagnosis per template (and per visit) should be marked as primary. This is the main condition being treated. All others are secondary/associated diagnoses.
Are ICD-10 codes validated?
Yes. The system uses a built-in icd10_codes table. Only valid codes can be added. The autocomplete searches by code and description in both Arabic and English.
Can nurses or receptionists use diagnosis templates?
Only staff with visits.create or visits.edit permissions can apply diagnosis templates. Typically this is limited to doctors.
Was this article helpful?