fix: stop injecting Diagnosis SNOMED lines into Prescription textarea — data is in diagnosis_json; strip legacy lines on save
This commit is contained in:
parent
e81ca3d238
commit
02ec0034d7
|
|
@ -598,12 +598,10 @@ class Opd_prescription extends BaseController
|
|||
);
|
||||
}
|
||||
|
||||
if ($this->hasAnyPatientHistoryField($unmappedDiagnosisCoding)) {
|
||||
$payload['Prescriber_Remarks'] = $this->upsertDiagnosisCodingIntoRemarks(
|
||||
(string) ($payload['Prescriber_Remarks'] ?? ''),
|
||||
$unmappedDiagnosisCoding
|
||||
);
|
||||
}
|
||||
// Strip any legacy SNOMED lines previously embedded in remarks (no longer injected)
|
||||
$payload['Prescriber_Remarks'] = $this->stripDiagnosisCodingFromRemarks(
|
||||
(string) ($payload['Prescriber_Remarks'] ?? '')
|
||||
);
|
||||
|
||||
if (!in_array('women_related_problems', $fields, true)) {
|
||||
$womenText = trim((string) ($payload['women_related_problems'] ?? ''));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user