Merge pull request #21276 from ruchamahabal/patch-fix

fix: patch for Healthcare Refactoring
This commit is contained in:
sahil28297 2020-04-15 11:59:12 +05:30 committed by GitHub
commit 0ebcb4733a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ def execute():
for entry in encounter_details:
doc = frappe.get_doc('Patient Encounter', entry.name)
symptoms = entry.symptoms.split('\n')
symptoms = entry.symptoms.split('\n') if entry.symptoms else []
for symptom in symptoms:
if not frappe.db.exists('Complaint', symptom):
frappe.get_doc({
@ -112,7 +112,7 @@ def execute():
})
row.db_update()
diagnosis = entry.diagnosis.split('\n')
diagnosis = entry.diagnosis.split('\n') if entry.diagnosis else []
for d in diagnosis:
if not frappe.db.exists('Diagnosis', d):
frappe.get_doc({