From 63a4a5bfc01513a173216a0a8984ab3ef0cd0c81 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 31 Dec 2020 12:50:43 +0530 Subject: Deprecate plural functions. * ksh-discharge.el (forms-format-list, form-to-org): Deprecate form-entries, single-line-org-entries, multi-line-org-entries. * ksh-scan2.el (forms-format-list): Deprecate form-entries. (form-to-org): Deprecate single-line-org-entries, multi-line-org-entries. * ksh-scan3.el (forms-format-list, form-to-org): Deprecate form-entries, single-line-org-entries, multi-line-org-entries. * ksh-forms-improved.el (single-line-org-entries, multi-line-org-entries, form-entries): Delete functions. squash! Deprecate plural functions. --- ksh-discharge.el | 72 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'ksh-discharge.el') diff --git a/ksh-discharge.el b/ksh-discharge.el index 9bd0e6d..4aa382d 100644 --- a/ksh-discharge.el +++ b/ksh-discharge.el @@ -20,44 +20,44 @@ (setq forms-format-list (append (list "Discharge Summary\n\n") - (form-entries - '(("IP/OP No" . ip-op-no) - ("Age" . age) - ("Sex" . sex) - ("Name of Patient" . patient-name) - ("Address" . address) - ("Date of Admission" . admission-date) - ("Date of Discharge" . discharge-date) - ("Diagnosis" . diagnosis) - ("Surgical Procedure" . surgical-procedure) - ("History" . history) - ("Clinical Examination" . clinical-examination) - ("Course in Hospital" . course-in-hospital) - ("Investigation" . investigation) - ("Treatment" . treatment) - ("Condition on Discharge" . condition-on-discharge) - ("Advice" . advice))))) + (seq-mapcat 'form-entry + '(("IP/OP No" . ip-op-no) + ("Age" . age) + ("Sex" . sex) + ("Name of Patient" . patient-name) + ("Address" . address) + ("Date of Admission" . admission-date) + ("Date of Discharge" . discharge-date) + ("Diagnosis" . diagnosis) + ("Surgical Procedure" . surgical-procedure) + ("History" . history) + ("Clinical Examination" . clinical-examination) + ("Course in Hospital" . course-in-hospital) + ("Investigation" . investigation) + ("Treatment" . treatment) + ("Condition on Discharge" . condition-on-discharge) + ("Advice" . advice))))) (setq form-to-org (lambda () (with-output-to-string (make-report-header "DISCHARGE SUMMARY") - (single-line-org-entries - `(("IP/OP No" . ,ip-op-no) - ("Age" . ,age) - ("Sex" . ,sex) - ("Name of Patient" . ,patient-name) - ("Date of Admission" . ,admission-date) - ("Date of Discharge" . ,discharge-date))) - (multi-line-org-entries - `(("Address" . ,address) - ("Diagnosis" . ,diagnosis) - ("Surgical Procedure" . ,surgical-procedure) - ("History" . ,history) - ("Clinical Examination" . ,clinical-examination) - ("Course in Hospital" . ,course-in-hospital) - ("Investigation" . ,investigation) - ("Treatment" . ,treatment) - ("Condition on Discharge" . ,condition-on-discharge) - ("Advice" . ,advice) - ("Signature of the Medical Officer" . "")))))) + (seq-do 'single-line-org-entry + `(("IP/OP No" . ,ip-op-no) + ("Age" . ,age) + ("Sex" . ,sex) + ("Name of Patient" . ,patient-name) + ("Date of Admission" . ,admission-date) + ("Date of Discharge" . ,discharge-date))) + (seq-do 'multi-line-org-entry + `(("Address" . ,address) + ("Diagnosis" . ,diagnosis) + ("Surgical Procedure" . ,surgical-procedure) + ("History" . ,history) + ("Clinical Examination" . ,clinical-examination) + ("Course in Hospital" . ,course-in-hospital) + ("Investigation" . ,investigation) + ("Treatment" . ,treatment) + ("Condition on Discharge" . ,condition-on-discharge) + ("Advice" . ,advice) + ("Signature of the Medical Officer" . "")))))) -- cgit v1.2.3