Rename diagnosis step label
This commit is contained in:
@@ -822,8 +822,8 @@ function renderOrderForm(step, stepKey = "demografi", fppTests = [], mouId = "")
|
||||
const packedGroups = packFppGroupsIntoColumns(fppGroups, 5);
|
||||
const steps = [
|
||||
["demografi", "Demografi", "Patient identity and contact details."],
|
||||
["diagnosa", "Diagnosa", "Clinical indication and diagnosis."],
|
||||
["pemeriksaan", "Pemeriksaan", "Choose examination groups."],
|
||||
["diagnosa", "Diagnosis", "Clinical indication and diagnosis."],
|
||||
["pemeriksaan", "Test", "Choose examination groups."],
|
||||
];
|
||||
const normalizedStep = steps.some((item) => item[0] === stepKey) ? stepKey : "demografi";
|
||||
const activeIndex = Math.max(0, steps.findIndex((item) => item[0] === normalizedStep));
|
||||
@@ -850,7 +850,7 @@ function renderOrderForm(step, stepKey = "demografi", fppTests = [], mouId = "")
|
||||
diagnosa: `
|
||||
<div class="stack">
|
||||
<div class="panel" style="padding:0; box-shadow:none; background:transparent; border:0">
|
||||
${panelHeader("Mandatory", "")}
|
||||
${panelHeader("Diagnosis", "")}
|
||||
<div class="grid grid-2">
|
||||
<label class="field" style="grid-column:1/-1"><span>Diagnosis</span><input name="patient_diagnosa" required /></label>
|
||||
</div>
|
||||
@@ -866,7 +866,7 @@ function renderOrderForm(step, stepKey = "demografi", fppTests = [], mouId = "")
|
||||
pemeriksaan: `
|
||||
<div class="stack">
|
||||
<div class="panel" style="padding:0; box-shadow:none; background:transparent; border:0">
|
||||
${panelHeader("Mandatory", "", '<button class="btn btn-primary" type="submit">Submit order</button>')}
|
||||
${panelHeader("Tests", "", '<button class="btn btn-primary" type="submit">Submit order</button>')}
|
||||
<div class="note-box fpp-selection-summary">
|
||||
<strong>Selected tests</strong>
|
||||
<p id="order-selected-count">0 selected</p>
|
||||
|
||||
Reference in New Issue
Block a user