Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/helper/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ sed -i 's/schedule:/# schedule:/g' Procfile
sed -i 's/socketio:/# socketio:/g' Procfile
sed -i 's/redis_socketio:/# redis_socketio:/g' Procfile

bench get-app payments
bench get-app payments --branch "$BRANCH_TO_CLONE"
bench get-app https://github.com/frappe/erpnext --branch "$BRANCH_TO_CLONE"
bench get-app healthcare "${GITHUB_WORKSPACE}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ frappe.ui.form.on('Appointment Type', {
return {
filters: {'name': ['=', 'Medical Department']}
};
} else if (frm.doc.allow_booking_for === "Service Unit") {
} else if (frm.doc.allow_booking_for === 'Service Unit') {
return {
filters: {'name': ['=', 'Healthcare Service Unit']}
};
Expand All @@ -25,21 +25,19 @@ frappe.ui.form.on('Appointment Type', {
let child = locals[cdt][cdn];
if (child.dt === 'Medical Department') {
let item_list = doc.items
.filter(item => item.dt === 'Medical Department')
.map(({dn}) => dn);
.filter(item => item.dt === 'Medical Department' && item.dn)
.map(({ dn }) => dn);
return {
filters: [
['Medical Department', 'name', 'not in', item_list]
]
filters: [['Medical Department', 'name', 'not in', item_list]],
};
} else if (child.dt === 'Healthcare Service Unit') {
let item_list = doc.items
.filter(item => item.dt === 'Healthcare Service Unit')
.map(({dn}) => dn);
.filter(item => item.dt === 'Healthcare Service Unit' && item.dn)
.map(({ dn }) => dn);
return {
filters: [
['Healthcare Service Unit', 'name', 'not in', item_list],
['Healthcare Service Unit', 'allow_appointments', "=", 1],
['Healthcare Service Unit', 'allow_appointments', '=', 1],
]
};
}
Expand Down
2 changes: 1 addition & 1 deletion healthcare/healthcare/doctype/healthcare.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
def get_data():
def get_data(data=None):
return []
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from frappe import _


def get_data():
def get_data(data=None):
return {
"heatmap": True,
"heatmap_message": _("This is based on transactions against this Healthcare Practitioner."),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
"label": "Reference Text"
},
{
"depends_on": "eval:doc.permitted_data_type!=\"Quantity\";",
"fieldname": "column_break_l8sr",
"fieldtype": "Column Break"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from frappe import _


def get_data():
def get_data(data=None):
return {
"heatmap": True,
"heatmap_message": _(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def insert_observation(selected, sample_collection, component_observations=None,
sample_col_doc = frappe.db.get_value(
"Sample Collection",
sample_collection,
["reference_name", "patient", "referring_practitioner"],
["reference_name", "reference_doc", "patient", "referring_practitioner"],
as_dict=1,
)
selected = json.loads(selected)
Expand Down
Loading