-1)return e.name.split(":")[1]})},_addLocationColumn:function(e){var t=this;if(!n.default.isEmpty(e)){var a=function(){var n=[];return e.forEach(function(e){var t=void 0;t=0===e.name.indexOf("From:")?e.name:this._getWarehouseLocationName(e.name),n.includes(t)||n.push(t)}.bind(t)),{v:n}}();if("object"==typeof a)return a.v}},_addReportRow:function(e,t,a,l){!n.default.isEmpty(l)||n.default.isEmpty(e.inventoryItem)||n.default.isEmpty(e.inventoryItem.id)||(l={action:"viewInventory",model:e.inventoryItem.id}),this._super(e,t,a,l)},_addTotalsRow:function(e,t,n){n>0&&this._addReportRow({totalCost:e+this._numberFormat(t),quantity:e+this._numberFormat(n),unitCost:e+this._numberFormat(t/n)},!0)},_adjustLocation:function(e,t,a,l){var s=e.findBy("name",t);n.default.isEmpty(s)&&(s={name:t,quantity:0},e.push(s)),l?s.quantity+=a:s.quantity-=a},_adjustPurchase:function(e,t,a,l){var s=e.findBy("id",t);if(!n.default.isEmpty(s)){var i=s.calculatedQuantity;l?i+=a:i-=a,s.calculatedQuantity=i}},_calculateCosts:function(e,t){return n.default.isEmpty(e)||e.forEach(function(e){var n=this._calculateCostPerUnit(e),a=e.calculatedQuantity;t.quantity+=e.calculatedQuantity,t.totalCost+=a*n}.bind(this)),0===t.totalCost||0===t.quantity?t.unitCost=0:t.unitCost=t.totalCost/t.quantity,t},_calculateUsage:function(e,t){return n.default.isEmpty(e)||e.forEach(function(e){var n=this._calculateCostPerUnit(e),a=e.calculatedQuantity;t.quantity-=e.calculatedQuantity,t.totalCost-=a*n}.bind(this)),0===t.totalCost||0===t.quantity?t.unitCost=0:t.unitCost=t.totalCost/t.quantity,t},_calculateCostPerUnit:function(e){var t=e.purchaseCost,a=parseInt(e.originalQuantity);return n.default.isEmpty(t)||n.default.isEmpty(a)?0:Number((t/a).toFixed(2))},_findInventoryItems:function(e,t,a,l){n.default.isEmpty(a)&&(a={});var s=this.get("database");return new n.default.RSVP.Promise(function(i,o){s.queryMainDB(e,t).then(function(e){var t=Object.keys(a),r=[];n.default.isEmpty(e.rows)||e.rows.forEach(function(e){e.doc.inventoryItem&&!t.includes(e.doc.inventoryItem)&&(r.push(s.getPouchId(e.doc.inventoryItem,"inventory")),t.push(e.doc.inventoryItem))}),this._getInventoryItems(r,a).then(function(t){e.rows.forEach(function(e){var a=t[e.doc.inventoryItem];if(!n.default.isEmpty(a)&&("purchaseObjects"!==l||a.purchases.includes(e.doc.id))){var s=a[l];n.default.isEmpty(s)&&(s=[]),s.push(e.doc),a[l]=s}}),i(t)},o)}.bind(this),o)}.bind(this))},_findInventoryItemsByPurchase:function(e,t){return this._findInventoryItems({startkey:[e.startTime,"invPurchase_"],endkey:[e.endTime,"invPurchase_"],include_docs:!0},"inventory_purchase_by_date_received",t,"purchaseObjects")},_findInventoryItemsByRequest:function(e,t){return this._findInventoryItems({startkey:["Completed",e.startTime,"invRequest_"],endkey:["Completed",e.endTime,"invRequest_"],include_docs:!0},"inventory_request_by_status",t,"requestObjects")},_finishExpenseReport:function(e){var t=this.get("expenseCategories"),a=this.get("expenseMap"),l=this.get("i18n");t.forEach(function(t){var s=0,i=void 0,o=void 0;this._addReportRow({inventoryItem:{name:l.t("inventory.reports.rows.expensesFor")+t}}),a[t].expenseAccounts.forEach(function(a){"detailedExpense"===e&&a.reportRows.forEach(function(e){this._addReportRow(e)}.bind(this)),i=n.default.isEmpty(a.name)?l.t("inventory.reports.rows.noAccount"):a.name,o=l.t("inventory.reports.rows.subtotalFor",{category:t,account:i}),this._addReportRow({totalCost:o+this._numberFormat(a.total)},!0),s+=a.total}.bind(this)),o=l.t("inventory.reports.rows.totalFor",{var:t}),this._addReportRow({totalCost:o+this._numberFormat(s)},!0),this.incrementProperty("grandCost",s)}.bind(this)),this._addReportRow({totalCost:l.t("inventory.reports.rows.total")+this._numberFormat(this.get("grandCost"))},!0)},_finishLocationReport:function(){var e="",t=0,n=this.get("locationSummary"),a="",l=0,s=this.get("i18n");n=n.sortBy("name"),n.forEach(function(n){a=this._getWarehouseLocationName(n.name);var i=s.t("inventory.reports.rows.totalFor",{var:e});if(e!==a&&(this._addTotalsRow(i,t,l),l=0,t=0,e=a),this._includeLocation(a))for(var o in n.items)n.items[o].quantity>0&&(this._addReportRow({giftInKind:n.items[o].giftInKind,inventoryItem:n.items[o].item,quantity:n.items[o].quantity,locations:[{name:n.name}],totalCost:n.items[o].totalCost,unitCost:n.items[o].unitCost}),l+=this._getValidNumber(n.items[o].quantity),t+=this._getValidNumber(n.items[o].totalCost),this.incrementProperty("grandCost",this._getValidNumber(n.items[o].totalCost)),this.incrementProperty("grandQuantity",this._getValidNumber(n.items[o].quantity)))}.bind(this)),l>0&&this._addTotalsRow(s.t("inventory.reports.rows.totalFor",{var:a}),t,l)},_generateExpirationReport:function(){var e=0,t=this.get("database"),a=this.get("reportRows"),l=this._getDateQueryParams();t.queryMainDB({startkey:[l.startTime,"invPurchase_"],endkey:[l.endTime,"invPurchase_"],include_docs:!0},"inventory_purchase_by_expiration_date").then(function(l){var s=[],o=[];l.rows.forEach(function(e){e.doc.currentQuantity>0&&!n.default.isEmpty(e.doc.expirationDate)&&(s.push(e.doc),o.push(t.getPouchId(e.doc.inventoryItem,"inventory")))}.bind(this)),this._getInventoryItems(o).then(function(t){var n=this.get("i18n");s.forEach(function(n){var l=n.currentQuantity,s=new Date(n.expirationDate),o=t[n.inventoryItem];o&&this._includeLocation(n.location)&&(a.addObject([o.friendlyId,o.name,l,o.distributionUnit,(0,i.default)(s).format("l"),this.formatLocationName(n.location,n.aisleLocation)]),e+=l)}.bind(this)),a.addObject(["","",n.t("inventory.reports.rows.total")+e,"",""]),this.set("showReportResults",!0),this.set("reportHeaders",[n.t("labels.id"),n.t("labels.name"),n.t("inventory.labels.currentQuantity"),n.t("inventory.labels.distributionUnit"),n.t("inventory.labels.expirationDate"),n.t("inventory.labels.location")]),this._generateExport(),this._setReportTitle(),this.closeProgressModal()}.bind(this))}.bind(this))},_generateFinancialSummaryReport:function(){var e=this._getDateQueryParams();this._calculateBeginningBalance(e).then(function(t){this._generateSummaries(e).then(function(e){var n=this._numberFormat(t+e),a=this.get("i18n");t+e<0?this.get("reportRows").addObject([a.t("inventory.reports.rows.balanceEnd"),"","("+n+")"]):this.get("reportRows").addObject([a.t("inventory.reports.rows.balanceEnd"),"",n]),this.set("showReportResults",!0),this.set("reportHeaders",[a.t("inventory.reports.rows.category"),a.t("labels.type"),a.t("inventory.labels.total")]),this._generateExport(),this._setReportTitle(),this.closeProgressModal()}.bind(this),function(e){this._notifyReportError(this.get("i18n").t("inventory.reports.rows.errInFinSum")+e)}.bind(this))}.bind(this))},_generateSummaries:function(e){return new n.default.RSVP.Promise(function(t,a){var l=0,s=this.get("i18n");this._findInventoryItemsByRequest(e,{}).then(function(i){this._findInventoryItemsByPurchase(e,i).then(function(e){var a={},i={},o={},r={};if(this.get("adjustmentTypes").forEach(function(e){r[e.type]=[]}),Object.keys(e).forEach(function(t){if(!n.default.isEmpty(t)&&!n.default.isEmpty(e[t])){var l=e[t];n.default.isEmpty(l.purchaseObjects)||l.purchaseObjects.forEach(function(e){a[l.inventoryType]=this._getValidNumber(a[l.inventoryType])+this._getValidNumber(e.purchaseCost)}.bind(this)),n.default.isEmpty(l.requestObjects)||l.requestObjects.forEach(function(e){e.adjustPurchases&&("Fulfillment"===e.transactionType?e.giftInKind?o[l.inventoryType]=this._getValidNumber(o[l.inventoryType])+this._getValidNumber(e.quantity*e.costPerUnit):i[l.inventoryType]=this._getValidNumber(i[l.inventoryType])+this._getValidNumber(e.quantity*e.costPerUnit):r[e.transactionType][l.inventoryType]=this._getValidNumber(r[e.transactionType][l.inventoryType])+this._getValidNumber(e.quantity*e.costPerUnit))}.bind(this))}}.bind(this)),Object.keys(a).length>0){var d=0;this.get("reportRows").addObject([s.t("inventory.labels.purchases"),"",""]),Object.keys(a).forEach(function(e){var t=this._getValidNumber(a[e]);d+=t,this.get("reportRows").addObject(["",e,this._numberFormat(t)])}.bind(this)),this.get("reportRows").addObject([s.t("inventory.reports.rows.totalPurchases"),"",this._numberFormat(d)]),l+=d}if(Object.keys(i).length>0||Object.keys(o).length>0){this.get("reportRows").addObject([s.t("inventory.reports.rows.consumed"),"",""]);var c=0;if(Object.keys(i).length>0){this.get("reportRows").addObject([s.t("inventory.reports.rows.consumedPuchases"),"",""]);var u=0;Object.keys(i).forEach(function(e){var t=this._getValidNumber(i[e]);u+=t,this.get("reportRows").addObject(["",e,"("+this._numberFormat(t)+")"])}.bind(this)),c+=u,this.get("reportRows").addObject([s.t("inventory.reports.rows.consumedPurchasesTotal"),"","("+this._numberFormat(u)+")"])}if(Object.keys(o).length>0){this.get("reportRows").addObject([s.t("inventory.reports.rows.consumedGik"),"",""]);var p=0;Object.keys(o).forEach(function(e){var t=this._getValidNumber(o[e]);p+=t,this.get("reportRows").addObject(["",e,"("+this._numberFormat(t)+")"])}.bind(this)),c+=p,this.get("reportRows").addObject([s.t("inventory.reports.rows.consumedGikTotal"),"","("+this._numberFormat(p)+")"])}this.get("reportRows").addObject([s.t("inventory.reports.rows.consumedTotal"),"","("+this._numberFormat(c)+")"]),l-=c}var m=0;this.get("reportRows").addObject([s.t("inventory.reports.rows.adjustments"),"",""]),Object.keys(r).forEach(function(e){Object.keys(r[e]).length>0&&(this.get("reportRows").addObject([e,"",""]),Object.keys(r[e]).forEach(function(t){var n=this._getValidNumber(r[e][t]);"Adjustment (Add)"===e||"Return"===e?(m+=n,this.get("reportRows").addObject(["",t,this._numberFormat(n)])):(m-=n,this.get("reportRows").addObject(["",t,"("+this._numberFormat(n)+")"]))}.bind(this)))}.bind(this)),m<0?this.get("reportRows").addObject([s.t("inventory.reports.rows.adjustmentsTotal"),"","("+this._numberFormat(m)+")"]):this.get("reportRows").addObject([s.t("inventory.reports.rows.adjustmentsTotal"),"",this._numberFormat(m)]),l+=m,t(l)}.bind(this),a)}.bind(this),a)}.bind(this))},_calculateBeginningBalance:function(e){return new n.default.RSVP.Promise(function(t,a){var l={startTime:null,endTime:e.startTime},s=0,i=this.get("i18n");this._findInventoryItemsByRequest(l,{}).then(function(e){this._findInventoryItemsByPurchase(l,e).then(function(e){Object.keys(e).forEach(function(t){if(!n.default.isEmpty(t)&&!n.default.isEmpty(e[t])){var a=e[t],l=a.purchaseObjects,i=a.requestObjects,o={inventoryItem:a,quantity:0,unitCost:0,totalCost:0};n.default.isEmpty(l)||l.forEach(function(e){var t=e.originalQuantity;e.calculatedQuantity=t}),n.default.isEmpty(i)||i.forEach(function(e){var t=e.adjustPurchases,a=!1,s=e.purchasesAffected,i=e.transactionType;a="Adjustment (Add)"===i||"Return"===i,t&&(n.default.isEmpty(s)||n.default.isEmpty(l)||s.forEach(function(e){this._adjustPurchase(l,e.id,e.quantity,a)}.bind(this)))}.bind(this)),n.default.isEmpty(l)||(o=this._calculateCosts(l,o),s+=this._getValidNumber(o.totalCost))}}.bind(this)),s<0?this.get("reportRows").addObject([i.t("inventory.reports.rows.balanceBegin"),"","("+this._numberFormat(s)+")"]):this.get("reportRows").addObject([i.t("inventory.reports.rows.balanceBegin"),"",this._numberFormat(s)]),t(s)}.bind(this),a)}.bind(this),a)}.bind(this))},_generateInventoryReport:function(){this.set("grandCost",0),this.set("grandQuantity",0),this.set("locationSummary",[]);var e=void 0,t=this.get("locationSummary"),a=this.get("reportType"),l=this._getDateQueryParams(),s=this.get("i18n");if("daysLeft"===a){var o=this.get("endDate"),r=this.get("startDate");if(n.default.isEmpty(o)||n.default.isEmpty(r))return void this.closeProgressModal();e=(0,i.default)(o).diff(r,"days")}this._findInventoryItemsByRequest(l,{}).then(function(o){this._findInventoryItemsByPurchase(l,o).then(function(l){switch(Object.keys(l).forEach(function(o){if(!n.default.isEmpty(l[o])){var r=l[o],d=r.purchaseObjects,c=r.requestObjects,u={giftInKind:"N",inventoryItem:r,quantity:0,unitCost:0,totalCost:0,locations:[],vendors:[]};n.default.isEmpty(d)||d.forEach(function(e){var t=this.getDisplayLocationName(e.location,e.aisleLocation),a=e.originalQuantity;e.calculatedQuantity=a,!0===e.giftInKind&&(u.giftInKind="Y"),n.default.isEmpty(e.vendor)||u.vendors.includes(e.vendor)||u.vendors.push(e.vendor),this._adjustLocation(u.locations,t,a,!0)}.bind(this)),n.default.isEmpty(c)||c.forEach(function(e){var t=e.adjustPurchases,a=e.transactionType,l=!1,s=e.locationsAffected,i=e.purchasesAffected;if(l="Adjustment (Add)"===a||"Return"===a,t)n.default.isEmpty(i)||n.default.isEmpty(d)||i.forEach(function(e){this._adjustPurchase(d,e.id,e.quantity,l)}.bind(this));else if("Transfer"===a){var o=this.getDisplayLocationName(e.deliveryLocation,e.deliveryAisle);this._adjustLocation(u.locations,o,e.quantity,!0)}s.forEach(function(e){this._adjustLocation(u.locations,e.name,e.quantity,l)}.bind(this))}.bind(this));var p=0,m=0;switch(a){case"byLocation":u.locations.forEach(function(e){var a=t.findBy("name",this._getWarehouseLocationName(e.name));n.default.isEmpty(a)?(a=n.default.copy(e),a.items={},t.push(a)):a.quantity+=this._getValidNumber(e.quantity);var l=this._calculateCosts(d,{quantity:0,totalCost:0});a.items[r.id]={item:r,quantity:this._getValidNumber(e.quantity),giftInKind:u.giftInKind,totalCost:this._getValidNumber(l.unitCost)*this._getValidNumber(e.quantity),unitCost:this._getValidNumber(l.unitCost)}}.bind(this));break;case"daysLeft":if(!n.default.isEmpty(c)&&this._hasIncludedLocation(u.locations)){var f=c.reduce(function(e,t){return"Fulfillment"===t.transactionType?e+=this._getValidNumber(t.quantity):e}.bind(this),0);u.quantity=this._getValidNumber(r.quantity),f>0?(u.consumedPerDay=this._numberFormat(f/e,!0),u.daysLeft=this._numberFormat(u.quantity/u.consumedPerDay)):(u.consumedPerDay=0===f?"0":"?"+f,u.daysLeft="?"),this._addReportRow(u)}break;case"detailedAdjustment":case"detailedTransfer":case"detailedUsage":case"detailedExpense":case"summaryExpense":n.default.isEmpty(c)||(c.forEach(function(e){var t=this;this._includeTransaction(a,e.transactionType)&&this._hasIncludedLocation(e.locationsAffected)&&function(){var n=t.getDisplayLocationName(e.deliveryLocation,e.deliveryAisle),l=[],o=t._getValidNumber(e.quantity),r=t._getValidNumber(e.quantity)*t._getValidNumber(e.costPerUnit);l=e.locationsAffected.map(function(e){return"detailedTransfer"===a?{name:s.t("inventory.reports.rows.transfer2",{source:e.name,target:n}).toString()}:{name:s.t("inventory.reports.rows.transfer1",{quantity:o,location:e.name}).toString()}}.bind(t));var d={date:(0,i.default)(new Date(e.dateCompleted)).format("l"),expenseAccount:e.expenseAccount,giftInKind:u.giftInKind,inventoryItem:u.inventoryItem,quantity:e.quantity,transactionType:e.transactionType,locations:l,unitCost:e.costPerUnit,totalCost:r};"detailedExpense"===a||"summaryExpense"===a?t._updateExpenseMap(e,d):(t._addReportRow(d),m+=t._getValidNumber(e.quantity),p+=t._getValidNumber(r))}()}.bind(this)),"detailedExpense"!==a&&"summaryExpense"!==a&&(this._addTotalsRow(s.t("inventory.reports.rows.subtotal"),p,m),this.incrementProperty("grandCost",p),this.incrementProperty("grandQuantity",m)));break;case"summaryTransfer":case"summaryUsage":!n.default.isEmpty(c)&&this._hasIncludedLocation(u.locations)&&(u.quantity=c.reduce(function(e,t){if(this._includeTransaction(a,t.transactionType)){var n=this._getValidNumber(t.quantity)*this._getValidNumber(t.costPerUnit);return p+=n,e+=this._getValidNumber(t.quantity)}return e}.bind(this),0),u.quantity>0&&(u.totalCost=p,u.unitCost=p/u.quantity,this._addReportRow(u),this.incrementProperty("grandCost",p),this.incrementProperty("grandQuantity",u.quantity)));break;case"detailedPurchase":n.default.isEmpty(d)||(d.forEach(function(e){if(this._includeLocation(e.location)){var t="N";!0===e.giftInKind&&(t="Y"),this._addReportRow({date:(0,i.default)(new Date(e.dateReceived)).format("l"),giftInKind:t,inventoryItem:u.inventoryItem,quantity:e.originalQuantity,unitCost:e.costPerUnit,totalCost:e.purchaseCost,locations:[{name:this.getDisplayLocationName(e.location,e.aisleLocation)}]}),p+=this._getValidNumber(e.purchaseCost),m+=this._getValidNumber(e.originalQuantity)}}.bind(this)),this._addTotalsRow(s.t("inventory.reports.rows.subtotal"),p,m),this.incrementProperty("grandCost",p),this.incrementProperty("grandQuantity",m));break;case"summaryPurchase":n.default.isEmpty(d)||(u.locations=[],u.quantity=d.reduce(function(e,t){p+=this._getValidNumber(t.purchaseCost);var n=this.getDisplayLocationName(t.location,t.aisleLocation);return u.locations.findBy("name",n)||u.locations.push({name:this.getDisplayLocationName(t.location,t.aisleLocation)}),e+=this._getValidNumber(t.originalQuantity)}.bind(this),0),this._hasIncludedLocation(u.locations)&&(u.unitCost=p/u.quantity,u.totalCost=p,this._addReportRow(u),this.incrementProperty("grandCost",p),this.incrementProperty("grandQuantity",u.quantity)));break;case"valuation":!n.default.isEmpty(d)&&this._hasIncludedLocation(u.locations)&&(this._calculateCosts(d,u),this.incrementProperty("grandCost",this._getValidNumber(u.totalCost)),this.incrementProperty("grandQuantity",this._getValidNumber(u.quantity)),this._addReportRow(u))}}}.bind(this)),a){case"detailedExpense":case"summaryExpense":this._finishExpenseReport(a);break;case"byLocation":this._finishLocationReport(),this._addTotalsRow(s.t("inventory.reports.rows.total"),this.get("grandCost"),this.get("grandQuantity"));break;default:this._addTotalsRow(s.t("inventory.reports.rows.total"),this.get("grandCost"),this.get("grandQuantity"))}this._finishReport()}.bind(this),function(e){this._notifyReportError(s.t("inventory.reports.rows.errInFindPur")+e)}.bind(this))}.bind(this),function(e){this._notifyReportError(s.t("inventory.reports.rows.errInFindPur")+e)}.bind(this))},_getDateQueryParams:function(){
+var e=this.get("endDate"),t=this.get("maxValue"),a=this.get("startDate"),l=void 0;return n.default.isEmpty(e)||(t=(0,i.default)(e).endOf("day").toDate().getTime()),n.default.isEmpty(a)||(l=(0,i.default)(a).startOf("day").toDate().getTime()),{endTime:t,startTime:l}},_getInventoryItems:function(e,t){var a=this.get("database");return new n.default.RSVP.Promise(function(l,s){n.default.isEmpty(t)&&(t={}),a.queryMainDB({keys:e,include_docs:!0}).then(function(e){e.rows.forEach(function(e){e.doc&&!0!==e.doc.archived&&(t[e.doc.id]=e.doc)}),l(t)},s)})},_getWarehouseLocationName:function(e){return e.indexOf(":")>-1?e.split(":")[0].trim():e},_hasIncludedLocation:function(e){var t=!1;return e.forEach(function(e){var n=this._getWarehouseLocationName(e.name);this._includeLocation(n)&&(t=!0)}.bind(this)),t},_includeLocation:function(e){var t=this.get("filterLocation");return n.default.isEmpty(t)||e===t},_includeTransaction:function(e,t){var n=0===e.indexOf("detailed"),a=void 0;if("detailedExpense"===e||"summaryExpense"===e)return!0;switch(t){case"Fulfillment":a=n?"detailedUsage":"summaryUsage";break;case"Transfer":a=n?"detailedTransfer":"summaryTransfer";break;default:a=n?"detailedAdjustment":"summaryAdjustment"}return e===a},_updateExpenseMap:function(e,t){var a=void 0,l=this.get("expenseMap"),s="Y"===t.giftInKind,i=!0;switch(e.transactionType){case"Fulfillment":case"Return":a=s?l["Gift In Kind Usage"]:l["Inventory Consumed"],"Return"===e.transactionType&&(i=!1);break;case"Adjustment (Add)":case"Adjustment (Remove)":case"Return To Vendor":case"Write Off":a=l["Inventory Obsolence"],"Adjustment (Add)"===e.transactionType&&(i=!1)}if(!n.default.isEmpty(a)){var o=a.expenseAccounts.findBy("name",e.expenseAccount);n.default.isEmpty(o)&&(o={name:e.expenseAccount,total:0,reportRows:[]},a.expenseAccounts.push(o)),o.reportRows.push(t);var r=this._getValidNumber(e.quantity)*this._getValidNumber(e.costPerUnit);i?(a.total+=r,o.total+=r):(a.total=a.total-r,o.total=o.total-r,t.totalCost=-1*t.totalCost)}},actions:{generateReport:function(){var e=this,t=this.get("endDate"),a=this.get("reportRows"),l=this.get("reportType"),s=this.get("startDate");if(!n.default.isEmpty(s)||!n.default.isEmpty(t))switch(a.clear(),this.showProgressModal(),l){case"expiration":this._generateExpirationReport();break;case"summaryFinance":this._generateFinancialSummaryReport();break;case"detailedExpense":case"summaryExpense":if("break"===function(){var t=e.get("expenseCategories"),n={};return t.forEach(function(e){n[e]={total:0,expenseAccounts:[]}}),e.set("expenseMap",n),e._generateInventoryReport(),"break"}())break;default:this._generateInventoryReport()}},viewInventory:function(e){this.store.find("inventory",e).then(function(e){e.set("returnTo","inventory.reports"),this.transitionToRoute("inventory.edit",e)}.bind(this))}}})}),define("hospitalrun/inventory/reports/route",["exports","hospitalrun/routes/abstract-index-route","ember","ember-i18n"],function(e,t,n,a){e.default=t.default.extend({pageTitle:(0,a.translationMacro)("inventory.titles.inventoryReport"),model:function(){return n.default.RSVP.resolve(n.default.Object.create({}))}})}),define("hospitalrun/inventory/reports/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"LmDgYWk0",block:'{"statements":[["open-element","div",[]],["static-attr","class","panel panel-primary"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body"],["flush-element"],["text","\\n"],["block",["em-form"],null,[["model","submitButton"],[["get",[null]],false]],11],["text"," "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-footer"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-primary"],["modifier",["action"],[["get",[null]],"generateReport"]],["flush-element"],["append",["helper",["t"],["inventory.reports.generate"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["close-element"],["text","\\n"],["block",["if"],[["get",["showReportResults"]]],null,1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","th",[]],["flush-element"],["text","\\n "],["append",["get",["reportHeader"]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":["reportHeader"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","panel panel-primary"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-heading"],["flush-element"],["text","\\n "],["open-element","h3",[]],["static-attr","class","panel-title"],["flush-element"],["append",["unknown",["reportTitle"]],false],["append",["helper",["nav-paging"],null,[["paginationProps"],[["get",["paginationProps"]]]]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body"],["flush-element"],["text","\\n "],["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n"],["block",["each"],[["get",["reportHeaders"]]],null,0],["text"," "],["close-element"],["text","\\n "],["partial","report-rows"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-footer"],["flush-element"],["text","\\n "],["open-element","a",[]],["dynamic-attr","href",["unknown",["csvExport"]],null],["static-attr","target","_blank"],["dynamic-attr","download",["concat",[["unknown",["reportTitle"]],".csv"]]],["static-attr","class","btn btn-primary"],["flush-element"],["append",["helper",["t"],["inventory.reports.export"],null],false],["close-element"],["text","\\n\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","transactionType","label"]],"reportColumns.transactionType.include","col-xs-2"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","expenseAccount","label"]],"reportColumns.expenseAccount.include","col-xs-2"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","consumedPerDay","label"]],"reportColumns.consumedPerDay.include","col-xs-2"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","daysLeft","label"]],"reportColumns.daysLeft.include","col-xs-2"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","total","label"]],"reportColumns.total.include","col-xs-2"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","unitcost","label"]],"reportColumns.unitcost.include","col-xs-2"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","date","label"]],"reportColumns.date.include","col-xs-2"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","h3",[]],["flush-element"],["append",["helper",["t"],["inventory.reports.fields"],null],false],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","col-xs-1"],["flush-element"],["close-element"],["text","\\n"],["block",["if"],[["get",["includeDate"]]],null,6],["text"," "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","id","label"]],"reportColumns.id.include","col-xs-2"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","name","label"]],"reportColumns.name.include","col-xs-2"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","description","label"]],"reportColumns.description.include","col-xs-2"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","type","label"]],"reportColumns.type.include","col-xs-2"]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","col-xs-1"],["flush-element"],["close-element"],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","quantity","label"]],"reportColumns.quantity.include","col-xs-2"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","unit","label"]],"reportColumns.unit.include","col-xs-2"]]],false],["text","\\n"],["block",["if"],[["get",["includeCostFields"]]],null,5],["block",["if"],[["get",["includeDaysLeft"]]],null,4],["text"," "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","price","label"]],"reportColumns.price.include","col-xs-2"]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","col-xs-1"],["flush-element"],["close-element"],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","reorder","label"]],"reportColumns.reorder.include","col-xs-2"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","gift","label"]],"reportColumns.gift.include","col-xs-2"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","locations","label"]],"reportColumns.locations.include","col-xs-2"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","aisle","label"]],"reportColumns.aisle.include","col-xs-2"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","xref","label"]],"reportColumns.xref.include","col-xs-2"]]],false],["text","\\n\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","col-xs-1"],["flush-element"],["close-element"],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["reportColumns","vendor","label"]],"reportColumns.vendor.include","col-xs-2"]]],false],["text","\\n"],["block",["if"],[["get",["includeExpenseAccount"]]],null,3],["block",["if"],[["get",["includeTransactionType"]]],null,2],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["date-picker"],null,[["property","label","class"],["startDate",["helper",["t"],["inventory.labels.dateStart"],null],"col-sm-4 test-start-date"]]],false],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class"],["endDate",["helper",["t"],["inventory.labels.dateEnd"],null],"col-sm-4 test-end-date"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["date-picker"],null,[["property","label","class"],["endDate",["helper",["t"],["inventory.labels.dateEffective"],null],"col-sm-4"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-select"],null,[["class","label","property","content","prompt"],["col-xs-6",["helper",["t"],["inventory.labels.location"],null],"filterLocation",["get",["warehouseList"]]," "]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group col-xs-6"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["static-attr","for","report-type"],["flush-element"],["append",["helper",["t"],["inventory.reports.reportType"],null],false],["close-element"],["text","\\n "],["append",["helper",["select-list"],null,[["action","class","content","id","optionValuePath","optionLabelPath","value"],[["helper",["action"],[["get",[null]],["helper",["mut"],[["get",["reportType"]]],null]],null],"form-control",["get",["reportTypes"]],"report-type","value","name",["get",["reportType"]]]]],false],["text","\\n "],["close-element"],["text","\\n"],["block",["unless"],[["get",["hideLocationFilter"]]],null,10],["text"," "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n"],["block",["if"],[["get",["showEffectiveDate"]]],null,9,8],["text"," "],["close-element"],["text","\\n"],["block",["if"],[["get",["useFieldPicker"]]],null,7],["text","\\n"]],"locals":[]}],"hasPartials":true}',meta:{moduleName:"hospitalrun/inventory/reports/template.hbs"}})}),define("hospitalrun/inventory/request/controller",["exports","hospitalrun/controllers/abstract-edit-controller","hospitalrun/mixins/fulfill-request","hospitalrun/mixins/inventory-locations","ember"],function(e,t,n,a,l){e.default=t.default.extend(n.default,a.default,{inventoryController:l.default.inject.controller("inventory"),inventoryItems:null,cancelAction:"allRequests",warehouseList:l.default.computed.alias("inventoryController.warehouseList"),aisleLocationList:l.default.computed.alias("inventoryController.aisleLocationList"),expenseAccountList:l.default.computed.alias("inventoryController.expenseAccountList"),inventoryList:function(){var e=this.get("inventoryItems");if(!l.default.isEmpty(e)){return e.map(function(e){return e.doc})}}.property("inventoryItems.[]"),lookupListsToUpdate:[{name:"expenseAccountList",property:"model.expenseAccount",id:"expense_account_list"},{name:"aisleLocationList",property:"model.deliveryAisle",id:"aisle_location_list"},{name:"warehouseList",property:"model.deliveryLocation",id:"warehouse_list"}],canFulfill:function(){var e=this.get("model.requestedItems");return l.default.isEmpty(e)&&this.currentUserCan("fulfill_inventory")}.property("model.requestedItems.[]"),isFulfilling:function(){var e=this.get("canFulfill"),t=this.get("isRequested"),n=this.get("model.shouldFulfillRequest"),a=e&&(t||n);return a?l.default.isEmpty(this.get("model.dateCompleted"))&&this.set("model.dateCompleted",new Date):this.set("model.dateCompleted"),a}.property("isRequested","model.shouldFulfillRequest"),isRequested:function(){return"Requested"===this.get("model.status")}.property("model.status"),quantityLabel:function(){var e=this.get("selectedInventoryItem");return l.default.isEmpty(e)?this.get("i18n").t("labels.quantity").toString():this.get("i18n").t("inventory.labels.quantity",{unit:e.distributionUnit}).toString()}.property("selectedInventoryItem"),showRequestedItems:function(){var e=this.get("model.requestedItems");return!l.default.isEmpty(e)}.property("model.requestedItems.[]"),updateViaFulfillRequest:!1,updateButtonText:function(){return this.get("isFulfilling")?this.get("i18n").t("buttons.fulfill"):this._super()}.property("model.isNew","isFulfilling"),updateCapability:"add_inventory_request",actions:{addInventoryItem:function(){var e=this.get("model"),t=e.get("inventoryItem"),n=e.get("requestedItems"),a=e.get("quantity");e.validate().then(function(){if(e.get("isValid")&&!l.default.isEmpty(t)&&!l.default.isEmpty(a)){var s=l.default.Object.create({item:t.get("content"),quantity:a});n.addObject(s),e.set("inventoryItem"),e.set("inventoryItemTypeAhead"),e.set("quantity"),this.set("selectedInventoryItem")}}.bind(this)).catch(l.default.K)},allRequests:function(){this.transitionToRoute("inventory.index")},removeItem:function(e){var t=this.get("model.requestedItems"),n=e.itemToRemove;t.removeObject(n),this.send("closeModal")},showRemoveItem:function(e){var t=this.get("i18n").t("inventory.messages.removeItemRequest"),n=l.default.Object.create({itemToRemove:e}),a=this.get("i18n").t("inventory.titles.removeItem");this.displayConfirm(a,t,"removeItem",n)},update:function(e){this.beforeUpdate().then(function(){var t=this;if(this.get("updateViaFulfillRequest"))this.updateLookupLists(),this.performFulfillRequest(this.get("model"),!1,!1,!0).then(this.afterUpdate.bind(this));else{var n=this.get("model.isNew"),a=this.get("model.requestedItems");n&&!l.default.isEmpty(a)?function(){var e=t.get("model"),n=e.getProperties(["dateRequested","deliveryAisle","deliveryLocation","expenseAccount","requestedBy","status"]),s=[],i=[],o=[];l.default.isEmpty(t.get("model.inventoryItem"))||l.default.isEmpty(t.get("model.quantity"))||o.push(e.save()),a.forEach(function(e){n.inventoryItem=e.get("item"),n.quantity=e.get("quantity");var t=this.get("store").createRecord("inv-request",n);s.push(t.get("inventoryItem")),i.push(t)}.bind(t)),l.default.RSVP.all(s,"Get inventory items for inventory requests").then(function(){i.forEach(function(e){o.push(e.save())}),l.default.RSVP.all(o,"Save batch inventory requests").then(function(){this.updateLookupLists(),this.afterUpdate()}.bind(this))}.bind(t))}():this.get("model").save().then(function(t){this.updateLookupLists(),e||this.afterUpdate(t)}.bind(this))}}.bind(this))}},afterUpdate:function(){this.get("updateViaFulfillRequest")?this.displayAlert(this.get("i18n").t("inventory.titles.requestFulfilled"),this.get("i18n").t("inventory.messages.requestFulfilled"),"allRequests"):this.displayAlert(this.get("i18n").t("inventory.titles.requestUpdated"),this.get("i18n").t("inventory.messages.requestUpdated"))},beforeUpdate:function(){return this.get("isFulfilling")?this.set("updateViaFulfillRequest",!0):this.set("updateViaFulfillRequest",!1),this.get("model.isNew")&&(this.set("model.dateRequested",new Date),this.set("model.requestedBy",this.get("model").getUserName()),this.get("isFulfilling")||this.set("model.status","Requested")),l.default.RSVP.resolve()}})}),define("hospitalrun/inventory/request/route",["exports","hospitalrun/routes/abstract-edit-route","ember","ember-i18n"],function(e,t,n,a){e.default=t.default.extend({editTitle:(0,a.translationMacro)("inventory.titles.editRequest"),modelName:"inv-request",newTitle:(0,a.translationMacro)("inventory.titles.addRequest"),database:n.default.inject.service(),getNewData:function(){return n.default.RSVP.resolve({transactionType:"Request",requestedItems:[]})},actions:{allRequests:function(e){this.controller.send("allRequests",e)},removeItem:function(e){this.controller.send("removeItem",e)}},setupController:function(e,t){this._super(e,t);var n={startkey:"inventory_",endkey:"inventory_",include_docs:!0};this.get("database").queryMainDB(n).then(function(t){e.set("inventoryItems",t.rows)})}})}),define("hospitalrun/inventory/request/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"qer6XY+A",block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],7]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class"],["dateCompleted",["helper",["t"],["labels.dateCompleted"],null],"col-sm-4"]]],false],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["inventory-location-picker"],null,[["label","quantityRequested","locationList","selectedLocations","class"],[["helper",["t"],["inventory.labels.pullFrom"],null],["get",["model","quantity"]],["get",["model","inventoryItem","availableLocations"]],["get",["model","inventoryLocations"]],"inventory-location"]]],false],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label sr-only"],["flush-element"],["append",["helper",["t"],["inventory.labels.consumePurchases"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["inventory.labels.markAsConsumed"],null],"markAsConsumed"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label sr-only"],["flush-element"],["append",["helper",["t"],["inventory.labels.fulfillRequest"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["inventory.labels.fulfillRequest"],null],"shouldFulfillRequest"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n "],["append",["unknown",["requestedItem","item","name"]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-2"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","input-group"],["flush-element"],["text","\\n "],["append",["helper",["input"],null,[["class","value"],["form-control",["get",["requestedItem","quantity"]]]]],false],["text","\\n "],["open-element","div",[]],["static-attr","class","input-group-addon"],["flush-element"],["append",["unknown",["requestedItem","item","distributionUnit"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showRemoveItem",["get",["requestedItem"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["buttons.remove"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["requestedItem"]},{"statements":[["text"," "],["open-element","h3",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.requestedItems"],null],false],["close-element"],["text","\\n "],["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.name"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.quantity"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.action"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","requestedItems"]]],null,2],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["inventory-typeahead"],null,[["class","property","label","content","selection"],["col-sm-8 test-inv-item","inventoryItemTypeAhead",["helper",["t"],["inventory.labels.inventoryItem"],null],["get",["inventoryList"]],["get",["selectedInventoryItem"]]]]],false],["text","\\n\\n "],["append",["helper",["number-input"],null,[["property","label","class"],["quantity",["get",["quantityLabel"]],"col-sm-3 test-inv-quantity"]]],false],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group col-sm-1"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["close-element"],["text","\\n "],["open-element","h4",[]],["static-attr","class","form-control-static"],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","glyphicon glyphicon-plus"],["modifier",["action"],[["get",[null]],"addInventoryItem"]],["flush-element"],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["showRequestedItems"]]],null,3],["block",["if"],[["get",["canFulfill"]]],null,1]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["inventory.labels.item"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","inventoryItem","name"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["inventory.labels.quantityRequested"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","quantity"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["inventory.labels.quantityOnHand"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","inventoryItem","quantity"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["isRequested"]]],null,5,4],["text"," "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection","class"],["deliveryLocation",["helper",["t"],["inventory.labels.deliveryLocation"],null],["get",["warehouseList"]],["get",["model","deliveryLocation"]],"test-delivery-location"]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection","class"],["deliveryAisle",["helper",["t"],["inventory.labels.deliveryAisle"],null],["get",["aisleLocationList"]],["get",["model","deliveryAisle"]],"test-delivery-aisle"]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection","class"],["expenseAccount",["helper",["t"],["inventory.labels.billTo"],null],["get",["expenseAccountList"]],["get",["model","expenseAccount"]],"test-bill-to"]]],false],["text","\\n"],["block",["if"],[["get",["isFulfilling"]]],null,0]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],6]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inventory/request/template.hbs"}})}),define("hospitalrun/inventory/route",["exports","hospitalrun/routes/abstract-module-route","hospitalrun/mixins/fulfill-request","hospitalrun/mixins/inventory-id","hospitalrun/mixins/inventory-locations"],function(e,t,n,a,l){e.default=t.default.extend(n.default,a.default,l.default,{addCapability:"add_inventory_item",additionalButtons:function(){if(this.currentUserCan(this.get("addCapability")))return[{buttonAction:"newInventoryBatch",buttonText:"+ inventory received",class:"btn btn-primary"}]}.property(),additionalModels:[{name:"aisleLocationList",findArgs:["lookup","aisle_location_list"]},{name:"expenseAccountList",findArgs:["lookup","expense_account_list"]},{name:"inventoryTypeList",findArgs:["lookup","inventory_types"]},{name:"inventoryUnitList",findArgs:["lookup","unit_types"]},{name:"warehouseList",findArgs:["lookup","warehouse_list"]},{name:"vendorList",findArgs:["lookup","vendor_list"]}],currentItem:null,moduleName:"inventory",newButtonText:"+ new request",sectionTitle:"Inventory",actions:{addPurchase:function(e){var t=this.get("currentItem");t.get("purchases").addObject(e),this.newPurchaseAdded(t,e).then(function(){t.updateQuantity(),t.save().then(function(){this.send("closeModal")}.bind(this))}.bind(this))},newInventoryBatch:function(){this.currentUserCan(this.get("addCapability"))&&this.transitionTo("inventory.batch","new")},newRequest:function(){this.transitionTo("inventory.request","new")},allItems:function(){this.transitionTo("inventory.listing")},showAddPurchase:function(e){var t=this.get("store").createRecord("inv-purchase",{dateReceived:new Date,distributionUnit:e.get("distributionUnit"),inventoryItem:e.get("id")});this.set("currentItem",e),this.send("openModal","inventory.purchase.edit",t)}}})}),define("hospitalrun/inventory/search/controller",["exports","hospitalrun/inventory/listing/controller"],function(e,t){e.default=t.default.extend()}),define("hospitalrun/inventory/search/route",["exports","hospitalrun/routes/abstract-search-route"],function(e,t){e.default=t.default.extend({moduleName:"inventory",searchKeys:[{name:"crossReference",type:"contains"},{name:"description",type:"fuzzy"},{name:"friendlyId",type:"contains"},{name:"name",type:"fuzzy"}],searchModel:"inventory"})}),define("hospitalrun/inventory/search/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"MRgLDxZL",block:'{"statements":[["block",["search-listing"],null,[["newButtonText","allButtonText"],[["helper",["t"],["inventory.labels.newItem"],null],["helper",["t"],["inventory.labels.allInventory"],null]]],0]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["partial","inventory/listing"],["text","\\n"]],"locals":[]}],"hasPartials":true}',meta:{moduleName:"hospitalrun/inventory/search/template.hbs"}})}),define("hospitalrun/inventory/transfer/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember","ember-i18n"],function(e,t,n,a){e.default=t.default.extend({inventoryController:n.default.inject.controller("inventory"),warehouseList:n.default.computed.alias("inventoryController.warehouseList"),aisleLocationList:n.default.computed.alias("inventoryController.aisleLocationList"),lookupListsToUpdate:[{name:"aisleLocationList",property:"model.transferAisleLocation",id:"aisle_location_list"},{name:"warehouseList",
+property:"model.transferLocation",id:"warehouse_list"}],title:(0,a.translationMacro)("inventory.titles.transfer"),updateButtonText:(0,a.translationMacro)("inventory.labels.transfer"),updateButtonAction:"transfer",updateCapability:"adjust_inventory_location",actions:{cancel:function(){this.send("closeModal")},transfer:function(){this.updateLookupLists(),this.send("transferItems",this.get("model"),!0)}}})}),define("hospitalrun/inventory/transfer/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"agZXzn11",block:'{"statements":[["block",["modal-dialog"],null,[["isUpdateDisabled","title","updateButtonAction","updateButtonText"],[["get",["isUpdateDisabled"]],["get",["title"]],["get",["updateButtonAction"]],["get",["updateButtonText"]]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["inventory.labels.item"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","transferItem","name"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["inventory.labels.transferFrom"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","locationName"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["inventory.labels.quantityAvailable"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","quantity"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["class","property","label","list","selection"],["required","transferLocation",["helper",["t"],["inventory.labels.transferTo"],null],["get",["warehouseList"]],["get",["model","transferLocation"]]]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection"],["transferAisleLocation",["helper",["t"],["inventory.labels.transferToAisle"],null],["get",["aisleLocationList"]],["get",["model","transferAisleLocation"]]]]],false],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["number-input"],null,[["property","label","class"],["adjustmentQuantity",["helper",["t"],["labels.quantity"],null],"col-sm-3 required"]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class"],["dateCompleted",["helper",["t"],["inventory.labels.dateTransferred"],null],"col-sm-4 required"]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],0]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inventory/transfer/template.hbs"}})}),define("hospitalrun/invoices/add-line-item/controller",["exports","hospitalrun/mixins/billing-categories","ember","hospitalrun/mixins/is-update-disabled"],function(e,t,n,a){e.default=n.default.Controller.extend(t.default,a.default,{invoiceController:n.default.inject.controller("invoices"),billingCategoryList:n.default.computed.alias("invoiceController.billingCategoryList"),editController:n.default.inject.controller("invoices/edit"),title:"Add Line Item",updateButtonText:"Add",updateButtonAction:"add",showUpdateButton:!0,actions:{cancel:function(){this.send("closeModal")},add:function(){this.get("model").save().then(function(e){this.get("editController").send("addLineItem",e)}.bind(this))}},billingCategories:function(){var e=this.get("defaultBillingCategories"),t=this.get("billingCategoryList");return n.default.isEmpty(t)?n.default.Object.create({value:e}):t}.property("billingCategoryList","defaultBillingCategories")})}),define("hospitalrun/invoices/add-line-item/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"n6Aw1U4J",block:'{"statements":[["block",["modal-dialog"],null,[["isUpdateDisabled","title","updateButtonAction","updateButtonText"],[["get",["isUpdateDisabled"]],["get",["title"]],["get",["updateButtonAction"]],["get",["updateButtonText"]]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["em-input"],null,[["property","label","class"],["name",["helper",["t"],["labels.name"],null],"required"]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","className","label","list","selection"],["category","required",["helper",["t"],["labels.category"],null],["get",["billingCategories"]],["get",["model","category"]]]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],0]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/invoices/add-line-item/template.hbs"}})}),define("hospitalrun/invoices/delete/controller",["exports","hospitalrun/controllers/abstract-delete-controller"],function(e,t){e.default=t.default.extend({title:"Delete Invoice"})}),define("hospitalrun/invoices/delete/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"enLXUZ5e",block:'{"statements":[["block",["modal-dialog"],null,[["isUpdateDisabled","title","updateButtonAction","updateButtonText"],[["get",["isUpdateDisabled"]],["get",["title"]],["get",["updateButtonAction"]],["get",["updateButtonText"]]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[],"locals":[]},{"statements":[["text"," "],["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],0],["text","\\n "],["open-element","div",[]],["static-attr","class","alert alert-danger"],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","glyphicon glyphicon-warning-sign"],["flush-element"],["close-element"],["text","\\n "],["append",["helper",["t"],["messages.delete"],[["name"],[["get",["model","displayInvoiceNumber"]]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/invoices/delete/template.hbs"}})}),define("hospitalrun/invoices/edit/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember","moment","hospitalrun/mixins/number-format","hospitalrun/mixins/patient-submodule","hospitalrun/mixins/publish-statuses","hospitalrun/utils/select-values","npm:uuid"],function(e,t,n,a,l,s,i,o,r){e.default=t.default.extend(l.default,s.default,i.default,{invoiceController:n.default.inject.controller("invoices"),expenseAccountList:n.default.computed.alias("invoiceController.expenseAccountList.value"),patientList:n.default.computed.alias("invoiceController.patientList"),pharmacyCharges:[],pricingProfiles:n.default.computed.map("invoiceController.pricingProfiles",o.default.selectObjectMap),supplyCharges:[],updateCapability:"add_invoice",wardCharges:[],additionalButtons:function(){var e=[],t=this.get("model.isValid"),n=this.get("model.status");return t&&"Draft"===n&&e.push({class:"btn btn-default default",buttonAction:"finalizeInvoice",buttonIcon:"glyphicon glyphicon-ok",buttonText:"Invoice Ready"}),e.push({class:"btn btn-default neutral",buttonAction:"printInvoice",buttonIcon:"glyphicon glyphicon-print",buttonText:"Print"}),e}.property("model.isValid","model.status"),canAddCharge:function(){return this.currentUserCan("add_charge")}.property(),canAddPayment:function(){return this.currentUserCan("add_payment")}.property(),pharmacyExpenseAccount:function(){var e=this.get("expenseAccountList");if(!n.default.isEmpty(e)){return e.find(function(e){if(e.toLowerCase().indexOf("pharmacy")>-1)return!0})}}.property("expenseAccountList.value"),actions:{addItemCharge:function(e){var t=e.get("details"),n=this.store.createRecord("line-item-detail",{id:r.default.v4()});t.addObject(n)},addLineItem:function(e){this.get("model.lineItems").addObject(e),this.send("update",!0),this.send("closeModal")},deleteCharge:function(e){this._deleteObject(e.itemToDelete,e.deleteFrom)},deleteLineItem:function(e){this._deleteObject(e.itemToDelete,this.get("model.lineItems"))},finalizeInvoice:function(){var e=this.get("model"),t=e.get("payments"),a=[];e.get("patient.payments").then(function(l){l.forEach(function(l){var s=l.get("invoice");n.default.isEmpty(s)&&(l.set("invoice",e),a.push(l.save()),t.addObject(l))}.bind(this)),n.default.RSVP.all(a).then(function(){this.set("model.status","Billed"),this.send("update")}.bind(this))}.bind(this))},printInvoice:function(){this.transitionToRoute("print.invoice",this.get("model"))},removePayment:function(e){var t=this.get("model.payments");e.itemToRemove.set("invoice"),t.removeObject(e.itemToRemove),this.send("update",!0),this.send("closeModal")},showAddLineItem:function(){var e=this.store.createRecord("billing-line-item",{id:r.default.v4()});this.send("openModal","invoices.add-line-item",e)},showDeleteItem:function(e,t){this.showDeleteModal(e,n.default.Object.create({confirmAction:"deleteCharge",deleteFrom:t,title:"Delete Charge"}))},showDeleteLineItem:function(e){this.showDeleteModal(e,n.default.Object.create({confirmAction:"deleteLineItem",title:"Delete Line Item"}))},showDeleteModal:function(e,t){t=n.default.merge(t,n.default.Object.create({message:"Are you sure you want to delete "+e.get("name")+"?",itemToDelete:e,updateButtonAction:"confirm",updateButtonText:this.get("i18n").t("buttons.ok")})),this.send("openModal","dialog",t)},showRemovePayment:function(e){var t=n.default.Object.create({itemToRemove:e});this.displayConfirm("Remove Payment","Are you sure you want to remove this payment from this invoice?","removePayment",t)},toggleDetails:function(e){e.toggleProperty("showDetails")}},changePaymentProfile:function(){var e=this.get("model.patient"),t=this.get("model.paymentProfile");!n.default.isEmpty(e)&&n.default.isEmpty(t)&&this.set("model.paymentProfile",e.get("paymentProfile"))}.observes("model.patient"),paymentProfileChanged:function(){var e=this._getValidNumber(this.get("model.paymentProfile.discountPercentage")),t=this.get("model.originalPaymentProfileId"),a=this.get("model.paymentProfile.id");if(a!==t){this.get("model.lineItems").forEach(function(t){var l=t.get("details"),s=0;if(l.forEach(function(e){var t=e.get("pricingItem.pricingOverrides");if(!n.default.isEmpty(t)){var l=t.findBy("profile.id",a);n.default.isEmpty(l)||n.default.set(e,"price",l.get("price"))}}.bind(this)),e>0){var i=t.get("total");s=this._numberFormat(e/100*i,!0),t.set("discount",s)}}.bind(this)),this.set("model.originalPaymentProfileId",a)}}.observes("model.paymentProfile"),visitChanged:function(){var e=this.get("model.visit"),t=this.get("model.lineItems");if(!n.default.isEmpty(e)&&n.default.isEmpty(t)){this.set("model.originalPaymentProfileId");var a=this.resolveVisitChildren();n.default.RSVP.allSettled(a,"Resolved visit children before generating invoice").then(function(t){var a=this,l=this._resolveVisitDescendents(t,"charges");n.default.isEmpty(l)?(this._generateLineItems(e,t),this.paymentProfileChanged()):function(){var s="Reloaded charges before generating invoice";n.default.RSVP.allSettled(l,s).then(function(a){var l=[];a.forEach(function(e){if(!n.default.isEmpty(e.value)){var t=e.value.get("pricingItem");n.default.isEmpty(t)||l.push(t.reload())}}),s="Reloaded pricing items before generating invoice",n.default.RSVP.allSettled(l,s).then(function(){this._generateLineItems(e,t),this.paymentProfileChanged()}.bind(this))}.bind(a))}()}.bind(this),function(e){console.log("Error resolving visit children",e)})}}.observes("model.visit"),_addPharmacyCharge:function(e,t){var n=this;return e.getMedicationDetails(t).then(function(t){var a=e.get("quantity"),l=n.get("pharmacyCharges"),s=n.get("pharmacyExpenseAccount"),i=n.store.createRecord("line-item-detail",{id:r.default.v4(),name:t.name,quantity:a,price:t.price,department:"Pharmacy",expenseAccount:s});l.addObject(i)})},_addSupplyCharge:function(e,t){var n=this.get("supplyCharges"),a=this._createChargeItem(e,t);n.addObject(a)},_createChargeItem:function(e,t){return this.store.createRecord("line-item-detail",{id:r.default.v4(),name:e.get("pricingItem.name"),expenseAccount:e.get("pricingItem.expenseAccount"),quantity:e.get("quantity"),price:e.get("pricingItem.price"),department:t,pricingItem:e.get("pricingItem")})},_deleteObject:function(e,t){t.removeObject(e),e.get("isNew")||e.destroyRecord(),this.send("update",!0),this.send("closeModal")},_mapWardCharge:function(e){return this._createChargeItem(e,"Ward")},_completeBeforeUpdate:function(e,t,n){var a="inv",l=void 0;e.incrementProperty("value",1),l=e.get("value"),a+=l<1e5?String("00000"+l).slice(-5):l,this.set("model.id",a),e.save().then(t,n)},_generateLineItems:function(e,t){var l=this,s=e.get("endDate"),i=t[0].value,o=t[1].value,d=void 0,c=void 0,u=this.get("model.lineItems"),p=t[2].value,m=t[3].value,f=e.get("startDate"),h=e.get("charges");if(this.setProperties({pharmacyCharges:[],supplyCharges:[],wardCharges:[]}),!n.default.isEmpty(s)&&!n.default.isEmpty(f)){s=(0,a.default)(s),f=(0,a.default)(f);var g=s.diff(f,"days");g>1&&(d=this.store.createRecord("line-item-detail",{id:r.default.v4(),name:"Days",quantity:g}),c=this.store.createRecord("billing-line-item",{id:r.default.v4(),category:"Hospital Charges",name:"Room/Accomodation"}),c.get("details").addObject(d),u.addObject(c))}var b=[];p.forEach(function(e){b.push(this._addPharmacyCharge(e,"inventoryItem"))}.bind(this)),this.set("wardCharges",h.map(this._mapWardCharge.bind(this))),m.forEach(function(e){e.get("charges").forEach(function(e){e.get("medicationCharge")?b.push(this._addPharmacyCharge(e,"medication")):this._addSupplyCharge(e,"O.R.")}.bind(this))}.bind(this)),o.forEach(function(e){n.default.isEmpty(e.get("labType"))||this._addSupplyCharge(n.default.Object.create({pricingItem:e.get("labType"),quantity:1}),"Lab"),e.get("charges").forEach(function(e){this._addSupplyCharge(e,"Lab")}.bind(this))}.bind(this)),i.forEach(function(e){n.default.isEmpty(e.get("imagingType"))||this._addSupplyCharge(n.default.Object.create({pricingItem:e.get("imagingType"),quantity:1}),"Imaging"),e.get("charges").forEach(function(e){this._addSupplyCharge(e,"Imaging")}.bind(this))}.bind(this)),n.default.RSVP.all(b).then(function(){c=l.store.createRecord("billing-line-item",{id:r.default.v4(),name:"Pharmacy",category:"Hospital Charges"}),c.get("details").addObjects(l.get("pharmacyCharges")),u.addObject(c),c=l.store.createRecord("billing-line-item",{id:r.default.v4(),name:"X-ray/Lab/Supplies",category:"Hospital Charges"}),c.get("details").addObjects(l.get("supplyCharges")),u.addObject(c),c=l.store.createRecord("billing-line-item",{id:r.default.v4(),name:"Ward Items",category:"Hospital Charges"}),c.get("details").addObjects(l.get("wardCharges")),u.addObject(c),c=l.store.createRecord("billing-line-item",{id:r.default.v4(),name:"Physical Therapy",category:"Hospital Charges"}),u.addObject(c),c=l.store.createRecord("billing-line-item",{id:r.default.v4(),name:"Others/Misc",category:"Hospital Charges"}),u.addObject(c),l.send("update",!0)})},_resolveVisitDescendents:function(e,t){var a=[];return e.forEach(function(e){n.default.isEmpty(e.value)||e.value.forEach(function(e){var l=e.get(t);n.default.isEmpty(l)||l.forEach(function(e){a.push(e.reload())})})}),a},beforeUpdate:function(){return new n.default.RSVP.Promise(function(e,t){var a=this.get("model.lineItems"),l=[];a.forEach(function(e){e.get("details").forEach(function(e){l.push(e.save())}.bind(this)),l.push(e.save())}.bind(this)),n.default.RSVP.all(l,"Saved invoice children before saving invoice").then(function(){this.get("model.isNew")?this.store.find("sequence","invoice").then(function(n){this._completeBeforeUpdate(n,e,t)}.bind(this),function(){var n=this.get("store"),a=n.push(n.normalize("sequence",{id:"invoice",value:0}));this._completeBeforeUpdate(a,e,t)}.bind(this)):e()}.bind(this),t)}.bind(this))},afterUpdate:function(){this.displayAlert("Invoice Saved","The invoice record has been saved.")}})}),define("hospitalrun/invoices/edit/route",["exports","hospitalrun/routes/abstract-edit-route","ember"],function(e,t,n){e.default=t.default.extend({editTitle:"Edit Invoice",modelName:"invoice",newTitle:"New Invoice",actions:{deleteCharge:function(e){this.controller.send("deleteCharge",e)},deleteLineItem:function(e){this.controller.send("deleteLineItem",e)},removePayment:function(e){this.controller.send("removePayment",e)}},afterModel:function(e){return new n.default.RSVP.Promise(function(t,a){var l=e.get("lineItems"),s=[];l.forEach(function(e){s.push(e.reload())}),n.default.RSVP.all(s,"Reload billing line items for invoice").then(function(e){var l=[];e.forEach(function(e){e.get("details").forEach(function(e){l.push(e.reload())})}),n.default.RSVP.all(l,"Reload billing line item details for invoice").then(t,a)},a)})},getNewData:function(){return n.default.RSVP.resolve({billDate:new Date,status:"Draft"})},setupController:function(e,t){t.set("originalPaymentProfileId",t.get("paymentProfile.id")),this._super(e,t);var a=[];t.get("lineItems").forEach(function(e){e.get("details").forEach(function(e){var t=e.get("pricingItem");n.default.isEmpty(t)||a.push(t.reload())})})}})}),define("hospitalrun/invoices/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"80t+CYHF",
+block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],20]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showRemovePayment",["get",["payment"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["append",["helper",["t"],["buttons.remove"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"showEditPayment",["get",["payment"]]],[["bubbles"],[false]]],["flush-element"],["append",["helper",["t"],["labels.edit"],null],false],["close-element"],["text","\\n"],["block",["if"],[["get",["payment","canRemovePayment"]]],null,0],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["modifier",["action"],[["get",[null]],"showEditPayment",["get",["payment"]]]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["payment","datePaid"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["payment","amount"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["payment","paymentType"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["payment","notes"]],false],["close-element"],["text","\\n"],["block",["if"],[["get",["canAddPayment"]]],null,1],["text"," "],["close-element"],["text","\\n"]],"locals":["payment"]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-primary align-right"],["modifier",["action"],[["get",[null]],"showAddPayment",["get",["model"]]],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["append",["helper",["t"],["admin.roles.capability.addPayment"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","colspan","6"],["flush-element"],["append",["helper",["t"],["billing.messages.flatDiscountMsg"],[["currency","discountAmount"],[["helper",["t"],["labels.currencySymbol"],null],["get",["model","paymentProfile","discountAmount"]]]]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","colspan","6"],["flush-element"],["append",["helper",["t"],["billing.messages.flatFeeMsg"],[["currency","setFee"],[["helper",["t"],["labels.currencySymbol"],null],["get",["model","paymentProfile","setFee"]]]]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["model","paymentProfile","setFee"]]],null,5],["block",["if"],[["get",["model","paymentProfile","discountAmount"]]],null,4]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeleteItem",["get",["detail"]],["get",["item","details"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["append",["helper",["t"],["buttons.delete"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","colspan","2"],["static-attr","class","col-xs-6 input-group"],["flush-element"],["text","\\n "],["append",["helper",["input"],null,[["class","value"],["form-control",["get",["detail","name"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-1"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["append",["helper",["input"],null,[["class","value"],["form-control",["get",["detail","quantity"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-1"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["append",["helper",["input"],null,[["class","value"],["form-control",["get",["detail","price"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-1"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["append",["helper",["select-list"],null,[["class","content","value","action"],["form-control",["get",["expenseAccountList"]],["get",["detail","expenseAccount"]],["helper",["action"],[["get",[null]],["helper",["mut"],[["get",["detail","expenseAccount"]]],null]],null]]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-1 text-right"],["flush-element"],["text","\\n "],["append",["helper",["number-format"],[["get",["detail","amountOwed"]]],null],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-2"],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddCharge"]]],null,7],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["detail"]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-primary"],["modifier",["action"],[["get",[null]],"addItemCharge",["get",["item"]]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["append",["helper",["t"],["admin.roles.capability.addCharge"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","th",[]],["static-attr","colspan","2"],["static-attr","class","col-xs-6"],["flush-element"],["append",["helper",["t"],["labels.name"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["static-attr","class","col-xs-1"],["flush-element"],["append",["helper",["t"],["labels.quantity"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["static-attr","class","col-xs-1"],["flush-element"],["append",["helper",["t"],["labels.price"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["static-attr","class","col-xs-1"],["flush-element"],["append",["helper",["t"],["labels.expenseTo"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["static-attr","class","col-xs-1 text-right"],["flush-element"],["append",["helper",["t"],["labels.total"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["static-attr","class","col-xs-2"],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddCharge"]]],null,9],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["item","details"]]],null,8]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeleteLineItem",["get",["item"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["append",["helper",["t"],["buttons.delete"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-5"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","input-group"],["flush-element"],["text","\\n "],["open-element","span",[]],["dynamic-attr","class",["concat",["input-group-addon glyphicon\\n ",["helper",["if"],[["get",["item","showDetails"]],"glyphicon-minus","glyphicon-plus"],null]]]],["modifier",["action"],[["get",[null]],"toggleDetails",["get",["item"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","strong",[]],["flush-element"],["append",["helper",["input"],null,[["class","value"],["form-control",["get",["item","name"]]]]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-1 text-right"],["flush-element"],["text","\\n "],["append",["helper",["number-format"],[["get",["item","total"]]],null],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-1"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["append",["helper",["input"],null,[["class","value"],["form-control text-right",["get",["item","discount"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-1"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["append",["helper",["input"],null,[["class","value"],["form-control text-right",["get",["item","nationalInsurance"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-1"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["append",["helper",["input"],null,[["class","value"],["form-control text-right",["get",["item","privateInsurance"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-1 text-right"],["flush-element"],["append",["helper",["number-format"],[["get",["item","amountOwed"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-2"],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddCharge"]]],null,11],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["item","showDetails"]]],null,10]],"locals":["item"]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-12"],["flush-element"],["text","\\n "],["open-element","strong",[]],["flush-element"],["append",["unknown",["categoryGroup","category"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["categoryGroup","items"]]],null,12],["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["labels.total"],null],false],["text"," "],["append",["unknown",["categoryGroup","category"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","text-right"],["flush-element"],["append",["helper",["number-format"],[["get",["categoryGroup","total"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","text-right"],["flush-element"],["append",["helper",["number-format"],[["get",["categoryGroup","discount"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","text-right"],["flush-element"],["append",["helper",["number-format"],[["get",["categoryGroup","nationalInsurance"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","text-right"],["flush-element"],["append",["helper",["number-format"],[["get",["categoryGroup","privateInsurance"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","text-right"],["flush-element"],["append",["helper",["number-format"],[["get",["categoryGroup","amountOwed"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["categoryGroup"]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-primary align-right"],["modifier",["action"],[["get",[null]],"showAddLineItem"],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["append",["helper",["t"],["buttons.addLineItem"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","form-group col-xs-3"],["flush-element"],["text","\\n "],["open-element","label",[]],["flush-element"],["append",["helper",["t"],["labels.visit"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","visit","visitDescription"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["patient-typeahead"],null,[["property","label","content","selection","class"],["patientTypeAhead",["helper",["t"],["labels.patient"],null],["get",["patientList"]],["get",["selectedPatient"]],"col-xs-4 required invoice-patient"]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content","optionValuePath","optionLabelPath","selected","prompt"],["col-xs-4 required invoice-visit",["helper",["t"],["labels.visit"],null],"visit",["get",["patientVisitsForSelect"]],"selectObject","selectObject.visitDescription",["get",["model","visit"]],"Please select a visit"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","form-group col-xs-2"],["flush-element"],["text","\\n "],["open-element","label",[]],["flush-element"],["append",["helper",["t"],["labels.invoiceId"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","id"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["patient-summary"],null,[["patient","returnTo","returnToContext","disablePatientLink"],[["get",["model","patient"]],"invoices.edit",["get",["model","id"]],["get",["model","isNew"]]]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["unless"],[["get",["model","isNew"]]],null,18],["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n"],["block",["unless"],[["get",["model","isNew"]]],null,17],["text"," "],["append",["helper",["date-picker"],null,[["property","label","class"],["billDate",["helper",["t"],["labels.billDate"],null],"col-xs-2"]]],false],["text","\\n"],["block",["if"],[["get",["model","isNew"]]],null,16,15],["text"," "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["externalInvoiceNumber",["helper",["t"],["billing.labels.externalInvoiceNumber"],null],"col-xs-3 external-invoice-no"]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["label","property","content","optionValuePath","optionLabelPath","class","prompt","selected"],[["helper",["t"],["billing.labels.paymentProfile"],null],"paymentProfile",["get",["pricingProfiles"]],"selectObject","selectObject.name","col-xs-3"," ",["get",["model","paymentProfile"]]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],19],["text"," "],["open-element","form",[]],["static-attr","class","form-inline"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel detail-section"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-heading"],["flush-element"],["text","\\n "],["open-element","h3",[]],["static-attr","class","panel-title"],["flush-element"],["text","\\n "],["append",["helper",["t"],["labels.lineItems"],null],false],["text","\\n"],["block",["if"],[["get",["canAddCharge"]]],null,14],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body detail-section-content"],["flush-element"],["text","\\n "],["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["open-element","th",[]],["static-attr","class","col-xs-5"],["flush-element"],["append",["helper",["t"],["labels.description"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["static-attr","class","col-xs-1 text-right"],["flush-element"],["append",["helper",["t"],["billing.labels.actualCharges"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["static-attr","class","col-xs-1 text-right"],["flush-element"],["append",["helper",["t"],["labels.discount"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["static-attr","class","col-xs-1 text-right"],["flush-element"],["append",["helper",["t"],["billing.labels.insurance"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["static-attr","class","col-xs-1 text-right"],["flush-element"],["append",["helper",["t"],["billing.labels.hmoCom"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["static-attr","class","col-xs-1 text-right"],["flush-element"],["append",["helper",["t"],["labels.excess"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["static-attr","class","col-xs-2 text-right"],["flush-element"],["append",["helper",["t"],["labels.action"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","lineItemsByCategory"]]],null,13],["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["labels.total"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","text-right"],["flush-element"],["append",["helper",["number-format"],[["get",["model","total"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","text-right"],["flush-element"],["append",["helper",["number-format"],[["get",["model","discount"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","text-right"],["flush-element"],["append",["helper",["number-format"],[["get",["model","nationalInsurance"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","text-right"],["flush-element"],["append",["helper",["number-format"],[["get",["model","privateInsurance"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","text-right"],["flush-element"],["append",["helper",["number-format"],[["get",["model","finalPatientResponsibility"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["billing.labels.paymentsDeposits"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","colspan","4"],["flush-element"],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","text-right"],["flush-element"],["text","-"],["append",["helper",["number-format"],[["get",["model","paidTotal"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["labels.grandTotal"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","colspan","4"],["flush-element"],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","text-right"],["flush-element"],["append",["helper",["number-format"],[["get",["model","remainingBalance"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["model","paymentProfile"]]],null,6],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel detail-section"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-heading"],["flush-element"],["text","\\n "],["open-element","h3",[]],["static-attr","class","panel-title"],["flush-element"],["text","\\n "],["append",["helper",["t"],["labels.remarks"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body detail-section-content"],["flush-element"],["text","\\n "],["append",["helper",["textarea"],null,[["class","value"],["form-control",["get",["model","remarks"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel detail-section"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-heading"],["flush-element"],["text","\\n "],["open-element","h3",[]],["static-attr","class","panel-title"],["flush-element"],["text","\\n "],["append",["helper",["t"],["labels.payments"],null],false],["text","\\n"],["block",["if"],[["get",["canAddPayment"]]],null,3],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body detail-section-content"],["flush-element"],["text","\\n "],["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.date"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.amount"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.type"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.notes"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.action"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","payments"]]],null,2],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/invoices/edit/template.hbs"}})}),define("hospitalrun/invoices/index/controller",["exports","hospitalrun/controllers/abstract-paged-controller"],function(e,t){e.default=t.default.extend({addPermission:"add_invoice",deletePermission:"delete_invoice",canAddPayment:function(){return this.currentUserCan("add_payment")}.property(),startKey:[],queryParams:["startKey","status"]})}),define("hospitalrun/invoices/index/route",["exports","hospitalrun/routes/abstract-index-route","ember"],function(e,t,n){e.default=t.default.extend({modelName:"invoice",pageTitle:"Invoice Listing",_getStartKeyFromItem:function(e){var t=e.get("billDateAsTime"),n=this._getPouchIdFromItem(e);return[e.get("status"),t,n]},_modelQueryParams:function(e){var t=void 0,a=this._getMaxPouchId(),l=this.get("maxValue"),s=this._getMinPouchId(),i=e.status;return n.default.isEmpty(i)&&(i="Billed"),this.set("pageTitle",i+" Invoices"),t={options:{startkey:[i,null,s],endkey:[i,l,a]},mapReduce:"invoice_by_status"},"All"===i&&(delete t.options.startkey,delete t.options.endkey),t},queryParams:{startKey:{refreshModel:!0},status:{refreshModel:!0}}})}),define("hospitalrun/invoices/index/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"Hv7m5cqf",
+block:'{"statements":[["block",["item-listing"],null,[["paginationProps"],[["get",["paginationProps"]]]],9]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-info"],["flush-element"],["text","\\n "],["open-element","p",[]],["flush-element"],["append",["helper",["t"],["billing.alerts.noInvoiceFound"],null],false],["text"," "],["open-element","a",[]],["static-attr","href","#"],["modifier",["action"],[["get",[null]],"newItem"]],["flush-element"],["append",["helper",["t"],["billing.buttons.createInvoice"],null],false],["close-element"],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"deleteItem",["get",["invoice"]]],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["buttons.delete"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"editItem",["get",["invoice"]]],[["bubbles"],[false]]],["flush-element"],["append",["helper",["t"],["buttons.edit"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-primary btn-extra"],["modifier",["action"],[["get",[null]],"showAddPayment",["get",["invoice"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["admin.roles.capability.addPayment"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["canAddPayment"]]],null,3],["block",["if"],[["get",["canAdd"]]],null,2],["block",["if"],[["get",["canDelete"]]],null,1]],"locals":[]},{"statements":[["block",["if"],[["get",["showActions"]]],null,4]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["static-attr","class","clickable"],["modifier",["action"],[["get",[null]],"editItem",["get",["invoice"]]]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","invoice-number"],["flush-element"],["append",["unknown",["invoice","displayInvoiceNumber"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["invoice","billDate"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["invoice","status"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["invoice","patient","displayName"]],false],["text"," - "],["append",["unknown",["invoice","patient","displayPatientId"]],false],["text"," "],["open-element","br",[]],["flush-element"],["close-element"],["append",["unknown",["invoice","visit","primaryDiagnoses"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["invoice","total"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["invoice","remainingBalance"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["unless"],[["get",["invoice","paidFlag"]]],null,5],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["invoice"]},{"statements":[["text"," "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.actions"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.number"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.billDate"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.status"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.patient"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.total"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.balanceDue"],null],false],["close-element"],["text","\\n"],["block",["if"],[["get",["showActions"]]],null,7],["text"," "],["close-element"],["text","\\n"],["block",["each"],[["get",["model"]]],null,6],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["hasRecords"]]],null,8,0]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/invoices/index/template.hbs"}})}),define("hospitalrun/invoices/payment/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember","hospitalrun/mixins/patient-submodule"],function(e,t,n,a){e.default=t.default.extend(a.default,{cancelAction:"closeModal",findPatientVisits:!1,invoiceController:n.default.inject.controller("invoices"),newPayment:!1,expenseAccountList:n.default.computed.alias("invoiceController.expenseAccountList"),patientList:n.default.computed.alias("invoiceController.patientList"),_finishUpdate:function(e,t){this.send("closeModal"),this.displayAlert(t,e)},currentPatient:function(){return"Deposit"===this.get("model.paymentType")?this.get("model.patient"):this.get("model.invoice.patient")}.property("model.patient","model.paymentType","model.invoice.patient"),title:function(){var e=this.get("model.isNew"),t=this.get("model.paymentType");return e?"Add "+t:"Edit "+t}.property("model.isNew","model.paymentType"),selectPatient:function(){var e=this.get("model.isNew"),t=this.get("model.paymentType");return e&&"Deposit"===t}.property("model.isNew","model.paymentType"),beforeUpdate:function(){this.get("model.isNew")?this.set("newPayment",!0):this.set("newPayment",!1);var e=this.get("currentPatient");return this.set("model.charityPatient","Charity"===e.get("patientType")),n.default.RSVP.resolve()},afterUpdate:function(){this.get("model").save().then(function(e){var t=this;!0===this.get("newPayment")?function(){var n=t.get("currentPatient");n.get("payments").then(function(t){t.addObject(e),n.save().then(function(){var t=this;if("Deposit"===e.get("paymentType")){var a="A deposit of "+e.get("amount")+" was added for patient "+n.get("displayName");this._finishUpdate(a,"Deposit Added")}else!function(){var n=t.get("model.invoice");n.addPayment(e),n.save().then(function(){var t="A payment of "+e.get("amount")+" was added to invoice "+n.get("id");this._finishUpdate(t,"Payment Added")}.bind(t))}()}.bind(this))}.bind(t))}():this.send("closeModal")}.bind(this))}})}),define("hospitalrun/invoices/payment/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"NuZis8Sr",block:'{"statements":[["block",["modal-dialog"],null,[["isUpdateDisabled","title","updateButtonAction","updateButtonText","updateButtonClass"],[["get",["isUpdateDisabled"]],["get",["title"]],["get",["updateButtonAction"]],["get",["updateButtonText"]],"update-payment-btn"]],4]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["flush-element"],["append",["helper",["t"],["labels.patient"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","invoice","patient","displayName"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["patient-typeahead"],null,[["property","label","content","selection","class"],["patientTypeAhead",["helper",["t"],["labels.patient"],null],["get",["patientList"]],["get",["selectedPatient"]],"required payment-patient"]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["selectPatient"]]],null,1,0]],"locals":[]},{"statements":[["block",["if"],[["get",["model","isNew"]]],null,2],["text"," "],["append",["helper",["number-input"],null,[["property","label","class"],["amount",["helper",["t"],["labels.amount"],null],"required payment-amount"]]],false],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","maxDate","class"],["datePaid",["helper",["t"],["labels.datePaid"],null],"now","required"]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection"],["expenseAccount",["helper",["t"],["labels.creditTo"],null],["get",["expenseAccountList"]],["get",["model","expenseAccount"]]]]],false],["text","\\n "],["append",["helper",["expand-text"],null,[["property","label"],["notes",["helper",["t"],["labels.notes"],null]]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],3]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/invoices/payment/template.hbs"}})}),define("hospitalrun/invoices/route",["exports","hospitalrun/routes/abstract-module-route","hospitalrun/mixins/modal-helper","hospitalrun/mixins/patient-list-route"],function(e,t,n,a){e.default=t.default.extend(n.default,a.default,{addCapability:"add_invoice",currentScreenTitle:"Invoices",editTitle:"Edit Invoice",newTitle:"New Invoice",moduleName:"invoices",newButtonText:"+ new invoice",sectionTitle:"Invoices",additionalButtons:function(){if(this.currentUserCan("add_payment"))return[{class:"btn btn-default",buttonText:"+ add deposit",buttonAction:"showAddDeposit"}]}.property(),additionalModels:[{name:"billingCategoryList",findArgs:["lookup","billing_categories"]},{name:"expenseAccountList",findArgs:["lookup","expense_account_list"]},{name:"pricingProfiles",findArgs:["price-profile"]}],actions:{showAddDeposit:function(){var e=this.store.createRecord("payment",{paymentType:"Deposit",datePaid:new Date});this.send("openModal","invoices.payment",e)},showAddPayment:function(e){var t=this.store.createRecord("payment",{invoice:e,paymentType:"Payment",datePaid:new Date});this.send("openModal","invoices.payment",t)},showEditPayment:function(e){this.currentUserCan("add_payment")&&this.send("openModal","invoices.payment",e)}},subActions:function(){var e=[{text:"Billed",linkTo:"invoices.index",statusQuery:"Billed"}];return this.currentUserCan("add_invoice")&&(e.push({text:"Drafts",linkTo:"invoices.index",statusQuery:"Draft"}),e.push({text:"All Invoices",linkTo:"invoices.index",statusQuery:"All"})),this.currentUserCan("list_paid_invoices")&&e.push({text:"Paid",linkTo:"invoices.index",statusQuery:"Paid"}),e}.property()})}),define("hospitalrun/invoices/search/route",["exports","hospitalrun/routes/abstract-search-route"],function(e,t){e.default=t.default.extend({moduleName:"invoices",searchKeys:[{name:"externalInvoiceNumber",type:"contains"},{name:"patientInfo",type:"contains"}],searchModel:"invoice"})}),define("hospitalrun/invoices/search/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"7Stx2dsU",block:'{"statements":[["block",["search-listing"],null,[["newButtonText","allButtonText"],["New Invoice","All Invoices"]],0]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["partial","invoices/index"],["text","\\n"]],"locals":[]}],"hasPartials":true}',meta:{moduleName:"hospitalrun/invoices/search/template.hbs"}})}),define("hospitalrun/labs/charge/controller",["exports","hospitalrun/procedures/charge/controller","ember"],function(e,t,n){e.default=t.default.extend({labsEdit:n.default.inject.controller("labs/edit"),cancelAction:"closeModal",newPricingItem:!1,requestingController:n.default.computed.alias("controllers.labs/edit"),pricingList:n.default.computed.alias("controllers.labs/edit.chargesPricingList")})}),define("hospitalrun/labs/charge/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"8qHLvc50",block:'{"statements":[["block",["modal-dialog"],null,[["isUpdateDisabled","title","updateButtonAction","updateButtonText"],[["get",["isUpdateDisabled"]],["get",["title"]],["get",["updateButtonAction"]],["get",["updateButtonText"]]]],0]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["partial","procedures/charge"],["text","\\n"]],"locals":[]}],"hasPartials":true}',meta:{moduleName:"hospitalrun/labs/charge/template.hbs"}})}),define("hospitalrun/labs/completed/controller",["exports","hospitalrun/controllers/abstract-paged-controller"],function(e,t){e.default=t.default.extend({startKey:[],showActions:!1})}),define("hospitalrun/labs/completed/labs-completed-list-item/component",["exports","ember"],function(e,t){e.default=t.default.Component.extend({tagName:"tr"})}),define("hospitalrun/labs/completed/labs-completed-list-item/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"53/ixka0",block:'{"statements":[["open-element","td",[]],["static-attr","class","requested-date"],["flush-element"],["append",["helper",["date-format"],[["get",["lab","requestedDate"]]],null],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","lab-date"],["flush-element"],["append",["helper",["date-format"],[["get",["lab","labDate"]]],null],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","patient"],["flush-element"],["append",["unknown",["lab","patient","displayName"]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","requested-by"],["flush-element"],["append",["unknown",["lab","requestedBy"]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","lab-type"],["flush-element"],["append",["unknown",["lab","labType","name"]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","result"],["flush-element"],["append",["unknown",["lab","result"]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","notes"],["flush-element"],["append",["unknown",["lab","notes"]],false],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[],"hasPartials":false}',meta:{moduleName:"hospitalrun/labs/completed/labs-completed-list-item/template.hbs"}})}),define("hospitalrun/labs/completed/route",["exports","hospitalrun/labs/index/route","ember-i18n"],function(e,t,n){e.default=t.default.extend({pageTitle:(0,n.translationMacro)("labs.completedTitle"),searchStatus:"Completed"})}),define("hospitalrun/labs/completed/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"hCs/6AmP",block:'{"statements":[["block",["item-listing"],null,[["paginationProps"],[["get",["paginationProps"]]]],3]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-info"],["flush-element"],["text","\\n "],["open-element","p",[]],["flush-element"],["append",["helper",["t"],["labs.messages.noCompleted"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["labs/completed/labs-completed-list-item"],null,[["lab"],[["get",["lab"]]]]],false],["text","\\n"]],"locals":["lab"]},{"statements":[["text"," "],["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.dateRequested"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.dateCompleted"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.patient"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.requestedBy"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labs.labels.labType"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.results"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.notes"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model"]]],null,1],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["model"]]],null,2,0]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/labs/completed/template.hbs"}})}),define("hospitalrun/labs/delete/controller",["exports","hospitalrun/controllers/abstract-delete-controller","hospitalrun/mixins/patient-submodule","ember-i18n"],function(e,t,n,a){e.default=t.default.extend(n.default,{title:(0,a.translationMacro)("labs.deleteTitle"),actions:{delete:function(){this.deleteChildFromVisit("labs")}}})}),define("hospitalrun/labs/delete/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"ZmcYLBi5",block:'{"statements":[["block",["modal-dialog"],null,[["isUpdateDisabled","title","updateButtonAction","updateButtonText"],[["get",["isUpdateDisabled"]],["get",["title"]],["get",["updateButtonAction"]],["get",["updateButtonText"]]]],0]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-danger"],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","glyphicon glyphicon-warning-sign"],["flush-element"],["close-element"],["text","\\n "],["append",["helper",["t"],["messages.delete_singular"],[["name"],[["helper",["t"],["models.lab.request.singular"],null]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/labs/delete/template.hbs"}})}),define("hospitalrun/labs/edit/controller",["exports","hospitalrun/controllers/abstract-edit-controller","hospitalrun/mixins/charge-actions","ember","hospitalrun/mixins/patient-submodule"],function(e,t,n,a,l){e.default=t.default.extend(n.default,l.default,{labsController:a.default.inject.controller("labs"),chargePricingCategory:"Lab",chargeRoute:"labs.charge",selectedLabType:null,canComplete:function(){var e=this.get("model.isNew"),t=this.get("model.labTypeName"),n=this.get("selectedLabType");return(!e||!(a.default.isEmpty(t)||a.default.isArray(n)&&n.length>1))&&this.currentUserCan("complete_lab")}.property("selectedLabType.[]","model.labTypeName"),actions:{completeLab:function(){this.set("model.status","Completed"),this.get("model").validate().then(function(){this.get("model.isValid")&&(this.set("model.labDate",new Date),this.send("update"))}.bind(this)).catch(a.default.K)},update:function(){var e=this;this.get("model.isNew")?function(){var t=e.get("model"),n=e.get("selectedLabType");a.default.isEmpty(e.get("model.status"))&&e.set("model.status","Requested"),e.set("model.requestedBy",t.getUserName()),e.set("model.requestedDate",new Date),a.default.isEmpty(n)?e.saveNewPricing(e.get("model.labTypeName"),"Lab","model.labType").then(function(){this.addChildToVisit(t,"labs","Lab").then(function(){this.saveModel()}.bind(this))}.bind(e)):e.getSelectedPricing("selectedLabType").then(function(e){a.default.isArray(e)?this.createMultipleRequests(e,"labType","labs","Lab"):(this.set("model.labType",e),this.addChildToVisit(t,"labs","Lab").then(function(){this.saveModel()}.bind(this)))}.bind(e))}():this.saveModel()}},additionalButtons:function(){var e=this.get("canComplete"),t=this.get("model.isValid"),n=this.get("i18n");if(t&&e)return[{buttonAction:"completeLab",buttonIcon:"glyphicon glyphicon-ok",class:"btn btn-primary on-white",buttonText:n.t("buttons.complete")}]}.property("canComplete","model.isValid"),pricingTypeForObjectType:"Lab Procedure",pricingTypes:a.default.computed.alias("labsController.labPricingTypes"),pricingList:null,updateCapability:"add_lab",afterUpdate:function(e,t){var n=this.get("i18n"),a=void 0,l=void 0,s=void 0;"Completed"===this.get("model.status")?(s=n.t("labs.alerts.requestCompletedTitle"),l=n.t("labs.alerts.requestCompletedMessage")):(s=n.t("labs.alerts.requestSavedTitle"),l=n.t("labs.alerts.requestSavedMessage")),t&&(a=this.get("cancelAction")),this.saveVisitIfNeeded(s,l,a),this.set("model.selectPatient",!1)}})}),define("hospitalrun/labs/edit/route",["exports","hospitalrun/routes/abstract-edit-route","hospitalrun/mixins/add-to-patient-route","hospitalrun/mixins/charge-route","ember","moment","hospitalrun/mixins/patient-list-route","ember-i18n"],function(e,t,n,a,l,s,i,o){e.default=t.default.extend(n.default,a.default,i.default,{editTitle:(0,o.translationMacro)("labs.editTitle"),modelName:"lab",newTitle:(0,o.translationMacro)("labs.newTitle"),pricingCategory:"Lab",customForms:l.default.inject.service(),actions:{returnToAllItems:function(){this.controller.send("returnToAllItems")}},getNewData:function(){var e={selectPatient:!0,requestDate:(0,s.default)().startOf("day").toDate(),customForms:l.default.Object.create()};return this.get("customForms").setDefaultCustomForms(["lab"],e)}})}),define("hospitalrun/labs/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"MQhMGsiN",block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],6]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["em-input"],null,[["property","label","class"],["result",["helper",["t"],["labels.result"],null],"test-result-input"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group col-xs-3"],["flush-element"],["text","\\n "],["open-element","label",[]],["flush-element"],["append",["helper",["t"],["labels.visit"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","visit","visitDate"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group col-xs-6"],["flush-element"],["text","\\n "],["open-element","label",[]],["flush-element"],["append",["helper",["t"],["labs.labels.labType"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","labType","name"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group col-xs-9"],["flush-element"],["text","\\n "],["open-element","label",[]],["flush-element"],["append",["helper",["t"],["labels.requestedBy"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","requestedBy"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content","optionValuePath","optionLabelPath","prompt","selected"],["col-xs-3 required test-visit-type",["helper",["t"],["labels.visit"],null],"visit",["get",["patientVisitsForSelect"]],"selectObject","selectObject.visitDescription",["helper",["t"],["labs.labels.addNewVisit"],null],["get",["model","visit"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["checkbox-or-typeahead"],null,[["property","label","list","selection","optionLabelPath","typeAheadType","className","prompt","model"],["labTypeName",["helper",["t"],["labs.labels.labType"],null],["get",["objectTypeList"]],["get",["selectedLabType"]],"name","pricing","required test-lab-type"," ",["get",["model"]]]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["patient-summary"],null,[["patient","returnTo","returnToContext","disablePatientLink"],[["get",["model","patient"]],"labs.edit",["get",["model","id"]],["get",["model","isNew"]]]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["patient-typeahead"],null,[["property","label","content","selection","class"],["patientTypeAhead",["helper",["t"],["labels.patient"],null],["get",["patientList"]],["get",["selectedPatient"]],"required test-patient-name"]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["model","selectPatient"]]],null,4,3],["block",["if"],[["get",["model","isNew"]]],null,2,1],["block",["if"],[["get",["canComplete"]]],null,0],["text"," "],["append",["helper",["expand-text"],null,[["property","label","rows"],["notes",["helper",["t"],["labels.notes"],null],3]]],false],["text","\\n "],["append",["helper",["custom-form-manager"],null,[["model","formType"],[["get",["model"]],"lab"]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],5]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/labs/edit/template.hbs"}})}),define("hospitalrun/labs/index/controller",["exports","hospitalrun/controllers/abstract-paged-controller","hospitalrun/mixins/user-session"],function(e,t,n){e.default=t.default.extend(n.default,{startKey:[],addPermission:"add_lab"})}),define("hospitalrun/labs/index/labs-edit-button/component",["exports","ember"],function(e,t){e.default=t.default.Component.extend({tagName:"button",classNames:["btn","btn-default","neutral"]})}),define("hospitalrun/labs/index/labs-edit-button/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"D+D+/RzO",block:'{"statements":[["block",["link-to"],["labs.edit",["get",["lab"]]],null,0],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["append",["helper",["t"],["labels.edit"],null],false]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/labs/index/labs-edit-button/template.hbs"}})}),define("hospitalrun/labs/index/labs-list-item/component",["exports","ember"],function(e,t){e.default=t.default.Component.extend({tagName:"tr",classNames:["clickable"],click:function(){this.sendAction("action",this.lab)}})}),define("hospitalrun/labs/index/labs-list-item/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"lUoTUBbz",block:'{"statements":[["open-element","td",[]],["static-attr","class","requested-date"],["flush-element"],["append",["helper",["date-format"],[["get",["lab","requestedDate"]]],[["format"],["l h:mm A"]]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","patient"],["flush-element"],["append",["unknown",["lab","patient","displayName"]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","requested-by"],["flush-element"],["append",["unknown",["lab","requestedBy"]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","lab-type"],["flush-element"],["append",["unknown",["lab","labType","name"]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","notes"],["flush-element"],["append",["unknown",["lab","notes"]],false],["close-element"],["text","\\n"],["block",["if"],[["get",["showActions"]]],null,1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["labs/index/labs-edit-button"],null,[["lab"],[["get",["lab"]]]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["canEdit"]]],null,0],["text"," "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/labs/index/labs-list-item/template.hbs"}})}),define("hospitalrun/labs/index/route",["exports","hospitalrun/routes/abstract-index-route","ember-i18n"],function(e,t,n){e.default=t.default.extend({modelName:"lab",pageTitle:(0,n.translationMacro)("labs.requestsTitle"),searchStatus:"Requested",_getStartKeyFromItem:function(e){var t=e.get("labDateAsTime"),n=this._getPouchIdFromItem(e),a=e.get("requestedDateAsTime");return[this.get("searchStatus"),a,t,n]},_modelQueryParams:function(){var e=this._getMaxPouchId(),t=this.get("maxValue"),n=this._getMinPouchId(),a=this.get("searchStatus");return{options:{startkey:[a,null,null,n],endkey:[a,t,t,e]},mapReduce:"lab_by_status"}}})}),define("hospitalrun/labs/index/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"6Iu3UI4u",
+block:'{"statements":[["block",["item-listing"],null,[["paginationProps"],[["get",["paginationProps"]]]],5]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["open-element","a",[]],["static-attr","href","#"],["modifier",["action"],[["get",[null]],"newItem"]],["flush-element"],["append",["helper",["t"],["labs.messages.createNewRecord"],null],false],["close-element"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-info"],["flush-element"],["text","\\n "],["open-element","p",[]],["flush-element"],["append",["helper",["t"],["labs.messages.noItemsFound"],null],false],["text"," "],["block",["if"],[["get",["canAdd"]]],null,0],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["labs/index/labs-list-item"],null,[["lab","action","showActions","canEdit"],[["get",["lab"]],"editItem",["get",["showActions"]],["get",["canEdit"]]]]],false],["text","\\n"]],"locals":["lab"]},{"statements":[["text"," "],["open-element","th",[]],["static-attr","class","col-xs-2"],["flush-element"],["append",["helper",["t"],["labels.actions"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["open-element","th",[]],["static-attr","class","col-xs-2"],["flush-element"],["append",["helper",["t"],["labels.dateRequested"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["static-attr","class","col-xs-2"],["flush-element"],["append",["helper",["t"],["labels.patient"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["static-attr","class","col-xs-2"],["flush-element"],["append",["helper",["t"],["labels.requestedBy"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["static-attr","class","col-xs-2"],["flush-element"],["append",["helper",["t"],["labs.labels.labType"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["static-attr","class","col-xs-2"],["flush-element"],["append",["helper",["t"],["labels.notes"],null],false],["close-element"],["text","\\n"],["block",["if"],[["get",["showActions"]]],null,3],["text"," "],["close-element"],["text","\\n"],["block",["each"],[["get",["model"]]],null,2],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["hasRecords"]]],null,4,1]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/labs/index/template.hbs"}})}),define("hospitalrun/labs/route",["exports","hospitalrun/routes/abstract-module-route","ember-i18n"],function(e,t,n){e.default=t.default.extend({addCapability:"add_lab",additionalModels:[{name:"labPricingTypes",findArgs:["lookup","lab_pricing_types"]}],allowSearch:!1,moduleName:"labs",newButtonText:(0,n.translationMacro)("labs.buttons.newButton"),sectionTitle:(0,n.translationMacro)("labs.sectionTitle")})}),define("hospitalrun/locales/de/translations",["exports"],function(e){e.default={admin:{address:{address1Label:"Adresse 1 Kennzeichen",address2Label:"Adresse 2 Kennzeichen",address3Label:"Adresse 3 Kennzeichen",address4Label:"Adresse 4 Kennzeichen",addressLabel:"",editTitle:"",include1Label:"Einbezug 1 Kennzeichen",include2Label:"Einbezug 2 Kennzeichen",include3Label:"Einbezug 3 Kennzeichen",include4Label:"Einbezug 4 Kennzeichen",messages:{addressSaved:"Die Adressoptionen wurden gespeichert"},newTitle:"",titles:{optionsSaved:"Optionen gespeichert"}},addressOptions:"Adressoptionen",customForms:{buttons:{addField:"",moveDown:"",moveUp:"",newForm:"",preview:""},labels:{alwaysInclude:"",checkbox:"",colSpan:"",columns:"",customForm:"",dischargeReportFormType:"",formName:"",formType:"",incidentFormType:"",includeOtherOption:"",labFormType:"",label:"",newForm:"",opdReportFormType:"",operativePlanFormType:"",otherOptionLabel:"",patientFormType:"",property:"",radio:"",select:"",socialworkFormType:"",text:"",textarea:"",visitFormType:""},messages:{formSaved:""},titles:{checkboxValues:"",customForms:"",deleteForm:"",dropDownValues:"",editCustomForm:"",fields:"",formSaved:"",newCustomForm:"",radioValues:""}},header:{editTitle:"",facilityName:"",headerLabel:"",headerLine1:"",headerLine2:"",headerLine3:"",logoURL:"",messages:{headerSaved:""},newTitle:"",titles:{optionsSaved:""}},loadDb:"Datenbank laden",loaddb:{displayAlertMessage:"",displayAlertTitle:"",editTitle:"",errorDisplayAlertMessage:"",errorDisplayAlertTitle:"",progressMessage:"",progressTitle:""},lookup:{aisleLocationList:"Gänge-Verzeichnis",alertImportListMessage:"",alertImportListSaveMessage:"",alertImportListSaveTitle:"",alertImportListTitle:"",alertImportListUpdateMessage:"",alertImportListUpdateTitle:"",anesthesiaTypes:"Anästhesiearten",anesthesiologists:"Anästhesiologe",billingCategories:"Abrechnungskategorien",clinicList:"Kliniken",countryList:"Länder",cptCodeList:"CPT Codes",diagnosisList:"Diagnosen",edit:{template:{addTitle:"",editTitle:"",labelTitle:"",updateButtonTextAdd:"",updateButtonTextUpdate:""}},expenseAccountList:"Ausgabekonten",imagingPricingTypes:"Bildgebungs-Preiskategorien",incidentDepartments:"",inventoryTypes:"Inventartypen",labPricingTypes:"Labor-Preiskategorien",pageTitle:"",patientStatusList:"Patientenstatus",physicianList:"Ärzte",procedureList:"Abläufe",procedureLocations:"Ablaufs-Orte",procedurePricingTypes:"Ablaufs-Preiskategorien",radiologists:"Radiologen",titles:{deleteLookupValue:""},unitTypes:"Einheiten",vendorList:"Anbieter",visitLocationList:"Einsatzorte",visitTypes:"Besuchsarten",wardPricingTypes:"Krankenstations-Preistypen",warehouseList:"Warenhaus"},lookupLists:"Nachschlagelisten",roles:{capability:{addAllergy:"",addAppointment:"",addBillingDiagnosis:"",addCharge:"",addDiagnosis:"",addImaging:"",addIncident:"",addIncidentCategory:"",addInventoryItem:"",addInventoryPurchase:"",addInventoryRequest:"",addInvoice:"",addLab:"",addMedication:"",addNote:"",addOperationReport:"",addOperativePlan:"",addPatient:"",addPayment:"",addPhoto:"",addPricing:"",addPricingProfile:"",addProcedure:"",addSocialwork:"",addVisit:"",addVitals:"",adjustInventoryLocation:"",admin:"",admitPatient:"",appointments:"",billing:"",completeImaging:"",completeLab:"",defineUserRoles:"",deleteAppointment:"",deleteDiagnosis:"",deleteImaging:"",deleteIncident:"",deleteIncidentCategory:"",deleteInventoryItem:"",deleteInvoice:"",deleteLab:"",deleteMedication:"",deleteNote:"",deletePatient:"",deletePhoto:"",deletePricing:"",deletePricingProfile:"",deleteProcedure:"",deleteSocialwork:"",deleteVisit:"",deleteVitals:"",dischargePatient:"",editInvoice:"",fulfillInventory:"",fulfillMedication:"",generateIncidentReport:"",imaging:"",incident:"",inventory:"",invoices:"",labs:"",loadDb:"",manageIncidents:"",medication:"",overrideInvoice:"",patientReports:"",patients:"",pricing:"",updateConfig:"",visits:""},messages:{roleSaved:""},titles:{roleSaved:""}},userRoles:"",users:"Benutzer",visitForms:{labels:{followup:"",form:"",initial:"",visitType:""},titles:{visitForms:""}},workflow:{admissionDepositLabel:"",clinicPrepaymentLabel:"",editTitle:"",followupPrepaymentLabel:"",messages:{optionsSaved:""},newTitle:"",outpatientImagingLabel:"",outpatientLabLabel:"",outpatientMedicationLabel:"",titles:{optionsSaved:""},workflowLabel:""}},alerts:{errorExclamation:"",pleaseWait:"",reportError:"",warningExclamation:""},allergies:{buttons:{addAllergy:""},labels:{allergyName:"",patientAllergy:""},titles:{addAllergy:"",editAllergy:""}},application:{messages:{sessionExpired:""},titles:{sessionExpired:""}},appointments:{buttons:{newButton:"",scheduleSurgery:""},calendarTitle:"",currentScreenTitle:"",editTitle:"",labels:{noLocation:"",selectedStartingDate:""},messages:{appointmentSaved:"",endTimeLaterThanStart:""},missed:"",newTitle:"",searchTitle:"",sectionTitle:"",thisWeek:"",titles:{appointmentSaved:"",editSurgicalAppointment:"",newSurgicalAppointment:"",theaterSchedule:""},todayTitle:""},billing:{alerts:{noInvoiceFound:"",noPricingItems:"",noPricingProfiles:""},buttons:{addOverride:"",createInvoice:""},labels:{actualCharges:"",discountAmount:"",discountPercentage:"",externalInvoiceNumber:"",hmoCom:"",insurance:"",paymentProfile:"",paymentsDeposits:"",pricingPanelOverrides:"",pricingProfile:""}},buttons:{add:"Hinzufügen",addItem:"",addLineItem:"",addValue:"Wert hinzufügen",addVisit:"",allRequests:"",barcode:"",cancel:"Abbrechen",clear:"",close:"",complete:"Abschließen",delete:"Entfernen",dispense:"",edit:"",filter:"",fulfill:"",import:"Importieren",loadFile:"Datei laden",newItem:"",newNote:"",newRequest:"",newRequestPlus:"",newUser:"Neuer Benutzer",ok:"Okay",remove:"",returnButton:"Zurück",search:"",showAll:"",showFewer:"",update:"Aktualisieren"},components:{chargesByTypeTab:{charges:""},customFormManager:{buttons:{addForm:""}},dateTimePicker:{amHour:"",midnight:"",noon:"",pmHour:""},imageUpload:{messages:{selectValidImageFile:""}},operativeProcedures:{buttons:{addProcedure:""},labels:{procedure:""},titles:{procedures:""}},patientOrders:{buttons:{newImaging:"",newLab:"",newMedication:""},labels:{imagingOrderType:"",labOrderType:"",medicationOrderType:"",orderType:""}},priceList:{charges:""},quantityCalc:{result:""},quantityConv:{conversion:"",unit:""},sortableColumn:{labels:{selectAll:""}},takePhoto:{camera:"",how:"",labels:{takeAPicture:"",uploadAFile:""},photo:"",preview:"",takePhoto:"",uploadFile:""},upcomingAppointments:{labels:{date:"",location:"",type:"",with:""},titles:{upcomingAppointments:""}}},customForms:{buttons:{addForm:""},labels:{formToAdd:""},titles:{addCustomForm:""}},dashboard:{setup:"",title:"Was möchten Sie tun?"},dates:{long:"",longOmitDays:"",longOmitDaysPlural:"",longOmitDaysYears:"",longOmitYears:"",longPlural:"",short:"",shortOmitYears:""},diagnosis:{labels:{activeDiagnosis:"",date:"",diagnosis:"",secondaryDiagnosis:""},titles:{addDiagnosis:"",editDiagnosis:""}},errors:{accepted:"",blank:"",confirmation:"",empty:"",equalTo:"",even:"",exclusion:"",greaterThan:"",greaterThanOrEqualTo:"",inclusion:"",invalid:"",invalidNumber:"",lessThan:"",lessThanOrEqualTo:"",notANumber:"",notAnInteger:"",odd:"",otherThan:"",present:"",result:"",tooLong:"",tooShort:"",wrongLength:""},headings:{chargedItems:""},imaging:{alerts:{completedMessage:"Die Anfrage zur Bildgebung wurde abgeschlossen.",completedTitle:"Bildgebungs-Anfrage gestellt",savedMessage:"Die Anfrage zur Bildgebung wurde gespeichert.",savedTitle:"Bildgebungs-Anfrage gespeichert"},buttons:{newButton:"+ Neue Bildgebung"},labels:{addNewVisit:"--Neuen Besuch hinzufügen--",radiologist:"Radiologe"},messages:{noCompleted:"Keine erledigten Einträge gefunden."},pageTitle:"Anfrage zur Bildgebung",sectionTitle:"Bildgebung",titles:{completedImaging:"Erledigte Bildgebung",editTitle:"Bildgebungs-Anfrage bearbeiten",newTitle:"Neue Bildgebungs-Anfrage"}},incident:{buttons:{add:"",addForm:"",addItem:"",cancel:"",delete:"",download:"",edit:"",export:"",generateRep:"",newAttachment:"",newCategory:"",newIncident:"",newNote:""},labels:{actions:"",addedBy:"",category:"",categoryItem:"",date:"",dateRecorded:"",department:"",description:"",endDate:"",givenBy:"",howToAddAttachment:"",incidentDate:"",incidentId:"",item:"",lastUpdated:"",note:"",patientId:"",patientImpacted:"",reportType:"",reportedBy:"",reportedDate:"",reportedTo:"",sentinelEvent:"",startDate:"",status:"",statusActive:"",statusClosed:"",statusFollowup:"",statusReported:"",title:"",total:"",updatedBy:""},messages:{attachmentFileRequired:"",createNew:"",createNewIncidentCategory:"",fillIn:"",incidentCategorySaved:"",noClosedIncidents:"",noIncidentCategoriesFound:"",noIncidents:"",saved:"",selectExistingPatient:""},titles:{addAttachment:"",addCategoryItem:"",addNote:"",attachments:"",closed:"",current:"",deleteAttachment:"",deleteIncident:"",deleteIncidentCategory:"",deleteItem:"",deleteNote:"",editAttachment:"",editIncident:"",editIncidentCategory:"",editNote:"",general:"",history:"",incidentCategories:"",incidentCategoryItem:"",incidentCategoryName:"",incidentCategorySaved:"",incidentSaved:"",incidents:"",incidentsByCategory:"",incidentsByDepartment:"",newIncident:"",newIncidentCategory:"",notes:"",reports:""}},inventory:{edit:{cost:"",delivered:"",location:"",prescription:"",pulled:"",quantity:"",reason:"",returned:"",transferredFrom:"",transferredTo:""},labels:{action:"",add:"",addAdjustmentType:"",adjust:"",adjustmentDate:"",adjustmentFor:"",adjustmentType:"",aisle:"",aisleLocation:"",allInventory:"",allItems:"",availableQuantity:"",billTo:"",consumePurchases:"",consumptionRate:"",cost:"",costPerUnit:"",crossReference:"",currentQuantity:"",dateCompleted:"",dateEffective:"",dateEnd:"",dateReceived:"",dateStart:"",dateTransferred:"",daysLeft:"",deleteItem:"",deliveryAisle:"",deliveryLocation:"",details:"",distributionUnit:"",editItem:"",expense:"",expirationDate:"",fulfillRequest:"",fulfillRequestNow:"",gift:"",giftInKindNo:"",giftInKindYes:"",giftUsage:"",inventoryConsumed:"",inventoryItem:"",inventoryObsolence:"",invoiceItems:"",invoiceLineItem:"",invoiceNumber:"",item:"",itemNumber:"",items:"",location:"",locations:"",markAsConsumed:"",name:"",newItem:"",originalQuantity:"",print:"",printBarcode:"",printer:"",pullFrom:"",purchaseCost:"",purchaseInfo:"",purchases:"",quantity:"",quantityAvailable:"",quantityOnHand:"",quantityRequested:"",rank:"",reason:"",remove:"",removeAdjustmentType:"",reorderPoint:"",requestedItems:"",returnAdjustmentType:"",returnToVendorAdjustmentType:"",salePricePerUnit:"",save:"",serialNumber:"",total:"",totalCost:"",totalReceived:"",transaction:"",transactions:"",transfer:"",transferFrom:"",transferTo:"",transferToAisle:"",unit:"",unitCost:"",vendor:"",vendorItemNumber:"",writeOffAdjustmentType:"",xref:""},messages:{adjust:"",createRequest:"Neue Anfrage erstellen?",itemNotFound:"",loading:"",noItems:"",noRequests:"Keine Anfragen gefunden.",purchaseSaved:"",quantity:"",removeItem:"",removeItemRequest:"",requestFulfilled:"",requestUpdated:"",warning:""},reports:{adjustment:"",daysSupply:"",expenseDetail:"",expenseSum:"",expiration:"",export:"",fields:"",finance:"",generate:"",invLocation:"",invValuation:"",purchaseDetail:"",purchaseSum:"",reportType:"",rows:{adjustments:"",adjustmentsTotal:"",balanceBegin:"",balanceEnd:"",category:"",consumed:"",consumedGik:"",consumedGikTotal:"",consumedPuchases:"",consumedPurchasesTotal:"",consumedTotal:"",errInFinSum:"",errInFindPur:"",errInFindReq:"",expensesFor:"",noAccount:"",subtotal:"",subtotalFor:"",total:"",totalFor:"",totalPurchases:"",transfer1:"",trasnfer2:""},stockTransferDetail:"",stockTransferSum:"",stockUsageDetail:"",stockUsageSum:"",titleDateRange:"",titleSingleDate:""},titles:{addPurchase:"",addRequest:"",adjustment:"",editPurchase:"",editRequest:"",inventoryItem:"",inventoryReport:"",purchaseSaved:"",quickAddTitle:"",removeItem:"",requestFulfilled:"",requestUpdated:"",transfer:"",warning:""}},labels:{action:"Aktion",actions:"Aktionen",addNewOutpatientVisit:"",address:"",age:"Alter",allDay:"",amount:"",anesthesia:"",assisting:"",balanceDue:"",billDate:"",billTo:"",category:"",completed:"Erledigt",country:"",cptcode:"",creditTo:"",date:"",dateCompleted:"Abschlussdatum",dateOfBirth:"",dateOfBirthShort:"",datePaid:"",dateRequested:"Anfragedatum",delete:"Entfernen",deleteRequest:"",deleteUser:"Benutzer löschen",department:"",description:"",discount:"",displayName:"Angezeigter Name",docRead:"Dokument gelesen",docWritten:"Dokument geschrieben",edit:"Bearbeiten",editUser:"Benutzer bearbeiten",email:"E-Mail",endDate:"",endTime:"Endzeit",excess:"",expenseTo:"",fileLoadSuccessful:"Datei erfolgreich geladen",fileName:"",fileToLoad:"Datei laden",fulfill:"Ausführen",fulfillRequest:"",fulfillRequestNow:"",fulfilled:"",grandTotal:"",id:"Id-Nr",imageOrders:"",imagingType:"Bildgebungsart",importFile:"Datei importieren",invoiceId:"",labOrders:"",lineItems:"",loading:"",location:"",lookupType:"Nachschlagebereich",medication:"",name:"Name",newUser:"Neuer Benutzer",note:"",notes:"Notizen",number:"",on:"",password:"Passwort",patient:"Patient",payments:"",physician:"",prescriber:"",prescription:"",prescriptionDate:"",price:"",print:"",procedures:"",provider:"",pullFrom:"",quantity:"Anzahl",remarks:"",requestedBy:"Angefragt von",requestedOn:"Angefragt am",requests:"Anfragen",result:"Ergebnis",results:"Ergebnisse",role:"Rolle",search:"",sex:"Geschlecht",startDate:"",startTime:"Startzeit",status:"",takenBy:"",total:"",type:"",userCanAddNewValue:"Benutzer kann neue Werte hinzufügen",username:"Username",value:"Wert",view:"",visit:"Besuch",with:""},labs:{alerts:{requestCompletedMessage:"",requestCompletedTitle:"",requestSavedMessage:"",requestSavedTitle:""},buttons:{newButton:""},completedTitle:"",deleteTitle:"",editTitle:"",labels:{addNewVisit:"",labType:""},messages:{createNewRecord:"",noCompleted:"",noItemsFound:""},newTitle:"",requestsTitle:"",sectionTitle:""},loading:{messages:{0:"",1:"",2:"",3:"",4:"",5:"",6:"",7:"",8:"",9:"",10:"",11:""},progressBar:{progress:""}},login:{labels:{password:"Passwort",signIn:"Anmelden",username:"Benutzername"},messages:{error:"Benutzername oder Passwort falsch.",signIn:"Bitte anmelden"}},medication:{alerts:{fulfilledTitle:"",returnedMessage:"",returnedTitle:"",savedMessage:"",savedTitle:""},buttons:{dispenseMedication:"",newButton:"",returnMedication:""},labels:{adjustmentDate:"",creditToAccount:"",quantityDispensed:"",quantityDistributed:"",quantityRequested:"",quantityToReturn:"",refills:"",returnAisle:"",returnLocation:"",returnReason:""},messages:{createNew:""},pageTitle:"",returnMedication:"",sectionTitle:"",titles:{completedMedication:"",editMedicationRequest:"",newMedicationRequest:""}},messages:{createNewRecord:"Neuen Eintrag erstellen?",createNewUser:"Neuen Benutzer hinzufügen?",delete:"",delete_plural:"",delete_singular:"",forAuthorizedPersons:"Dieser Bericht ist nur für autorisierte Personen.",newPatientHasToBeCreated:"",noHistoryAvailable:"",noItemsFound:"Keine Einträge gefunden.",noNotesAvailable:"",noUsersFound:"Keine Benutzer gefunden.",onBehalfOf:"",reportError:"",requiredFieldsCorrectErrors:"",saveActionException:"",sorry:"",userHasBeenSaved:"Der Benutzer wurde gespeichert.",userSaved:"Benutzer gespeichert"},models:{appointment:{labels:{allDay:"",appointmentDate:"",appointmentType:"",endDate:"",location:"",notes:"",patient:"",provider:"",startDate:"",status:"",type:""},names:{plural:"",singular:""}},attachment:{names:{plural:"",singular:""}},form:{names:{plural:"",singular:""}},imaging:{names:"",request:{plural:"",singular:""}},incident:{names:{plural:"",singular:""}},item:{names:{plural:"",singular:""}},lab:{names:{plural:"",singular:""},request:{plural:"",singular:""}},medication:{names:{plural:"",singular:""},request:{plural:"",singular:""}},note:{names:{plural:"",singular:""}},patient:{labels:{name:""},names:{singular:""}},procedure:{names:{plural:"",singular:""}},user:{names:{plural:"",singular:""}},visit:{names:{plural:"",singular:""}},vital:{names:{plural:"",singular:""}}},navigation:{about:"Über HospitalRun",actions:{login:"Anmelden",logout:"Abmelden"},administration:"Administration",billing:"Abrechnung",imaging:"Bildgebung",incident:"",inventory:"Inventar",labs:"Labore",medication:"Medikation",patients:"Patienten",scheduling:"",subnav:{actions:"",addAppointment:"Termin eintragen",addressFields:"Adressfelder",admittedPatients:"",appointmentSearch:"",appointmentsCalendar:"",appointmentsThisWeek:"",completed:"Erledigt",currentIncidents:"",customForms:"",dispense:"Verabreichen",history:"",incidentCategories:"",inventoryReceived:"Eingeganges Inventar",invoices:"Rechnungen",items:"Einheiten",loadDB:"",lookupLists:"Nachschlagelisten",missedAppointments:"",newIncident:"",newInvoice:"Neue Rechnung",newPatient:"Neuer Patient",newRequest:"Neue Anfrage",newUser:"Neuer Benutzer",outpatient:"",patientListing:"Patietenliste",priceProfiles:"Preisprofile",prices:"Kosten",printHeader:"",reports:"Berichte",requests:"Anfragen",returnMedication:"Medikamente zurückgeben",scheduleSurgery:"",theaterSchedule:"","today'sAppointments":"",userRoles:"",users:"Benutzer",workflow:""}},operationReport:{labels:{additionalNotes:"",assistant:"",caseComplexity:"",operationDescription:"",preOpPrimaryDiagnosis:"",preOpSecondaryDiagnosis:"",surgeon:"",surgeryDate:""},messages:{reportSaved:""},titles:{editTitle:"",newTitle:"",reportSaved:""}},operativePlan:{buttons:{completePlan:""},labels:{additionalNotes:"",admissionInstructions:"",caseComplexity:"",completedStatus:"",droppedStatus:"",operationDescription:"",plannedStatus:"",status:"",surgeon:""},messages:{planCompleted:"",planSaved:""},titles:{editTitle:"",newTitle:"",planCompleted:"",planSaved:""}},patients:{buttons:{addContact:"",addExpense:"",addFamilyMember:"",addOperativePlan:"",backToPatients:"",download:"",editOperativePlan:"",newAppointment:"",newImaging:"",newLab:"",newMedication:"",newPatient:"",newPhoto:"",newVisit:"",patientCheckIn:"",scheduleSurgery:""},labels:{admissionDate:"",admit:"",bloodType:"",caption:"",civilStatus:"",clinic:"",contacts:"",cost:"",dateOfBirth:"",dateProcessed:"",dischargeDate:"",dob:"",education:"",email:"",externalPatientId:"",firstName:"",income:"",insurance:"",lastName:"",middleName:"",monthlyCost:"",occupation:"",operativePlan:"",parent:"",patientDays:"",patientType:"",patientTypeCharity:"",patientTypePrivate:"",phone:"",placeOfBirth:"",primaryDiagnosis:"",referredBy:"",referredDate:"",relationship:"",relationships:"",religion:"",secondaryDiagnosis:"",sex:"",sexNotEntered:"",sources:"",status:"",totalMontlyExpense:""},messages:{areYouSureDelete:"",createNewPatient:"",deletingPatient:"",noPatientsFound:"",notFoundQuickAdd:"",photoFileRequired:"",savedPatient:""},navigation:{appointments:"",general:"",history:"",imaging:"",labs:"",medication:"",photos:"",socialWork:"",visits:""},notes:{newNote:"",onBehalfOfCopy:"",onBehalfOfLabel:"",pleaseSelectAVisit:"",updateNote:""},titles:{addContact:"",addPhoto:"",additionalContacts:"",admissionsDetail:"",admissionsSummary:"",admittedPatients:"",delete:"",deleteContact:"",deleteExpense:"",deleteFamilyMember:"",deletePatientRecord:"",deletePhoto:"",diagnosticTesting:"",dischargesDetail:"",dischargesSummary:"",edit:"",editPhoto:"",expenses:"",familyInfo:"",familyInformation:"",new:"",outpatientsForDate:"",patient:"",patientListing:"",patientReport:"",patientStatus:"",proceduresDetail:"",proceduresSummary:"",savedPatient:"",socialWork:"",todaysOutpatients:"",totalPatientDays:"",totalPatientDaysDetailed:"",visit:""}},print:{invoice:{labels:{billedBy:"",billedDate:"",dateAdmitted:"",dateDischarged:"",dischargeNotes:"",patientAddress:"",patientAge:"",patientId:"",patientName:"",remarks:"",spacer:""},messages:{whereConducted:""},titles:{billingStatement:"",patientMember:"",patients:"",relContact:""}}},procedures:{buttons:{addMedication:""},labels:{medicationUsed:""},messages:{saved:""},titles:{addChargeItem:"",addMedicationUsed:"",deleteChargeItem:"",deleteMedicationUsed:"",edit:"",editChargeItem:"",editMedicationUsed:"",medicationUsed:"",new:"",saved:""}},reports:{labels:{admissionDate:"",allProcedures:"",completedBy:"",dischargeDate:"",examiner:"",images:"",labs:"",location:"",medications:"",nextAppointment:"",nextAppointments:"",notes:{author:"",date:"",title:""},operativePlan:{description:"",instructions:"",procedures:"",title:""},primaryDiagnosis:"",procedures:"",secondaryDiagnosis:"",visitDate:"",visitType:""},messages:{delete:"",saved:""},titles:{dischargeReport:"",newDischargeReport:"",newOPDReport:"",opdReport:"",saved:""}},user:{plusNewUser:"+ Neuer Benutzer",usersPageTile:"Benutzerliste"},visits:{buttons:{addDiagnosis:"",checkIn:"",checkOut:"",discharge:"",newAppointment:"",newDischargeReport:"",newOPDReport:"",newProcedure:"",newVitals:""},labels:{appointment:"",authoredBy:"",checkInTime:"",checkOutTime:"",createNewPatient:"",diagnosis:"",examiner:"",finalDiagnosis:"",haveAppointment:"",haveDoneOrders:"",noAppointment:"",ordersDone:"",ordersNotDone:"",patientToCheckIn:"",procedure:"",procedureDate:"",reasonForVisit:"",reportType:"",status:"",statusAdmitted:"",statusCheckedIn:"",statusCheckedOut:"",statusDischarged:"",visitDate:"",visitInformation:"",visitType:""},messages:{checkOut:"",checkedOut:"",discharged:"",patientCheckedIn:"",patientCreatedAndCheckedIn:"",visitAndPatientSaved:"",visitSaved:""},navigation:{charges:"",notes:"",orders:"",procedures:"",reports:"",vitals:""},titles:{additionalDiagnoses:"",checkOut:"",checkedIn:"",checkedOut:"",discharged:"",editVisit:"",newVisit:"",patientCheckIn:"",visitSaved:""}},vitals:{labels:{dateRecorded:"",dbp:"",heartRate:"",height:"",respiratoryRate:"",sbp:"",temperature:"",weight:""}}}}),define("hospitalrun/locales/en/config",["exports"],function(e){e.default={}}),define("hospitalrun/locales/en/translations",["exports"],function(e){e.default={admin:{address:{address1Label:"Address 1 Label",address2Label:"Address 2 Label",address3Label:"Address 3 Label",address4Label:"Address 4 Label",addressLabel:"Address",editTitle:"Address Options",include1Label:"Include 1 Label",include2Label:"Include 2 Label",include3Label:"Include 3 Label",include4Label:"Include 4 Label",messages:{addressSaved:"The address options have been saved"},newTitle:"Address Options",titles:{optionsSaved:"Options Saved"}},addressOptions:"Address Options",customForms:{buttons:{addField:"Add Field",moveDown:"Move Down",moveUp:"Move Up",newForm:"+ new form",preview:"Preview"},labels:{alwaysInclude:"Always Include",checkbox:"Checkbox",colSpan:"Number of Columns To Span",columns:"Columns",customForm:"Custom Form",dischargeReportFormType:"Discharge Report",expenseTo:"Expense To",formName:"Form Name",formType:"Form Type",incidentFormType:"Incident",includeOtherOption:"Include Other Option",labFormType:"Lab",label:"Label",newForm:"New Form",opdReportFormType:"Outpatient Report",operativePlanFormType:"Operative Plan and Report",otherOptionLabel:"Other Option Label",patientFormType:"Patient",property:"Property",radio:"Radio",select:"Dropdown",socialworkFormType:"Social Work",text:"Text",textarea:"Large Text",visitFormType:"Visit"},messages:{formSaved:"The {{name}} form has been saved."},titles:{checkboxValues:"Checkbox Values",customForms:"Custom Forms",deleteForm:"Delete Custom Form",dropDownValues:"Dropdown Values",editCustomForm:"Edit Custom Form",fields:"Fields",formSaved:"Form Saved",newCustomForm:"New Custom Form",radioValues:"Radio Values"}},header:{editTitle:"Header Options",facilityName:"Facility Name",headerLabel:"Header",headerLine1:"Header Line 1",headerLine2:"Header Line 2",headerLine3:"Header Line 3",logoURL:"Logo URL",messages:{headerSaved:"The header options have been saved"},newTitle:"Header Options",titles:{optionsSaved:"Options Saved"}},loadDb:"Load DB",loaddb:{displayAlertMessage:"Please select file to load.",displayAlertTitle:"Select File To Load",editTitle:"Load DB",errorDisplayAlertMessage:"The database could not be imported. The error was: {{error}}",errorDisplayAlertTitle:"Error Loading",progressMessage:"Please wait while your database is loaded.",progressTitle:"Loading Database"},lookup:{aisleLocationList:"Inventory Aisle Locations",alertImportListMessage:"Please select file to import.",alertImportListSaveMessage:"The lookup list has been imported.",alertImportListSaveTitle:"List Imported",alertImportListTitle:"Select File To Import",alertImportListUpdateMessage:"The lookup list has been saved.",alertImportListUpdateTitle:"List Saved",anesthesiaTypes:"Anesthesia Types",anesthesiologists:"Anesthesiologists",billingCategories:"Billing Categories",clinicList:"Clinic Locations",countryList:"Countries",cptCodeList:"CPT Codes",diagnosisList:"Diagnoses",edit:{template:{addTitle:"Add Value",editTitle:"Edit Value",labelTitle:"Value",updateButtonTextAdd:"Add",updateButtonTextUpdate:"Update"}},expenseAccountList:"Expense Accounts",imagingPricingTypes:"Imaging Pricing Types",incidentDepartments:"Incident Departments",inventoryTypes:"Inventory Types",labPricingTypes:"Lab Pricing Types",pageTitle:"Lookup Lists",patientStatusList:"Patient Status List",physicianList:"Physicians",procedureList:"Procedures",procedureLocations:"Procedures Locations",procedurePricingTypes:"Procedure Pricing Types",radiologists:"Radiologists",titles:{deleteLookupValue:"Delete Value"},unitTypes:"Unit Types",vendorList:"Vendor",visitLocationList:"Visit Locations",visitTypes:"Visit Types",wardPricingTypes:"Ward Pricing Types",warehouseList:"Inventory Locations"},lookupLists:"Lookup Lists",roles:{capability:{addAllergy:"Add Allergy",addAppointment:"Add Appointment",addBillingDiagnosis:"Add Billing Diagnosis",addCharge:"Add Charge",addDiagnosis:"Add Diagnosis",addImaging:"Add Imaging",addIncident:"Add Incident",addIncidentCategory:"Add Incident Category",addInventoryItem:"Add Inventory Item",addInventoryPurchase:"Add Inventory Purchase",addInventoryRequest:"Add Inventory Request",addInvoice:"Add Invoice",addLab:"Add Lab",addMedication:"Add Medication",addNote:"Add Note",addOperationReport:"Add Operation Report",addOperativePlan:"Add Operative Plan",addPatient:"Add Patient",addPayment:"Add Payment",addPhoto:"Add Photo",addPricing:"Add Pricing",addPricingProfile:"Add Pricing Profile",addProcedure:"Add Procedure",addSocialwork:"Add Social Work",addVisit:"Add Visit",addVitals:"Add Vitals",adjustInventoryLocation:"Adjust Inventory Location",admin:"Administration",admitPatient:"Admit Patient",appointments:"Appointments",billing:"Billing",cashier:"Cashier",completeImaging:"Complete Imaging",completeLab:"Complete Lab",defineUserRoles:"Define User Roles",deleteAppointment:"Delete Appointment",deleteDiagnosis:"Delete Diagnosis",deleteImaging:"Delete Imaging",deleteIncident:"Delete Incident",deleteIncidentCategory:"Delete Incident Category",deleteInventoryItem:"Delete Inventory Item",deleteInvoice:"Delete Invoice",deleteLab:"Delete Lab",deleteMedication:"Delete Medication",deleteNote:"Delete Note",deletePatient:"Delete Patient",deletePhoto:"Delete Photo",deletePricing:"Delete Pricing",deletePricingProfile:"Delete Pricing Profile",deleteProcedure:"Delete Procedure",deleteSocialwork:"Delete Social Work",deleteVisit:"Delete Visit",deleteVitals:"Delete Vitals",dischargePatient:"Discharge Patient",editInvoice:"Edit Invoice",fulfillInventory:"Fulfill Inventory",fulfillMedication:"Fulfill Medication",generateIncidentReport:"Generate Incident Report",imaging:"Imaging",incident:"Incident",inventory:"Inventory",invoices:"Invoices",labs:"Labs",listPaidInvoices:"List Paid Invoices",loadDb:"Load Database",manageIncidents:"Manage Incidents",medication:"Medication",overrideInvoice:"Override Invoice",patientReports:"Patient Reports",patients:"Patients",pricing:"Pricing",updateConfig:"Update Configurations",visits:"Visits"},messages:{roleSaved:"The {{roleName}} role has been saved."},titles:{roleSaved:"Role Saved"}},textReplacements:{createNew:"Create a new shortcode",existingRepl:"Existing Shortcodes",replDesc:"When entering text, these shortcuts allow you to replace a short sequence of characters with a longer phrase.",pageTitle:"Shortcodes",toReplace:"Text to replace",replaceWith:"Replace with",performExpand:"Press Enter to replace #{{from}} with '{{to}}'",possibleExpansions:"Possible replacements: {{possible}}",noMatches:"No replacements match '{{term}}'"},userRoles:"User Roles",users:"Users",visitForms:{labels:{followup:"Followup",form:"Form",initial:"Initial",visitType:"Visit Type"},titles:{visitForms:"Visit Forms"}},workflow:{admissionDepositLabel:"Admission deposit required",clinicPrepaymentLabel:"Clinic prepayment required",editTitle:"Workflow Options",followupPrepaymentLabel:"Followup prepayment required",messages:{optionsSaved:"The workflow options have been saved"},newTitle:"Workflow Options",outpatientImagingLabel:"Outpatient Imaging prepayment required",
+outpatientLabLabel:"Outpatient Lab prepayment required",outpatientMedicationLabel:"Outpatient Medication prepayment required",titles:{optionsSaved:"Options Saved"},workflowLabel:"Workflow"}},alerts:{errorExclamation:"Error!!!!",pleaseWait:"Please Wait",reportError:"Error Generating Report",warningExclamation:"Warning!!!!"},allergies:{buttons:{addAllergy:"Add Allergy"},labels:{allergyName:"Name",patientAllergy:"Patient Allergies"},titles:{addAllergy:"Add Allergy",editAllergy:"Edit Allergy"}},application:{messages:{sessionExpired:"Your session has expired. Please login to continue."},titles:{sessionExpired:"Session Expired"}},appointments:{buttons:{newButton:"+ new appointment",scheduleSurgery:"+ schedule surgery"},calendarTitle:"Appointments Calendar",currentScreenTitle:"Appointment List",editTitle:"Edit Appointment",labels:{noLocation:"No Location",selectedStartingDate:"Show Appointments On Or After"},messages:{appointmentSaved:"The appointment for {{patient}} has been saved.",endTimeLaterThanStart:"Please select an end time later than the start time."},missed:"Missed Appointments",newTitle:"New Appointment",searchTitle:"Search Appointments",sectionTitle:"Appointments",thisWeek:"Appointments This Week",titles:{appointmentSaved:"Appointment Saved",editSurgicalAppointment:"Edit Surgical Appointment",newSurgicalAppointment:"New Surgical Appointment",theaterSchedule:"Theater Schedule"},todayTitle:"Today's Appointments"},billing:{alerts:{noInvoiceFound:"No invoices found",noPricingItems:"No pricing items found.",noPricingProfiles:"No pricing profiles found."},buttons:{addOverride:"Add Override",createInvoice:"Create an invoice?"},labels:{actualCharges:"Actual Charges",discountAmount:"Discount Amount",discountPercentage:"Discount Percentage",externalInvoiceNumber:"External Invoice #",hmoCom:"HMO/COM",insurance:"National Insurance",paymentProfile:"Payment Profile",paymentsDeposits:"Payments/Deposits",pricingPanelOverrides:"Pricing profile overrides",pricingProfile:"Pricing Profile",setFee:"Set Fee"},messages:{flatFeeMsg:"There is a flat fee for patient financial responsibility of {{currency}}{{setFee}}.",flatDiscountMsg:"There is a flat discount amount applied to the patient financial responsibility of {{currency}}{{discountAmount}}."}},buttons:{add:"Add",addItem:"Add Item",addLineItem:"Add Line Item",addValue:"Add Value",addVisit:"Add Visit",allRequests:"All Requests",barcode:"Barcode",cancel:"Cancel",clear:"Clear",close:"Close",complete:"Complete",delete:"Delete",dispense:"Dispense",edit:"Edit",filter:"Filter",fulfill:"Fulfill",import:"Import",loadFile:"Load File",newItem:"+ new item",newNote:"New Note",newRequest:"New Request",newRequestPlus:"+ new request",newUser:"New User",ok:"Ok",remove:"Remove",returnButton:"Return",search:"Search",showAll:"Show All",showFewer:"Show Fewer",update:"Update"},components:{chargesByTypeTab:{charges:"charges"},customFormManager:{buttons:{addForm:"Add Form"}},dateTimePicker:{amHour:"{{hour}} AM",midnight:"Midnight",noon:"Noon",pmHour:"{{hour}} PM"},imageUpload:{messages:{selectValidImageFile:"Please select a valid image file."}},operativeProcedures:{buttons:{addProcedure:"Add Procedure"},labels:{procedure:"Procedure"},titles:{procedures:"Procedures"}},patientOrders:{buttons:{newImaging:"New Imaging",newLab:"New Lab",newMedication:"New Medication"},labels:{imagingOrderType:"Imaging",labOrderType:"Lab",medicationOrderType:"Medication",orderType:"Order Type"}},priceList:{charges:"{{pricingType}} charges"},quantityCalc:{result:"{{targetUnit}} total: {{calculated}}"},quantityConv:{conversion:"What does 1 {{name}} contain?",unit:"Unit"},sortableColumn:{labels:{selectAll:"(Select All)"}},takePhoto:{camera:"Camera",how:"How Do You Want To Add A Photo?",labels:{takeAPicture:"Take a Picture",uploadAFile:"Upload a File"},photo:"photo",preview:"preview",takePhoto:"Take photo",uploadFile:"Upload File"},upcomingAppointments:{labels:{date:"Date",location:"Location",type:"Type",with:"With"},titles:{upcomingAppointments:"Upcoming Appointments"}}},customForms:{buttons:{addForm:"Add Form"},labels:{formToAdd:"Form To Add"},titles:{addCustomForm:"Add Custom Form"}},dashboard:{needs_user_setup:"We recommend that you setup a User account.",standalone_welcome:'Thanks for downloading HospitalRun
You are running HospitalRun in stand alone mode. This mode allows you to support multiple users on a single, desktop/laptop instance of HospitalRun. This is ideal for:
- Evaluating HospitalRun for an eventual server deployment.
- Using the platform to support a clinic / facility where a single instance is sufficient.
If you\'re considering a multi-device deployment of HospitalRun, we\'re working on features that will allow you to "graduate" from this single instance into a traditional cloud / server-based deployment.
',title:"Welcome to HospitalRun!"},dates:{long:"{{years}} year {{months}} months {{days}} days",longOmitDays:"{{years}} year {{months}} months",longOmitDaysPlural:"{{years}} years {{months}} months",longOmitDaysYears:"{{months}} months",longOmitYears:"{{months}} months {{days}} days",longPlural:"{{years}} years {{months}} months {{days}} days",short:"{{years}}y {{months}}m {{days}}d",shortOmitYears:"{{months}}m {{days}}d"},diagnosis:{labels:{activeDiagnosis:"Active Diagnosis",date:"Date",diagnosis:"Diagnosis",secondaryDiagnosis:"Secondary Diagnosis"},titles:{addDiagnosis:"Add Diagnosis",editDiagnosis:"Edit Diagnosis"}},errors:{accepted:"must be accepted",blank:"can't be blank",confirmation:"doesn't match {{attribute}}",empty:"can't be empty",equalTo:"must be equal to {{count}}",even:"must be even",exclusion:"is reserved",greaterThan:"must be greater than {{count}}",greaterThanOrEqualTo:"must be greater than or equal to {{count}}",inclusion:"is not included in the list",invalid:"is invalid",invalidNumber:"not a valid number",lessThan:"must be less than {{count}}",lessThanOrEqualTo:"must be less than or equal to {{count}}",notANumber:"is not a number",notAnInteger:"must be an integer",odd:"must be odd",otherThan:"must be other than {{count}}",present:"must be blank",result:"Please enter a result before completing",tooLong:"is too long (maximum is {{count}} characters)",tooShort:"is too short (minimum is {{count}} characters)",wrongLength:"is the wrong length (should be {{count}} characters)"},headings:{chargedItems:"Charged Items"},imaging:{alerts:{completedMessage:"The imaging request has been completed.",completedTitle:"Imaging Request Completed",savedMessage:"The imaging request has been saved.",savedTitle:"Imaging Request Saved"},buttons:{newButton:"+ new imaging"},labels:{addNewVisit:"--Add New Visit--",radiologist:"Radiologist"},messages:{noCompleted:"No completed items found."},pageTitle:"Imaging Requests",sectionTitle:"Imaging",titles:{completedImaging:"Completed Imaging",editTitle:"Edit Imaging Request",newTitle:"New Imaging Request"}},incident:{buttons:{add:"Add",addForm:"+ Add Form",addItem:"Add Item",cancel:"Cancel",delete:"Delete",download:"Download",edit:"Edit",export:"Export Report",generateRep:"Generate Report",newAttachment:"+ New Attachment",newCategory:"+ new category",newIncident:"+ new incident",newNote:"+ New Note"},labels:{actions:"Actions",addedBy:"Added By",category:"Category",categoryItem:"Category Item",date:"Date",dateRecorded:"Date Recorded",department:"Department",description:"Incident Description",endDate:"End Date",givenBy:"Given By",howToAddAttachment:"How Do You Want To Add An Attachment?",incidentDate:"Date of Incident",incidentId:"Incident ID",item:"Item",lastUpdated:"Last Updated",note:"Note",patientId:"Patient Id",patientImpacted:"Patient Impacted",reportType:"Report Type",reportedBy:"Reported By",reportedDate:"Reported Date",reportedTo:"Incident Reported to (Full Name)",sentinelEvent:"Sentinel Event",startDate:"Start Date",status:"Status",statusActive:"Active",statusClosed:"Closed",statusFollowup:"Follow-up",statusReported:"Reported",title:"Title",total:"Total",updatedBy:"Updated By"},messages:{attachmentFileRequired:"Please upload a file or take a picture or before saving this attachment.",createNew:"Create a new incident?",createNewIncidentCategory:"Create a new Incident Category?",fillIn:"Fill in the above options to calculate score",incidentCategorySaved:"The {{name}} category has been saved.",noClosedIncidents:"No closed incidents found.",noIncidentCategoriesFound:"No Incident Categories found.",noIncidents:"No incidents found.",saved:"The incident report has been saved.",selectExistingPatient:"Please select an existing patient or leave this field blank."},titles:{addAttachment:"Add Attachment",addCategoryItem:"Add Category Item",addNote:"Add Note",attachments:"Attachments",closed:"Closed Incidents",current:"Current",deleteAttachment:"Delete Attachment",deleteIncident:"Delete Incident",deleteIncidentCategory:"Delete Incident Category",deleteItem:"Delete Item",deleteNote:"Delete Note",editAttachment:"Edit Attachment",editIncident:"Edit Incident",editIncidentCategory:"Edit Incident Category",editNote:"Edit Note",general:"General Information",history:"History",incidentCategories:"Incident Categories",incidentCategoryItem:"Incident Category Item",incidentCategoryName:"Incident Category Name",incidentCategorySaved:"Incident Category Saved",incidentSaved:"Incident Saved",incidents:"Incidents",incidentsByCategory:"Incidents By Category",incidentsByDepartment:"Incidents By Department",newIncident:"New Incident",newIncidentCategory:"New Incident Category",notes:"Notes",reports:"Reports"}},inventory:{edit:{cost:"Cost Per Unit:",delivered:"Delievered To:",location:"Location Adjusted:",prescription:"Prescription For:",pulled:"Pulled From:",quantity:"Quantity at Completion:",reason:"Reason:",returned:"Returned from Patient:",transferredFrom:"Transferred From:",transferredTo:"Transferred To:"},labels:{action:"Action",add:"Add",addAdjustmentType:"Add",adjust:"Adjust",adjustmentDate:"Adjustment Date",adjustmentFor:"Adjustment For",adjustmentType:"Adjustment Type",aisle:"Aisle",aisleLocation:"Aisle Location",allInventory:"All Inventory",allItems:"All Items",availableQuantity:"{{quantity}} available",billTo:"Bill To",consumePurchases:"Consume Purchases",consumptionRate:"Consumption Rate",cost:"Cost",costPerUnit:"Cost per Unit",crossReference:"Cross Reference",currentQuantity:"Current Quantity",dateCompleted:"Date Completed",dateEffective:"Effective Date",dateEnd:"End Date",dateReceived:"Date Received",dateStart:"Start Date",dateTransferred:"Date Transferred",daysLeft:"Days Left",deleteItem:"Delete Item",deliveryAisle:"Delivery Aisle",deliveryLocation:"Delivery Location",details:"Details",distributionUnit:"Distribution Unit",editItem:"Edit Item",expense:"Expense To",expirationDate:"Expiration Date",fulfillRequest:"Fulfill Request",fulfillRequestNow:"Fulfill Request Now",gift:"Gift in Kind",giftInKindNo:"N",giftInKindYes:"Y",giftUsage:"Gift in Kind Usage",inventoryConsumed:"Inventory Consumed",inventoryItem:"Inventory Item",inventoryObsolence:"Inventory Obsolence",invoiceItems:"Invoice Items",invoiceLineItem:"Invoice Line Item",invoiceNumber:"Invoice Number",item:"Item",itemNumber:"Item Number",items:"Items",location:"Location",locations:"Locations",markAsConsumed:"Mark as Consumed",name:"Name",newItem:"New Item",originalQuantity:"Original Quantity",print:"Print",printBarcode:"Print Barcode",printer:"Printer",pullFrom:"Pull From",purchaseCost:"Purchase Cost",purchaseInfo:"Purchase Information",purchases:"Purchases",quantity:"Quantity ({{unit}})",quantityAvailable:"Quantity Available",quantityOnHand:"Quantity on Hand",quantityRequested:"Quantity Requested",rank:"Rank",reason:"Reason",remove:"Remove",removeAdjustmentType:"Remove",reorderPoint:"Reorder Point",requestedItems:"Requested Items",returnAdjustmentType:"Return",returnToVendorAdjustmentType:"Return To Vendor",salePricePerUnit:"Sale Price per Unit",save:"Save",serialNumber:"Serial/Lot Number",total:"Total",totalCost:"Total Cost",totalReceived:"Total Received: {{total}}",transaction:"Transaction",transactions:"Transactions",transfer:"Transfer",transferFrom:"Transfer From",transferTo:"Transfer To Location",transferToAisle:"Transfer to Aisle Location",unit:"Unit",unitCost:"Unit Cost",vendor:"Vendor",vendorItemNumber:"Vendor Item Number",writeOffAdjustmentType:"Write Off",xref:"XRef"},messages:{adjust:"Please adjust the quantities on the appropriate location(s) to account for the difference of {{difference}}.",createRequest:"Create a new request?",itemNotFound:"The inventory item {{item}} could not be found.
If you would like to create a new inventory item, fill in the information below.
Otherwise, press the Cancel button to return.",loading:"Loading transactions ...",noItems:"No items found.",noRequests:"No requests found.",purchaseSaved:"The inventory purchases have been successfully saved.",quantity:"The total quantity of ({{quantity}}) does not match the total quantity in the locations ({{locationQuantity}}).",removeItem:"Are you sure you want to remove this item from this invoice?",removeItemRequest:"Are you sure you want to remove this item from this request?",requestFulfilled:"The inventory request has been fulfilled.",requestUpdated:"The inventory request has been updated.",warning:"Please fill in required fields (marked with *) and correct the errors before adding."},reports:{adjustment:"Detailed Adjustment",daysSupply:"Days Supply Left In Stock",expenseDetail:"Detailed Expenses",expenseSum:"Summary Expenses",expiration:"Expiration Date",export:"Export Report",fields:"Fields to Include",finance:"Finance Summary",generate:"Generate Report",invLocation:"Inventory By Location",invValuation:"Inventory Valuation",purchaseDetail:"Detailed Purchase",purchaseSum:"Summary Purchase",reportType:"Report Type",rows:{adjustments:"Adjustments",adjustmentsTotal:"Total Adjustments",balanceBegin:"Beginning Balance",balanceEnd:"Ending Balance",category:"Category",consumed:"Consumed",consumedGik:"GiK Consumed",consumedGikTotal:"Total GiK Consumed",consumedPuchases:"Purchases Consumed",consumedPurchasesTotal:"Total Purchases Consumed",consumedTotal:"Total Consumed",errInFinSum:"Error in _generateFinancialSummaryReport: ",errInFindPur:"Error in _findInventoryItemsByPurchase: ",errInFindReq:"Error in _findInventoryItemsByRequest: ",expensesFor:"Expenses For: ",noAccount:"(No Account)",subtotal:"Subtotal: ",subtotalFor:"Subtotal for {{category}} - {{account}}: ",total:"Total: ",totalFor:"Total for {{var}}: ",totalPurchases:"Total Purchases",transfer1:"{{quantity}} from {{location}}",trasnfer2:"From: {{source}} To: {{target}}"},stockTransferDetail:"Detailed Stock Transfer",stockTransferSum:"Summary Stock Transfer",stockUsageDetail:"Detailed Stock Usage",stockUsageSum:"Summary Stock Usage",titleDateRange:"{{name}} Report {{startDate}} - {{endDate}}",titleSingleDate:"{{name}} Report {{date}}"},titles:{addPurchase:"Add Purchase",addRequest:"New Request",adjustment:"Adjustment",editPurchase:"Edit Purchase",editRequest:"Edit Request",inventoryItem:"New Inventory Item",inventoryReport:"Inventory Report",purchaseSaved:"Inventory Purchases Saved",quickAddTitle:"New Inventory Item",removeItem:"Remove Item",requestFulfilled:"Request Fulfilled",requestUpdated:"Request Updated",transfer:"Transfer Items",warning:"Warning!!!!!"}},labels:{action:"Action",actions:"Actions",addNewOutpatientVisit:"--Add New Outpatient Visit--",address:"Address",age:"Age",allDay:"All Day",amount:"Amount",anesthesia:"Anesthesia",assisting:"Assisting",balanceDue:"Balance Due",billDate:"Bill Date",billTo:"Bill To",category:"Category",completed:"Completed",country:"Country",cptcode:"CPT Code",creditTo:"Credit To",currencySymbol:"$",date:"Date",dateCompleted:"Date Completed",dateOfBirth:"Date of Birth",dateOfBirthShort:"DoB",datePaid:"Date Paid",dateRequested:"Date Requested",delete:"Delete",deleteRequest:"Delete Request",deleteUser:"Delete User",department:"Department",description:"Description",discount:"Discount",displayName:"Display Name",docRead:"Docs Read",docWritten:"Docs Written",edit:"Edit",editUser:"Edit User",email:"Email",endDate:"End Date",endTime:"End Time",excess:"Excess",expenseTo:"Expense To",fileLoadSuccessful:"File To Load Successful",fileName:"File Name",fileToLoad:"File Load",from:"From",fulfill:"Fulfill",fulfillRequest:"Fulfill Request",fulfillRequestNow:"Fulfill Request Now",fulfilled:"Fulfilled",grandTotal:"Grand Total",id:"Id",imageOrders:"Image Orders",imagingType:"Imaging Type",importFile:"Import File",invoiceId:"Invoice ID",labOrders:"Lab Orders",lineItems:"Line Items",loading:"Loading",location:"Location",lookupType:"Lookup Type",medication:"Medication",name:"Name",newUser:"New User",note:"Note",notes:"Notes",number:"Number",on:"on",password:"Password",patient:"Patient",payments:"Payments",physician:"Physician",prescriber:"Prescriber",prescription:"Prescription",prescriptionDate:"Prescription Date",price:"Price",print:"Print",procedures:"Procedures",provider:"Provider",pullFrom:"Pull From",quantity:"Quantity",remarks:"Remarks",requestedBy:"Requested By",requestedOn:"Requested On",requests:"Requests",result:"Result",results:"Results",role:"Role",search:"Search",sex:"Sex",startDate:"Start Date",startTime:"Start Time",status:"Status",takenBy:"Taken By",to:"To",total:"Total",type:"Type",userCanAddNewValue:"User Can Add New Values",username:"Username",value:"Value",view:"View",visit:"Visit",with:"With"},labs:{alerts:{requestCompletedMessage:"The lab request has been completed.",requestCompletedTitle:"Lab Request Completed",requestSavedMessage:"The lab request has been saved.",requestSavedTitle:"Lab Request Saved"},buttons:{newButton:"+ new lab"},completedTitle:"Completed Labs",deleteTitle:"Delete Request",editTitle:"Edit Lab Request",labels:{addNewVisit:"--Add New Visit--",labType:"Lab Type"},messages:{createNewRecord:"Create a new record?",noCompleted:"No completed items found.",noItemsFound:"No labs found."},newTitle:"New Lab Request",requestsTitle:"Lab Requests",sectionTitle:"Labs"},loading:{messages:{0:"The top butterfly flight speed is 12 miles per hour. Some moths can fly 25 miles per hour!",1:"Owls are the only birds that can see the color blue.",2:"Cats have over 100 vocal sounds; dogs only have 10.",3:"Humans use a total of 72 different muscles in speech.",4:"More than 1,000 different languages are spoken on the continent of Africa.",5:"An erythrophobe is someone who blushes easily.",6:"The most common phobia in the world is odynophobia which is the fear of pain.",7:"Your body uses 300 muscles to balance itself when you are standing still.",8:"Certain frogs can be frozen solid then thawed, and continue living.",9:"Our eyes are always the same size from birth, but our nose and ears never stop growing.",10:"Your tongue is the only muscle in your body that is attached at only one end.",11:"Camels have three eyelids to protect themselves from blowing sand."},progressBar:{progress:"{{progressBarValue}}% Complete"}},login:{labels:{password:"Password",signIn:"Sign in",username:"Username"},messages:{error:"Username or password is incorrect.",offlineError:"Cannot login while offline. Please establish a network connection and retry login.",signIn:"please sign in"}},medication:{alerts:{fulfilledTitle:"Medication Request Fulfilled",returnedMessage:"The medication has been marked as returned.",returnedTitle:"Medication Returned",savedMessage:"The medication record has been saved.",savedTitle:"Medication Request Saved"},buttons:{dispenseMedication:"dispense medication",newButton:"+ new request",returnMedication:"return medication"},labels:{adjustmentDate:"Adjustment Date",creditToAccount:"Credit To Account",quantityDispensed:"Quantity Dispensed",quantityDistributed:"Quantity Distributed",quantityRequested:"Quantity Requested",quantityToReturn:"Quantity To Return",refills:"Refills",returnAisle:"Return Aisle",returnLocation:"Return Location",returnReason:"Return Reason/Notes"},messages:{createNew:"Create a new medication request?"},pageTitle:"Medication Requests",returnMedication:"Return Medication",sectionTitle:"Medication",titles:{completedMedication:"Completed Medication",editMedicationRequest:"Edit Medication Request",newMedicationRequest:"New Medication Request"}},messages:{createNewRecord:"Create a new record?",createNewUser:"Create a new user?",delete:"Are you sure you wish to delete {{name}}?",delete_plural:"Are you sure you wish to delete these {{name}}?",delete_singular:"Are you sure you wish to delete this {{name}}?",forAuthorizedPersons:"This report is for authorized persons only.",newPatientHasToBeCreated:"A new patient needs to be created...Please wait..",noHistoryAvailable:"No history available.",noItemsFound:"No items found.",noNotesAvailable:"No additional clinical notes are available for this visit.",noUsersFound:"No users found.",onBehalfOf:"on behalf of",reportError:"An error was encountered while generating the requested report. Please let your system administrator know that you have encountered an error.",requiredFieldsCorrectErrors:"Please fill in required fields (marked with *) and correct the errors before saving.",saveActionException:"An error occurred while attempting to save: {{message}}",sorry:"Sorry, something went wrong...",userHasBeenSaved:"The user has been saved.",userSaved:"User Saved"},models:{appointment:{labels:{allDay:"All Day",appointmentDate:"Date",appointmentType:"Type",endDate:"End Date",location:"Location",notes:"Notes",patient:"Patient",provider:"With",startDate:"Start Date",status:"Status",type:"Type"},names:{plural:"appointments",singular:"appointment"}},attachment:{names:{plural:"attachments",singular:"attachment"}},form:{names:{plural:"forms",singular:"form"}},imaging:{names:"imaging",request:{plural:"imaging requests",singular:"imaging request"}},incident:{names:{plural:"incidents",singular:"incident"}},item:{names:{plural:"items",singular:"item"}},lab:{names:{plural:"labs",singular:"lab"},request:{plural:"lab requests",singular:"lab request"}},medication:{names:{plural:"medications",singular:"medication"},request:{plural:"medication requests",singular:"medication request"}},note:{names:{plural:"notes",singular:"note"}},patient:{labels:{name:"Name"},names:{singular:"Patient"}},procedure:{names:{plural:"procedures",singular:"procedure"}},user:{names:{plural:"users",singular:"user"}},visit:{names:{plural:"visits",singular:"visit"}},vital:{names:{plural:"vitals",singular:"vital"}}},navigation:{about:"About HospitalRun",actions:{login:"Login",logout:"Logout"},administration:"Administration",billing:"Billing",imaging:"Imaging",incident:"Incident",inventory:"Inventory",labs:"Labs",medication:"Medication",messages:{logoutFailed:"Could not logout at this time. Logout is not available while offline."},patients:"Patients",scheduling:"Scheduling",subnav:{actions:"Actions",addAppointment:"Add Appointment",addressFields:"Address Fields",admittedPatients:"Admitted Patients",appointmentSearch:"Appointment Search",appointmentsCalendar:"Appointments Calendar",appointmentsThisWeek:"Appointments This Week",cashier:"Cashier",completed:"Completed",currentIncidents:"Current Incidents",customForms:"Custom Forms",dispense:"Dispense",history:"History",incidentCategories:"Incident Categories",inventoryReceived:"Inventory Received",invoices:"Invoices",items:"Items",loadDB:"Load DB",lookupLists:"Lookup Lists",newIncident:"New Incident",newInvoice:"New Invoice",newPatient:"New Patient",newRequest:"New Request",newUser:"New User",outpatient:"Outpatient",patientListing:"Patient Listing",priceProfiles:"Price Profiles",prices:"Prices",printHeader:"Print Header",reports:"Reports",requests:"Requests",returnMedication:"Return Medication",scheduleSurgery:"Schedule Surgery",textReplacements:"Shortcodes",theaterSchedule:"Theater Schedule","today'sAppointments":"Today's Appointments",userRoles:"User Roles",users:"Users",workflow:"Workflow"},titles:{logoutFailed:"Logout Failed"}},operationReport:{labels:{additionalNotes:"Additional Notes",assistant:"Assistant",caseComplexity:"Case Complexity",operationDescription:"Operation Description",preOpPrimaryDiagnosis:"Pre-op Primary Diagnosis",preOpSecondaryDiagnosis:"Pre-op Secondary Diagnosis",surgeon:"Surgeon",surgeryDate:"Surgery Date"},messages:{reportSaved:"The operation report has been saved."},titles:{editTitle:"Edit Operation Report",newTitle:"New Operation Report",reportSaved:"Report Saved"}},operativePlan:{buttons:{completePlan:"Complete Plan"},labels:{additionalNotes:"Additional Notes",admissionInstructions:"Instructions Upon Admission",caseComplexity:"Case Complexity",completedStatus:"Completed",droppedStatus:"Dropped",operationDescription:"Operation Description",plannedStatus:"Planned",status:"Status",surgeon:"Surgeon"},messages:{planCompleted:"The operative plan has been completed. You will now be directed to the operation report.",planSaved:"The operative plan has been saved."},titles:{editTitle:"Edit Operative Plan",newTitle:"New Operative Plan",planCompleted:"Plan Completed",planSaved:"Plan Saved"}},patients:{buttons:{addContact:"Add Contact",addExpense:"Add Expense",addFamilyMember:"Add Family Member",addOperativePlan:"Add Operative Plan",backToPatients:"Back to Patient List",download:"Download",editOperativePlan:"Current Operative Plan",newAppointment:"New Appointment",newImaging:"New Imaging",newLab:"New Lab",newMedication:"New Medication",newPatient:"+ new patient",newPhoto:"New Photo",newVisit:"New Visit",patientCheckIn:"Patient Check In",scheduleSurgery:"Schedule Surgery"},labels:{admissionDate:"Admission Date",admit:"Admit",bloodType:"Blood Type",caption:"Caption",civilStatus:"Civil Status",clinic:"Clinic Site",contacts:"Contacts",cost:"Cost",dateOfBirth:"Date Of Birth",dateProcessed:"Date Processed",dischargeDate:"Discharge Date",dob:"DOB",education:"Education",email:"Email",externalPatientId:"External Patient Id",firstName:"First Name",income:"Income",insurance:"Insurance",lastName:"Last Name",middleName:"Middle Name",monthlyCost:"Monthly Cost",occupation:"Occupation",operativePlan:"Operative Plan",parent:"Parent/Guardian",patientDays:"Patient Days",patientType:"Patient Type",patientTypeCharity:"Charity",patientTypePrivate:"Private",phone:"Phone",placeOfBirth:"Place Of Birth",primaryDiagnosis:"Primary Diagnoses",referredBy:"Referred By",referredDate:"Referred Date",relationship:"Relationship To Patient",relationships:"Relationships",religion:"Religion",secondaryDiagnosis:"Secondary Diagnoses",sex:"Sex",sexNotEntered:"Sex Not Entered",sources:"Sources",status:"Patient Status",totalMontlyExpense:"Total Monthly Expenses"},messages:{areYouSureDelete:"Are you sure you want to delete this {{object}}?",createNewPatient:"Create a new patient record?",deletingPatient:"Deleting patient and all associated records",noPatientsFound:"No patients found.",notFoundQuickAdd:"The patient {{patientFullName}} could not be found. If you would like to create a new patient, fill in the information below. Otherwise press the Cancel button to return.",photoFileRequired:"Please take a picture or upload a file before saving this photo.",savedPatient:"The patient record for {{displayName}} has been saved."},navigation:{appointments:"Appointments",general:"General",history:"History",imaging:"Imaging",labs:"Labs",medication:"Medication",photos:"Photos",socialWork:"Social Work",visits:"Visits"},notes:{newNote:"New Note for",onBehalfOfCopy:"on behalf of",onBehalfOfLabel:"On Behalf Of",pleaseSelectAVisit:"Please select a visit",updateNote:"Updating Note from"},titles:{addContact:"Add Contact",addPhoto:"Add Photo",additionalContacts:"Additional Contacts",admissionsDetail:"Admissions Detail",admissionsSummary:"Admissions Summary",admittedPatients:"Admitted Patients",delete:"Delete Patient",deleteContact:"Delete Contact",deleteExpense:"Delete Expense",deleteFamilyMember:"Delete Family Member",deletePatientRecord:"Delete Patient Record",deletePhoto:"Delete Photo",diagnosticTesting:"Diagnostic Testing",dischargesDetail:"Discharges Detail",dischargesSummary:"Discharges Summary",edit:"Edit Patient",editPhoto:"Edit Photo",expenses:"Expenses",familyInfo:"Family Info",familyInformation:"Family Information",new:"New Patient",outpatientsForDate:"Outpatients for {{visitDate}}",patient:"Patient Report",patientListing:"Patient Listing",patientReport:"Patient Report",patientStatus:"Patient Status",proceduresDetail:"Procedures Detail",proceduresSummary:"Procedures Summary",savedPatient:"Patient Saved",socialWork:"Expense",todaysOutpatients:"Today's Outpatients",totalPatientDays:"Total Patient Days",totalPatientDaysDetailed:"Total Patient Days (Detailed)",visit:"Visit"}},pricing:{labels:{discountAmount:"Discount Amount",discountPercentage:"Discount Percentage",setFee:"Set Fee"}},print:{invoice:{labels:{billedBy:"Billed by:",billedDate:"Bill Date:",dateAdmitted:"ADMITTED:",dateDischarged:"DISCHARGE:",dischargeNotes:"Discharge Notes:",patientAddress:"ADDRESS:",patientAge:"AGE:",patientId:"PATIENT #:",patientName:"NAME OF PATIENT:",remarks:"Remarks:",spacer:"__________________________________________"},messages:{whereConducted:"were deducted during my confinement"},titles:{billingStatement:"BILLING STATEMENT",patientMember:"Patient-Member",patients:"PATIENT'S",relContact:"Relationship/Contact no."}}},procedures:{buttons:{addMedication:"Add Medication"},labels:{medicationUsed:"Medication Used"},messages:{saved:"The procedure record has been saved."},titles:{addChargeItem:"Add Charge Item",addMedicationUsed:"Add Medication Used",deleteChargeItem:"Delete Charge Item",deleteMedicationUsed:"Delete Medication Used",edit:"Edit Procedure",editChargeItem:"Edit Charge Item",editMedicationUsed:"Edit Medication Used",medicationUsed:"Medication Used",new:"New Procedure",saved:"Procedure Saved"}},reports:{labels:{admissionDate:"Admission Date",allProcedures:"All Procedures Performed",completedBy:"Completed By",dischargeDate:"Discharge Date",examiner:"Examiner",images:"Images",labs:"Labs",location:"Visit Location",medications:"Medications",nextAppointment:"Next Appointment",nextAppointments:"Next Appointments",notes:{author:"Author",date:"Date",title:"Notes"},operativePlan:{description:"Operation Description",instructions:"Instructions upon Admission",procedures:"Planned Procedures",title:"Operative Plan"},primaryDiagnosis:"Primary Diagnosis",procedures:"Procedures",secondaryDiagnosis:"Secondary Diagnosis",visitDate:"Date of Visit",visitType:"Visit Type"},messages:{delete:"Are you sure you wish to delete this report?",saved:"The report has been saved."},titles:{dischargeReport:"Discharge Report",newDischargeReport:"New Discharge Report",newOPDReport:"New OPD Report",opdReport:"OPD Report",saved:"Report saved"}},user:{plusNewUser:"+ new user",usersPageTile:"User Listing"},visits:{buttons:{addDiagnosis:"Add Diagnosis",checkIn:"Check In",checkOut:"Check Out",discharge:"Discharge",newAppointment:"New Appointment",newDischargeReport:"New Discharge Report",newOPDReport:"New OPD Report",newProcedure:"New Procedure",newVitals:"New Vitals"},labels:{appointment:"Appointment",authoredBy:"Authored By",checkInTime:"Check In",checkOutTime:"Check Out",createNewPatient:"Create New Patient",diagnosis:"Diagnosis",examiner:"Examiner",finalDiagnosis:"Final/Billing Diagnosis",haveAppointment:"Y",haveDoneOrders:"Y",noAppointment:"N",ordersDone:"Orders Done",ordersNotDone:"N",patientToCheckIn:"Patient To Check In",procedure:"Procedure",procedureDate:"Procedure Date",reasonForVisit:"Reason For Visit",reportType:"Report type",status:"Visit Status",statusAdmitted:"Admitted",statusCheckedIn:"Checked In",statusCheckedOut:"Checked Out",statusDischarged:"Discharged",visitDate:"Visit Date",visitInformation:"Visit Information",visitType:"Visit Type"},messages:{checkOut:"Are you sure you wish to check out {{patientName}}?",
+checkedOut:"{{patientName}} has been checked out.",discharged:"{{patientName}} has been discharged.",patientCheckedIn:"{{patientName}} has been checked in.",patientCreatedAndCheckedIn:"{{patientName}} has been created and checked in.",visitAndPatientSaved:"The visit and patient records have been saved.",visitSaved:"The visit record has been saved."},navigation:{charges:"Charges",notes:"Notes",orders:"Orders",procedures:"Procedures",reports:"Reports",vitals:"Vitals"},titles:{additionalDiagnoses:"Additional Diagnoses",checkOut:"Patient Check Out",checkedIn:"Patient Checked In",checkedOut:"Patient Checked Out",discharged:"Patient Discharged",editVisit:"Edit Visit",newVisit:"New Visit",patientCheckIn:"Patient Check In",visitSaved:"Visit Saved"}},vitals:{labels:{dateRecorded:"Date Recorded",dbp:"DBP",heartRate:"Heart Rate",height:"Height",respiratoryRate:"Respiratory Rate",sbp:"SBP",temperature:"Temperature",weight:"Weight"}}}}),define("hospitalrun/locales/es-co/translations",["exports"],function(e){e.default={admin:{address:{address1Label:"Texto direccion 1",address2Label:"Texto direccion 2",address3Label:"Texto direccion 3",address4Label:"Texto direccion 4",addressLabel:"Direcciones",editTitle:"Opciones de dirección",include1Label:"Incluir 1",include2Label:"Incluir 2",include3Label:"Incluir 3",include4Label:"Incluir 4",messages:{addressSaved:"las opciones de dirección han sido guardadas"},newTitle:"Opciones de dirección",titles:{optionsSaved:"Opciones guardadas"}},addressOptions:"Opciones de direcciones",customForms:{buttons:{addField:"",moveDown:"",moveUp:"",newForm:"",preview:""},labels:{alwaysInclude:"",checkbox:"",colSpan:"",columns:"",customForm:"",dischargeReportFormType:"",formName:"",formType:"",incidentFormType:"",includeOtherOption:"",labFormType:"",label:"",newForm:"",opdReportFormType:"",operativePlanFormType:"",otherOptionLabel:"",patientFormType:"",property:"",radio:"",select:"",socialworkFormType:"",text:"",textarea:"",visitFormType:""},messages:{formSaved:""},titles:{checkboxValues:"",customForms:"",deleteForm:"",dropDownValues:"",editCustomForm:"",fields:"",formSaved:"",newCustomForm:"",radioValues:""}},header:{editTitle:"",facilityName:"",headerLabel:"",headerLine1:"",headerLine2:"",headerLine3:"",logoURL:"",messages:{headerSaved:""},newTitle:"",titles:{optionsSaved:""}},loadDb:"Cargar Base de datos",loaddb:{displayAlertMessage:"Por favor seleccione un archivo para ser cargado.",displayAlertTitle:"Seleccione un archivo para cargar",editTitle:"Cargar bd",errorDisplayAlertMessage:"La base de datos no fue cargada el error fue: {{error}}",errorDisplayAlertTitle:"Error cargando",progressMessage:"Por favor espere mientras la base de datos es cargada.",progressTitle:"Cargando ase de datos"},lookup:{aisleLocationList:"Ubicacion de inventario de pasillo",alertImportListMessage:"Por favor seleccione un archivo para importar.",alertImportListSaveMessage:"Lista de busqueda importada.",alertImportListSaveTitle:"Lista importada",alertImportListTitle:"Seleccione un archivo para importar",alertImportListUpdateMessage:"La lista de busqueda ha sido salvada.",alertImportListUpdateTitle:"Lista salvada",anesthesiaTypes:"Tipos de anestesia",anesthesiologists:"Anestesiologo",billingCategories:"Categorias de facturacion",clinicList:"Ubicacion de las clinicas",countryList:"Paises",cptCodeList:"Codigos CPT",diagnosisList:"Diagnosticos",edit:{template:{addTitle:"Adicionar valor",editTitle:"Editar valor",labelTitle:"Valor",updateButtonTextAdd:"Adicionar",updateButtonTextUpdate:"Actualizar"}},expenseAccountList:"Cuentas de gastos",imagingPricingTypes:"Tipos de precios de radiografias",incidentDepartments:"",inventoryTypes:"Tipos de inventarios",labPricingTypes:"Precios de laboratorio",pageTitle:"Listas de busqueda",patientStatusList:"Lista de estado de pacientes",physicianList:"Medicos",procedureList:"Procedimientos",procedureLocations:"Ubicacion de los procedimientos",procedurePricingTypes:"Tipos de procedimientos y precios",radiologists:"Radiologo",titles:{deleteLookupValue:""},unitTypes:"Tipos de unidad",vendorList:"Proveedor",visitLocationList:"Lugares de visista",visitTypes:"Tipos de visita",wardPricingTypes:"Tipos de las tarifas",warehouseList:"Ubicacciones de inventarios"},lookupLists:"Lista de busqueda",roles:{capability:{addAllergy:"",addAppointment:"Adicionar cita",addBillingDiagnosis:"",addCharge:"Adicionar cargo (valor)",addDiagnosis:"Adicionar diagnostico",addImaging:"Adicionar radiografia",addIncident:"",addIncidentCategory:"",addInventoryItem:"Adicionar elemento al inventario",addInventoryPurchase:"Adicionar compra",addInventoryRequest:"Pedido de inventario",addInvoice:"Adicionar factura",addLab:"Adicionar laboratorio",addMedication:"Adicionar medicación",addNote:"",addOperationReport:"",addOperativePlan:"",addPatient:"Adicionar paciente",addPayment:"Adicionar pago",addPhoto:"Adicionar foto",addPricing:"Adicionar precio",addPricingProfile:"Adicionar perfil de precios",addProcedure:"",addSocialwork:"",addVisit:"Adicionar visita",addVitals:"Adicionar partes vitales",adjustInventoryLocation:"Ajustar lugar elemento en el inventario",admin:"Administracion",admitPatient:"Admitir paciente",appointments:"Citas",billing:"Facturacion",completeImaging:"Completar radiografia",completeLab:"Completar laboratorio",defineUserRoles:"Roles de usuario",deleteAppointment:"Eliminar cita",deleteDiagnosis:"Eliminar diagnostico",deleteImaging:"Eliminar radiografia",deleteIncident:"",deleteIncidentCategory:"",deleteInventoryItem:"Eliminar elemento del inventario",deleteInvoice:"Eliminar factura",deleteLab:"Eliminar laboratorio",deleteMedication:"Eliminar medicación",deleteNote:"",deletePatient:"Eliminar paciente",deletePhoto:"Eliminar foto",deletePricing:"Eliminar precio",deletePricingProfile:"Eliminar perfil de precio",deleteProcedure:"Eliminar procedimiento",deleteSocialwork:"Eliminar trabajo social",deleteVisit:"Eliminar visita",deleteVitals:"Eliminar organo vital",dischargePatient:"Descartar paciente",editInvoice:"Editar factura",fulfillInventory:"Cumplimiento de inventario",fulfillMedication:"Cumplir la medicación",generateIncidentReport:"",imaging:"Radiografia",incident:"",inventory:"Inventario",invoices:"Facturas",labs:"Laboratorios",loadDb:"Cargar base de datos",manageIncidents:"",medication:"Medicación",overrideInvoice:"Sobreescribir factura",patientReports:"Reportes por paciente",patients:"Pacientes",pricing:"Precio",updateConfig:"Actualizar configuracion",visits:"Visitas"},messages:{roleSaved:"El {{roleName}} rol ha sido salvado."},titles:{roleSaved:"Role salvado"}},userRoles:"Roles",users:"Usuarios",visitForms:{labels:{followup:"",form:"",initial:"",visitType:""},titles:{visitForms:""}},workflow:{admissionDepositLabel:"",clinicPrepaymentLabel:"",editTitle:"",followupPrepaymentLabel:"",messages:{optionsSaved:""},newTitle:"",outpatientImagingLabel:"",outpatientLabLabel:"",outpatientMedicationLabel:"",titles:{optionsSaved:""},workflowLabel:""}},alerts:{errorExclamation:"",pleaseWait:"Por favor espere",reportError:"",warningExclamation:""},allergies:{buttons:{addAllergy:""},labels:{allergyName:"",patientAllergy:""},titles:{addAllergy:"",editAllergy:""}},application:{messages:{sessionExpired:""},titles:{sessionExpired:""}},appointments:{buttons:{newButton:"+ nueva cita",scheduleSurgery:""},calendarTitle:"",currentScreenTitle:"Listado de citas",editTitle:"Editar cita",labels:{noLocation:"",selectedStartingDate:""},messages:{appointmentSaved:"",endTimeLaterThanStart:"Seleccione una hora de finalizacion despues de la de inicio."},missed:"Citas perdidas",newTitle:"Nueva cita",searchTitle:"Buscar citas",sectionTitle:"Citas",thisWeek:"Citas esta semana",titles:{appointmentSaved:"",editSurgicalAppointment:"",newSurgicalAppointment:"",theaterSchedule:""},todayTitle:"Citas para hoy"},billing:{alerts:{noInvoiceFound:"",noPricingItems:"",noPricingProfiles:""},buttons:{addOverride:"",createInvoice:""},labels:{actualCharges:"",discountAmount:"",discountPercentage:"",externalInvoiceNumber:"",hmoCom:"",insurance:"",paymentProfile:"",paymentsDeposits:"",pricingPanelOverrides:"",pricingProfile:""}},buttons:{add:"Adicionar",addItem:"",addLineItem:"",addValue:"Adicionar valor",addVisit:"Adicionar visita",allRequests:"Todas las solicitudes",barcode:"Codigo de barras",cancel:"Cancelar",clear:"",close:"Cerrar",complete:"Completado",delete:"Eliminar",dispense:"Repartir",edit:"",filter:"",fulfill:"Cumplimiento",import:"Importar",loadFile:"Cargar archivo",newItem:"+ nuevo elemento",newNote:"Nueva nota",newRequest:"Nueva solicitud",newRequestPlus:"+ nuevo pedido",newUser:"Nuevo usuario",ok:"Ok",remove:"Remover",returnButton:"Regresar",search:"Buscar",showAll:"",showFewer:"",update:"Actualizar"},components:{chargesByTypeTab:{charges:""},customFormManager:{buttons:{addForm:""}},dateTimePicker:{amHour:"",midnight:"",noon:"",pmHour:""},imageUpload:{messages:{selectValidImageFile:""}},operativeProcedures:{buttons:{addProcedure:""},labels:{procedure:""},titles:{procedures:""}},patientOrders:{buttons:{newImaging:"",newLab:"",newMedication:""},labels:{imagingOrderType:"",labOrderType:"",medicationOrderType:"",orderType:""}},priceList:{charges:""},quantityCalc:{result:""},quantityConv:{conversion:"",unit:""},sortableColumn:{labels:{selectAll:""}},takePhoto:{camera:"",how:"",labels:{takeAPicture:"",uploadAFile:""},photo:"",preview:"",takePhoto:"",uploadFile:""},upcomingAppointments:{labels:{date:"",location:"",type:"",with:""},titles:{upcomingAppointments:""}}},customForms:{buttons:{addForm:""},labels:{formToAdd:""},titles:{addCustomForm:""}},dashboard:{setup:"",title:"Que deseas hacer?"},dates:{long:"",longOmitDays:"",longOmitDaysPlural:"",longOmitDaysYears:"",longOmitYears:"",longPlural:"",short:"",shortOmitYears:""},diagnosis:{labels:{activeDiagnosis:"",date:"",diagnosis:"",secondaryDiagnosis:""},titles:{addDiagnosis:"",editDiagnosis:""}},errors:{accepted:"",blank:"",confirmation:"",empty:"",equalTo:"",even:"",exclusion:"",greaterThan:"",greaterThanOrEqualTo:"",inclusion:"",invalid:"",invalidNumber:"",lessThan:"",lessThanOrEqualTo:"",notANumber:"",notAnInteger:"",odd:"",otherThan:"",present:"",result:"",tooLong:"",tooShort:"",wrongLength:""},headings:{chargedItems:""},imaging:{alerts:{completedMessage:"El pedido de radiografia ha sido completado.",completedTitle:"Pedido de radiografia completado",savedMessage:"El pedido de radiografia ha sido guardado.",savedTitle:"Pedido de radiografia salvado"},buttons:{newButton:"+ new radiografia"},labels:{addNewVisit:"--Adicionar nueva visita--",radiologist:"Radiologo"},messages:{noCompleted:"No de items encontrados."},pageTitle:"Pedido de radriografia",sectionTitle:"Radiografias",titles:{completedImaging:"Radiografia completada",editTitle:"Pedido de edicion de radiografia",newTitle:"Nuevo pedido de radiografia"}},incident:{buttons:{add:"",addForm:"",addItem:"",cancel:"",delete:"",download:"",edit:"",export:"",generateRep:"",newAttachment:"",newCategory:"",newIncident:"",newNote:""},labels:{actions:"",addedBy:"",category:"",categoryItem:"",date:"",dateRecorded:"",department:"",description:"",endDate:"",givenBy:"",howToAddAttachment:"",incidentDate:"",incidentId:"",item:"",lastUpdated:"",note:"",patientId:"",patientImpacted:"",reportType:"",reportedBy:"",reportedDate:"",reportedTo:"",sentinelEvent:"",startDate:"",status:"",statusActive:"",statusClosed:"",statusFollowup:"",statusReported:"",title:"",total:"",updatedBy:""},messages:{attachmentFileRequired:"",createNew:"",createNewIncidentCategory:"",fillIn:"",incidentCategorySaved:"",noClosedIncidents:"",noIncidentCategoriesFound:"",noIncidents:"",saved:"",selectExistingPatient:""},titles:{addAttachment:"",addCategoryItem:"",addNote:"",attachments:"",closed:"",current:"",deleteAttachment:"",deleteIncident:"",deleteIncidentCategory:"",deleteItem:"",deleteNote:"",editAttachment:"",editIncident:"",editIncidentCategory:"",editNote:"",general:"",history:"",incidentCategories:"",incidentCategoryItem:"",incidentCategoryName:"",incidentCategorySaved:"",incidentSaved:"",incidents:"",incidentsByCategory:"",incidentsByDepartment:"",newIncident:"",newIncidentCategory:"",notes:"",reports:""}},inventory:{edit:{cost:"Costo por unidad:",delivered:"Enviado A:",location:"Cambio de ubicación:",prescription:"Recetado por:",pulled:"Pulled From:",quantity:"Quantity at Completion:",reason:"Razón:",returned:"Regresado al paciente:",transferredFrom:"Transferido a:",transferredTo:"Transferido a:"},labels:{action:"Acción",add:"Adicionar",addAdjustmentType:"",adjust:"Adjustar",adjustmentDate:"Fecha de ajuste",adjustmentFor:"Ajustado para",adjustmentType:"Tipo de ajuste",aisle:"Pasillo",aisleLocation:"Ubicación pasillo",allInventory:"Todo el inventario",allItems:"",availableQuantity:"",billTo:"Facturao a",consumePurchases:"Consume Purchases",consumptionRate:"Tasa de consumo",cost:"Costo",costPerUnit:"Costo por Unidad",crossReference:"Referencia cruzada",currentQuantity:"Cantidad actual",dateCompleted:"Fecha completado",dateEffective:"Gecha efectiva",dateEnd:"Fecha final",dateReceived:"Fecha recibido",dateStart:"Fecha inicial",dateTransferred:"Fecha transferencia",daysLeft:"Dias restantes",deleteItem:"Eliminar elemento",deliveryAisle:"Enviado a pasillo",deliveryLocation:"Ubicación del envio",details:"Detalles",distributionUnit:"Unidad de distribución",editItem:"Editar elemento",expense:"Gastos a",expirationDate:"Fecha de vencimiento",fulfillRequest:"Pedido de cumplimiento",fulfillRequestNow:"Pedido de incumplimiento para hoy",gift:"Regalo en especie",giftInKindNo:"N",giftInKindYes:"Y",giftUsage:"Uso del regalo en especie",inventoryConsumed:"Inventario consumido",inventoryItem:"Elemento del inventario",inventoryObsolence:"Obsolescencia de inventario",invoiceItems:"Articulos de factura",invoiceLineItem:"Elemento de la factura linea",invoiceNumber:"Factura numero",item:"Elemento",itemNumber:"Numero de elemento",items:"Elementos",location:"Ubicación",locations:"Ubicaciones",markAsConsumed:"Marcar como consumido",name:"Nombre",newItem:"Nuevo elemento",originalQuantity:"Cantidad original",print:"Imprimir",printBarcode:"Imprimir codigo de barras",printer:"Impresora",pullFrom:"Traido de",purchaseCost:"Costo de compra",purchaseInfo:"Informacion de la compra",purchases:"Compras",quantity:"Cantidad ({{unit}})",quantityAvailable:"Cantidad disponible",quantityOnHand:"Cantidad a la mano",quantityRequested:"Cantidad pedida",rank:"Ranking",reason:"Razón",remove:"Remover",removeAdjustmentType:"",reorderPoint:"Reordenar punto",requestedItems:"Elementos solicitados",returnAdjustmentType:"",returnToVendorAdjustmentType:"",salePricePerUnit:"Costo de venta por unidad",save:"Guardar",serialNumber:"Serial/Numero de lote",total:"Total",totalCost:"Costo total",totalReceived:"Total Recivido: {{total}}",transaction:"Transaccion",transactions:"Transacciones",transfer:"Translados",transferFrom:"Translado desde",transferTo:"Translado a ubicación",transferToAisle:"Translado a pasillo",unit:"Unidad",unitCost:"Unidad Costo",vendor:"Proveedor",vendorItemNumber:"Proveedor numero de elemento",writeOffAdjustmentType:"",xref:"XRef"},messages:{adjust:"Por favor ajust las cantidades en la ubicación adecuada(s) la diferencia de la cuenta es {{difference}}.",createRequest:"Crear un nuevo pedido?",itemNotFound:"El elemento del inventario {{item}} no se pudo encontrar.
Si desea crear un nuevo elemento, Ingrese la información abajo.
De lo contrario opria cancelar para volver.",loading:"Cargando transacciones ...",noItems:"No se encontraron elementos.",noRequests:"No se encontraron pedidos.",purchaseSaved:"La compra de inventario ha sido salvada.",quantity:"La cantidad total ({{quantity}}) no encaja con la cantidad total en las ubicaciones ({{locationQuantity}}).",removeItem:"Esta seguro de eliminar este elemento de la factura?",removeItemRequest:"Seguro que quiere eliminar este elemento del pedido?",requestFulfilled:"El pedido de inventario ha sido procesado.",requestUpdated:"El pedido de inventario ha sido actualizado.",warning:"Valide los campos requeridos (marcados con *) corrija los errores antes de adicionar."},reports:{adjustment:"Ajuste detallado",daysSupply:"Dias de inventario restante",expenseDetail:"Gastos detallados",expenseSum:"Resumen de gastos",expiration:"Fecha de expiracion",export:"Exportar reporte",fields:"Campos a incluir",finance:"Resumen de finanzas",generate:"Generar reporte",invLocation:"Inventario por ubicacion",invValuation:"Inventario por valoracion",purchaseDetail:"Compras detalladas",purchaseSum:"Resumen de compras",reportType:"Tipo de reporte",rows:{adjustments:"Ajustes",adjustmentsTotal:"Ajustes totales",balanceBegin:"Balance inicial",balanceEnd:"Balance Final",category:"Categoria",consumed:"Consumado",consumedGik:"GiK Consumido",consumedGikTotal:"Total GiK Consumido",consumedPuchases:"Total de lo comprado consumido",consumedPurchasesTotal:"Total de lo comprado consumido",consumedTotal:"Total consumido",errInFinSum:"Error en _generateFinancialSummaryReport: ",errInFindPur:"Error en _findInventoryItemsByPurchase: ",errInFindReq:"Error en _findInventoryItemsByRequest: ",expensesFor:"Gatos para: ",noAccount:"(No Cuenta)",subtotal:"Subtotal: ",subtotalFor:"Subtotal para {{category}} - {{account}}: ",total:"Total: ",totalFor:"Total para {{var}}: ",totalPurchases:"Compras Totales",transfer1:"{{quantity}} de {{location}}",trasnfer2:"De: {{source}} A: {{target}}"},stockTransferDetail:"Detalle de traslado de stock",stockTransferSum:"Resumen traslado de stock",stockUsageDetail:"Detalle de uso de stock",stockUsageSum:"Resumen uso de stock",titleDateRange:"",titleSingleDate:""},titles:{addPurchase:"Adicionar compra",addRequest:"Nuevo pedido",adjustment:"Ajuste",editPurchase:"Editar compra",editRequest:"Editar pedido",inventoryItem:"Nuevo elemento de inventario",inventoryReport:"Reporte de inventario",purchaseSaved:"Compras de inventario guardadas",quickAddTitle:"Nuevo elemento de inventario",removeItem:"Remover elemento",requestFulfilled:"Pedido cumplido",requestUpdated:"Pedido actualizado",transfer:"Trasladar elementos",warning:"Peligro!!!!!"}},labels:{action:"Accion",actions:"Acciones",addNewOutpatientVisit:"--Nueva visita a paciente externo--",address:"",age:"Edad",allDay:"Todo el dia",amount:"",anesthesia:"Anestesia",assisting:"Asistencia",balanceDue:"",billDate:"",billTo:"Facturar a",category:"",completed:"Completado",country:"",cptcode:"Codigo CPT",creditTo:"",date:"Fecha",dateCompleted:"Fecha completada",dateOfBirth:"Fecha de nacimiento",dateOfBirthShort:"FDN",datePaid:"",dateRequested:"Fecha de pedido",delete:"Eliminar",deleteRequest:"Eliminar pedido",deleteUser:"Eliminar usuario",department:"",description:"Descripción",discount:"",displayName:"Nombre para mostrar",docRead:"Leer documento",docWritten:"Documento escrito",edit:"Editar",editUser:"Editar usuario",email:"Email",endDate:"Fecha final",endTime:"Hora de finalización",excess:"",expenseTo:"",fileLoadSuccessful:"Archivo cargado exitosamente",fileName:"",fileToLoad:"Archivo cargado",fulfill:"Cumplomiento",fulfillRequest:"Pedido de cumplimiento",fulfillRequestNow:"Pedido de cumplimiento ahora",fulfilled:"Cumplido",grandTotal:"",id:"Id",imageOrders:"Ordenes de radiografias",imagingType:"Tipo de radiografia",importFile:"Importar archivo",invoiceId:"",labOrders:"Ordenes de laboratorio",lineItems:"",loading:"Cargando",location:"Ubicacion",lookupType:"Tipo de busqueda",medication:"Medicación",name:"Nombre",newUser:"Nuevo usuario",note:"",notes:"Notas",number:"",on:"on",password:"Contraseña",patient:"Paciente",payments:"",physician:"Médico",prescriber:"",prescription:"Receta medica",prescriptionDate:"Fecha de la receta medica",price:"",print:"",procedures:"Procedimiento",provider:"Proveedor",pullFrom:"Traer de",quantity:"Cantidada",remarks:"",requestedBy:"Pedido por|",requestedOn:"Pedido On",requests:"Pedido",result:"Resultado",results:"Resultados",role:"Rol",search:"",sex:"Genero",startDate:"Fecha de inicio",startTime:"Hora de inicio",status:"Estado",takenBy:"",total:"",type:"Tipo",userCanAddNewValue:"Los usuarios pueden agregar nuevos valores",username:"Nombre de usuario",value:"Valor",view:"",visit:"Visita",with:"con"},labs:{alerts:{requestCompletedMessage:"El pedido de laboratorio ha sido completado.",requestCompletedTitle:"Pedido de laboratorio competado",requestSavedMessage:"El pedido de laboratorio ha sido guardado.",requestSavedTitle:"Silicitud de laboratorio guardado"},buttons:{newButton:"+ nuevo laboratorio"},completedTitle:"Completar laboratorio",deleteTitle:"Eliminar pedido",editTitle:"Editar pedido de laboratorio",labels:{addNewVisit:"--Adicionar nueva visita--",labType:"Tipo de laboratorio"},messages:{createNewRecord:"Crear un registro?",noCompleted:"No elementos completados encontrados.",noItemsFound:"No boratorios encontrados."},newTitle:"Nuevo pedido de laboratorio",requestsTitle:"Pedido de laboratorio",sectionTitle:"Laboratorios"},loading:{messages:{0:"",1:"",2:"",3:"",4:"",5:"",6:"",7:"",8:"",9:"",10:"",11:""},progressBar:{progress:""}},login:{labels:{password:"Clave",signIn:"Ingresar",username:"Nombre de usuario"},messages:{error:"Nombre de usuario o clave incorrectos.",signIn:"por favor ingrese"}},medication:{alerts:{fulfilledTitle:"Pedido de medicación cumplido",returnedMessage:"La medicacion ha sido marcada para devolver.",returnedTitle:"Medicacion devuelta",savedMessage:"La elemento de medicación ha sido guardado.",savedTitle:"Pedido de medicacion guardado"},buttons:{dispenseMedication:"dispensar medicación",newButton:"+ nuevo pedido",returnMedication:"debolver medicacion"},labels:{adjustmentDate:"Fecha de ajuste",creditToAccount:"Credito a cuenta",quantityDispensed:"Cantidad dispensada",quantityDistributed:"Cantidad distribuida",quantityRequested:"Cantidad solicitada",quantityToReturn:"Cantidad a devolver",refills:"Recargas",returnAisle:"Devolve a pasillo",returnLocation:"Retornar a ubicación",returnReason:"Razon por la que se devuelve/Nota"},messages:{createNew:"Crear un nuevo pedido de medicacion?"},pageTitle:"Pedido de medicación",returnMedication:"Retorno de medicación",sectionTitle:"Medication",titles:{completedMedication:"Medicacion completada",editMedicationRequest:"Editar pedido de medicacion",newMedicationRequest:"Nuevo pedido de medicacion"}},messages:{createNewRecord:"Crear un nuevo registro?",createNewUser:"Crear un nuevo usuario?",delete:"",delete_plural:"",delete_singular:"",forAuthorizedPersons:"Este informe es sólo para personas autorizadas.",newPatientHasToBeCreated:"Un nuevo paciente debe ser creado...Por favor espere..",noHistoryAvailable:"Historia no disponible.",noItemsFound:"Elementos no encontrados.",noNotesAvailable:"No hay notas clínicas adicionales están disponibles para esta visita.",noUsersFound:"Ningun usuario encontrado.",onBehalfOf:"a nombre de",reportError:"",requiredFieldsCorrectErrors:"",saveActionException:"",sorry:"Lo sentimos, un error ha ocurrido...",userHasBeenSaved:"El usuario ha sido salvado.",userSaved:"Usuario salvado"},models:{appointment:{labels:{allDay:"",appointmentDate:"",appointmentType:"",endDate:"",location:"",notes:"",patient:"",provider:"",startDate:"",status:"",type:""},names:{plural:"",singular:""}},attachment:{names:{plural:"",singular:""}},form:{names:{plural:"",singular:""}},imaging:{names:"",request:{plural:"",singular:""}},incident:{names:{plural:"",singular:""}},item:{names:{plural:"",singular:""}},lab:{names:{plural:"",singular:""},request:{plural:"",singular:""}},medication:{names:{plural:"",singular:""},request:{plural:"",singular:""}},note:{names:{plural:"",singular:""}},patient:{labels:{name:""},names:{singular:""}},procedure:{names:{plural:"",singular:""}},user:{names:{plural:"",singular:""}},visit:{names:{plural:"",singular:""}},vital:{names:{plural:"",singular:""}}},navigation:{about:"Información de HospitalRun",actions:{login:"Ingresar",logout:"Salir"},administration:"Administracion",billing:"Facturas",imaging:"Radiografia",incident:"",inventory:"Inventario",labs:"Laboratorio",medication:"Recetas medicas",patients:"Pacientes",scheduling:"",subnav:{actions:"",addAppointment:"Nueva cita",addressFields:"Campos de dirección",admittedPatients:"",appointmentSearch:"",appointmentsCalendar:"",appointmentsThisWeek:"",completed:"Completado",currentIncidents:"",customForms:"",dispense:"Dispense",history:"",incidentCategories:"",inventoryReceived:"Inventario recibido",invoices:"Facturas",items:"Items",loadDB:"",lookupLists:"Lista de busuedas",missedAppointments:"",newIncident:"",newInvoice:"Nueva factura",newPatient:"Nuevo paciente",newRequest:"New pedido",newUser:"Nuevo usuario",outpatient:"",patientListing:"Lista de pacientes",priceProfiles:"Perfil de precios",prices:"Precios",printHeader:"",reports:"Reportes",requests:"Pedidos",returnMedication:"Devolver medicamento",scheduleSurgery:"",theaterSchedule:"","today'sAppointments":"",userRoles:"Roles",users:"Usuarios",workflow:""}},operationReport:{labels:{additionalNotes:"",assistant:"",caseComplexity:"",operationDescription:"",preOpPrimaryDiagnosis:"",preOpSecondaryDiagnosis:"",surgeon:"",surgeryDate:""},messages:{reportSaved:""},titles:{editTitle:"",newTitle:"",reportSaved:""}},operativePlan:{buttons:{completePlan:""},labels:{additionalNotes:"",admissionInstructions:"",caseComplexity:"",completedStatus:"",droppedStatus:"",operationDescription:"",plannedStatus:"",status:"",surgeon:""},messages:{planCompleted:"",planSaved:""},titles:{editTitle:"",newTitle:"",planCompleted:"",planSaved:""}},patients:{buttons:{addContact:"",addExpense:"",addFamilyMember:"",addOperativePlan:"",backToPatients:"",download:"",editOperativePlan:"",newAppointment:"",newImaging:"",newLab:"",newMedication:"",newPatient:"",newPhoto:"",newVisit:"",patientCheckIn:"",scheduleSurgery:""},labels:{admissionDate:"",admit:"",bloodType:"",caption:"",civilStatus:"",clinic:"",contacts:"",cost:"",dateOfBirth:"",dateProcessed:"",dischargeDate:"",dob:"",education:"",email:"",externalPatientId:"",firstName:"",income:"",insurance:"",lastName:"",middleName:"",monthlyCost:"",occupation:"",operativePlan:"",parent:"",patientDays:"",patientType:"",patientTypeCharity:"",patientTypePrivate:"",phone:"",placeOfBirth:"",primaryDiagnosis:"",referredBy:"",referredDate:"",relationship:"",relationships:"",religion:"",secondaryDiagnosis:"",sex:"",sexNotEntered:"",sources:"",status:"",totalMontlyExpense:""},messages:{areYouSureDelete:"",createNewPatient:"",deletingPatient:"",noPatientsFound:"",notFoundQuickAdd:"",photoFileRequired:"",savedPatient:""},navigation:{appointments:"",general:"",history:"",imaging:"",labs:"",medication:"",photos:"",socialWork:"",visits:""},notes:{newNote:"",onBehalfOfCopy:"a nombre de",onBehalfOfLabel:"A nombre de",pleaseSelectAVisit:"Por favor seleccione una visista",updateNote:""},titles:{addContact:"",addPhoto:"",additionalContacts:"",admissionsDetail:"",admissionsSummary:"",admittedPatients:"",delete:"",deleteContact:"",deleteExpense:"",deleteFamilyMember:"",deletePatientRecord:"",deletePhoto:"",diagnosticTesting:"",dischargesDetail:"",dischargesSummary:"",edit:"",editPhoto:"",expenses:"",familyInfo:"",familyInformation:"",new:"",outpatientsForDate:"",patient:"",patientListing:"",patientReport:"",patientStatus:"",proceduresDetail:"",proceduresSummary:"",savedPatient:"",socialWork:"",todaysOutpatients:"",totalPatientDays:"",totalPatientDaysDetailed:"",visit:""}},print:{invoice:{labels:{billedBy:"",billedDate:"",dateAdmitted:"",dateDischarged:"",dischargeNotes:"",patientAddress:"",patientAge:"",patientId:"",patientName:"",remarks:"",spacer:""},messages:{whereConducted:""},titles:{billingStatement:"",patientMember:"",patients:"",relContact:""}}},procedures:{buttons:{addMedication:""},labels:{medicationUsed:""},messages:{saved:""},titles:{addChargeItem:"",addMedicationUsed:"",deleteChargeItem:"",deleteMedicationUsed:"",edit:"",editChargeItem:"",editMedicationUsed:"",medicationUsed:"",new:"",saved:""}},reports:{labels:{admissionDate:"",allProcedures:"",completedBy:"",dischargeDate:"",examiner:"",images:"",labs:"",location:"",medications:"",nextAppointment:"",nextAppointments:"",notes:{author:"",date:"",title:""},operativePlan:{description:"",instructions:"",procedures:"",title:""},primaryDiagnosis:"",procedures:"",secondaryDiagnosis:"",visitDate:"",visitType:""},messages:{delete:"",saved:""},titles:{dischargeReport:"",newDischargeReport:"",newOPDReport:"",opdReport:"",saved:""}},user:{plusNewUser:"+ nuevo usuario",usersPageTile:"Listado de usuarios"},visits:{buttons:{addDiagnosis:"",checkIn:"",checkOut:"",discharge:"",newAppointment:"",newDischargeReport:"",newOPDReport:"",newProcedure:"",newVitals:""},labels:{appointment:"",authoredBy:"",checkInTime:"",checkOutTime:"",createNewPatient:"",diagnosis:"",examiner:"",finalDiagnosis:"",haveAppointment:"",haveDoneOrders:"",noAppointment:"",ordersDone:"",ordersNotDone:"",patientToCheckIn:"",procedure:"",procedureDate:"",reasonForVisit:"",reportType:"",status:"",statusAdmitted:"",statusCheckedIn:"",statusCheckedOut:"",statusDischarged:"",visitDate:"",visitInformation:"",visitType:""},messages:{checkOut:"",checkedOut:"",discharged:"",patientCheckedIn:"",patientCreatedAndCheckedIn:"",visitAndPatientSaved:"",visitSaved:""},navigation:{charges:"",notes:"",orders:"",procedures:"",reports:"",vitals:""},titles:{additionalDiagnoses:"",checkOut:"",checkedIn:"",checkedOut:"",discharged:"",editVisit:"",newVisit:"",patientCheckIn:"",visitSaved:""}},vitals:{labels:{dateRecorded:"",dbp:"",heartRate:"",height:"",respiratoryRate:"",sbp:"",temperature:"",weight:""}}}}),define("hospitalrun/locales/es/translations",["exports"],function(e){e.default={admin:{address:{address1Label:"Texto direccion 1",address2Label:"Texto direccion 2",address3Label:"Texto direccion 3",address4Label:"Texto direccion 4",addressLabel:"Direcciones",editTitle:"Opciones de dirección",include1Label:"Incluir 1",include2Label:"Incluir 2",include3Label:"Incluir 3",include4Label:"Incluir 4",messages:{addressSaved:"las opciones de dirección han sido guardadas"},newTitle:"Opciones de dirección",titles:{optionsSaved:"Opciones guardadas"}},addressOptions:"Opciones de direcciones",customForms:{buttons:{addField:"",moveDown:"",moveUp:"",newForm:"",preview:""},labels:{alwaysInclude:"",checkbox:"",colSpan:"",columns:"",customForm:"",dischargeReportFormType:"",formName:"",formType:"",incidentFormType:"",includeOtherOption:"",labFormType:"",label:"",newForm:"",opdReportFormType:"",operativePlanFormType:"",otherOptionLabel:"",patientFormType:"",property:"",radio:"",select:"",socialworkFormType:"",text:"",textarea:"",visitFormType:""},messages:{formSaved:""},titles:{checkboxValues:"",customForms:"",deleteForm:"",dropDownValues:"",editCustomForm:"",fields:"",formSaved:"",newCustomForm:"",radioValues:""}},header:{editTitle:"",facilityName:"",headerLabel:"",headerLine1:"",headerLine2:"",headerLine3:"",logoURL:"",messages:{headerSaved:""},newTitle:"",titles:{optionsSaved:""}},loadDb:"Cargar Base de datos",loaddb:{displayAlertMessage:"Por favor seleccione un archivo para ser cargado.",displayAlertTitle:"Seleccione un archivo para cargar",editTitle:"Cargar bd",errorDisplayAlertMessage:"La base de datos no fue cargada el error fue: {{error}}",errorDisplayAlertTitle:"Error cargando",progressMessage:"Por favor espere mientras la base de datos es cargada.",progressTitle:"Cargando ase de datos"},lookup:{aisleLocationList:"Ubicacion de inventario de pasillo",alertImportListMessage:"Por favor seleccione un archivo para importar.",alertImportListSaveMessage:"Lista de busqueda importada.",alertImportListSaveTitle:"Lista importada",alertImportListTitle:"Seleccione un archivo para importar",alertImportListUpdateMessage:"La lista de busqueda ha sido salvada.",alertImportListUpdateTitle:"Lista salvada",anesthesiaTypes:"Tipos de anestesia",anesthesiologists:"Anestesiologo",billingCategories:"Categorias de facturacion",clinicList:"Ubicacion de las clinicas",countryList:"Paises",cptCodeList:"Codigos CPT",
+diagnosisList:"Diagnosticos",edit:{template:{addTitle:"Adicionar valor",editTitle:"Editar valor",labelTitle:"Valor",updateButtonTextAdd:"Adicionar",updateButtonTextUpdate:"Actualizar"}},expenseAccountList:"Cuentas de gastos",imagingPricingTypes:"Tipos de precios de radiografias",incidentDepartments:"",inventoryTypes:"Tipos de inventarios",labPricingTypes:"Precios de laboratorio",pageTitle:"Listas de busqueda",patientStatusList:"Lista de estado de pacientes",physicianList:"Medicos",procedureList:"Procedimientos",procedureLocations:"Ubicacion de los procedimientos",procedurePricingTypes:"Tipos de procedimientos y precios",radiologists:"Radiologo",titles:{deleteLookupValue:""},unitTypes:"Tipos de unidad",vendorList:"Proveedor",visitLocationList:"Lugares de visista",visitTypes:"Tipos de visita",wardPricingTypes:"Tipos de las tarifas",warehouseList:"Ubicacciones de inventarios"},lookupLists:"Lista de busqueda",roles:{capability:{addAllergy:"",addAppointment:"Adicionar cita",addBillingDiagnosis:"",addCharge:"Adicionar cargo (valor)",addDiagnosis:"Adicionar diagnostico",addImaging:"Adicionar radiografia",addIncident:"",addIncidentCategory:"",addInventoryItem:"Adicionar elemento al inventario",addInventoryPurchase:"Adicionar compra",addInventoryRequest:"Pedido de inventario",addInvoice:"Adicionar factura",addLab:"Adicionar laboratorio",addMedication:"Adicionar medicación",addNote:"",addOperationReport:"",addOperativePlan:"",addPatient:"Adicionar paciente",addPayment:"Adicionar pago",addPhoto:"Adicionar foto",addPricing:"Adicionar precio",addPricingProfile:"Adicionar perfil de precios",addProcedure:"",addSocialwork:"",addVisit:"Adicionar visita",addVitals:"Adicionar partes vitales",adjustInventoryLocation:"Ajustar lugar elemento en el inventario",admin:"Administracion",admitPatient:"Admitir paciente",appointments:"Citas",billing:"Facturacion",completeImaging:"Completar radiografia",completeLab:"Completar laboratorio",defineUserRoles:"Roles de usuario",deleteAppointment:"Eliminar cita",deleteDiagnosis:"Eliminar diagnostico",deleteImaging:"Eliminar radiografia",deleteIncident:"",deleteIncidentCategory:"",deleteInventoryItem:"Eliminar elemento del inventario",deleteInvoice:"Eliminar factura",deleteLab:"Eliminar laboratorio",deleteMedication:"Eliminar medicación",deleteNote:"",deletePatient:"Eliminar paciente",deletePhoto:"Eliminar foto",deletePricing:"Eliminar precio",deletePricingProfile:"Eliminar perfil de precio",deleteProcedure:"Eliminar procedimiento",deleteSocialwork:"Eliminar trabajo social",deleteVisit:"Eliminar visita",deleteVitals:"Eliminar organo vital",dischargePatient:"Descartar paciente",editInvoice:"Editar factura",fulfillInventory:"Cumplimiento de inventario",fulfillMedication:"Cumplir la medicación",generateIncidentReport:"",imaging:"Radiografia",incident:"",inventory:"Inventario",invoices:"Facturas",labs:"Laboratorios",loadDb:"Cargar base de datos",manageIncidents:"",medication:"Medicación",overrideInvoice:"Sobreescribir factura",patientReports:"Reportes por paciente",patients:"Pacientes",pricing:"Precio",updateConfig:"Actualizar configuracion",visits:"Visitas"},messages:{roleSaved:"El {{roleName}} rol ha sido salvado."},titles:{roleSaved:"Role salvado"}},userRoles:"Roles",users:"Usuarios",visitForms:{labels:{followup:"",form:"",initial:"",visitType:""},titles:{visitForms:""}},workflow:{admissionDepositLabel:"",clinicPrepaymentLabel:"",editTitle:"",followupPrepaymentLabel:"",messages:{optionsSaved:""},newTitle:"",outpatientImagingLabel:"",outpatientLabLabel:"",outpatientMedicationLabel:"",titles:{optionsSaved:""},workflowLabel:""}},alerts:{errorExclamation:"",pleaseWait:"Por favor espere",reportError:"",warningExclamation:""},allergies:{buttons:{addAllergy:""},labels:{allergyName:"",patientAllergy:""},titles:{addAllergy:"",editAllergy:""}},application:{messages:{sessionExpired:""},titles:{sessionExpired:""}},appointments:{buttons:{newButton:"+ nueva cita",scheduleSurgery:""},calendarTitle:"",currentScreenTitle:"Listado de citas",editTitle:"Editar cita",labels:{noLocation:"",selectedStartingDate:""},messages:{appointmentSaved:"",endTimeLaterThanStart:"Seleccione una hora de finalizacion despues de la de inicio."},missed:"Citas perdidas",newTitle:"Nueva cita",searchTitle:"Buscar citas",sectionTitle:"Citas",thisWeek:"Citas esta semana",titles:{appointmentSaved:"",editSurgicalAppointment:"",newSurgicalAppointment:"",theaterSchedule:""},todayTitle:"Citas para hoy"},billing:{alerts:{noInvoiceFound:"",noPricingItems:"",noPricingProfiles:""},buttons:{addOverride:"",createInvoice:""},labels:{actualCharges:"",discountAmount:"",discountPercentage:"",externalInvoiceNumber:"",hmoCom:"",insurance:"",paymentProfile:"",paymentsDeposits:"",pricingPanelOverrides:"",pricingProfile:""}},buttons:{add:"Adicionar",addItem:"",addLineItem:"",addValue:"Adicionar valor",addVisit:"Adicionar visita",allRequests:"Todas las solicitudes",barcode:"Codigo de barras",cancel:"Cancelar",clear:"",close:"Cerrar",complete:"Completado",delete:"Eliminar",dispense:"Repartir",edit:"",filter:"",fulfill:"Cumplimiento",import:"Importar",loadFile:"Cargar archivo",newItem:"+ nuevo elemento",newNote:"Nueva nota",newRequest:"Nueva solicitud",newRequestPlus:"+ nuevo pedido",newUser:"Nuevo usuario",ok:"Ok",remove:"Remover",returnButton:"Regresar",search:"Buscar",showAll:"",showFewer:"",update:"Actualizar"},components:{chargesByTypeTab:{charges:""},customFormManager:{buttons:{addForm:""}},dateTimePicker:{amHour:"",midnight:"",noon:"",pmHour:""},imageUpload:{messages:{selectValidImageFile:""}},operativeProcedures:{buttons:{addProcedure:""},labels:{procedure:""},titles:{procedures:""}},patientOrders:{buttons:{newImaging:"",newLab:"",newMedication:""},labels:{imagingOrderType:"",labOrderType:"",medicationOrderType:"",orderType:""}},priceList:{charges:""},quantityCalc:{result:""},quantityConv:{conversion:"",unit:""},sortableColumn:{labels:{selectAll:""}},takePhoto:{camera:"",how:"",labels:{takeAPicture:"",uploadAFile:""},photo:"",preview:"",takePhoto:"",uploadFile:""},upcomingAppointments:{labels:{date:"",location:"",type:"",with:""},titles:{upcomingAppointments:""}}},customForms:{buttons:{addForm:""},labels:{formToAdd:""},titles:{addCustomForm:""}},dashboard:{setup:"",title:"Que deseas hacer?"},dates:{long:"",longOmitDays:"",longOmitDaysPlural:"",longOmitDaysYears:"",longOmitYears:"",longPlural:"",short:"",shortOmitYears:""},diagnosis:{labels:{activeDiagnosis:"",date:"",diagnosis:"",secondaryDiagnosis:""},titles:{addDiagnosis:"",editDiagnosis:""}},errors:{accepted:"",blank:"",confirmation:"",empty:"",equalTo:"",even:"",exclusion:"",greaterThan:"",greaterThanOrEqualTo:"",inclusion:"",invalid:"",invalidNumber:"",lessThan:"",lessThanOrEqualTo:"",notANumber:"",notAnInteger:"",odd:"",otherThan:"",present:"",result:"",tooLong:"",tooShort:"",wrongLength:""},headings:{chargedItems:""},imaging:{alerts:{completedMessage:"El pedido de radiografia ha sido completado.",completedTitle:"Pedido de radiografia completado",savedMessage:"El pedido de radiografia ha sido guardado.",savedTitle:"Pedido de radiografia salvado"},buttons:{newButton:"+ new radiografia"},labels:{addNewVisit:"--Adicionar nueva visita--",radiologist:"Radiologo"},messages:{noCompleted:"No de items encontrados."},pageTitle:"Pedido de radriografia",sectionTitle:"Radiografias",titles:{completedImaging:"Radiografia completada",editTitle:"Pedido de edicion de radiografia",newTitle:"Nuevo pedido de radiografia"}},incident:{buttons:{add:"",addForm:"",addItem:"",cancel:"",delete:"",download:"",edit:"",export:"",generateRep:"",newAttachment:"",newCategory:"",newIncident:"",newNote:""},labels:{actions:"",addedBy:"",category:"",categoryItem:"",date:"",dateRecorded:"",department:"",description:"",endDate:"",givenBy:"",howToAddAttachment:"",incidentDate:"",incidentId:"",item:"",lastUpdated:"",note:"",patientId:"",patientImpacted:"",reportType:"",reportedBy:"",reportedDate:"",reportedTo:"",sentinelEvent:"",startDate:"",status:"",statusActive:"",statusClosed:"",statusFollowup:"",statusReported:"",title:"",total:"",updatedBy:""},messages:{attachmentFileRequired:"",createNew:"",createNewIncidentCategory:"",fillIn:"",incidentCategorySaved:"",noClosedIncidents:"",noIncidentCategoriesFound:"",noIncidents:"",saved:"",selectExistingPatient:""},titles:{addAttachment:"",addCategoryItem:"",addNote:"",attachments:"",closed:"",current:"",deleteAttachment:"",deleteIncident:"",deleteIncidentCategory:"",deleteItem:"",deleteNote:"",editAttachment:"",editIncident:"",editIncidentCategory:"",editNote:"",general:"",history:"",incidentCategories:"",incidentCategoryItem:"",incidentCategoryName:"",incidentCategorySaved:"",incidentSaved:"",incidents:"",incidentsByCategory:"",incidentsByDepartment:"",newIncident:"",newIncidentCategory:"",notes:"",reports:""}},inventory:{edit:{cost:"Costo por unidad:",delivered:"Enviado A:",location:"Cambio de ubicación:",prescription:"Recetado por:",pulled:"Pulled From:",quantity:"Quantity at Completion:",reason:"Razón:",returned:"Regresado al paciente:",transferredFrom:"Transferido a:",transferredTo:"Transferido a:"},labels:{action:"Acción",add:"Adicionar",addAdjustmentType:"",adjust:"Adjustar",adjustmentDate:"Fecha de ajuste",adjustmentFor:"Ajustado para",adjustmentType:"Tipo de ajuste",aisle:"Pasillo",aisleLocation:"Ubicación pasillo",allInventory:"Todo el inventario",allItems:"",availableQuantity:"",billTo:"Facturao a",consumePurchases:"Consume Purchases",consumptionRate:"Tasa de consumo",cost:"Costo",costPerUnit:"Costo por Unidad",crossReference:"Referencia cruzada",currentQuantity:"Cantidad actual",dateCompleted:"Fecha completado",dateEffective:"Gecha efectiva",dateEnd:"Fecha final",dateReceived:"Fecha recibido",dateStart:"Fecha inicial",dateTransferred:"",daysLeft:"Dias restantes",deleteItem:"Eliminar elemento",deliveryAisle:"Enviado a pasillo",deliveryLocation:"Ubicación del envio",details:"Detalles",distributionUnit:"Unidad de distribución",editItem:"Editar elemento",expense:"Gastos a",expirationDate:"Fecha de vencimiento",fulfillRequest:"Pedido de cumplimiento",fulfillRequestNow:"Pedido de incumplimiento para hoy",gift:"Regalo en especie",giftInKindNo:"N",giftInKindYes:"Y",giftUsage:"Uso del regalo en especie",inventoryConsumed:"Inventario consumido",inventoryItem:"Elemento del inventario",inventoryObsolence:"Obsolescencia de inventario",invoiceItems:"Articulos de factura",invoiceLineItem:"Elemento de la factura linea",invoiceNumber:"Factura numero",item:"Elemento",itemNumber:"Numero de elemento",items:"Elementos",location:"Ubicación",locations:"Ubicaciones",markAsConsumed:"Marcar como consumido",name:"Nombre",newItem:"Nuevo elemento",originalQuantity:"Cantidad original",print:"Imprimir",printBarcode:"Imprimir codigo de barras",printer:"Impresora",pullFrom:"Traido de",purchaseCost:"Costo de compra",purchaseInfo:"Informacion de la compra",purchases:"Compras",quantity:"Cantidad ({{unit}})",quantityAvailable:"Cantidad disponible",quantityOnHand:"Cantidad a la mano",quantityRequested:"Cantidad pedida",rank:"Ranking",reason:"Razón",remove:"Remover",removeAdjustmentType:"",reorderPoint:"Reordenar punto",requestedItems:"Elementos solicitados",returnAdjustmentType:"",returnToVendorAdjustmentType:"",salePricePerUnit:"Costo de venta por unidad",save:"Guardar",serialNumber:"Serial/Numero de lote",total:"Total",totalCost:"Costo total",totalReceived:"Total Recivido: {{total}}",transaction:"Transaccion",transactions:"Transacciones",transfer:"Translados",transferFrom:"Translado desde",transferTo:"Translado a ubicación",transferToAisle:"Translado a pasillo",unit:"Unidad",unitCost:"Unidad Costo",vendor:"Proveedor",vendorItemNumber:"Proveedor numero de elemento",writeOffAdjustmentType:"",xref:"XRef"},messages:{adjust:"Por favor ajust las cantidades en la ubicación adecuada(s) la diferencia de la cuenta es {{difference}}.",createRequest:"Crear un nuevo pedido?",itemNotFound:"El elemento del inventario {{item}} no se pudo encontrar.
Si desea crear un nuevo elemento, Ingrese la información abajo.
De lo contrario opria cancelar para volver.",loading:"Cargando transacciones ...",noItems:"No se encontraron elementos.",noRequests:"No se encontraron pedidos.",purchaseSaved:"La compra de inventario ha sido salvada.",quantity:"La cantidad total ({{quantity}}) no encaja con la cantidad total en las ubicaciones ({{locationQuantity}}).",removeItem:"Esta seguro de eliminar este elemento de la factura?",removeItemRequest:"Seguro que quiere eliminar este elemento del pedido?",requestFulfilled:"El pedido de inventario ha sido procesado.",requestUpdated:"El pedido de inventario ha sido actualizado.",warning:"Valide los campos requeridos (marcados con *) corrija los errores antes de adicionar."},reports:{adjustment:"Ajuste detallado",daysSupply:"Dias de inventario restante",expenseDetail:"Gastos detallados",expenseSum:"Resumen de gastos",expiration:"Fecha de expiracion",export:"Exportar reporte",fields:"Campos a incluir",finance:"Resumen de finanzas",generate:"Generar reporte",invLocation:"Inventario por ubicacion",invValuation:"Inventario por valoracion",purchaseDetail:"Compras detalladas",purchaseSum:"Resumen de compras",reportType:"Tipo de reporte",rows:{adjustments:"Ajustes",adjustmentsTotal:"Ajustes totales",balanceBegin:"Balance inicial",balanceEnd:"Balance Final",category:"Categoria",consumed:"Consumado",consumedGik:"GiK Consumido",consumedGikTotal:"Total GiK Consumido",consumedPuchases:"Total de lo comprado consumido",consumedPurchasesTotal:"Total de lo comprado consumido",consumedTotal:"Total consumido",errInFinSum:"Error en _generateFinancialSummaryReport: ",errInFindPur:"Error en _findInventoryItemsByPurchase: ",errInFindReq:"Error en _findInventoryItemsByRequest: ",expensesFor:"Gatos para: ",noAccount:"(No Cuenta)",subtotal:"Subtotal: ",subtotalFor:"Subtotal para {{category}} - {{account}}: ",total:"Total: ",totalFor:"Total para {{var}}: ",totalPurchases:"Compras Totales",transfer1:"{{quantity}} de {{location}}",trasnfer2:"De: {{source}} A: {{target}}"},stockTransferDetail:"Detalle de traslado de stock",stockTransferSum:"Resumen traslado de stock",stockUsageDetail:"Detalle de uso de stock",stockUsageSum:"Resumen uso de stock",titleDateRange:"",titleSingleDate:""},titles:{addPurchase:"Adicionar compra",addRequest:"Nuevo pedido",adjustment:"Ajuste",editPurchase:"Editar compra",editRequest:"Editar pedido",inventoryItem:"Nuevo elemento de inventario",inventoryReport:"Reporte de inventario",purchaseSaved:"Compras de inventario guardadas",quickAddTitle:"Nuevo elemento de inventario",removeItem:"Remover elemento",requestFulfilled:"Pedido cumplido",requestUpdated:"Pedido actualizado",transfer:"Trasladar elementos",warning:"Peligro!!!!!"}},labels:{action:"Accion",actions:"Acciones",addNewOutpatientVisit:"--Nueva visita a paciente externo--",address:"",age:"Edad",allDay:"Todo el dia",amount:"",anesthesia:"Anestesia",assisting:"Asistencia",balanceDue:"",billDate:"",billTo:"Facturar a",category:"",completed:"Completado",country:"",cptcode:"Codigo CPT",creditTo:"",date:"Fecha",dateCompleted:"Fecha completada",dateOfBirth:"Fecha de nacimiento",dateOfBirthShort:"FDN",datePaid:"",dateRequested:"Fecha de pedido",delete:"Eliminar",deleteRequest:"Eliminar pedido",deleteUser:"Eliminar usuario",department:"",description:"Descripción",discount:"",displayName:"Nombre para mostrar",docRead:"Leer documento",docWritten:"Documento escrito",edit:"Editar",editUser:"Editar usuario",email:"Email",endDate:"Fecha final",endTime:"Hora de finalización",excess:"",expenseTo:"",fileLoadSuccessful:"Archivo cargado exitosamente",fileName:"",fileToLoad:"Archivo cargado",fulfill:"Cumplomiento",fulfillRequest:"Pedido de cumplimiento",fulfillRequestNow:"Pedido de cumplimiento ahora",fulfilled:"Cumplido",grandTotal:"",id:"Id",imageOrders:"Ordenes de radiografias",imagingType:"Tipo de radiografia",importFile:"Importar archivo",invoiceId:"",labOrders:"Ordenes de laboratorio",lineItems:"",loading:"Cargando",location:"Ubicacion",lookupType:"Tipo de busqueda",medication:"Medicación",name:"Nombre",newUser:"Nuevo usuario",note:"",notes:"Notas",number:"",on:"on",password:"Contraseña",patient:"Paciente",payments:"",physician:"Médico",prescriber:"",prescription:"Receta medica",prescriptionDate:"Fecha de la receta medica",price:"",print:"",procedures:"Procedimiento",provider:"Proveedor",pullFrom:"Traer de",quantity:"Cantidada",remarks:"",requestedBy:"Pedido por|",requestedOn:"Pedido On",requests:"Pedido",result:"Resultado",results:"Resultados",role:"Rol",search:"",sex:"Genero",startDate:"Fecha de inicio",startTime:"Hora de inicio",status:"Estado",takenBy:"",total:"",type:"Tipo",userCanAddNewValue:"Los usuarios pueden agregar nuevos valores",username:"Nombre de usuario",value:"Valor",view:"",visit:"Visita",with:"con"},labs:{alerts:{requestCompletedMessage:"El pedido de laboratorio ha sido completado.",requestCompletedTitle:"Pedido de laboratorio competado",requestSavedMessage:"El pedido de laboratorio ha sido guardado.",requestSavedTitle:"Silicitud de laboratorio guardado"},buttons:{newButton:"+ nuevo laboratorio"},completedTitle:"Completar laboratorio",deleteTitle:"Eliminar pedido",editTitle:"Editar pedido de laboratorio",labels:{addNewVisit:"--Adicionar nueva visita--",labType:"Tipo de laboratorio"},messages:{createNewRecord:"Crear un registro?",noCompleted:"No elementos completados encontrados.",noItemsFound:"No boratorios encontrados."},newTitle:"Nuevo pedido de laboratorio",requestsTitle:"Pedido de laboratorio",sectionTitle:"Laboratorios"},loading:{messages:{0:"",1:"",2:"",3:"",4:"",5:"",6:"",7:"",8:"",9:"",10:"",11:""},progressBar:{progress:""}},login:{labels:{password:"Clave",signIn:"Ingresar",username:"Nombre de usuario"},messages:{error:"Nombre de usuario o clave incorrectos.",signIn:"por favor ingrese"}},medication:{alerts:{fulfilledTitle:"Pedido de medicación cumplido",returnedMessage:"La medicacion ha sido marcada para devolver.",returnedTitle:"Medicacion devuelta",savedMessage:"La elemento de medicación ha sido guardado.",savedTitle:"Pedido de medicacion guardado"},buttons:{dispenseMedication:"dispensar medicación",newButton:"+ nuevo pedido",returnMedication:"debolver medicacion"},labels:{adjustmentDate:"Fecha de ajuste",creditToAccount:"Credito a cuenta",quantityDispensed:"Cantidad dispensada",quantityDistributed:"Cantidad distribuida",quantityRequested:"Cantidad solicitada",quantityToReturn:"Cantidad a devolver",refills:"Recargas",returnAisle:"Devolve a pasillo",returnLocation:"Retornar a ubicación",returnReason:"Razon por la que se devuelve/Nota"},messages:{createNew:"Crear un nuevo pedido de medicacion?"},pageTitle:"Pedido de medicación",returnMedication:"Retorno de medicación",sectionTitle:"Medication",titles:{completedMedication:"Medicacion completada",editMedicationRequest:"Editar pedido de medicacion",newMedicationRequest:"Nuevo pedido de medicacion"}},messages:{createNewRecord:"Crear un nuevo registro?",createNewUser:"Crear un nuevo usuario?",delete:"",delete_plural:"",delete_singular:"",forAuthorizedPersons:"Este informe es sólo para personas autorizadas.",newPatientHasToBeCreated:"Un nuevo paciente debe ser creado...Por favor espere..",noHistoryAvailable:"Historia no disponible.",noItemsFound:"Elementos no encontrados.",noNotesAvailable:"No hay notas clínicas adicionales están disponibles para esta visita.",noUsersFound:"Ningun usuario encontrado.",onBehalfOf:"a nombre de",reportError:"",requiredFieldsCorrectErrors:"",saveActionException:"",sorry:"Lo sentimos, un error ha ocurrido...",userHasBeenSaved:"El usuario ha sido salvado.",userSaved:"Usuario salvado"},models:{appointment:{labels:{allDay:"",appointmentDate:"",appointmentType:"",endDate:"",location:"",notes:"",patient:"",provider:"",startDate:"",status:"",type:""},names:{plural:"",singular:""}},attachment:{names:{plural:"",singular:""}},form:{names:{plural:"",singular:""}},imaging:{names:"",request:{plural:"",singular:""}},incident:{names:{plural:"",singular:""}},item:{names:{plural:"",singular:""}},lab:{names:{plural:"",singular:""},request:{plural:"",singular:""}},medication:{names:{plural:"",singular:""},request:{plural:"",singular:""}},note:{names:{plural:"",singular:""}},patient:{labels:{name:""},names:{singular:""}},procedure:{names:{plural:"",singular:""}},user:{names:{plural:"",singular:""}},visit:{names:{plural:"",singular:""}},vital:{names:{plural:"",singular:""}}},navigation:{about:"Información de HospitalRun",actions:{login:"Ingresar",logout:"Salir"},administration:"Administracion",billing:"Facturas",imaging:"Radiografia",incident:"",inventory:"Inventario",labs:"Laboratorio",medication:"Recetas medicas",patients:"Pacientes",scheduling:"",subnav:{actions:"",addAppointment:"Nueva cita",addressFields:"Campos de dirección",admittedPatients:"",appointmentSearch:"",appointmentsCalendar:"",appointmentsThisWeek:"",completed:"Completado",currentIncidents:"",customForms:"",dispense:"Dispense",history:"",incidentCategories:"",inventoryReceived:"Inventario recibido",invoices:"Facturas",items:"Items",loadDB:"",lookupLists:"Lista de busuedas",missedAppointments:"",newIncident:"",newInvoice:"Nueva factura",newPatient:"Nuevo paciente",newRequest:"New pedido",newUser:"Nuevo usuario",outpatient:"",patientListing:"Lista de pacientes",priceProfiles:"Perfil de precios",prices:"Precios",printHeader:"",reports:"Reportes",requests:"Pedidos",returnMedication:"Devolver medicamento",scheduleSurgery:"",theaterSchedule:"","today'sAppointments":"",userRoles:"Roles",users:"Usuarios",workflow:""}},operationReport:{labels:{additionalNotes:"",assistant:"",caseComplexity:"",operationDescription:"",preOpPrimaryDiagnosis:"",preOpSecondaryDiagnosis:"",surgeon:"",surgeryDate:""},messages:{reportSaved:""},titles:{editTitle:"",newTitle:"",reportSaved:""}},operativePlan:{buttons:{completePlan:""},labels:{additionalNotes:"",admissionInstructions:"",caseComplexity:"",completedStatus:"",droppedStatus:"",operationDescription:"",plannedStatus:"",status:"",surgeon:""},messages:{planCompleted:"",planSaved:""},titles:{editTitle:"",newTitle:"",planCompleted:"",planSaved:""}},patients:{buttons:{addContact:"",addExpense:"",addFamilyMember:"",addOperativePlan:"",backToPatients:"",download:"",editOperativePlan:"",newAppointment:"",newImaging:"",newLab:"",newMedication:"",newPatient:"",newPhoto:"",newVisit:"",patientCheckIn:"",scheduleSurgery:""},labels:{admissionDate:"",admit:"",bloodType:"",caption:"",civilStatus:"",clinic:"",contacts:"",cost:"",dateOfBirth:"",dateProcessed:"",dischargeDate:"",dob:"",education:"",email:"",externalPatientId:"",firstName:"",income:"",insurance:"",lastName:"",middleName:"",monthlyCost:"",occupation:"",operativePlan:"",parent:"",patientDays:"",patientType:"",patientTypeCharity:"",patientTypePrivate:"",phone:"",placeOfBirth:"",primaryDiagnosis:"",referredBy:"",referredDate:"",relationship:"",relationships:"",religion:"",secondaryDiagnosis:"",sex:"",sexNotEntered:"",sources:"",status:"",totalMontlyExpense:""},messages:{areYouSureDelete:"",createNewPatient:"",deletingPatient:"",noPatientsFound:"",notFoundQuickAdd:"",photoFileRequired:"",savedPatient:""},navigation:{appointments:"",general:"",history:"",imaging:"",labs:"",medication:"",photos:"",socialWork:"",visits:""},notes:{newNote:"",onBehalfOfCopy:"a nombre de",onBehalfOfLabel:"A nombre de",pleaseSelectAVisit:"Por favor seleccione una visista",updateNote:""},titles:{addContact:"",addPhoto:"",additionalContacts:"",admissionsDetail:"",admissionsSummary:"",admittedPatients:"",delete:"",deleteContact:"",deleteExpense:"",deleteFamilyMember:"",deletePatientRecord:"",deletePhoto:"",diagnosticTesting:"",dischargesDetail:"",dischargesSummary:"",edit:"",editPhoto:"",expenses:"",familyInfo:"",familyInformation:"",new:"",outpatientsForDate:"",patient:"",patientListing:"",patientReport:"",patientStatus:"",proceduresDetail:"",proceduresSummary:"",savedPatient:"",socialWork:"",todaysOutpatients:"",totalPatientDays:"",totalPatientDaysDetailed:"",visit:""}},print:{invoice:{labels:{billedBy:"",billedDate:"",dateAdmitted:"",dateDischarged:"",dischargeNotes:"",patientAddress:"",patientAge:"",patientId:"",patientName:"",remarks:"",spacer:""},messages:{whereConducted:""},titles:{billingStatement:"",patientMember:"",patients:"",relContact:""}}},procedures:{buttons:{addMedication:""},labels:{medicationUsed:""},messages:{saved:""},titles:{addChargeItem:"",addMedicationUsed:"",deleteChargeItem:"",deleteMedicationUsed:"",edit:"",editChargeItem:"",editMedicationUsed:"",medicationUsed:"",new:"",saved:""}},reports:{labels:{admissionDate:"",allProcedures:"",completedBy:"",dischargeDate:"",examiner:"",images:"",labs:"",location:"",medications:"",nextAppointment:"",nextAppointments:"",notes:{author:"",date:"",title:""},operativePlan:{description:"",instructions:"",procedures:"",title:""},primaryDiagnosis:"",procedures:"",secondaryDiagnosis:"",visitDate:"",visitType:""},messages:{delete:"",saved:""},titles:{dischargeReport:"",newDischargeReport:"",newOPDReport:"",opdReport:"",saved:""}},user:{plusNewUser:"+ nuevo usuario",usersPageTile:"Listado de usuarios"},visits:{buttons:{addDiagnosis:"",checkIn:"",checkOut:"",discharge:"",newAppointment:"",newDischargeReport:"",newOPDReport:"",newProcedure:"",newVitals:""},labels:{appointment:"",authoredBy:"",checkInTime:"",checkOutTime:"",createNewPatient:"",diagnosis:"",examiner:"",finalDiagnosis:"",haveAppointment:"",haveDoneOrders:"",noAppointment:"",ordersDone:"",ordersNotDone:"",patientToCheckIn:"",procedure:"",procedureDate:"",reasonForVisit:"",reportType:"",status:"",statusAdmitted:"",statusCheckedIn:"",statusCheckedOut:"",statusDischarged:"",visitDate:"",visitInformation:"",visitType:""},messages:{checkOut:"",checkedOut:"",discharged:"",patientCheckedIn:"",patientCreatedAndCheckedIn:"",visitAndPatientSaved:"",visitSaved:""},navigation:{charges:"",notes:"",orders:"",procedures:"",reports:"",vitals:""},titles:{additionalDiagnoses:"",checkOut:"",checkedIn:"",checkedOut:"",discharged:"",editVisit:"",newVisit:"",patientCheckIn:"",visitSaved:""}},vitals:{labels:{dateRecorded:"",dbp:"",heartRate:"",height:"",respiratoryRate:"",sbp:"",temperature:"",weight:""}}}}),define("hospitalrun/locales/fr/translations",["exports"],function(e){e.default={admin:{address:{address1Label:"Label de l'adresse 1",address2Label:"Label de l'adresse 2",address3Label:"Label de l'adresse 3",address4Label:"Label de l'adresse 4",addressLabel:"Adresse",editTitle:"Options d'adresse",include1Label:"Label de l'include 1",include2Label:"Label de l'include 2",include3Label:"Label de l'include 3",include4Label:"Label de l'include 4",messages:{addressSaved:"Les options d'adresse ont été enregistrées"},newTitle:"Options d'adresse",titles:{optionsSaved:"Options enregistrées"}},addressOptions:"Options d'adresse",customForms:{buttons:{addField:"",moveDown:"",moveUp:"",newForm:"",preview:""},labels:{alwaysInclude:"",checkbox:"",colSpan:"",columns:"",customForm:"",dischargeReportFormType:"",formName:"",formType:"",incidentFormType:"",includeOtherOption:"",labFormType:"",label:"",newForm:"",opdReportFormType:"",operativePlanFormType:"",otherOptionLabel:"",patientFormType:"",property:"",radio:"",select:"",socialworkFormType:"",text:"",textarea:"",visitFormType:""},messages:{formSaved:""},titles:{checkboxValues:"",customForms:"",deleteForm:"",dropDownValues:"",editCustomForm:"",fields:"",formSaved:"",newCustomForm:"",radioValues:""}},header:{editTitle:"",facilityName:"",headerLabel:"",headerLine1:"",headerLine2:"",headerLine3:"",logoURL:"",messages:{headerSaved:""},newTitle:"",titles:{optionsSaved:""}},loadDb:"Importer une BD",loaddb:{displayAlertMessage:"Veuillez sélectionner le fichier à télécharger.",displayAlertTitle:"Sélectionner le fichier à télécharger.",editTitle:"Importer une BD",errorDisplayAlertMessage:"La base de données ne pouvait pas être importée. L'erreur etait: {{error}}",errorDisplayAlertTitle:"Erreur de chargement",progressMessage:"Veuillez patienter durant le chargement de la base de données.",progressTitle:"Chargement de la base de données en cours"},lookup:{aisleLocationList:"Emplacements de rayon d'inventaire",alertImportListMessage:"Veuillez sélectionner le fichier à importer.",alertImportListSaveMessage:"La liste de référence a été importée.",alertImportListSaveTitle:"Liste importée",alertImportListTitle:"Sélectionner le fichier à importer",alertImportListUpdateMessage:"La liste de référence a été enregistrée.",alertImportListUpdateTitle:"Liste enregistrée",anesthesiaTypes:"Types d'Anesthésie",anesthesiologists:"Anesthésiologistes",billingCategories:"Catégories de facturation",clinicList:"Emplacements de la clinique",countryList:"Pays",cptCodeList:"Codes CPT",diagnosisList:"Diagnostics",edit:{template:{addTitle:"Ajouter une valeur",editTitle:"Modifier la valeur",labelTitle:"Valeur",updateButtonTextAdd:"Ajouter",updateButtonTextUpdate:"Mettre à jour"}},expenseAccountList:"Comptes de dépense",imagingPricingTypes:"Types de prix d'imagerie",incidentDepartments:"",inventoryTypes:"Types d'inventaire",labPricingTypes:"Types de prix de labo",pageTitle:"Listes de référence",patientStatusList:"Liste de statut de patient",physicianList:"Médécins",procedureList:"Procédures",procedureLocations:"Emplacements des procédures",procedurePricingTypes:"Types de prix de procédure",radiologists:"Radiologistes",titles:{deleteLookupValue:""},unitTypes:"Types d'unité",vendorList:"Fournisseur",visitLocationList:"Emplacements de visite",visitTypes:"Types de visite",wardPricingTypes:"Types de prix de service",warehouseList:"Emplacements d'inventaire"},lookupLists:"Listes de référence",roles:{capability:{addAllergy:"",addAppointment:"Ajouter un Rendez-vous",addBillingDiagnosis:"",addCharge:"Ajouter une charge",addDiagnosis:"Ajouter un diagnostic",addImaging:"Ajouter une imagerie",addIncident:"",addIncidentCategory:"",addInventoryItem:"Ajouter un article d'inventaire",addInventoryPurchase:"Ajouter un achat d'inventaire",addInventoryRequest:"Ajouter une demande d'inventaire",addInvoice:"Ajouter une facture",addLab:"Ajouter un test labo",addMedication:"Ajouter un médicament",addNote:"",addOperationReport:"",addOperativePlan:"",addPatient:"Ajouter un patient",addPayment:"Ajouter un paiement",addPhoto:"Ajouter une photo",addPricing:"Ajouter un Prix",addPricingProfile:"Ajouter le profil de prix",addProcedure:"",addSocialwork:"",addVisit:"Ajouter une visite",addVitals:"Ajouter les signes vitaux",adjustInventoryLocation:"Ajuster la localisation de l'inventaire",admin:"Administration",admitPatient:"Admettre un patient",appointments:"Rendez-vous",billing:"Facturation",completeImaging:"Completer une imagerie",completeLab:"Completer un test labo",defineUserRoles:"Rôles d'utilisateur",deleteAppointment:"Supprimer un rendez-vous",deleteDiagnosis:"Supprimer un diagnostic",deleteImaging:"Supprimer une Imagerie",deleteIncident:"",deleteIncidentCategory:"",deleteInventoryItem:"Supprimer un article d'inventaire",deleteInvoice:"Supprimer une facture",deleteLab:"Supprimer un test labo",deleteMedication:"Supprimer un médicament",deleteNote:"",deletePatient:"Supprimer un patient",deletePhoto:"Supprimer une photo",deletePricing:"Supprimer un Prix",deletePricingProfile:"Supprimer le profil de prix",deleteProcedure:"Supprimer une procédure",deleteSocialwork:"Supprimer un travail social",deleteVisit:"Supprimer une Visite",deleteVitals:"Supprimer des signes vitaux",dischargePatient:"Liberer un patient",editInvoice:"Modifier la facture",fulfillInventory:"Traiter l'inventaire",fulfillMedication:"Traiter une demande de médicaments",generateIncidentReport:"",imaging:"Imagerie",incident:"",inventory:"Inventaire",invoices:"Factures",labs:"Test Labo",loadDb:"Charger la Base de données",manageIncidents:"",medication:"Médicament",overrideInvoice:"Remplacer la facture",patientReports:"Rapports des patients",patients:"Patients",pricing:"Tarification",updateConfig:"Mettre à jour les Configurations",visits:"Visites"},messages:{
+roleSaved:"Le rôle {{roleName}} a été enregistré."},titles:{roleSaved:"Rôle enregistré"}},userRoles:"",users:"Utilisateurs",visitForms:{labels:{followup:"",form:"",initial:"",visitType:""},titles:{visitForms:""}},workflow:{admissionDepositLabel:"",clinicPrepaymentLabel:"",editTitle:"",followupPrepaymentLabel:"",messages:{optionsSaved:""},newTitle:"",outpatientImagingLabel:"",outpatientLabLabel:"",outpatientMedicationLabel:"",titles:{optionsSaved:""},workflowLabel:""}},alerts:{errorExclamation:"",pleaseWait:"Veuillez attendre",reportError:"",warningExclamation:""},allergies:{buttons:{addAllergy:""},labels:{allergyName:"",patientAllergy:""},titles:{addAllergy:"",editAllergy:""}},application:{messages:{sessionExpired:""},titles:{sessionExpired:""}},appointments:{buttons:{newButton:"+ nouveau rendez-vous",scheduleSurgery:""},calendarTitle:"",currentScreenTitle:"Liste des rendez-vous",editTitle:"Modifier le rendez-vous",labels:{noLocation:"",selectedStartingDate:""},messages:{appointmentSaved:"",endTimeLaterThanStart:"Veuillez sélectionnez une heure de fin plus tard que l'heure de début."},missed:"Rendez-vous manqués",newTitle:"Nouveau rendez-vous",searchTitle:"Rechercher les rendez-vous",sectionTitle:"Rendez-vous",thisWeek:"Rendez-vous de la semaine",titles:{appointmentSaved:"",editSurgicalAppointment:"",newSurgicalAppointment:"",theaterSchedule:""},todayTitle:"Rendez-vous d'aujourd'hui"},billing:{alerts:{noInvoiceFound:"",noPricingItems:"",noPricingProfiles:""},buttons:{addOverride:"",createInvoice:""},labels:{actualCharges:"",discountAmount:"",discountPercentage:"",externalInvoiceNumber:"",hmoCom:"",insurance:"",paymentProfile:"",paymentsDeposits:"",pricingPanelOverrides:"",pricingProfile:""}},buttons:{add:"Ajouter",addItem:"",addLineItem:"",addValue:"Ajouter une valeur",addVisit:"Ajouter une visite",allRequests:"Toutes les demandes",barcode:"Code barre",cancel:"Annuler",clear:"",close:"Fermer",complete:"Traiter",delete:"Supprimer",dispense:"Dispenser",edit:"",filter:"",fulfill:"Traiter",import:"Importer",loadFile:"Télécharger le fichier",newItem:"+ nouvel article",newNote:"Nouvelle note",newRequest:"Nouvelle demande",newRequestPlus:"+ nouvelle demande",newUser:"Nouvel utilisateur",ok:"Ok",remove:"Retirer",returnButton:"Retourner",search:"Rechercher",showAll:"",showFewer:"",update:"Mettre à jour"},components:{chargesByTypeTab:{charges:""},customFormManager:{buttons:{addForm:""}},dateTimePicker:{amHour:"",midnight:"",noon:"",pmHour:""},imageUpload:{messages:{selectValidImageFile:""}},operativeProcedures:{buttons:{addProcedure:""},labels:{procedure:""},titles:{procedures:""}},patientOrders:{buttons:{newImaging:"",newLab:"",newMedication:""},labels:{imagingOrderType:"",labOrderType:"",medicationOrderType:"",orderType:""}},priceList:{charges:""},quantityCalc:{result:""},quantityConv:{conversion:"",unit:""},sortableColumn:{labels:{selectAll:""}},takePhoto:{camera:"",how:"",labels:{takeAPicture:"",uploadAFile:""},photo:"",preview:"",takePhoto:"",uploadFile:""},upcomingAppointments:{labels:{date:"",location:"",type:"",with:""},titles:{upcomingAppointments:""}}},customForms:{buttons:{addForm:""},labels:{formToAdd:""},titles:{addCustomForm:""}},dashboard:{setup:"",title:"Que voulez-vous faire?"},dates:{long:"",longOmitDays:"",longOmitDaysPlural:"",longOmitDaysYears:"",longOmitYears:"",longPlural:"",short:"",shortOmitYears:""},diagnosis:{labels:{activeDiagnosis:"",date:"",diagnosis:"",secondaryDiagnosis:""},titles:{addDiagnosis:"",editDiagnosis:""}},errors:{accepted:"",blank:"",confirmation:"",empty:"",equalTo:"",even:"",exclusion:"",greaterThan:"",greaterThanOrEqualTo:"",inclusion:"",invalid:"",invalidNumber:"",lessThan:"",lessThanOrEqualTo:"",notANumber:"",notAnInteger:"",odd:"",otherThan:"",present:"",result:"",tooLong:"",tooShort:"",wrongLength:""},headings:{chargedItems:""},imaging:{alerts:{completedMessage:"La demande d'imagerie a été traitée.",completedTitle:"Demande d'imagerie traitée",savedMessage:"La demande d'imagerie a été enregistrée.",savedTitle:"Demande d'imagerie enregistrée"},buttons:{newButton:"+ nouvelle imagerie"},labels:{addNewVisit:"--Ajouter une nouvelle visite--",radiologist:"Radiologiste"},messages:{noCompleted:"Aucun article traité retrouvé."},pageTitle:"Demandes d'imagerie",sectionTitle:"Imagerie",titles:{completedImaging:"Imagerie traitée",editTitle:"Modifier la demande d'imagerie",newTitle:"Nouvelle demande d'imagerie"}},incident:{buttons:{add:"",addForm:"",addItem:"",cancel:"",delete:"",download:"",edit:"",export:"",generateRep:"",newAttachment:"",newCategory:"",newIncident:"",newNote:""},labels:{actions:"",addedBy:"",category:"",categoryItem:"",date:"",dateRecorded:"",department:"",description:"",endDate:"",givenBy:"",howToAddAttachment:"",incidentDate:"",incidentId:"",item:"",lastUpdated:"",note:"",patientId:"",patientImpacted:"",reportType:"",reportedBy:"",reportedDate:"",reportedTo:"",sentinelEvent:"",startDate:"",status:"",statusActive:"",statusClosed:"",statusFollowup:"",statusReported:"",title:"",total:"",updatedBy:""},messages:{attachmentFileRequired:"",createNew:"",createNewIncidentCategory:"",fillIn:"",incidentCategorySaved:"",noClosedIncidents:"",noIncidentCategoriesFound:"",noIncidents:"",saved:"",selectExistingPatient:""},titles:{addAttachment:"",addCategoryItem:"",addNote:"",attachments:"",closed:"",current:"",deleteAttachment:"",deleteIncident:"",deleteIncidentCategory:"",deleteItem:"",deleteNote:"",editAttachment:"",editIncident:"",editIncidentCategory:"",editNote:"",general:"",history:"",incidentCategories:"",incidentCategoryItem:"",incidentCategoryName:"",incidentCategorySaved:"",incidentSaved:"",incidents:"",incidentsByCategory:"",incidentsByDepartment:"",newIncident:"",newIncidentCategory:"",notes:"",reports:""}},inventory:{edit:{cost:"Coût par unité:",delivered:"Livré à:",location:"Emplacement ajusté:",prescription:"Ordonnance pour:",pulled:"Tiré de:",quantity:"Quantité après traitement:",reason:"Motif:",returned:"Retourné par le patient:",transferredFrom:"Transféré de:",transferredTo:"Transféré à:"},labels:{action:"Action",add:"Ajouter",addAdjustmentType:"",adjust:"Ajuster",adjustmentDate:"Date d'ajustement",adjustmentFor:"Ajustement pour",adjustmentType:"Type d'ajustement",aisle:"Rayon",aisleLocation:"Emplacement du rayon",allInventory:"Toute l'inventaire",allItems:"",availableQuantity:"",billTo:"Facturer à",consumePurchases:"Utiliser les achats",consumptionRate:"Taux d'utilisation",cost:"Coût",costPerUnit:"Coût par unité",crossReference:"Reference",currentQuantity:"Quantité actuelle",dateCompleted:"Date de traitement",dateEffective:"Date d'effet",dateEnd:"Date de fin",dateReceived:"Date de réception",dateStart:"Date de debut",dateTransferred:"Date de transfert",daysLeft:"Nombre de jours restant",deleteItem:"Supprimer l'article",deliveryAisle:"Rayon de livraison",deliveryLocation:"Emplacement de livraison",details:"Détails",distributionUnit:"Unité de distribution",editItem:"Modifier l'article",expense:"Dépenses pour",expirationDate:"Date d'expiration",fulfillRequest:"Traiter la demande",fulfillRequestNow:"Traiter la demande maintenant",gift:"Don en nature",giftInKindNo:"N",giftInKindYes:"O",giftUsage:"Utilisation de don en nature",inventoryConsumed:"Inventaire utilisé",inventoryItem:"Article à inventorier",inventoryObsolence:"Inventory Obsolence",invoiceItems:"Articles de facture",invoiceLineItem:"Article de facture",invoiceNumber:"Numero de facture",item:"Article",itemNumber:"Numero d'article",items:"Articles",location:"Emplacement",locations:"Emplacements",markAsConsumed:"Marqué comme utilisé",name:"Nom",newItem:"Nouvel article",originalQuantity:"Quantité originale",print:"Imprimer",printBarcode:"Imprimer le code barre",printer:"Imprimante",pullFrom:"Tirer de",purchaseCost:"Coût d'achat",purchaseInfo:"Détails de l'achat",purchases:"Achats",quantity:"Quantité ({{unit}})",quantityAvailable:"Quantité disponible",quantityOnHand:"Quantité en main",quantityRequested:"Quantité demandée",rank:"Rang",reason:"Motif",remove:"Retirer",removeAdjustmentType:"",reorderPoint:"Point de commande",requestedItems:"Articles demandés",returnAdjustmentType:"",returnToVendorAdjustmentType:"",salePricePerUnit:"Prix de vente unitaire",save:"Enregistrer",serialNumber:"Numéro de série / lot",total:"Total",totalCost:"Coût total",totalReceived:"Total reçu: {{total}}",transaction:"Transaction",transactions:"Transactions",transfer:"Transférer",transferFrom:"Transféré de",transferTo:"Transférer à l'emplacement",transferToAisle:"Transférer à l'emplacement du rayon",unit:"Unité",unitCost:"Coût unitaire",vendor:"Fournisseur",vendorItemNumber:"Numéro d'article fournisseur",writeOffAdjustmentType:"",xref:"XRef"},messages:{adjust:"Veuillez ajuster les quantités sur le ou les emplacement(s) appropriée(s) pour tenir compte de la différence de {{difference}}.",createRequest:"Créer une nouvelle demande?",itemNotFound:"L'article d'inventaire {{item}} ne pouvait pas être retrouvé.
Si vous voulez créer un nouvel article d'inventaire, veuillez saisir les informations ci-dessous.
Sinon, appuyez sur le bouton Annuler pour retourner.",loading:"Chargement des transactions en cours…",noItems:"Aucun article retrouvé.",noRequests:"Aucune demande retrouvée.",purchaseSaved:"Les achats d'inventaire ont été enregistrés avec succès.",quantity:"La quantité totale de ({{quantity}}) ne correspond pas à la quantité totale dans les emplacements ({{locationQuantity}}).",removeItem:"Etes-vous sûr de vouloir retirer cet article de cette facture?",removeItemRequest:"Etes-vous sûr de vouloir supprimer cet article de cette demande?",requestFulfilled:"La demande d'inventaire a été traitée.",requestUpdated:"La demande d'inventaire a été mis à jour.",warning:"Veuillez remplir les champs obligatoires (marqués d'un *) et corriger les erreurs avant d'ajouter."},reports:{adjustment:"Ajustement détaillée",daysSupply:"Stock restant (en nombre de jours)",expenseDetail:"Détails des dépenses",expenseSum:"Résumé des dépenses",expiration:"Date d'expiration",export:"Exporter un rapport",fields:"Champs à inclure",finance:"Résumé des finances",generate:"Créer un rapport",invLocation:"Inventaire par emplacement",invValuation:"Valorisation de l'inventaire",purchaseDetail:"Détails de l'achat",purchaseSum:"Résumé de l'achat",reportType:"Type de rapport",rows:{adjustments:"Ajustements",adjustmentsTotal:"Ajustements totaux",balanceBegin:"Solde d'ouverture",balanceEnd:"Solde de clôture",category:"Catégorie",consumed:"Utilisé",consumedGik:"GiK utilisé",consumedGikTotal:"GiK total utilisé",consumedPuchases:"Achats utilisés",consumedPurchasesTotal:"Achats totaux utilisés",consumedTotal:"Total utilisé",errInFinSum:"Erreur dans _generateFinancialSummaryReport: ",errInFindPur:"Erreur dans _findInventoryItemsByPurchase: ",errInFindReq:"Erreur dans _findInventoryItemsByRequest: ",expensesFor:"Dépenses pour: ",noAccount:"(Pas de compte)",subtotal:"Sous-total: ",subtotalFor:"Sous-total pour {{category}} - {{account}}: ",total:"Total: ",totalFor:"Total pour {{var}}: ",totalPurchases:"Achats totaux",transfer1:"{{quantity}} de {{location}}",trasnfer2:"De: {{source}} A: {{target}}"},stockTransferDetail:"Transfert détaillé du stock",stockTransferSum:"Résumé du transfert du stock",stockUsageDetail:"Utilisation détaillée du stock",stockUsageSum:"Résumé de l'utilisation du stock",titleDateRange:"",titleSingleDate:""},titles:{addPurchase:"Ajouter un achat",addRequest:"Nouvelle demande",adjustment:"Ajustement",editPurchase:"Modifier l'achat",editRequest:"Modifier la demande",inventoryItem:"Nouvel article d'inventaire",inventoryReport:"Rapport d'inventaire",purchaseSaved:"Achats d'inventaire enregistrés",quickAddTitle:"Nouvel article d'inventaire",removeItem:"Retirer l'article",requestFulfilled:"Demande traitée",requestUpdated:"Demande mis à jour",transfer:"Transférer les articles",warning:"Attention!!!!!"}},labels:{action:"Action",actions:"Actions",addNewOutpatientVisit:"--Ajouter une nouvelle consultation externe--",address:"",age:"Age",allDay:"Toute la journée",amount:"",anesthesia:"Anesthésie",assisting:"Assistant",balanceDue:"",billDate:"",billTo:"Facturer à",category:"",completed:"Traité",country:"",cptcode:"Code CPT",creditTo:"",date:"Date",dateCompleted:"Date de traitement",dateOfBirth:"Date de naissance",dateOfBirthShort:"DdN",datePaid:"",dateRequested:"Date de demande",delete:"Supprimer",deleteRequest:"Supprimer la demande",deleteUser:"Supprimer un utilisateur",department:"",description:"Description",discount:"",displayName:"Nom à afficher",docRead:"Documents lus",docWritten:"Documents écrits",edit:"Modifier",editUser:"Modifier un utilisateur",email:"Email",endDate:"Date de fin",endTime:"Heure de fin",excess:"",expenseTo:"",fileLoadSuccessful:"Téléchargement reussi",fileName:"",fileToLoad:"Téléchargement de fichier",fulfill:"Traiter",fulfillRequest:"Traiter la demande",fulfillRequestNow:"Traiter la demande maintenant",fulfilled:"Traité",grandTotal:"",id:"Id",imageOrders:"Demandes d'imagerie",imagingType:"Type d'imagerie",importFile:"Importer un fichier",invoiceId:"",labOrders:"Demandes de labo",lineItems:"",loading:"Chargement",location:"Emplacement",lookupType:"Type de référence",medication:"Médicament",name:"Nom",newUser:"Nouvel utilisateur",note:"",notes:"Notes",number:"",on:"sur",password:"Mot de passe",patient:"Patient",payments:"",physician:"Médecin",prescriber:"prescripteur",prescription:"Ordonnance",prescriptionDate:"Date de prescription",price:"",print:"",procedures:"Procédures",provider:"Fournisseur",pullFrom:"Tirer de",quantity:"Quantité",remarks:"",requestedBy:"Demandé par",requestedOn:"Demandé le",requests:"Demandes",result:"Resultat",results:"Resultats",role:"Rôle",search:"",sex:"Sexe",startDate:"Date de debut",startTime:"Heure de debut",status:"Statut",takenBy:"",total:"",type:"Type",userCanAddNewValue:"Utilisateur peut ajouter de nouvelles valeurs",username:"Nom d'utilisateur",value:"Valeur",view:"",visit:"Visite",with:"Avec"},labs:{alerts:{requestCompletedMessage:"La demande de labo a été traitée.",requestCompletedTitle:"Demande de labo traitée",requestSavedMessage:"La demande de labo a été enregistrée.",requestSavedTitle:"Demande de labo enregistrée"},buttons:{newButton:"+ nouveau labo"},completedTitle:"Labos traités",deleteTitle:"Supprimer la demande",editTitle:"Modifier la demande de labo",labels:{addNewVisit:"--Ajouter une nouvelle visite--",labType:"Type de labo"},messages:{createNewRecord:"Créer un nouveau dossier?",noCompleted:"Aucun article traité retrouvé.",noItemsFound:"Aucun labo retrouvé."},newTitle:"Nouvelle demande de labo",requestsTitle:"Demandes de labo",sectionTitle:"Labos"},loading:{messages:{0:"",1:"",2:"",3:"",4:"",5:"",6:"",7:"",8:"",9:"",10:"",11:""},progressBar:{progress:""}},login:{labels:{password:"Mot de passe",signIn:"Connexion",username:"Nom d'utilisateur"},messages:{error:"Nom d'utilisateur ou mot de passe est incorrect.",signIn:"veuillez-vous connecter"}},medication:{alerts:{fulfilledTitle:"Demande de médicament traitée",returnedMessage:"Le médicament a été marqué comme retourné.",returnedTitle:"Médicament retourné",savedMessage:"Le dossier de médicament a été enregistré.",savedTitle:"Demande de médicament enregistrée"},buttons:{dispenseMedication:"dispenser un médicament",newButton:"+ nouvelle demande",returnMedication:"retourner un médicament"},labels:{adjustmentDate:"Date d'ajustement",creditToAccount:"Créditer le compte",quantityDispensed:"Quantité dispensé",quantityDistributed:"Quantité distribué",quantityRequested:"Quantité demandé",quantityToReturn:"Quantité à retourner",refills:"Renouvellements",returnAisle:"Rayon de retour",returnLocation:"Emplacement de retour",returnReason:"Motif/notes du retour"},messages:{createNew:"Créer une nouvelle demande de médicament?"},pageTitle:"Demandes de médicament",returnMedication:"Retourner un médicament",sectionTitle:"Médicament",titles:{completedMedication:"Médicament traitée",editMedicationRequest:"Modifier une demande de médicament",newMedicationRequest:"Nouvelle demande de médicament"}},messages:{createNewRecord:"Créer un nouveau dossier?",createNewUser:"Créer un nouvel utilisateur?",delete:"",delete_plural:"",delete_singular:"",forAuthorizedPersons:"Ce rapport est destiné uniquement aux personnes autorisées.",newPatientHasToBeCreated:"Un nouveau patient doit être crée...Veuillez attendre...",noHistoryAvailable:"Aucune historique disponible.",noItemsFound:"Aucun article retrouvé.",noNotesAvailable:"Aucune note clinique supplémentaire disponible pour cette visite.",noUsersFound:"Aucun utilisateur retrouvé.",onBehalfOf:"de la part de",reportError:"",requiredFieldsCorrectErrors:"",saveActionException:"",sorry:"Désolé, quelque chose a mal tourné ...",userHasBeenSaved:"L'utilisateur a été enregistré.",userSaved:"Utilisateur enregistré"},models:{appointment:{labels:{allDay:"",appointmentDate:"",appointmentType:"",endDate:"",location:"",notes:"",patient:"",provider:"",startDate:"",status:"",type:""},names:{plural:"",singular:""}},attachment:{names:{plural:"",singular:""}},form:{names:{plural:"",singular:""}},imaging:{names:"",request:{plural:"",singular:""}},incident:{names:{plural:"",singular:""}},item:{names:{plural:"",singular:""}},lab:{names:{plural:"",singular:""},request:{plural:"",singular:""}},medication:{names:{plural:"",singular:""},request:{plural:"",singular:""}},note:{names:{plural:"",singular:""}},patient:{labels:{name:""},names:{singular:""}},procedure:{names:{plural:"",singular:""}},user:{names:{plural:"",singular:""}},visit:{names:{plural:"",singular:""}},vital:{names:{plural:"",singular:""}}},navigation:{about:"À propos de HospitalRun",actions:{login:"Connexion",logout:"Deconnexion"},administration:"Administration",billing:"Facturation",imaging:"Imagerie",incident:"",inventory:"Inventaire",labs:"Labos",medication:"Médicament",patients:"Patients",scheduling:"",subnav:{actions:"",addAppointment:"Ajouter un rendez-vous",addressFields:"Champs d'adresse",admittedPatients:"patients admis",appointmentSearch:"",appointmentsCalendar:"",appointmentsThisWeek:"",completed:"Traité",currentIncidents:"",customForms:"",dispense:"Dispenser",history:"",incidentCategories:"",inventoryReceived:"Inventaire reçu",invoices:"Factures",items:"Articles",loadDB:"",lookupLists:"Listes de référence",missedAppointments:"",newIncident:"",newInvoice:"Nouvelle facture",newPatient:"Nouveau patient",newRequest:"Nouvelle demande",newUser:"Nouvel utilisateur",outpatient:"",patientListing:"Liste des patients",priceProfiles:"Profils de prix",prices:"Prix",printHeader:"",reports:"Rapports",requests:"Demandes",returnMedication:"Retourner un Médicament",scheduleSurgery:"",theaterSchedule:"","today'sAppointments":"",userRoles:"Rôles de l'utilisateur",users:"Utilisateurs",workflow:""}},operationReport:{labels:{additionalNotes:"",assistant:"",caseComplexity:"",operationDescription:"",preOpPrimaryDiagnosis:"",preOpSecondaryDiagnosis:"",surgeon:"",surgeryDate:""},messages:{reportSaved:""},titles:{editTitle:"",newTitle:"",reportSaved:""}},operativePlan:{buttons:{completePlan:""},labels:{additionalNotes:"",admissionInstructions:"",caseComplexity:"",completedStatus:"",droppedStatus:"",operationDescription:"",plannedStatus:"",status:"",surgeon:""},messages:{planCompleted:"",planSaved:""},titles:{editTitle:"",newTitle:"",planCompleted:"",planSaved:""}},patients:{buttons:{addContact:"",addExpense:"",addFamilyMember:"",addOperativePlan:"",backToPatients:"",download:"",editOperativePlan:"",newAppointment:"",newImaging:"",newLab:"",newMedication:"",newPatient:"",newPhoto:"",newVisit:"",patientCheckIn:"",scheduleSurgery:""},labels:{admissionDate:"",admit:"",bloodType:"",caption:"",civilStatus:"",clinic:"",contacts:"",cost:"",dateOfBirth:"",dateProcessed:"",dischargeDate:"",dob:"",education:"",email:"",externalPatientId:"",firstName:"",income:"",insurance:"",lastName:"",middleName:"",monthlyCost:"",occupation:"",operativePlan:"",parent:"",patientDays:"",patientType:"",patientTypeCharity:"",patientTypePrivate:"",phone:"",placeOfBirth:"",primaryDiagnosis:"",referredBy:"",referredDate:"",relationship:"",relationships:"",religion:"",secondaryDiagnosis:"",sex:"",sexNotEntered:"",sources:"",status:"",totalMontlyExpense:""},messages:{areYouSureDelete:"",createNewPatient:"",deletingPatient:"",noPatientsFound:"",notFoundQuickAdd:"",photoFileRequired:"",savedPatient:""},navigation:{appointments:"",general:"",history:"",imaging:"",labs:"",medication:"",photos:"",socialWork:"",visits:""},notes:{newNote:"",onBehalfOfCopy:"de la part de",onBehalfOfLabel:"De la part de",pleaseSelectAVisit:"Veuillez sélectionner une visite",updateNote:""},titles:{addContact:"",addPhoto:"",additionalContacts:"",admissionsDetail:"",admissionsSummary:"",admittedPatients:"",delete:"",deleteContact:"",deleteExpense:"",deleteFamilyMember:"",deletePatientRecord:"",deletePhoto:"",diagnosticTesting:"",dischargesDetail:"",dischargesSummary:"",edit:"",editPhoto:"",expenses:"",familyInfo:"",familyInformation:"",new:"",outpatientsForDate:"",patient:"",patientListing:"",patientReport:"",patientStatus:"",proceduresDetail:"",proceduresSummary:"",savedPatient:"",socialWork:"",todaysOutpatients:"",totalPatientDays:"",totalPatientDaysDetailed:"",visit:""}},print:{invoice:{labels:{billedBy:"",billedDate:"",dateAdmitted:"",dateDischarged:"",dischargeNotes:"",patientAddress:"",patientAge:"",patientId:"",patientName:"",remarks:"",spacer:""},messages:{whereConducted:""},titles:{billingStatement:"",patientMember:"",patients:"",relContact:""}}},procedures:{buttons:{addMedication:""},labels:{medicationUsed:""},messages:{saved:""},titles:{addChargeItem:"",addMedicationUsed:"",deleteChargeItem:"",deleteMedicationUsed:"",edit:"",editChargeItem:"",editMedicationUsed:"",medicationUsed:"",new:"",saved:""}},reports:{labels:{admissionDate:"",allProcedures:"",completedBy:"",dischargeDate:"",examiner:"",images:"",labs:"",location:"",medications:"",nextAppointment:"",nextAppointments:"",notes:{author:"",date:"",title:""},operativePlan:{description:"",instructions:"",procedures:"",title:""},primaryDiagnosis:"",procedures:"",secondaryDiagnosis:"",visitDate:"",visitType:""},messages:{delete:"",saved:""},titles:{dischargeReport:"",newDischargeReport:"",newOPDReport:"",opdReport:"",saved:""}},user:{plusNewUser:"+ nouvel utilisateur",usersPageTile:"Liste des Utilisateurs"},visits:{buttons:{addDiagnosis:"",checkIn:"",checkOut:"",discharge:"",newAppointment:"",newDischargeReport:"",newOPDReport:"",newProcedure:"",newVitals:""},labels:{appointment:"",authoredBy:"",checkInTime:"",checkOutTime:"",createNewPatient:"",diagnosis:"",examiner:"",finalDiagnosis:"",haveAppointment:"",haveDoneOrders:"",noAppointment:"",ordersDone:"",ordersNotDone:"",patientToCheckIn:"",procedure:"",procedureDate:"",reasonForVisit:"",reportType:"",status:"",statusAdmitted:"",statusCheckedIn:"",statusCheckedOut:"",statusDischarged:"",visitDate:"",visitInformation:"",visitType:""},messages:{checkOut:"",checkedOut:"",discharged:"",patientCheckedIn:"",patientCreatedAndCheckedIn:"",visitAndPatientSaved:"",visitSaved:""},navigation:{charges:"",notes:"",orders:"",procedures:"",reports:"",vitals:""},titles:{additionalDiagnoses:"",checkOut:"",checkedIn:"",checkedOut:"",discharged:"",editVisit:"",newVisit:"",patientCheckIn:"",visitSaved:""}},vitals:{labels:{dateRecorded:"",dbp:"",heartRate:"",height:"",respiratoryRate:"",sbp:"",temperature:"",weight:""}}}}),define("hospitalrun/locales/pt-br/translations",["exports"],function(e){e.default={admin:{address:{address1Label:"Rótulo Endereço 1",address2Label:"Rótulo Endereço 2",address3Label:"Rótulo Endereço 3",address4Label:"Rótulo Endereço 4",addressLabel:"Endereço",editTitle:"Opções de Endereço",include1Label:"Rótulo Include 1",include2Label:"Rótulo Include 2",include3Label:"Rótulo Include 3",include4Label:"Rótulo Include 4",messages:{addressSaved:"As opções de endereço foram salvas"},newTitle:"Opções de Endereço",titles:{optionsSaved:"Opções Salvas"}},addressOptions:"Opções de Endereço",customForms:{buttons:{addField:"",moveDown:"",moveUp:"",newForm:"",preview:""},labels:{alwaysInclude:"",checkbox:"",colSpan:"",columns:"",customForm:"",dischargeReportFormType:"",formName:"",formType:"",incidentFormType:"",includeOtherOption:"",labFormType:"",label:"",newForm:"",opdReportFormType:"",operativePlanFormType:"",otherOptionLabel:"",patientFormType:"",property:"",radio:"",select:"",socialworkFormType:"",text:"",textarea:"",visitFormType:""},messages:{formSaved:""},titles:{checkboxValues:"",customForms:"",deleteForm:"",dropDownValues:"",editCustomForm:"",fields:"",formSaved:"",newCustomForm:"",radioValues:""}},header:{editTitle:"",facilityName:"",headerLabel:"",headerLine1:"",headerLine2:"",headerLine3:"",logoURL:"",messages:{headerSaved:""},newTitle:"",titles:{optionsSaved:""}},loadDb:"Carregar DB",loaddb:{displayAlertMessage:"Por favor Selecione o Arquivo para Carregar.",displayAlertTitle:"Selecione o Arquivo para Carregar",editTitle:"Carregando BD",errorDisplayAlertMessage:"O banco de dados não foi carregado. O erro foi: {{error}}",errorDisplayAlertTitle:"Erro ao carregar",progressMessage:"Por favor aguarde enquanto o seu banco de dados é carregado.",progressTitle:"Carregando Banco de Dados"},lookup:{aisleLocationList:"Localização de Corredores no Inventário",alertImportListMessage:"Por favor Selecione o arquivo para importação.",alertImportListSaveMessage:"A lista de pesquisa foi importada.",alertImportListSaveTitle:"Lista Importdada",alertImportListTitle:"Selecione o arquivo para importação",alertImportListUpdateMessage:"A lista de pesquisa foi salva.",alertImportListUpdateTitle:"Lista Salva",anesthesiaTypes:"Tipos de Anestesia",anesthesiologists:"Anestesiologista",billingCategories:"Categorias de Faturamento",clinicList:"Localização de Clínicas",countryList:"Países",cptCodeList:"Códigos CPT",diagnosisList:"Diagnósticos",edit:{template:{addTitle:"Adicionar Valor",editTitle:"Editar Valor",labelTitle:"Valor",updateButtonTextAdd:"Adicionar",updateButtonTextUpdate:"Atualizar"}},expenseAccountList:"Contas de Despesas",imagingPricingTypes:"Tipos de Preço Imagem",incidentDepartments:"",inventoryTypes:"Tipos de Inventário",labPricingTypes:"Tipos de Preço Laboratório",pageTitle:"Listas de Pesquisa",patientStatusList:"Lista de Situação do Paciente",physicianList:"Médicos",procedureList:"Procedimentos",procedureLocations:"Localização de Procedimentos",procedurePricingTypes:"Tipos de Preço Procedimento",radiologists:"Radiologista",titles:{deleteLookupValue:""},unitTypes:"Tipos de Unidade",vendorList:"Fornecedor",visitLocationList:"Localização dos Visitantes",visitTypes:"Tipos de Visita",wardPricingTypes:"Tipos de Preços Enfermaria",warehouseList:"Locais de Inventário"},lookupLists:"Lista de Pesquisas",roles:{capability:{addAllergy:"",addAppointment:"Adicionar Compromissos",addBillingDiagnosis:"",addCharge:"Adicionar Cobrança",addDiagnosis:"Adicionar Diagnóstico",addImaging:"Adicionar Imagem",addIncident:"",addIncidentCategory:"",addInventoryItem:"Adicionar Item de Inventário",addInventoryPurchase:"Adicionar Compra de Inventário",addInventoryRequest:"Adicionar Requisição de Inventário",addInvoice:"Adicionar Fatura",addLab:"Adicionar Laboratório",addMedication:"Adicionar Medicação",addNote:"",addOperationReport:"",addOperativePlan:"",addPatient:"Adicionar Paciente",addPayment:"Adicionar Pagamentos",addPhoto:"Adicionar Foto",addPricing:"Adicionar Preço",addPricingProfile:"Adicionar Perfil de Preço",addProcedure:"Adicionar Procedimento",addSocialwork:"",addVisit:"Adicionar Visita",addVitals:"Adicionar Sinais Vitais",adjustInventoryLocation:"Ajustar Localização de Inventário",admin:"Administração",admitPatient:"Admitir Paciente",appointments:"Compromissos",billing:"Faturamentos",completeImaging:"Imagem Concluída",completeLab:"Laboratório Concluído",defineUserRoles:"Perfis de Usuários",deleteAppointment:"Excluir Compromisso",deleteDiagnosis:"Excluir Diagnóstico",deleteImaging:"Excluir Imagem",deleteIncident:"",deleteIncidentCategory:"",deleteInventoryItem:"Excluir Item de Inventário",deleteInvoice:"Excluir Fatura",deleteLab:"Excluir Laboratório",deleteMedication:"Excluir Medicação",deleteNote:"",deletePatient:"Excluir Paciente",deletePhoto:"Excluir Paciente",deletePricing:"Excluir Preço",deletePricingProfile:"Excluir Perfil de Preço",deleteProcedure:"Excluir Procedimento",deleteSocialwork:"Excluir Trabalho Social",deleteVisit:"Excluir Visita",deleteVitals:"Excluir Sinais Vitais",dischargePatient:"Alta do Paciente",editInvoice:"Editar Fatura",fulfillInventory:"Preencher Inventário",fulfillMedication:"Preencher Medicação",generateIncidentReport:"",imaging:"Imagem",incident:"",inventory:"Inventário",invoices:"Faturas",labs:"Laboratório",loadDb:"Carregar Banco de Dados",manageIncidents:"",medication:"Medicação",overrideInvoice:"Substituir Fatura",patientReports:"Relatório do Paciente",patients:"Pacientes",pricing:"Preço",updateConfig:"Atualizar Configurações",visits:"Visita"},messages:{roleSaved:"O perfil {{roleName}} foi salvo."},titles:{roleSaved:"Perfil Salvo"}},userRoles:"Perfis de Usuários",users:"Usuários",visitForms:{labels:{followup:"",form:"",initial:"",visitType:""},titles:{visitForms:""}},workflow:{admissionDepositLabel:"Depósito de Admissão é exigido",clinicPrepaymentLabel:"Pagamento Antecipado da Clínica é exigido",editTitle:"Opções de Workflow",followupPrepaymentLabel:"Pagamento Antecipado do Acompanhamento é exigido",messages:{optionsSaved:"As opções de WorkFlow foram salvas"},newTitle:"Opções de Workflow",outpatientImagingLabel:"Pagamento Antecipado do Ambulatorio de Imagem é exigido",outpatientLabLabel:"Pagamento Antecipado do Laboratório Ambulatorial é exigido",outpatientMedicationLabel:"Pagamento Antecipado do Ambulatorio de Medicação é exigido",titles:{optionsSaved:"Opções Salvas"},workflowLabel:"Workflow"}},alerts:{errorExclamation:"",pleaseWait:"Por Favor Aguarde",reportError:"",warningExclamation:""},allergies:{buttons:{addAllergy:"Adicionar alergia"},labels:{allergyName:"Nome",patientAllergy:"Alergias do paciente"},titles:{addAllergy:"Adicionar alergia",editAllergy:"Editar alergia"}},application:{messages:{sessionExpired:"Sua sessaão expirou. Faça login para continuar."},titles:{sessionExpired:"Sessaão expirada"}},appointments:{buttons:{newButton:"+ novo compromisso",scheduleSurgery:"+ nova cirurgia"},calendarTitle:"Compromissos",currentScreenTitle:"Lista de Compromisso",editTitle:"Editar Compromisso",labels:{noLocation:"Sem Localização",selectedStartingDate:"Mostrar Compromisso em ou após"},messages:{appointmentSaved:"",endTimeLaterThanStart:"Por favor, selecione um horário de término mais tarde do que a hora de início."},missed:"Compromissos Esquecidos",newTitle:"Novo Compromisso",searchTitle:"Pesquisar Compromissos",sectionTitle:"Compromissos",thisWeek:"Compromissos dessa Semana",titles:{appointmentSaved:"Compromisso Salvo",editSurgicalAppointment:"Editar cirurgia",newSurgicalAppointment:"Nova cirurgia",theaterSchedule:"Cirurgias"},todayTitle:"Compromissos de Hoje"},billing:{alerts:{noInvoiceFound:"Nenhuma fatura encontrada",noPricingItems:"Nenhum item de preço encontrado.",noPricingProfiles:"Nenhum perfil de preço encontrado."},buttons:{addOverride:"Adicionar Substituir",createInvoice:"Criar nova fatura?"},labels:{actualCharges:"Cobranças Atuais",discountAmount:"Quantidade de Desconto",discountPercentage:"Porcentagem de Desconto",externalInvoiceNumber:"Fatura Externa #",hmoCom:"HMO/COM",insurance:"Seguro Nacional",paymentProfile:"Perfil de Pagamento",paymentsDeposits:"Pagamentos/Depositos",pricingPanelOverrides:"Substituição e Perfil de Preços",pricingProfile:"Perfil de Preços"}},buttons:{add:"Adicionar",addItem:"Adicionar Item",addLineItem:"Adicionar Item de Linha",addValue:"Adicionar Valor",addVisit:"Adicionar Visita",allRequests:"Todas as Requisições",barcode:"Código de Barras",cancel:"Cancelar",clear:"Limpar",close:"Fechar",complete:"Completo",delete:"Excluir",dispense:"Dispensar",
+edit:"Editar",filter:"Filtrar",fulfill:"Preencher",import:"Importar",loadFile:"Carregar Arquivo",newItem:"+ novo item",newNote:"Nova Nota",newRequest:"Nova Requisição",newRequestPlus:"+ nova requisição",newUser:"Novo Usuário",ok:"Ok",remove:"Remover",returnButton:"Retornar",search:"Pesquisa",showAll:"",showFewer:"",update:"Atualizar"},components:{chargesByTypeTab:{charges:"cobranças"},customFormManager:{buttons:{addForm:""}},dateTimePicker:{amHour:"{{hour}} AM",midnight:"Meia-noite",noon:"Meio-dia",pmHour:"{{hour}} PM"},imageUpload:{messages:{selectValidImageFile:""}},operativeProcedures:{buttons:{addProcedure:""},labels:{procedure:""},titles:{procedures:""}},patientOrders:{buttons:{newImaging:"",newLab:"",newMedication:""},labels:{imagingOrderType:"",labOrderType:"",medicationOrderType:"",orderType:""}},priceList:{charges:"cobranças de {{pricingType}}"},quantityCalc:{result:"{{targetUnit}} total: {{calculated}}"},quantityConv:{conversion:"O que significa contém 1 {{name}}?",unit:"Unidade"},sortableColumn:{labels:{selectAll:""}},takePhoto:{camera:"Câmera",how:"Como você quer adicionar um Foto?",labels:{takeAPicture:"",uploadAFile:""},photo:"foto",preview:"pré visualização",takePhoto:"Tirar um Foto",uploadFile:"Upload de Arquivo"},upcomingAppointments:{labels:{date:"",location:"",type:"",with:""},titles:{upcomingAppointments:""}}},customForms:{buttons:{addForm:"Adicionar formulário"},labels:{formToAdd:"Formulário para adicionar"},titles:{addCustomForm:"Adicionar formulário customisado"}},dashboard:{setup:"",title:"O que você gostaria de fazer?"},dates:{long:"{{years}} ano {{months}} meses {{days}} dias",longOmitDays:"{{years}} ano {{months}} meses",longOmitDaysPlural:"{{years}} anos {{months}} meses",longOmitDaysYears:"{{months}} meses",longOmitYears:"{{months}} meses {{days}} dias",longPlural:"{{years}} anos {{months}} meses {{days}} dias",short:"{{years}}y {{months}}m {{days}}d",shortOmitYears:"{{months}}m {{days}}d"},diagnosis:{labels:{activeDiagnosis:"Diagnóstico ativo",date:"Data",diagnosis:"Diagnóstico",secondaryDiagnosis:"Diagnóstico secundário"},titles:{addDiagnosis:"Adicionar diagnóstico",editDiagnosis:"Editar diagnóstico"}},errors:{accepted:"deve ser aceito",blank:"não pode ser branco",confirmation:"{{attribute}} não corresponde",empty:"não pode ser vazio",equalTo:"deve ser igual à {{count}}",even:"deve ser até",exclusion:"é reservado",greaterThan:"deve ser maior do que {{count}}",greaterThanOrEqualTo:"deve ser maior ou igual à {{count}}",inclusion:"não está na lista",invalid:"é inválido",invalidNumber:"número não é valido",lessThan:"deve ser menor do que {{count}}",lessThanOrEqualTo:"deve ser menor ou igual à {{count}}",notANumber:"não é um número",notAnInteger:"deve ser um número inteiro",odd:"deve ser ímpar",otherThan:"deve ser diferente de {{count}}",present:"pode ser branco",result:"Informe um resultado antes de concluir",tooLong:"é muito longo (quantidade máxima de caracteres é {{count}} )",tooShort:"é muito curta (quantidade mínima de caracteres é {{count}})",wrongLength:"o tamanho está errado (são esperados {{count}} caracteres)"},headings:{chargedItems:"Itens Carregados"},imaging:{alerts:{completedMessage:"A requisição de imagem esta completa.",completedTitle:"Requisição de Imagem Completa",savedMessage:"A requisição de imagem foi salva.",savedTitle:"Requisição de imagem salva"},buttons:{newButton:"+ nova imagem"},labels:{addNewVisit:"--Adicionar novo visitante--",radiologist:"Radiologista"},messages:{noCompleted:"Nenhum item completo encontrado."},pageTitle:"Requisição de imagens",sectionTitle:"Imagem",titles:{completedImaging:"Imagem completa",editTitle:"Requisição de edição de imagem",newTitle:"Nova requisição de imagem"}},incident:{buttons:{add:"",addForm:"",addItem:"",cancel:"",delete:"",download:"",edit:"",export:"",generateRep:"",newAttachment:"",newCategory:"",newIncident:"",newNote:""},labels:{actions:"",addedBy:"",category:"",categoryItem:"",date:"",dateRecorded:"",department:"",description:"",endDate:"",givenBy:"",howToAddAttachment:"",incidentDate:"",incidentId:"",item:"",lastUpdated:"",note:"",patientId:"",patientImpacted:"",reportType:"",reportedBy:"",reportedDate:"",reportedTo:"",sentinelEvent:"",startDate:"",status:"",statusActive:"",statusClosed:"",statusFollowup:"",statusReported:"",title:"",total:"",updatedBy:""},messages:{attachmentFileRequired:"",createNew:"",createNewIncidentCategory:"",fillIn:"",incidentCategorySaved:"",noClosedIncidents:"",noIncidentCategoriesFound:"",noIncidents:"",saved:"",selectExistingPatient:""},titles:{addAttachment:"",addCategoryItem:"",addNote:"",attachments:"",closed:"",current:"",deleteAttachment:"",deleteIncident:"",deleteIncidentCategory:"",deleteItem:"",deleteNote:"",editAttachment:"",editIncident:"",editIncidentCategory:"",editNote:"",general:"",history:"",incidentCategories:"",incidentCategoryItem:"",incidentCategoryName:"",incidentCategorySaved:"",incidentSaved:"",incidents:"",incidentsByCategory:"",incidentsByDepartment:"",newIncident:"",newIncidentCategory:"",notes:"",reports:""}},inventory:{edit:{cost:"Preço por Unidade:",delivered:"Entregue a:",location:"Localização Ajustada:",prescription:"Prescrição para:",pulled:"Retirado de:",quantity:"Quantidade na Conclusão:",reason:"Motivo:",returned:"Devolvido do Paciente:",transferredFrom:"Transferido de:",transferredTo:"Transferido para:"},labels:{action:"Ação",add:"Adicionar",addAdjustmentType:"",adjust:"Ajustar",adjustmentDate:"Data de Ajuste",adjustmentFor:"Ajuste Para",adjustmentType:"Tipo de Ajuste",aisle:"Corredor",aisleLocation:"Localização do Corredor",allInventory:"Todo Inventário",allItems:"Todos os Itens",availableQuantity:"",billTo:"Conta Para",consumePurchases:"Compras para Consumo",consumptionRate:"Taxa de Consumo",cost:"Preço",costPerUnit:"Preço por Unidade",crossReference:"Referência Cruzada",currentQuantity:"Quantidade Atual",dateCompleted:"Data de Conclusao",dateEffective:"Data Efetiva",dateEnd:"Data de Término",dateReceived:"Data Recebida",dateStart:"Data de Início",dateTransferred:"Data Transferida",daysLeft:"Dias Restantes",deleteItem:"Deletar Item",deliveryAisle:"Corredor de Entrega",deliveryLocation:"Local de Entrega",details:"Detalhes",distributionUnit:"Centro de Distribuição",editItem:"Editar Item",expense:"Despesa para",expirationDate:"Data de Expiração",fulfillRequest:"Preencher Requisição",fulfillRequestNow:"Preencher Requisição Agora",gift:"Doação em Espécie",giftInKindNo:"N",giftInKindYes:"S",giftUsage:"Uso de Doação em Espécie",inventoryConsumed:"Inventário Consumido",inventoryItem:"Item de Inventário",inventoryObsolence:"Obsolescência de Inventário",invoiceItems:"Itens da Fatura",invoiceLineItem:"Item de Linha da Fatura",invoiceNumber:"Número da Fatura",item:"Item",itemNumber:"Número de Item",items:"Itens",location:"Localização",locations:"Localizações",markAsConsumed:"Marcar como Consumido",name:"Nome",newItem:"Novo Item",originalQuantity:"Quantidade Original",print:"Imprimir",printBarcode:"Imprimir Código Barras",printer:"Impressora",pullFrom:"Retirar de",purchaseCost:"Custo da Compra",purchaseInfo:"Informações da Compra",purchases:"Compras",quantity:"Quantity ({{unit}})",quantityAvailable:"Quantity Available",quantityOnHand:"Quantidade on Hand",quantityRequested:"Quantidade Solicitada",rank:"Classificação",reason:"Motivo",remove:"Remover",removeAdjustmentType:"",reorderPoint:"Ponto de Reabastecimento",requestedItems:"Itens Solicitados",returnAdjustmentType:"",returnToVendorAdjustmentType:"",salePricePerUnit:"Preço de Venda por Unidade",save:"Salvar",serialNumber:"Lote/Número de Série",total:"Total",totalCost:"Preço Total",totalReceived:"Total Recebido: {{total}}",transaction:"Transação",transactions:"Transações",transfer:"Transferir",transferFrom:"Transferir de",transferTo:"Transferir para Localização",transferToAisle:"Transferir para Localização de Corredor",unit:"Unidade",unitCost:"Preço Unitário",vendor:"Fornecedor",vendorItemNumber:"Número de Item do Fornecedor",writeOffAdjustmentType:"",xref:"RefX"},messages:{adjust:"Por favor ajustar as quantidades no(s) local(is) apropriado(s) da conta para a diferença de {{difference}}.",createRequest:"Criar uma nova requisição?",itemNotFound:"O item de inventário {{item}} não pode ser encontrado.
Se você quiser criar um novo item de inventário, preencha as informações abaixo.
Caso o contrário, pressione o botão Cancelar para voltar.",loading:"Carregando transações ...",noItems:"Nenhum item encontrado.",noRequests:"Nenhuma requisição encontrada.",purchaseSaved:"As compras de inventário foram salvas com sucesso.",quantity:"A quantidade total de ({{quantity}}) não corresponde com a quantidade total nas localizações({{locationQuantity}}).",removeItem:"Você tem certeza de que deseja remover este item desta fatura?",removeItemRequest:"Você tem certeza de que deseja remover este item desta requisição?",requestFulfilled:"A requisição de invenário foi preenchida.",requestUpdated:"A requisição de invenário foi atualizada.",warning:"Por favor preencher campos obrigatório (marcado(s) com *) e corrija os erros antes de adicionar."},reports:{adjustment:"Ajuste Detalhado",daysSupply:"Dias de Abastecimento Deixado no Estoque",expenseDetail:"Despesas Detalhadas",expenseSum:"Sumário de Despesas",expiration:"Data de Expiração",export:"Exportar Relatório",fields:"Campos para Incluir",finance:"Sumário Financeiro",generate:"Gerar Relatório",invLocation:"Inventário por Localização",invValuation:"Valorização do Inventário",purchaseDetail:"Compras Detalhadas",purchaseSum:"Sumário de Compras",reportType:"Tipo de Relatório",rows:{adjustments:"Ajustes",adjustmentsTotal:"Total dos Ajustes",balanceBegin:"Balanço Inicial",balanceEnd:"Balanço Final",category:"Categoria",consumed:"Consumidos",consumedGik:"Doações Consumidas",consumedGikTotal:"Total Doações Consumidas",consumedPuchases:"Compras Consumidas",consumedPurchasesTotal:"Total Compras Consumidas",consumedTotal:"Total Consumido",errInFinSum:"Erro em _generateFinancialSummaryReport: ",errInFindPur:"Erro em _findInventoryItemsByPurchase: ",errInFindReq:"Erro em _findInventoryItemsByRequest: ",expensesFor:"Despesas para: ",noAccount:"(Sem Conta)",subtotal:"Subtotal: ",subtotalFor:"Subtotal para {{category}} - {{account}}: ",total:"Total: ",totalFor:"Total para {{var}}: ",totalPurchases:"Total de Compras",transfer1:"{{quantity}} de {{location}}",trasnfer2:"De: {{source}} Para: {{target}}"},stockTransferDetail:"Tranferências de Estoque Detalhadas",stockTransferSum:"Sumário de Tranferências de Estoque",stockUsageDetail:"Uso de Estoque Detalhado",stockUsageSum:"Sumário de Uso de Estoque",titleDateRange:"",titleSingleDate:""},titles:{addPurchase:"Adicionar Compra",addRequest:"Nova Requisição",adjustment:"Ajuste",editPurchase:"Editar Compra",editRequest:"Editar Requisição",inventoryItem:"Novo Item de Inventário",inventoryReport:"Relatório de Inventário",purchaseSaved:"Compras de Invenários Salvas",quickAddTitle:"Novo Item de Inventário",removeItem:"Remover Item",requestFulfilled:"Requisição Preenchida",requestUpdated:"Requisição Atualizada",transfer:"Itens de Transferência",warning:"Atenção!!!!!"}},labels:{action:"Ação",actions:"Ações",addNewOutpatientVisit:"--Adicionar Nova Visita Ambulatorial--",address:"Endereço",age:"Idade",allDay:"Todo Dia",amount:"Quantidade",anesthesia:"Anestesia",assisting:"Ajudante",balanceDue:"Saldo Devedor",billDate:"Data da Conta",billTo:"Conta Para",category:"Categoria",completed:"Completo",country:"País",cptcode:"Código CPT*",creditTo:"Crédito Para",date:"Data",dateCompleted:"Data da Conclusão",dateOfBirth:"Data de Nascimento",dateOfBirthShort:"DtNasc",datePaid:"Data de Pagamento",dateRequested:"Data da Requisição",delete:"Excluir",deleteRequest:"Excluir Requisição",deleteUser:"Excluir Usuário",department:"Departamento",description:"Descrição",discount:"Desconto",displayName:"Nome de Exibição",docRead:"Documentos Lidos",docWritten:"Documentos Escritos",edit:"Editar",editUser:"Editar Usuário",email:"Email",endDate:"Data de Término",endTime:"Hora de Término",excess:"Excesso",expenseTo:"Despesa Para",fileLoadSuccessful:"Arquivo Carregado com Sucesso",fileName:"",fileToLoad:"Carregar Arquivo",fulfill:"Preencha",fulfillRequest:"Preencha a Requisição",fulfillRequestNow:"Preencha a Requisição Agora",fulfilled:"Preenchido",grandTotal:"Total Geral",id:"Id",imageOrders:"Pedido de Imagem",imagingType:"Tipo de Imagem",importFile:"Importar Arquivo",invoiceId:"ID da Fatura",labOrders:"Pedidos de Laboratório",lineItems:"Itens de Linha",loading:"Carregando",location:"Localização",lookupType:"Tipo de Pesquisa",medication:"Medicação",name:"Nome",newUser:"Novo Usuário",note:"Note",notes:"Notas",number:"Número",on:"ligado",password:"Senha",patient:"Paciente",payments:"Pagamentos",physician:"Médico",prescriber:"Médico Responsável pela Prescrição",prescription:"Prescrição",prescriptionDate:"Data da Prescrição",price:"Preço",print:"",procedures:"Procedimentos",provider:"Fornecedor",pullFrom:"Puxar De",quantity:"Quantidade",remarks:"Observações",requestedBy:"Requisitado por",requestedOn:"Solicitado em",requests:"Requisições",result:"Resultado",results:"Resultados",role:"Papel",search:"Pesquisa",sex:"Sexo",startDate:"Data de Início",startTime:"Hora Início",status:"Situação",takenBy:"",total:"Total",type:"Tipo",userCanAddNewValue:"O usuário pode adicionar novos valores",username:"Usuário",value:"Valor",view:"",visit:"Visita",with:"Com"},labs:{alerts:{requestCompletedMessage:"Requisição de laboratório foi concluída.",requestCompletedTitle:"Requisições de Laboratório Concluída",requestSavedMessage:"A requisição de laboratório foi salva.",requestSavedTitle:"Requisição de Laboratório Salva"},buttons:{newButton:"+ novo laboratório"},completedTitle:"Laboratórios Concluídos",deleteTitle:"Excluir Requisição",editTitle:"Editar Requisição de Laboratório",labels:{addNewVisit:"--Adicionar Nova Visita--",labType:"Tipo de Laboratório"},messages:{createNewRecord:"Criar novo registro?",noCompleted:"Items concluídos não econtrados.",noItemsFound:"Nenhum laboratório encontrado."},newTitle:"Nova Requisição de Laboratório",requestsTitle:"Requisições de Laboratório",sectionTitle:"Laboratório"},loading:{messages:{0:"A velocidade de vôo borboleta superior é de 12 milhas por hora. Alguns meses pode voar 25 milhas por hora!",1:"As corujas são os únicos pássaros que podem ver a cor azul.",2:"Os gatos têm mais de 100 sons vocais; cachorros têm apenas 10.",3:"Os Humanos usam um total de 72 músculos diferentes na fala.",4:"Mais de 1.000 idiomas diferentes são falados no continente africano",5:"Uma eritrofobo é alguém que fica vermelho facilmente.",6:"A fobia mais comum do mundo é a Odinofobia que é o medo da dor.",7:"Seu corpo utiliza 300 músculo para manter o equilíbrio quando você está parado.",8:"Alguns sapos podem ser congelados e depois de serem descongelados continuarem a viver.",9:"Nossos olhos estão sempre do mesmo tamanho de quando nascemos, mas nossas orelhas e nariz nunca param de crescer.",10:"Sua língua é o único músculo em seu corpo qu está ligado apenas em uma extremidade.",11:"Camelos tem três pálpebras para se protegerem das tempestades de areia."},progressBar:{progress:"{{progressBarValue}}% concluído"}},login:{labels:{password:"Senha",signIn:"Entrar",username:"Usuário"},messages:{error:"Nome de usuário ou senha está incorreta.",signIn:"Entrar"}},medication:{alerts:{fulfilledTitle:"Requisição de Medicação Preenchido",returnedMessage:"A medicação foi marcada como retornada.",returnedTitle:"Medicação Retornada",savedMessage:"O registro de medicação foi salvo.",savedTitle:"Requisição de Medicação foi Salva"},buttons:{dispenseMedication:"dispensar medicação",newButton:"+ nova requisição",returnMedication:"retorno de medicação"},labels:{adjustmentDate:"Data de Ajuste",creditToAccount:"Crédito na Conta",quantityDispensed:"Quantidade Dispensada",quantityDistributed:"Quantidade Distribuída",quantityRequested:"Quantidade Requisitada",quantityToReturn:"Quantidade Retornada",refills:"Recargas",returnAisle:"Corredor de Retorno",returnLocation:"Localização de Retorno",returnReason:"Razão/Notas de Retorno"},messages:{createNew:"Criar uma nova requisição de medicação?"},pageTitle:"Requisição de Medicação",returnMedication:"Retorno de Medicação",sectionTitle:"Medicação",titles:{completedMedication:"Medicação Concluída",editMedicationRequest:"Editar Requisição de Medicação",newMedicationRequest:"Nova Requisição de Medicação"}},messages:{createNewRecord:"Criar uma nova gravação?",createNewUser:"Criar um novo usuário?",delete:"",delete_plural:"",delete_singular:"",forAuthorizedPersons:"Este relatório é somente para pessoas autorizadas.",newPatientHasToBeCreated:"Um novo paciente precisa ser criado... Por favor aguarde...",noHistoryAvailable:"Histórico não disponível.",noItemsFound:"Nenhum item encontrado",noNotesAvailable:"Nenhuma nota clinica adicional está diponível para essa visita.",noUsersFound:"Nenhum usuário encontrado.",onBehalfOf:"em nome de",reportError:"",requiredFieldsCorrectErrors:"",saveActionException:"",sorry:"Desculpe, algo deu errado...",userHasBeenSaved:"O usuário foi salvo.",userSaved:"Usuário Salvo"},models:{appointment:{labels:{allDay:"",appointmentDate:"",appointmentType:"",endDate:"",location:"",notes:"",patient:"",provider:"",startDate:"",status:"",type:""},names:{plural:"",singular:""}},attachment:{names:{plural:"",singular:""}},form:{names:{plural:"",singular:""}},imaging:{names:"",request:{plural:"",singular:""}},incident:{names:{plural:"",singular:""}},item:{names:{plural:"",singular:""}},lab:{names:{plural:"",singular:""},request:{plural:"",singular:""}},medication:{names:{plural:"",singular:""},request:{plural:"",singular:""}},note:{names:{plural:"",singular:""}},patient:{labels:{name:""},names:{singular:""}},procedure:{names:{plural:"",singular:""}},user:{names:{plural:"",singular:""}},visit:{names:{plural:"",singular:""}},vital:{names:{plural:"",singular:""}}},navigation:{about:"Sobre HospitalRun",actions:{login:"Entrar",logout:"Sair"},administration:"Administração",billing:"Faturamento",imaging:"Imagem",incident:"",inventory:"Inventário",labs:"Laboratórios",medication:"Medicação",patients:"Pacientes",scheduling:"Agenda",subnav:{actions:"Ações",addAppointment:"Adicionar Compromisso",addressFields:"Campos de Endereço",admittedPatients:"Pacientes Admitidos",appointmentSearch:"Pesquisar compromissos",appointmentsCalendar:"Compromissos",appointmentsThisWeek:"Compromissos dessa Semana",completed:"Concluídos",currentIncidents:"",customForms:"Formulários customisados",dispense:"Dispensar",history:"",incidentCategories:"",inventoryReceived:"Inventário Recebido",invoices:"Faturas",items:"Itens",loadDB:"Carregar BD",lookupLists:"Listas de Pesquisa",missedAppointments:"Compromissos Esquecidos",newIncident:"",newInvoice:"Nova Fatura",newPatient:"Novo Paciente",newRequest:"Nova Requisição",newUser:"Novo Usuário",outpatient:"Ambulatório",patientListing:"Lista de Pacientes",priceProfiles:"Perfis de Preços",prices:"Preços",printHeader:"",reports:"Relatórios",requests:"Requisições",returnMedication:"Retorno de Medicação",scheduleSurgery:"Agendar Cirurgia",theaterSchedule:"Agenda de Cirurgias","today'sAppointments":"Compromissos de Hoje",userRoles:"Perfis de Usuário",users:"Usuários",workflow:"Workflow"}},operationReport:{labels:{additionalNotes:"Notas adicionais",assistant:"Assistente",caseComplexity:"Complexidade do caso",operationDescription:"Descriçaão da operaçaão",preOpPrimaryDiagnosis:"Pre-op diagnóstico primário",preOpSecondaryDiagnosis:"Pre-op diagnóstico secundário",surgeon:"Cirurgião",surgeryDate:"Data da cirurgia"},messages:{reportSaved:"O relatório da operação foi salvo."},titles:{editTitle:"Editar relatório de operação",newTitle:"Novo relatório da operação",reportSaved:"Relatório salvo"}},operativePlan:{buttons:{completePlan:"Plano completo"},labels:{additionalNotes:"Notas adicionais",admissionInstructions:"Instruções após admissaão",caseComplexity:"Complexidade do caso",completedStatus:"Completo",droppedStatus:"Desistiu",operationDescription:"Descriçaão da operação",plannedStatus:"Planejado",status:"Estado",surgeon:"Cirurgião"},messages:{planCompleted:"O plano de operação foi concluído. Agora você será direcionado para o relatório de operação.",planSaved:"O plano de operação foi salvo."},titles:{editTitle:"Editar plano de operação",newTitle:"Novo plano de operação",planCompleted:"Plano completo",planSaved:"Plano salvo"}},patients:{buttons:{addContact:"Adicionar Contato",addExpense:"Adicionar Despesa",addFamilyMember:"Adicionar Membro Familiar",addOperativePlan:"",backToPatients:"Voltar para Lista de Pacientes",download:"",editOperativePlan:"",newAppointment:"Novo Compromisso",newImaging:"Nova Imagem",newLab:"Novo Laboratório",newMedication:"Nova Medicação",newPatient:"+ novo paciente",newPhoto:"Nova Foto",newVisit:"Nova Visita",patientCheckIn:"",scheduleSurgery:""},labels:{admissionDate:"Data de Admissão",admit:"Admitir",bloodType:"Tipo Sanguíneo",caption:"",civilStatus:"Estado Civil",clinic:"Site(Filial) da Clínica",contacts:"",cost:"Custo",dateOfBirth:"Data de Nascimento",dateProcessed:"Data de Processamento",dischargeDate:"Data de Pagamento",dob:"DatNasc",education:"Educação",email:"Email",externalPatientId:"ID de Paciente Externo",firstName:"Primeiro Nome",income:"Renda",insurance:"Seguro",lastName:"Último Nome",middleName:"Nome do meio",monthlyCost:"Custo Mensal",occupation:"Ocupação",operativePlan:"",parent:"Responsável Legal",patientDays:"Dias do Paciente",patientType:"Tipo de Paciente",patientTypeCharity:"Caridade",patientTypePrivate:"Privado",phone:"Telefone",placeOfBirth:"Local de Nascimento",primaryDiagnosis:"Diagnósticos Primários",referredBy:"Indicado Por",referredDate:"Data de Indicação",relationship:"Relação com Paciente",relationships:"Relação",religion:"Religião",secondaryDiagnosis:"Diagnósticos Secundários",sex:"Sexo",sexNotEntered:"",sources:"Fontes",status:"Situação do Paciente",totalMontlyExpense:"Total de Despesas Mensais"},messages:{areYouSureDelete:"Você tem certeza que deseja excluir este(a) {{object}}?",createNewPatient:"Criar novos registro de paciente?",deletingPatient:"",noPatientsFound:"Nenhum paciente encontrado.",notFoundQuickAdd:"O paciente {{patientFullName}} não pode ser encontrato. Se você deseja cadastras um novo paciente, preencha as informações abaixo. Caso contrário clique em Cancelar para voltar.",photoFileRequired:"",savedPatient:"O registro de paciente para {{displayName}} foi salvo."},navigation:{appointments:"Compromissos",general:"Geral",history:"Histórico",imaging:"Imagem",labs:"Laboratórios",medication:"Medicação",photos:"Fotos",socialWork:"Assitência Social",visits:"Visitas"},notes:{newNote:"Nova Nota para",onBehalfOfCopy:"em nome de",onBehalfOfLabel:"Em Nome de",pleaseSelectAVisit:"Por favor selecione uma visita",updateNote:"Atualizando Nota de"},titles:{addContact:"",addPhoto:"Adicionar Foto",additionalContacts:"Contatos Adicionais",admissionsDetail:"",admissionsSummary:"",admittedPatients:"",delete:"Excluir Paciente",deleteContact:"Excluir Contato",deleteExpense:"Excluir Despesa",deleteFamilyMember:"Excluir Membro Familiar",deletePatientRecord:"",deletePhoto:"Excluir Foto",diagnosticTesting:"",dischargesDetail:"",dischargesSummary:"",edit:"Editar Paciente",editPhoto:"Editar Foto",expenses:"Despesas",familyInfo:"Informação Familiar",familyInformation:"Informação Familiar",new:"Novo Paciente",outpatientsForDate:"",patient:"Relatório de Paciente",patientListing:"Lista de Pacientes",patientReport:"",patientStatus:"",proceduresDetail:"",proceduresSummary:"",savedPatient:"Paciente Salvo",socialWork:"Despesa",todaysOutpatients:"",totalPatientDays:"",totalPatientDaysDetailed:"",visit:""}},print:{invoice:{labels:{billedBy:"Faturado por:",billedDate:"Data de Faturamento:",dateAdmitted:"ADMITIDO:",dateDischarged:"PAGAMENTO:",dischargeNotes:"Notas de Pagamento:",patientAddress:"ENDEREÇO:",patientAge:"IDADE:",patientId:"PACIENTE #:",patientName:"NOME DO PACIENTE:",remarks:"Observações:",spacer:"__________________________________________"},messages:{whereConducted:"foram deduzidos durante minha internação"},titles:{billingStatement:"DECLARAÇÃO DO FATURAMENTO",patientMember:"Paciente-Membro",patients:"DO PACIENTE",relContact:"Relações/Contato"}}},procedures:{buttons:{addMedication:"Adicionar Medicação"},labels:{medicationUsed:"Medicação Usada"},messages:{saved:"O registro de procedimento foi salvo."},titles:{addChargeItem:"Adicionar Item de Cobrança",addMedicationUsed:"Adicionar Medicação Usada",deleteChargeItem:"Excluir Item de Cobrança",deleteMedicationUsed:"Excluir Medicação Usada",edit:"Editar Procedimento",editChargeItem:"Editar Item de Cobrança",editMedicationUsed:"Editar Medicação Usada",medicationUsed:"Medicação Usada",new:"Novo Procedimento",saved:"Procedimento Salvo"}},reports:{labels:{admissionDate:"",allProcedures:"",completedBy:"",dischargeDate:"",examiner:"",images:"",labs:"",location:"",medications:"",nextAppointment:"",nextAppointments:"",notes:{author:"",date:"",title:""},operativePlan:{description:"",instructions:"",procedures:"",title:""},primaryDiagnosis:"",procedures:"",secondaryDiagnosis:"",visitDate:"",visitType:""},messages:{delete:"",saved:""},titles:{dischargeReport:"",newDischargeReport:"",newOPDReport:"",opdReport:"",saved:""}},user:{plusNewUser:"+ novo usuário",usersPageTile:"Lista de Usuários"},visits:{buttons:{addDiagnosis:"Adicionar Diagnóstico",checkIn:"Entrada",checkOut:"",discharge:"",newAppointment:"Novo Compromisso",newDischargeReport:"",newOPDReport:"",newProcedure:"Novo Procedimento",newVitals:"Novos Sinais Vitais"},labels:{appointment:"",authoredBy:"Autorizado Por",checkInTime:"",checkOutTime:"",createNewPatient:"",diagnosis:"Diagnósticos",examiner:"Examinador",finalDiagnosis:"Diagnósticos de Finais/Faturamento",haveAppointment:"",haveDoneOrders:"",noAppointment:"",ordersDone:"",ordersNotDone:"",patientToCheckIn:"",procedure:"Procedimentos",procedureDate:"",reasonForVisit:"",reportType:"",status:"Situação de Visita",statusAdmitted:"",statusCheckedIn:"",statusCheckedOut:"",statusDischarged:"",visitDate:"",visitInformation:"Imformação de Visita",visitType:"Tipo de Visita"},messages:{checkOut:"",checkedOut:"",discharged:"",patientCheckedIn:"",patientCreatedAndCheckedIn:"",visitAndPatientSaved:"",visitSaved:""},navigation:{charges:"",notes:"",orders:"",procedures:"",reports:"",vitals:""},titles:{additionalDiagnoses:"Diagnósticos Adicionais",checkOut:"",checkedIn:"",checkedOut:"",discharged:"",editVisit:"",newVisit:"",patientCheckIn:"",visitSaved:""}},vitals:{labels:{dateRecorded:"Data de Gravação",dbp:"PAD",heartRate:"Frequência Cardíaca",height:"Altura",respiratoryRate:"Frequência Respiratória",sbp:"PAS",temperature:"Temperatura",weight:"Peso"}}}}),define("hospitalrun/locales/ru/translations",["exports"],function(e){e.default={admin:{address:{address1Label:"",address2Label:"",address3Label:"",address4Label:"",addressLabel:"",editTitle:"",include1Label:"",include2Label:"",include3Label:"",include4Label:"",messages:{addressSaved:""},newTitle:"",titles:{optionsSaved:""}},addressOptions:"",customForms:{buttons:{addField:"",moveDown:"",moveUp:"",newForm:"",preview:""},labels:{alwaysInclude:"",checkbox:"",colSpan:"",columns:"",customForm:"",dischargeReportFormType:"",formName:"",formType:"",incidentFormType:"",includeOtherOption:"",labFormType:"",label:"",newForm:"",opdReportFormType:"",operativePlanFormType:"",otherOptionLabel:"",patientFormType:"",property:"",radio:"",select:"",socialworkFormType:"",text:"",textarea:"",visitFormType:""},messages:{formSaved:""},titles:{checkboxValues:"",customForms:"",deleteForm:"",dropDownValues:"",editCustomForm:"",fields:"",formSaved:"",newCustomForm:"",radioValues:""}},header:{editTitle:"",facilityName:"",headerLabel:"",headerLine1:"",headerLine2:"",headerLine3:"",logoURL:"",messages:{headerSaved:""},newTitle:"",titles:{optionsSaved:""}},loadDb:"",loaddb:{displayAlertMessage:"",displayAlertTitle:"",editTitle:"",errorDisplayAlertMessage:"",errorDisplayAlertTitle:"",progressMessage:"",progressTitle:""},lookup:{aisleLocationList:"",alertImportListMessage:"",alertImportListSaveMessage:"",alertImportListSaveTitle:"",alertImportListTitle:"",alertImportListUpdateMessage:"",alertImportListUpdateTitle:"",anesthesiaTypes:"",anesthesiologists:"",billingCategories:"",clinicList:"",countryList:"",cptCodeList:"",diagnosisList:"",edit:{template:{addTitle:"",editTitle:"",labelTitle:"",updateButtonTextAdd:"",updateButtonTextUpdate:""}},expenseAccountList:"",imagingPricingTypes:"",incidentDepartments:"",inventoryTypes:"",labPricingTypes:"",pageTitle:"",patientStatusList:"",physicianList:"",procedureList:"",procedureLocations:"",procedurePricingTypes:"",radiologists:"",titles:{deleteLookupValue:""},unitTypes:"",vendorList:"",visitLocationList:"",visitTypes:"",wardPricingTypes:"",warehouseList:""},lookupLists:"",roles:{capability:{addAllergy:"",addAppointment:"",addBillingDiagnosis:"",addCharge:"",addDiagnosis:"",addImaging:"",addIncident:"",addIncidentCategory:"",addInventoryItem:"",addInventoryPurchase:"",addInventoryRequest:"",addInvoice:"",addLab:"",addMedication:"",addNote:"",addOperationReport:"",addOperativePlan:"",addPatient:"",addPayment:"",addPhoto:"",addPricing:"",addPricingProfile:"",addProcedure:"",addSocialwork:"",addVisit:"",addVitals:"",adjustInventoryLocation:"",admin:"",admitPatient:"",appointments:"",billing:"",completeImaging:"",completeLab:"",defineUserRoles:"",deleteAppointment:"",deleteDiagnosis:"",deleteImaging:"",deleteIncident:"",deleteIncidentCategory:"",deleteInventoryItem:"",deleteInvoice:"",deleteLab:"",deleteMedication:"",deleteNote:"",deletePatient:"",deletePhoto:"",deletePricing:"",deletePricingProfile:"",deleteProcedure:"",deleteSocialwork:"",deleteVisit:"",deleteVitals:"",dischargePatient:"",editInvoice:"",fulfillInventory:"",fulfillMedication:"",generateIncidentReport:"",imaging:"",incident:"",inventory:"",invoices:"",labs:"",loadDb:"",manageIncidents:"",medication:"",overrideInvoice:"",patientReports:"",patients:"",pricing:"",updateConfig:"",visits:""},messages:{roleSaved:""},titles:{roleSaved:""}},userRoles:"",users:"",visitForms:{labels:{followup:"",form:"",initial:"",visitType:""},titles:{visitForms:""}},workflow:{admissionDepositLabel:"",clinicPrepaymentLabel:"",editTitle:"",followupPrepaymentLabel:"",messages:{optionsSaved:""},newTitle:"",outpatientImagingLabel:"",outpatientLabLabel:"",outpatientMedicationLabel:"",titles:{optionsSaved:""},workflowLabel:""}},alerts:{errorExclamation:"",pleaseWait:"",reportError:"",warningExclamation:""},allergies:{buttons:{addAllergy:""},labels:{allergyName:"",patientAllergy:""},titles:{addAllergy:"",editAllergy:""}},application:{messages:{sessionExpired:""},titles:{sessionExpired:""}},appointments:{buttons:{newButton:"",scheduleSurgery:""},calendarTitle:"",currentScreenTitle:"",editTitle:"",labels:{noLocation:"",selectedStartingDate:""},messages:{appointmentSaved:"",endTimeLaterThanStart:""},missed:"",newTitle:"",searchTitle:"",sectionTitle:"",thisWeek:"",titles:{appointmentSaved:"",editSurgicalAppointment:"",newSurgicalAppointment:"",theaterSchedule:""},todayTitle:""},billing:{alerts:{noInvoiceFound:"",noPricingItems:"",noPricingProfiles:""},buttons:{addOverride:"",createInvoice:""},labels:{actualCharges:"",discountAmount:"",discountPercentage:"",externalInvoiceNumber:"",hmoCom:"",insurance:"",paymentProfile:"",paymentsDeposits:"",pricingPanelOverrides:"",pricingProfile:""}},buttons:{add:"Добавить",addItem:"",addLineItem:"",addValue:"",addVisit:"",allRequests:"",barcode:"",cancel:"Отметить",clear:"",close:"",complete:"Готово",delete:"",dispense:"",edit:"",filter:"",fulfill:"",import:"",loadFile:"",newItem:"",newNote:"",newRequest:"",newRequestPlus:"",newUser:"",ok:"Ок",remove:"",returnButton:"Вернутся",search:"",showAll:"",showFewer:"",update:"Обновить"},components:{chargesByTypeTab:{charges:""},customFormManager:{buttons:{
+addForm:""}},dateTimePicker:{amHour:"",midnight:"",noon:"",pmHour:""},imageUpload:{messages:{selectValidImageFile:""}},operativeProcedures:{buttons:{addProcedure:""},labels:{procedure:""},titles:{procedures:""}},patientOrders:{buttons:{newImaging:"",newLab:"",newMedication:""},labels:{imagingOrderType:"",labOrderType:"",medicationOrderType:"",orderType:""}},priceList:{charges:""},quantityCalc:{result:""},quantityConv:{conversion:"",unit:""},sortableColumn:{labels:{selectAll:""}},takePhoto:{camera:"",how:"",labels:{takeAPicture:"",uploadAFile:""},photo:"",preview:"",takePhoto:"",uploadFile:""},upcomingAppointments:{labels:{date:"",location:"",type:"",with:""},titles:{upcomingAppointments:""}}},customForms:{buttons:{addForm:""},labels:{formToAdd:""},titles:{addCustomForm:""}},dashboard:{setup:"",title:"Что вы хотите сделать?"},dates:{long:"",longOmitDays:"",longOmitDaysPlural:"",longOmitDaysYears:"",longOmitYears:"",longPlural:"",short:"",shortOmitYears:""},diagnosis:{labels:{activeDiagnosis:"",date:"",diagnosis:"",secondaryDiagnosis:""},titles:{addDiagnosis:"",editDiagnosis:""}},errors:{accepted:"",blank:"",confirmation:"",empty:"",equalTo:"",even:"",exclusion:"",greaterThan:"",greaterThanOrEqualTo:"",inclusion:"",invalid:"",invalidNumber:"",lessThan:"",lessThanOrEqualTo:"",notANumber:"",notAnInteger:"",odd:"",otherThan:"",present:"",result:"",tooLong:"",tooShort:"",wrongLength:""},headings:{chargedItems:""},imaging:{alerts:{completedMessage:"Запрос на визуализацию удовлетворён.",completedTitle:"Визуализация выполнена",savedMessage:"Запрос на визуализацию сохранён.",savedTitle:"Запрос сохранён"},buttons:{newButton:"+ новый запрос"},labels:{addNewVisit:"--Добавить новый тип осмотра--",radiologist:"Радиолог"},messages:{noCompleted:"Не найдено выполненых запросов."},pageTitle:"Запросы на визуализацию",sectionTitle:"Визуализация",titles:{completedImaging:"Выполненые запросы",editTitle:"Редактировать запрос на визуализацию",newTitle:"Новый запрос на визуализацию"}},incident:{buttons:{add:"",addForm:"",addItem:"",cancel:"",delete:"",download:"",edit:"",export:"",generateRep:"",newAttachment:"",newCategory:"",newIncident:"",newNote:""},labels:{actions:"",addedBy:"",category:"",categoryItem:"",date:"",dateRecorded:"",department:"",description:"",endDate:"",givenBy:"",howToAddAttachment:"",incidentDate:"",incidentId:"",item:"",lastUpdated:"",note:"",patientId:"",patientImpacted:"",reportType:"",reportedBy:"",reportedDate:"",reportedTo:"",sentinelEvent:"",startDate:"",status:"",statusActive:"",statusClosed:"",statusFollowup:"",statusReported:"",title:"",total:"",updatedBy:""},messages:{attachmentFileRequired:"",createNew:"",createNewIncidentCategory:"",fillIn:"",incidentCategorySaved:"",noClosedIncidents:"",noIncidentCategoriesFound:"",noIncidents:"",saved:"",selectExistingPatient:""},titles:{addAttachment:"",addCategoryItem:"",addNote:"",attachments:"",closed:"",current:"",deleteAttachment:"",deleteIncident:"",deleteIncidentCategory:"",deleteItem:"",deleteNote:"",editAttachment:"",editIncident:"",editIncidentCategory:"",editNote:"",general:"",history:"",incidentCategories:"",incidentCategoryItem:"",incidentCategoryName:"",incidentCategorySaved:"",incidentSaved:"",incidents:"",incidentsByCategory:"",incidentsByDepartment:"",newIncident:"",newIncidentCategory:"",notes:"",reports:""}},inventory:{edit:{cost:"",delivered:"",location:"",prescription:"",pulled:"",quantity:"",reason:"",returned:"",transferredFrom:"",transferredTo:""},labels:{action:"",add:"",addAdjustmentType:"",adjust:"",adjustmentDate:"",adjustmentFor:"",adjustmentType:"",aisle:"",aisleLocation:"",allInventory:"",allItems:"",availableQuantity:"",billTo:"",consumePurchases:"",consumptionRate:"",cost:"",costPerUnit:"",crossReference:"",currentQuantity:"",dateCompleted:"",dateEffective:"",dateEnd:"",dateReceived:"",dateStart:"",dateTransferred:"",daysLeft:"",deleteItem:"",deliveryAisle:"",deliveryLocation:"",details:"",distributionUnit:"",editItem:"",expense:"",expirationDate:"",fulfillRequest:"",fulfillRequestNow:"",gift:"",giftInKindNo:"",giftInKindYes:"",giftUsage:"",inventoryConsumed:"",inventoryItem:"",inventoryObsolence:"",invoiceItems:"",invoiceLineItem:"",invoiceNumber:"",item:"",itemNumber:"",items:"",location:"",locations:"",markAsConsumed:"",name:"",newItem:"",originalQuantity:"",print:"",printBarcode:"",printer:"",pullFrom:"",purchaseCost:"",purchaseInfo:"",purchases:"",quantity:"",quantityAvailable:"",quantityOnHand:"",quantityRequested:"",rank:"",reason:"",remove:"",removeAdjustmentType:"",reorderPoint:"",requestedItems:"",returnAdjustmentType:"",returnToVendorAdjustmentType:"",salePricePerUnit:"",save:"",serialNumber:"",total:"",totalCost:"",totalReceived:"",transaction:"",transactions:"",transfer:"",transferFrom:"",transferTo:"",transferToAisle:"",unit:"",unitCost:"",vendor:"",vendorItemNumber:"",writeOffAdjustmentType:"",xref:""},messages:{adjust:"",createRequest:"Создать новый запрос?",itemNotFound:"",loading:"",noItems:"",noRequests:"Запросов не найдено.",purchaseSaved:"",quantity:"",removeItem:"",removeItemRequest:"",requestFulfilled:"",requestUpdated:"",warning:""},reports:{adjustment:"",daysSupply:"",expenseDetail:"",expenseSum:"",expiration:"",export:"",fields:"",finance:"",generate:"",invLocation:"",invValuation:"",purchaseDetail:"",purchaseSum:"",reportType:"",rows:{adjustments:"",adjustmentsTotal:"",balanceBegin:"",balanceEnd:"",category:"",consumed:"",consumedGik:"",consumedGikTotal:"",consumedPuchases:"",consumedPurchasesTotal:"",consumedTotal:"",errInFinSum:"",errInFindPur:"",errInFindReq:"",expensesFor:"",noAccount:"",subtotal:"",subtotalFor:"",total:"",totalFor:"",totalPurchases:"",transfer1:"",trasnfer2:""},stockTransferDetail:"",stockTransferSum:"",stockUsageDetail:"",stockUsageSum:"",titleDateRange:"",titleSingleDate:""},titles:{addPurchase:"",addRequest:"",adjustment:"",editPurchase:"",editRequest:"",inventoryItem:"",inventoryReport:"",purchaseSaved:"",quickAddTitle:"",removeItem:"",requestFulfilled:"",requestUpdated:"",transfer:"",warning:""}},labels:{action:"Действие",actions:"Действия",addNewOutpatientVisit:"",address:"",age:"Возраст",allDay:"",amount:"",anesthesia:"",assisting:"",balanceDue:"",billDate:"",billTo:"",category:"",completed:"Выполненые",country:"",cptcode:"",creditTo:"",date:"",dateCompleted:"Дата Выполнения",dateOfBirth:"",dateOfBirthShort:"",datePaid:"",dateRequested:"Дата Запроса",delete:"",deleteRequest:"",deleteUser:"",department:"",description:"",discount:"",displayName:"",docRead:"",docWritten:"",edit:"Редактировать",editUser:"",email:"",endDate:"",endTime:"",excess:"",expenseTo:"",fileLoadSuccessful:"",fileName:"",fileToLoad:"",fulfill:"Отправить",fulfillRequest:"",fulfillRequestNow:"",fulfilled:"",grandTotal:"",id:"Номер",imageOrders:"",imagingType:"Тип визуализации",importFile:"",invoiceId:"",labOrders:"",lineItems:"",loading:"",location:"",lookupType:"",medication:"",name:"Имя",newUser:"",note:"",notes:"Заметки",number:"",on:"",password:"",patient:"Пациент",payments:"",physician:"",prescriber:"",prescription:"",prescriptionDate:"",price:"",print:"",procedures:"",provider:"",pullFrom:"",quantity:"Количество",remarks:"",requestedBy:"Запрошен",requestedOn:"Запрошен",requests:"Ожидающие",result:"Результат",results:"Результаты",role:"",search:"",sex:"Пол",startDate:"",startTime:"",status:"",takenBy:"",total:"",type:"",userCanAddNewValue:"",username:"",value:"",view:"",visit:"Осмотр",with:""},labs:{alerts:{requestCompletedMessage:"",requestCompletedTitle:"",requestSavedMessage:"",requestSavedTitle:""},buttons:{newButton:""},completedTitle:"",deleteTitle:"",editTitle:"",labels:{addNewVisit:"",labType:""},messages:{createNewRecord:"",noCompleted:"",noItemsFound:""},newTitle:"",requestsTitle:"",sectionTitle:""},loading:{messages:{0:"",1:"",2:"",3:"",4:"",5:"",6:"",7:"",8:"",9:"",10:"",11:""},progressBar:{progress:""}},login:{labels:{password:"Пароль",signIn:"Войти",username:"Имя пользователя"},messages:{error:"Неверное имя пользователя или пароль.",signIn:"войдите в систему"}},medication:{alerts:{fulfilledTitle:"",returnedMessage:"",returnedTitle:"",savedMessage:"",savedTitle:""},buttons:{dispenseMedication:"",newButton:"",returnMedication:""},labels:{adjustmentDate:"",creditToAccount:"",quantityDispensed:"",quantityDistributed:"",quantityRequested:"",quantityToReturn:"",refills:"",returnAisle:"",returnLocation:"",returnReason:""},messages:{createNew:""},pageTitle:"",returnMedication:"",sectionTitle:"",titles:{completedMedication:"",editMedicationRequest:"",newMedicationRequest:""}},messages:{createNewRecord:"Создать новую запись?",createNewUser:"",delete:"",delete_plural:"",delete_singular:"",forAuthorizedPersons:"Этот отчет предназначен только для уполномоченных лиц.",newPatientHasToBeCreated:"",noHistoryAvailable:"",noItemsFound:"Ничего не найдено.",noNotesAvailable:"",noUsersFound:"",onBehalfOf:"",reportError:"",requiredFieldsCorrectErrors:"",saveActionException:"",sorry:"",userHasBeenSaved:"",userSaved:""},models:{appointment:{labels:{allDay:"",appointmentDate:"",appointmentType:"",endDate:"",location:"",notes:"",patient:"",provider:"",startDate:"",status:"",type:""},names:{plural:"",singular:""}},attachment:{names:{plural:"",singular:""}},form:{names:{plural:"",singular:""}},imaging:{names:"",request:{plural:"",singular:""}},incident:{names:{plural:"",singular:""}},item:{names:{plural:"",singular:""}},lab:{names:{plural:"",singular:""},request:{plural:"",singular:""}},medication:{names:{plural:"",singular:""},request:{plural:"",singular:""}},note:{names:{plural:"",singular:""}},patient:{labels:{name:""},names:{singular:""}},procedure:{names:{plural:"",singular:""}},user:{names:{plural:"",singular:""}},visit:{names:{plural:"",singular:""}},vital:{names:{plural:"",singular:""}}},navigation:{about:"",actions:{login:"",logout:""},administration:"",billing:"",imaging:"",incident:"",inventory:"",labs:"",medication:"",patients:"",scheduling:"",subnav:{actions:"",addAppointment:"",addressFields:"",admittedPatients:"",appointmentSearch:"",appointmentsCalendar:"",appointmentsThisWeek:"",completed:"",currentIncidents:"",customForms:"",dispense:"",history:"",incidentCategories:"",inventoryReceived:"",invoices:"",items:"",loadDB:"",lookupLists:"",missedAppointments:"",newIncident:"",newInvoice:"",newPatient:"",newRequest:"",newUser:"",outpatient:"",patientListing:"",priceProfiles:"",prices:"",printHeader:"",reports:"",requests:"",returnMedication:"",scheduleSurgery:"",theaterSchedule:"","today'sAppointments":"",userRoles:"",users:"",workflow:""}},operationReport:{labels:{additionalNotes:"",assistant:"",caseComplexity:"",operationDescription:"",preOpPrimaryDiagnosis:"",preOpSecondaryDiagnosis:"",surgeon:"",surgeryDate:""},messages:{reportSaved:""},titles:{editTitle:"",newTitle:"",reportSaved:""}},operativePlan:{buttons:{completePlan:""},labels:{additionalNotes:"",admissionInstructions:"",caseComplexity:"",completedStatus:"",droppedStatus:"",operationDescription:"",plannedStatus:"",status:"",surgeon:""},messages:{planCompleted:"",planSaved:""},titles:{editTitle:"",newTitle:"",planCompleted:"",planSaved:""}},patients:{buttons:{addContact:"",addExpense:"",addFamilyMember:"",addOperativePlan:"",backToPatients:"",download:"",editOperativePlan:"",newAppointment:"",newImaging:"",newLab:"",newMedication:"",newPatient:"",newPhoto:"",newVisit:"",patientCheckIn:"",scheduleSurgery:""},labels:{admissionDate:"",admit:"",bloodType:"",caption:"",civilStatus:"",clinic:"",contacts:"",cost:"",dateOfBirth:"",dateProcessed:"",dischargeDate:"",dob:"",education:"",email:"",externalPatientId:"",firstName:"",income:"",insurance:"",lastName:"",middleName:"",monthlyCost:"",occupation:"",operativePlan:"",parent:"",patientDays:"",patientType:"",patientTypeCharity:"",patientTypePrivate:"",phone:"",placeOfBirth:"",primaryDiagnosis:"",referredBy:"",referredDate:"",relationship:"",relationships:"",religion:"",secondaryDiagnosis:"",sex:"",sexNotEntered:"",sources:"",status:"",totalMontlyExpense:""},messages:{areYouSureDelete:"",createNewPatient:"",deletingPatient:"",noPatientsFound:"",notFoundQuickAdd:"",photoFileRequired:"",savedPatient:""},navigation:{appointments:"",general:"",history:"",imaging:"",labs:"",medication:"",photos:"",socialWork:"",visits:""},notes:{newNote:"",onBehalfOfCopy:"",onBehalfOfLabel:"",pleaseSelectAVisit:"",updateNote:""},titles:{addContact:"",addPhoto:"",additionalContacts:"",admissionsDetail:"",admissionsSummary:"",admittedPatients:"",delete:"",deleteContact:"",deleteExpense:"",deleteFamilyMember:"",deletePatientRecord:"",deletePhoto:"",diagnosticTesting:"",dischargesDetail:"",dischargesSummary:"",edit:"",editPhoto:"",expenses:"",familyInfo:"",familyInformation:"",new:"",outpatientsForDate:"",patient:"",patientListing:"",patientReport:"",patientStatus:"",proceduresDetail:"",proceduresSummary:"",savedPatient:"",socialWork:"",todaysOutpatients:"",totalPatientDays:"",totalPatientDaysDetailed:"",visit:""}},print:{invoice:{labels:{billedBy:"",billedDate:"",dateAdmitted:"",dateDischarged:"",dischargeNotes:"",patientAddress:"",patientAge:"",patientId:"",patientName:"",remarks:"",spacer:""},messages:{whereConducted:""},titles:{billingStatement:"",patientMember:"",patients:"",relContact:""}}},procedures:{buttons:{addMedication:""},labels:{medicationUsed:""},messages:{saved:""},titles:{addChargeItem:"",addMedicationUsed:"",deleteChargeItem:"",deleteMedicationUsed:"",edit:"",editChargeItem:"",editMedicationUsed:"",medicationUsed:"",new:"",saved:""}},reports:{labels:{admissionDate:"",allProcedures:"",completedBy:"",dischargeDate:"",examiner:"",images:"",labs:"",location:"",medications:"",nextAppointment:"",nextAppointments:"",notes:{author:"",date:"",title:""},operativePlan:{description:"",instructions:"",procedures:"",title:""},primaryDiagnosis:"",procedures:"",secondaryDiagnosis:"",visitDate:"",visitType:""},messages:{delete:"",saved:""},titles:{dischargeReport:"",newDischargeReport:"",newOPDReport:"",opdReport:"",saved:""}},user:{plusNewUser:"",usersPageTile:""},visits:{buttons:{addDiagnosis:"",checkIn:"",checkOut:"",discharge:"",newAppointment:"",newDischargeReport:"",newOPDReport:"",newProcedure:"",newVitals:""},labels:{appointment:"",authoredBy:"",checkInTime:"",checkOutTime:"",createNewPatient:"",diagnosis:"",examiner:"",finalDiagnosis:"",haveAppointment:"",haveDoneOrders:"",noAppointment:"",ordersDone:"",ordersNotDone:"",patientToCheckIn:"",procedure:"",procedureDate:"",reasonForVisit:"",reportType:"",status:"",statusAdmitted:"",statusCheckedIn:"",statusCheckedOut:"",statusDischarged:"",visitDate:"",visitInformation:"",visitType:""},messages:{checkOut:"",checkedOut:"",discharged:"",patientCheckedIn:"",patientCreatedAndCheckedIn:"",visitAndPatientSaved:"",visitSaved:""},navigation:{charges:"",notes:"",orders:"",procedures:"",reports:"",vitals:""},titles:{additionalDiagnoses:"",checkOut:"",checkedIn:"",checkedOut:"",discharged:"",editVisit:"",newVisit:"",patientCheckIn:"",visitSaved:""}},vitals:{labels:{dateRecorded:"",dbp:"",heartRate:"",height:"",respiratoryRate:"",sbp:"",temperature:"",weight:""}}}}),define("hospitalrun/locales/tr/translations",["exports"],function(e){e.default={admin:{address:{address1Label:"",address2Label:"",address3Label:"",address4Label:"",addressLabel:"",editTitle:"",include1Label:"",include2Label:"",include3Label:"",include4Label:"",messages:{addressSaved:""},newTitle:"",titles:{optionsSaved:""}},addressOptions:"",customForms:{buttons:{addField:"",moveDown:"",moveUp:"",newForm:"",preview:""},labels:{alwaysInclude:"",checkbox:"",colSpan:"",columns:"",customForm:"",dischargeReportFormType:"",formName:"",formType:"",incidentFormType:"",includeOtherOption:"",labFormType:"",label:"",newForm:"",opdReportFormType:"",operativePlanFormType:"",otherOptionLabel:"",patientFormType:"",property:"",radio:"",select:"",socialworkFormType:"",text:"",textarea:"",visitFormType:""},messages:{formSaved:""},titles:{checkboxValues:"",customForms:"",deleteForm:"",dropDownValues:"",editCustomForm:"",fields:"",formSaved:"",newCustomForm:"",radioValues:""}},header:{editTitle:"",facilityName:"",headerLabel:"",headerLine1:"",headerLine2:"",headerLine3:"",logoURL:"",messages:{headerSaved:""},newTitle:"",titles:{optionsSaved:""}},loadDb:"",loaddb:{displayAlertMessage:"",displayAlertTitle:"",editTitle:"",errorDisplayAlertMessage:"",errorDisplayAlertTitle:"",progressMessage:"",progressTitle:""},lookup:{aisleLocationList:"",alertImportListMessage:"",alertImportListSaveMessage:"",alertImportListSaveTitle:"",alertImportListTitle:"",alertImportListUpdateMessage:"",alertImportListUpdateTitle:"",anesthesiaTypes:"",anesthesiologists:"",billingCategories:"",clinicList:"",countryList:"",cptCodeList:"",diagnosisList:"",edit:{template:{addTitle:"",editTitle:"",labelTitle:"",updateButtonTextAdd:"",updateButtonTextUpdate:""}},expenseAccountList:"",imagingPricingTypes:"",incidentDepartments:"",inventoryTypes:"",labPricingTypes:"",pageTitle:"",patientStatusList:"",physicianList:"",procedureList:"",procedureLocations:"",procedurePricingTypes:"",radiologists:"",titles:{deleteLookupValue:""},unitTypes:"",vendorList:"",visitLocationList:"",visitTypes:"",wardPricingTypes:"",warehouseList:""},lookupLists:"",roles:{capability:{addAllergy:"",addAppointment:"",addBillingDiagnosis:"",addCharge:"",addDiagnosis:"",addImaging:"",addIncident:"",addIncidentCategory:"",addInventoryItem:"",addInventoryPurchase:"",addInventoryRequest:"",addInvoice:"",addLab:"",addMedication:"",addNote:"",addOperationReport:"",addOperativePlan:"",addPatient:"",addPayment:"",addPhoto:"",addPricing:"",addPricingProfile:"",addProcedure:"",addSocialwork:"",addVisit:"",addVitals:"",adjustInventoryLocation:"",admin:"",admitPatient:"",appointments:"",billing:"",completeImaging:"",completeLab:"",defineUserRoles:"",deleteAppointment:"",deleteDiagnosis:"",deleteImaging:"",deleteIncident:"",deleteIncidentCategory:"",deleteInventoryItem:"",deleteInvoice:"",deleteLab:"",deleteMedication:"",deleteNote:"",deletePatient:"",deletePhoto:"",deletePricing:"",deletePricingProfile:"",deleteProcedure:"",deleteSocialwork:"",deleteVisit:"",deleteVitals:"",dischargePatient:"",editInvoice:"",fulfillInventory:"",fulfillMedication:"",generateIncidentReport:"",imaging:"",incident:"",inventory:"",invoices:"",labs:"",loadDb:"",manageIncidents:"",medication:"",overrideInvoice:"",patientReports:"",patients:"",pricing:"",updateConfig:"",visits:""},messages:{roleSaved:""},titles:{roleSaved:""}},userRoles:"",users:"",visitForms:{labels:{followup:"",form:"",initial:"",visitType:""},titles:{visitForms:""}},workflow:{admissionDepositLabel:"",clinicPrepaymentLabel:"",editTitle:"",followupPrepaymentLabel:"",messages:{optionsSaved:""},newTitle:"",outpatientImagingLabel:"",outpatientLabLabel:"",outpatientMedicationLabel:"",titles:{optionsSaved:""},workflowLabel:""}},alerts:{errorExclamation:"",pleaseWait:"",reportError:"",warningExclamation:""},allergies:{buttons:{addAllergy:""},labels:{allergyName:"",patientAllergy:""},titles:{addAllergy:"",editAllergy:""}},application:{messages:{sessionExpired:""},titles:{sessionExpired:""}},appointments:{buttons:{newButton:"",scheduleSurgery:""},calendarTitle:"",currentScreenTitle:"",editTitle:"",labels:{noLocation:"",selectedStartingDate:""},messages:{appointmentSaved:"",endTimeLaterThanStart:""},missed:"",newTitle:"",searchTitle:"",sectionTitle:"",thisWeek:"",titles:{appointmentSaved:"",editSurgicalAppointment:"",newSurgicalAppointment:"",theaterSchedule:""},todayTitle:""},billing:{alerts:{noInvoiceFound:"",noPricingItems:"",noPricingProfiles:""},buttons:{addOverride:"",createInvoice:""},labels:{actualCharges:"",discountAmount:"",discountPercentage:"",externalInvoiceNumber:"",hmoCom:"",insurance:"",paymentProfile:"",paymentsDeposits:"",pricingPanelOverrides:"",pricingProfile:""}},buttons:{add:"Ekle",addItem:"",addLineItem:"",addValue:"",addVisit:"",allRequests:"",barcode:"",cancel:"Vazgeç",clear:"",close:"",complete:"Bitir",delete:"",dispense:"",edit:"",filter:"",fulfill:"",import:"",loadFile:"",newItem:"",newNote:"",newRequest:"",newRequestPlus:"",newUser:"",ok:"Tamam",remove:"",returnButton:"Geri Dön",search:"",showAll:"",showFewer:"",update:"Güncelle"},components:{chargesByTypeTab:{charges:""},customFormManager:{buttons:{addForm:""}},dateTimePicker:{amHour:"",midnight:"",noon:"",pmHour:""},imageUpload:{messages:{selectValidImageFile:""}},operativeProcedures:{buttons:{addProcedure:""},labels:{procedure:""},titles:{procedures:""}},patientOrders:{buttons:{newImaging:"",newLab:"",newMedication:""},labels:{imagingOrderType:"",labOrderType:"",medicationOrderType:"",orderType:""}},priceList:{charges:""},quantityCalc:{result:""},quantityConv:{conversion:"",unit:""},sortableColumn:{labels:{selectAll:""}},takePhoto:{camera:"",how:"",labels:{takeAPicture:"",uploadAFile:""},photo:"",preview:"",takePhoto:"",uploadFile:""},upcomingAppointments:{labels:{date:"",location:"",type:"",with:""},titles:{upcomingAppointments:""}}},customForms:{buttons:{addForm:""},labels:{formToAdd:""},titles:{addCustomForm:""}},dashboard:{setup:"",title:"Ne yapmak istersiniz?"},dates:{long:"",longOmitDays:"",longOmitDaysPlural:"",longOmitDaysYears:"",longOmitYears:"",longPlural:"",short:"",shortOmitYears:""},diagnosis:{labels:{activeDiagnosis:"",date:"",diagnosis:"",secondaryDiagnosis:""},titles:{addDiagnosis:"",editDiagnosis:""}},errors:{accepted:"",blank:"",confirmation:"",empty:"",equalTo:"",even:"",exclusion:"",greaterThan:"",greaterThanOrEqualTo:"",inclusion:"",invalid:"",invalidNumber:"",lessThan:"",lessThanOrEqualTo:"",notANumber:"",notAnInteger:"",odd:"",otherThan:"",present:"",result:"",tooLong:"",tooShort:"",wrongLength:""},headings:{chargedItems:""},imaging:{alerts:{completedMessage:"Görüntüleme talebi başarıyla tamamlandı.",completedTitle:"Görüntüleme Talebi Tamamlandı",savedMessage:"Görüntüleme Talebi başarıyla kaydedildi.",savedTitle:"Görüntüleme Talebi Kaydedildi"},buttons:{newButton:"+ yeni görüntüleme"},labels:{addNewVisit:"--Yeni Ziyaret Ekle--",radiologist:"Radyolog"},messages:{noCompleted:"Tamamlanmayan öğe bulunamadı."},pageTitle:"Görüntüleme talepleri",sectionTitle:"Görüntüleme",titles:{completedImaging:"Görüntüleme Tamamlandı",editTitle:"Görüntüleme Talebini Düzenle",newTitle:"Yeni Görüntüleme Talebi"}},incident:{buttons:{add:"",addForm:"",addItem:"",cancel:"",delete:"",download:"",edit:"",export:"",generateRep:"",newAttachment:"",newCategory:"",newIncident:"",newNote:""},labels:{actions:"",addedBy:"",category:"",categoryItem:"",date:"",dateRecorded:"",department:"",description:"",endDate:"",givenBy:"",howToAddAttachment:"",incidentDate:"",incidentId:"",item:"",lastUpdated:"",note:"",patientId:"",patientImpacted:"",reportType:"",reportedBy:"",reportedDate:"",reportedTo:"",sentinelEvent:"",startDate:"",status:"",statusActive:"",statusClosed:"",statusFollowup:"",statusReported:"",title:"",total:"",updatedBy:""},messages:{attachmentFileRequired:"",createNew:"",createNewIncidentCategory:"",fillIn:"",incidentCategorySaved:"",noClosedIncidents:"",noIncidentCategoriesFound:"",noIncidents:"",saved:"",selectExistingPatient:""},titles:{addAttachment:"",addCategoryItem:"",addNote:"",attachments:"",closed:"",current:"",deleteAttachment:"",deleteIncident:"",deleteIncidentCategory:"",deleteItem:"",deleteNote:"",editAttachment:"",editIncident:"",editIncidentCategory:"",editNote:"",general:"",history:"",incidentCategories:"",incidentCategoryItem:"",incidentCategoryName:"",incidentCategorySaved:"",incidentSaved:"",incidents:"",incidentsByCategory:"",incidentsByDepartment:"",newIncident:"",newIncidentCategory:"",notes:"",reports:""}},inventory:{edit:{cost:"",delivered:"",location:"",prescription:"",pulled:"",quantity:"",reason:"",returned:"",transferredFrom:"",transferredTo:""},labels:{action:"",add:"",addAdjustmentType:"",adjust:"",adjustmentDate:"",adjustmentFor:"",adjustmentType:"",aisle:"",aisleLocation:"",allInventory:"",allItems:"",availableQuantity:"",billTo:"",consumePurchases:"",consumptionRate:"",cost:"",costPerUnit:"",crossReference:"",currentQuantity:"",dateCompleted:"",dateEffective:"",dateEnd:"",dateReceived:"",dateStart:"",dateTransferred:"",daysLeft:"",deleteItem:"",deliveryAisle:"",deliveryLocation:"",details:"",distributionUnit:"",editItem:"",expense:"",expirationDate:"",fulfillRequest:"",fulfillRequestNow:"",gift:"",giftInKindNo:"",giftInKindYes:"",giftUsage:"",inventoryConsumed:"",inventoryItem:"",inventoryObsolence:"",invoiceItems:"",invoiceLineItem:"",invoiceNumber:"",item:"",itemNumber:"",items:"",location:"",locations:"",markAsConsumed:"",name:"",newItem:"",originalQuantity:"",print:"",printBarcode:"",printer:"",pullFrom:"",purchaseCost:"",purchaseInfo:"",purchases:"",quantity:"",quantityAvailable:"",quantityOnHand:"",quantityRequested:"",rank:"",reason:"",remove:"",removeAdjustmentType:"",reorderPoint:"",requestedItems:"",returnAdjustmentType:"",returnToVendorAdjustmentType:"",salePricePerUnit:"",save:"",serialNumber:"",total:"",totalCost:"",totalReceived:"",transaction:"",transactions:"",transfer:"",transferFrom:"",transferTo:"",transferToAisle:"",unit:"",unitCost:"",vendor:"",vendorItemNumber:"",writeOffAdjustmentType:"",xref:""},messages:{adjust:"",createRequest:"Yeni talep oluştur?",itemNotFound:"",loading:"",noItems:"",noRequests:"Talep bulunamadı",purchaseSaved:"",quantity:"",removeItem:"",removeItemRequest:"",requestFulfilled:"",requestUpdated:"",warning:""},reports:{adjustment:"",daysSupply:"",expenseDetail:"",expenseSum:"",expiration:"",export:"",fields:"",finance:"",generate:"",invLocation:"",invValuation:"",purchaseDetail:"",purchaseSum:"",reportType:"",rows:{adjustments:"",adjustmentsTotal:"",balanceBegin:"",balanceEnd:"",category:"",consumed:"",consumedGik:"",consumedGikTotal:"",consumedPuchases:"",consumedPurchasesTotal:"",consumedTotal:"",errInFinSum:"",errInFindPur:"",errInFindReq:"",expensesFor:"",noAccount:"",subtotal:"",subtotalFor:"",total:"",totalFor:"",totalPurchases:"",transfer1:"",trasnfer2:""},stockTransferDetail:"",stockTransferSum:"",stockUsageDetail:"",stockUsageSum:"",titleDateRange:"",titleSingleDate:""},titles:{addPurchase:"",addRequest:"",adjustment:"",editPurchase:"",editRequest:"",inventoryItem:"",inventoryReport:"",purchaseSaved:"",quickAddTitle:"",removeItem:"",requestFulfilled:"",requestUpdated:"",transfer:"",warning:""}},labels:{action:"İşlem",actions:"İşlemler",addNewOutpatientVisit:"",address:"",age:"Yaş",allDay:"",amount:"",anesthesia:"",assisting:"",balanceDue:"",billDate:"",billTo:"",category:"",completed:"Tamamlandı",country:"",cptcode:"",creditTo:"",date:"",dateCompleted:"Bitiş tarihi",dateOfBirth:"",dateOfBirthShort:"",datePaid:"",dateRequested:"Talep Tarihi",delete:"",deleteRequest:"",deleteUser:"",department:"",description:"",discount:"",displayName:"",docRead:"",docWritten:"",edit:"Düzenle",editUser:"",email:"",endDate:"",endTime:"",excess:"",expenseTo:"",fileLoadSuccessful:"",fileName:"",fileToLoad:"",fulfill:"Fulfill",fulfillRequest:"",fulfillRequestNow:"",fulfilled:"",grandTotal:"",id:"Id",imageOrders:"",imagingType:"Görüntüleme Tipi",importFile:"",invoiceId:"",labOrders:"",lineItems:"",loading:"",location:"",lookupType:"",medication:"",name:"Ad",newUser:"",note:"",notes:"Notlar",number:"",on:"",password:"",patient:"Hasta",payments:"",physician:"",prescriber:"",prescription:"",prescriptionDate:"",price:"",print:"",procedures:"",provider:"",pullFrom:"",quantity:"Miktar",remarks:"",requestedBy:"Talep sahibi",requestedOn:"Açık Talep",requests:"Talepler",result:"Sonuç",results:"Sonuçlar",role:"",search:"",sex:"Cinsiyet",startDate:"",startTime:"",status:"",takenBy:"",total:"",type:"",userCanAddNewValue:"",username:"",value:"",view:"",visit:"Ziyaret",with:""},labs:{alerts:{requestCompletedMessage:"",requestCompletedTitle:"",requestSavedMessage:"",requestSavedTitle:""},buttons:{newButton:""},completedTitle:"",deleteTitle:"",editTitle:"",labels:{addNewVisit:"",labType:""},messages:{createNewRecord:"",noCompleted:"",noItemsFound:""},newTitle:"",requestsTitle:"",sectionTitle:""},loading:{messages:{0:"",1:"",2:"",3:"",4:"",5:"",6:"",7:"",8:"",9:"",10:"",11:""},progressBar:{progress:""}},login:{labels:{password:"Parola",signIn:"Giriş yap",username:"Kullanıcı Adı"},messages:{error:"Kullanıcı adı veya parola hatalı.",signIn:"GİRİŞ YAPIN"}},medication:{alerts:{fulfilledTitle:"",returnedMessage:"",returnedTitle:"",savedMessage:"",savedTitle:""},buttons:{dispenseMedication:"",newButton:"",returnMedication:""},labels:{adjustmentDate:"",creditToAccount:"",quantityDispensed:"",quantityDistributed:"",quantityRequested:"",quantityToReturn:"",refills:"",returnAisle:"",returnLocation:"",returnReason:""},messages:{createNew:""},pageTitle:"",returnMedication:"",sectionTitle:"",titles:{completedMedication:"",editMedicationRequest:"",newMedicationRequest:""}},messages:{createNewRecord:"Yeni bir kayıt oluştur?",createNewUser:"",delete:"",delete_plural:"",delete_singular:"",forAuthorizedPersons:"Bu rapor yetkili kişiler içindir.",newPatientHasToBeCreated:"",noHistoryAvailable:"",noItemsFound:"Hiçbir öğe bulunamadı.",noNotesAvailable:"",noUsersFound:"",onBehalfOf:"",reportError:"",requiredFieldsCorrectErrors:"",saveActionException:"",sorry:"",userHasBeenSaved:"",userSaved:""},models:{appointment:{labels:{allDay:"",appointmentDate:"",appointmentType:"",endDate:"",location:"",notes:"",patient:"",provider:"",startDate:"",status:"",type:""},names:{plural:"",singular:""}},attachment:{names:{plural:"",singular:""}},form:{names:{plural:"",singular:""}},imaging:{names:"",request:{plural:"",singular:""}},incident:{names:{plural:"",singular:""}},item:{names:{plural:"",singular:""}},lab:{names:{plural:"",singular:""},request:{plural:"",singular:""}},medication:{names:{plural:"",singular:""},request:{plural:"",singular:""}},note:{names:{plural:"",singular:""}},patient:{labels:{name:""},names:{singular:""}},procedure:{names:{plural:"",singular:""}},user:{names:{plural:"",singular:""}},visit:{names:{plural:"",singular:""}},vital:{names:{plural:"",singular:""}}},navigation:{about:"",actions:{login:"",logout:""},administration:"",billing:"",imaging:"",incident:"",inventory:"",labs:"",medication:"",patients:"",scheduling:"",subnav:{actions:"",addAppointment:"",addressFields:"",admittedPatients:"",appointmentSearch:"",appointmentsCalendar:"",appointmentsThisWeek:"",completed:"",currentIncidents:"",customForms:"",dispense:"",history:"",incidentCategories:"",inventoryReceived:"",invoices:"",items:"",loadDB:"",lookupLists:"",missedAppointments:"",newIncident:"",newInvoice:"",newPatient:"",newRequest:"",newUser:"",outpatient:"",patientListing:"",priceProfiles:"",prices:"",printHeader:"",reports:"",requests:"",returnMedication:"",scheduleSurgery:"",theaterSchedule:"","today'sAppointments":"",userRoles:"",users:"",workflow:""}},operationReport:{labels:{additionalNotes:"",assistant:"",caseComplexity:"",operationDescription:"",preOpPrimaryDiagnosis:"",preOpSecondaryDiagnosis:"",surgeon:"",surgeryDate:""},messages:{reportSaved:""},titles:{editTitle:"",newTitle:"",reportSaved:""}},operativePlan:{buttons:{completePlan:""},labels:{additionalNotes:"",admissionInstructions:"",caseComplexity:"",completedStatus:"",droppedStatus:"",operationDescription:"",plannedStatus:"",status:"",surgeon:""},messages:{planCompleted:"",planSaved:""},titles:{editTitle:"",newTitle:"",planCompleted:"",planSaved:""}},patients:{buttons:{addContact:"",addExpense:"",addFamilyMember:"",addOperativePlan:"",backToPatients:"",download:"",editOperativePlan:"",newAppointment:"",newImaging:"",newLab:"",newMedication:"",newPatient:"",newPhoto:"",newVisit:"",patientCheckIn:"",scheduleSurgery:""},labels:{admissionDate:"",admit:"",bloodType:"",caption:"",civilStatus:"",clinic:"",contacts:"",cost:"",dateOfBirth:"",dateProcessed:"",dischargeDate:"",dob:"",education:"",email:"",externalPatientId:"",firstName:"",income:"",insurance:"",lastName:"",middleName:"",monthlyCost:"",occupation:"",operativePlan:"",parent:"",patientDays:"",patientType:"",patientTypeCharity:"",patientTypePrivate:"",phone:"",placeOfBirth:"",
+primaryDiagnosis:"",referredBy:"",referredDate:"",relationship:"",relationships:"",religion:"",secondaryDiagnosis:"",sex:"",sexNotEntered:"",sources:"",status:"",totalMontlyExpense:""},messages:{areYouSureDelete:"",createNewPatient:"",deletingPatient:"",noPatientsFound:"",notFoundQuickAdd:"",photoFileRequired:"",savedPatient:""},navigation:{appointments:"",general:"",history:"",imaging:"",labs:"",medication:"",photos:"",socialWork:"",visits:""},notes:{newNote:"",onBehalfOfCopy:"",onBehalfOfLabel:"",pleaseSelectAVisit:"",updateNote:""},titles:{addContact:"",addPhoto:"",additionalContacts:"",admissionsDetail:"",admissionsSummary:"",admittedPatients:"",delete:"",deleteContact:"",deleteExpense:"",deleteFamilyMember:"",deletePatientRecord:"",deletePhoto:"",diagnosticTesting:"",dischargesDetail:"",dischargesSummary:"",edit:"",editPhoto:"",expenses:"",familyInfo:"",familyInformation:"",new:"",outpatientsForDate:"",patient:"",patientListing:"",patientReport:"",patientStatus:"",proceduresDetail:"",proceduresSummary:"",savedPatient:"",socialWork:"",todaysOutpatients:"",totalPatientDays:"",totalPatientDaysDetailed:"",visit:""}},print:{invoice:{labels:{billedBy:"",billedDate:"",dateAdmitted:"",dateDischarged:"",dischargeNotes:"",patientAddress:"",patientAge:"",patientId:"",patientName:"",remarks:"",spacer:""},messages:{whereConducted:""},titles:{billingStatement:"",patientMember:"",patients:"",relContact:""}}},procedures:{buttons:{addMedication:""},labels:{medicationUsed:""},messages:{saved:""},titles:{addChargeItem:"",addMedicationUsed:"",deleteChargeItem:"",deleteMedicationUsed:"",edit:"",editChargeItem:"",editMedicationUsed:"",medicationUsed:"",new:"",saved:""}},reports:{labels:{admissionDate:"",allProcedures:"",completedBy:"",dischargeDate:"",examiner:"",images:"",labs:"",location:"",medications:"",nextAppointment:"",nextAppointments:"",notes:{author:"",date:"",title:""},operativePlan:{description:"",instructions:"",procedures:"",title:""},primaryDiagnosis:"",procedures:"",secondaryDiagnosis:"",visitDate:"",visitType:""},messages:{delete:"",saved:""},titles:{dischargeReport:"",newDischargeReport:"",newOPDReport:"",opdReport:"",saved:""}},user:{plusNewUser:"",usersPageTile:""},visits:{buttons:{addDiagnosis:"",checkIn:"",checkOut:"",discharge:"",newAppointment:"",newDischargeReport:"",newOPDReport:"",newProcedure:"",newVitals:""},labels:{appointment:"",authoredBy:"",checkInTime:"",checkOutTime:"",createNewPatient:"",diagnosis:"",examiner:"",finalDiagnosis:"",haveAppointment:"",haveDoneOrders:"",noAppointment:"",ordersDone:"",ordersNotDone:"",patientToCheckIn:"",procedure:"",procedureDate:"",reasonForVisit:"",reportType:"",status:"",statusAdmitted:"",statusCheckedIn:"",statusCheckedOut:"",statusDischarged:"",visitDate:"",visitInformation:"",visitType:""},messages:{checkOut:"",checkedOut:"",discharged:"",patientCheckedIn:"",patientCreatedAndCheckedIn:"",visitAndPatientSaved:"",visitSaved:""},navigation:{charges:"",notes:"",orders:"",procedures:"",reports:"",vitals:""},titles:{additionalDiagnoses:"",checkOut:"",checkedIn:"",checkedOut:"",discharged:"",editVisit:"",newVisit:"",patientCheckIn:"",visitSaved:""}},vitals:{labels:{dateRecorded:"",dbp:"",heartRate:"",height:"",respiratoryRate:"",sbp:"",temperature:"",weight:""}}}}),define("hospitalrun/locales/ur/translations",["exports"],function(e){e.default={admin:{address:{address1Label:"ایڈریس 1 لیبل",address2Label:"ایڈریس 2 لیبل",address3Label:"ایڈریس 3 لیبل",address4Label:"ایڈریس 4 لیبل",addressLabel:"ایڈریس",editTitle:"ایڈریس آپشنز",include1Label:"1 لیبل شامل کریں",include2Label:"2 لیبل شامل کریں",include3Label:"3 لیبل شامل کریں",include4Label:"4 لیبل شامل کریں",messages:{addressSaved:"ایڈریس آپشنز محفوظ کرلیے گۓ ہیں"},newTitle:"ایڈریس آپشنز",titles:{optionsSaved:"آپشنز محفوظ ہوگۓ"}},addressOptions:"ایڈرس آپشنز",customForms:{buttons:{addField:"فیلڈ کا اضافہ کریں",moveDown:"نیچے منتقل کریں",moveUp:"اوپر منتقل کریں",newForm:"+ نیا فام",preview:"مشاہدہ کریں"},labels:{alwaysInclude:"ہمیشہ شامل",checkbox:"چیک باکس",colSpan:"پھیلاؤ کے کالموں کی تعداد",columns:"کالم",customForm:"کسٹم فام",dischargeReportFormType:"",formName:"فارم کا نام",formType:"فارم کی قسم",incidentFormType:"",includeOtherOption:"دیگر آپشن شامل کریں",labFormType:"",label:"لیبل",newForm:"نیا فارم",opdReportFormType:"",operativePlanFormType:"آپریٹو پلان اور رپورٹ",otherOptionLabel:"دیگر آپشن لیبل",patientFormType:"مریض",property:"خصوصیت",radio:"ریڈیو",select:"ڈراپ ڈاؤن",socialworkFormType:"سماجی کام",text:"عبارت",textarea:"بڑی عبارت",visitFormType:"دورہ"},messages:{formSaved:"فارم محفوظ ہوگیا ہے {{name}} "},titles:{checkboxValues:"چیک باکس میں قیمتیں",customForms:"کسٹم فارمز",deleteForm:"کسٹم فارم حذف کریں",dropDownValues:"ڈراپ ڈاؤن فہرست",editCustomForm:"کسٹم فارم میں ترمیم کریں",fields:"قطعات",formSaved:"فارم محفوظ ہوگیا",newCustomForm:"نئے کسٹم فارم",radioValues:"ریڈیو میں قیمتیں"}},header:{editTitle:"",facilityName:"",headerLabel:"",headerLine1:"",headerLine2:"",headerLine3:"",logoURL:"",messages:{headerSaved:""},newTitle:"",titles:{optionsSaved:""}},loadDb:"DB لوڈ کریں",loaddb:{displayAlertMessage:"لوڈ کرنے کے لئے فائل کو منتخب کیجیے.",displayAlertTitle:"لوڈ کرنے کے لئے فائل کو منتخب کریں",editTitle:"DB لوڈ کریں",errorDisplayAlertMessage:"ڈیٹا بیس امپورٹ نہیں ہوسکتی. یہ خامی ہے {{error}}",errorDisplayAlertTitle:"لوڈ کرنے میں خامی",progressMessage:"آپ کا ڈیٹابیس لوڈ کیا جا رہا ہے، براۂ مہربانی انتظار کریں.",progressTitle:"ڈیٹابیس لوڈ ہو رہا ہے"},lookup:{aisleLocationList:"انوینٹری راہداری مقامات",alertImportListMessage:"امپورٹ کرنے کے لئے فائل کو منتخب کیجیے",alertImportListSaveMessage:"تلاش فہرست امپورٹ ہو گئی ہے.",alertImportListSaveTitle:"لسٹ امپورٹ ہوگئ",alertImportListTitle:"امپورٹ کرنے کے لئے فائل کو منتخب کریں",alertImportListUpdateMessage:"تلاش فہرست محفوظ ہو گئی ہے.",alertImportListUpdateTitle:"فہرست محفوظ",anesthesiaTypes:"اینستھیزیا کی اقسام",anesthesiologists:"اینستھیسیالوجسٹس",billingCategories:"بلنگ کی اقسام",clinicList:"کلینک مقامات",countryList:"ممالک",cptCodeList:"CPT کوڈز",diagnosisList:"تشخیص",edit:{template:{addTitle:"قیمت شامل کریں",editTitle:"قیمت ترمیم کریں",labelTitle:"قدر",updateButtonTextAdd:"شامل کریں",updateButtonTextUpdate:"اپ ڈیٹ"}},expenseAccountList:"اخراجات اکاؤنٹس",imagingPricingTypes:"امیجنگ قیمتوں کا تعین کی اقسام",incidentDepartments:"",inventoryTypes:"انوینٹری کی اقسا م",labPricingTypes:"لیب کی قیمتوں کا تعین کی اقسام",pageTitle:"تلاش فہرستیں",patientStatusList:"مریض سٹیٹس کی فہرست",physicianList:"ڈاکٹر",procedureList:"طریقہ کار",procedureLocations:"طریقہ کار مقامات",procedurePricingTypes:"ضابطے کی قیمتوں کا تعین کی اقسام",radiologists:"ریڈیولوجسٹ",titles:{deleteLookupValue:"قدر حذف کریں"},unitTypes:"یونٹ کی اقسام",vendorList:"وینڈر",visitLocationList:"دورہ مقامات",visitTypes:"دورہ کی اقسا م",wardPricingTypes:"وارڈ کی قیمتوں کا تعین کی اقسام",warehouseList:"انوینٹری مقامات"},lookupLists:"تلاش فہرستیں",roles:{capability:{addAllergy:"الرجی کا اضافہ کریں",addAppointment:"ملاقات اضافہ",addBillingDiagnosis:"بلنگ تشخیص شامل کریں",addCharge:"چارج شامل کریں",addDiagnosis:"تشخیص کے لئے شامل کریں",addImaging:"امیجنگ کا اضافہ کریں",addIncident:"",addIncidentCategory:"",addInventoryItem:"انوینٹری آئٹم شامل کریں",addInventoryPurchase:"انوینٹری کی خریداری شامل کریں",addInventoryRequest:"انوینٹری کی درخواست شامل کریں",addInvoice:"رسید شامل کریں",addLab:"لیب شامل کریں",addMedication:"ادویات شامل",addNote:"نوٹ شامل",addOperationReport:"آپریشن رپورٹ شامل کریں",addOperativePlan:"آپریٹو پلان شامل کریں",addPatient:"مریض شامل کریں",addPayment:"ادائیگی شامل کریں",addPhoto:"تصویر کا اضافہ کریں",addPricing:"قیمتوں کا تعین شامل کریں",addPricingProfile:"قیمتوں کا تعین پروفائل شامل کریں",addProcedure:"ضابطے شامل کریں",addSocialwork:"سوشل ورک شامل",addVisit:"دورہ شامل کریں",addVitals:"vitals شامل کریں",adjustInventoryLocation:"انوینٹری مقام کو درست کریں",admin:"انتظامیہ",admitPatient:"مریض جمع کریں",appointments:"ملاقاتیں",billing:"بلنگ",completeImaging:"مکمل امیجنگ",completeLab:"مکمل لیب",defineUserRoles:"صارف کے کردار کی وضاحت کریں",deleteAppointment:"ملاقات حذف کریں",deleteDiagnosis:"تشخیس حذف کریں",deleteImaging:"امیجنگ حذف کریں",deleteIncident:"",deleteIncidentCategory:"",deleteInventoryItem:"حذف انوینٹری آئٹم",deleteInvoice:"رسید کو حذف کریں",deleteLab:"لیب حذف کریں",deleteMedication:"ادویات حذف کریں",deleteNote:"نوٹ حذف کریں",deletePatient:"مریض کو حذف کریں",deletePhoto:"تصویر حذف",deletePricing:"قیمتوں کا تعین حذف کریں",deletePricingProfile:"قیمتوں کا تعین پروفائل حذف کریں",deleteProcedure:"ضابطہ حذف کریں",deleteSocialwork:"سماجی کام حذف کریں",deleteVisit:" دورہ حذف کریں",deleteVitals:" vitals حذف کریں",dischargePatient:"تخریج مریض",editInvoice:"رسید میں ترمیم کریں",fulfillInventory:"انوینٹری پورا کریں",fulfillMedication:"ادویات پورا کریں",generateIncidentReport:"",imaging:"امیجنگ",incident:"",inventory:"انوینٹری",invoices:"رسیدیں",labs:"لیبز",loadDb:"لوڈ کریں ڈیٹا بیس",manageIncidents:"",medication:"ادویات",overrideInvoice:"رسید کو منسوخ کردے",patientReports:"مریض کی رپورٹیں",patients:"مریض",pricing:"قیمتوں کا تعین",updateConfig:"اپ ڈیٹ کی ترتیب",visits:"دورے"},messages:{roleSaved:"{{roleName}} کردار محفوظ ہوگیا ہے."},titles:{roleSaved:"کردار محفوظ ہوگیا ہے"}},userRoles:"صارف کے کردار",users:"صارفین",visitForms:{labels:{followup:"فالواپ",form:"فارم",initial:"ابتدائی",visitType:"دورہ کی قسم"},titles:{visitForms:"دورہ فارم"}},workflow:{admissionDepositLabel:"داخلہ جمع کی ضرورت",clinicPrepaymentLabel:"کلینک قبل از استعمال ادائیگی کی ضرورت",editTitle:"ورک فلو آپشنز",followupPrepaymentLabel:"تعاقب قبل از استعمال ادائیگی کی ضرورت",messages:{optionsSaved:"ورک فلو آپشنز محفوظ ہوگۓ ہیں"},newTitle:"ورک فلو آپشنز",outpatientImagingLabel:"بیرونی مریض کی امیجنگ قبل از استعمال ادائیگی کی ضرورت",outpatientLabLabel:"بیرونی مریضوں کی لیب قبل از استعمال ادائیگی کی ضرورت",outpatientMedicationLabel:"بیرونی مریضوں کی ادویات قبل از استعمال ادائیگی کی ضرورت",titles:{optionsSaved:"آپشنز محفوظ ہوگۓ"},workflowLabel:"فلو آپشنز"}},alerts:{errorExclamation:"خرابی !!!!",pleaseWait:"برائے مہربانی انتظار کریں",reportError:" رپورٹ کی تیاری میں خرابی",warningExclamation:"انتباہ !!!!"},allergies:{buttons:{addAllergy:"الرجی شامل کریں"},labels:{allergyName:"نام",patientAllergy:"مریض کی الرجی"},titles:{addAllergy:"الرجی شامل کریں",editAllergy:"الرجی میں ترمیم کریں"}},application:{messages:{sessionExpired:"آپ کا سیشن متروک ہو گیا ہے۔ کاروائی جاری رکھنے کے لاگ ان کریں"},titles:{sessionExpired:"سیشن کی مدت ختم ہوگئی"}},appointments:{buttons:{newButton:"+ نئی ملاقات",scheduleSurgery:" + سرجری کا وقت مقرر کریں"},calendarTitle:" ملاقات کا کیلنڈر",currentScreenTitle:"ملاقات کی فہرست",editTitle:"ملاقات میں ترمیم کریں",labels:{noLocation:"کوئی مقام نہیں",selectedStartingDate:"اس تاریخ پر یا اس کے بعد کی ملاقاتیں دیکھیں"},messages:{appointmentSaved:" - مریض کے ساتھ ملاقات محفوظ کر لی گئی ہے {{patient}}",endTimeLaterThanStart:"براہ مہربانی وقت آغاز کے بعد کا ختم وقت منتخب کریں۔"},missed:"چوک جانے والی ملاقاتیں",newTitle:"نئی ملاقات",searchTitle:"ملاقاتیں تلاش کریں",sectionTitle:"ملاقاتیں",thisWeek:"اس ہفتہ کی ملاقاتیں",titles:{appointmentSaved:"ملاقات محفوظ کر لی گئی",editSurgicalAppointment:"سرجری کی ملاقات میں ترمیم کریں",newSurgicalAppointment:"نئی سرجری کی ملاقات",theaterSchedule:"تھیٹر اوقات نامہ"},todayTitle:"آج کی ملاقاتیں"},billing:{alerts:{noInvoiceFound:"کوئی رسید نہیں ملی",noPricingItems:"کوئی قیمتوں کے تعیں والی اشیاء نہیں ملی",noPricingProfiles:"کوئی قیمتوں کے تعیں والی پروفائل نہیں ملی"},buttons:{addOverride:"منسوخ شامل کریں",createInvoice:"ایک رسید بنائیں؟"},labels:{actualCharges:"اصل قیمت",discountAmount:"ڈسکاؤنٹ رقم",discountPercentage:"رعایت فی صد",externalInvoiceNumber:"بیرونی رسید #",hmoCom:"HMO / COM",insurance:"قومی بیمہ",paymentProfile:"ادائیگی پروفائل",paymentsDeposits:"ادائیگی / جمع کھاتہ",pricingPanelOverrides:"قیمتوں کا تعین پروفائل کی منسوخی",pricingProfile:"قیمتوں کا تعین پروفائل"}},buttons:{add:"شامل کریں",addItem:"آئٹم شامل کریں",addLineItem:"لائن آئٹم شامل کریں",addValue:"قیمت جمع کریں",addVisit:"دورہ میں شامل کریں",allRequests:"تمام درخواستیں",barcode:"بارکوڈ",cancel:"منسوخ کریں",clear:"صاف",close:"بند کریں",complete:"مکمل",delete:"حذف کریں",dispense:"تقسیم",edit:"تصیح",filter:"فلٹر",fulfill:"پورا کریں",import:" امپورٹ کریں",loadFile:"فائل لوڈ کریں",newItem:"+ نیا آئٹم",newNote:"نیا نوٹ",newRequest:"نئی درخواست",newRequestPlus:"+ نئی درخواست",newUser:"نیا صارف",ok:"ٹھیک ہے",remove:"دور کریں",returnButton:"واپسی",search:"تلاش کریں",showAll:"سارے دکھائیں",showFewer:"کم دکھائیں",update:"اپ ڈیٹ"},components:{chargesByTypeTab:{charges:"چارجز"},customFormManager:{buttons:{addForm:"فارم کا اضافہ کریں"}},dateTimePicker:{amHour:"{{hour}} AM",midnight:"آدھی رات",noon:"دوپہر",pmHour:"{{hour}} PM"},imageUpload:{messages:{selectValidImageFile:""}},operativeProcedures:{buttons:{addProcedure:"ضابطے شامل کریں"},labels:{procedure:"طریقہ کار"},titles:{procedures:"طریقہ کار/ ضابطے"}},patientOrders:{buttons:{newImaging:"نئی امیجنگ",newLab:"نئی لیب",newMedication:"نئی ادویات"},labels:{imagingOrderType:"امیجنگ",labOrderType:"لیب",medicationOrderType:"ادویات",orderType:"آرڈر کی قسم"}},priceList:{charges:"{{pricingType}} چارجز"},quantityCalc:{result:"{{targetUnit}} کل: {{calculated}}"},quantityConv:{conversion:" میں کیا شامل ہے؟ {{name}} 1",unit:"اکائی"},sortableColumn:{labels:{selectAll:"(تمام منتخب کریں)"}},takePhoto:{camera:"کیمرہ",how:"آپ ایک تصویر کو کس طرح شامل کرنا چاہتے ہیں؟",labels:{takeAPicture:"",uploadAFile:""},photo:"تصویر",preview:"پیش نظارہ",takePhoto:"تصویر کھینچیں",uploadFile:"فائل اپ لوڈ کریں"},upcomingAppointments:{labels:{date:"تاریخ",location:"مقام",type:"قسم",with:"کے ساتھ"},titles:{upcomingAppointments:"عنقریب آنے والی ملاقاتیں"}}},customForms:{buttons:{addForm:"فارم شامل کریں"},labels:{formToAdd:"شامل کرنے کے لئے فارم"},titles:{addCustomForm:"کسٹم فارم شامل کریں"}},dashboard:{setup:"",title:"آپ کیا کرنا چاہیں گے؟"},dates:{long:"دن {{days}} مہینے {{months}} سال {{years}}",longOmitDays:"مہینے {{months}} سال {{years}}",longOmitDaysPlural:"مہینے {{months}} سال {{years}}",longOmitDaysYears:"مہینے {{months}}",longOmitYears:"دن {{days}} مہینے {{months}}",longPlural:"دن {{days}} مہینے {{months}} سال {{years}}",short:"د{{days} م{{months}} س{{years}}",shortOmitYears:"د{{days} م{{months}}"},diagnosis:{labels:{activeDiagnosis:"فعال تشخیص",date:"تاریخ",diagnosis:"تشخیص",secondaryDiagnosis:"ثانوی تشخیص"},titles:{addDiagnosis:"تشخیص کے لئے شامل کریں",editDiagnosis:"تشخیص میں ترمیم کریں"}},errors:{accepted:"قبول کرنا ضروری",blank:"خالی نہیں رہ سکتی",confirmation:"کے مماثل نہیں ہے {{attribute}}",empty:"خالی نہیں ہو سکتا",equalTo:"کے برابر ہونا چاہیے {{count}}",even:"جفت ہونا ضروری ہے",exclusion:"مخصوص ہے",greaterThan:"سے زیادہ ہونا چاہیے {{count}}",greaterThanOrEqualTo:"سے زیادہ یا برابر ہونا چاہیے {{count}}",inclusion:"فہرست میں شامل نہیں ہے",invalid:"غلط ہے",invalidNumber:"درست نمبر نہیں",lessThan:"سے کم ہونا چاہیے {{count}}",lessThanOrEqualTo:"سے کم یا برابر ہونا چاہیے {{count}}",notANumber:"ایک نمبر نہیں ہے",notAnInteger:"ایک عددی ہونا لازمی ہے",odd:"طاق ہونا ضروری ہے",otherThan:"سے مختلف ہونا چاہیے {{count}}",present:"خالی ہونا ضروری ہے",result:"براے مہربانی مکمل کرنے سے پہلے نتیجہ درج کریں",tooLong:"حروف {{count}}بہت طویل ہے، زیادہ سے زیادہ ",tooShort:"حروف{{count}}بہت مختصر ہے کم از کم ",wrongLength:"حروف ہونے چاہئے{{count}}غلط لمبائی ہے "},headings:{chargedItems:"چارج اشیا"},imaging:{alerts:{completedMessage:"امیجنگ درخواست کو مکمل کیا گیا ہے",completedTitle:"امیجنگ درخواست مکمل",savedMessage:"امیجنگ درخواست کو محفوظ کر لیا گیا ہے۔",savedTitle:"امیجنگ گذارش بچا لیا"},buttons:{newButton:"+ نئے امیجنگ"},labels:{addNewVisit:"--- نیا دورہ شامل کریں ---",radiologist:"ریڈیولوجسٹ"},messages:{noCompleted:"کوئی مکمل اشیاء نہیں موجود۔"},pageTitle:"امیجنگ درخواستیں",sectionTitle:"امیجنگ",titles:{completedImaging:"امیجنگ مکمل",editTitle:"امیجنگ ترمیم کی گذارش",newTitle:"نئے امیجنگ گذارش"}},incident:{buttons:{add:"",addForm:"",addItem:"",cancel:"",delete:"",download:"",edit:"",export:"",generateRep:"",newAttachment:"",newCategory:"",newIncident:"",newNote:""},labels:{actions:"",addedBy:"",category:"",categoryItem:"",date:"",dateRecorded:"",department:"",description:"",endDate:"",givenBy:"",howToAddAttachment:"",incidentDate:"",incidentId:"",item:"",lastUpdated:"",note:"",patientId:"",patientImpacted:"",reportType:"",reportedBy:"",reportedDate:"",reportedTo:"",sentinelEvent:"",startDate:"",status:"",statusActive:"",statusClosed:"",statusFollowup:"",statusReported:"",title:"",total:"",updatedBy:""},messages:{attachmentFileRequired:"",createNew:"",createNewIncidentCategory:"",fillIn:"",incidentCategorySaved:"",noClosedIncidents:"",noIncidentCategoriesFound:"",noIncidents:"",saved:"",selectExistingPatient:""},titles:{addAttachment:"",addCategoryItem:"",addNote:"",attachments:"",closed:"",current:"",deleteAttachment:"",deleteIncident:"",deleteIncidentCategory:"",deleteItem:"",deleteNote:"",editAttachment:"",editIncident:"",editIncidentCategory:"",editNote:"",general:"",history:"",incidentCategories:"",incidentCategoryItem:"",incidentCategoryName:"",incidentCategorySaved:"",incidentSaved:"",incidents:"",incidentsByCategory:"",incidentsByDepartment:"",newIncident:"",newIncidentCategory:"",notes:"",reports:""}},inventory:{edit:{cost:"فی یونٹ لاگت:",delivered:"وصول کنندہ:",location:"مقام کی درستگی:",prescription:"نسخہ براۓ:",pulled:"سے نکالا:",quantity:"تکمیل پر مقدار:",reason:"وجہ:",returned:"مریض سے واپس",transferredFrom:"سے منتقل:",transferredTo:"میں منتقل کر دیا:"},labels:{action:"عمل",add:"شامل کریں",addAdjustmentType:"",adjust:"درست کریں",adjustmentDate:"درستگی کی تاریخ",adjustmentFor:"درستگی براۓ",adjustmentType:"درستگی کی قسم",aisle:"راہداری",aisleLocation:"راہداری مقام",allInventory:"تمام انوینٹری",allItems:"تمام چیزیں",availableQuantity:"{{quantity}} دستیاب",billTo:"کا بل",consumePurchases:"کھپت خریداریاں",consumptionRate:"کھپت کی شرح",cost:"لاگت",costPerUnit:"فی یونٹ لاگت",crossReference:"دوطرفی حوالہ",currentQuantity:"موجودہ مقدار",dateCompleted:"تاریخ مکمل",dateEffective:"تاریخ نافذ",dateEnd:"آخری تاریخ",dateReceived:"تاریخ موصولی",dateStart:"شروع کرنے کی تاریخ",dateTransferred:"تاریخ منتقل",daysLeft:"دن باقی",deleteItem:"آٹم حذف کریں",deliveryAisle:"ڈلیوری راہداری",deliveryLocation:"ترسیل کے محل وقوع",details:"تفصیلات دیکھیں",distributionUnit:"تقسیم کا یونٹ",editItem:"آٹم میں ترمیم",expense:"کرنے کے اخراجات",expirationDate:"میعاد ختم ہونے کی تاریخ",fulfillRequest:"درخواست کو پورا کریں",fulfillRequestNow:"ابھی درخواست کو پورا کریں",gift:"خیراتی تحفہ",giftInKindNo:"نہیں",giftInKindYes:"ہاں",giftUsage:"خیراتی تحفہ کا استعمال",inventoryConsumed:"انوینٹری کھپت",inventoryItem:"انوینٹری آئٹم",inventoryObsolence:"متروک انوینٹری",invoiceItems:"رسید اشیاء",invoiceLineItem:"رسید لائن آئٹم",invoiceNumber:"رسید نمبر",item:"آئٹم",itemNumber:"آئٹم نمبر",items:"اشیاء",location:"مقام",locations:"مقامات",markAsConsumed:"خرچ شدہ کے طور پر درج کریں",name:"نام",newItem:"نئی آٹم",originalQuantity:"اصل مقدار",print:"پرنٹ",printBarcode:"پرنٹ بارکوڈ",printer:"پرنٹر",pullFrom:"سے ھیںچو",purchaseCost:"خریداری کی لاگت",purchaseInfo:"خریداری کی معلومات",purchases:"خریداری",quantity:"مقدار ({{unit}})",quantityAvailable:"دستیاب مقدار",quantityOnHand:"موجودہ مقدار",quantityRequested:" درخواست کی گئی مقدار",rank:"درجہ",reason:"وجہ",remove:"دور کریں",removeAdjustmentType:"",reorderPoint:" پوائنٹ پھر ترتیب کریں",requestedItems:"درخواست کی گئی اشیاء",returnAdjustmentType:"",returnToVendorAdjustmentType:"",salePricePerUnit:"فی یونٹ فروخت کی قیمت",save:"محفوظ کریں",serialNumber:"سیریل / لوٹ نمبر",total:"کل",totalCost:"کل لاگت",totalReceived:"کل موصول: {{total}}",transaction:"ٹرانزیکشن",transactions:"ٹرانزیکشنز",transfer:"منتقلی",transferFrom:"سے منتقلی",transferTo:"مقام پر منتقلی",transferToAisle:"مقام راہداری پر منتقلی",unit:"یونٹ",unitCost:"یونٹ کی لاگت",vendor:"وینڈر",vendorItemNumber:"وینڈر آئٹم نمبر",writeOffAdjustmentType:"",xref:"XRef"},messages:{adjust:" فرق کے تخمینہ کے لئے مناسب جگہ (جگہوں) پر مقدار کو ٹھیک کریں {{difference }}.",createRequest:"ایک نئی درخواست بنائیں؟",itemNotFound:"
ورنہ واپس جانے کے لیے منسوخ کا بٹن دبائیں
اگر آپ ایک نیا انونٹری آئٹم تخلیق کرنا چاہتے ہیں تو ذیل میں معلومات درج کریں۔ {{item}}انونٹری آئٹم نہیں ملا۔ ",loading:"ٹراسیکشنر لوڈ ہو رہی ہے۔۔۔",noItems:"کوئی آئٹم نہیں ملا۔",noRequests:"کوئی درخواستیں نہیں ملی۔",purchaseSaved:"انونٹری کی خریداری کو کامیابی سے محفوظ کر لیا گیا ہے۔",quantity:" کے مقامات میں کل مقدار سے مماثل نہیں ہے ({{locationQuantity}})کی کل مقدار ({{quantity}})",removeItem:" آپ کو یقین ہے کہ آپ اس آٹم کو رسید سے ہٹانا چاہتے ہیں؟",removeItemRequest:" آپ کو یقین ہے کہ آپ اس آٹم کو درخواست سے ہٹانا چاہتے ہیں؟",requestFulfilled:"انونٹری کی درخواست پوری ہو گئی.",requestUpdated:"انونٹری درخواست کو اپ ڈیٹ کر دیا گیا ہے.",warning:"ضروری ہے (* کے نشان والے) قطعات میں بھرنا اور شامل کرنے سے پہلے غلطیوں کو درست کریں۔"},reports:{adjustment:"تفصیلی درستگی",daysSupply:"اسٹاک میں دنوں کی فراہمی",expenseDetail:"تفصیلی اخراجات",expenseSum:"خلاصہ اخراجات",expiration:"میعاد ختم ہونے کی تاریخ",export:"ایکسپورٹ رپورٹ",fields:" شامل کرنے کے قطعات",finance:"مالیات کا خلاصہ",generate:"رپورٹ بنائیں",invLocation:"محل وقوع کے اعتبار انوینٹری",invValuation:"انوینٹری کی مالیت",purchaseDetail:"تفصیلی خرید",purchaseSum:"خلاصہ خرید",reportType:"رپورٹ کی قسم",rows:{adjustments:"درستگیاں",adjustmentsTotal:"کل درستگیاں",balanceBegin:"ابتدائی بقایا رقم",balanceEnd:"اختمام پر بقایا رقم",category:"قسم",consumed:"کھپت",consumedGik:"کی کھپت GiK",consumedGikTotal:"کی کھپت GiK کل",consumedPuchases:"خریداری کی کھپت",consumedPurchasesTotal:"کل خریداری کی کھپت",consumedTotal:"کل کھپت",errInFinSum:"_generateFinancialSummaryReport میں خرابی: ",errInFindPur:"_findInventoryItemsByPurchase میں خرابی: ",errInFindReq:"_findInventoryItemsByRequest میں خرابی: ",expensesFor:"کے لئے اخراجات: ",noAccount:"(کوئی اکاؤنٹ نہیں)",subtotal:"ذیلی کل: ",subtotalFor:"{{account}} - {{category}}ذیلی کل ",total:"کل: ",totalFor:" کل براۓ {{var}}: ",totalPurchases:"کل خریداری",transfer1:"{{quantity }} سے {{location }}",trasnfer2:"{{target}} :براۓ{{source}} :منجانب"},stockTransferDetail:"تفصیلی اسٹاک کی منتقلی",stockTransferSum:"خلاصہ اسٹاک کی منتقلی",stockUsageDetail:"تفصیلی اسٹاک استعمال",stockUsageSum:"خلاصہ اسٹاک استعمال",titleDateRange:"{{startDate}} - {{endDate}} رپورٹ {{name}}",titleSingleDate:"{{date}} رپورٹ {{name}}"},titles:{addPurchase:"خریداری شامل کریں",addRequest:"نئی درخواست",adjustment:"درستگی",editPurchase:"خریداری میں ترمیم کریں",editRequest:"تصیح کی گذارش",inventoryItem:"نئے انوینٹری آئٹم",inventoryReport:"انوینٹری کی رپورٹ",purchaseSaved:"انوینٹری خریداریاں محفوظ کرلی",quickAddTitle:"نئے انوینٹری آئٹم",removeItem:"آئٹم ہٹائیں",requestFulfilled:"درخواست پوری",requestUpdated:"درخواست اپ ڈیٹ ہوگئی",transfer:" اشیا منتقل کریں",warning:"انتباہ!!!"}},labels:{action:"عمل",actions:"عوامل",addNewOutpatientVisit:"نۓ بیرنی مریض کے لیے دورہ کا اضافہ کریں",address:"ایڈریس",age:"عمر",allDay:"تمام دن",amount:"رقم",anesthesia:"اینستھیزیا",assisting:"مدد",balanceDue:"واجب الادا",billDate:"بل تاریخ",billTo:"کا بل",category:"قسم",completed:"مکمل",country:"ملک",cptcode:"CPT کوڈ",creditTo:"کرنے کے لئے کریڈٹ",date:"تاریخ",dateCompleted:"تاریخ مکمل",dateOfBirth:"پیدائش کی تاریخ",dateOfBirthShort:"DOB",datePaid:"تاریخ ادا",dateRequested:"درخواست کی تاریخ",delete:"حذف کریں",deleteRequest:"درخواست حذف کریں",deleteUser:"صارف حذف کریں",department:"محکمہ",description:"تفصیل",discount:"رعایت",displayName:"دکھانے کے لیے نام",docRead:"دستاویزات پڑھیں",docWritten:"ڈاکس سے تحریری",edit:"تصیح",editUser:"صارف میں ترمیم کریں",email:"ای میل",endDate:"تاریخ اختتام",endTime:"آخر وقت",excess:"اضافی",expenseTo:"کرنے کے اخراجات",fileLoadSuccessful:" فائل لوڈ کامیابی سے ہو گئ",fileName:"فائل کا نام",fileToLoad:" لوڈ کے لیے فائل",fulfill:"پورا کریں",fulfillRequest:"درخواست کو پورا کریں",fulfillRequestNow:"ابھی درخواست کو پورا کریں",fulfilled:"پوری کر دی گئ",grandTotal:"مجموعی عدد",id:"آئی ڈی",imageOrders:"امیج آرڈرز",imagingType:"امیجنگ قسم",importFile:"امپورٹ فائل",invoiceId:"رسید کی آئی ڈی",labOrders:"لیب آرڈرز",lineItems:"لائن آئٹمز",loading:"لوڈ کر رہا ہے",location:"مقام",lookupType:"تلاش قسم",medication:"ادویات",name:"نام",newUser:"نیا صارف",note:"نوٹ",notes:"نوٹس",number:"نمبر",on:"پر",password:"پاس ورڈ",patient:"مریض",payments:"ادائیگیاں",physician:"فزیشن",prescriber:"تجویز کنندہ",prescription:"نسخے",prescriptionDate:"نسخے تاریخ",price:"قیمت",print:"",procedures:"طریقہ کار",provider:"مھیا کرنے والا",pullFrom:"سے کھیںچو",quantity:"تعداد",remarks:"تبصرہ",requestedBy:"کی طرف سے درخواست",requestedOn:"پر درخواست",requests:"درخواستیں",result:"نتیجہ",results:"نتائج",role:"کردار",search:"تلاش کریں",sex:"جنس",startDate:"شروع کرنے کی تاریخ",startTime:"وقت آغاز",status:"صورتحال",takenBy:"",total:"کل",type:"قسم",userCanAddNewValue:"صارف نئی اقدار کا اضافہ کر سکتے ہیں",username:"یوزر نیم",value:"قدر",view:"",visit:"دورہ",with:"ساتھ"},labs:{alerts:{requestCompletedMessage:"لیب کی درخواست مکمل ہو گئی ہے",requestCompletedTitle:"لیب درخواست مکمل",requestSavedMessage:"لیب کی درخواست محفوظ ہو گئی ہے۔",requestSavedTitle:"لیب کی درخواست محفوظ"},buttons:{newButton:"+ نئی لیب"},completedTitle:"مکمل لیبز",deleteTitle:"درخواست حذف کریں",editTitle:"لیب میں ترمیم کی درخواست",labels:{addNewVisit:"۔۔ نیا دورہ شامل کریں ۔۔",labType:"لیب کی قسم"},messages:{createNewRecord:"ایک نیا ریکارڈ بنائیں؟",noCompleted:"کوئی مکمل آئٹم موجود نہیں",noItemsFound:"کوئی لیب موجود نہیں"},newTitle:"نئے لیب کی گذارش",requestsTitle:"لیب درخواستیں",sectionTitle:"لیبز"},loading:{messages:{0:"سب سے تیز تیتلی پرواز کی رفتار فی گھنٹہ 12 میل ہے. کچھ کیڑے 25 میل فی گھنٹہ کی رفتار سے پرواز کر سکتے ہیں",1:" پرندے میں صرف اللو ہیں جو نیلا رنگ دیکھ سکتے ہیں",2:"بلی کی 100 مختلف آوازیں ہیں؛ کتے کی صرف 10 ہیں",3:"انسان تقریر میں 72 مختلف پٹھوں کی کل استعمال کرتے ہیں",4:" افریقہ کے براعظم میں 1،000 سے زائد مختلف زبانیں بولی جاتی ہیں",5:" اراۓتھروفوب وہ ہے جو آسانی سے شرما جاۓ ",6:"دنیا میں سب سے زیادہ عام فوبیا درد کا خوف ہے جو اوڈاۓنوفوبیا ہے",7:" آپ جب بھی کھڑے ہوتے ہیں آپ کا جسم خود کو متوازن کرنے کے لیے 300 پٹھوں کا استعمال کرتا",8:"بعض میںڈک منجمد ٹھوس ہوسکتے ہیں پھر پگھل جائیں تو بھی جی سکتے ہیں",9:"ہماری آنکھیں پیدائش سے ہی اسی ہجم کی ہیں، لیکن ہماری ناک اور کان کبھی بڑھنا نہیں رکتی",10:"آپ کی زبان آپ کے جسم میں واحد پٹھہ ہے جو صرف ایک طرف سے منسلک ہے",11:"اونٹ کی تین پلکیں ہوتی ہیں جو اڑتی ریت سے بچانے کے لئے ہیں۔"},progressBar:{progress:"{{progressBarValue}}٪ مکمل"}},login:{labels:{password:"پاس ورڈ",signIn:"سائن ان ",username:"یوزر نیم"},messages:{error:"یوزر نیم یا پاس ورڈ غلط ہے.",signIn:"سائن ان کریں"}},medication:{alerts:{fulfilledTitle:"ادویات درخواست پوری",returnedMessage:"ادویات پر واپس کر دی گئی کا نشان لگا دیا گیا ہے۔",returnedTitle:"واپس کی گئی ادویات",savedMessage:"ادویات کا ریکارڈ محفوظ ہوگیا ہے۔",savedTitle:"ادویات کی درخواست محفوظ کر لی گئی"},buttons:{dispenseMedication:"ادویات تقسیم",newButton:"+ نئی درخواست",returnMedication:"واپسی دوا"},labels:{adjustmentDate:"تاریخ درستگی",creditToAccount:"اکاؤنٹ کو کریڈٹ",quantityDispensed:"تقسیم یا استعمال کی گئی مقدار",quantityDistributed:"تقسیم کی گئی مقدار",quantityRequested:" درخواست کی گئی مقدار",quantityToReturn:"مقدار براۓ واپسی",refills:"دوبارہ بھریں",returnAisle:"واپسی راہداری",returnLocation:" مقام واپسی",returnReason:"واپسی کی وجہ / نوٹس"},messages:{createNew:"ایک نئی دوا کی درخواست بنائیں؟"},pageTitle:"ادویات کی درخواستیں",returnMedication:"واپس دوا",sectionTitle:"ادویات",titles:{completedMedication:"مکمل دوا",editMedicationRequest:"ادویات میں ترمیم کی درخواست",newMedicationRequest:"نئی دوا کی گذارش"}},messages:{createNewRecord:"ایک نیا ریکارڈ بنائیں؟",createNewUser:"ایک نیا صارف بنائیں؟",delete:"",delete_plural:"",delete_singular:"",forAuthorizedPersons:"یہ رپورٹ صرف مجاز افراد کے لئے ہے.",newPatientHasToBeCreated:"ایک نیا مریض بنایا جانا ضروری ہے ... براہ کرم انتظار کریں ...",noHistoryAvailable:"کوئی سرگزشت دستیاب نہیں",noItemsFound:"کوئی آئٹم نہیں ملا.",noNotesAvailable:"کوئی اضافی کلینکل نوٹ اس دورے کے لئے دستیاب نہیں.",noUsersFound:"کوئی صارف دستیاب نہیں",onBehalfOf:"کی جانب سے",reportError:"درخواست کی رپورٹ کو پیدا کرتے وقت ایک خرابی کا سامنا ہوا۔ براہ مہربانی اپنے سسٹم ایڈمنسٹریٹر کے علم میں لائیں کہ آپ کو خرابی کا سامنا ہوا",requiredFieldsCorrectErrors:"ضرورت ہے کہ خالی قطعات (* کے نشان) میں بھریں اور محفوظ کرنے سے پہلے غلطیوں کو درست کریں.",saveActionException:"محفوظ کرنے کی کوشش کرتے ہوئے ایک خرابی واقع ہوئی ہے: {{message}}",sorry:"معاف کرنا، کچھ غلط ہوگیا...",userHasBeenSaved:"صارف محفوظ ہوگیا ہے.",userSaved:" صارف محفوظ"},models:{appointment:{labels:{allDay:"",appointmentDate:"",appointmentType:"",endDate:"",location:"",notes:"",patient:"",provider:"",startDate:"",status:"",type:""},names:{plural:"",singular:""}},attachment:{names:{plural:"",singular:""}},form:{names:{plural:"",singular:""}},imaging:{names:"",request:{plural:"",singular:""}},incident:{names:{plural:"",singular:""}},item:{names:{plural:"",singular:""}},lab:{names:{plural:"",singular:""},request:{plural:"",singular:""}},medication:{names:{plural:"",singular:""},request:{plural:"",singular:""}},note:{names:{plural:"",singular:""}},patient:{labels:{name:""},names:{singular:""}},procedure:{names:{plural:"",singular:""}},user:{names:{plural:"",singular:""}},visit:{names:{plural:"",singular:""}},vital:{names:{plural:"",singular:""}}},navigation:{about:"HospitalRun کے بارے",actions:{login:"لاگ ان",logout:"لاگ آوٹ"},administration:"انتظامیہ",billing:"بلنگ",imaging:"امیجنگ",incident:"",inventory:"انوینٹری",labs:"لیبز",medication:"ادویات",patients:"مریض",scheduling:"اوقات نامہ",subnav:{actions:"عوامل",addAppointment:"ملاقات اضافہ",addressFields:"ایڈریس قطعات",admittedPatients:"جمع شدہ مریض",appointmentSearch:" ملاقاتیں تلاش کریں",appointmentsCalendar:"ملاقاتوں کا کیلنڈر",appointmentsThisWeek:"اس ہفتے کی ملاقاتیں",completed:"مکمل",currentIncidents:"",customForms:"کسٹم فام",dispense:"تقسیم",history:"",incidentCategories:"",inventoryReceived:"انوینٹری موصول",invoices:"رسیدیں",items:"اشیاء",loadDB:"DB لوڈ کریں",lookupLists:"تلاش فہرستیں",missedAppointments:"ضائع شدہ",newIncident:"",newInvoice:"نئے رسید",newPatient:"نئے مریض",newRequest:"نئی درخواست",newUser:"نیا صارف",outpatient:"آؤٹ پیشنٹ",patientListing:"مریض کی فہرست سازی",priceProfiles:"قیمت پروفائلز",prices:"قیمتیں",printHeader:"",reports:"رپورٹس",requests:"درخواستیں",returnMedication:"واپس دوا",scheduleSurgery:"سرجری اوقات نامہ",theaterSchedule:"تھیٹر اوقات نامہ","today'sAppointments":"",userRoles:"صارف کے کردار",users:"صارفین",workflow:"ورک فلو"}},operationReport:{labels:{additionalNotes:"اضافی نوٹس",assistant:"مددگار",caseComplexity:"کیس پیچیدگی",operationDescription:"آپریشن کی تفصیل",preOpPrimaryDiagnosis:"آپریشن سے پہلے بنیادی تشخیص",preOpSecondaryDiagnosis:"آپریشن سے پہلے ثانوی تشخیص",surgeon:"سرجن",surgeryDate:"سرجری تاریخ"},messages:{reportSaved:"آپریشن رپورٹ محفوظ ہوگئی ہے۔"},titles:{editTitle:"آپریشن رپورٹ میں ترمیم کریں",newTitle:"نئے آپریشن کی رپورٹ",reportSaved:"رپورٹ محفوظ ہوگئی"}},operativePlan:{buttons:{completePlan:"مکمل حکمت عمل"},labels:{additionalNotes:"اضافی نوٹس",admissionInstructions:"داخلے کی ہدایات",caseComplexity:"کیس پیچیدگی",completedStatus:"مکمل",droppedStatus:"گرا دیا",operationDescription:"آپریشن کی تفصیل",plannedStatus:"منصوبہ بندی کر لی گئی",status:"صورتحال",surgeon:"سرجن"},messages:{planCompleted:"آپریٹو پلان مکمل ہو چکا ہے۔ اب آپریشن رپورٹ کی طرف آپ کی رہنمائی کی جائے گی۔",planSaved:"آپریٹو پلان محفوظ ہوگیا ہے۔"},titles:{editTitle:"آپریٹو پلان میں ترمیم کریں",newTitle:"نیا آپریٹو پلان",planCompleted:"پلان مکمل",planSaved:"پلان محفوظ"}},patients:{buttons:{addContact:"رابطہ شامل کریں",addExpense:"اخراجات میں شامل کریں",addFamilyMember:"خاندان کا فرد شامل کریں",addOperativePlan:"آپریٹو پلان میں شامل کریں",backToPatients:"مریض کی فہرست پر واپس جائیں",download:"",editOperativePlan:"موجودہ آپریٹو پلان",newAppointment:"نئی ملاقات",newImaging:"نئی امیجنگ",newLab:"نئی لیب",newMedication:"نئی دوا",newPatient:"+ نیا مریض",newPhoto:"نئی تصویر",newVisit:"نیا دورہ",patientCheckIn:"مریض کا چیک ان",scheduleSurgery:"سرجری کا وقت مقرر کریں"},labels:{admissionDate:"داخلے کی تاریخ",admit:"داخل کریں",bloodType:"خون کی قسم",caption:"",
+civilStatus:"سول حیثیت",clinic:"کلینک کی جگہ",contacts:"رابطے",cost:"لاگت",dateOfBirth:"پیدائش کی تاریخ",dateProcessed:"عمل درآمد کی تاریخ",dischargeDate:"فارغ کرنے کی تاریخ",dob:"DOB",education:"تعلیم",email:"ای میل",externalPatientId:"بیرونی مریض کی شناخت",firstName:"نام کا پہلا حصہ",income:"آمدن",insurance:"بیمہ",lastName:"نام کا آخری حصہ",middleName:"نام کا درمیانی حصہ",monthlyCost:"ماہانہ اخراجات",occupation:"پیشہ",operativePlan:"آپریٹو پلان",parent:"والدین / سرپرست",patientDays:"مریض کے دن",patientType:"مریضوں کی اقسام",patientTypeCharity:"",patientTypePrivate:"",phone:"فون",placeOfBirth:"جائے پیدائش",primaryDiagnosis:"بنیادی تشخیص",referredBy:"کی طرف سے بھیجا گیا",referredDate:"حوالہ دینے کی تاریخ",relationship:"مریض سے تعلق",relationships:"تعلقات",religion:"مذہب",secondaryDiagnosis:"ثانوی تشخیص",sex:"جنس",sexNotEntered:"جنس داخل نہیں کیا گیا",sources:"ذرائع",status:"مریض کی صورتحال",totalMontlyExpense:"مجموعی ماہانہ اخراجات"},messages:{areYouSureDelete:" کو حذف کرنا چاہتے ہیں؟ {{object}} آپ کو یقین ہے کہ آپ اس ",createNewPatient:"ایک نیا مریض ریکارڈ بنائیں؟",deletingPatient:"مریض اور سارے متعلقہ ریکارڈز حذف کیا جا رہا ہے",noPatientsFound:"کوئی مریض نہیں ملا۔",notFoundQuickAdd:" مریض نہیں مل سکا۔ اگر آپ کو ایک نیا مریض بنانا چاہتے ہیں تو ذیل میں معلومات درج کیجے۔ ورنہ واپس جانے کے کیے منسوخ کا بٹن دبائیں۔ {{patientFullName}} ",photoFileRequired:"",savedPatient:" کے لئے مریض کا ریکارڈ محفوظ ہوگیا ہے۔ {{displayName}} "},navigation:{appointments:"ملاقاتیں",general:"عمومی",history:"سرگزشت",imaging:"امیجنگ",labs:"لیبز",medication:"ادویات",photos:"تصاویر",socialWork:"سماجی کام",visits:"دورے"},notes:{newNote:"نیا نوٹ برائے",onBehalfOfCopy:"کی جانب سے",onBehalfOfLabel:"کی جانب سے",pleaseSelectAVisit:"ایک دورے براہ مہربانی منتخب کریں",updateNote:"کی صرف سے نوٹ اپ ڈیٹ ہورہے ہیں"},titles:{addContact:"رابطہ شامل کریں",addPhoto:"تصویر کا اضافہ کریں",additionalContacts:"اضافی رابطے",admissionsDetail:"داخلوں کی تفصیل",admissionsSummary:"داخلوں کا خلاصہ",admittedPatients:"داخل کیے گئے مریض",delete:"مریض کو حذف کریں",deleteContact:"رابطہ کریں حذف کریں",deleteExpense:"خرچہ حذف کریں",deleteFamilyMember:"خاندان کے فرد کو حذف کریں",deletePatientRecord:"مریض ریکارڈ حذف کریں",deletePhoto:"تصویر حذف کریں",diagnosticTesting:"تشخیصی جانچ",dischargesDetail:"فارغ کرنے کی تفصیل",dischargesSummary:"فارغ کرنے کا خلاصہ",edit:"مریض میں ترمیم کریں",editPhoto:"تصویر میں ترمیم کریں",expenses:"اخراجات",familyInfo:"خاندانی معلومات",familyInformation:"خاندان کی معلومات",new:"نئے مریض",outpatientsForDate:"{{visitDate}} بیرونی مریض برائے ",patient:"مریض رپورٹ",patientListing:"مریض کی فہرست سازی",patientReport:"مریض رپورٹ",patientStatus:"مریض کی صورتحال",proceduresDetail:"طریقہ کار کی تفصیل",proceduresSummary:"طریقہ کار کا خلاصہ",savedPatient:"مریض محفوظ ہو گیا",socialWork:"خرچہ",todaysOutpatients:"آج کے بیرونی مریضوں",totalPatientDays:"مریض کے کل دن",totalPatientDaysDetailed:"مریض کے کل دن(تفصیلی) ۔",visit:"دورہ"}},print:{invoice:{labels:{billedBy:"بل منجانب:",billedDate:"بل کی تاریخ:",dateAdmitted:"داخلہ کی تاریخ:",dateDischarged:"فارغ کرنے کی تاریخ:",dischargeNotes:"فارغ کرنے کے نوٹس:",patientAddress:"پتہ:",patientAge:"عمر:",patientId:"مریض #:",patientName:"مریض کا نام:",remarks:"خیالات:",spacer:"__________________________________________"},messages:{whereConducted:"میری محدودیت کے دوران کاٹ لیے گئے تھے"},titles:{billingStatement:"بلنگ کی عبارت",patientMember:"مریض رکن",patients:"مریض کا",relContact:"تعلق / رابطہ نمبر"}}},procedures:{buttons:{addMedication:"ادویات شامل کریں"},labels:{medicationUsed:"استعمال کی گئی ادویات"},messages:{saved:" آپ کو یقین ہے کہ آپ اس طریقہ کار کو حذف کرنا چاہتے ہیں؟"},titles:{addChargeItem:"چارج آئٹم شامل کریں",addMedicationUsed:"استعمال کی گئی ادویات شامل کریں",deleteChargeItem:"چارج آئٹم حذف کریں",deleteMedicationUsed:"استعمال کی گئی ادویات حذف کریں",edit:"ضابطے میں ترمیم کریں",editChargeItem:"چارج آئٹم میں ترمیم کریں",editMedicationUsed:"استعمال کی گئی ادویات میں ترمیم کریں",medicationUsed:"استعمال کی گئی ادویات",new:"نیا طریقہ کار",saved:"ضابطے محفوظ"}},reports:{labels:{admissionDate:"",allProcedures:"",completedBy:"",dischargeDate:"",examiner:"",images:"",labs:"",location:"",medications:"",nextAppointment:"",nextAppointments:"",notes:{author:"",date:"",title:""},operativePlan:{description:"",instructions:"",procedures:"",title:""},primaryDiagnosis:"",procedures:"",secondaryDiagnosis:"",visitDate:"",visitType:""},messages:{delete:"",saved:""},titles:{dischargeReport:"",newDischargeReport:"",newOPDReport:"",opdReport:"",saved:""}},user:{plusNewUser:"+ نیا صارف",usersPageTile:"صارفین کی فہرست سازی"},visits:{buttons:{addDiagnosis:"تشخیص کے لئے شامل کریں",checkIn:"چیک ان",checkOut:"چیک آٹ",discharge:"فارغ کر دیں",newAppointment:"نئی ملاقات",newDischargeReport:"",newOPDReport:"",newProcedure:"نئے طریقہ کار",newVitals:"نئے vitals"},labels:{appointment:"ملاقات",authoredBy:"کی طرف سے تحریر",checkInTime:"چیک ان",checkOutTime:"چیک آٹ",createNewPatient:"نیا مریض بنائیں",diagnosis:"تشخیص",examiner:"معائنہ کار",finalDiagnosis:"حتمی / بلنگ تشخیص",haveAppointment:"ہاں",haveDoneOrders:"ہاں",noAppointment:"نہیں",ordersDone:"آرڈرز مکمل کر دیے گئے",ordersNotDone:"نہیں",patientToCheckIn:"مریض کا چیک ان کرنا",procedure:"ضابطے",procedureDate:"ضابطے کی تاریخ",reasonForVisit:"دورے کی وجہ",reportType:"",status:"دورہ کی صورتحال",statusAdmitted:"داخل کر دیا گیا",statusCheckedIn:"چیک ان کر دیا گیا",statusCheckedOut:"چیک آٹ کر دیا گیا",statusDischarged:"فارغ کر دیا گیا",visitDate:"دورہ کی تاریخ",visitInformation:"دورہ معلومات",visitType:"دورہ کی قسم"},messages:{checkOut:"کو چیک آٹ کرنا چاہتے ہیں؟ {{patientName}} آپ کو یقین ہے کہ آپ ",checkedOut:"چیک آٹ کر دیا گیا ہے {{patientName}} ",discharged:" کو فارغ کر دیا گیا ہے {{patientName}} ",patientCheckedIn:"چیک ان کر دیا گیا ہے {{patientName}} ",patientCreatedAndCheckedIn:" ۔ (مریض) بنا دیا گیا ہے اور چیک ان کر دیا گیا ہے {{patientName}} ",visitAndPatientSaved:"دورے اور مریض ریکارڈ محفوظ کیا گیا ہے۔",visitSaved:"دورہ کا ریکارڈ کو محفوظ کیا گیا ہے۔"},navigation:{charges:"چارجز",notes:"نوٹس",orders:"آرڈرز",procedures:"طریقہ کار",reports:"",vitals:"Vitals"},titles:{additionalDiagnoses:"اضافی تشخیص",checkOut:"مریض چیک آٹ",checkedIn:"مریض چیک ان مکمل",checkedOut:"مریض چیک آٹ مکمل",discharged:"مریض فارغ کر دیا گیا",editVisit:"دورہ ترمیم کریں",newVisit:"نیا دورہ",patientCheckIn:"مریض چیک ان",visitSaved:"دورہ محفوظ"}},vitals:{labels:{dateRecorded:"تاریخ اندراج",dbp:"DBP",heartRate:"دل کی دھڑکن کی شرح",height:"اونچائی",respiratoryRate:"سانس کی شرح",sbp:"SBP",temperature:"درجہ حرارت",weight:"وزن"}}}}),define("hospitalrun/medication/completed/controller",["exports","hospitalrun/controllers/abstract-paged-controller"],function(e,t){e.default=t.default.extend({showActions:!1,startKey:[]})}),define("hospitalrun/medication/completed/route",["exports","ember-i18n","hospitalrun/medication/index/route"],function(e,t,n){e.default=n.default.extend({modelName:"medication",pageTitle:(0,t.translationMacro)("medication.titles.completedMedication"),searchStatus:"Fulfilled"})}),define("hospitalrun/medication/completed/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"wgSAKpsG",block:'{"statements":[["partial","medication/index"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[],"hasPartials":true}',meta:{moduleName:"hospitalrun/medication/completed/template.hbs"}})}),define("hospitalrun/medication/delete/controller",["exports","ember-i18n","hospitalrun/controllers/abstract-delete-controller","hospitalrun/mixins/patient-submodule"],function(e,t,n,a){e.default=n.default.extend(a.default,{title:(0,t.translationMacro)("labels.delete_request"),actions:{delete:function(){this.deleteChildFromVisit("medication")}}})}),define("hospitalrun/medication/delete/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"s2Qwj1O9",block:'{"statements":[["block",["modal-dialog"],null,[["isUpdateDisabled","title","updateButtonAction","updateButtonText"],[["get",["isUpdateDisabled"]],["get",["title"]],["get",["updateButtonAction"]],["get",["updateButtonText"]]]],0]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-danger"],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","glyphicon glyphicon-warning-sign"],["flush-element"],["close-element"],["text","\\n "],["append",["helper",["t"],["messages.delete_singular"],[["name"],[["helper",["t"],["models.medication.request.singular"],null]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/medication/delete/template.hbs"}})}),define("hospitalrun/medication/edit/controller",["exports","hospitalrun/controllers/abstract-edit-controller","hospitalrun/mixins/add-new-patient","ember","hospitalrun/mixins/fulfill-request","hospitalrun/mixins/inventory-locations","hospitalrun/mixins/patient-submodule","hospitalrun/mixins/user-session"],function(e,t,n,a,l,s,i,o){e.default=t.default.extend(n.default,l.default,s.default,i.default,o.default,{medicationController:a.default.inject.controller("medication"),expenseAccountList:a.default.computed.alias("medicationController.expenseAccountList"),canFulfill:function(){return this.currentUserCan("fulfill_medication")}.property(),isFulfilled:function(){return"Fulfilled"===this.get("model.status")}.property("model.status"),isFulfilling:function(){var e=this.get("canFulfill"),t=this.get("model.isRequested"),n=this.get("model.shouldFulfillRequest"),a=e&&(t||n);return this.get("model").set("isFulfilling",a),a}.property("canFulfill","model.isRequested","model.shouldFulfillRequest"),isFulfilledOrRequested:function(){return this.get("isFulfilled")||this.get("model.isRequested")}.property("isFulfilled","model.isRequested"),prescriptionClass:function(){var e=this.get("model.quantity");if(a.default.isEmpty(e))return"required test-medication-prescription"}.property("model.quantity"),quantityClass:function(){var e=this.get("model.prescription"),t="col-xs-3";return(this.get("isFulfilling")||a.default.isEmpty(e))&&(t+=" required"),t+" test-quantity-input"}.property("isFulfilling","model.prescription"),quantityLabel:function(){var e=this.get("i18n"),t=e.t("medication.labels.quantityRequested"),n=this.get("isFulfilled");return this.get("isFulfilling")?t=e.t("medication.labels.quantityDispensed"):n&&(t=e.t("medication.labels.quantityDistributed")),t}.property("isFulfilled"),medicationList:[],updateCapability:"add_medication",afterUpdate:function(){var e=this.get("i18n"),t=void 0,n=void 0;this.get("isFulfilled")?(t=e.t("medication.alerts.fulfilledTitle"),n="The medication request has been fulfilled.",this.set("model.selectPatient",!1)):(t=e.t("medication.alerts.savedTitle"),n=e.t("medication.alerts.savedMessage")),this.saveVisitIfNeeded(t,n)},beforeUpdate:function(){var e=this.get("isFulfilling"),t=this.get("model.isNew");return t||e?new a.default.RSVP.Promise(function(n,l){var s=this.get("model");s.validate().then(function(){s.get("isValid")?t?a.default.isEmpty(s.get("patient"))?(this.addNewPatient(),l({ignore:!0,message:"creating new patient first"})):(s.set("medicationTitle",s.get("inventoryItem.name")),s.set("priceOfMedication",s.get("inventoryItem.price")),s.set("status","Requested"),s.set("requestedBy",s.getUserName()),s.set("requestedDate",new Date),this.addChildToVisit(s,"medication","Pharmacy").then(function(){this.finishBeforeUpdate(e,n)}.bind(this),l)):this.finishBeforeUpdate(e,n):(this.send("showDisabledDialog"),l("invalid model"))}.bind(this)).catch(function(){this.send("showDisabledDialog"),l("invalid model")}.bind(this))}.bind(this)):a.default.RSVP.resolve()},finishBeforeUpdate:function(e,t){if(e){var n=this.get("model.inventoryLocations"),a=this.get("store").createRecord("inv-request",{expenseAccount:this.get("model.expenseAccount"),dateCompleted:new Date,inventoryItem:this.get("model.inventoryItem"),inventoryLocations:n,quantity:this.get("model.quantity"),transactionType:"Fulfillment",patient:this.get("model.patient"),markAsConsumed:!0});this.performFulfillRequest(a,!1,!1,!0).then(function(){this.set("model.status","Fulfilled"),t()}.bind(this))}else t()},showUpdateButton:function(){return!this.get("isFulfilled")&&this._super()}.property("updateCapability","isFulfilled"),updateButtonText:function(){var e=this.get("i18n");return this.get("model.hideFulfillRequest")?e.t("buttons.dispense"):this.get("isFulfilling")?e.t("labels.fulfill"):this._super()}.property("model.isNew","isFulfilling","model.hideFulfillRequest")})}),define("hospitalrun/medication/edit/route",["exports","ember-i18n","hospitalrun/routes/abstract-edit-route","hospitalrun/mixins/add-to-patient-route","ember","hospitalrun/mixins/fulfill-request","hospitalrun/mixins/inventory-locations","moment","hospitalrun/mixins/patient-list-route","npm:uuid"],function(e,t,n,a,l,s,i,o,r,d){var c=l.default.isEmpty;e.default=n.default.extend(a.default,s.default,i.default,r.default,{editTitle:(0,t.translationMacro)("medication.titles.editMedicationRequest"),modelName:"medication",newTitle:(0,t.translationMacro)("medication.titles.newMedicationRequest"),database:l.default.inject.service(),getNewData:function(e){var t=this.get("idParam"),n={selectPatient:!0,prescriptionDate:(0,o.default)().startOf("day").toDate()};return"dispense"===e[t]&&(n.shouldFulfillRequest=!0,n.hideFulfillRequest=!0),n.id=d.default.v4(),l.default.RSVP.resolve(n)},model:function(e){var t=this.get("idParam"),n=this._super(e);return!l.default.isEmpty(t)&&"new"===e[t]||"dispense"===e[t]?c(e.forPatientId)?c(e.forVisitId)?this._createNewRecord(e):this._setVisitOnModel(n,e.forVisitId):this._setPatientOnModel(n,e.forPatientId):this._super(e)},setupController:function(e,t){this._super(e,t);var n={key:"Medication",include_docs:!0},a=t.get("inventoryItem.id"),s=t.get("patient");l.default.isEmpty(a)&&this.get("database").queryMainDB(n,"inventory_by_type").then(function(t){var n=t.rows.map(function(e){return e.doc});e.set("medicationList",n)}),l.default.isEmpty(s)&&this._fetchPatientList(e)}})}),define("hospitalrun/medication/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"F0Zrsz5k",block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],15]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection"],["expenseAccount",["helper",["t"],["labels.billTo"],null],["get",["expenseAccountList"]],["get",["model","expenseAccount"]]]]],false],["text","\\n "],["append",["helper",["inventory-location-picker"],null,[["label","quantityRequested","locationList","selectedLocations","class"],[["helper",["t"],["labels.pullFrom"],null],["get",["model","quantity"]],["get",["model","inventoryItem","availableLocations"]],["get",["model","inventoryLocations"]],"inventory-location"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["labels.fulfillRequest"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["labels.fulfillRequestNow"],null],"shouldFulfillRequest"]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["canFulfill"]]],null,1]],"locals":[]},{"statements":[["block",["if"],[["get",["model","isNew"]]],null,2]],"locals":[]},{"statements":[["text"," "],["append",["helper",["expand-text"],null,[["property","label","rows","class"],["prescription",["helper",["t"],["labels.prescription"],null],"3",["get",["prescriptionClass"]]]]],false],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class"],["prescriptionDate",["helper",["t"],["labels.prescriptionDate"],null],"col-sm-4"]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["number-input"],null,[["property","label","class"],["quantity",["get",["quantityLabel"]],["get",["quantityClass"]]]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["refills",["helper",["t"],["medication.labels.refills"],null],"col-xs-3"]]],false],["text","\\n "],["close-element"],["text","\\n"],["block",["unless"],[["get",["model","hideFulfillRequest"]]],null,3],["block",["if"],[["get",["isFulfilling"]]],null,0]],"locals":[]},{"statements":[["text"," "],["append",["helper",["date-format"],[["get",["model","prescriptionDate"]]],null],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["static-text"],null,[["label","value"],[["helper",["t"],["labels.prescription"],null],["get",["model","prescription"]]]]],false],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n"],["block",["static-text"],null,[["label","class"],[["helper",["t"],["labels.prescriptionDate"],null],"col-xs-4"]],5],["text"," "],["append",["helper",["static-text"],null,[["label","class","value"],[["get",["quantityLabel"]],"col-xs-3",["get",["model","quantity"]]]]],false],["text","\\n "],["append",["helper",["static-text"],null,[["label","class","value"],[["helper",["t"],["medication.labels.refills"],null],"col-xs-3",["get",["model","refills"]]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["labels.prescriber"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","requestedBy"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["inventory-typeahead"],null,[["property","label","content","selection","class"],["inventoryItemTypeAhead",["helper",["t"],["labels.medication"],null],["get",["medicationList"]],["get",["selectedInventoryItem"]],"required test-medication-input"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["labels.medication"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","medicationName"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","form-group col-xs-3"],["flush-element"],["text","\\n "],["open-element","label",[]],["flush-element"],["append",["helper",["t"],["labels.visit"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","visit","visitDescription"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-select"],null,[["class","label","property","content","optionValuePath","optionLabelPath","prompt","selected"],["col-xs-4 required test-add-visit",["helper",["t"],["labels.visit"],null],"visit",["get",["patientVisitsForSelect"]],"selectObject","selectObject.visitDescription",["helper",["t"],["labels.addNewOutpatientVisit"],null],["get",["model","visit"]]]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["patient-typeahead"],null,[["property","label","content","selection","class"],["patientTypeAhead",["helper",["t"],["labels.patient"],null],["get",["patientList"]],["get",["selectedPatient"]],"col-xs-6 required test-patient-input"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["patient-summary"],null,[["patient","returnTo","returnToContext","disablePatientLink"],[["get",["model","patient"]],"medication.edit",["get",["model","id"]],["get",["model","isNew"]]]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["unless"],[["get",["model","selectPatient"]]],null,13],["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n"],["block",["if"],[["get",["model","selectPatient"]]],null,12],["block",["if"],[["get",["model","isNew"]]],null,11,10],["text"," "],["close-element"],["text","\\n"],["block",["if"],[["get",["isFulfilledOrRequested"]]],null,9,8],["block",["if"],[["get",["isFulfilledOrRequested"]]],null,7],["block",["if"],[["get",["isFulfilled"]]],null,6,4]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],14]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/medication/edit/template.hbs"}})}),define("hospitalrun/medication/index/controller",["exports","hospitalrun/controllers/abstract-paged-controller","hospitalrun/mixins/user-session"],function(e,t,n){e.default=t.default.extend(n.default,{startKey:[],canAdd:function(){return this.currentUserCan("add_medication")}.property(),showActions:function(){return this.currentUserCan("fulfill_medication")}.property()})}),define("hospitalrun/medication/index/route",["exports","ember-i18n","hospitalrun/routes/abstract-index-route"],function(e,t,n){e.default=n.default.extend({modelName:"medication",pageTitle:(0,t.translationMacro)("medication.pageTitle"),searchStatus:"Requested",_getStartKeyFromItem:function(e){var t=e.get("prescriptionDateAsTime"),n=this._getPouchIdFromItem(e),a=e.get("requestedDateAsTime");return[this.get("searchStatus"),a,t,n]},_modelQueryParams:function(){var e=this._getMaxPouchId(),t=this.get("maxValue"),n=this._getMinPouchId(),a=this.get("searchStatus");return{options:{startkey:[a,null,null,n],endkey:[a,t,t,e]},mapReduce:"medication_by_status"}}})}),define("hospitalrun/medication/index/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"oPegl48n",block:'{"statements":[["block",["item-listing"],null,[["paginationProps"],[["get",["paginationProps"]]]],6]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["open-element","a",[]],["static-attr","href","#"],["modifier",["action"],[["get",[null]],"newItem"]],["flush-element"],["append",["helper",["t"],["medication.messages.createNew"],null],false],["close-element"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-info"],["flush-element"],["text","\\n "],["open-element","p",[]],["flush-element"],["append",["helper",["t"],["messages.noItemsFound"],null],false],["text"," "],["block",["if"],[["get",["canAdd"]]],null,0],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-primary"],["modifier",["action"],[["get",[null]],"editItem",["get",["medicationRequest"]]],[["bubbles"],[false]]],["flush-element"],["append",["helper",["t"],["labels.fulfill"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["static-attr","class","clickable"],["modifier",["action"],[["get",[null]],"editItem",["get",["medicationRequest"]]]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["medicationRequest","prescriptionDate"]]],[["format"],["l h:mm A"]]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["medicationRequest","patient","displayName"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["medicationRequest","requestedBy"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["medicationRequest","medicationName"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["medicationRequest","quantity"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["medicationRequest","status"]],false],["close-element"],["text","\\n"],["block",["if"],[["get",["showActions"]]],null,2],["text"," "],["close-element"],["text","\\n"]],"locals":["medicationRequest"]},{"statements":[["text"," "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.actions"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.date"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.patient"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.prescriber"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.medication"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.quantity"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.status"],null],false],["close-element"],["text","\\n"],["block",["if"],[["get",["showActions"]]],null,4],["text"," "],["close-element"],["text","\\n"],["block",["each"],[["get",["model"]]],null,3],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["model"]]],null,5,1]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/medication/index/template.hbs"}})}),define("hospitalrun/medication/return/controller",["exports","ember-i18n","hospitalrun/controllers/abstract-edit-controller","ember","hospitalrun/mixins/fulfill-request","hospitalrun/mixins/inventory-locations","hospitalrun/mixins/patient-submodule","hospitalrun/utils/select-values"],function(e,t,n,a,l,s,i,o){e.default=n.default.extend(l.default,s.default,i.default,{medicationController:a.default.inject.controller("medication"),medicationList:[],lookupListsToUpdate:[{name:"aisleLocationList",property:"model.aisleLocation",id:"aisle_location_list"},{name:"expenseAccountList",property:"model.expenseAccount",id:"expense_account_list"},{name:"warehouseList",property:"model.location",id:"warehouse_list"}],patientMedicationList:[],setNewMedicationList:!1,aisleLocationList:a.default.computed.alias("medicationController.aisleLocationList"),expenseAccountList:a.default.computed.alias("medicationController.expenseAccountList"),warehouseList:a.default.computed.alias("medicationController.warehouseList"),updateCapability:"add_medication",medicationChanged:function(){var e=this.get("model.medication");if(a.default.isEmpty(e))this.set("model.inventoryItem");else{var t=e.get("inventoryItem");this.set("model.inventoryItemTypeAhead",t.get("name")+" - "+t.get("friendlyId")),this.set("model.inventoryItem",t)}a.default.run.later(function(){this.get("model").validate().catch(a.default.K)}.bind(this))}.observes("model.medication"),patientVisitsChanged:function(){var e=this.get("patientVisits");a.default.isEmpty(e)||this.set("model.visit",e.get("firstObject"))}.observes("patientVisits"),showPatientMedicationList:function(){var e=this.get("patientMedicationList");return this.get("patientMedication"),!a.default.isEmpty(e)}.property("patientMedicationList","model.patient","model.visit"),patientMedication:function(){var e=this.get("setNewMedicationList"),t=this.get("model.visit");return e?this.set("setNewMedicationList",!1):a.default.isEmpty(t)||t.get("medication").then(function(e){e=e.filterBy("status","Fulfilled"),this.set("model.medication",e.get("firstObject")),this.set("patientMedicationList",e.map(o.default.selectObjectMap)),this.set("setNewMedicationList",!0)}.bind(this)),this.get("patientMedicationList")}.property("setNewMedicationList","model.patient","model.visit"),_finishUpdate:function(){var e=this.get("model.deliveryAisle"),t=this.get("model.deliveryLocation"),n=this.get("model.inventoryItem");this._findOrCreateLocation(n,t,e).then(function(e){this.set("model.adjustPurchases",!0),this.set("model.inventoryLocations",[e]),this.set("model.markAsConsumed",!0),this.get("model.inventoryItem").then(function(){this.send("fulfillRequest",this.get("model"),!1,!0,!0)}.bind(this))}.bind(this))},actions:{doneFulfillRequest:function(){var e=this.get("i18n");this.updateLookupLists(),this.displayAlert(e.t("medication.alerts.returnedTitle"),e.t("medication.alerts.returnedMessage"),"allItems")},update:function(){var e=this.get("model.medication"),t=this.get("model.quantity");a.default.isEmpty(e)?this._finishUpdate():e.reload().then(function(){e.decrementProperty("quantity",t),e.get("quantity")<0&&e.set("quantity",0),e.save().then(this._finishUpdate.bind(this))}.bind(this))}},updateButtonText:(0,t.translationMacro)("medication.returnMedication")})}),define("hospitalrun/medication/return/route",["exports","ember-i18n","hospitalrun/medication/edit/route","ember"],function(e,t,n,a){e.default=n.default.extend({editTitle:(0,t.translationMacro)("medication.returnMedication"),modelName:"inv-request",newTitle:(0,t.translationMacro)("medication.returnMedication"),getNewData:function(){return a.default.RSVP.resolve({dateCompleted:new Date,selectPatient:!0,transactionType:"Return"})}})}),define("hospitalrun/medication/return/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"1pVA07AY",
+block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],3]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["inventory-typeahead"],null,[["property","label","content","selection","class","showQuantity"],["inventoryItemTypeAhead",["helper",["t"],["labels.medication"],null],["get",["medicationList"]],["get",["selectedInventoryItem"]],"required test-medication-input",false]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-select"],null,[["class","label","property","content","optionValuePath","optionLabelPath","selected"],["required",["helper",["t"],["labels.medication"],null],"medication",["get",["patientMedication"]],"selectObject","selectObject.inventoryItem.name",["get",["model","medication"]]]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["showPatientMedicationList"]]],null,1,0],["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["patient-typeahead"],null,[["property","label","content","selection","class"],["patientTypeAhead",["helper",["t"],["labels.patient"],null],["get",["patientList"]],["get",["selectedPatient"]],"col-xs-6"]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content","optionValuePath","optionLabelPath","selected"],["col-xs-6",["helper",["t"],["labels.visit"],null],"visit",["get",["patientVisitsForSelect"]],"selectObject","selectObject.visitDescription",["get",["model","visit"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["number-input"],null,[["property","label","class"],["quantity",["helper",["t"],["medication.labels.quantityToReturn"],null],"col-xs-3 required test-medication-quantity"]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection","className"],["deliveryLocation",["helper",["t"],["medication.labels.returnLocation"],null],["get",["warehouseList"]],["get",["model","location"]],"col-xs-4"]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection","className"],["deliveryAisle",["helper",["t"],["medication.labels.returnAisle"],null],["get",["aisleLocationList"]],["get",["model","aisleLocation"]],"col-xs-4"]]],false],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["expand-text"],null,[["property","label","rows"],["reason",["helper",["t"],["medication.labels.returnReason"],null],"3"]]],false],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class"],["dateCompleted",["helper",["t"],["medication.labels.adjustmentDate"],null],"col-sm-4"]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection","className"],["expenseAccount",["helper",["t"],["medication.labels.creditToAccount"],null],["get",["expenseAccountList"]],["get",["model","expenseAccount"]],"col-sm-8"]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],2]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/medication/return/template.hbs"}})}),define("hospitalrun/medication/route",["exports","ember-i18n","hospitalrun/routes/abstract-module-route","ember"],function(e,t,n,a){e.default=n.default.extend({addCapability:"add_medication",moduleName:"medication",newButtonText:(0,t.translationMacro)("medication.buttons.newButton"),sectionTitle:(0,t.translationMacro)("medication.sectionTitle"),additionalButtons:function(){var e=this.get("i18n"),t=[];if(this.currentUserCan("fulfill_medication")&&t.push({buttonIcon:"octicon octicon-checklist",buttonAction:"dispenseMedication",buttonText:e.t("medication.buttons.dispenseMedication"),class:"btn btn-primary"}),this.currentUserCan(this.get("addCapability"))&&t.push({buttonIcon:"octicon octicon-mail-reply",buttonAction:"returnMedication",buttonText:e.t("medication.buttons.returnMedication"),class:"btn btn-primary"}),!a.default.isEmpty(t))return t}.property(),additionalModels:[{name:"aisleLocationList",findArgs:["lookup","aisle_location_list"]},{name:"expenseAccountList",findArgs:["lookup","expense_account_list"]},{name:"sexList",findArgs:["lookup","sex"]},{name:"warehouseList",findArgs:["lookup","warehouse_list"]}],actions:{dispenseMedication:function(){this.currentUserCan("fulfill_medication")&&this.transitionTo("medication.edit","dispense")},returnMedication:function(){this.currentUserCan(this.get("addCapability"))&&this.transitionTo("medication.return","new")}}})}),define("hospitalrun/medication/search/route",["exports","hospitalrun/routes/abstract-search-route"],function(e,t){e.default=t.default.extend({moduleName:"medication",searchKeys:[{name:"prescription",type:"contains"}],searchModel:"medication"})}),define("hospitalrun/medication/search/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"T9jkbT1t",block:'{"statements":[["block",["search-listing"],null,[["newButtonText","allButtonText"],[["helper",["t"],["buttons.newRequest"],null],["helper",["t"],["buttons.allRequests"],null]]],0]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["partial","medication/index"],["text","\\n"]],"locals":[]}],"hasPartials":true}',meta:{moduleName:"hospitalrun/medication/search/template.hbs"}})}),define("hospitalrun/mixins/active-link",["exports","ember-cli-active-link-wrapper/mixins/active-link"],function(e,t){e.default=t.default}),define("hospitalrun/mixins/add-new-patient",["exports","ember","hospitalrun/mixins/patient-id"],function(e,t,n){e.default=t.default.Mixin.create(n.default,{customForms:t.default.inject.service(),addedNewPatient:!1,newPatientId:null,actions:{addedNewPatient:function(e){this.send("closeModal"),this.set("addedNewPatient",!0),this.set("model.patient",e),this.set("newPatientId"),this.send("update")}},addNewPatient:function(){var e=this,n=this.get("i18n");this.displayAlert(n.t("alerts.pleaseWait"),n.t("messages.newPatientHasToBeCreated")),this._getNewPatientId().then(function(n){var a=e.get("model.patientTypeAhead"),l=a.split(" "),s={customForms:t.default.Object.create(),friendlyId:n,patientFullName:a,requestingController:e};return e.get("customForms").setDefaultCustomForms(["patient","socialwork"],s).then(function(){var t=void 0;l.length>=3?(s.firstName=l[0],s.middleName=l[1],s.lastName=l.splice(2,l.length).join(" ")):2===l.length?(s.firstName=l[0],s.lastName=l[1]):s.firstName=a,t=e.store.createRecord("patient",s),e.send("openModal","patients.quick-add",t)})})},_getNewPatientId:function(){var e=this.get("newPatientId");return t.default.isEmpty(e)?new t.default.RSVP.Promise(function(e,t){this.generateFriendlyId("patient").then(function(t){this.set("newPatientId",t),e(t)}.bind(this),t)}.bind(this)):t.default.RSVP.resolve(e)}})}),define("hospitalrun/mixins/add-to-patient-route",["exports","ember"],function(e,t){var n=t.default.get,a=t.default.isEmpty,l=t.default.Mixin;e.default=l.create({queryParams:{forPatientId:{refreshModel:!1},forVisitId:{refreshModel:!1}},model:function(e){var t=n(this,"idParam"),l=this._super(e);return"new"===e[t]?a(e.forPatientId)?a(e.forVisitId)?this._createNewRecord(e):this._setVisitOnModel(l,e.forVisitId):this._setPatientOnModel(l,e.forPatientId):l},_setPatientOnModel:function(e,t){var a=n(this,"store");return e.then(function(e){return a.find("patient",t).then(function(n){return e.set("patient",n),e.set("returnToPatient",t),e.set("selectPatient",!1),e})})},_setVisitOnModel:function(e,t){var a=n(this,"store");return e.then(function(e){return a.find("visit",t).then(function(n){return e.set("visit",n),e.set("returnToVisit",t),e.set("selectPatient",!1),e.set("patient",n.get("patient")),e})})}})}),define("hospitalrun/mixins/allergy-actions",["exports","ember"],function(e,t){var n=t.default.get,a=t.default.set;e.default=t.default.Mixin.create({openAllergyModal:function(e){a(e,"editController",this),this.send("openModal","allergy.edit",e)},savePatientAllergy:function(e,t){var a=this;n(e,"allergies").pushObject(t),e.save().then(function(){a.silentUpdate("closeModal")})},deletePatientAllergy:function(e,t){var a=this,l=n(e,"allergies");t.destroyRecord().then(function(){l.removeObject(t),e.save().then(function(){a.send("closeModal")})})},actions:{editAllergy:function(e){this.openAllergyModal(e)},showAddAllergy:function(){var e=n(this,"store").createRecord("allergy");this.openAllergyModal(e)}}})}),define("hospitalrun/mixins/appointment-statuses",["exports","ember","hospitalrun/utils/select-values"],function(e,t,n){e.default=t.default.Mixin.create({appointmentStatusList:["Attended","Scheduled","Canceled","Missed"],appointmentStatuses:t.default.computed.map("appointmentStatusList",n.default.selectValuesMap),appointmentStatusesWithEmpty:function(){return n.default.selectValues(this.get("appointmentStatusList"),!0)}.property()})}),define("hospitalrun/mixins/billing-categories",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({defaultBillingCategories:["Hospital Charges"]})}),define("hospitalrun/mixins/blood-types",["exports","ember","hospitalrun/utils/select-values"],function(e,t,n){e.default=t.default.Mixin.create({bloodTypes:["A+","A-","AB-","AB+","B+","B-","O+","O-"].map(n.default.selectValuesMap)})}),define("hospitalrun/mixins/can-edit-requested",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({canEdit:function(){return"Requested"===this.get("status")}.property("status")})}),define("hospitalrun/mixins/charge-actions",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({chargePricingCategory:null,pricingList:null,pricingTypeForObjectType:null,pricingTypes:null,_createNewChargeRecord:function(e,n){return new t.default.RSVP.Promise(function(t,a){this.store.find("pricing",n).then(function(n){this.store.createRecord("proc-charge",{dateCharged:new Date,quantity:e,pricingItem:n}).save().then(function(e){this.get("model.charges").addObject(e),t()}.bind(this),a)}.bind(this),a)}.bind(this),"_createNewChargeRecord with pricingId:"+n)},actions:{addCharge:function(e){this.get("model.charges").addObject(e);var t="addCharge_"+e.get("id");e.get("medicationCharge")&&(t="addMedication_"+e.get("id")),this.silentUpdate("closeModal",t)},deleteCharge:function(e){var t=this,n=e.get("chargeToDelete");this.get("model.charges").removeObject(n),n.destroyRecord().then(function(){t.silentUpdate("closeModal","deleteCharge")})},showAddCharge:function(){var e=this.get("store").createRecord("proc-charge",{dateCharged:new Date,quantity:1,pricingCategory:this.get("chargePricingCategory")});this.send("openModal",this.get("chargeRoute"),e)},showEditCharge:function(e){e.set("itemName",e.get("pricingItem.name")),e.set("pricingCategory",this.get("chargePricingCategory")),this.send("openModal",this.get("chargeRoute"),e)},showDeleteCharge:function(e){this.send("openModal","dialog",t.default.Object.create({closeModalOnConfirm:!1,confirmAction:"deleteCharge",title:"Delete Charge Item",message:"Are you sure you want to delete this charged item?",chargeToDelete:e,updateButtonAction:"confirm",updateButtonText:this.get("i18n").t("buttons.ok")}))},setChargeQuantity:function(e,t){this.get("model").set(e,t)}},canAddCharge:function(){return this.currentUserCan("add_charge")}.property(),chargesPricingList:function(){var e=this.get("pricingList"),t=this.get("pricingTypeForObjectType");return e.filter(function(e){return e.type!==t})}.property("pricingList","pricingTypeForObjectType"),chargeRoute:null,findChargeForPricingItem:function(e,t){return t.find(function(t){var n=t.get("pricingItem.id");return e.id===n})},objectTypeList:function(){var e=this.get("pricingList"),n=this.get("pricingTypeForObjectType"),a=this.get("userCanAddPricingTypes"),l=t.default.Object.create({value:[],userCanAdd:a});return t.default.isEmpty(e)||l.set("value",e.filterBy("pricingType",n)),l}.property("pricingList","pricingTypeForObjectType","pricingTypeValues"),organizeByType:t.default.computed.alias("pricingTypes.organizeByType"),pricingTypeList:function(){var e=this.get("pricingList"),n=this.get("pricingTypeValues"),a=this.get("pricingTypeForObjectType");if(!t.default.isEmpty(n))return n=n.filter(function(n){var l=!1;return t.default.isEmpty(e)||(l=!t.default.isEmpty(e.findBy("pricingType",n))),l&&n!==a}),n=n.sortBy("name")}.property("pricingTypeValues","pricingTypeForObjectType","pricingList"),pricingTypeValues:t.default.computed.alias("pricingTypes.value"),createMultipleRequests:function(e,t,n,a){var l=e.get("firstObject"),s=this.get("model");s.set(t,l),this.addChildToVisit(s,n,a).then(function(l){s.save().then(function(){this._finishCreateMultipleRequests(e,t,n,a,l)}.bind(this))}.bind(this))},_finishCreateMultipleRequests:function(e,n,a,l,s){var i={},o=this.get("model"),r=void 0,d=[],c=this.get("model.patient"),u=[];o.eachAttribute(function(e){i[e]=o.get(e)}),e.forEach(function(e,t){t>0&&(r=this.store.createRecord(l.toLowerCase(),i),r.set(n,e),r.set("patient",c),r.set("visit",s),d.push(r),u.push(r.save()))}.bind(this)),t.default.RSVP.all(u).then(function(){var e=[];d.forEach(function(t){e.push(this.addChildToVisit(t,a,l))}.bind(this)),t.default.RSVP.all(e).then(function(e){this.afterUpdate(e,!0)}.bind(this))}.bind(this))},saveNewPricing:function(e,n,a){return new t.default.RSVP.Promise(function(t,l){var s=void 0,i=this.get("pricingTypeForObjectType");s=this.store.createRecord("pricing",{name:e,category:n,pricingType:i}),s.save().then(function(e){this.get("pricingList").addObject({id:e.get("id"),name:s.get("name")}),this.set(a,s),t()}.bind(this),l)}.bind(this),"saveNewPricing for: "+e)},getSelectedPricing:function(e){var n=this.get(e);return t.default.isEmpty(n)?t.default.RSVP.resolve():new t.default.RSVP.Promise(function(e,a){t.default.isArray(n)?this.store.findByIds("pricing",n).then(e,a):this.store.find("pricing",n.id).then(e,a)}.bind(this))},showAddCharge:function(){var e=this.get("canAddCharge"),t=this.get("organizeByType");return!!e&&!t}.property("canAddCharge","organizeByType"),showEditCharges:function(){var e=this.get("canAddCharge"),t=this.get("organizeByType");return!!e&&t}.property("canAddCharge","organizeByType"),showPricingTypeTabs:function(){var e=this.get("pricingTypeList");return!t.default.isEmpty(e)&&e.get("length")>1}.property("pricingTypeList"),userCanAddPricingTypes:function(){var e=this.get("pricingTypes");return!!t.default.isEmpty(e)||e.get("userCanAdd")}.property("pricingTypes"),updateCharges:function(){return this.get("organizeByType")?new t.default.RSVP.Promise(function(e,n){var a=this.get("model.charges"),l=[],s=this.get("model");this.get("pricingList").forEach(function(e){var n=this.findChargeForPricingItem(e,s.get("charges")),i=s.get(e.id);t.default.isEmpty(i)?n&&(a.removeObject(n),l.push(n.destroyRecord())):n?n.get("quantity")!==i&&(n.set("quantity",i),l.push(n.save())):l.push(this._createNewChargeRecord(i,e.id))}.bind(this)),t.default.RSVP.all(l,"Charges updated for current record: "+this.get("model.id")).then(e,n)}.bind(this),"updateCharges for current record: "+this.get("model.id")):t.default.RSVP.resolve()}})}),define("hospitalrun/mixins/charge-route",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({database:t.default.inject.service(),actions:{deleteCharge:function(e){this.controller.send("deleteCharge",e)}},pricingList:null,afterModel:function(){return new t.default.RSVP.Promise(function(e,t){var n=this.get("database"),a=n.getMaxPouchId("pricing"),l=n.getMinPouchId("pricing"),s=this.get("pricingCategory"),i={startkey:[s,null,null,l],endkey:[s,{},{},a],include_docs:!0};n.queryMainDB(i,"pricing_by_category").then(function(t){var n=t.rows.map(function(e){return e.doc});this.set("pricingList",n),e()}.bind(this)).catch(t)}.bind(this))},setupController:function(e,t){this._super(e,t),e.set("pricingList",this.get("pricingList"))}})}),define("hospitalrun/mixins/check-for-errors",["exports","ember"],function(e,t){var n=t.default.get,a=t.default.Mixin,l=t.default.RSVP;e.default=a.create({_checkForErrors:function(e){var t=this;return new l.Promise(function(a,l){e.then(a,function(e){var a=n(t,"database");l(a.handleErrorResponse(e))})})}})}),define("hospitalrun/mixins/custom-field-types",["exports","ember"],function(e,t){var n=t.default.computed;e.default=t.default.Mixin.create({fieldTypeValues:["checkbox","radio","select","text","textarea"],fieldTypes:n(function(){var e=this.get("i18n");return this.get("fieldTypeValues").map(function(t){return{id:t,value:e.t("admin.customForms.labels."+t)}}).sort(function(e,n){return t.default.compare(e.value.toString(),n.value.toString())})})})}),define("hospitalrun/mixins/date-format",["exports","ember","moment"],function(e,t,n){e.default=t.default.Mixin.create({_dateFormat:function(e,a){if(t.default.isEmpty(a)&&(a="l"),!t.default.isEmpty(e))return(0,n.default)(e).format(a)},dateToTime:function(e){if(!t.default.isEmpty(e)&&e.getTime)return e.getTime()}})}),define("hospitalrun/mixins/diagnosis-actions",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({editDiagnosis:function(e){e.set("editController",this),this.send("openModal","diagnosis.edit",e)},actions:{deleteDiagnosis:function(e){var t=this;this.get("model.diagnoses").removeObject(e),e.set("archived",!0),e.save().then(function(){t.silentUpdate("closeModal")})},editDiagnosis:function(e){this.editDiagnosis(e)},showAddDiagnosis:function(){var e=this.get("store").createRecord("diagnosis",{date:new Date});this.editDiagnosis(e)}}})}),define("hospitalrun/mixins/dob-days",["exports","ember","moment"],function(e,t,n){e.default=t.default.Mixin.create({convertDOBToText:function(e,t,a){var l=new Date,s=0,i=0,o=0;e&&(void 0===e.getFullYear&&(e=(0,n.default)(e,"l").toDate()),void 0!==e.getFullYear&&(s=l.getFullYear()-e.getFullYear(),(l.getMonth()0?d.t("dates.short",r):d.t("dates.shortOmitYears",r):a?s>1?d.t("dates.longOmitDaysPlural",r):1===s?d.t("dates.longOmitDays",r):d.t("dates.longOmitDaysYears",r):s>1?d.t("dates.longPlural",r):1===s?d.t("dates.long",r):d.t("dates.longOmitYears",r)}})}),define("hospitalrun/mixins/edit-panel-props",["exports","ember"],function(e,t){var n=t.default.computed,a=t.default.isEmpty,l=["actionForUpdateButton","additionalButtons","cancelButtonText","disabledAction","hideCancelButton","showUpdateButton","updateButtonAction","updateButtonIcon","updateButtonText"];e.default=t.default.Mixin.create({additionalButtons:null,cancelButtonText:null,disabledAction:null,hideCancelButton:null,showUpdateButton:null,updateButtonAction:null,updateButtonIcon:null,updateButtonText:null,actionForUpdateButton:n("disabledAction",function(){var e=this.get("disabledAction");return a(e)||!1===e?"updateButtonAction":"disabledAction"}),editPanelProps:n.apply(void 0,l.concat([function(){return this.getProperties(l)}]))})}),define("hospitalrun/mixins/filter-list",["exports","ember"],function(e,t){function n(e,t){return null!=t&&t[Symbol.hasInstance]?t[Symbol.hasInstance](e):e instanceof t}var a=t.default.compare,l=t.default.get,s=t.default.isEmpty,i=t.default.String.isHTMLSafe,o=t.default.set;e.default=t.default.Mixin.create({filterBy:null,filterValue:null,filteredBy:new t.default.Map,sortByDesc:null,sortByKey:null,filterList:function(e,t,a){var o=l(this,"filteredBy");return s(t)&&s(o)?e:(s(t)||o.set(t,a),this.set("filteredBy",o),e.filter(function(e){var t=!0;return o.forEach(function(a,l){var o=e.get(l);s(a)||(i(a)?a=a.toString():n(a,Date)&&(a=a.getTime()),i(o)?o=o.toString():n(o,Date)&&(o=o.getTime()),o!==a&&(t=!1))}),t}))},sortFilteredList:function(e){var t=l(this,"sortByDesc"),n=l(this,"sortByKey");return s(e)||s(n)?e:e=e.toArray().sort(function(e,l){var s=e.get(n),i=l.get(n);return"orderType"===n&&(s=s.toString(),i=i.toString()),t?a(i,s):a(s,i)})},actions:{filter:function(e,t){o(this,"filterBy",e),o(this,"filterValue",t)},sortByKey:function(e,t){this.setProperties({sortByDesc:t,sortByKey:e})}}})}),define("hospitalrun/mixins/friendly-id",["exports","ember"],function(e,t){function n(e,t){return t<1e5&&(t=("00000"+t).slice(-5)),""+e+t}e.sequenceId=n;var a=t.default.get,l=t.default.inject,s=t.default.isEmpty;e.default=t.default.Mixin.create({database:l.service(),sequenceName:null,sequenceView:null,generateFriendlyId:function(e){var t=this,n=a(this,"sequenceName");return this.sequencePrefix().then(function(a){return t.store.find("sequence",n).then(function(n){return t._findUnusedId(n,a,e)}).catch(function(){var l=t.get("store");return l.push(l.normalize("sequence",{id:n,value:1,prefix:a})).save().then(function(n){return t._findUnusedId(n,a,e)})})})},sequencePrefix:function(){var e=this,t=a(this,"sequenceName");return this.store.find("sequence",t).then(function(e){return a(e,"prefix")}).catch(function(){var n=t;return n.indexOf("_")>-1&&(n=n.substr(n.indexOf("_")+1)),e._findNextPrefix(n,0)})},_findNextPrefix:function(e,n){var a=this;return n++,this._findSequenceByPrefix(e,n).then(function(l){return t.default.isEmpty(l.rows)?e.toLowerCase().substr(0,n):a._findNextSequence(e,n)}).catch(function(){return n})},_findSequenceByPrefix:function(e,t){var n=this.get("database"),a={key:e.toLowerCase().substr(0,t)};return n.queryMainDB(a,"sequence_by_prefix")},_findUnusedId:function(e,t,l){var i=this,o=a(this,"database"),r=o.getMaxPouchId(l),d=void 0,c=void 0,u=a(this,"sequenceView");d=e.get("value"),c=n(t,d);var p={startkey:[c,null],endkey:[c,r]};return o.queryMainDB(p,u).then(function(n){return s(n.rows)?e.get("hasDirtyAttributes")?e.save().then(function(){return c}):c:(e.incrementProperty("value"),i._findUnusedId(e,t,l))})}})}),define("hospitalrun/mixins/fulfill-request",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({actions:{doneFulfillRequest:function(){},fulfillRequest:function(e,t,n,a){this.performFulfillRequest(e,t,n,a)}},performFulfillRequest:function(e,n,a,l){return new t.default.RSVP.Promise(function(s,i){var o=e.get("markAsConsumed"),r=e.get("transactionType");"Request"===r&&(r=null),e.get("inventoryItem").then(function(d){o?(e.set("adjustPurchases",!0),t.default.isEmpty(r)&&e.set("transactionType","Fulfillment"),this._performFulfillment(e,d,a).then(function(){this._finishFulfillRequest(e,d,n,a,l),s()}.bind(this),i)):(e.set("adjustPurchases",!1),t.default.isEmpty(r)&&e.set("transactionType","Transfer"),this._finishFulfillRequest(e,d,n,a,l),s())}.bind(this),i)}.bind(this))},_findQuantity:function(e,t,n,a){var l=void 0,s=[],i=n.get("quantity"),o=parseInt(e.get("quantity")),r=o,d=[],c=0;if(a){var u=t.get("lastObject");l=u.get("costPerUnit"),u.incrementProperty("currentQuantity",o),c+=l*r,d.push({id:u.get("id"),quantity:o}),s.addObject(u)}else{if(!t.any(function(e){var t=e.get("currentQuantity");return!(e.get("expired")||t<=0)&&(l=e.get("costPerUnit"),!!a||(r>t?(c+=l*t,r-=t,d.push({id:e.get("id"),quantity:parseInt(t)}),t=0):(c+=l*r,t-=r,d.push({id:e.get("id"),quantity:parseInt(r)}),r=0),e.set("currentQuantity",t),s.addObject(e),0===r))}))return"Could not find any purchases that had the required quantity: "+o}return e.set("costPerUnit",(c/o).toFixed(2)),e.set("quantityAtCompletion",i),e.set("purchasesAffected",d),e.set("purchases",s),n.updateQuantity(),!0},_finishFulfillRequest:function(e,n,a,l,s){var i=e.get("inventoryLocations"),o=[],r=e.get("markAsConsumed"),d=[],c=parseInt(e.get("quantity")),u=e.get("purchases");if(l){var p=i.get("firstObject");p.incrementProperty("quantity",c),d.push(p.save()),o.push({name:p.get("locationName"),quantity:c})}else i.reduce(function(t,a){var l=e.get("deliveryLocation"),s=e.get("deliveryAisle"),i=parseInt(a.get("quantity"));if(t>0)return r||(a.set("transferAisleLocation",s),a.set("transferLocation",l)),i>=t?(r?(a.decrementProperty("quantity",t),d.push(a.save())):(a.set("adjustmentQuantity",t),d.push(this.transferToLocation(n,a))),o.push({name:a.get("locationName"),quantity:t}),0):(r?(a.decrementProperty("quantity",i),d.push(a.save())):(a.set("adjustmentQuantity",i),d.push(this.transferToLocation(n,a))),o.push({name:a.get("locationName"),quantity:i}),t-i)}.bind(this),c);e.set("locationsAffected",o),r&&u.forEach(function(e){d.push(e.save())}),t.default.RSVP.all(d,"Preliminary saving done for inventory fulfillment").then(function(){var l=[];l.push(n.save()),e.set("status","Completed"),e.set("completedBy",e.getUserName()),l.push(e.save()),t.default.RSVP.all(l,"All saving done for inventory fulfillment").then(function(){this.send("doneFulfillRequest"),a&&this.send("closeModal"),s||this.transitionTo("inventory.index")}.bind(this))}.bind(this))},_performFulfillment:function(e,n,a){return new t.default.RSVP.Promise(function(t,l){var s=n.get("purchases"),i=n.get("quantity"),o=e.get("quantity");if(a||i>=o){var r=this._findQuantity(e,s,n,a);!0===r?t():l(r)}else l("The quantity on hand, "+i+" is less than the requested quantity of "+o+".")}.bind(this))}})}),define("hospitalrun/mixins/hospitalrun-version",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({version:"1.0.0-beta"})}),define("hospitalrun/mixins/incident-statuses",["exports","ember"],function(e,t){var n=t.default.get;e.ACTIVE="Active";e.CLOSED="Closed";e.FOLLOW_UP="Followup";e.REPORTED="Reported",e.default=t.default.Mixin.create({statusList:["Active","Closed","Followup","Reported"],getLocalizedStatus:function(e){return n(this,"i18n").t("incident.labels.status"+e)}})}),define("hospitalrun/mixins/inventory-adjustment-types",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({adjustmentTypes:function(){var e=this.get("i18n");return[{name:e.t("inventory.labels.addAdjustmentType").toString(),type:"Adjustment (Add)"},{name:e.t("inventory.labels.removeAdjustmentType").toString(),type:"Adjustment (Remove)"},{name:e.t("inventory.labels.returnToVendorAdjustmentType").toString(),type:"Return To Vendor"},{name:e.t("inventory.labels.returnAdjustmentType").toString(),type:"Return"},{name:e.t("inventory.labels.writeOffAdjustmentType").toString(),type:"Write Off"}]}.property()})}),define("hospitalrun/mixins/inventory-id",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({generateId:function(){var e=(new Date).getTime(),n=Math.floor(999*Math.random())+1;return t.default.RSVP.resolve(e.toString(36)+"_"+n.toString(36))}})}),define("hospitalrun/mixins/inventory-locations",["exports","ember","npm:uuid"],function(e,t,n){e.default=t.default.Mixin.create({aisleToFind:null,locationToFind:null,_addQuantityToLocation:function(e,n,a,l){return new t.default.RSVP.Promise(function(t,s){this._findOrCreateLocation(e,a,l).then(function(e){e.incrementProperty("quantity",n),e.save().then(t,s)})}.bind(this))},_findOrCreateLocation:function(e,a,l){return new t.default.RSVP.Promise(function(t,s){var i=this,o=!1,r=e.get("locations");this.set("aisleToFind",l),this.set("locationToFind",a),o=r.find(this.findLocation,this),o?t(o):function(){var e=i.get("store").createRecord("inv-location",{id:n.default.v4(),aisleLocation:l,location:a,quantity:0});r.addObject(e),e.save().then(function(){t(e)},s)}()}.bind(this))},findLocation:function(e){var n=e.get("aisleLocation"),a=this.get("aisleToFind"),l=e.get("location"),s=this.get("locationToFind");if((t.default.isEmpty(n)&&t.default.isEmpty(a)||n===a)&&(t.default.isEmpty(l)&&t.default.isEmpty(s)||l===s))return!0},newPurchaseAdded:function(e,n){return new t.default.RSVP.Promise(function(t,a){var l=n.get("aisleLocation"),s=n.get("location"),i=parseInt(n.get("originalQuantity"));this._addQuantityToLocation(e,i,s,l).then(t,a)}.bind(this))},saveLocation:function(e,t){if(0===e.get("quantity")){return t.get("locations").removeObject(e),e.destroyRecord()}return e.save()},transferToLocation:function(e,n){var a=n.get("transferAisleLocation"),l=n.get("transferLocation"),s=parseInt(n.get("adjustmentQuantity"));return new t.default.RSVP.Promise(function(t,i){this._addQuantityToLocation(e,s,l,a).then(function(){n.decrementProperty("quantity",s),n.save().then(t,i)},i)}.bind(this))}})}),define("hospitalrun/mixins/inventory-type-list",["exports","ember","hospitalrun/utils/select-values"],function(e,t,n){e.default=t.default.Mixin.create({defaultInventoryTypes:["Medication","Supply"],inventoryTypes:function(){var e=this.get("defaultInventoryTypes"),a=this.get("inventoryTypeList"),l=void 0;return l=t.default.isEmpty(a)?e:a,l=n.default.selectValues(l)}.property("inventoryTypeList","defaultInventoryTypes")})}),define("hospitalrun/mixins/is-update-disabled",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({isUpdateDisabled:function(){return!t.default.isNone(this.get("model.isValid"))&&!this.get("model.isValid")}.property("model.isValid")})}),define("hospitalrun/mixins/location-name",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({getDisplayLocationName:function(e,n){var a=this.formatLocationName(e,n);return t.default.isEmpty(a)&&(a="No Location"),a},formatLocationName:function(e,n){var a="";return t.default.isEmpty(e)||(a+=e,t.default.isEmpty(n)||(a+=" : ")),t.default.isEmpty(n)||(a+=n),a},locationName:function(){var e=this.get("aisleLocation"),t=this.get("location");return this.getDisplayLocationName(t,e)}.property("location","aisleLocation")})}),define("hospitalrun/mixins/map-oauth-params",["exports","ember"],function(e,t){var n=t.default.Mixin;e.default=n.create({mapOauthParams:function(e){return{config_consumer_key:e.k,config_consumer_secret:e.s1,config_oauth_token:e.t,config_token_secret:e.s2}}})}),define("hospitalrun/mixins/medication-details",["exports","ember","ember-data"],function(e,t,n){var a=t.default.isEmpty;e.default=t.default.Mixin.create({getMedicationName:function(e){var n=this,l=this.get("medicationTitle");if(!t.default.isEmpty(l))return l;var s=this.get(e);s.then?s.then(function(e){a(e)||n.set("medicationTitle",e.get("name"))}).catch(function(e){console.log("error getting inventory item for medication name:",e)}):this.set("medicationTitle",s.get("name"))},getMedicationPrice:function(e){var n=this,a=this.get("priceOfMedication");if(!t.default.isEmpty(a))return a;var l=this.get(e);l.then?l.then(function(e){n.set("priceOfMedication",e.get("price"))}):this.set("priceOfMedication",l.get("price"))},getMedicationDetails:function(e){var n=this;return new t.default.RSVP.Promise(function(a){var l=n.get("medicationTitle"),s=n.get("priceOfMedication");if(t.default.isEmpty(l)||t.default.isEmpty(s)){var i=n.get(e);i.then?i.then(function(e){a({name:e.get("name"),price:e.get("price")})}):a({name:i.get("name"),price:i.get("price")})}else a({name:l,price:s})})},medicationTitle:n.default.attr("string"),priceOfMedication:n.default.attr("number"),rxNormIdentifier:n.default.attr("string")})}),define("hospitalrun/mixins/modal-helper",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({displayAlert:function(e,n,a,l,s){var i=this.get("i18n"),o=t.default.Object.extend({updateButtonText:i.t("buttons.ok")});this.send("openModal","dialog",o.create({cancelAction:s,hideCancelButton:!0,message:n,okAction:a,okContext:l,title:e,updateButtonAction:"ok"}))},displayConfirm:function(e,n,a,l){var s=this.get("i18n");t.default.isEmpty(l)&&(l=t.default.Object.create()),l.set("confirmAction",a),l.set("title",e),l.set("message",n),l.set("updateButtonAction","confirm"),l.set("updateButtonText",s.t("buttons.ok")),this.send("openModal","dialog",l)}})}),define("hospitalrun/mixins/navigation",["exports","ember"],function(e,t){
+var n=t.default.String.camelize,a=t.default.get,l=t.default.isEqual,s=t.default.set;e.default=t.default.Mixin.create({navItems:[{title:"Inventory",iconClass:"octicon-package",route:"inventory.index",capability:"inventory",subnav:[{title:"Requests",iconClass:"octicon-chevron-right",route:"inventory.index",capability:"add_inventory_request"},{title:"Items",iconClass:"octicon-chevron-right",route:"inventory.listing",capability:"inventory"},{title:"Inventory Received",iconClass:"octicon-plus",route:"inventory.batch",subroute:"new",capability:"add_inventory_item"},{title:"Reports",iconClass:"octicon-chevron-right",route:"inventory.reports",capability:"inventory"}]},{title:"Patients",iconClass:"octicon-organization",route:"patients.index",capability:"patients",subnav:[{title:"Patient Listing",iconClass:"octicon-chevron-right",route:"patients.index",capability:"patients"},{title:"Admitted Patients",iconClass:"octicon-chevron-right",route:"patients.admitted",capability:"patients"},{title:"Outpatient",iconClass:"octicon-chevron-right",route:"patients.outpatient",capability:"patients"},{title:"New Patient",iconClass:"octicon-plus",route:"patients.edit",subroute:"new",capability:"add_patient"},{title:"Reports",iconClass:"octicon-chevron-right",route:"patients.reports",capability:"patients"}]},{title:"Scheduling",iconClass:"octicon-calendar",route:"appointments.index",capability:"appointments",subnav:[{title:"Appointments This Week",iconClass:"octicon-chevron-right",route:"appointments.index",capability:"appointments"},{title:"Today's Appointments",iconClass:"octicon-chevron-right",route:"appointments.today",capability:"appointments"},{title:"Appointment Search",iconClass:"octicon-search",route:"appointments.search",capability:"appointments"},{title:"Appointments Calendar",iconClass:"octicon-calendar",route:"appointments.calendar",capability:"appointments"},{title:"Add Appointment",iconClass:"octicon-plus",route:"appointments.edit",subroute:"new",capability:"add_appointment"},{title:"Theater Schedule",iconClass:"octicon-calendar",route:"appointments.theater",capability:"appointments"},{title:"Schedule Surgery",iconClass:"octicon-plus",route:"appointments.edit",subroute:"newsurgery",capability:"add_appointment"}]},{title:"Imaging",iconClass:"octicon-device-camera",route:"imaging.index",capability:"imaging",subnav:[{title:"Requests",iconClass:"octicon-chevron-right",route:"imaging.index",capability:"imaging"},{title:"Completed",iconClass:"octicon-chevron-right",route:"imaging.completed",capability:"imaging"},{title:"New Request",iconClass:"octicon-plus",route:"imaging.edit",subroute:"new",capability:"add_imaging"}]},{title:"Medication",iconClass:"octicon-file-text",route:"medication.index",capability:"medication",subnav:[{title:"Requests",iconClass:"octicon-chevron-right",route:"medication.index",capability:"medication"},{title:"Completed",iconClass:"octicon-chevron-right",route:"medication.completed",capability:"medication"},{title:"New Request",iconClass:"octicon-plus",route:"medication.edit",subroute:"new",capability:"add_medication"},{title:"Dispense",iconClass:"octicon-checklist",route:"medication.edit",subroute:"dispense",capability:"fulfill_medication"},{title:"Return Medication",iconClass:"octicon-mail-reply",route:"medication.return",subroute:"new",capability:"add_medication"}]},{title:"Labs",iconClass:"octicon-microscope",route:"labs.index",capability:"labs",subnav:[{title:"Requests",iconClass:"octicon-chevron-right",route:"labs.index",capability:"labs"},{title:"Completed",iconClass:"octicon-chevron-right",route:"labs.completed",capability:"labs"},{title:"New Request",iconClass:"octicon-plus",route:"labs.edit",subroute:"new",capability:"add_lab"}]},{title:"Billing",iconClass:"octicon-credit-card",route:"invoices.index",capability:"invoices",subnav:[{title:"Invoices",iconClass:"octicon-chevron-right",route:"invoices.index",capability:"invoices"},{title:"New Invoice",iconClass:"octicon-plus",route:"invoices.edit",subroute:"new",capability:"invoices"},{title:"Prices",iconClass:"octicon-chevron-right",route:"pricing.index",capability:"pricing"},{title:"Price Profiles",iconClass:"octicon-chevron-right",route:"pricing.profiles",capability:"pricing"},{title:"Cashier",iconClass:"octicon-chevron-right",route:"invoices.cashier",capability:"invoices"}]},{title:"Incident",iconClass:"octicon-package",route:"incident",capability:"incident",subnav:[{title:"Current Incidents",iconClass:"octicon-chevron-right",route:"incident.index",capability:"add_incident"},{title:"New Incident",iconClass:"octicon-plus",route:"incident.edit",subroute:"new",capability:"add_incident"},{title:"History",iconClass:"octicon-chevron-right",route:"incident.completed",capability:"add_incident"},{title:"Reports",iconClass:"octicon-chevron-right",route:"incident.reports",capability:"generate_incident_report"}]},{title:"Administration",iconClass:"octicon-person",route:"admin.lookup",capability:"admin",subnav:[{title:"Address Fields",iconClass:"octicon-chevron-right",route:"admin.address",capability:"update_config"},{title:"Custom Forms",iconClass:"octicon-chevron-right",route:"admin.custom-forms",capability:"update_config"},{title:"Incident Categories",iconClass:"octicon-chevron-right",route:"inc-category",capability:"add_incident_category"},{title:"Load DB",iconClass:"octicon-plus",route:"admin.loaddb",capability:"load_db"},{title:"Lookup Lists",iconClass:"octicon-chevron-right",route:"admin.lookup",capability:"update_config"},{title:"Text Replacements",iconClass:"octicon-plus",route:"admin.textreplace",capability:"update_config"},{title:"Print Header",iconClass:"octicon-chevron-right",route:"admin.print-header",capability:"update_config"},{title:"Users",iconClass:"octicon-chevron-right",route:"users",capability:"users"},{title:"New User",iconClass:"octicon-plus",route:"users.edit",subroute:"new",capability:"add_user"},{title:"User Roles",iconClass:"octicon-chevron-right",route:"admin.roles",capability:"define_user_roles"}]}],localizedNavItems:t.default.computed("navItems.[]",function(){var e=function(e,t){return"string"==typeof e?t:e},t=a(this,"i18n");return a(this,"navItems").map(function(a){var l="navigation."+n(a.title).toLowerCase(),i=t.t(l);return s(a,"localizedTitle",e(i,a.title)),s(a,"subnav",a.subnav.map(function(a){var l="navigation.subnav."+n(a.title),i=t.t(l);return s(a,"localizedTitle",e(i,a.title)),a})),a})}),findNavItemByRoute:function(e){for(var t=0;t0},_round100:function(e){var t=100*e;return Math.round(t)/100}})}),define("hospitalrun/mixins/oauth-headers",["exports","ember"],function(e,t){var n=t.default.Mixin;e.default=n.create({getOAuthHeaders:function(e){return{"x-oauth-consumer-secret":e.config_consumer_secret,"x-oauth-consumer-key":e.config_consumer_key,"x-oauth-token-secret":e.config_token_secret,"x-oauth-token":e.config_oauth_token}}})}),define("hospitalrun/mixins/operative-plan-statuses",["exports","ember"],function(e,t){var n=t.default.computed;e.COMPLETED_STATUS="completed";e.DROPPED_STATUS="dropped";e.PLANNED_STATUS="planned";var a=["completed","dropped","planned"];e.default=t.default.Mixin.create({planStatuses:n(function(){var e=this.get("i18n");return a.map(function(t){return{id:t,value:e.t("operativePlan.labels."+t+"Status")}}).sort(function(e,n){return t.default.compare(e.value.toString(),n.value.toString())})})})}),define("hospitalrun/mixins/pagination-props",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({paginationProps:function(){var e=["disableNextPage","disablePreviousPage","showFirstPageButton","showLastPageButton","showPagination"];return this.getProperties(e)}.property("disableNextPage","disablePreviousPage","showFirstPageButton","showLastPageButton","showPagination")})}),define("hospitalrun/mixins/paging-actions",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({firstPage:"firstPage",lastPage:"lastPage",nextPage:"nextPage",previousPage:"previousPage",actions:{firstPage:function(){this.sendAction("firstPage")},lastPage:function(){this.sendAction("lastPage")},nextPage:function(){this.sendAction("nextPage")},previousPage:function(){this.sendAction("previousPage")}}})}),define("hospitalrun/mixins/patient-appointments",["exports","ember","hospitalrun/mixins/pouchdb"],function(e,t,n){e.default=t.default.Mixin.create(n.default,{getPatientAppointments:function(e){var t=e.get("id"),n=this.get("maxValue");return this.store.query("appointment",{options:{startkey:[t,null,null,"appointment_"],endkey:[t,n,n,n]},mapReduce:"appointments_by_patient"})}})}),define("hospitalrun/mixins/patient-diagnosis",["exports","ember"],function(e,t){var n=t.default.isEmpty;e.default=t.default.Mixin.create({_addDiagnosisToList:function(e,n){t.default.isEmpty(e)||t.default.isEmpty(n.findBy("description",e))&&n.addObject(e)},getDiagnoses:function(e,t,a){var l=this,s=arguments.length<=3||void 0===arguments[3]?"diagnoses":arguments[3],i=[];if(!n(e)){var o=e.get(s);return o=o.filterBy("archived",!1),t&&(o=o.filterBy("active",!0)),a||(a=!1),o=o.filterBy("secondaryDiagnosis",a),o.forEach(function(e){l._addDiagnosisToList(e,i)}),i}}})}),define("hospitalrun/mixins/patient-id",["exports","ember","hospitalrun/mixins/friendly-id"],function(e,t,n){var a=t.default.get,l=t.default.inject;e.default=t.default.Mixin.create(n.default,{config:l.service(),sequenceName:"patient",sequenceView:"patient_by_display_id",sequencePrefix:function(){return a(this,"config").getPatientPrefix()}})}),define("hospitalrun/mixins/patient-invoices",["exports","ember","hospitalrun/mixins/pouchdb"],function(e,t,n){e.default=t.default.Mixin.create(n.default,{getPatientInvoices:function(e){var t=e.get("id");return this.store.query("invoice",{options:{key:t},mapReduce:"invoice_by_patient"})}})}),define("hospitalrun/mixins/patient-list-route",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({database:t.default.inject.service(),_fetchPatientList:function(e){var t={startkey:"patient_",endkey:"patient_",include_docs:!0};this.get("database").queryMainDB(t).then(function(t){if(t.rows){var n=t.rows.map(function(e){return e.doc});e.set("patientList",n)}})},actions:{returnToPatient:function(){this.controller.send("returnToPatient"),this.controller.send("closeModal")},returnToVisit:function(){this.controller.send("returnToVisit")}},setupController:function(e,t){this._super(e,t),this._fetchPatientList(e)}})}),define("hospitalrun/mixins/patient-name",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({getPatientDisplayId:function(e){var n=t.default.get(e,"externalPatientId"),a=t.default.get(e,"friendlyId"),l=t.default.get(e,"id");return t.default.isEmpty(a)?t.default.isEmpty(n)?l:n:a},getPatientDisplayName:function(e,n){var a=t.default.get(e,"firstName"),l=t.default.get(e,"lastName"),s=t.default.get(e,"middleName"),i=[];return t.default.isEmpty(a)||i.push(a),t.default.isEmpty(s)||n||i.push(s),t.default.isEmpty(l)||i.push(l),i.join(" ")}})}),define("hospitalrun/mixins/patient-notes",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({canAddNote:function(){return this.currentUserCan("add_note")&&(!t.default.isEmpty(this.get("visits"))||!t.default.isEmpty(this.get("model.visits")))},canDeleteNote:function(){return this.currentUserCan("delete_note")},_computeNoteType:function(e){switch(e.get("visitType")){case"Admission":return t.default.isEmpty(e.get("procedures"))?"Pre-op":"Post-op";case"Clinic":case"Followup":return"General";default:return e.get("visitType")}},_setNoteType:function(){var e=this.get("model");null==e.get("noteType")&&e.set("noteType",this._computeNoteType(e.get("visit")))}})}),define("hospitalrun/mixins/patient-submodule",["exports","ember-data","ember","hospitalrun/mixins/patient-visits","hospitalrun/utils/select-values"],function(e,t,n,a,l){var s=n.default.get,i=n.default.isEmpty;e.default=n.default.Mixin.create(a.default,{findPatientVisits:!0,needToUpdateVisit:!1,patientList:null,selectedPatient:null,newVisitAdded:null,actions:{showPatient:function(e){this.transitionToRoute("patients.edit",e)},returnToAllItems:function(){this._cancelUpdate(),this.send("allItems")},returnToPatient:function(){this._cancelUpdate(),this.transitionToRoute("patients.edit",this.get("model.returnToPatient"))},returnToVisit:function(){this._cancelUpdate(),this.transitionToRoute("visits.edit",this.get("model.returnToVisit"))},selectedPatientChanged:function(e){var t=this;n.default.isEmpty(e)?(this.set("model.patient",null),this.patientSelected()):this.store.find("patient",e.id).then(function(e){t.set("model.patient",e),t.patientSelected(e),n.default.run.once(t,function(){this.get("model").validate().catch(n.default.K)})})}},addChildToVisit:function(e,t,a){return new n.default.RSVP.Promise(function(l,s){var i=this.get("model.visit");n.default.isEmpty(i)?i=this.createNewVisit(a).then(function(n){this._finishAddChildToVisit(e,t,n,l,s)}.bind(this),s):this._finishAddChildToVisit(e,t,i,l,s)}.bind(this))},addDiagnosisToModelAndPatient:function(e){var t=this;this.get("model.diagnoses").addObject(e);var n=this.get("model.patient.diagnoses");n.any(function(t){return!0===t.get("active")&&t.get("diagnosis")===e.get("diagnosis")&&t.get("secondaryDiagnosis")===e.get("secondaryDiagnosis")})?this.silentUpdate("closeModal"):function(){var a=t._copyDiagnosis(e);a.save().then(function(){n.addObject(a),t.get("model.patient").save().then(function(){t.silentUpdate("closeModal")})})}()},_finishAddChildToVisit:function(e,t,n,a,l){n.get(t).then(function(t){t.addObject(e),this.set("needToUpdateVisit",!0),a(n)}.bind(this),l)},cancelAction:function(){var e=this.get("model.returnToPatient"),t=this.get("model.returnToVisit");return i(t)?i(e)?"returnToAllItems":"returnToPatient":"returnToVisit"}.property("model.returnToPatient","model.returnToVisit"),createNewVisit:function(e){return new n.default.RSVP.Promise(function(t,n){var a=this.get("model"),l=a.get("patient"),s=this.get("store").createRecord("visit",{startDate:new Date,endDate:new Date,outPatient:!0,patient:l,visitType:e});a.set("visit",s),s.save().then(function(){s.reload().then(function(e){this.set("newVisitAdded",e),a.set("visit",e),t(e)}.bind(this),n)}.bind(this),n).catch(function(e){console.log("Error creating new visit"),n(e)}.bind(this))}.bind(this))},deleteChildFromVisit:function(e){var t=this,n=this.get("model");n.set("archived",!0),this.removeChildFromVisit(n,e).then(function(){n.save().then(function(){n.unloadRecord(),t.send("closeModal")})})},getPatientDiagnoses:function(e,t){var n=this,a=e.get("diagnoses"),l=void 0;i(a)||(l=a.filterBy("active",!0).map(function(e){return n._copyDiagnosis(e)}));var o=s(t,"diagnoses");o.clear(),i(l)||o.addObjects(l)},patientId:n.default.computed.alias("model.patient.id"),patientSelected:function(){},patientVisits:function(){var e=this.get("model.patient"),a=void 0;return a=!n.default.isEmpty(e)&&this.get("findPatientVisits")?this.getPatientVisits(e):n.default.RSVP.resolve([]),t.default.PromiseArray.create({promise:a})}.property("model.patient.id","newVisitAdded"),patientProcedures:n.default.computed("patientVisits.[]",function(){var e=this,n=s(this,"model.patient");return t.default.PromiseArray.create({promise:s(this,"patientVisits").then(function(t){return s(n,"operationReports").then(function(n){return e._getPatientProcedures(n,t)})})})}),patientVisitsForSelect:function(){return t.default.PromiseArray.create({promise:this.get("patientVisits").then(function(e){return e.map(l.default.selectObjectMap)})})}.property("patientVisits.[]"),removeChildFromVisit:function(e,t){return new n.default.RSVP.Promise(function(a,l){var s=[],i=this.get("model.visit");s.addObjects(this.resolveVisitChildren()),n.default.RSVP.all(s,"Resolved visit children before removing "+t).then(function(){i.get(t).then(function(t){t.removeObject(e),i.save().then(a,l)}.bind(this),l)}.bind(this),l)}.bind(this))},resolveVisitChildren:function(){var e=[],t=this.get("model.visit");return n.default.isEmpty(t)||(e.push(t.get("imaging")),e.push(t.get("labs")),e.push(t.get("medication")),e.push(t.get("procedures")),e.push(t.get("vitals")),e.push(t.get("reports"))),e},saveNewDiagnoses:function(){var e=this.get("model.diagnoses");if(e=e.filterBy("isNew",!0),i(e))return n.default.RSVP.resolve();var t=e.map(function(e){return e.save()});return n.default.RSVP.all(t)},saveVisitIfNeeded:function(e,t,n){this.get("needToUpdateVisit")?this.get("model.visit").save().then(function(){this.set("needToUpdateVisit",!1),this.displayAlert(e,t,n)}.bind(this)):this.displayAlert(e,t,n)},visitId:n.default.computed.alias("model.visit.id"),visitsController:n.default.computed.alias("controllers.visits"),_copyDiagnosis:function(e){var t=["date","diagnosis","secondaryDiagnosis"];return this.store.createRecord("diagnosis",e.getProperties(t))}})}),define("hospitalrun/mixins/patient-visits",["exports","ember","hospitalrun/mixins/pouchdb","hospitalrun/utils/visit-statuses","ember-data","moment"],function(e,t,n,a,l,s){var i=function(){function e(e,t){var n=[],a=!0,l=!1,s=void 0;try{for(var i,o=e[Symbol.iterator]();!(a=(i=o.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){l=!0,s=e}finally{try{!a&&o.return&&o.return()}finally{if(l)throw s}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=t.default.isEmpty,r=t.default.get;e.default=t.default.Mixin.create(n.default,{getPatientVisits:function(e){var t=this.get("maxValue"),n=e.get("id");return this.store.query("visit",{options:{startkey:[n,null,null,null,"visit_"],endkey:[n,t,t,t,t]},mapReduce:"visit_by_patient",debug:!0})},getPatientFutureAppointment:function(e,t){var n=r(e,"patient.id"),a=r(e,"startDate"),o=r(this,"maxValue"),d=this.store.query("appointment",{options:{startkey:[n,null,null,"appointment_"],endkey:[n,o,o,o]},mapReduce:"appointments_by_patient"}).then(function(e){var n=e.filter(function(e){var t=r(e,"startDate");return t&&(0,s.default)(t).isAfter((0,s.default)(a),"day")}).sortBy("startDate");return n.length?t?n.slice(0,3):i(n,1)[0]:null});return t?l.default.PromiseArray.create({promise:d}):l.default.PromiseObject.create({promise:d})},_getVisitCollection:function(e,n){var a=[];return t.default.isEmpty(e)||e.forEach(function(e){r(e,n).then(function(e){a.addObjects(e)})}),a},_getPatientProcedures:function(e,t){var n=this._getVisitCollection(t,"procedures");return e.forEach(function(e){var t=r(e,"procedures"),a=r(e,"surgeryDate");t.forEach(function(t){n.addObject({description:r(t,"description"),procedureDate:a,report:e})})}),n},checkoutVisit:function(e,t){var n=this;return e.set("status",t),e.set("endDate",new Date),e.save().then(function(l){return n.updatePatientVisitFlags(l).then(function(){var l=n.get("i18n"),s={patientName:e.get("patient.displayName")},i=void 0,o=void 0;t===a.default.CHECKED_OUT?(i=l.t("visits.messages.checkedOut",s),o=l.t("visits.titles.checkedOut")):(i=l.t("visits.messages.discharged",s),o=l.t("visits.titles.discharged")),n.displayAlert(o,i)})})},updatePatientVisitFlags:function(e){var n=e.get("patient"),l=n.get("admitted"),s=n.get("checkedIn"),i=this.get("model.status");return i!==a.default.ADMITTED||l?i!==a.default.CHECKED_IN||s?i===a.default.CHECKED_OUT&&s?this._updateUnlessVisitStatusExists(n,a.default.CHECKED_IN,"checkedIn"):i===a.default.DISCHARGED&&l?this._updateUnlessVisitStatusExists(n,a.default.ADMITTED,"admitted"):t.default.RSVP.resolve():(n.set("checkedIn",!0),n.save()):(n.set("admitted",!0),n.save())},_updateUnlessVisitStatusExists:function(e,t,n){return this.getPatientVisits(e).then(function(a){if(o(a.findBy("status",t)))return e.set(n,!1),e.save()})}})}),define("hospitalrun/mixins/payment-profiles",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({paymentProfiles:["Private","Discounted","Free"]})}),define("hospitalrun/mixins/pikaday-component",["exports","ember"],function(e,t){var n=t.default.get,a=t.default.isEmpty,l=t.default.set;e.default=t.default.Mixin.create({_picker:null,currentDate:null,dateSetAction:null,format:"l",maxDate:null,minDate:null,originalPropery:null,showTime:!1,yearRange:10,dateSet:function(){var e=n(this,"_picker"),t=e.getDate(),s=n(this,"dateSetAction");l(this,"currentDate",t),a(s)||this.sendAction("dateSetAction",t)},didInsertElement:function(){var e=this,s=n(this,"currentDate"),i=this.$("input");i.on("input",function(){a(i.val())&&l(e,"currentDate",null)});var o=null,r=this.getProperties("format","yearRange","showTime");r.onSelect=this.dateSet.bind(this),a(n(this,"minDate"))||(r.minDate=n(this,"minDate"),"now"===r.minDate&&(r.minDate=new Date)),a(n(this,"maxDate"))||(r.maxDate=n(this,"maxDate"),"now"===r.maxDate&&(r.maxDate=new Date)),r.field=i[0],o=new Pikaday(r),t.default.run.next(this,function(){o.setDate(s)}),l(this,"_picker",o)},willDestroyElement:function(){var e=n(this,"_picker");e&&e.destroy(),l(this,"_picker",null)}})}),define("hospitalrun/mixins/pouch-find-indexes",["exports","ember"],function(e,t){var n=t.default.Mixin;e.default=n.create({buildPouchFindIndexes:function(e){[{name:"inventory",fields:["data.crossReference","data.description","data.friendlyId","data.name"]},{name:"invoices",fields:["data.externalInvoiceNumber","data.patientInfo"]},{name:"patient",fields:["data.externalPatientId","data.firstName","data.friendlyId","data.lastName","data.phone"]},{name:"medication",fields:["data.prescription"]},{name:"pricing",fields:["data.name"]}].forEach(function(t){e.createIndex({index:{fields:t.fields,name:t.name}})})}})}),define("hospitalrun/mixins/pouchdb",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({maxValue:""})}),define("hospitalrun/mixins/progress-dialog",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({progressDialog:null,progressDialogDefaults:{showProgress:!0,hideCancelButton:!0,hideUpdateButton:!0,progressBarValue:0,progressBarStyle:"width: 0%;"},progressInterval:500,progressMessage:null,progressTimer:null,progressTitle:null,scheduleProgress:function(e){return t.default.run.later(this,function(){e.apply(this),this.set("progressTimer",this.scheduleProgress(e))},this.get("progressInterval"))},updateProgressBar:function(){var e=this.get("progressDialog"),n=e.get("progressBarValue");n+=10,n>100&&(n=0),e.set("progressBarValue",n);var a=t.default.String.htmlSafe("width: "+n+"%");e.set("progressBarStyle",a)},closeProgressModal:function(){t.default.run.cancel(this.get("progressTimer")),this.send("closeModal")},showProgressModal:function(){var e=t.default.Object.create(this.get("progressDialogDefaults"));e.progressBarStyle=t.default.String.htmlSafe(e.progressBarStyle),e.set("title",this.get("progressTitle")),e.set("message",this.get("progressMessage")),this.set("progressDialog",e),this.set("progressTimer",this.scheduleProgress(this.get("updateProgressBar"))),this.send("openModal","dialog",e)}})}),define("hospitalrun/mixins/publish-statuses",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({publishStatuses:["Draft","Published","Private","Archived"]})});define("hospitalrun/mixins/result-validation",["exports","ember","ember-i18n"],function(e,t,n){e.default=t.default.Mixin.create({validations:{result:{acceptance:{accept:!0,if:function(e){if(!e.get("hasDirtyAttributes"))return!1;var n=e.get("status"),a=e.get("result");return!("Completed"!==n||!t.default.isEmpty(a))},message:(0,n.translationMacro)("errors.result")}}}})}),define("hospitalrun/mixins/return-to",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({cancelAction:function(){var e=this.get("model.returnTo");return t.default.isEmpty(e)?"allItems":"returnTo"}.property("returnTo")})}),define("hospitalrun/mixins/setup-user-role",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({setupUserRole:function(){var e=this.get("session"),n=e.get("data.authenticated.role");return this.get("store").find("user-role",n.dasherize()).then(function(t){e.set("data.authenticated.userCaps",t.get("capabilities"));var n=e.get("store"),a=e.get("data");return n.persist(a),!0}).catch(t.default.K)}})}),define("hospitalrun/mixins/typeahead",["exports","ember-data","ember"],function(e,t,n){function a(e,t){return null!=t&&t[Symbol.hasInstance]?t[Symbol.hasInstance](e):e instanceof t}var l=n.default.computed,s=n.default.observer;e.default=n.default.Mixin.create({_mapContentItems:function(){var e=this,l=this.get("content");if(l){var s=l.filter(function(e){return!n.default.isEmpty(e)});return s=a(l,t.default.RecordArray)?s.map(function(t){var n=t.getProperties(e.get("displayKey"));return n[e.get("selectionKey")]=t,n}):s.map(function(t){var n={};return n[e.get("displayKey")]=t,n})}return[]},mappedContent:l("content",function(){return this._mapContentItems()}),contentChanged:s("content.[]",function(){var e=this.get("bloodhound");e&&(e.clear(),e.add(this._mapContentItems()))}),bloodhound:null,displayKey:"value",selectionKey:"value",hint:!0,highlight:!0,lastHint:null,limit:500,minlength:1,selectedItem:!1,inputElement:null,typeAhead:null,setOnBlur:!0,templates:null,selectedAction:null,_getSource:function(){var e=new Bloodhound({datumTokenizer:Bloodhound.tokenizers.obj.whitespace(this.get("displayKey")),queryTokenizer:Bloodhound.tokenizers.whitespace,local:this.get("mappedContent")});return e.initialize(),this.set("bloodhound",e),e.ttAdapter()},didInsertElement:function(){var e=this,t=this.$("input");this.set("inputElement",t);var a=t.typeahead({autoselect:!0,hint:this.get("hint"),highlight:this.get("highlight"),minLength:this.get("minlength")},{displayKey:this.get("displayKey"),limit:this.get("limit"),source:this._getSource(),templates:this.get("templates")});this.set("typeAhead",a),a.on("typeahead:selected",function(t,n){e.itemSelected(n[e.get("selectionKey")])}),a.on("typeahead:autocompleted",function(t,n){e.itemSelected(n[e.get("selectionKey")])}),this.get("setOnBlur")&&(t.on("keyup",function(){var t=e.$(".tt-hint"),n=t.val();e.set("lastHint",n),e.set("selectedItem",!1)}),t.on("blur",function(t){var a=e.get("selection"),l=t.target.value.trim();n.default.isEmpty(a)||(a.trim&&(a=a.trim()),e.set("selection",a)),e.get("selectedItem")||function(){var s=e.get("lastHint"),i=!1;n.default.isEmpty(s)&&(s=l,i=!0),n.default.isEmpty(l)||n.default.isEmpty(s)?n.default.isEmpty(l)&&e.itemSelected():e.get("bloodhound").search(s,function(n){n.length>0?i&&s.toLowerCase()!==n[0][e.get("displayKey")].toLowerCase()||(e.itemSelected(n[0][e.get("selectionKey")]),t.target.value=n[0][e.get("displayKey")],e.get("model").set(e.get("propertyName"),t.target.value)):l!==a&&e.itemSelected()})}()}))},itemSelected:function(e){this.set("selection",e),this.set("selectedItem",!0);var t=this.get("selectedAction");n.default.isEmpty(t)||this.sendAction("selectedAction",e)},willDestroyElement:function(){this.get("inputElement").typeahead("destroy")}})}),define("hospitalrun/mixins/unit-types",["exports","ember","hospitalrun/utils/select-values"],function(e,t,n){e.default=t.default.Mixin.create({defaultUnitList:["ampoule","bag","bottle","box","bundle","capsule","case","container","cream","each","gel","nebule","ointment","pack","pair","pallet","patch","pcs","pill","plastic","polyamp","roll","spray","suppository","suspension","set","syrup","tablet","tray","tube","vial"],unitList:function(){var e=this.get("defaultUnitList"),n=this.get("inventoryUnitList");return t.default.isEmpty(n)?e:n}.property("inventoryUnitList","defaultUnitList"),unitListForSelect:t.default.computed.map("unitList",n.default.selectValuesMap)})}),define("hospitalrun/mixins/user-roles",["exports","ember"],function(e,t){var n=[{name:"Data Entry",roles:["Data Entry","user"],defaultRoute:"patients.index"},{name:"Doctor",roles:["Doctor","user"],defaultRoute:"patients.index"},{name:"Finance",roles:["Finance","user"],defaultRoute:"invoices.index"},{name:"Finance Manager",roles:["Finance Manager","user"],defaultRoute:"invoices.index"},{name:"Hospital Administrator",roles:["Hospital Administrator","user"],defaultRoute:"invoices.index"},{name:"Inventory Manager",roles:["Inventory Manager","user"],defaultRoute:"inventory.index"},{name:"Imaging Technician",roles:["Imaging Technician","user"],defaultRoute:"imaging.index"},{name:"Lab Technician",roles:["Lab Technician","user"],defaultRoute:"labs.index"},{name:"Medical Records Officer",roles:["Medical Records Officer","user"],defaultRoute:"patients.index"},{name:"Nurse",roles:["Nurse","user"],defaultRoute:"patients.index"},{name:"Nurse Manager",roles:["Nurse Manager","user"],defaultRoute:"patients.index"},{name:"Patient Administration",roles:["Patient Administration","user"],defaultRoute:"patients.index"},{name:"Pharmacist",roles:["Pharmacist","user"],defaultRoute:"medication.index"},{name:"Social Worker",roles:["Social Worker","user"],defaultRoute:"patients.index"},{name:"System Administrator",roles:["System Administrator","admin","user"]},{name:"User Administrator",roles:["User Administrator","admin","user"],defaultRoute:"users"},{name:"Cashier",roles:["Cashier","user"],defaultRoute:"invoices.index"}];e.PREDEFINED_USER_ROLES=n,e.default=t.default.Mixin.create({userRoles:n,findUserRole:function(e){return this.userRoles.findBy("name",e)}})}),define("hospitalrun/mixins/user-session",["exports","ember"],function(e,t){e.default=t.default.Mixin.create({session:t.default.inject.service(),defaultCapabilities:{admin:["User Administrator","System Administrator","Quality"],add_allergy:["Data Entry","Doctor","Hospital Administrator","Medical Records Officer","Patient Administration","System Administrator"],appointments:["Data Entry","Finance","Hospital Administrator","Medical Records Officer","Patient Administration","Social Worker","System Administrator","Cashier"],add_appointment:["Data Entry","Finance","Hospital Administrator","Medical Records Officer","Patient Administration","Social Worker","System Administrator","Cashier"],add_charge:["Data Entry","Hospital Administrator","Medical Records Officer","System Administrator"],add_billing_diagnosis:["Data Entry","Hospital Administrator","Medical Records Officer","System Administrator"],add_diagnosis:["Data Entry","Doctor","Hospital Administrator","Medical Records Officer","Patient Administration","System Administrator"],add_medication:["Data Entry","Doctor","Hospital Administrator","Medical Records Officer","Pharmacist","System Administrator"],add_operative_plan:["Data Entry","Doctor","Hospital Administrator","Medical Records Officer","Patient Administration","System Administrator"],add_operation_report:["Data Entry","Doctor","Hospital Administrator","Medical Records Officer","Patient Administration","System Administrator"],add_photo:["Data Entry","Hospital Administrator","Medical Records Officer","Patient Administration","Social Worker","System Administrator"],add_patient:["Data Entry","Doctor","Hospital Administrator","Medical Records Officer","Patient Administration","Social Worker","System Administrator"],add_pricing:["Data Entry","Finance","Hospital Administrator","Medical Records Officer","System Administrator"],
+add_pricing_profile:["Data Entry","Finance","Hospital Administrator","Medical Records Officer","System Administrator"],add_lab:["Data Entry","Doctor","Hospital Administrator","Medical Records Officer","Lab Technician","System Administrator"],add_imaging:["Data Entry","Doctor","Hospital Administrator","Imaging Technician","Medical Records Officer","System Administrator"],add_inventory_request:["Data Entry","Hospital Administrator","Inventory Manager","Medical Records Officer","Nurse Manager","Pharmacist","System Administrator"],add_inventory_item:["Data Entry","Hospital Administrator","Inventory Manager","Medical Records Officer","System Administrator"],add_inventory_purchase:["Data Entry","Hospital Administrator","Inventory Manager","Medical Records Officer","System Administrator"],add_invoice:["Data Entry","Hospital Administrator","Medical Records Officer","System Administrator","Cashier"],add_payment:["Hospital Administrator","Medical Records Officer","System Administrator","Cashier"],add_procedure:["Data Entry","Doctor","Hospital Administrator","Medical Records Officer","Nurse","Nurse Manager","Patient Administration","System Administrator"],add_socialwork:["Hospital Administrator","Medical Records Officer","Social Worker","System Administrator"],add_user:["User Administrator","System Administrator"],add_visit:["Data Entry","Doctor","Hospital Administrator","Medical Records Officer","Nurse","Nurse Manager","Patient Administration","Social Worker","System Administrator"],add_vitals:["Data Entry","Doctor","Hospital Administrator","Medical Records Officer","Nurse","Nurse Manager","System Administrator"],add_report:["Data Entry","Doctor","Hospital Administrator","Medical Records Officer","Nurse","Nurse Manager","System Administrator"],admit_patient:["Data Entry","Doctor","Hospital Administrator","Medical Records Officer","Nurse","Nurse Manager","Patient Administration","Social Worker","System Administrator"],adjust_inventory_location:["Hospital Administrator","Inventory Manager","Medical Records Officer","System Administrator"],billing:["Hospital Administrator","Finance","Finance Manager","System Administrator","Cashier"],cashier:["Cashier","System Administrator"],complete_imaging:["Imaging Technician","Medical Records Officer","System Administrator"],complete_lab:["Lab Technician","Medical Records Officer","System Administrator"],delete_appointment:["Hospital Administrator","Medical Records Officer","Patient Administration","Social Worker","System Administrator"],delete_diagnosis:["Doctor","Hospital Administrator","Medical Records Officer","Patient Administration","System Administrator"],delete_inventory_item:["Hospital Administrator","Inventory Manager","Medical Records Officer","System Administrator"],delete_imaging:["Doctor","Hospital Administrator","Medical Records Officer","System Administrator"],delete_invoice:["Hospital Administrator","System Administrator"],delete_lab:["Doctor","Hospital Administrator","Medical Records Officer","System Administrator"],delete_medication:["Doctor","Hospital Administrator","Medical Records Officer","System Administrator"],delete_photo:["Data Entry","Hospital Administrator","Medical Records Officer","Patient Administration","Social Worker","System Administrator"],delete_patient:["Hospital Administrator","Medical Records Officer","Patient Administration","System Administrator"],delete_pricing:["Finance","Data Entry","Hospital Administrator","Medical Records Officer","System Administrator"],delete_pricing_profile:["Finance","Data Entry","Hospital Administrator","Medical Records Officer","System Administrator"],delete_procedure:["Doctor","Hospital Administrator","Medical Records Officer","Nurse","Nurse Manager","Patient Administration","System Administrator"],delete_socialwork:["Hospital Administrator","Medical Records Officer","Social Worker","System Administrator"],delete_vitals:["Doctor","Hospital Administrator","Medical Records Officer","Nurse","Nurse Manager","System Administrator"],delete_report:["Doctor","Hospital Administrator","Medical Records Officer","Nurse","Nurse Manager","System Administrator"],delete_visit:["Doctor","Hospital Administrator","Medical Records Officer","Nurse","Nurse Manager","Patient Administration","Social Worker","System Administrator"],delete_user:["User Administrator","System Administrator"],discharge_patient:["Data Entry","Doctor","Hospital Administrator","Medical Records Officer","Nurse","Nurse Manager","Patient Administration","Social Worker","System Administrator"],edit_invoice:["Data Entry","Hospital Administrator","Medical Records Officer","System Administrator"],fulfill_inventory:["Hospital Administrator","Inventory Manager","Medical Records Officer","Pharmacist","System Administrator"],fulfill_medication:["Medical Records Officer","Pharmacist","System Administrator"],imaging:["Data Entry","Doctor","Hospital Administrator","Imaging Technician","Medical Records Officer","System Administrator"],invoices:["Hospital Administrator","Finance","Finance Manager","System Administrator","Cashier"],labs:["Data Entry","Doctor","Hospital Administrator","Lab Technician","Medical Records Officer","System Administrator"],list_paid_invoices:["Data Entry","Hospital Administrator","Medical Records Officer","System Administrator"],medication:["Data Entry","Doctor","Hospital Administrator","Medical Records Officer","Pharmacist","System Administrator"],inventory:["Data Entry","Hospital Administrator","Inventory Manager","Medical Records Officer","Nurse Manager","Pharmacist","System Administrator"],load_db:["System Administrator"],override_invoice:["Hospital Administrator","System Administrator","Cashier"],query_db:["System Administrator"],patients:["Data Entry","Doctor","Finance","Finance Manager","Hospital Administrator","Imaging Technician","Lab Technician","Medical Records Officer","Nurse","Nurse Manager","Patient Administration","Social Worker","System Administrator"],patient_reports:["Hospital Administrator","Patient Administration","System Administrator"],pricing:["Data Entry","Finance","Hospital Administrator","Medical Records Officer","System Administrator"],visits:["Data Entry","Doctor","Hospital Administrator","Medical Records Officer","Nurse Manager","Nurse","Patient Administration","Social Worker","System Administrator"],incident:["Hospital Staff","User Administrator","Quality","System Administrator"],add_incident:["Hospital Staff","User Administrator","Quality","System Administrator"],delete_incident:["Quality","System Administrator"],generate_incident_report:["User Administrator","Quality","System Administrator"],add_incident_category:["User Administrator","Quality","System Administrator"],delete_incident_category:["Quality","System Administrator"],manage_incidents:["Quality","System Administrator"],update_config:["System Administrator"],users:["User Administrator","System Administrator","Quality"],add_note:["Doctor","Medical Records Officer","Nurse","Nurse Manager","Patient Administration","System Administrator"],delete_note:["Medical Records Officer","Nurse Manager","Patient Administration","System Administrator"],define_user_roles:["System Administrator"]},_getUserSessionVars:function(){var e=this.get("session");if(!t.default.isEmpty(e)&&e.get("isAuthenticated"))return e.get("data.authenticated")},currentUserCan:function(e){var n=this._getUserSessionVars();if(!t.default.isEmpty(n)&&!t.default.isEmpty(n.role)){var a=this.get("session").get("data.authenticated.userCaps");if(!t.default.isEmpty(a))return a.includes(e.camelize());var l=this.get("defaultCapabilities"),s=l[e];if(!t.default.isEmpty(s))return s.includes(n.role)}return!1},getUserName:function(e){var n=void 0,a=this._getUserSessionVars();return t.default.isEmpty(a)||(e?n=a.name:t.default.isEmpty(a.displayName)?t.default.isEmpty(a.name)||(n=a.name):n=a.displayName),n}})}),define("hospitalrun/mixins/visit-types",["exports","ember","hospitalrun/utils/select-values"],function(e,t,n){e.default=t.default.Mixin.create({defaultVisitTypes:["Admission","Clinic","Followup","Imaging","Lab","Pharmacy"],_getVisitTypes:function(e){var a=this.get("defaultVisitTypes"),l=this.get("visitTypesList"),s=void 0;return s=t.default.isEmpty(l)?a:l.get("value"),s=n.default.selectValues(s,e)},visitTypes:function(){return this._getVisitTypes()}.property("visitTypesList","defaultVisitTypes").volatile(),visitTypesWithEmpty:function(){return this._getVisitTypes(!0)}.property("visitTypesList","defaultVisitTypes").volatile()})}),define("hospitalrun/models/abstract",["exports","ember-data","ember","ember-validations","ember-pouch","hospitalrun/mixins/user-session"],function(e,t,n,a,l,s){var i=n.default.get,o=n.default.inject,r=n.default.isEmpty;e.default=l.Model.extend(s.default,a.default,{session:o.service(),archived:t.default.attr("boolean",{defaultValue:!1}),lastModified:t.default.attr("date"),modifiedBy:t.default.attr(),modifiedFields:t.default.attr(),loadedCustomForms:null,didLoad:function(){var e=this.get("customForms");r(e)||(e=JSON.parse(JSON.stringify(e))),this.set("loadedCustomForms",e)},changedAttributes:function(){var e=this._super(),t=this.get("customForms"),n=this.get("loadedCustomForms");if(!r(t)){r(n)&&(n={});Object.keys(t).forEach(function(a){var l=n[a],s="customForms."+a;r(l)&&(l={});var o=i(t,a);Object.keys(o).forEach(function(t){var n=i(l,t),a=i(o,t);n!=a&&(e[s+"."+t]=[n,a])})})}return e},save:function(e){var t=void 0,a=this.changedAttributes(),l=new Date,s=this.get("modifiedFields"),i=this.get("session");if(!i||!i.get("isAuthenticated"))return new n.default.RSVP.Promise(function(e,t){n.default.run(null,t,"ERROR you must be logged in to save")});if(this.get("hasDirtyAttributes")&&!this.get("isDeleted")){r(s)&&(s={}),this.set("lastModified",l);for(t in a)s[t]=l;this.set("modifiedFields",s),this.set("modifiedBy",this.getUserName())}return this._super(e).catch(function(t){if(!r(e)&&e.retry)throw t;if(t.name&&t.name.indexOf&&t.name.indexOf("conflict")>-1)return this.rollbackAttributes(),this.reload().then(function(t){for(var l in a)t.set(l,a[l][1]);return n.default.isEmpty(e)&&(e={}),e.retry=!0,t.save(e)});throw t}.bind(this))}})}),define("hospitalrun/models/add-diagnosis",["exports","ember-data","ember-validations","ember-pouch"],function(e,t,n,a){e.default=a.Model.extend(n.default,{diagnosis:t.default.attr("string"),validations:{diagnosis:{presence:!0}}})}),define("hospitalrun/models/allergy",["exports","hospitalrun/models/abstract","ember-data"],function(e,t,n){e.default=t.default.extend({name:n.default.attr("string"),icd9CMCode:n.default.attr("string"),icd10Code:n.default.attr("string"),patient:n.default.belongsTo("patient"),validations:{name:{presence:!0}}})}),define("hospitalrun/models/appointment",["exports","hospitalrun/models/abstract","ember-data","ember","moment","hospitalrun/utils/patient-validation"],function(e,t,n,a,l,s){e.default=t.default.extend({allDay:n.default.attr(),provider:n.default.attr("string"),location:n.default.attr("string"),appointmentType:n.default.attr("string"),startDate:n.default.attr("date"),endDate:n.default.attr("date"),notes:n.default.attr("string"),status:n.default.attr("string",{defaultValue:"Scheduled"}),patient:n.default.belongsTo("patient",{async:!1}),visits:n.default.hasMany("visit"),longDateFormat:"l h:mm A",shortDateFormat:"l",timeFormat:"h:mm A",_getDateSpan:function(e,t,n){return e.format(n)+" - "+t.format(n)},appointmentDate:function(){return this.get("startDate")}.property("startDate"),displayStatus:function(){var e=this.get("status");return a.default.isEmpty(e)&&(e="Scheduled"),e}.property("status"),formattedAppointmentDate:function(){var e=this.get("allDay"),t=(0,l.default)(this.get("endDate")),n="",a="",s=(0,l.default)(this.get("startDate"));return s.isSame(t,"day")?(a=s.format(this.get("shortDateFormat")),e||(a+=" ",a+=this._getDateSpan(s,t,this.get("timeFormat")))):(n=e?this.get("shortDateFormat"):this.get("longDateFormat"),a=this._getDateSpan(s,t,n)),a}.property("startDate","endDate"),validations:{appointmentDate:{presence:{if:function(e){return"Admission"!==e.get("appointmentType")}}},patientTypeAhead:s.default.patientTypeAhead,patient:{presence:!0},appointmentType:{presence:!0},startDate:{presence:!0},endDate:{acceptance:{accept:!0,if:function(e){if(!e.get("hasDirtyAttributes"))return!1;var t=e.get("allDay"),n=e.get("startDate"),l=e.get("endDate");if(a.default.isEmpty(l)||a.default.isEmpty(n))return!0;if(t){if(l.getTime()l},message:"Invalid quantity"}},dateCompleted:{presence:{message:"Please provide a date"}},transferLocation:{acceptance:{accept:!0,if:function(e){var t=e.get("transferLocation"),n=e.get("transferItem");return!(a.default.isEmpty(n)||!a.default.isEmpty(t))},message:"Please select a location to transfer to"}}}});e.default=s}),define("hospitalrun/models/inv-purchase",["exports","hospitalrun/models/abstract","ember-data","ember","hospitalrun/mixins/location-name","hospitalrun/mixins/number-format"],function(e,t,n,a,l,s){function i(){return[]}var o=t.default.extend(l.default,s.default,{purchaseCost:n.default.attr("number"),lotNumber:n.default.attr("string"),dateReceived:n.default.attr("date"),costPerUnit:function(){var e=this.get("purchaseCost"),t=parseInt(this.get("originalQuantity"));return a.default.isEmpty(e)||a.default.isEmpty(t)||0===e||0===t?0:this._numberFormat(e/t,!0)}.property("purchaseCost","originalQuantity"),originalQuantity:n.default.attr("number"),currentQuantity:n.default.attr("number"),expirationDate:n.default.attr("date"),expired:n.default.attr("boolean"),location:n.default.attr("string"),aisleLocation:n.default.attr("string"),giftInKind:n.default.attr("boolean"),inventoryItem:n.default.attr("string"),vendor:n.default.attr("string"),vendorItemNo:n.default.attr("string"),distributionUnit:n.default.attr("string"),invoiceNo:n.default.attr("string"),quantityGroups:n.default.attr({defaultValue:i}),validations:{purchaseCost:{numericality:!0},originalQuantity:{numericality:{greaterThanOrEqualTo:0}},vendor:{presence:!0}}});e.default=o}),define("hospitalrun/models/inv-request",["exports","hospitalrun/models/abstract","hospitalrun/mixins/inventory-adjustment-types","ember-data","ember","hospitalrun/mixins/location-name"],function(e,t,n,a,l,s){var i=t.default.extend(n.default,s.default,{adjustPurchases:a.default.attr("boolean"),completedBy:a.default.attr("string"),costPerUnit:a.default.attr("number"),dateCompleted:a.default.attr("date"),dateRequested:a.default.attr("date"),deliveryAisle:a.default.attr("string"),deliveryLocation:a.default.attr("string"),expenseAccount:a.default.attr("string"),inventoryItem:a.default.belongsTo("inventory",{async:!0}),locationsAffected:a.default.attr(),markAsConsumed:a.default.attr("boolean",{defaultValue:!0}),patient:a.default.belongsTo("patient",{async:!1}),purchasesAffected:a.default.attr(),quantity:a.default.attr("number"),quantityAtCompletion:a.default.attr("number"),reason:a.default.attr("string"),requestedBy:a.default.attr("string"),status:a.default.attr("string"),transactionType:a.default.attr("string"),visit:a.default.belongsTo("visit",{async:!1}),deliveryLocationName:function(){var e=this.get("deliveryAisle"),t=this.get("deliveryLocation");return this.formatLocationName(t,e)}.property("deliveryAisle","deliveryLocation"),deliveryDetails:function(){var e=this.get("deliveryLocationName"),t=this.get("patient");return l.default.isEmpty(t)?e:t.get("displayName")}.property("deliveryAisle","deliveryLocation","patient"),haveReason:function(){return!l.default.isEmpty(this.get("reason"))}.property("reason"),isAdjustment:function(){var e=this.get("adjustmentTypes"),t=this.get("transactionType"),n=e.findBy("type",t);return!l.default.isEmpty(n)}.property("transactionType"),isFulfillment:function(){return"Fulfillment"===this.get("transactionType")}.property("transactionType"),isTransfer:function(){return"Transfer"===this.get("transactionType")}.property("transactionType"),validations:{inventoryItemTypeAhead:{acceptance:{accept:!0,if:function(e){if(!e.get("hasDirtyAttributes"))return!1;var t=e.get("inventoryItem.name"),n=e.get("inventoryItemTypeAhead"),a=e.get("requestedItems");return"Requested"!==e.get("status")&&(l.default.isEmpty(t)||l.default.isEmpty(n)?l.default.isEmpty(a):t!==n.substr(0,t.length))},message:"Please select a valid inventory item"}},quantity:{numericality:{greaterThan:0,messages:{greaterThan:"must be greater than 0"},if:function(e){var t=e.get("requestedItems");return l.default.isEmpty(t)}},acceptance:{accept:!0,if:function(e){var t=e.get("isNew"),n=parseInt(e.get("quantity")),a=e.get("transactionType"),l=null;return"Return"!==a&&(l=t&&"Request"===a?e.get("inventoryItem.quantity"):e.get("inventoryLocation.quantity"),n>l)},message:"The quantity must be less than or equal to the number of available items."}}}});e.default=i}),define("hospitalrun/models/inventory-batch",["exports","hospitalrun/models/abstract","ember"],function(e,t,n){e.default=t.default.extend({haveInvoiceItems:function(){var e=this.get("invoiceItems");return!n.default.isEmpty(e)},validations:{dateReceived:{presence:!0},inventoryItemTypeAhead:{presence:{unless:function(e){return e.haveInvoiceItems()}}},purchaseCost:{numericality:{greaterThan:0,messages:{greaterThan:"must be greater than 0"},unless:function(e){return e.haveInvoiceItems()}}},quantity:{numericality:{greaterThan:0,messages:{greaterThan:"must be greater than 0"},unless:function(e){return e.haveInvoiceItems()}}},vendor:{presence:!0}}})}),define("hospitalrun/models/inventory",["exports","hospitalrun/models/abstract","ember-data","ember","ember-computed","hospitalrun/mixins/location-name","hospitalrun/utils/item-condition"],function(e,t,n,a,l,s,i){var o=a.default.get,r=a.default.set,d={if:function(e){return!o(e,"skipSavePurchase")&&o(e,"isNew")}};e.default=t.default.extend(s.default,{crossReference:n.default.attr("string"),description:n.default.attr("string"),distributionUnit:n.default.attr("string"),friendlyId:n.default.attr("string"),inventoryType:n.default.attr("string"),keywords:n.default.attr(),name:n.default.attr("string"),price:n.default.attr("number"),quantity:n.default.attr("number"),rank:n.default.attr("string"),reorderPoint:n.default.attr("number"),locations:n.default.hasMany("inv-location",{async:!1}),purchases:n.default.hasMany("inv-purchase",{async:!1}),estimatedDaysOfStock:14,availableLocations:(0,l.default)("locations.@each.quantity",function(){return o(this,"locations").filter(function(e){return o(e,"quantity")>0})}),displayLocations:(0,l.default)("availableLocations",function(){var e=this,t=o(this,"availableLocations"),n=[];return t.forEach(function(t){var l=o(t,"aisleLocation"),s=o(t,"location"),i=e.formatLocationName(s,l);a.default.isEmpty(i)||n.push(i)}),n.toString()}),condition:(0,l.default)("rank","estimatedDaysOfStock",function(){var e=o(this,"estimatedDaysOfStock"),t=(0,i.rankToMultiplier)(o(this,"rank"));return(0,i.getCondition)(e,t)}),validations:{distributionUnit:{presence:!0},purchaseCost:{numericality:d},name:{presence:!0},quantity:{numericality:{validateIfNewItem:d,greaterThanOrEqualTo:0}},price:{numericality:{allowBlank:!0}},originalQuantity:{presence:d},reorderPoint:{numericality:{allowBlank:!0}},inventoryType:{presence:!0},vendor:{presence:d}},updateQuantity:function(){var e=o(this,"purchases"),t=e.reduce(function(e,t){var n=0;return t.get("expired")||(n=t.get("currentQuantity")),e+n},0);r(this,"quantity",t)}})}),define("hospitalrun/models/invoice",["exports","hospitalrun/models/abstract","hospitalrun/mixins/date-format","ember-data","ember","hospitalrun/mixins/number-format","hospitalrun/utils/patient-validation"],function(e,t,n,a,l,s,i){var o=l.default.computed,r=l.default.get,d=l.default.set;e.default=t.default.extend(n.default,s.default,{billDate:a.default.attr("date"),externalInvoiceNumber:a.default.attr("string"),paidTotal:a.default.attr("number"),patientInfo:a.default.attr("string"),remarks:a.default.attr("string"),status:a.default.attr("string"),lineItems:a.default.hasMany("billing-line-item",{async:!1}),patient:a.default.belongsTo("patient",{async:!1}),paymentProfile:a.default.belongsTo("price-profile",{async:!1}),payments:a.default.hasMany("payment",{async:!1}),visit:a.default.belongsTo("visit",{async:!1}),addPayment:function(e){r(this,"payments").addObject(e),this.paymentAmountChanged()},billDateAsTime:o("billDate",function(){return this.dateToTime(r(this,"billDate"))}),discountTotals:l.default.computed.mapBy("lineItemsByCategory","discount"),discount:l.default.computed.sum("discountTotals"),nationalInsuranceTotals:l.default.computed.mapBy("lineItemsByCategory","nationalInsurance"),nationalInsurance:l.default.computed.sum("nationalInsuranceTotals"),paidFlag:o("status",function(){return"Paid"===r(this,"status")}),remainingBalance:o("finalPatientResponsibility","paidTotal",function(){var e=r(this,"finalPatientResponsibility"),t=r(this,"paidTotal");return this._numberFormat(e-t,!0)}),privateInsuranceTotals:l.default.computed.mapBy("lineItemsByCategory","privateInsurance"),privateInsurance:l.default.computed.sum("privateInsuranceTotals"),lineTotals:l.default.computed.mapBy("lineItems","total"),total:l.default.computed.sum("lineTotals"),displayInvoiceNumber:o("externalInvoiceNumber","id",function(){var e=r(this,"externalInvoiceNumber"),t=r(this,"id");return l.default.isEmpty(e)?t:e}),lineItemsByCategory:o("lineItems.@each.amountOwed",function(){var e=r(this,"lineItems"),t=[];return e.forEach(function(e){var n=r(e,"category"),a=t.findBy("category",n);l.default.isEmpty(a)&&(a={category:n,items:[]},t.push(a)),a.items.push(e)}.bind(this)),t.forEach(function(e){e.amountOwed=this._calculateTotal(e.items,"amountOwed"),e.discount=this._calculateTotal(e.items,"discount"),e.nationalInsurance=this._calculateTotal(e.items,"nationalInsurance"),e.privateInsurance=this._calculateTotal(e.items,"privateInsurance"),e.total=this._calculateTotal(e.items,"total")}.bind(this)),t}),patientIdChanged:function(){if(!l.default.isEmpty(r(this,"patient"))){var e=r(this,"patient.displayName"),t=r(this,"patient.displayPatientId");d(this,"patientInfo",e+" - "+t)}}.observes("patient.displayName","patient.id","patient.displayPatientId"),patientResponsibilityTotals:l.default.computed.mapBy("lineItems","amountOwed"),patientResponsibility:l.default.computed.sum("patientResponsibilityTotals"),finalPatientResponsibility:o("patientResponsibility","paymentProfile",function(){var e=this._getValidNumber(this.get("paymentProfile.setFee")),t=this._getValidNumber(this.get("paymentProfile.discountAmount")),n=this._getValidNumber(this.get("patientResponsibility"));return e>0?e0?n-t>0?n-t:0:n}),paymentAmountChanged:function(){var e=r(this,"payments").filter(function(e){return!r(e,"isNew")});if(0!==e.length){var t=e.reduce(function(e,t){return e+=this._getValidNumber(t.get("amount"))}.bind(this),0);d(this,"paidTotal",this._numberFormat(t,!0));r(this,"remainingBalance")<=0&&d(this,"status","Paid")}}.observes("payments.[]","payments.@each.amount"),validations:{patientTypeAhead:i.default.patientTypeAhead,patient:{presence:!0},visit:{presence:!0}}})}),define("hospitalrun/models/lab",["exports","hospitalrun/models/abstract","hospitalrun/mixins/can-edit-requested","hospitalrun/mixins/date-format","ember-data","ember","hospitalrun/utils/patient-validation","hospitalrun/mixins/result-validation"],function(e,t,n,a,l,s,i,o){var r=s.default.computed,d=s.default.get;e.default=t.default.extend(n.default,a.default,o.default,{labDate:l.default.attr("date"),notes:l.default.attr("string"),requestedBy:l.default.attr("string"),requestedDate:l.default.attr("date"),result:l.default.attr("string"),status:l.default.attr("string"),charges:l.default.hasMany("proc-charge",{async:!1}),labType:l.default.belongsTo("pricing",{async:!1}),patient:l.default.belongsTo("patient",{async:!1}),visit:l.default.belongsTo("visit",{async:!1}),labDateAsTime:r("labDate",function(){return this.dateToTime(d(this,"labDate"))}),requestedDateAsTime:r("requestedDate",function(){
+return this.dateToTime(d(this,"requestedDate"))}),validations:{labTypeName:{presence:{if:function(e){if(e.get("isNew"))return!0},message:"Please select a lab type"}},patientTypeAhead:i.default.patientTypeAhead,patient:{presence:!0}}})}),define("hospitalrun/models/line-item-detail",["exports","hospitalrun/models/abstract","ember-data","ember","hospitalrun/mixins/number-format"],function(e,t,n,a,l){var s=a.default.computed,i=a.default.get;e.default=t.default.extend(l.default,{department:n.default.attr("string"),expenseAccount:n.default.attr("string"),name:n.default.attr("string"),price:n.default.attr("number"),quantity:n.default.attr("number"),total:n.default.attr("number"),pricingItem:n.default.belongsTo("pricing",{async:!1}),amountOwed:s("price","quantity",function(){var e=i(this,"price"),t=i(this,"quantity"),n=0;return this._validNumber(e)&&this._validNumber(t)&&(n=this._numberFormat(e*t,!0)),n})})}),define("hospitalrun/models/lookup",["exports","ember-pouch","ember-data"],function(e,t,n){var a=n.default.attr;e.default=t.Model.extend({organizeByType:a("boolean"),userCanAdd:a("boolean"),value:a("")})}),define("hospitalrun/models/medication",["exports","hospitalrun/models/abstract","hospitalrun/mixins/can-edit-requested","ember-data","hospitalrun/mixins/date-format","ember","hospitalrun/mixins/medication-details"],function(e,t,n,a,l,s,i){var o=s.default.computed,r=s.default.get;e.default=t.default.extend(n.default,l.default,i.default,{notes:a.default.attr("string"),prescription:a.default.attr("string"),prescriptionDate:a.default.attr("date"),quantity:a.default.attr("number"),refills:a.default.attr("number"),requestedDate:a.default.attr("date"),requestedBy:a.default.attr("string"),status:a.default.attr("string"),inventoryItem:a.default.belongsTo("inventory",{async:!0}),patient:a.default.belongsTo("patient",{async:!1}),visit:a.default.belongsTo("visit",{async:!1}),isRequested:o("status",function(){return"Requested"===r(this,"status")}),medicationName:o("medicationTitle","inventoryItem",function(){return this.getMedicationName("inventoryItem")}),medicationPrice:o("priceOfMedication","inventoryItem",function(){return this.getMedicationPrice("inventoryItem")}),prescriptionDateAsTime:o("prescriptionDate",function(){return this.dateToTime(r(this,"prescriptionDate"))}),requestedDateAsTime:o("requestedDate",function(){return this.dateToTime(r(this,"requestedDate"))}),validations:{prescription:{acceptance:{accept:!0,if:function(e){if(!r(e,"hasDirtyAttributes")||r(e,"isFulfilling"))return!1;var t=r(e,"prescription"),n=r(e,"quantity");return s.default.isEmpty(t)&&s.default.isEmpty(n)},message:"Please enter a prescription or a quantity"}},inventoryItemTypeAhead:{acceptance:{accept:!0,if:function(e){if(!r(e,"hasDirtyAttributes")||!r(e,"isNew"))return!1;var t=r(e,"inventoryItem.name"),n=r(e,"inventoryItemTypeAhead");return!(!s.default.isEmpty(t)&&!s.default.isEmpty(n))||t!==n.substr(0,t.length)},message:"Please select a valid medication"}},patientTypeAhead:{presence:{if:function(e){return r(e,"selectPatient")}}},quantity:{numericality:{allowBlank:!0,greaterThan:0,messages:{greaterThan:"must be greater than 0"}},presence:{if:function(e){return r(e,"isFulfilling")}},acceptance:{accept:!0,if:function(e){var t=r(e,"isFulfilling"),n=parseInt(r(e,"quantity")),a=null;return!!t&&(a=e.get("inventoryItem.quantity"),n>a)},message:"The quantity must be less than or equal to the number of available medication."}},refills:{numericality:{allowBlank:!0}}}})}),define("hospitalrun/models/operation-report",["exports","hospitalrun/models/abstract","ember-data","ember"],function(e,t,n,a){function l(){return[]}var s=a.default.get,i=a.default.isEmpty;e.default=t.default.extend({additionalNotes:n.default.attr("string"),caseComplexity:n.default.attr("number"),customForms:n.default.attr("custom-forms"),procedures:n.default.attr("operative-procedures",{defaultValue:l}),operationDescription:n.default.attr("string"),surgeon:n.default.attr("string"),surgeryDate:n.default.attr("date"),preOpDiagnoses:n.default.hasMany("diagnosis"),diagnoses:n.default.hasMany("diagnosis"),operativePlan:n.default.belongsTo("operative-plan",{async:!0}),patient:n.default.belongsTo("patient",{async:!1}),validations:{caseComplexity:{numericality:{allowBlank:!0,onlyInteger:!0}},procedureDescription:{presence:{if:function(e){return i(s(e,"procedures"))}}}}})}),define("hospitalrun/models/operative-plan",["exports","hospitalrun/models/abstract","ember-data","ember","hospitalrun/mixins/operative-plan-statuses"],function(e,t,n,a,l){function s(){return[]}var i=a.default.computed,o=a.default.get,r=a.default.isEmpty;e.default=t.default.extend({additionalNotes:n.default.attr("string"),admissionInstructions:n.default.attr("string"),caseComplexity:n.default.attr("number"),customForms:n.default.attr("custom-forms"),operationDescription:n.default.attr("string"),procedures:n.default.attr("operative-procedures",{defaultValue:s}),status:n.default.attr("string",{defaultValue:l.PLANNED_STATUS}),surgeon:n.default.attr("string"),diagnoses:n.default.hasMany("diagnosis"),patient:n.default.belongsTo("patient",{async:!1}),isPlanned:i("status",{get:function(){return o(this,"status")===l.PLANNED_STATUS}}),validations:{caseComplexity:{numericality:{allowBlank:!0,onlyInteger:!0}},procedureDescription:{presence:{if:function(e){return r(o(e,"procedures"))}}}}})}),define("hospitalrun/models/option",["exports","ember-pouch","ember-data"],function(e,t,n){e.default=t.Model.extend({value:n.default.attr("")})}),define("hospitalrun/models/override-price",["exports","hospitalrun/models/abstract","ember-data"],function(e,t,n){e.default=t.default.extend({price:n.default.attr("number"),profile:n.default.belongsTo("price-profile",{async:!1}),validations:{profile:{presence:!0},price:{numericality:!0}}})}),define("hospitalrun/models/patient-note",["exports","hospitalrun/models/abstract","ember","ember-data"],function(e,t,n,a){var l=n.default.computed;e.default=t.default.extend({attribution:a.default.attr("string"),content:a.default.attr("string"),createdBy:a.default.attr("string"),date:a.default.attr("date"),noteType:a.default.attr(),patient:a.default.belongsTo("patient",{async:!1}),visit:a.default.belongsTo("visit",{async:!1}),authoredBy:l("attribution","createdBy",function(){if(n.default.isEmpty(this.get("attribution")))return this.get("createdBy");var e=this.get("i18n");return this.get("createdBy")+" "+e.t("patients.notes.onBehalfOfCopy")+" "+this.get("attribution")}),validations:{patient:{presence:!0},visit:{presence:!0},content:{presence:!0}}})}),define("hospitalrun/models/patient",["exports","hospitalrun/models/abstract","hospitalrun/mixins/dob-days","hospitalrun/utils/email-validation","ember","ember-data","hospitalrun/mixins/patient-name"],function(e,t,n,a,l,s,i){var o=l.default.computed,r=l.default.get;e.default=t.default.extend(n.default,i.default,{admitted:s.default.attr("boolean",{defaultValue:!1}),additionalContacts:s.default.attr(),address:s.default.attr("string"),address2:s.default.attr("string"),address3:s.default.attr("string"),address4:s.default.attr("string"),bloodType:s.default.attr("string"),clinic:s.default.attr("string"),country:s.default.attr("string"),checkedIn:s.default.attr("boolean",{defaultValue:!1}),customForms:s.default.attr("custom-forms"),dateOfBirth:s.default.attr("date"),economicClassification:s.default.attr("string"),email:s.default.attr("string"),expenses:s.default.attr(),externalPatientId:s.default.attr("string"),familySupport1:s.default.attr("string"),familySupport2:s.default.attr("string"),familySupport3:s.default.attr("string"),familySupport4:s.default.attr("string"),familySupport5:s.default.attr("string"),friendlyId:s.default.attr("string"),familyInfo:s.default.attr(),firstName:s.default.attr("string"),sex:s.default.attr("string"),occupation:s.default.attr("string"),history:s.default.attr("string"),insurance:s.default.attr("string"),lastName:s.default.attr("string"),livingArrangement:s.default.attr("string"),middleName:s.default.attr("string"),notes:s.default.attr("string"),otherIncome:s.default.attr("string"),patientType:s.default.attr("string"),parent:s.default.attr("string"),phone:s.default.attr("string"),placeOfBirth:s.default.attr("string"),referredDate:s.default.attr("date"),referredBy:s.default.attr("string"),religion:s.default.attr("string"),socialActionTaken:s.default.attr("string"),socialRecommendation:s.default.attr("string"),status:s.default.attr("string"),allergies:s.default.hasMany("allergy",{async:!0}),diagnoses:s.default.hasMany("diagnosis",{async:!1}),operationReports:s.default.hasMany("operation-report",{async:!0}),operativePlans:s.default.hasMany("operative-plan",{async:!0}),payments:s.default.hasMany("payment",{async:!0}),paymentProfile:s.default.belongsTo("price-profile",{async:!1}),age:o("dateOfBirth",function(){var e=r(this,"dateOfBirth");return this.convertDOBToText(e)}),displayAddress:o("address","address2","address3","address4",function(){var e=this.getProperties("address","address2","address3","address4"),t="";for(var n in e)l.default.isEmpty(e[n])||(l.default.isEmpty(t)||(t+=", "),t+=e[n]);return t}),displayName:o("firstName","lastName","middleName",function(){return this.getPatientDisplayName(this)}),displayPatientId:o("id","externalPatientId","friendlyId",function(){return this.getPatientDisplayId(this)}),shortAge:o("dateOfBirth",function(){var e=r(this,"dateOfBirth");return this.convertDOBToText(e,!0)}),shortDisplayName:o("firstName","lastName",function(){return this.getPatientDisplayName(this,!0)}),validations:{email:{format:{with:a.default.emailRegex,allowBlank:!0,message:"please enter a valid email address"}},firstName:{presence:!0},lastName:{presence:!0}}})}),define("hospitalrun/models/payment",["exports","hospitalrun/models/abstract","ember-data","ember"],function(e,t,n,a){var l=a.default.computed,s=a.default.get;e.default=t.default.extend({amount:n.default.attr("number"),charityPatient:n.default.attr("boolean"),datePaid:n.default.attr("date"),expenseAccount:n.default.attr("string"),notes:n.default.attr("string"),paymentType:n.default.attr("string"),invoice:n.default.belongsTo("invoice",{async:!1}),canRemovePayment:l("paymentType",function(){return"Deposit"===s(this,"paymentType")}),validations:{amount:{numericality:!0},datePaid:{presence:!0}}})}),define("hospitalrun/models/photo",["exports","hospitalrun/models/abstract","ember-data","ember"],function(e,t,n,a){var l=n.default.attr,s=n.default.belongsTo,i=a.default.computed,o=a.default.get,r=a.default.isEmpty;e.default=t.default.extend({caption:l("string"),coverImage:l("boolean"),files:l("attachments",{defaultValue:function(){return[]}}),fileName:l("string"),isImage:n.default.attr("boolean",{defaultValue:!1}),localFile:n.default.attr("boolean",{defaultValue:!1}),url:l("string"),patient:s("patient",{async:!1}),shortFileName:i("fileName",function(){var e=o(this,"fileName");return r(e)||(e=e.substr(e.lastIndexOf("/")+1)),e})})}),define("hospitalrun/models/price-profile",["exports","hospitalrun/models/abstract","ember-data"],function(e,t,n){e.default=t.default.extend({name:n.default.attr("string"),discountAmount:n.default.attr("number"),discountPercentage:n.default.attr("number"),setFee:n.default.attr("number"),validations:{name:{presence:!0},discountAmount:{numericality:{allowBlank:!0}},discountPercentage:{numericality:{allowBlank:!0}},setFee:{numericality:{allowBlank:!0}}}})}),define("hospitalrun/models/pricing",["exports","hospitalrun/models/abstract","ember-data"],function(e,t,n){e.default=t.default.extend({category:n.default.attr("string"),expenseAccount:n.default.attr("string"),name:n.default.attr("string"),price:n.default.attr("number"),pricingType:n.default.attr("string"),pricingOverrides:n.default.hasMany("override-price",{async:!1}),validations:{category:{presence:!0},name:{presence:!0},price:{numericality:!0}}})}),define("hospitalrun/models/proc-charge",["exports","hospitalrun/models/abstract","ember-data","ember","hospitalrun/mixins/medication-details"],function(e,t,n,a,l){var s=a.default.computed,i=a.default.get;e.default=t.default.extend(l.default,{quantity:n.default.attr("number"),dateCharged:n.default.attr("date"),medication:n.default.belongsTo("inventory",{async:!1}),pricingItem:n.default.belongsTo("pricing",{async:!1}),medicationCharge:s("medication","newMedicationCharge",function(){var e=i(this,"medication"),t=i(this,"newMedicationCharge");return!a.default.isEmpty(e)||!a.default.isEmpty(t)}),medicationName:s("medication",function(){return this.get("medication.name")}),medicationPrice:s("medication",function(){return this.get("medication.price")}),validations:{itemName:{presence:!0,acceptance:{accept:!0,if:function(e){if(!i(e,"medicationCharge")||!i(e,"hasDirtyAttributes"))return!1;var t=i(e,"inventoryItem.name"),n=i(e,"itemName");return!(!a.default.isEmpty(t)&&!a.default.isEmpty(n))||t!==n.substr(0,t.length)},message:"Please select a valid medication"}},quantity:{numericality:{greaterThan:0,messages:{greaterThan:"must be greater than 0"}}}}})}),define("hospitalrun/models/procedure",["exports","hospitalrun/models/abstract","ember-data"],function(e,t,n){e.default=t.default.extend({anesthesiaType:n.default.attr("string"),anesthesiologist:n.default.attr("string"),assistant:n.default.attr("string"),description:n.default.attr("string"),cptCode:n.default.attr("string"),location:n.default.attr("string"),notes:n.default.attr("string"),physician:n.default.attr("string"),procedureDate:n.default.attr("date"),timeStarted:n.default.attr("string"),timeEnded:n.default.attr("string"),charges:n.default.hasMany("proc-charge",{async:!1}),visit:n.default.belongsTo("visit",{async:!1}),validations:{description:{presence:!0},oxygenHours:{numericality:{allowBlank:!0}},pacuHours:{numericality:{allowBlank:!0}},physician:{presence:!0},procedureDate:{presence:!0},display_procedureDate:{presence:{message:"Please select a valid date"}}}})}),define("hospitalrun/models/report",["exports","hospitalrun/models/abstract","ember-data"],function(e,t,n){e.default=t.default.extend({reportDate:n.default.attr("date"),customForms:n.default.attr("custom-forms"),reportType:n.default.attr("string"),visit:n.default.belongsTo("visit",{async:!1}),validations:{visit:{presence:!0},reportDate:{presence:!0}}})}),define("hospitalrun/models/sequence",["exports","ember-pouch","ember-data"],function(e,t,n){e.default=t.Model.extend({prefix:n.default.attr("string"),value:n.default.attr("number")})}),define("hospitalrun/models/social-expense",["exports","ember-data","ember-validations","ember-pouch"],function(e,t,n,a){e.default=a.Model.extend(n.default,{category:t.default.attr("string"),sources:t.default.attr("string"),cost:t.default.attr(),validations:{category:{presence:!0},cost:{numericality:!0}}})}),define("hospitalrun/models/text-expansion",["exports","ember-data","ember-validations","ember-pouch"],function(e,t,n,a){e.default=a.Model.extend(n.default,{from:t.default.attr("string"),to:t.default.attr("string"),validations:{from:{presence:!0},to:{presence:!0}}})}),define("hospitalrun/models/user-role",["exports","hospitalrun/models/abstract","ember-data"],function(e,t,n){e.default=t.default.extend({name:n.default.attr("string"),capabilities:n.default.attr(),navRoute:n.default.attr()})}),define("hospitalrun/models/user",["exports","ember-data","hospitalrun/utils/email-validation","ember","ember-validations"],function(e,t,n,a,l){var s=a.default.computed,i=t.default.Model.extend(l.default,{derived_key:t.default.attr("string"),deleted:t.default.attr("boolean"),displayName:t.default.attr("string"),email:t.default.attr("string"),iterations:t.default.attr(),name:t.default.attr("string"),password:t.default.attr("string"),password_scheme:t.default.attr("string"),password_sha:t.default.attr("string"),rev:t.default.attr("string"),roles:t.default.attr(),salt:t.default.attr("string"),userPrefix:t.default.attr("string"),displayRole:s("roles",function(){var e=this.get("roles");if(!a.default.isEmpty(e))return e[0]}),validations:{email:{format:{with:n.default.emailRegex,message:"Please, enter a valid email address"}}}});e.default=i}),define("hospitalrun/models/visit",["exports","hospitalrun/models/abstract","ember-data","ember","moment"],function(e,t,n,a,l){function s(e){if(!e.get("hasDirtyAttributes"))return!1;var t=e.get("startDate"),n=e.get("endDate");return!a.default.isEmpty(n)&&!a.default.isEmpty(t)&&n.getTime()n)return t.set("value",l),t.save()})})},beforeUpdate:function(){var e=this;return this.get("model.isNew")?this.generateFriendlyId("patient").then(function(t){e.model.set("friendlyId",t)}):s.default.RSVP.resolve()},afterUpdate:function(e){var t=this;this._updateSequence(e).then(function(){$(".message").show(),$(".message").text(t.get("i18n").t("patients.messages.savedPatient",e)),$(".message").delay(3e3).fadeOut(100)})}})}),define("hospitalrun/patients/edit/route",["exports","hospitalrun/routes/abstract-edit-route","ember","hospitalrun/mixins/patient-visits","hospitalrun/mixins/patient-notes","hospitalrun/mixins/pouchdb","ember-i18n"],function(e,t,n,a,l,s,i){e.default=t.default.extend(a.default,s.default,l.default,{customForms:n.default.inject.service(),editTitle:(0,i.translationMacro)("patients.titles.edit"),modelName:"patient",newTitle:(0,i.translationMacro)("patients.titles.new"),photos:null,actions:{updateNote:function(e){e.get("visit").save().then(function(){})},appointmentDeleted:function(e){this.controller.send("appointmentDeleted",e)},returnToPatient:function(){this.controller.send("returnToPatient")},deleteContact:function(e){this.controller.send("deleteContact",e)},deleteExpense:function(e){this.controller.send("deleteExpense",e)},deleteFamily:function(e){this.controller.send("deleteFamily",e)},deletePhoto:function(e){this.controller.send("deletePhoto",e)},updateExpense:function(e){this.controller.send("updateExpense",e)},updateFamilyInfo:function(e){this.controller.send("updateFamilyInfo",e)},visitDeleted:function(e){this.controller.send("visitDeleted",e)}},getNewData:function(){var e=this.get("customForms"),t={customForms:n.default.Object.create()};return e.setDefaultCustomForms(["patient","socialwork"],t)},setupController:function(e,t){var a=t.get("friendlyId"),l=t.get("externalPatientId"),s=this.get("maxValue"),i=t.get("id");n.default.isEmpty(a)&&!n.default.isEmpty(l)&&t.set("friendlyId",l),this._super(e,t),this.getPatientVisits(t).then(function(e){t.set("visits",e)}),this.store.query("appointment",{options:{startkey:[i,null,null,"appointment_"],endkey:[i,s,s,s]},mapReduce:"appointments_by_patient"}).then(function(e){t.set("appointments",e)}),this.store.query("photo",{options:{key:i},mapReduce:"photo_by_patient"}).then(function(e){var n=[];n.addObjects(e),t.set("photos",n)})}})}),define("hospitalrun/patients/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"oQuMyGUt",
+block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],52]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","colspan","2"],["flush-element"],["open-element","b",[]],["flush-element"],["append",["helper",["t"],["patients.labels.totalMontlyExpense"],null],false],["close-element"],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["totalExpenses"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeleteExpense",["get",["expense"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["append",["helper",["t"],["buttons.delete"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["expense","category"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["expense","sources"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["expense","cost"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"showEditExpense",["get",["expense"]]]],["flush-element"],["append",["helper",["t"],["labels.edit"],null],false],["close-element"],["text","\\n"],["block",["if"],[["get",["canDeleteSocialWork"]]],null,1],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["expense"]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeleteFamily",["get",["info"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["append",["helper",["t"],["buttons.delete"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["info","name"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["info","age"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["info","civilStatus"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["info","relationship"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["info","education"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["info","occupation"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["info","income"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["info","insurance"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"showEditFamily",["get",["info"]]]],["flush-element"],["append",["helper",["t"],["labels.edit"],null],false],["close-element"],["text","\\n"],["block",["if"],[["get",["canDeleteSocialWork"]]],null,3],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["info"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","role","tabpanel"],["static-attr","class","tab-pane"],["static-attr","id","social"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body detail-section-content"],["flush-element"],["text","\\n "],["open-element","h4",[]],["flush-element"],["text","\\n "],["append",["helper",["t"],["patients.titles.familyInformation"],null],false],["text","\\n "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-primary align-right"],["modifier",["action"],[["get",[null]],"showEditFamily"],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["patients.buttons.addFamilyMember"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.name"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.age"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["patients.labels.civilStatus"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["patients.labels.relationship"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["patients.labels.education"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["patients.labels.occupation"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["patients.labels.income"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["patients.labels.insurance"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.action"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","familyInfo"]]],null,4],["text"," "],["close-element"],["text","\\n "],["open-element","h4",[]],["flush-element"],["text","\\n "],["append",["helper",["t"],["patients.titles.expenses"],null],false],["text","\\n "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-primary align-right"],["modifier",["action"],[["get",[null]],"showEditExpense"],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["append",["helper",["t"],["patients.buttons.addExpense"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.category"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["patients.labels.sources"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["patients.labels.monthlyCost"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.actions"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","expenses"]]],null,2],["block",["if"],[["get",["showExpenseTotal"]]],null,0],["text"," "],["close-element"],["text","\\n "],["append",["helper",["custom-form-manager"],null,[["model","formType"],[["get",["model"]],"socialwork"]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","panel-heading"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-primary align-right"],["modifier",["action"],[["get",[null]],"newLab"],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["patients.buttons.newLab"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","panel-heading"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-primary align-right"],["modifier",["action"],[["get",[null]],"newImaging"],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["patients.buttons.newImaging"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","panel-heading"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-primary align-right"],["modifier",["action"],[["get",[null]],"newMedication"],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["append",["helper",["t"],["patients.buttons.newMedication"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeleteVisit",["get",["visit"]]],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["buttons.delete"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"editVisit",["get",["visit"]]]],["flush-element"],["append",["helper",["t"],["labels.edit"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["modifier",["action"],[["get",[null]],"editVisit",["get",["visit"]]]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["visit","startDate"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["visit","endDate"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["visit","primaryDiagnoses"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["visit","examiner"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["visit","location"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["visit","visitType"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddVisit"]]],null,10],["block",["if"],[["get",["canDeleteVisit"]]],null,9],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["visit"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","panel-heading"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-primary align-right"],["modifier",["action"],[["get",[null]],"newVisit"],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["patients.buttons.newVisit"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeleteAppointment",["get",["appointment"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["buttons.delete"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"editAppointment",["get",["appointment"]]]],["flush-element"],["append",["helper",["t"],["labels.edit"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["modifier",["action"],[["get",[null]],"editAppointment",["get",["appointment"]]]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["appointment","formattedAppointmentDate"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["appointment","provider"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["appointment","location"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["appointment","appointmentType"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["appointment","displayStatus"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddAppointment"]]],null,14],["block",["if"],[["get",["canDeleteAppointment"]]],null,13],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["appointment"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","panel-heading"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","right"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-primary"],["modifier",["action"],[["get",[null]],"newAppointment"],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["append",["helper",["t"],["patients.buttons.newAppointment"],null],false],["text","\\n "],["close-element"],["text"," \\n "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-primary"],["modifier",["action"],[["get",[null]],"newSurgicalAppointment"],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["append",["helper",["t"],["patients.buttons.scheduleSurgery"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeletePhoto",["get",["photo"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["append",["helper",["t"],["buttons.delete"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"editPhoto",["get",["photo"]]]],["flush-element"],["append",["helper",["t"],["labels.edit"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","col-sm-4 col-md-3"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","thumbnail"],["modifier",["action"],[["get",[null]],"editPhoto",["get",["photo"]]]],["flush-element"],["text","\\n "],["append",["helper",["photo-display"],null,[["photo"],[["get",["photo"]]]]],false],["text","\\n "],["open-element","div",[]],["static-attr","class","caption"],["flush-element"],["text","\\n "],["append",["unknown",["photo","caption"]],false],["text","\\n "],["open-element","p",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddPhoto"]]],null,18],["block",["if"],[["get",["canDeletePhoto"]]],null,17],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["photo"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","panel-heading"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-primary align-right"],["modifier",["action"],[["get",[null]],"showAddPhoto"],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["append",["helper",["t"],["patients.buttons.newPhoto"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","role","tabpanel"],["static-attr","class","tab-pane"],["static-attr","id","photos"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel"],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddPhoto"]]],null,20],["text"," "],["open-element","div",[]],["static-attr","class","panel-body detail-section-content"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n"],["block",["each"],[["get",["model","photos"]]],null,19],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","role","tabpanel"],["static-attr","class","tab-pane"],["static-attr","id","appointments"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel"],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddAppointment"]]],null,16],["text"," "],["open-element","div",[]],["static-attr","class","panel-body detail-section-content"],["flush-element"],["text","\\n "],["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.date"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["visits.labels.examiner"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.location"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.type"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.status"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.actions"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","appointments"]]],null,15],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","role","tabpanel"],["static-attr","class","tab-pane"],["static-attr","id","visits"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel"],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddVisit"]]],null,12],["text"," "],["open-element","div",[]],["static-attr","class","panel-body detail-section-content"],["flush-element"],["text","\\n "],["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.startDate"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.endDate"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["visits.labels.diagnosis"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.provider"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.location"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.type"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.actions"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","visits"]]],null,11],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","role","tabpanel"],["static-attr","class","tab-pane"],["static-attr","id","medication"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel"],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddMedication"]]],null,8],["text"," "],["open-element","div",[]],["static-attr","class","panel-body detail-section-content"],["flush-element"],["text","\\n "],["partial","patients/medication"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","role","tabpanel"],["static-attr","class","tab-pane"],["static-attr","id","imaging"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel"],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddImaging"]]],null,7],["text"," "],["open-element","div",[]],["static-attr","class","panel-body detail-section-content"],["flush-element"],["text","\\n "],["partial","patients/imaging"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","role","tabpanel"],["static-attr","class","tab-pane"],["static-attr","id","labs"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel"],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddLab"]]],null,6],["text"," "],["open-element","div",[]],["static-attr","class","panel-body detail-section-content"],["flush-element"],["text","\\n "],["partial","patients/labs"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["canAddSocialWork"]]],null,5]],"locals":[]},{"statements":[["text"," "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeleteContact",["get",["additionalContact"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["append",["helper",["t"],["buttons.delete"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["additionalContact","name"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["additionalContact","phone"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["additionalContact","email"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["additionalContact","relationship"]],false],["close-element"],["text","\\n"],["block",["if"],[["get",["canDeleteContact"]]],null,22],["text"," "],["close-element"],["text","\\n"]],"locals":["additionalContact"]},{"statements":[["text"," "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.action"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","h4",[]],["flush-element"],["append",["helper",["t"],["patients.titles.additionalContacts"],null],false],["close-element"],["text","\\n "],["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.name"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["patients.labels.phone"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.email"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["patients.labels.relationship"],null],false],["close-element"],["text","\\n"],["block",["if"],[["get",["canDeleteContact"]]],null,24],["text"," "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","additionalContacts"]]],null,23],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-text"],null,[["label","property","rows","class"],[["helper",["t"],["labels.address"],null],"address",3,"col-xs-12 col-sm-6"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-input"],null,[["label","property","class"],[["get",["address4Label"]],"address4","col-xs-12 col-sm-6"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-input"],null,[["label","property","class"],[["get",["address3Label"]],"address3","col-xs-12 col-sm-6"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-input"],null,[["label","property","class"],[["get",["address2Label"]],"address2","col-xs-12 col-sm-6"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-text"],null,[["label","property","rows","class"],[["get",["address1Label"]],"address",3,"col-xs-12 col-sm-6"]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["address1Include"]]],null,30],["block",["if"],[["get",["address2Include"]]],null,29],["block",["if"],[["get",["address3Include"]]],null,28],["block",["if"],[["get",["address4Include"]]],null,27]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","panel-heading"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-primary align-right"],["modifier",["action"],[["get",[null]],"showAddContact"],[["bubbles","on"],[false,"click"]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["append",["helper",["t"],["patients.buttons.addContact"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["messages.noHistoryAvailable"],null],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","h5",[]],["static-attr","class","ph-note-heading"],["flush-element"],["append",["helper",["date-format"],[["get",["medication","prescriptionDate"]]],null],false],["text",": "],["append",["unknown",["medication","medicationName"]],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["helper",["eq"],[["get",["medication","status"]],"Fulfilled"],null]],null,34]],"locals":["medication"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","ph-note-item"],["flush-element"],["text","\\n "],["open-element","h5",[]],["static-attr","class","ph-note-heading"],["flush-element"],["append",["helper",["t"],["labels.medication"],null],false],["close-element"],["text","\\n"],["block",["each"],[["get",["visit","medication"]]],null,35],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","h5",[]],["static-attr","class","ph-note-heading"],["flush-element"],["append",["helper",["date-format"],[["get",["lab","labDate"]]],null],false],["text",": "],["append",["unknown",["lab","labType","name"]],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["helper",["eq"],[["get",["lab","status"]],"Completed"],null]],null,37]],"locals":["lab"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","ph-note-item"],["flush-element"],["text","\\n "],["open-element","h5",[]],["static-attr","class","ph-note-heading"],["flush-element"],["append",["helper",["t"],["labels.labOrders"],null],false],["close-element"],["text","\\n"],["block",["each"],[["get",["visit","labs"]]],null,38],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","h5",[]],["static-attr","class","ph-note-heading"],["flush-element"],["append",["helper",["date-format"],[["get",["imaging","imagingDate"]]],null],false],["text",": "],["append",["unknown",["imaging","imagingType","name"]],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["helper",["eq"],[["get",["imaging","status"]],"Completed"],null]],null,40]],"locals":["imaging"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","ph-note-item"],["flush-element"],["text","\\n "],["open-element","h5",[]],["static-attr","class","ph-note-heading"],["flush-element"],["append",["helper",["t"],["labels.imageOrders"],null],false],["close-element"],["text","\\n"],["block",["each"],[["get",["visit","imaging"]]],null,41],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","clickable"],["modifier",["action"],[["get",[null]],"editProcedure",["get",["procedure"]]]],["flush-element"],["text","\\n "],["open-element","h5",[]],["static-attr","class","ph-note-heading"],["flush-element"],["text","\\n "],["append",["helper",["date-format"],[["get",["procedure","procedureDate"]]],null],false],["text",":\\n "],["append",["unknown",["procedure","description"]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["procedure"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","ph-note-item"],["flush-element"],["text","\\n "],["open-element","h5",[]],["static-attr","class","ph-note-heading"],["flush-element"],["append",["helper",["t"],["labels.procedures"],null],false],["close-element"],["text","\\n"],["block",["each"],[["get",["visit","procedures"]]],null,43],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","patient-history-item"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","patient-history-heading clickable"],["modifier",["action"],[["get",[null]],"editVisit",["get",["visit"]]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","ph-visit-date"],["flush-element"],["append",["unknown",["visit","visitDate"]],false],["close-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","ph-visit-type"],["flush-element"],["append",["unknown",["visit","visitType"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["visit","procedures"]]],null,44],["block",["if"],[["get",["visit","hasCompletedImaging"]]],null,42],["block",["if"],[["get",["visit","hasCompletedLabs"]]],null,39],["block",["if"],[["get",["visit","hasCompletedMedication"]]],null,36],["text","\\n "],["close-element"],["text","\\n"]],"locals":["visit"]},{"statements":[["block",["each"],[["get",["model","visits"]]],null,45]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","panel-heading clearfix"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-primary align-right"],["modifier",["action"],[["get",[null]],"showAddPatientNote"],[["bubbles","on"],[false,"click"]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["append",["helper",["t"],["buttons.newNote"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","role","tabpanel"],["static-attr","class","tab-pane active"],["static-attr","id","history"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel detail-section"],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddNote"]]],null,47],["text"," "],["open-element","div",[]],["static-attr","class","panel-body detail-section-content"],["flush-element"],["text","\\n"],["block",["if"],[["get",["model","visits"]]],null,46,33],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","li",[]],["static-attr","role","presentation"],["flush-element"],["open-element","a",[]],["static-attr","href","#social"],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["static-attr","data-test-selector","social-tab"],["flush-element"],["append",["helper",["t"],["patients.navigation.socialWork"],null],false],["close-element"],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["patient-summary"],null,[["patient","patientProcedures","disablePatientLink","store","allowAddAllergy","allowAddDiagnosis","allowAddOperativePlan","diagnosisList"],[["get",["model"]],["get",["patientProcedures"]],true,["get",["store"]],true,true,true,["get",["diagnosisList"]]]]],false],["text","\\n "],["open-element","ul",[]],["static-attr","class","nav nav-pills tab-nav"],["static-attr","role","tablist"],["flush-element"],["text","\\n "],["open-element","li",[]],["static-attr","role","presentation"],["static-attr","class","active"],["flush-element"],["open-element","a",[]],["static-attr","href","#history"],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["static-attr","data-test-selector","history-tab"],["flush-element"],["append",["helper",["t"],["patients.navigation.history"],null],false],["close-element"],["close-element"],["text","\\n "],["open-element","li",[]],["static-attr","role","presentation"],["flush-element"],["open-element","a",[]],["static-attr","href","#general"],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["static-attr","data-test-selector","general-tab"],["flush-element"],["append",["helper",["t"],["patients.navigation.general"],null],false],["close-element"],["close-element"],["text","\\n "],["open-element","li",[]],["static-attr","role","presentation"],["flush-element"],["open-element","a",[]],["static-attr","href","#photos"],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["static-attr","data-test-selector","photos-tab"],["flush-element"],["append",["helper",["t"],["patients.navigation.photos"],null],false],["close-element"],["close-element"],["text","\\n "],["open-element","li",[]],["static-attr","role","presentation"],["flush-element"],["open-element","a",[]],["static-attr","href","#appointments"],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["static-attr","data-test-selector","appointments-tab"],["flush-element"],["append",["helper",["t"],["patients.navigation.appointments"],null],false],["close-element"],["close-element"],["text","\\n "],["open-element","li",[]],["static-attr","role","presentation"],["flush-element"],["open-element","a",[]],["static-attr","href","#visits"],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["static-attr","data-test-selector","visits-tab"],["flush-element"],["append",["helper",["t"],["patients.navigation.visits"],null],false],["close-element"],["close-element"],["text","\\n "],["open-element","li",[]],["static-attr","role","presentation"],["flush-element"],["open-element","a",[]],["static-attr","href","#medication"],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["static-attr","data-test-selector","medication-tab"],["flush-element"],["append",["helper",["t"],["patients.navigation.medication"],null],false],["close-element"],["close-element"],["text","\\n "],["open-element","li",[]],["static-attr","role","presentation"],["flush-element"],["open-element","a",[]],["static-attr","href","#imaging"],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["static-attr","data-test-selector","imaging-tab"],["flush-element"],["append",["helper",["t"],["patients.navigation.imaging"],null],false],["close-element"],["close-element"],["text","\\n "],["open-element","li",[]],["static-attr","role","presentation"],["flush-element"],["open-element","a",[]],["static-attr","href","#labs"],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["static-attr","data-test-selector","labs-tab"],["flush-element"],["append",["helper",["t"],["patients.navigation.labs"],null],false],["close-element"],["close-element"],["text","\\n"],["block",["if"],[["get",["canAddSocialWork"]]],null,49],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["unless"],[["get",["isNewOrDeleted"]]],null,50],["text"," "],["open-element","div",[]],["static-attr","class","tab-content"],["flush-element"],["text","\\n"],["block",["unless"],[["get",["isNewOrDeleted"]]],null,48],["text"," "],["open-element","div",[]],["static-attr","role","tabpanel"],["dynamic-attr","class",["concat",["tab-pane ",["helper",["if"],[["get",["isNewOrDeleted"]],"active"],null]]]],["static-attr","id","general"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel detail-section"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body detail-section-content"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","col-xs-12 col-sm-6"],["flush-element"],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["firstName",["helper",["t"],["patients.labels.firstName"],null],"form-input-group required test-first-name"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["middleName",["helper",["t"],["patients.labels.middleName"],null],"form-input-group test-middle-name"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["lastName",["helper",["t"],["patients.labels.lastName"],null],"form-input-group required test-last-name"]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","class","list","selection"],["sex",["helper",["t"],["patients.labels.sex"],null],"form-input-group",["get",["sexList"]],["get",["model","sex"]]]]],false],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class","maxDate"],["dateOfBirth",["helper",["t"],["patients.labels.dateOfBirth"],null],"form-input-group ","now"]]],false],["text","\\n "],["open-element","div",[]],["static-attr","class","form-input-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["labels.age"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","age"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["placeOfBirth",["helper",["t"],["patients.labels.placeOfBirth"],null],"form-input-group"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["occupation",["helper",["t"],["patients.labels.occupation"],null],"form-input-group"]]],false],["text","\\n "],["open-element","div",[]],["static-attr","class","form-input-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["flush-element"],["append",["helper",["t"],["patients.labels.patientType"],null],false],["close-element"],["text","\\n "],["open-element","div",[]],["flush-element"],["text","\\n "],["append",["helper",["ext-radio"],null,[["content","value","showInline"],[["get",["patientTypes"]],["get",["model","patientType"]],true]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","col-xs-12 col-sm-6"],["flush-element"],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection","class"],["status",["helper",["t"],["patients.labels.status"],null],["get",["statusList"]],["get",["model","status"]],"form-input-group"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["externalPatientId",["helper",["t"],["patients.labels.externalPatientId"],null],"form-input-group"]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["prompt","label","property","content","class"],[" ",["helper",["t"],["patients.labels.bloodType"],null],"bloodType",["get",["bloodTypes"]],"form-input-group"]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection","class"],["clinic",["helper",["t"],["patients.labels.clinic"],null],["get",["clinicList"]],["get",["model","clinic"]],"form-input-group"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["referredBy",["helper",["t"],["patients.labels.referredBy"],null],"form-input-group"]]],false],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class"],["referredDate",["helper",["t"],["patients.labels.referredDate"],null],"form-input-group"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["religion",["helper",["t"],["patients.labels.religion"],null],"form-input-group"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["parent",["helper",["t"],["patients.labels.parent"],null],"form-input-group"]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["label","property","content","optionValuePath","optionLabelPath","prompt","class"],[["helper",["t"],["billing.labels.paymentProfile"],null],"paymentProfile",["get",["pricingProfiles"]],"selectObject","selectObject.name"," ","form-input-group"]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel detail-section"],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddContact"]]],null,32],["text"," "],["open-element","div",[]],["static-attr","class","panel-body detail-section-content"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["phone",["helper",["t"],["patients.labels.phone"],null],"col-xs-12 col-sm-6"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","type","label","class"],["email","email",["helper",["t"],["labels.email"],null],"col-xs-12 col-sm-6"]]],false],["text","\\n"],["block",["if"],[["get",["haveAddressOptions"]]],null,31,26],["text"," "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection","className"],["country",["helper",["t"],["labels.country"],null],["get",["countryList"]],["get",["model","country"]],"col-xs-12 col-sm-6"]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["haveAdditionalContacts"]]],null,25],["text"," "],["close-element"],["text","\\n "],["append",["helper",["custom-form-manager"],null,[["model","formType"],[["get",["model"]],"patient"]]],false],["text","\\n "],["close-element"],["text","\\n"],["block",["unless"],[["get",["isNewOrDeleted"]]],null,21],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton","bubbles"],[["get",["model"]],false,false]],51],["text"," "],["open-element","div",[]],["static-attr","class","alert alert-success message"],["static-attr","style","display:none;"],["flush-element"],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":true}',
+meta:{moduleName:"hospitalrun/patients/edit/template.hbs"}})}),define("hospitalrun/patients/imaging/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"b0VbAwnT",block:'{"statements":[["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.dateRequested"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.imagingType"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.status"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["patients.labels.dateProcessed"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.result"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.notes"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.requestedBy"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.actions"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["patientImaging"]]],null,3],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeleteImaging",["get",["imaging"]]],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["labels.delete"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"editImaging",["get",["imaging"]]]],["flush-element"],["append",["helper",["t"],["labels.edit"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["canAddImaging"]]],null,1],["block",["if"],[["get",["canDeleteImaging"]]],null,0]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["modifier",["action"],[["get",[null]],"editImaging",["get",["imaging"]]]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["imaging","requestedDate"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["imaging","imagingType","name"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["imaging","status"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["imaging","imagingDate"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["imaging","result"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["imaging","notes"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["imaging","requestedBy"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["imaging","canEdit"]]],null,2],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["imaging"]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/patients/imaging/template.hbs"}})}),define("hospitalrun/patients/index/controller",["exports","hospitalrun/controllers/abstract-paged-controller","hospitalrun/mixins/patient-visits","hospitalrun/utils/visit-statuses"],function(e,t,n,a){e.default=t.default.extend(n.default,{addPermission:"add_patient",deletePermission:"delete_patient",canAdmitPatient:function(){return this.currentUserCan("admit_patient")}.property(),canDischargePatient:function(){return this.currentUserCan("discharge_patient")}.property(),startKey:[],actions:{checkInPatient:function(e){this.send("createNewVisit",e)},checkoutPatient:function(e){this.editPatientVisitWithStatus(e,a.default.CHECKED_IN)},dischargePatient:function(e){this.editPatientVisitWithStatus(e,a.default.ADMITTED)}},editPatientVisitWithStatus:function(e,t){var n=this;this.getPatientVisits(e).then(function(e){var a=e.findBy("status",t);a&&(a.set("endDate",new Date),n.transitionToRoute("visits.edit",a))})}})}),define("hospitalrun/patients/index/route",["exports","hospitalrun/routes/abstract-index-route","ember","ember-i18n","hospitalrun/mixins/user-session"],function(e,t,n,a,l){var s=n.default.computed;e.default=t.default.extend(l.default,{modelName:"patient",newButtonAction:s(function(){return this.currentUserCan("add_patient")?"newItem":null}),newButtonText:(0,a.translationMacro)("patients.buttons.newPatient"),pageTitle:(0,a.translationMacro)("patients.titles.patientListing"),_getStartKeyFromItem:function(e){return[e.get("displayPatientId"),this._getPouchIdFromItem(e)]},_modelQueryParams:function(){return{mapReduce:"patient_by_display_id"}}})}),define("hospitalrun/patients/index/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"RoAn9yIP",block:'{"statements":[["block",["item-listing"],null,[["paginationProps"],[["get",["paginationProps"]]]],21]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","a",[]],["static-attr","href","#"],["modifier",["action"],[["get",[null]],"newItem"]],["flush-element"],["append",["helper",["t"],["patients.messages.createNewPatient"],null],false],["close-element"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-info"],["static-attr","data-test-selector","no-patients-found"],["flush-element"],["text","\\n "],["open-element","p",[]],["flush-element"],["append",["helper",["t"],["patients.messages.noPatientsFound"],null],false],["block",["if"],[["get",["canAdd"]]],null,0],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"deleteItem",["get",["patient"]]],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["buttons.delete"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-primary success admit"],["modifier",["action"],[["get",[null]],"checkInPatient",["get",["patient"]]],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","glyphicon glyphicon-log-in"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["visits.buttons.checkIn"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["canAdmitPatient"]]],null,3]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-primary info"],["modifier",["action"],[["get",[null]],"checkoutPatient",["get",["patient"]]],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","glyphicon glyphicon-log-out"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["visits.buttons.checkOut"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["canDischargePatient"]]],null,5]],"locals":[]},{"statements":[["block",["if"],[["get",["patient","checkedIn"]]],null,6,4]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-primary info"],["modifier",["action"],[["get",[null]],"dischargePatient",["get",["patient"]]],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","glyphicon glyphicon-log-out"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["visits.buttons.discharge"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["canDischargePatient"]]],null,8]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"editItem",["get",["patient"]]],[["bubbles"],[false]]],["flush-element"],["append",["helper",["t"],["labels.edit"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAdd"]]],null,10],["block",["if"],[["get",["patient","admitted"]]],null,9,7],["block",["if"],[["get",["canDelete"]]],null,2],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["static-attr","class","clickable"],["modifier",["action"],[["get",[null]],"editItem",["get",["patient"]]]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["patient","displayPatientId"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["patient","firstName"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["patient","lastName"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["patient","sex"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["patient","dateOfBirth"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["patient","status"]],false],["close-element"],["text","\\n"],["block",["if"],[["get",["showActions"]]],null,11],["text"," "],["close-element"],["text","\\n"]],"locals":["patient"]},{"statements":[["text"," "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.actions"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["append",["helper",["t"],["labels.status"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["patients.labels.dob"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["patients.labels.sex"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["patients.labels.lastName"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["patients.labels.firstName"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["labels.id"],null],false]],"locals":[]},{"statements":[["text"," "],["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","thead",[]],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["id",["get",["sortDesc"]],["get",["sortKey"]]]],19],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["firstName",["get",["sortDesc"]],["get",["sortKey"]]]],18],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["lastName",["get",["sortDesc"]],["get",["sortKey"]]]],17],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["sex",["get",["sortDesc"]],["get",["sortKey"]]]],16],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["dateOfBirth",["get",["sortDesc"]],["get",["sortKey"]]]],15],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["status",["get",["sortDesc"]],["get",["sortKey"]]]],14],["text","\\n"],["block",["if"],[["get",["showActions"]]],null,13],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","tbody",[]],["flush-element"],["text","\\n"],["block",["each"],[["get",["model"]]],null,12],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["hasRecords"]]],null,20,1]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/patients/index/template.hbs"}})}),define("hospitalrun/patients/labs/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"NZjGsEXR",block:'{"statements":[["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.dateRequested"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labs.labels.labType"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.status"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["patients.labels.dateProcessed"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.result"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.notes"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.requestedBy"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.actions"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["patientLabs"]]],null,3],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeleteLab",["get",["lab"]]],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["labels.delete"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"editLab",["get",["lab"]]]],["flush-element"],["append",["helper",["t"],["labels.edit"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["canAddLab"]]],null,1],["block",["if"],[["get",["canDeleteLab"]]],null,0]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["modifier",["action"],[["get",[null]],"editLab",["get",["lab"]]]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["lab","requestedDate"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["lab","labType","name"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["lab","status"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["lab","labDate"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["lab","result"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["lab","notes"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["lab","requestedBy"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["lab","canEdit"]]],null,2],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["lab"]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/patients/labs/template.hbs"}})}),define("hospitalrun/patients/medication/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"s3chlZL2",block:'{"statements":[["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.date"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.name"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.status"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.prescription"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.requestedBy"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.actions"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["patientMedications"]]],null,3],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeleteMedication",["get",["medication"]]],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["append",["helper",["t"],["labels.delete"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"editMedication",["get",["medication"]]]],["flush-element"],["append",["helper",["t"],["labels.edit"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["canAddMedication"]]],null,1],["block",["if"],[["get",["canDeleteMedication"]]],null,0]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["modifier",["action"],[["get",[null]],"editMedication",["get",["medication"]]]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["medication","prescriptionDate"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["medication","medicationName"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["medication","status"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["medication","prescription"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["medication","requestedBy"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["medication","canEdit"]]],null,2],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["medication"]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/patients/medication/template.hbs"}})}),define("hospitalrun/patients/notes/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember","hospitalrun/mixins/is-update-disabled","moment","hospitalrun/mixins/patient-submodule","hospitalrun/mixins/patient-notes","hospitalrun/mixins/user-session"],function(e,t,n,a,l,s,i,o){e.default=t.default.extend(a.default,o.default,s.default,i.default,{cancelAction:"closeModal",updateAction:"updateNote",moduleController:n.default.inject.controller("patients"),physicianList:n.default.computed.alias("moduleController.physicianList"),lookupListsToUpdate:[{name:"physicianList",property:"model.attribution",id:"physician_list"}],title:function(){return this.get("model.isNew")?this.get("i18n").t("patients.notes.newNote")+" "+this.get("model.patient.displayName"):this.get("i18n").t("patients.notes.newNote")+" "+(0,l.default)(this.get("model.date")).format("MM/DD/YYYY")+" for "+this.get("model.patient.displayName")}.property("model.patient.displayName"),updateCapability:"add_note",beforeUpdate:function(){return this._setNoteType(),this.set("model.date",new Date),this.set("model.createdBy",this.getUserName()),n.default.RSVP.Promise.resolve()},afterUpdate:function(){this.send(this.get("updateAction"),this.get("model")),this.send(this.get("cancelAction"))}})}),define("hospitalrun/patients/notes/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"MTd3HhDs",block:'{"statements":[["block",["modal-dialog"],null,[["hideCancelButton","hideUpdateButton","isUpdateDisabled","title","updateButtonAction","updateButtonText"],[["get",["hideCancelButton"]],["get",["hideUpdateButton"]],["get",["isUpdateDisabled"]],["get",["title"]],["get",["updateButtonAction"]],["get",["updateButtonText"]]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["expand-text"],null,[["label","property","rows","class"],[["helper",["t"],["labels.note"],null],"content",3,"test-note-content required form-input-group"]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content","optionValuePath","optionLabelPath","prompt","selected"],["required",["helper",["t"],["labels.visit"],null],"visit",["get",["patientVisitsForSelect"]],"selectObject","selectObject.visitDescription",["helper",["t"],["patients.notes.pleaseSelectAVisit"],null],["get",["model","visit"]]]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection","className"],["attribution",["helper",["t"],["patients.notes.onBehalfOfLabel"],null],["get",["physicianList"]],["get",["attribution"]],"form-input-group test-note-attribution"]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],0]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/patients/notes/template.hbs"}})}),define("hospitalrun/patients/operation-report/controller",["exports","ember","hospitalrun/patients/operative-plan/controller"],function(e,t,n){var a=t.default.computed.alias,l=t.default.get;e.default=n.default.extend({additionalButtons:null,lookupListsToUpdate:[{name:"physicianList",property:"model.assistant",id:"physician_list"},{name:"physicianList",property:"model.surgeon",id:"physician_list"},{name:"procedureList",property:"modelProcedures",id:"procedure_list"}],updateCapability:"add_operation_report",diagnosisList:a("patientController.diagnosisList"),_finishAfterUpdate:function(){var e=l(this,"i18n"),t=e.t("operationReport.messages.reportSaved"),n=e.t("operationReport.titles.reportSaved");this.displayAlert(n,t)},actions:{addDiagnosis:function(e){this.addDiagnosisToModelAndPatient(e)}}})}),define("hospitalrun/patients/operation-report/route",["exports","hospitalrun/patients/operative-plan/route","ember-i18n"],function(e,t,n){e.default=t.default.extend({editTitle:(0,n.translationMacro)("operationReport.titles.editTitle"),modelName:"operation-report",newTitle:(0,n.translationMacro)("operationReport.titles.newTitle")})}),define("hospitalrun/patients/operation-report/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"WQ0WTHDG",block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["patient-summary"],null,[["allowAddDiagnosis","diagnosisContainer","diagnosisList","disablePatientLink","patient"],[true,["get",["model"]],["get",["diagnosisList"]],true,["get",["model","patient"]]]]],false],["text","\\n "],["open-element","div",[]],["static-attr","class","patient-summary clearfix"],["flush-element"],["text","\\n "],["append",["helper",["patient-diagnosis"],null,[["diagnosisContainer","diagnosisProperty","primaryDiagnosisLabel","secondaryDiagnosisLabel"],[["get",["model"]],"preOpDiagnoses",["helper",["t"],["operationReport.labels.preOpPrimaryDiagnosis"],null],["helper",["t"],["operationReport.labels.preOpSecondaryDiagnosis"],null]]]],false],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["expand-text"],null,[["property","label","class"],["operationDescription",["helper",["t"],["operationReport.labels.operationDescription"],null],"operation-description"]]],false],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class"],["surgeryDate",["helper",["t"],["operationReport.labels.surgeryDate"],null],"form-input-group col-sm-4 surgery-date"]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["className","property","label","list","selection","class"],["col-sm-3","surgeon",["helper",["t"],["operationReport.labels.surgeon"],null],["get",["physicianList"]],["get",["model","surgeon"]],"operation-surgeon"]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["className","property","label","list","selection","class"],["col-sm-3","assistant",["helper",["t"],["operationReport.labels.assistant"],null],["get",["physicianList"]],["get",["model","assistant"]],"operation-assistant"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["caseComplexity",["helper",["t"],["operationReport.labels.caseComplexity"],null],"col-sm-2 case-complexity"]]],false],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["operative-procedures"],null,[["model","procedureList"],[["get",["model"]],["get",["procedureList"]]]]],false],["text","\\n "],["append",["helper",["expand-text"],null,[["property","label"],["additionalNotes",["helper",["t"],["operationReport.labels.additionalNotes"],null]]]],false],["text","\\n "],["append",["helper",["upcoming-appointments"],null,[["patient"],[["get",["model","patient"]]]]],false],["text","\\n "],["append",["helper",["custom-form-manager"],null,[["model","formType"],[["get",["model"]],"operativePlan"]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],0]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/patients/operation-report/template.hbs"}})}),define("hospitalrun/patients/operative-plan/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember","hospitalrun/components/operative-procedures","hospitalrun/mixins/operative-plan-statuses","hospitalrun/mixins/patient-submodule"],function(e,t,n,a,l,s){var i=n.default.computed,o=n.default.computed.alias,r=n.default.get,d=n.default.inject,c=n.default.RSVP,u=n.default.set,p=["additionalNotes","caseComplexity","customForms","patient","procedures","operationDescription","surgeon"];e.default=t.default.extend(l.default,s.default,{completedPlan:!1,lookupListsToUpdate:[{name:"physicianList",property:"model.surgeon",id:"physician_list"},{name:"procedureList",property:"modelProcedures",id:"procedure_list"}],newPlan:!1,updateCapability:"add_operative_plan",patientsController:d.controller("patients"),physicianList:o("patientsController.physicianList"),procedureList:o("patientsController.procedureList"),additionalButtons:i("model.{isNew,status}",function(){var e=r(this,"i18n"),t=r(this,"model.isNew"),n=r(this,"model.status");if(!t&&n!==l.COMPLETED_STATUS)return[{class:"btn btn-primary on-white",buttonAction:"completePlan",buttonIcon:"octicon octicon-check",buttonText:e.t("operativePlan.buttons.completePlan")}]}),modelProcedures:i.map("model.procedures",function(e){return r(e,"description")}),afterUpdate:function(){var e=this;r(this,"newPlan")?r(this,"model.patient").save().then(this._finishAfterUpdate.bind(this)).then(function(){var t=r(e,"i18n").t("operativePlan.titles.editTitle"),n={};n.currentScreenTitle=t,e.send("setSectionHeader",n)}):this._finishAfterUpdate()},beforeUpdate:function(){var e=r(this,"model"),t=r(e,"isNew"),n=r(e,"status");if((0,a.addProcedure)(e),u(this,"newPlan",t),n===l.COMPLETED_STATUS){e.changedAttributes().status&&u(this,"completedPlan",!0)}else u(this,"completedPlan",!1);return t?this.saveNewDiagnoses():c.resolve()},_createOperationReport:function(){var e=this,t=r(this,"store"),n=r(this,"model"),a=n.getProperties.apply(n,p),l=r(n,"diagnoses"),s=r(n,"patient");u(a,"operativePlan",n),u(a,"preOpDiagnosis",l),u(a,"surgeryDate",new Date),u(a,"returnToPatient",r(s,"id"));var i=t.createRecord("operation-report",a);this.getPatientDiagnoses(s,i),i.save().then(function(t){s.save().then(function(){var n=r(e,"i18n"),a=n.t("operativePlan.messages.planCompleted"),l=n.t("operativePlan.titles.planCompleted");e.displayAlert(l,a,"showOperationReport",t,"ok")})})},_finishAfterUpdate:function(){if(r(this,"completedPlan"))this._createOperationReport();else{var e=r(this,"i18n"),t=e.t("operativePlan.messages.planSaved"),n=e.t("operativePlan.titles.planSaved");this.displayAlert(n,t)}},actions:{completePlan:function(){var e=r(this,"model");u(e,"status",l.COMPLETED_STATUS),this.send("update")}}})}),define("hospitalrun/patients/operative-plan/route",["exports","hospitalrun/routes/abstract-edit-route","hospitalrun/mixins/add-to-patient-route","ember","moment","ember-i18n"],function(e,t,n,a,l,s){var i=a.default.get,o=a.default.inject;e.default=t.default.extend(n.default,{editTitle:(0,s.translationMacro)("operativePlan.titles.editTitle"),modelName:"operative-plan",newTitle:(0,s.translationMacro)("operativePlan.titles.newTitle"),customForms:o.service(),database:o.service(),getNewData:function(){var e=i(this,"customForms"),t={customForms:a.default.Object.create()};return e.setDefaultCustomForms(["operativePlan"],t)},setupController:function(e,t){this._super(e,t);var n=i(this,"database"),a=n.getMaxPouchId("appointment"),s=n.getMinPouchId("appointment"),o=i(t,"patient.id"),r=(0,l.default)().toDate().getTime(),d=(0,l.default)().add(10,"years").toDate().getTime();this.store.query("appointment",{options:{startkey:[o,r,r,s],endkey:[o,d,d,a]},mapReduce:"appointments_by_patient"}).then(function(e){t.set("appointments",e)})},actions:{
+showOperationReport:function(e){this.transitionTo("patients.operation-report",e)}}})}),define("hospitalrun/patients/operative-plan/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"Y/rrp7oM",block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["patient-summary"],null,[["patient","disablePatientLink","diagnosisContainer"],[["get",["model","patient"]],true,["get",["model"]]]]],false],["text","\\n "],["append",["helper",["expand-text"],null,[["property","label","class"],["operationDescription",["helper",["t"],["operativePlan.labels.operationDescription"],null],"operation-description"]]],false],["text","\\n "],["append",["helper",["operative-procedures"],null,[["model","procedureList"],[["get",["model"]],["get",["procedureList"]]]]],false],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["className","property","label","list","selection","class"],["col-sm-4","surgeon",["helper",["t"],["operativePlan.labels.surgeon"],null],["get",["physicianList"]],["get",["model","surgeon"]],"plan-surgeon"]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["prompt","label","property","content","class"],[" ",["helper",["t"],["operativePlan.labels.status"],null],"status",["get",["planStatuses"]],"form-input-group col-sm-2 plan-status"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["caseComplexity",["helper",["t"],["operativePlan.labels.caseComplexity"],null],"col-sm-2 case-complexity"]]],false],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["expand-text"],null,[["property","label","class"],["admissionInstructions",["helper",["t"],["operativePlan.labels.admissionInstructions"],null],"admission-instructions"]]],false],["text","\\n "],["append",["helper",["expand-text"],null,[["property","label","class"],["additionalNotes",["helper",["t"],["operativePlan.labels.additionalNotes"],null],"additional-notes"]]],false],["text","\\n "],["append",["helper",["upcoming-appointments"],null,[["patient"],[["get",["model","patient"]]]]],false],["text","\\n "],["append",["helper",["custom-form-manager"],null,[["model","formType"],[["get",["model"]],"operativePlan"]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],0]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/patients/operative-plan/template.hbs"}})}),define("hospitalrun/patients/outpatient/controller",["exports","ember","hospitalrun/mixins/filter-list","hospitalrun/mixins/modal-helper","hospitalrun/mixins/patient-visits","hospitalrun/utils/select-values","hospitalrun/mixins/user-session","hospitalrun/utils/visit-statuses","hospitalrun/mixins/visit-types"],function(e,t,n,a,l,s,i,o,r){var d=t.default.computed,c=t.default.isEmpty;e.default=t.default.Controller.extend(n.default,a.default,l.default,s.default,i.default,r.default,{addPermission:"add_patient",deletePermission:"delete_patient",queryParams:["visitDate","visitLocation"],visitLocation:null,visitDate:null,canAddVisit:d(function(){return this.currentUserCan("add_visit")}),hasAppointmentLabels:d(function(){var e=this.get("i18n");return[e.t("visits.labels.haveAppointment"),e.t("visits.labels.noAppointment")]}),doneOrdersValues:d(function(){var e=this.get("i18n");return[e.t("visits.labels.ordersNotDone"),e.t("visits.labels.haveDoneOrders")]}),locationList:t.default.computed.map("patientController.locationList.value",s.default.selectValuesMap).volatile(),patientNames:d.map("model",function(e){return e.get("patient.shortDisplayName")}),patientController:t.default.inject.controller("patients"),sexList:d.alias("patientController.sexList.value"),visitTypesList:d.alias("patientController.visitTypesList"),visitTypesValues:d.map("visitTypes",function(e){return e.value}),checkedInVisits:d.filter("model.@each.status",function(e){return"Admission"!==e.get("visitType")&&e.get("status")===o.default.CHECKED_IN}),filteredVisits:d("checkedInVisits","filterBy","filterValue","visitLocation",function(){var e=this.get("filterBy"),t=this.get("filterValue"),n=this.get("filteredBy"),a=this.get("visitLocation"),l=this.get("checkedInVisits");return c(a)?n.delete("location"):n.set("location",a),this.filterList(l,e,t)}),sortedVisits:d("filteredVisits","sortByKey","sortByDesc",function(){var e=this.get("filteredVisits");return this.sortFilteredList(e)}),startKey:[],actions:{checkOut:function(e){var t=this.get("i18n"),n={patientName:e.get("patient.displayName")},a=t.t("visits.messages.checkOut",n);this.displayConfirm(t.t("visits.titles.checkOut"),a,"finishCheckOut",e)},editVisit:function(e){this.get("canAddVisit")&&(e.set("returnTo","patients.outpatient"),this.transitionToRoute("visits.edit",e))},finishCheckOut:function(e){this.checkoutVisit(e,o.default.CHECKED_OUT)},search:function(){var e=this.get("model.selectedVisitDate"),t=this.get("model.selectedLocation");c(e)||this.set("visitDate",e.getTime()),c(t)?this.set("visitLocation",null):this.set("visitLocation",t)},patientCheckIn:function(){this.transitionToRoute("visits.edit","checkin").then(function(e){var t={outPatient:!0,visitType:null,returnTo:"patients.outpatient"};e.currentModel.setProperties(t)})}}})}),define("hospitalrun/patients/outpatient/route",["exports","hospitalrun/routes/abstract-index-route","hospitalrun/mixins/date-format","ember","moment","ember-i18n"],function(e,t,n,a,l,s){var i=a.default.computed,o=a.default.isEmpty;e.default=t.default.extend(n.default,{database:a.default.inject.service(),itemsPerPage:null,modelName:"visit",newButtonAction:"patientCheckIn",newButtonText:(0,s.translationMacro)("patients.buttons.patientCheckIn"),selectedVisitDate:null,showingTodaysPatients:!0,pageTitle:i("showingTodaysPatients","selectedVisitDate",function(){var e=this.get("i18n");if(this.get("showingTodaysPatients"))return e.t("patients.titles.todaysOutpatients");var t=this._dateFormat(this.get("selectedVisitDate"));return e.t("patients.titles.outpatientsForDate",{visitDate:t})}),queryParams:{visitDate:{refreshModel:!0},visitLocation:{refreshModel:!1}},_getStartKeyFromItem:function(e){return[e.get("displayPatientId"),"patient_"+e.get("id")]},_modelQueryParams:function(e){var t=this.get("database"),n=t.getMaxPouchId("visit"),a=t.getMinPouchId("visit"),s=e.visitDate;s=o(s)?(0,l.default)():(0,l.default)(parseInt(s)),s.isSame((0,l.default)(),"day")?this.set("showingTodaysPatients",!0):(this.set("showingTodaysPatients",!1),this.set("selectedVisitDate",s.toDate()));var i=s.endOf("day").valueOf();return{mapReduce:"visit_by_date",options:{endkey:[i,i,n],startkey:[s.startOf("day").valueOf(),null,a]}}},model:function(e){var t=this;return this._super(e).then(function(n){var a=new Date;return o(e.visitDate)||a.setTime(e.visitDate),n.set("selectedVisitDate",a),n.set("display_selectedVisitDate",t._dateFormat(a)),n.set("selectedLocation",e.visitLocation),n})},actions:{finishCheckOut:function(e){this.controller.send("finishCheckOut",e)},patientCheckIn:function(){this.controller.send("patientCheckIn")}}})}),define("hospitalrun/patients/outpatient/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"i/Y69zgf",block:'{"statements":[["block",["item-listing"],null,[["paginationProps"],[["get",["paginationProps"]]]],11]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","tr",[]],["static-attr","class","clickable"],["modifier",["action"],[["get",[null]],"editVisit",["get",["visit"]]]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-1"],["flush-element"],["append",["unknown",["visit","patient","displayPatientId"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-1"],["flush-element"],["append",["unknown",["visit","patient","shortDisplayName"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-1"],["flush-element"],["append",["unknown",["visit","patient","sex"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-1"],["flush-element"],["append",["unknown",["visit","patient","shortAge"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-1"],["flush-element"],["append",["unknown",["visit","visitType"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-1"],["flush-element"],["append",["helper",["date-format"],[["get",["visit","startDate"]]],[["format"],["h:mm A"]]],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-1 text-center"],["flush-element"],["append",["unknown",["visit","hasAppointmentLabel"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-1"],["flush-element"],["append",["unknown",["visit","examiner"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-1 text-center"],["flush-element"],["append",["unknown",["visit","hasDoneOrders"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-xs-1"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"checkOut",["get",["visit"]]],[["bubbles"],[false]]],["flush-element"],["append",["helper",["t"],["visits.buttons.checkOut"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["visit"]},{"statements":[["text"," "],["append",["helper",["t"],["visits.labels.ordersDone"],null],false],["text","\\n"]],"locals":[]},{"statements":[["append",["helper",["t"],["visits.labels.examiner"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["visits.labels.appointment"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["visits.labels.checkInTime"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["visits.labels.visitType"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["labels.age"],null],false]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["patients.labels.sex"],null],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["labels.name"],null],false],["text","\\n"]],"locals":[]},{"statements":[["append",["helper",["t"],["labels.id"],null],false]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class"],["selectedVisitDate",["helper",["t"],["visits.labels.visitDate"],null],"col-sm-3 outpatient-date"]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","property","label","content","prompt"],["col-sm-3 form-input-group outpatient-location","selectedLocation",["helper",["t"],["labels.location"],null],["get",["locationList"]]," "]]],false],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group col-sm-3"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["close-element"],["text","\\n "],["open-element","div",[]],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-primary"],["modifier",["action"],[["get",[null]],"search"]],["flush-element"],["append",["helper",["t"],["buttons.search"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","panel panel-info"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body"],["flush-element"],["text","\\n"],["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],10],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","table",[]],["static-attr","class","table outpatient-list"],["flush-element"],["text","\\n "],["open-element","thead",[]],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["patient.displayPatientId",["get",["sortByDesc"]],["get",["sortByKey"]]]],9],["text","\\n"],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey","filterBy","filteredBy","filterType","filterValues"],["patient.shortDisplayName",["get",["sortByDesc"]],["get",["sortByKey"]],"patient.shortDisplayName",["get",["filteredBy"]],"typeahead",["get",["patientNames"]]]],8],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey","filterBy","filteredBy","filterValues"],["patient.sex",["get",["sortByDesc"]],["get",["sortByKey"]],"patient.sex",["get",["filteredBy"]],["get",["sexList"]]]],7],["text"," "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["patient.dateOfBirth",["get",["sortByDesc"]],["get",["sortByKey"]]]],6],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey","filterBy","filteredBy","filterValues"],["visitType",["get",["sortByDesc"]],["get",["sortByKey"]],"visitType",["get",["filteredBy"]],["get",["visitTypesValues"]]]],5],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["startDate",["get",["sortByDesc"]],["get",["sortByKey"]]]],4],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey","filterBy","filteredBy","filterValues"],["hasAppointmentLabel",["get",["sortByDesc"]],["get",["sortByKey"]],"hasAppointmentLabel",["get",["filteredBy"]],["get",["hasAppointmentLabels"]]]],3],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["examiner",["get",["sortByDesc"]],["get",["sortByKey"]]]],2],["text","\\n"],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey","filterBy","filteredBy","filterValues"],["hasDoneOrders",["get",["sortByDesc"]],["get",["sortByKey"]],"hasDoneOrders",["get",["filteredBy"]],["get",["doneOrdersValues"]]]],1],["text"," "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.actions"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","tbody",[]],["flush-element"],["text","\\n"],["block",["each"],[["get",["sortedVisits"]]],null,0],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/patients/outpatient/template.hbs"}})}),define("hospitalrun/patients/photo/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember","ember-i18n"],function(e,t,n,a){var l=n.default.computed,s=n.default.get,i=n.default.inject,o=n.default.isEmpty,r=n.default.RSVP,d=n.default.set;e.default=t.default.extend({addAction:"addPhoto",editTitle:(0,a.translationMacro)("patients.titles.editPhoto"),fileRequiredMessage:(0,a.translationMacro)("patients.messages.photoFileRequired"),modelName:"photo",newTitle:(0,a.translationMacro)("patients.titles.addPhoto"),newModel:!1,showFileRequired:!1,showUpdateButton:!0,database:i.service(),editController:i.controller("patients/edit"),filesystem:i.service(),photoFileNotSet:l("model.photoFile",function(){var e=s(this,"model"),t=s(e,"isNew"),n=s(e,"photoFile");return t&&o(n)}),title:l("model.isNew",function(){return s(this,"model.isNew")?s(this,"newTitle"):s(this,"editTitle")}),updateButtonAction:l("photoFileNotSet",function(){return s(this,"photoFileNotSet")?"showFileRequired":(d(this,"showFileRequired",!1),"update")}),updateButtonClass:l("photoFileNotSet",function(){if(s(this,"photoFileNotSet"))return"disabled-btn"}),afterUpdate:function(e){var t=this,n=s(this,"newModel"),a=s(this,"editController");if(n){var l=s(e,"photoFile"),i=s(e,"saveToDir"),o=s(this,"filesystem"),r=s(this,"modelName"),d=s(this,"database").getPouchId(s(e,"id"),r);o.addFile(l,i,d).then(function(n){e.setProperties({localFile:!0,fileName:n.fullPath,url:n.toURL()}),e.save().then(function(){a.send(s(t,"addAction"),e)}).catch(function(e){throw e})})}else this.send("closeModal")},beforeUpdate:function(){var e=s(this,"model"),t=s(e,"photoFile"),a=s(e,"isImage"),l=s(e,"isNew");return d(this,"newModel",l),l&&e.setProperties({files:[n.default.Object.create({content_type:t.type,data:t,name:"file"})],isImage:a}),r.resolve()},actions:{cancel:function(){this.send("closeModal")},showFileRequired:function(){d(this,"showFileRequired",!0)}}})}),define("hospitalrun/patients/photo/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"SsGKTUmE",block:'{"statements":[["block",["modal-dialog"],null,[["hideCancelButton","hideUpdateButton","isUpdateDisabled","title","updateButtonAction","updateButtonClass","updateButtonText"],[["get",["hideCancelButton"]],["get",["hideUpdateButton"]],["get",["isUpdateDisabled"]],["get",["title"]],["get",["updateButtonAction"]],["get",["updateButtonClass"]],["get",["updateButtonText"]]]],6]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-warning"],["static-attr","role","alert"],["flush-element"],["append",["unknown",["fileRequiredMessage"]],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","a",[]],["dynamic-attr","href",["unknown",["model","url"]],null],["static-attr","target","_blank"],["dynamic-attr","download",["concat",[["unknown",["model","shortFileName"]]]]],["static-attr","class","btn btn-default"],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","glyphicon glyphicon-download"],["static-attr","aria-hidden","true"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["patients.buttons.download"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","thumbnail"],["flush-element"],["text","\\n "],["open-element","img",[]],["dynamic-attr","alt",["unknown",["model","caption"]],null],["dynamic-attr","src",["unknown",["model","url"]],null],["static-attr","class","img-responsive"],["flush-element"],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["model","isImage"]]],null,2,1]],"locals":[]},{"statements":[["text"," "],["append",["helper",["take-photo"],null,[["photoFile","isImage"],[["get",["model","photoFile"]],["get",["model","isImage"]]]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-input"],null,[["property","label"],["caption",["helper",["t"],["patients.labels.caption"],null]]]],false],["text","\\n"],["block",["if"],[["get",["model","isNew"]]],null,4,3],["block",["if"],[["get",["showFileRequired"]]],null,0]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],5]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/patients/photo/template.hbs"}})}),define("hospitalrun/patients/quick-add/controller",["exports","ember","hospitalrun/controllers/abstract-edit-controller","ember-i18n"],function(e,t,n,a){e.default=n.default.extend({sexList:t.default.computed.alias("model.requestingController.sexList"),title:(0,a.translationMacro)("patients.titles.new"),updateCapability:"add_patient",actions:{cancel:function(){this.send("closeModal")}},afterUpdate:function(e){this.get("model.requestingController").send("addedNewPatient",e)}})}),define("hospitalrun/patients/quick-add/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"CI80Vogk",block:'{"statements":[["block",["modal-dialog"],null,[["hideCancelButton","isUpdateDisabled","title","updateButtonAction","updateButtonText"],[["get",["hideCancelButton"]],["get",["isUpdateDisabled"]],["get",["title"]],["get",["updateButtonAction"]],["get",["updateButtonText"]]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["friendlyId","Id","required col-sm-6"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["firstName","First Name","required col-sm-6"]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["middleName","Middle Name","col-sm-6"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["lastName","Last Name","required col-sm-6"]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection","class"],["sex","Sex",["get",["sexList"]],["get",["model","sex"]],"col-sm-6 form-input-group"]]],false],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","maxDate","class"],["dateOfBirth","Date of Birth","now","col-sm-6"]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["phone",["helper",["t"],["patients.labels.phone"],null],"col-xs-12 col-sm-6"]]],false],["text","\\n "],["append",["helper",["em-text"],null,[["label","property","rows","class"],[["helper",["t"],["labels.address"],null],"address",3,"col-xs-12 col-sm-6"]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-warning"],["static-attr","role","alert"],["flush-element"],["text","\\n "],["append",["helper",["t"],["patients.messages.notFoundQuickAdd",["get",["model"]]],null],false],["text","\\n "],["close-element"],["text","\\n"],["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],0]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/patients/quick-add/template.hbs"}})}),define("hospitalrun/patients/reports/controller",["exports","ember","hospitalrun/controllers/abstract-report-controller","moment","hospitalrun/mixins/patient-diagnosis","hospitalrun/mixins/patient-visits","hospitalrun/utils/select-values","hospitalrun/mixins/visit-types"],function(e,t,n,a,l,s,i,o){e.default=n.default.extend(l.default,s.default,o.default,{patientsController:t.default.inject.controller("patients"),clinicList:t.default.computed.map("patientsController.clinicList.value",i.default.selectValuesMap),diagnosisList:t.default.computed.alias("patientsController.diagnosisList"),physicianList:t.default.computed.map("patientsController.physicianList.value",i.default.selectValuesMap),locationList:t.default.computed.map("patientsController.locationList.value",i.default.selectValuesMap),statusList:t.default.computed.map("patientsController.statusList.value",i.default.selectValuesMap),visitTypesList:t.default.computed.alias("patientsController.visitTypesList"),reportType:"detailedAdmissions",patientDetails:{},admissionReportColumns:t.default.computed(function(){var e=this.get("i18n");return{sex:{label:e.t("labels.sex"),include:!0,property:"sex"},total:{label:e.t("labels.total"),include:!0,property:"total",format:"_numberFormat"}}}),admissionDetailReportColumns:t.default.computed(function(){var e=this.get("i18n");return{id:{label:e.t("labels.id"),include:!0,property:"patientId"},name:{label:e.t("labels.name"),include:!0,property:"patientName"},admissionDate:{label:e.t("patients.labels.admissionDate"),include:!0,property:"admissionDate",format:"_dateTimeFormat"},dischargeDate:{label:e.t("patients.labels.dischargeDate"),include:!1,property:"dischargeDate",format:"_dateTimeFormat"},patientDays:{label:e.t("patients.labels.patientDays"),include:!1,property:"patientDays",format:"_numberFormat"}}}),diagnosticReportColumns:t.default.computed(function(){var e=this.get("i18n");return{type:{label:e.t("labels.type"),include:!0,property:"type"},total:{label:e.t("labels.total"),include:!0,property:"total",format:"_numberFormat"}}}),procedureDetailReportColumns:t.default.computed(function(){var e=this.get("i18n");return{id:{label:e.t("labels.id"),include:!0,property:"patient.displayPatientId"},name:{label:e.t("labels.name"),include:!0,property:"patient.displayName"},procedure:{label:e.t("visits.labels.procedure"),include:!0,property:"procedure"},procedureDate:{label:e.t("visits.labels.procedureDate"),include:!0,property:"procedureDate",format:"_dateTimeFormat"}}}),reportColumns:t.default.computed(function(){var e=this.get("i18n");return{visitDate:{label:e.t("visits.labels.visitDate"),include:!0,property:"visitDate"},visitType:{label:e.t("visits.labels.visitType"),include:!0,property:"visitType"},visitLocation:{label:e.t("labels.location"),include:!1,property:"location"},examiner:{label:e.t("visits.labels.examiner"),include:!0,property:"examiner"},name:{label:e.t("labels.name"),include:!0,property:"patient.displayName"},id:{label:e.t("labels.id"),include:!0,property:"patient.displayPatientId"},sex:{label:e.t("patients.labels.sex"),include:!0,property:"patient.sex"},dateOfBirth:{label:e.t("patients.labels.dateOfBirth"),include:!0,property:"patient.dateOfBirth",format:"_dateFormat"},age:{label:e.t("labels.age"),include:!1,property:"patient.age"},primaryDiagnosis:{label:e.t("patients.labels.primaryDiagnosis"),include:!1,property:"primaryDiagnosis"},secondaryDiagnoses:{label:e.t("patients.labels.secondaryDiagnosis"),include:!1,property:"additionalDiagnoses",format:"_diagnosisListToString"},procedures:{label:e.t("labels.procedures"),include:!1,property:"resolvedProcedures",format:"_procedureListToString"},contacts:{label:e.t("patients.labels.contacts"),include:!1,property:"patient",format:"_contactListToString"},referredBy:{label:e.t("patients.labels.referredBy"),include:!1,property:"patient.referredBy"},referredDate:{label:e.t("patients.labels.referredDate"),include:!1,property:"patient.referredDate",format:"_dateFormat"}}}),statusReportColumns:t.default.computed(function(){var e=this.get("i18n");return{id:{label:e.t("labels.id"),include:!0,property:"patient.displayPatientId"},name:{label:e.t("labels.name"),include:!0,property:"patient.displayName"},status:{label:e.t("labels.status"),include:!0,property:"patient.status"},primaryDiagnosis:{label:e.t("patients.labels.primaryDiagnosis"),include:!0,property:"patient",format:"_formatPrimaryDiagnosis"},secondaryDiagnoses:{label:e.t("patients.labels.secondaryDiagnosis"),include:!0,property:"patient",format:"_formatSecondaryDiagnosis"}}}),reportTypes:t.default.computed(function(){var e=this.get("i18n");return[{name:e.t("patients.titles.admissionsDetail"),value:"detailedAdmissions"},{name:e.t("patients.titles.admissionsSummary"),value:"admissions"},{name:e.t("patients.titles.diagnosticTesting"),value:"diagnostic"},{name:e.t("patients.titles.dischargesDetail"),value:"detailedDischarges"},{name:e.t("patients.titles.dischargesSummary"),value:"discharges"},{name:e.t("patients.titles.proceduresDetail"),value:"detailedProcedures"},{name:e.t("patients.titles.proceduresSummary"),value:"procedures"},{name:e.t("patients.titles.patientStatus"),value:"status"},{name:e.t("patients.titles.totalPatientDays"),value:"patientDays"},{name:e.t("patients.titles.totalPatientDaysDetailed"),value:"detailedPatientDays"},{name:e.t("patients.titles.visit"),value:"visit"}]}),isDischargeReport:function(){return this.get("reportType").toLowerCase().indexOf("discharges")>-1}.property("reportType"),isStatusReport:function(){return"status"===this.get("reportType")}.property("reportType"),isVisitReport:function(){return"visit"===this.get("reportType")}.property("reportType"),_addContactToList:function(e,n,a,l){var s=[];t.default.isEmpty(n)&&t.default.isEmpty(e)||(t.default.isEmpty(e)||s.push(e),t.default.isEmpty(n)||s.push(n),l.push(a+s.join(", ")))},_addReportRow:function(e,n,a,l){if(t.default.isEmpty(l)&&!t.default.isEmpty(e.patient)){var s=null;s=e.get?e.get("patient.id"):e.patient.get("id"),t.default.isEmpty(s)||(l={action:"viewPatient",model:s})}this._super(e,n,a,l)},_addRowsByType:function(e,t,n,a){this._totalByType(e,t,n).forEach(function(e){this._addReportRow(e,!0,a)}.bind(this))},_addPatientProcedureRows:function(e,n){e.forEach(function(e){t.default.isEmpty(e.records)?this._addReportRow({procedure:"Total for "+e.type+": "+e.total},!0,n):e.records.forEach(function(t,a){this._addReportRow({patient:t.get("patient"),procedure:t.get("description"),procedureDate:t.get("procedureDate")},!1,n),a+1===e.records.length&&this._addReportRow({procedure:"Total for "+e.type+": "+e.total},!0,n)}.bind(this))}.bind(this))},_contactListToString:function(e){var n=e.get("additionalContacts"),a=void 0,l=[],s=e.get("email"),i=e.get("phone");return this._addContactToList(i,s,"Primary: ",l),t.default.isEmpty(n)||n.forEach(function(e){a="",t.default.isEmpty(e.name)||t.default.isEmpty(e.relationship)||(t.default.isEmpty(e.name)||(a+=e.name),t.default.isEmpty(e.relationship)||(t.default.isEmpty(a)||(a+=" - "),a+=e.relationship),a+=": "),this._addContactToList(e.phone,e.email,a,l)}.bind(this)),l.join(";\n")},_dateTimeFormat:function(e){return this._dateFormat(e,"l h:mm A")},_diagnosisListToString:function(e){return this._listToString(e,"diagnosis","date")},_findDiagnosticsByDate:function(){var e=this.get("endDate"),n=this.get("startDate"),l={options:{},mapReduce:"imaging_by_status"},s=this.get("maxValue");return new t.default.RSVP.Promise(function(i,o){l.options.startkey=["Completed",null,n.getTime(),null],t.default.isEmpty(e)||(e=(0,a.default)(e).endOf("day").toDate(),l.options.endkey=["Completed",s,e.getTime(),s]),this.store.query("imaging",l).then(function(e){var t={imaging:e};l.mapReduce="lab_by_status",this.store.query("lab",l).then(function(e){t.labs=e,i(t)},o)}.bind(this),o)}.bind(this))},_findPatientsByStatus:function(){var e=this.get("status"),n={options:{key:e},mapReduce:"patient_by_status"};return new t.default.RSVP.Promise(function(e,t){this.store.query("patient",n).then(e,t)}.bind(this))},_findProceduresByDate:function(){var e=this.get("endDate"),n=this.get("startDate"),l={options:{},mapReduce:"procedure_by_date"},s=this.get("maxValue");return new t.default.RSVP.Promise(function(i,o){l.options.startkey=[n.getTime(),null],t.default.isEmpty(e)||(e=(0,a.default)(e).endOf("day").toDate(),l.options.endkey=[e.getTime(),s]),this.store.query("procedure",l).then(i,o)}.bind(this))},_findVisitsByDate:function(){var e=this.get("endDate"),n=this.get("startDate"),l={options:{},mapReduce:"visit_by_date"},s=this.get("isDischargeReport"),i=this.get("maxValue");return s&&(l.mapReduce="visit_by_discharge_date"),new t.default.RSVP.Promise(function(s,o){var r=this.get("isDischargeReport");l.options.startkey=[n.getTime(),null],
+t.default.isEmpty(e)||(e=(0,a.default)(e).endOf("day").toDate(),l.options.endkey=r?[e.getTime(),i]:[e.getTime(),i,i]),this.store.query("visit",l).then(s,o)}.bind(this))},_filterByLike:function(e,n,a){return e.filter(function(e){var n=e.get("field");if(t.default.isEmpty(n))return!1;if(t.default.isArray(n)){var l=n.find(function(e){return this._haveLikeValue(e,a)}.bind(this));return!t.default.isEmpty(l)}return this._haveLikeValue(n,a)})},_filterInPatientVisit:function(e){var n=e.get("outPatient"),a=e.get("status");return!n&&!t.default.isEmpty(a)},_finishVisitReport:function(e){this._totalByType(e,"visitType","total").forEach(function(e){"total"===e.type?this._addReportRow({visitDate:"Total visits: "+e.total}):(e.records.forEach(function(e){this._addReportRow(e)}.bind(this)),this._addReportRow({visitDate:"Total for "+e.type+": "+e.total}))}.bind(this)),this._finishReport()},_formatPrimaryDiagnosis:function(e){var t=this.getDiagnoses(e,!0,!1);return this._diagnosisListToString(t)},_formatSecondaryDiagnosis:function(e){var t=this.getDiagnoses(e,!0,!0);return this._diagnosisListToString(t)},_generateAdmissionOrDischargeReport:function(e,n){var a=this,l=!1,s=void 0,i={},o=this.get("i18n").t("patients.labels.sexNotEntered");n.indexOf("detailed")>-1?(l=!0,s=this.get("admissionDetailReportColumns"),s.patientDays.include=!1,s.dischargeDate.include="detailedDischarges"===n):s=this.get("admissionReportColumns"),e=e.filter(this._filterInPatientVisit),e.forEach(function(e){if(!this.get("isDischargeReport")||!t.default.isEmpty(e.get("endDate"))){var n={patient:e.get("patient"),patientId:e.get("patient.displayPatientId"),patientName:e.get("patient.displayName"),admissionDate:e.get("startDate"),dischargeDate:e.get("endDate")},a=e.get("patient.sex");a||(a=o);var l=i[a];l||(l={count:0,rows:[]},i[a]=l),l.count++,l.rows.push(n)}}.bind(this));var r=0,d=function(e){a._addReportRow(e,!1,s)};for(var c in i)l?(i[c].rows.forEach(d),this._addReportRow({patientId:c+" Total: "+i[c].count},!0,s)):this._addReportRow({sex:c,total:i[c].count},!0,s),r+=i[c].count;this._addReportRow({patientId:"Grand Total: "+r},!0,s),this._finishReport(s)},_generateDiagnosticReport:function(){this._findDiagnosticsByDate().then(function(e){var t=this.get("diagnosticReportColumns");this._addRowsByType(e.imaging,"imagingType.name","Total for imaging: ",t),this._addRowsByType(e.labs,"labType.name","Total for labs: ",t),this._finishReport(t)}.bind(this),function(e){this._notifyReportError("Error in _generateDiagnosticReport: "+e)}.bind(this))},_generatePatientDaysReport:function(e,n){e=e.filter(this._filterInPatientVisit);var l=0===n.indexOf("detailed"),s=this.get("endDate"),i=void 0,o=(0,a.default)(this.get("startDate")).startOf("day");l?(i=this.get("admissionDetailReportColumns"),i.patientDays.include=!0,i.dischargeDate.include=!0):i={total:{label:"Total",include:!0,property:"total",format:"_numberFormat"}},s=t.default.isEmpty(s)?(0,a.default)().endOf("day"):(0,a.default)(s).endOf("day");var r=e.reduce(function(e,n){var r=n.get("endDate"),d=(0,a.default)(n.get("startDate")).startOf("day");r=t.default.isEmpty(r)?(0,a.default)().endOf("day"):(0,a.default)(r).endOf("day"),d.isBefore(o)&&(d=o),r.isAfter(s)&&(r=s);var c=r.diff(d,"days",!0);return l&&this._addReportRow({patient:n.get("patient"),patientId:n.get("patient.displayPatientId"),patientName:n.get("patient.displayName"),admissionDate:n.get("startDate"),dischargeDate:n.get("endDate"),patientDays:c},!1,i),e+=c}.bind(this),0);l?this._addReportRow({patientDays:"Total: "+this._numberFormat(r)},!0,i):this._addReportRow({total:r},!1,i),this._finishReport(i)},_generateProcedureReport:function(e){this._findProceduresByDate().then(function(n){var a=void 0;if(n=n.filter(function(e){var n=e.get("visit");return!t.default.isEmpty(n)&&!t.default.isEmpty(n.get("patient.id"))&&!0!==n.get("patient.archived")}),0===e.indexOf("detailed")){a=this.get("procedureDetailReportColumns"),n.forEach(function(e){e.set("patient",e.get("visit.patient"))});var l=this._totalByType(n,"description","all procedures");this._addPatientProcedureRows(l,a),this._finishReport(a)}else a=this.get("diagnosticReportColumns"),this._addRowsByType(n,"description","Total procedures: ",a),this._finishReport(a)}.bind(this),function(e){this._notifyReportError("Error in _generateProcedureReport: "+e)}.bind(this))},_generateStatusReport:function(){this._findPatientsByStatus().then(function(e){var t=this.get("statusReportColumns"),n=e.sortBy("lastName","firstName");this._getPatientVisits(n).then(function(e){e.forEach(function(e){this._addReportRow({patient:e},!1,t)}.bind(this)),this._finishReport(t)}.bind(this)).catch(function(e){this._notifyReportError("Error in _generateStatusReport: "+e)}.bind(this))}.bind(this)).catch(function(e){this._notifyReportError("Error in _generateStatusReport: "+e)}.bind(this))},_generateVisitReport:function(e){var n=this,a=this.get("reportColumns"),l=this.getProperties("examiner","visitDate","visitType","location","clinic","primaryDiagnosis","secondaryDiagnosis");for(var s in l)if(!t.default.isEmpty(l[s]))switch(s){case"diagnosis":e=this._filterByLike(e,"diagnosisList",l[s]);break;default:e=e.filterBy(s,l[s])}a.procedures.include?function(){var a={};e.forEach(function(e){a[e.get("id")]=e.get("procedures")}),t.default.RSVP.hash(a).then(function(t){e.forEach(function(e){e.set("resolvedProcedures",t[e.get("id")])}),this._finishVisitReport(e)}.bind(n))}():this._finishVisitReport(e)},_getPatientVisits:function(e){return new t.default.RSVP.Promise(function(n,a){var l={};e.forEach(function(e){l[e.get("id")]=this.getPatientVisits(e)}.bind(this)),t.default.RSVP.hash(l).then(function(t){e.forEach(function(e){e.set("visits",t[e.get("id")])}),n(e)},a)}.bind(this))},_haveLikeValue:function(e,t){return e.toLowerCase().indexOf(t.toLowerCase())>-1},_listToString:function(e,n,a){var l=[];return t.default.isEmpty(e)||(l=e.map(function(e){return t.default.get(e,n)+" ( "+this._dateFormat(t.default.get(e,a))+")"}.bind(this))),l.join(",\n")},_totalByType:function(e,n,a){var l=0,s=[];return e.forEach(function(e){var a=e.get(n),i=void 0;t.default.isEmpty(a)||(i=s.find(function(e){return e.type.trim().toLowerCase()===a.toLowerCase()}),t.default.isEmpty(i)&&(i={type:a.trim(),total:0,records:[]},s.push(i)),i.total++,i.records.push(e),l++)}),s=s.sortBy("type"),s.push({type:a,total:l}),s},_procedureListToString:function(e){return this._listToString(e,"description","procedureDate")},_validateDates:function(){var e=void 0,n=this.get("endDate"),a=!0,l=this.get("reportType"),s=this.get("startDate");return"status"===l||(t.default.isEmpty(s)?(e="Please enter a start date.",a=!1):!t.default.isEmpty(n)&&n.getTime()0&&this.set("firstKey",this._getStartKeyFromItem(e.get("firstObject"))),e.get("length")>i){var n=e.popObject();this.set("nextStartKey",this._getStartKeyFromItem(n))}else this.set("nextStartKey");t(e)}.bind(this),n)}.bind(this))},queryParams:{sortDesc:{refreshModel:!0},sortKey:{refreshModel:!0},startKey:{refreshModel:!0}},setupController:function(e,t){var n=this.getProperties("firstKey","nextStartKey");e.setProperties(n);var a={currentScreenTitle:this.get("pageTitle")};this.get("hideNewButton")?a.newButtonAction=null:s(this.get("newButtonAction"))||(a.newButtonAction=this.get("newButtonAction")),s(this.get("newButtonText"))||(a.newButtonText=this.get("newButtonText")),this.send("setSectionHeader",a),this.closeProgressModal(),this._super(e,t)}})}),define("hospitalrun/routes/abstract-module-route",["exports","ember-simple-auth/mixins/authenticated-route-mixin","ember","hospitalrun/mixins/user-session"],function(e,t,n,a){function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0),e.set("searchText",this.get("searchText")),this.controllerFor("navigation").closeProgressModal();var n=this.controllerFor(this.get("moduleName")),l="Search Results for "+a.default.Handlebars.Utils.escapeExpression(this.get("searchText"))+"";n.set("currentScreenTitle",l.htmlSafe())}})}),define("hospitalrun/routes/application",["exports","ember-simple-auth/mixins/application-route-mixin","ember","hospitalrun/mixins/modal-helper","hospitalrun/mixins/setup-user-role","hospitalrun/utils/unauthorized-error"],function(e,t,n,a,l,s){function i(e,t){return null!=t&&t[Symbol.hasInstance]?t[Symbol.hasInstance](e):e instanceof t}var o=n.default.get,r=n.default.inject,d=n.default.isEmpty,c=n.default.Route,u=n.default.set,p=c.extend(t.default,a.default,l.default,{database:r.service(),config:r.service(),session:r.service(),shouldSetupUserRole:!0,actions:{closeModal:function(){this.render("empty",{outlet:"modal",into:"application"})},error:function(e,t){var n=this;i(e,s.default)?function(){var e=n.get("i18n"),a=e.t("application.messages.sessionExpired"),l=o(n,"session"),s=e.t("application.titles.sessionExpired");if(d(t))n.displayAlert(s,a,"unauthorizeSession");else{var i=l.get("store"),r=l.get("data"),c=void 0;c=t.targetName?t.targetName:t,u(r,"transitionAfterLogin",c),i.persist(r).then(function(){n.displayAlert(s,a,"unauthorizeSession")})}}():this._super(e)},openModal:function(e,t){t&&u(this.controllerFor(e),"model",t),this.renderModal(e)},unauthorizeSession:function(){var e=o(this,"session");o(e,"isAuthenticated")&&e.invalidate()},updateModal:function(e,t){u(this.controllerFor(e),"model",t)}},model:function(e,t){var n=this,a=o(this,"session"),l=a&&o(a,"isAuthenticated"),s=o(this,"config"),i=o(this,"database");return s.setup().then(function(){var e=s.get("standAlone");if("finishgauth"!==t.targetName&&"login"!==t.targetName){if(u(n,"shouldSetupUserRole",!0),l||e)return i.setup().catch(function(){a.invalidate()})}else{if("login"===t.targetName&&e)return i.createUsersDB();"finishgauth"===t.targetName&&u(n,"shouldSetupUserRole",!1)}})},afterModel:function(){u(this.controllerFor("navigation"),"allowSearch",!1),$("#apploading").remove()},renderModal:function(e){this.render(e,{into:"application",outlet:"modal"})},sessionAuthenticated:function(){var e=this;!0===o(this,"shouldSetupUserRole")&&this.setupUserRole();var t=o(this,"session"),n=t.get("data"),a=o(n,"transitionAfterLogin");if(d(a))this._super();else{var l=t.get("store");u(n,"transitionAfterLogin",null),l.persist(n).then(function(){e.transitionTo(a)})}}});e.default=p}),define("hospitalrun/routes/index",["exports","ember-simple-auth/mixins/authenticated-route-mixin","hospitalrun/mixins/navigation","hospitalrun/mixins/user-roles","ember"],function(e,t,n,a,l){var s=l.default.inject,i=l.default.isEmpty;e.default=l.default.Route.extend(t.default,n.default,a.default,{session:s.service(),beforeModel:function(){var e=this.get("session");if(!i(e)){var t=e.get("data.authenticated.role");if(!i(t)){var n=this.findUserRole(t);if(!i(n)&&!i(n.defaultRoute)){var a=this.findNavItemByRoute(n.defaultRoute);if(!i(a))return this.transitionTo(a.route)}}}return this._super.apply(this,arguments)},afterModel:function(){this.controllerFor("navigation").set("allowSearch",!1)},actions:{createNewUser:function(){return this.transitionTo("users.edit","new")}}})}),define("hospitalrun/routes/login",["exports","ember","ember-simple-auth/mixins/unauthenticated-route-mixin"],function(e,t,n){var a=t.default.computed.alias,l=t.default.get,s=t.default.inject,i=t.default.Route;e.default=i.extend(n.default,{config:s.service(),database:s.service(),requireLogin:a("database.requireLogin"),standAlone:a("config.standAlone"),beforeModel:function(e){var t=l(this,"session");if(!l(t,"isAuthenticated")){var n=l(this,"requireLogin");return!0===l(this,"standAlone")&&!1===n?this.get("session").authenticate("authenticator:custom",{identification:"hradmin",password:"test"}):l(this,"config").useGoogleAuth().then(function(e){e&&window.location.replace("/auth/google")})}this._super(e)}})}),define("hospitalrun/serializers/application",["exports","ember-pouch"],function(e,t){e.default=t.Serializer.extend()}),define("hospitalrun/serializers/user",["exports","ember-data"],function(e,t){var n=t.default.JSONSerializer.extend({attrs:{rev:"_rev"},primaryKey:"_id",isNewSerializerAPI:!0,normalizeArrayResponse:function(e,t,n,a,l){var s=n.rows.map(function(e){return e.doc}.bind(this));return this._super(e,t,s,a,l)},normalizeSaveResponse:function(e,t,n){return{data:{id:n.id,type:"user",attrs:{rev:n.rev}}}}});e.default=n}),define("hospitalrun/services/ajax",["exports","ember-ajax/services/ajax"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/services/config",["exports","ember"],function(e,t){var n=t.default.RSVP,a=t.default.get,l=t.default.inject,s=t.default.run,i=t.default.set;e.default=t.default.Service.extend({configDB:null,database:l.service(),session:l.service(),sessionData:t.default.computed.alias("session.data"),standAlone:!1,needsUserSetup:!1,markUserSetupComplete:function(){var e=this;if(!0!==a(this,"needsUserSetup"))return n.resolve(!0);var t=function(){i(e,"needsUserSetup",!1);var t=e.get("configDB");return{v:new n.Promise(function(e,n){t.put({_id:"config_user_setup_flag",value:!1},function(t,a){t&&n(t),e(a)})})}}();return"object"==typeof t?t.v:void 0},setup:function(){var e=this.replicateConfigDB.bind(this),t=this.loadConfig.bind(this),n=this.createDB();return this.set("configDB",n),this.setCurrentUser(),window.ELECTRON&&this.set("standAlone",!0),!1===this.get("standAlone")?e(n).then(t):t()},createDB:function(){return new PouchDB("config")},replicateConfigDB:function(e){return new n.Promise(function(t){var n=document.location.protocol+"//"+document.location.host+"/db/config";e.replicate.from(n).then(t).catch(t)})},loadConfig:function(){var e=this.get("configDB"),n={include_docs:!0,keys:["config_consumer_key","config_consumer_secret","config_disable_offline_sync","config_external_search","config_oauth_token","config_token_secret","config_use_google_auth"]};return new t.default.RSVP.Promise(function(t,a){e.allDocs(n,function(e,n){e&&(console.log("Could not get configDB configs:",e),a(e));for(var l={},s=0;s0&&(e.status=parseInt(e.errors[0].status)),401===e.status||403===e.status){var t=JSON.stringify(e,null,2);return new d.default(e,t)}return e},loadDBFromDump:function(e){var t=this;return new f.Promise(function(n,a){PouchDB.plugin(s.default);var l=new PouchDB("dbdump",{adapter:"memory"});l.load(e).then(function(){var e=u(t,"mainDB");l.replicate.to(e).on("complete",function(e){n(e)}).on("error",function(e){a(e)})},a)},"loadDBFromDump")},queryMainDB:function(e,t){var n=this;return new f.Promise(function(a,l){var s=u(n,"mainDB");t?s.query(t,e,function(e,t){e?l(n.handleErrorResponse(e)):(t.rows=n._mapPouchData(t.rows),a(t))}):s.allDocs(e,function(e,t){e?l(n.handleErrorResponse(e)):(t.rows=n._mapPouchData(t.rows),a(t))})},"queryMainDB")},setup:function(){var e=this;return PouchDB.plugin(a.default),u(this,"config").loadConfig().then(function(t){return e.createDB(t).then(function(n){if(g(e,"mainDB",n),g(e,"setMainDB",!0),u(e,"standAlone"))return e.createUsersDB();e.setupSubscription(t)})})},setupSubscription:function(e){var t=this;if(!e.config_disable_offline_sync&&navigator.serviceWorker){var n=function(){var e=u(t,"config"),n=t._createLocalDB();return{v:e.getConfigValue("push_subscription").then(function(e){return m(e)?n.id().then(function(e){var n={id:e,remoteSeq:0};return t._getPermissionAndSubscribe(n)}).then(function(){return t._requestSync()}):t._requestSync()})}}();if("object"==typeof n)return n.v}},_askPermission:function(){return new f.Promise(function(e,t){var n=Notification.requestPermission(function(t){e(t)});n&&n.then(e,t)}).then(function(e){if("granted"!==e)throw new Error("We weren't granted permission.");return e},"Ask for notification permisson")},_createLocalDB:function(e){var t=new PouchDB("localMainDB",e);return(0,n.default)(t),this.buildPouchFindIndexes(t),t},_createMainDB:function(e){var t=this;return this._setOAuthHeaders(e),!e.config_disable_offline_sync&&navigator.serviceWorker?navigator.serviceWorker.ready.then(function(){if(navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage){PouchDB.adapter("worker",r.default);return t._createLocalDB({adapter:"worker",worker:function(){return navigator.serviceWorker}})}return t._createRemoteDB(e)}):this._createRemoteDB(e)},_createRemoteDB:function(e){var t=this.getRemoteDBUrl(),a=this._getOptions(e),l=new PouchDB(t,a);return l.info().then(function(){return(0,n.default)(l),l}).catch(function(e){throw console.log("error with remote db:",JSON.stringify(e,null,2)),e})},_getNotificationPermissionState:function(){return navigator.permissions?navigator.permissions.query({name:"notifications"}).then(function(e){return e.state}):f.resolve(Notification.permission)},_getPermissionAndSubscribe:function(e){var t=this;return new f.Promise(function(n,a){navigator.serviceWorker.ready.then(function(l){return t._getNotificationPermissionState().then(function(s){return"granted"!==s?t._askPermission().then(function(){return t._subscribeUserToPush(l,e).then(n,a)}):t._subscribeUserToPush(l,e).then(n,a)})})},"Get notification permission and subscribe to push")},_urlBase64ToUint8Array:function(e){for(var t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/\-/g,"+").replace(/_/g,"/"),a=window.atob(n),l=new Uint8Array(a.length),s=0;s-1){d=n;var u=n.split("/");r=u.pop(),n=u.join("/"),n+="/"}if(-1===d.indexOf("."))if(e.type){var p=e.type.split("/");d+="."+p.pop()}else d+=".png";this.fileExists(d).then(function(u){if(u&&(d=n+i.getTime()+r),t.default.isEmpty(o)&&s("Local filesystem unavailable, please use Google Chrome browser"),t.default.isEmpty(r)&&!t.default.isEmpty(e.type)){var p=e.type.split("/");p.length>1&&(d+="."+p[1])}o.mkdir(n,!1,function(){o.write(d,{data:e,type:e.type},function(e){c.saveFileLink(d,a),l(e)},function(e){s(e)})},function(e){s(e)})}.bind(this))}.bind(this))},deleteFile:function(e,n){return new t.default.RSVP.Promise(function(t,a){var l=this.get("filer"),s=this.get("config");try{l.ls(e,function(){l.rm(e,function(){s.removeFileLink(n),t()},a)},function(e){"NotFoundError"===e.name?t():a(e)})}catch(e){a(e)}}.bind(this))},downloadIfNeeded:function(e){var n=t.default.get(e,"fileName");this.fileExists(n).then(function(t){t||this._downloadFileFromServer(e)}.bind(this))},fileExists:function(e){return new t.default.RSVP.Promise(function(t){this.get("filer").fs.root.getFile(e,{},function(){t(!0)},function(){t(!1)})}.bind(this))},fileToDataURL:function(e){return new t.default.RSVP.Promise(function(t){var n=new FileReader;n.onloadend=function(e){t(e.target.result)},n.readAsDataURL(e)})},fileToString:function(e){return new t.default.RSVP.Promise(function(t){var n=new FileReader;n.onloadend=function(e){t(e.target.result)},n.readAsText(e)})},isFileSystemEnabled:function(){var e=this.get("filer");return!t.default.isEmpty(e)}.property("filer"),pathToFileSystemURL:function(e){return new t.default.RSVP.Promise(function(t){this.get("filer").fs.root.getFile(e,{},function(e){t(e.toURL())},function(){t()})}.bind(this))}})}),define("hospitalrun/services/i18n",["exports","ember-i18n/services/i18n"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/services/keyboard",["exports","ember-keyboard/services/keyboard"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/services/lookup-lists",["exports","ember"],function(e,t){var n=t.default.Service,a=t.default.get,l=t.default.inject,s=t.default.isEmpty,i=t.default.RSVP;e.default=n.extend({lookupLists:{},store:l.service(),getLookupList:function(e){return this.getLookupLists([e]).then(function(t){return t[e]})},getLookupLists:function(e){var n=this,l=a(this,"lookupLists"),o=a(this,"store"),r=e.filter(function(e){if(s(l[e]))return!0});if(s(r))return t.default.RSVP.resolve(this._getLookupListsFromCache(e));var d={};return r.includes("incidentCategories")&&(d.incidentCategories=o.findAll("inc-category"),r.removeObject("incidentCategories")),s(r)||(d.lookup=o.query("lookup",{options:{keys:r}})),i.hash(d).then(function(t){
+return s(t.incidentCategories)||(l.incidentCategories=t.incidentCategories.filterBy("archived",!1)),s(t.lookup)||r.forEach(function(e){l[e]=t.lookup.findBy("id",e)}),n._getLookupListsFromCache(e)})},resetLookupList:function(e){delete a(this,"lookupLists")[e]},_getIncidentCategories:function(){return a(this,"store").findAll("inc-category")},_getLookupListsFromCache:function(e){var t=a(this,"lookupLists"),n={};return e.forEach(function(e){s(t[e])||(n[e]=t[e])}),n}})}),define("hospitalrun/services/session",["exports","ember-simple-auth/services/session"],function(e,t){e.default=t.default}),define("hospitalrun/services/validations",["exports","ember"],function(e,t){var n=t.default.set;e.default=t.default.Service.extend({init:function(){n(this,"cache",{})}})}),define("hospitalrun/serviceworkers/pouchdb-sync",["exports"],function(exports){function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t sendError",e,t,n),postMessage({type:"error",id:e,messageId:t,content:createError(n)},a)}function sendSuccess(e,t,n,a){logDebug(" -> sendSuccess",e,t),postMessage({type:"success",id:e,messageId:t,content:n},a)}function sendUpdate(e,t,n,a){logDebug(" -> sendUpdate",e,t),postMessage({type:"update",id:e,messageId:t,content:n},a)}function getCurrentDB(e){switch(e){case"localMainDB":return Promise.resolve(localMainDB);case"hospitalrun-test-database":return Promise.resolve(new PouchDB("hospitalrun-test-database",{adapter:"memory"}));default:return getRemoteDB()}}function dbMethod(e,t,n,a,l){var s=void 0;return getCurrentDB(e).then(function(i){return i?(s=i.adapter,i[t].apply(i,_toConsumableArray(a))):sendError(e,n,{error:"db not found"},l)}).then(function(a){switch(sendSuccess(e,n,a,l),t){case"put":case"bulkDocs":case"post":case"remove":case"removeAttachment":case"putAttachment":remoteSync()}}).catch(function(i){if("http"===s)return dbMethod("localMainDB",t,n,a,l);sendError(e,n,i,l)})}function changes(e,t,n,a){var l=_slicedToArray(n,1),s=l[0];s&&"object"===(void 0===s?"undefined":_typeof(s))&&(s.returnDocs=!0,s.return_docs=!0),dbMethod(e,"changes",t,n,a)}function createDatabase(e,t,n,a){return sendSuccess(e,t,{ok:!0,exists:!0},a)}function getAttachment(e,t,n,a){return getCurrentDB(e).then(function(l){if(!l)return sendError(e,t,{error:"db not found"},a);var s=_slicedToArray(n,3),i=s[0],o=s[1],r=s[2];return"object"!==(void 0===r?"undefined":_typeof(r))&&(r={}),l.get(i,r).then(function(s){if(!s._attachments||!s._attachments[o])throw new PouchError({status:404,error:"not_found",reason:"missing"});return l.getAttachment.apply(l,_toConsumableArray(n)).then(function(n){sendSuccess(e,t,n,a)})})}).catch(function(n){sendError(e,t,n,a)})}function destroy(e,t,n,a){if("hospitalrun-test-database"!==e)return sendError(e,t,{error:"permission denied"},a);getCurrentDB(e).then(function(l){if(!l)return sendError(e,t,{error:"db not found"},a);Promise.resolve().then(function(){return l.destroy.apply(l,_toConsumableArray(n))}).then(function(n){sendSuccess(e,t,n,a)}).catch(function(n){sendError(e,t,n,a)})})}function liveChanges(e,t,n,a){getCurrentDB(e).then(function(l){if(!l)return sendError(e,t,{error:"db not found"},a);var s=l.changes(n[0]);allChanges[t]=s,s.on("change",function(n){sendUpdate(e,t,n,a)}).on("complete",function(n){s.removeAllListeners(),delete allChanges[t],sendSuccess(e,t,n,a)}).on("error",function(n){s.removeAllListeners(),delete allChanges[t],sendError(e,t,n,a)})})}function cancelChanges(e){var t=allChanges[e];t&&t.cancel()}function onReceiveMessage(e,t,n,a,l){switch(t){case"createDatabase":return createDatabase(e,n,a,l);case"id":return void sendSuccess(e,n,e,l);case"info":case"put":case"allDocs":case"bulkDocs":case"post":case"get":case"remove":case"revsDiff":case"compact":case"viewCleanup":case"removeAttachment":case"putAttachment":case"query":return dbMethod(e,t,n,a,l);case"changes":return changes(e,n,a,l);case"getAttachment":return getAttachment(e,n,a,l);case"liveChanges":return liveChanges(e,n,a,l);case"cancelChanges":return cancelChanges(n);case"destroy":return destroy(e,n,a,l);default:return sendError(e,n,{error:"unknown API method: "+t},l)}}function handleMessage(e,t,n){onReceiveMessage(t,e.type,e.messageId,decodeArgs(e.args),n)}function getRemoteDB(){return setupConfigs().then(function(){var e={ajax:{headers:{},timeout:3e4}};configs.config_consumer_secret&&configs.config_token_secret&&configs.config_consumer_key&&configs.config_oauth_token&&(e.ajax.headers["x-oauth-consumer-secret"]=configs.config_consumer_secret,e.ajax.headers["x-oauth-consumer-key"]=configs.config_consumer_key,e.ajax.headers["x-oauth-token-secret"]=configs.config_token_secret,e.ajax.headers["x-oauth-token"]=configs.config_oauth_token);var t=self.location.protocol+"//"+self.location.host+"/db/main";return new PouchDB(t,e)})}function remoteSync(e,t){return lastServerSeq=e,syncingRemote||!0===configs.config_disable_offline_sync?(syncingRemote&&logDebug("Skipping sync to: "+e+" because sync is in process"),Promise.resolve(!1)):(logDebug("Synching local db to remoteSequence: "+e+" at: "+new Date),syncingRemote=!0,getRemoteDB().then(function(e){return localMainDB.sync(e)}).then(function(e){return syncingRemote=!1,logDebug("local sync complete:",e,configs),fetch("/update-subscription/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({subscriptionId:configs.config_push_subscription,remoteSeq:e.pull.last_seq})}),!(e.pull.last_seq()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}}),define("hospitalrun/utils/get-cmd-key",["exports","ember-keyboard/utils/get-cmd-key"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/utils/i18n/compile-template",["exports","ember-i18n/utils/i18n/compile-template"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/utils/i18n/missing-message",["exports","ember-i18n/utils/i18n/missing-message"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/utils/item-condition",["exports","ember"],function(e,t){function n(){var e=arguments.length<=0||void 0===arguments[0]?"B":arguments[0];return t.default.A(l).findBy("rank",e).value}function a(e){return e*=arguments.length<=1||void 0===arguments[1]?1:arguments[1],e>=14?"good":e<7?"bad":"average"}e.rankToMultiplier=n,e.getCondition=a;var l=[{rank:"A",value:.5},{rank:"B",value:1},{rank:"C",value:2}]}),define("hospitalrun/utils/listener-name",["exports","ember-keyboard/utils/listener-name"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/utils/patient-validation",["exports","ember"],function(e,t){e.default={patientTypeAhead:{acceptance:{accept:!0,if:function(e){if(!e.get("selectPatient"))return!1;if(!e.get("hasDirtyAttributes"))return!1;var n=e.get("patient.displayName"),a=e.get("patientTypeAhead");if(t.default.isEmpty(n)||t.default.isEmpty(a))return!0;var l=a.substr(0,n.length).toLowerCase();return 0!==n.toLowerCase().indexOf(l)},message:"Please select a patient"}}}}),define("hospitalrun/utils/pouch-views",["exports","ember"],function(e,t){function n(e,t){return t.query(e,{limit:0}).catch(function(e){console.log("index error: "+JSON.stringify(e,null,2))})}function a(e,t){var n={_id:"_design/"+e.name,version:e.version,views:{}};return t&&(n._rev=t),n.views[e.name]={map:e.function.toString()},e.sort&&(n.lists={sort:e.sort}),n}function l(e,a,l,s){return a.get("_design/"+e.name).then(function(i){return i.version!==e.version?o(e,a,i._rev,l,s):l?n(e.name,a):t.default.RSVP.resolve()},function(){return o(e,a,null,l,s)})}function s(e,t,n){var a="function(head, req) {function keysEqual(keyA, keyB) {for (var i= 0; i < keyA.length; i++) {if (keyA[i] !== keyB[i]) {return false;}}return true;}";return t&&(a+='function getCompareDate(dateString) {if (!dateString || dateString === "") {return 0;}return new Date(dateString).getTime();}'),a+='function compareStrings(aString, bString) {if (!aString) {aString = "";}if (!bString) {bString = "";}if (aString < bString) {return -1;} else if (aString > bString) {return 1;} else {return 0;}}var row,rows=[],startingPosition = 0;while(row = getRow()) {rows.push(row);}',n&&(a+="rows = rows.filter("+n+");"),a+="rows.sort("+e+');if (req.query.sortDesc) {rows = rows.reverse();}if (req.query.sortStartKey) {var startKey = JSON.parse(req.query.sortStartKey);for (var i=0; i 0) {rows = rows.slice(startingPosition);}send(JSON.stringify({"rows" : rows}));}'}function i(e,t){return"function(doc) {\n var doctype, uidx;\n if (doc._id && (uidx = doc._id.indexOf('_')) > 0 && !doc.data.archived) {\n doctype = doc._id.substring(0, uidx);\n if (doctype === '"+e+"') {\n "+t+"\n }\n }\n }"}function o(e,t,l,s,i){var o=a(e,l);return s&&console.log("WARNING: The view "+e.name+" is out of date. Please update the pouch dump "+i+" to the latest version of "+e.name),t.put(o).then(function(){return n(e.name,t)},function(e){console.log("ERR updating design doc:",JSON.stringify(e,null,2))})}function r(e){return"var "+e+" = doc.data."+e+";\n if ("+e+" && "+e+' !== "") {\n '+e+" = new Date("+e+");\n if ("+e+".getTime) {\n "+e+" = "+e+".getTime();\n }\n }"}var d=s(function(e,t){function n(e){return e&&""!==e?e:"Scheduled"}var a="";switch(req.query&&req.query.sortKey&&(a=req.query.sortKey),a){case"appointmentType":case"location":case"provider":return compareStrings(e.doc.data[a],t.doc.data[a]);case"date":var l=getCompareDate(e.doc.data.startDate)-getCompareDate(t.doc.data.startDate);return 0===l?getCompareDate(e.doc.data.endDate)-getCompareDate(t.doc.data.endDate):l;case"status":var s=n(e.doc.data[a]),i=n(t.doc.data[a]);return compareStrings(s,i);default:return 0}}.toString(),!0,function(e){var t=null,n=!0;if(req.query&&req.query.filterBy&&(t=JSON.parse(req.query.filterBy)),!t)return!0;for(var a=0;a-1?n.push({index:l,match:t,term:t.slice(1)}):a=!1,l+=1;return n}}function n(e,t,n){return n.indexOf(e)===t}e.default={findExpansionSubjects:function(e){for(var t=/(^|\s+)(#\S+)/g,a=!0,l=[];null!=a;)(a=t.exec(e))&&a.length>2&&l.push(a[2]);return l.filter(n)},findExpansionSites:function(e,n){return n.map(t(e)).reduce(function(e,t){return e.concat(t)},[])}}}),define("hospitalrun/utils/unauthorized-error",["exports","ember-data"],function(e,t){var n=t.default.AdapterError,a=function(e){var t=arguments.length<=1||void 0===arguments[1]?"The adapter operation is unauthorized":arguments[1];n.call(this,e,t)};a.prototype=Object.create(n.prototype),e.default=a}),define("hospitalrun/utils/visit-statuses",["exports"],function(e){e.ADMITTED="Admitted";e.DISCHARGED="Discharged";e.CHECKED_IN="CheckedIn";e.CHECKED_OUT="CheckedOut"}),define("hospitalrun/visits/charge/controller",["exports","hospitalrun/procedures/charge/controller","ember"],function(e,t,n){e.default=t.default.extend({cancelAction:"closeModal",newPricingItem:!1,requestingController:n.default.inject.controller("visits/edit")})}),define("hospitalrun/visits/charge/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"mClLNmTf",block:'{"statements":[["partial","procedures/charge"]],"locals":[],"named":[],"yields":[],"blocks":[],"hasPartials":true}',meta:{moduleName:"hospitalrun/visits/charge/template.hbs"}})}),define("hospitalrun/visits/delete/controller",["exports","hospitalrun/controllers/abstract-delete-controller"],function(e,t){e.default=t.default.extend({title:"Delete Visit",afterDeleteAction:function(){return this.get("model.deleteFromPatient")?"visitDeleted":"closeModal"}.property("model.deleteFromPatient")})}),define("hospitalrun/visits/delete/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"+96MoF6C",block:'{"statements":[["block",["modal-dialog"],null,[["isUpdateDisabled","title","updateButtonAction","updateButtonText"],[["get",["isUpdateDisabled"]],["get",["title"]],["get",["updateButtonAction"]],["get",["updateButtonText"]]]],0]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-danger"],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","glyphicon glyphicon-warning-sign"],["flush-element"],["close-element"],["text","\\n "],["append",["helper",["t"],["messages.delete_singular"],[["name"],[["helper",["t"],["models.visit.names.singular"],null]]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","form",[]],["static-attr","role","form"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["labels.startDate"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["helper",["date-format"],[["get",["model","startDate"]]],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["labels.endDate"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["helper",["date-format"],[["get",["model","endDate"]]],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["visits.labels.examiner"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","examiner"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["labels.location"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","location"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["labels.type"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","visitType"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/visits/delete/template.hbs"}})}),define("hospitalrun/visits/edit/controller",["exports","hospitalrun/controllers/abstract-edit-controller","hospitalrun/mixins/add-new-patient","hospitalrun/mixins/allergy-actions","hospitalrun/mixins/charge-actions","hospitalrun/mixins/diagnosis-actions","ember","moment","hospitalrun/mixins/patient-notes","hospitalrun/mixins/patient-submodule","hospitalrun/mixins/user-session","hospitalrun/utils/visit-statuses","hospitalrun/mixins/visit-types"],function(e,t,n,a,l,s,i,o,r,d,c,u,p){var m=i.default.computed,f=i.default.get,h=i.default.isEmpty,g=i.default.set;e.default=t.default.extend(n.default,a.default,l.default,s.default,d.default,r.default,c.default,p.default,{visitsController:i.default.inject.controller("visits"),additionalButtons:m("model.status",function(){var e={buttonIcon:"glyphicon glyphicon-log-out",class:"btn btn-primary on-white"},t=this.get("i18n"),n=this.get("model.status");return n===u.default.ADMITTED?(e.buttonAction="discharge",e.buttonText=t.t("visits.buttons.discharge"),[e]):n===u.default.CHECKED_IN?(e.buttonAction="checkout",e.buttonText=t.t("visits.buttons.checkOut"),[e]):void 0}),noReport:!1,canAddAppointment:m("model.isNew",function(){return!this.get("model.isNew")&&this.currentUserCan("add_appointment")}),canAddBillingDiagnosis:m("model.isNew",function(){return!this.get("model.isNew")&&this.currentUserCan("add_billing_diagnosis")}),canAddImaging:function(){return this.currentUserCan("add_imaging")}.property(),canAddLab:function(){return this.currentUserCan("add_lab")}.property(),canAddMedication:function(){return this.currentUserCan("add_medication")}.property(),canAddProcedure:function(){return this.currentUserCan("add_procedure")}.property(),canAddVitals:function(){return this.currentUserCan("add_vitals")}.property(),canAddReport:m("hasReport",function(){return this.currentUserCan("add_report")&&!this.get("hasReport")}),canDeleteImaging:function(){return this.currentUserCan("delete_imaging")}.property(),canDeleteLab:function(){return this.currentUserCan("delete_lab")}.property(),canDeleteMedication:function(){return this.currentUserCan("delete_medication")}.property(),canDeleteProcedure:function(){return this.currentUserCan("delete_procedure")}.property(),canDeleteVitals:function(){return this.currentUserCan("delete_vitals")}.property(),canDeleteReport:function(){return this.currentUserCan("delete_report")}.property(),isAdmissionVisit:function(){return"Admission"===this.get("model.visitType")}.property("model.visitType"),cancelAction:function(){var e=this.get("model.returnTo");return h(e)?h(this.get("model.returnToPatient"))?this._super():"returnToPatient":"returnTo"}.property("model.returnTo","model.returnToPatient"),allowAddAllergy:m.not("model.isNew"),allowAddDiagnosis:m.not("model.isNew"),allowAddOperativePlan:m.not("model.isNew"),chargePricingCategory:"Ward",chargeRoute:"visits.charge",diagnosisList:i.default.computed.alias("visitsController.diagnosisList"),findPatientVisits:!1,hideChargeHeader:!0,patientImaging:i.default.computed.alias("model.imaging"),patientLabs:i.default.computed.alias("model.labs"),patientMedications:i.default.computed.alias("model.medication"),pricingList:null,pricingTypes:i.default.computed.alias("visitsController.wardPricingTypes"),physicianList:i.default.computed.alias("visitsController.physicianList"),locationList:i.default.computed.alias("visitsController.locationList"),sexList:m.alias("visitsController.sexList"),visitTypesList:i.default.computed.alias("visitsController.visitTypesList"),lookupListsToUpdate:[{name:"physicianList",property:"model.examiner",id:"physician_list"},{name:"locationList",property:"model.location",id:"visit_location_list"}],updateCapability:"add_visit",showPatientSelection:m("model.checkIn","model.hidePatientSelection",function(){return this.get("model.checkIn")&&!this.get("model.hidePatientSelection")}),updateButtonIcon:m("model.checkIn",function(){if(this.get("model.checkIn"))return"glyphicon glyphicon-log-in"}),updateButtonText:m("model.{checkIn,isNew}",function(){var e=this.get("i18n");return this.get("model.checkIn")?e.t("visits.buttons.checkIn"):this._super()}),validVisitTypes:function(){var e=this.get("model.outPatient"),t=this.get("visitTypes");return!0===e&&(t=t.filter(function(e){return"Admission"!==e.id})),t}.property("visitTypes","model.outPatient"),_addChildObject:function(e,t){var n={queryParams:{forVisitId:this.get("model.id")}};this.transitionToRoute(e,"new",n).then(function(e){t&&t(e)})},_finishAfterUpdate:function(){var e=this.get("addedNewPatient"),t=this.get("model.checkIn"),n=this.get("i18n"),a=n.t("visits.messages.visitSaved"),l=n.t("visits.titles.visitSaved");if(!0===t){this.get("model").set("checkIn"),this.send("setSectionHeader",{currentScreenTitle:n.t("visits.titles.editVisit")})}if(t){l=n.t("visits.titles.checkedIn");var s={patientName:this.get("model.patient.displayName")};!0===e?(this.set("addedNewPatient"),a=n.t("visits.messages.patientCreatedAndCheckedIn",s)):a=n.t("visits.messages.patientCheckedIn",s)}this.displayAlert(l,a)},_findAssociatedAppointment:function(e){var t=e.get("appointment"),n=(0,o.default)().startOf("day").valueOf(),a=this.get("database"),l=(0,o.default)().endOf("day").valueOf(),s=a.getMaxPouchId("appointment"),r=a.getMinPouchId("appointment"),d=e.get("patient.id");return h(t)?this.store.query("appointment",{options:{startkey:[d,n,n,r],endkey:[d,l,l,s]},mapReduce:"appointments_by_patient"}).then(function(e){return h(e)?void 0:e.get("firstObject")}):i.default.RSVP.resolve(t)},_saveAssociatedAppointment:function(e){return this._findAssociatedAppointment(e).then(function(t){return h(t)?(e.set("hasAppointment",!1),i.default.RSVP.resolve()):(e.set("hasAppointment",!0),t.set("status","Attended"),t.save())})},haveAdditionalDiagnoses:function(){return!h(this.get("model.additionalDiagnoses"))}.property("model.additionalDiagnoses.[]"),afterUpdate:function(e){this.updatePatientVisitFlags(e).then(this._finishAfterUpdate.bind(this))},beforeUpdate:function(){var e=this;return this.get("model.isNew")?new i.default.RSVP.Promise(function(t,n){var a=e.get("model");return a.validate().then(function(){if(a.get("isValid")){var l=a.get("patient");if(h(l))return e.addNewPatient(),n({ignore:!0,message:"creating new patient first"});var s=!1,i=a.get("visitType"),o=void 0;"Admission"===i?o=u.default.ADMITTED:(s=!0,o=u.default.CHECKED_IN),a.setProperties({outPatient:s,status:o}),e.get("model.checkIn")?e._saveAssociatedAppointment(a).then(function(){e.saveNewDiagnoses().then(t,n)}):e.saveNewDiagnoses().then(t,n)}})}):this.updateCharges()},checkoutPatient:function(e){var t=this.get("model");this.checkoutVisit(t,e)},patientSelected:function(e){h(e)?g(this,"model.createNewPatient",!0):(g(this,"model.createNewPatient",!1),this.getPatientDiagnoses(e,f(this,"model")))},updateList:function(e,t,n){this.get("model").get(e).then(function(e){n?e.removeObject(t):e.addObject(t),this.send("update",!0),this.send("closeModal")}.bind(this))},actions:{addAllergy:function(e){var t=f(this,"model.patient");this.savePatientAllergy(t,e)},addDiagnosis:function(e){this.addDiagnosisToModelAndPatient(e)},addVitals:function(e){this.updateList("vitals",e)},cancel:function(){var e=this.get("model");this.get("model.isNew")?e.deleteRecord():e.rollbackAttributes(),this.send(this.get("cancelAction"))},checkout:function(){this.checkoutPatient(u.default.CHECKED_OUT)},deleteAllergy:function(e){var t=f(this,"model.patient");this.deletePatientAllergy(t,e)},deleteProcedure:function(e){this.updateList("procedures",e,!0)},deleteVitals:function(e){this.updateList("vitals",e,!0)},discharge:function(){this.checkoutPatient(u.default.DISCHARGED)},editImaging:function(e){e.get("canEdit")&&e.setProperties("returnToVisit",this.get("model.id")),this.transitionToRoute("imaging.edit",e)},editLab:function(e){e.get("canEdit")&&(e.setProperties("returnToVisit",this.get("model.id")),this.transitionToRoute("labs.edit",e))},editMedication:function(e){e.get("canEdit")&&(e.set("returnToVisit",this.get("model.id")),this.transitionToRoute("medication.edit",e))},editOperativePlan:function(e){var t=this,n=e;h(n)?this._addChildObject("patients.operative-plan",function(e){e.controller.getPatientDiagnoses(t.get("model.patient"),e.currentModel)}):(n.set("returnToVisit",this.get("model.id")),this.transitionToRoute("patients.operative-plan",n))},newPatientChanged:function(e){g(this,"model.createNewPatient",e);var t=this.get("model"),n=t.get("patient");e&&!h(n)&&(t.set("patientTypeAhead",n.get("displayName")),t.set("patient"))},showAddVitals:function(){var e=this.get("store").createRecord("vital",{dateRecorded:new Date});this.send("openModal","visits.vitals.edit",e)},showAddPatientNote:function(e){h(e)&&(e=this.get("store").createRecord("patient-note",{visit:this.get("model"),createdBy:this.getUserName(),patient:this.get("model").get("patient"),noteType:this._computeNoteType(this.get("model"))})),this.send("openModal","patients.notes",e)},newAppointment:function(){this._addChildObject("appointments.edit")},newImaging:function(){this._addChildObject("imaging.edit")},newLab:function(){this._addChildObject("labs.edit")},newMedication:function(){this._addChildObject("medication.edit")},newReport:function(){this._addChildObject("visits.reports.edit")},showAddProcedure:function(){this._addChildObject("procedures.edit")},showDeleteImaging:function(e){this.send("openModal","imaging.delete",e)},showDeleteLab:function(e){this.send("openModal","labs.delete",e)},showDeleteMedication:function(e){this.send("openModal","medication.delete",e)},showDeleteProcedure:function(e){this.send("openModal","visits.procedures.delete",e)},showDeleteVitals:function(e){this.send("openModal","visits.vitals.delete",e)},showEditProcedure:function(e){h(e.get("visit"))&&e.set("visit",this.get("model")),e.set("returnToVisit",this.get("model.id")),e.set("returnToPatient"),this.transitionToRoute("procedures.edit",e)},showEditVitals:function(e){this.send("openModal","visits.vitals.edit",e)},showDeletePatientNote:function(e){this.send("openModal","dialog",i.default.Object.create({confirmAction:"deletePatientNote",title:"Delete Note",message:"Are you sure you want to delete this note?",noteToDelete:e,updateButtonAction:"confirm",updateButtonText:this.get("i18n").t("buttons.ok")}))},deletePatientNote:function(e){var t=e.get("noteToDelete");this.get("model.patientNotes").removeObject(t),this.send("update",!0)},startDateChanged:function(e){var t=this.get("isAdmissionVisit"),n=this.get("model");t||n.set("endDate",e)},printReport:function(e){g(e,"returnToVisit",f(this,"model.id")),this.transitionToRoute("visits.reports.edit",e,{queryParams:{print:!0}})},viewReport:function(e){g(e,"returnToVisit",f(this,"model.id")),this.transitionToRoute("visits.reports.edit",e,{queryParams:{print:null}})}}})}),define("hospitalrun/visits/edit/route",["exports","ember-i18n","hospitalrun/routes/abstract-edit-route","hospitalrun/mixins/charge-route","ember","hospitalrun/mixins/patient-list-route","hospitalrun/mixins/patient-visits","ember-data"],function(e,t,n,a,l,s,i,o){var r=l.default.get,d=l.default.set,c=l.default.isEmpty;e.default=n.default.extend(a.default,s.default,i.default,{customForms:l.default.inject.service(),editTitle:(0,t.translationMacro)("visits.titles.editVisit"),modelName:"visit",newTitle:(0,t.translationMacro)("visits.titles.newVisit"),pricingCategory:"Ward",model:function(e){var t=this,n=r(this,"idParam");return c(n)||"checkin"!==e[n]?this._super(e):this.getNewData().then(function(e){return e.checkIn=!0,r(t,"store").createRecord("visit",e)})},getNewData:function(){var e={startDate:new Date,visitType:"Admission",customForms:l.default.Object.create()};return this.get("customForms").setDefaultCustomForms(["visit"],e)},getScreenTitle:function(e){return e.get("checkIn")?this.get("i18n").t("visits.titles.patientCheckIn"):this._super(e)},setupController:function(e,t){var n=this.store.query("report",{options:{key:r(t,"id")},mapReduce:"report_by_visit"}).then(function(t){return d(e,"noReport",c(t)),c(t)?"":r(t,"firstObject")});d(e,"report",o.default.PromiseObject.create({promise:n})),this._super(e,t)},actions:{updateNote:function(){this.controller.send("update",!0)},deletePatientNote:function(e){this.controller.send("deletePatientNote",e)}}})}),define("hospitalrun/visits/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"EcK/Filv",
+block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],32]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body"],["flush-element"],["text","\\n "],["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.date"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["visits.labels.authoredBy"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["visits.labels.reportType"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.actions"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n\\n "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["report","reportDate"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["report","modifiedBy"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["report","reportType"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["static-attr","data-test-selector","view-report-btn"],["modifier",["action"],[["get",[null]],"viewReport",["get",["report"]]]],["flush-element"],["append",["helper",["t"],["labels.view"],null],false],["close-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["static-attr","data-test-selector","print-report-btn"],["modifier",["action"],[["get",[null]],"printReport",["get",["report"]]]],["flush-element"],["append",["helper",["t"],["labels.print"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["visits.buttons.newDischargeReport"],null],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["visits.buttons.newOPDReport"],null],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-primary align-right"],["static-attr","data-test-selector","report-btn"],["modifier",["action"],[["get",[null]],"newReport"]],["flush-element"],["text","\\n"],["block",["if"],[["get",["model","outPatient"]]],null,2,1],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text","\\n "],["open-element","div",[]],["static-attr","class","panel-heading"],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddReport"]]],null,3],["text"," "],["close-element"],["text","\\n\\n"]],"locals":[]},{"statements":[["text"," "],["partial","item-charges"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-primary align-right"],["modifier",["action"],[["get",[null]],"showAddVitals"],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["visits.buttons.newVitals"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeleteVitals",["get",["vital"]]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["buttons.delete"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"showEditVitals",["get",["vital"]]]],["flush-element"],["append",["helper",["t"],["labels.edit"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["vital","modifiedBy"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["vital","dateRecorded"]]],[["format"],["l h:mm A"]]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["vital","temperature"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["vital","weight"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["vital","height"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["vital","sbp"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["vital","dbp"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["vital","heartRate"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["vital","respiratoryRate"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddVitals"]]],null,8],["block",["if"],[["get",["canDeleteVitals"]]],null,7],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["vital"]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-primary align-right"],["static-attr","data-test-selector","new-procedure-btn"],["modifier",["action"],[["get",[null]],"showAddProcedure"],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["visits.buttons.newProcedure"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeleteProcedure",["get",["procedure"]]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["buttons.delete"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"showEditProcedure",["get",["procedure"]]]],["flush-element"],["append",["helper",["t"],["labels.edit"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["procedure","procedureDate"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["procedure","description"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddProcedure"]]],null,12],["block",["if"],[["get",["canDeleteProcedure"]]],null,11],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["procedure"]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-primary align-right"],["static-attr","data-test-selector","new-note-btn"],["modifier",["action"],[["get",[null]],"showAddPatientNote"],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["buttons.newNote"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeletePatientNote",["get",["note"]]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["buttons.delete"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"showAddPatientNote",["get",["note"]]]],["flush-element"],["append",["helper",["t"],["buttons.edit"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["note","date"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["note","authoredBy"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["note","noteType"]],false],["text",": "],["append",["unknown",["note","content"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddNote"]]],null,16],["block",["if"],[["get",["canDeleteNote"]]],null,15],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["note"]},{"statements":[["text"," "],["open-element","ul",[]],["static-attr","class","nav nav-pills tab-nav"],["static-attr","role","tablist"],["flush-element"],["text","\\n "],["open-element","li",[]],["static-attr","role","presentation"],["static-attr","class","active"],["flush-element"],["text","\\n "],["open-element","a",[]],["static-attr","href","#orders"],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["static-attr","data-test-selector","orders-tab"],["flush-element"],["text","\\n "],["append",["helper",["t"],["visits.navigation.orders"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","li",[]],["static-attr","role","presentation"],["flush-element"],["text","\\n "],["open-element","a",[]],["static-attr","href","#visit-vitals"],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["static-attr","data-test-selector","vitals-tab"],["flush-element"],["text","\\n "],["append",["helper",["t"],["visits.navigation.vitals"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","li",[]],["static-attr","role","presentation"],["flush-element"],["text","\\n "],["open-element","a",[]],["static-attr","href","#visit-notes"],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["static-attr","data-test-selector","notes-tab"],["flush-element"],["text","\\n "],["append",["helper",["t"],["visits.navigation.notes"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","li",[]],["static-attr","role","presentation"],["flush-element"],["text","\\n "],["open-element","a",[]],["static-attr","href","#visit-procedures"],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["static-attr","data-test-selector","procedures-tab"],["flush-element"],["text","\\n "],["append",["helper",["t"],["visits.navigation.procedures"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","li",[]],["static-attr","role","presentation"],["flush-element"],["text","\\n "],["open-element","a",[]],["static-attr","href","#charges"],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["static-attr","data-test-selector","charges-tab"],["flush-element"],["text","\\n "],["append",["helper",["t"],["visits.navigation.charges"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","li",[]],["static-attr","role","presentation"],["flush-element"],["text","\\n "],["open-element","a",[]],["static-attr","href","#reports"],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["static-attr","data-test-selector","reports-tab"],["flush-element"],["text","\\n "],["append",["helper",["t"],["visits.navigation.reports"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","tab-content"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","role","tabpanel"],["static-attr","class","tab-pane"],["static-attr","id","visit-notes"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel detail-section"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body"],["flush-element"],["text","\\n "],["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.date"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["visits.labels.authoredBy"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.note"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.actions"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","patientNotes"]]],null,17],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-footer"],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddNote"]]],null,14],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","role","tabpanel"],["static-attr","class","tab-pane"],["static-attr","id","visit-procedures"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel detail-section"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body"],["flush-element"],["text","\\n "],["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.date"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["visits.labels.procedure"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.actions"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","procedures"]]],null,13],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-footer"],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddProcedure"]]],null,10],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","role","tabpanel"],["static-attr","class","tab-pane active"],["static-attr","id","orders"],["flush-element"],["text","\\n "],["append",["helper",["patient-orders"],null,[["visit"],[["get",["model"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","role","tabpanel"],["static-attr","class","tab-pane"],["static-attr","id","visit-vitals"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel detail-section"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body"],["flush-element"],["text","\\n "],["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.takenBy"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.date"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["vitals.labels.temperature"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["vitals.labels.weight"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["vitals.labels.height"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["vitals.labels.sbp"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["vitals.labels.dbp"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["vitals.labels.heartRate"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["vitals.labels.respiratoryRate"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.delete"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","vitals"]]],null,9],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-footer"],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddVitals"]]],null,6],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","role","tabpanel"],["static-attr","class","tab-pane"],["static-attr","id","charges"],["flush-element"],["text","\\n"],["block",["em-form"],null,[["model","submitButton"],[["get",[null]],false]],5],["text"," "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","role","tabpanel"],["static-attr","class","tab-pane"],["static-attr","id","reports"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel detail-section"],["flush-element"],["text","\\n"],["block",["if"],[["get",["noReport"]]],null,4,0],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["className","property","label","list","selection","hint"],["col-sm-5","primaryBillingDiagnosis",["helper",["t"],["visits.labels.finalDiagnosis"],null],["get",["diagnosisList"]],["get",["model","primaryBillingDiagnosis"]],false]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","form-group col-sm-4"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["visits.labels.status"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["helper",["t"],[["helper",["concat"],["visits.labels.status",["get",["model","status"]]],null]],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","form-group col-sm-4"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["visits.labels.visitType"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","visitType"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-select"],null,[["class","label","property","content","prompt"],["col-sm-4 required form-input-group visit-type",["helper",["t"],["visits.labels.visitType"],null],"visitType",["get",["validVisitTypes"]]," "]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["date-picker"],null,[["property","label","showTime","class"],["endDate",["helper",["t"],["visits.labels.checkOutTime"],null],true,"col-sm-4 checkout-date"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["date-picker"],null,[["property","label","showTime","class"],["startDate",["helper",["t"],["visits.labels.checkInTime"],null],true,"col-sm-4 required checkin-date"]]],false],["text","\\n"],["block",["if"],[["helper",["eq"],[["get",["model","status"]],"CheckedOut"],null]],null,23]],"locals":[]},{"statements":[["text"," "],["append",["helper",["date-picker"],null,[["property","label","showTime","class"],["startDate",["helper",["t"],["patients.labels.admissionDate"],null],true,"col-sm-4 required"]]],false],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","showTime","class"],["endDate",["helper",["t"],["patients.labels.dischargeDate"],null],true,"col-sm-4"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["patient-typeahead"],null,[["property","label","content","selection","class"],["patientTypeAhead",["helper",["t"],["visits.labels.patientToCheckIn"],null],["get",["patientList"]],["get",["selectedPatient"]],"required patient-name col-sm-9"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-input"],null,[["property","label","class"],["patientTypeAhead",["helper",["t"],["visits.labels.patientToCheckIn"],null],"required patient-name col-sm-9"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n"],["block",["if"],[["get",["model","createNewPatient"]]],null,27,26],["text"," "],["open-element","div",[]],["static-attr","class","checkbox col-sm-3 new-patient-checkbox"],["flush-element"],["text","\\n "],["open-element","label",[]],["flush-element"],["text","\\n "],["open-element","input",[]],["static-attr","type","checkbox"],["dynamic-attr","checked",["unknown",["model","createNewPatient"]],null],["dynamic-attr","onchange",["helper",["action"],[["get",[null]],"newPatientChanged"],[["value"],["target.checked"]]],null],["flush-element"],["close-element"],["text","\\n "],["append",["helper",["t"],["visits.labels.createNewPatient"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["patient-summary"],null,[["patient","diagnosisContainer","returnTo","returnToContext","disablePatientLink","allowAddAllergy","allowAddDiagnosis","allowAddOperativePlan","diagnosisList"],[["get",["model","patient"]],["get",["model"]],"visits.edit",["get",["model","id"]],["get",["model","isNew"]],true,true,true,["get",["diagnosisList"]]]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["model","patient"]]],null,29],["block",["if"],[["get",["showPatientSelection"]]],null,28],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n"],["block",["if"],[["get",["isAdmissionVisit"]]],null,25,24],["text"," "],["append",["helper",["select-or-typeahead"],null,[["className","property","label","list","selection"],["col-sm-4 visit-location","location",["helper",["t"],["labels.location"],null],["get",["locationList"]],["get",["model","location"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n"],["block",["if"],[["get",["model","isNew"]]],null,22,21],["block",["if"],[["get",["model","status"]]],null,20],["text"," "],["append",["helper",["select-or-typeahead"],null,[["className","property","label","list","selection"],["col-sm-4 visit-examiner","examiner",["helper",["t"],["visits.labels.examiner"],null],["get",["physicianList"]],["get",["model","examiner"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["expand-text"],null,[["property","label","rows"],["reasonForVisit",["helper",["t"],["visits.labels.reasonForVisit"],null],3]]],false],["text","\\n"],["block",["if"],[["get",["canAddBillingDiagnosis"]]],null,19],["text"," "],["append",["helper",["custom-form-manager"],null,[["model","formType"],[["get",["model"]],"visit"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","btn btn-primary align-right"],["modifier",["action"],[["get",[null]],"newAppointment"],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["visits.buttons.newAppointment"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","panel-group"],["static-attr","id","visit-accordion"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-heading"],["flush-element"],["text","\\n "],["open-element","h3",[]],["static-attr","class","panel-title"],["flush-element"],["text","\\n "],["open-element","a",[]],["static-attr","data-toggle","collapse"],["static-attr","data-parent","#visit-accordion"],["static-attr","href","#visit-info"],["flush-element"],["text","\\n "],["append",["helper",["t"],["visits.labels.visitInformation"],null],false],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["canAddAppointment"]]],null,31],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","id","visit-info"],["static-attr","class","panel-collapse collapse in"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body"],["flush-element"],["text","\\n"],["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],30],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["unless"],[["get",["model","isNew"]]],null,18],["text"," "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":true}',meta:{moduleName:"hospitalrun/visits/edit/template.hbs"}})}),define("hospitalrun/visits/procedures/delete/controller",["exports","hospitalrun/controllers/abstract-delete-controller","ember"],function(e,t,n){e.default=t.default.extend({afterDeleteAction:"notifyProcedureDelete",editController:n.default.inject.controller("visits/edit"),title:"Delete Procedure",actions:{notifyProcedureDelete:function(){this.send("closeModal"),this.get("editController").send("deleteProcedure",this.get("model"))}}})}),define("hospitalrun/visits/procedures/delete/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"70SYoaUF",
+block:'{"statements":[["block",["modal-dialog"],null,[["isUpdateDisabled","title","updateButtonAction","updateButtonText"],[["get",["isUpdateDisabled"]],["get",["title"]],["get",["updateButtonAction"]],["get",["updateButtonText"]]]],0]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-danger"],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","glyphicon glyphicon-warning-sign"],["flush-element"],["close-element"],["text","\\n "],["append",["helper",["t"],["messages.delete_singular"],[["name"],[["helper",["t"],["models.procedure.names.singular"],null]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/visits/procedures/delete/template.hbs"}})}),define("hospitalrun/visits/reports/edit/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember","hospitalrun/mixins/patient-submodule","hospitalrun/mixins/patient-diagnosis","hospitalrun/mixins/pouchdb"],function(e,t,n,a,l,s){var i=n.default.get,o=n.default.set,r=n.default.computed,d=n.default.computed.alias;e.default=t.default.extend(a.default,l.default,s.default,{queryParams:["print"],print:null,visitsController:n.default.inject.controller("visits"),physicianList:d("visitsController.physicianList"),logoURL:d("visitsController.printHeader.value.logoURL"),facilityName:d("visitsController.printHeader.value.facilityName"),headerLine1:d("visitsController.printHeader.value.headerLine1"),headerLine2:d("visitsController.printHeader.value.headerLine2"),headerLine3:d("visitsController.printHeader.value.headerLine3"),diagnosisList:d("visitsController.diagnosisList"),additionalButtons:r("model.isNew",function(){var e=i(this,"model.isNew"),t=i(this,"i18n");if(!e)return[{class:"btn btn-primary on-white",buttonAction:"printReport",buttonIcon:"octicon octicon-check",buttonText:t.t("labels.print")}]}),updateCapability:"add_report",beforeUpdate:function(){var e=this;return new n.default.RSVP.Promise(function(t){var n=i(e,"model");i(n,"isNew")&&(i(e,"model.visit.outPatient")?o(n,"reportType","OPD Report"):o(n,"reportType","Discharge Report")),t()})},afterUpdate:function(){var e=i(this,"i18n").t("reports.titles.saved"),t=i(this,"i18n").t("reports.messages.saved");this.saveVisitIfNeeded(e,t);var n=i(this,"i18n").t("reports.titles.opdReport"),a=i(this,"i18n").t("reports.titles.dischargeReport"),l=i(this,"model.visit.outPatient")?n:a,s={};s.currentScreenTitle=l,this.send("setSectionHeader",s)},actions:{printReport:function(){window.print()}}})}),define("hospitalrun/visits/reports/edit/route",["exports","hospitalrun/routes/abstract-edit-route","hospitalrun/mixins/add-to-patient-route","ember","ember-i18n","hospitalrun/mixins/patient-visits"],function(e,t,n,a,l,s){var i=a.default.get,o=a.default.set;e.default=t.default.extend(n.default,s.default,{modelName:"report",customForms:a.default.inject.service(),getNewData:function(){var e={reportDate:new Date,customForms:a.default.Object.create()};return i(this,"customForms").setDefaultCustomForms(["opdReport","dischargeReport"],e)},getScreenTitle:function(e){var t=i(e,"isNew"),n=null;return n=i(e,"visit.outPatient")?t?"newOPDReport":"opdReport":t?"newDischargeReport":"dischargeReport",(0,l.translationMacro)("reports.titles."+n)},getDiagnosisContainer:function(e){return i(e,"outPatient")?e:null},getCurrentOperativePlan:function(e){return i(e,"operativePlans").findBy("isPlanned",!0)},afterModel:function(e){if(!i(e,"isNew")){var t=i(e,"visit.patient");o(e,"patient",t)}if(!i(e,"visit"))return this.transitionTo("patients")},setupController:function(e,t){this._super(e,t);var n=i(t,"visit"),a=i(t,"patient"),l=i(n,"outPatient");o(e,"visit",n),o(e,"isOutPatient",l),o(e,"diagnosisContainer",this.getDiagnosisContainer(n)),o(e,"currentOperativePlan",this.getCurrentOperativePlan(a)),l?o(e,"nextAppointments",this.getPatientFutureAppointment(n,!0)):o(e,"nextAppointment",this.getPatientFutureAppointment(n))}})}),define("hospitalrun/visits/reports/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"t4rcuah2",block:'{"statements":[["block",["print-this"],null,[["print","delay"],[["get",["print"]],1000]],43]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","ps-info-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","ps-info-label"],["flush-element"],["append",["helper",["t"],["reports.labels.completedBy"],null],false],["text",":"],["close-element"],["text","\\n "],["append",["unknown",["model","modifiedBy"]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," ("],["append",["unknown",["nextAppointment","location"]],false],["text",")\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","ps-info-group"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","ps-info-label"],["flush-element"],["append",["helper",["t"],["reports.labels.nextAppointment"],null],false],["text",":"],["close-element"],["text","\\n "],["append",["helper",["date-format"],[["get",["nextAppointment","startDate"]]],null],false],["text","\\n"],["block",["if"],[["get",["nextAppointment","location"]]],null,1],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","li",[]],["static-attr","class","test-notes-data"],["flush-element"],["text","\\n "],["open-element","b",[]],["flush-element"],["append",["helper",["t"],["reports.labels.notes.date"],null],false],["text",":"],["close-element"],["text"," "],["append",["helper",["date-format"],[["get",["note","date"]]],null],false],["open-element","br",[]],["flush-element"],["close-element"],["text","\\n "],["open-element","b",[]],["flush-element"],["append",["helper",["t"],["reports.labels.notes.author"],null],false],["text",":"],["close-element"],["text"," "],["append",["unknown",["note","authoredBy"]],false],["open-element","br",[]],["flush-element"],["close-element"],["text","\\n "],["open-element","b",[]],["flush-element"],["append",["unknown",["note","noteType"]],false],["text",": "],["append",["unknown",["note","content"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["note"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","ps-info-group test-notes"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","ps-info-label test-notes-label"],["flush-element"],["append",["helper",["t"],["reports.labels.notes.title"],null],false],["close-element"],["text","\\n "],["open-element","ul",[]],["flush-element"],["text","\\n"],["block",["each"],[["get",["visit","patientNotes"]]],null,3],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["date-format"],[["get",["procedure","procedureDate"]]],null],false],["text","\\n "]],"locals":[]},{"statements":[["text"," "],["open-element","li",[]],["flush-element"],["append",["unknown",["procedure","description"]],false],["text"," -\\n"],["block",["if"],[["get",["procedure","procedureDate"]]],null,5],["close-element"],["text","\\n"]],"locals":["procedure"]},{"statements":[["text"," "],["open-element","label",[]],["static-attr","class","ps-info-label"],["flush-element"],["append",["helper",["t"],["reports.labels.allProcedures"],null],false],["close-element"],["text","\\n "],["open-element","ul",[]],["flush-element"],["text","\\n"],["block",["each"],[["get",["patientProcedures"]]],null,6],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","ps-info-group test-examiner"],["flush-element"],["text","\\n "],["open-element","p",[]],["flush-element"],["open-element","b",[]],["static-attr","class","test-examiner-label"],["flush-element"],["append",["helper",["t"],["reports.labels.examiner"],null],false],["text",":"],["close-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","test-examiner-data"],["flush-element"],["append",["unknown",["visit","examiner"]],false],["close-element"],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text","\\n "],["open-element","div",[]],["static-attr","class","ps-info-group test-visit-date"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","ps-info-label test-visit-discharge-date-label"],["flush-element"],["append",["helper",["t"],["reports.labels.dischargeDate"],null],false],["text",": "],["close-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","test-visit-discharge-date-data"],["flush-element"],["append",["helper",["date-format"],[["get",["model","reportDate"]]],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n\\n"],["block",["if"],[["get",["visit","examiner"]]],null,8],["text","\\n"],["block",["if"],[["get",["patientProcedures"]]],null,7],["text","\\n"],["block",["if"],[["get",["visit","patientNotes"]]],null,4],["text","\\n"],["block",["if"],[["get",["nextAppointment"]]],null,2],["text","\\n "],["append",["helper",["custom-form-manager"],null,[["model","formType"],[["get",["model"]],"dischargeReport"]]],false],["text","\\n\\n"],["block",["if"],[["get",["model","modifiedBy"]]],null,0],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","li",[]],["static-attr","class","test-notes-data"],["flush-element"],["text","\\n "],["open-element","b",[]],["flush-element"],["append",["helper",["t"],["reports.labels.notes.date"],null],false],["text",":"],["close-element"],["text"," "],["append",["helper",["date-format"],[["get",["note","date"]]],null],false],["open-element","br",[]],["flush-element"],["close-element"],["text","\\n "],["open-element","b",[]],["flush-element"],["append",["helper",["t"],["reports.labels.notes.author"],null],false],["text",":"],["close-element"],["text"," "],["append",["unknown",["note","authoredBy"]],false],["open-element","br",[]],["flush-element"],["close-element"],["text","\\n "],["open-element","b",[]],["flush-element"],["append",["unknown",["note","noteType"]],false],["text",": "],["append",["unknown",["note","content"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["note"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","ps-info-group test-notes"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","ps-info-label test-notes-label"],["flush-element"],["append",["helper",["t"],["reports.labels.notes.title"],null],false],["close-element"],["text","\\n "],["open-element","ul",[]],["flush-element"],["text","\\n"],["block",["each"],[["get",["visit","patientNotes"]]],null,10],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","li",[]],["flush-element"],["text","\\n "],["open-element","p",[]],["flush-element"],["open-element","b",[]],["static-attr","class","test-operative-plan-instructions-label"],["flush-element"],["append",["helper",["t"],["reports.labels.operativePlan.instructions"],null],false],["text",":"],["close-element"],["open-element","br",[]],["flush-element"],["close-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","test-operative-plan-instructions-data"],["flush-element"],["append",["unknown",["currentOperativePlan","admissionInstructions"]],false],["close-element"],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","li",[]],["static-attr","class","test-operative-plan-procedures-description"],["flush-element"],["append",["unknown",["procedure","description"]],false],["close-element"],["text","\\n"]],"locals":["procedure"]},{"statements":[["text"," "],["open-element","li",[]],["flush-element"],["text","\\n "],["open-element","p",[]],["flush-element"],["open-element","b",[]],["static-attr","class","test-operative-plan-description-label"],["flush-element"],["append",["helper",["t"],["reports.labels.operativePlan.description"],null],false],["text",":"],["close-element"],["open-element","br",[]],["flush-element"],["close-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","test-operative-plan-description-data"],["flush-element"],["append",["unknown",["currentOperativePlan","operationDescription"]],false],["close-element"],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","ps-info-group test-operative-plan"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","ps-info-label test-operative-plan-label"],["flush-element"],["append",["helper",["t"],["reports.labels.operativePlan.title"],null],false],["close-element"],["text","\\n "],["open-element","ul",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["currentOperativePlan","operationDescription"]]],null,14],["text","\\n "],["open-element","li",[]],["flush-element"],["text","\\n "],["open-element","p",[]],["flush-element"],["open-element","b",[]],["static-attr","class","test-operative-plan-procedures-label"],["flush-element"],["append",["helper",["t"],["reports.labels.operativePlan.procedures"],null],false],["text",":"],["close-element"],["close-element"],["text","\\n "],["open-element","ul",[]],["flush-element"],["text","\\n"],["block",["each"],[["get",["currentOperativePlan","procedures"]]],null,13],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n\\n"],["block",["if"],[["get",["currentOperativePlan","admissionInstructions"]]],null,12],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," ("],["open-element","b",[]],["flush-element"],["append",["unknown",["appointment","appointmentType"]],false],["close-element"],["text",")\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","li",[]],["static-attr","class","test-appointment-data"],["flush-element"],["text","\\n "],["append",["helper",["date-format"],[["get",["appointment","startDate"]]],null],false],["text","\\n"],["block",["if"],[["get",["appointment","appointmentType"]]],null,16],["text"," "],["close-element"],["text","\\n"]],"locals":["appointment"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","ps-info-group test-appointment"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","ps-info-label test-appointment-label"],["flush-element"],["append",["helper",["t"],["reports.labels.nextAppointments"],null],false],["close-element"],["text","\\n "],["open-element","ul",[]],["flush-element"],["text","\\n"],["block",["each"],[["get",["nextAppointments"]]],null,17],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","li",[]],["static-attr","class","test-medication-data"],["flush-element"],["append",["unknown",["medication","medicationName"]],false],["text"," - "],["append",["unknown",["medication","prescription"]],false],["text"," ("],["append",["unknown",["medication","status"]],false],["text",")"],["close-element"],["text","\\n"]],"locals":["medication"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","ps-info-group test-medication"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","ps-info-label test-medication-label"],["flush-element"],["append",["helper",["t"],["reports.labels.medications"],null],false],["close-element"],["text","\\n "],["open-element","ul",[]],["flush-element"],["text","\\n"],["block",["each"],[["get",["visit","medication"]]],null,19],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","li",[]],["static-attr","class","test-images-data"],["flush-element"],["append",["unknown",["item","imagingType","name"]],false],["text","-"],["append",["unknown",["item","result"]],false],["text"," ("],["append",["unknown",["item","status"]],false],["text",")"],["close-element"],["text","\\n"]],"locals":["item"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","ps-info-group test-images"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","ps-info-label test-images-label"],["flush-element"],["append",["helper",["t"],["reports.labels.images"],null],false],["close-element"],["text","\\n "],["open-element","ul",[]],["flush-element"],["text","\\n"],["block",["each"],[["get",["visit","imaging"]]],null,21],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","li",[]],["static-attr","class","test-labs-data"],["flush-element"],["append",["unknown",["item","labType","name"]],false],["text","-"],["append",["unknown",["item","result"]],false],["text"," ("],["append",["unknown",["item","status"]],false],["text",")"],["close-element"],["text","\\n"]],"locals":["item"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","ps-info-group test-labs"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","ps-info-label test-labs-label"],["flush-element"],["append",["helper",["t"],["reports.labels.labs"],null],false],["close-element"],["text","\\n "],["open-element","ul",[]],["flush-element"],["text","\\n"],["block",["each"],[["get",["visit","labs"]]],null,23],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","li",[]],["static-attr","class","test-opd-procedure-data"],["flush-element"],["append",["unknown",["item","description"]],false],["close-element"],["text","\\n"]],"locals":["item"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","ps-info-group test-opd-procedure"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","ps-info-label test-opd-procedure-label"],["flush-element"],["append",["helper",["t"],["reports.labels.procedures"],null],false],["close-element"],["text","\\n "],["open-element","ul",[]],["flush-element"],["text","\\n"],["block",["each"],[["get",["visit","procedures"]]],null,25],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","ps-info-group test-location"],["flush-element"],["text","\\n "],["open-element","p",[]],["flush-element"],["open-element","b",[]],["static-attr","class","test-location-label"],["flush-element"],["append",["helper",["t"],["reports.labels.location"],null],false],["text",":"],["close-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","test-location-data"],["flush-element"],["append",["unknown",["visit","location"]],false],["close-element"],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","ps-info-group test-examiner"],["flush-element"],["text","\\n "],["open-element","p",[]],["flush-element"],["open-element","b",[]],["static-attr","class","test-examiner-label"],["flush-element"],["append",["helper",["t"],["reports.labels.examiner"],null],false],["text",":"],["close-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","test-examiner-data"],["flush-element"],["append",["unknown",["visit","examiner"]],false],["close-element"],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","ps-info-group test-visit-type"],["flush-element"],["text","\\n "],["open-element","p",[]],["flush-element"],["open-element","b",[]],["static-attr","class","test-visit-type-label"],["flush-element"],["append",["helper",["t"],["reports.labels.visitType"],null],false],["text",":"],["close-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","test-visit-type-data"],["flush-element"],["append",["unknown",["visit","visitType"]],false],["close-element"],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text","\\n"],["block",["if"],[["get",["visit","visitType"]]],null,29],["text","\\n"],["block",["if"],[["get",["visit","examiner"]]],null,28],["text","\\n"],["block",["if"],[["get",["visit","location"]]],null,27],["text","\\n"],["block",["if"],[["get",["visit","procedures"]]],null,26],["text","\\n"],["block",["if"],[["get",["visit","labs"]]],null,24],["text","\\n"],["block",["if"],[["get",["visit","imaging"]]],null,22],["text","\\n"],["block",["if"],[["get",["visit","medication"]]],null,20],["text","\\n"],["block",["if"],[["get",["nextAppointments"]]],null,18],["text","\\n"],["block",["if"],[["get",["currentOperativePlan"]]],null,15],["text","\\n"],["block",["if"],[["get",["visit","patientNotes"]]],null,11],["text","\\n "],["append",["helper",["custom-form-manager"],null,[["model","formType"],[["get",["model"]],"opdReport"]]],false],["text","\\n\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["reports.labels.admissionDate"],null],false],["text",":\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["reports.labels.visitDate"],null],false],["text",":\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["patient-summary"],null,[["patient","disablePatientLink","diagnosisContainer","diagnosisList"],[["get",["model","patient"]],true,["get",["diagnosisContainer"]],["get",["diagnosisList"]]]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["model","patient"]]],null,33],["text","\\n "],["open-element","div",[]],["static-attr","class","ps-info-group test-visit-date"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","ps-info-label test-visit-date-label"],["flush-element"],["text","\\n"],["block",["if"],[["get",["isOutPatient"]]],null,32,31],["text"," "],["close-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","test-visit-date-data"],["flush-element"],["append",["helper",["date-format"],[["get",["visit","startDate"]]],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n\\n"],["block",["if"],[["get",["isOutPatient"]]],null,30,9]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],34]],"locals":[]},{"statements":[["text"," "],["open-element","h3",[]],["flush-element"],["append",["helper",["t"],["reports.titles.dischargeReport"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","h3",[]],["flush-element"],["append",["helper",["t"],["reports.titles.opdReport"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","span",[]],["flush-element"],["append",["unknown",["headerLine3"]],false],["close-element"],["open-element","br",[]],["flush-element"],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","span",[]],["flush-element"],["append",["unknown",["headerLine2"]],false],["close-element"],["open-element","br",[]],["flush-element"],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","span",[]],["flush-element"],["append",["unknown",["headerLine1"]],false],["close-element"],["open-element","br",[]],["flush-element"],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","h3",[]],["flush-element"],["append",["unknown",["facilityName"]],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","img",[]],["dynamic-attr","src",["unknown",["logoURL"]],null],["static-attr","class","report-logo"],["flush-element"],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","report-header"],["flush-element"],["text","\\n"],["block",["if"],[["get",["logoURL"]]],null,42],["block",["if"],[["get",["facilityName"]]],null,41],["block",["if"],[["get",["headerLine1"]]],null,40],["block",["if"],[["get",["headerLine2"]]],null,39],["block",["if"],[["get",["headerLine3"]]],null,38],["block",["if"],[["get",["isOutPatient"]]],null,37,36],["text"," "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","report"],["flush-element"],["text","\\n"],["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],35],["text"," "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/visits/reports/edit/template.hbs"}})}),define("hospitalrun/visits/route",["exports","hospitalrun/routes/abstract-module-route"],function(e,t){e.default=t.default.extend({addCapability:"add_visit",additionalModels:[{name:"anesthesiaTypes",findArgs:["lookup","anesthesia_types"]},{name:"anesthesiologistList",findArgs:["lookup","anesthesiologists"]},{name:"diagnosisList",findArgs:["lookup","diagnosis_list"]},{name:"cptCodeList",findArgs:["lookup","cpt_code_list"]},{name:"physicianList",findArgs:["lookup","physician_list"]},{name:"locationList",findArgs:["lookup","visit_location_list"]},{name:"procedureList",findArgs:["lookup","procedure_list"]},{name:"procedureLocations",findArgs:["lookup","procedure_locations"]},{name:"procedurePricingTypes",findArgs:["lookup","procedure_pricing_types"]},{name:"sexList",findArgs:["lookup","sex"]},{name:"visitTypesList",findArgs:["lookup","visit_types"]},{name:"wardPricingTypes",findArgs:["lookup","ward_pricing_types"]},{name:"printHeader",findArgs:["option","print_header"]}],moduleName:"visits",newButtonAction:null,sectionTitle:"Visits",actions:{allItems:function(){this.transitionTo("patients.index")}}})}),define("hospitalrun/visits/vitals/delete/controller",["exports","hospitalrun/controllers/abstract-delete-controller","ember"],function(e,t,n){e.default=t.default.extend({afterDeleteAction:"notifyVitalsDelete",editController:n.default.inject.controller("visits/edit"),title:"Delete Vitals",actions:{notifyVitalsDelete:function(){this.send("closeModal"),this.get("editController").send("deleteVitals",this.get("model"))}}})}),define("hospitalrun/visits/vitals/delete/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"pcS8QYDZ",block:'{"statements":[["block",["modal-dialog"],null,[["isUpdateDisabled","title","updateButtonAction","updateButtonText"],[["get",["isUpdateDisabled"]],["get",["title"]],["get",["updateButtonAction"]],["get",["updateButtonText"]]]],0]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-danger"],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","glyphicon glyphicon-warning-sign"],["flush-element"],["close-element"],["text","\\n "],["append",["helper",["t"],["messages.delete_plural"],[["name"],[["helper",["t"],["models.vital.names.plural"],null]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/visits/vitals/delete/template.hbs"}})}),define("hospitalrun/visits/vitals/edit/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember"],function(e,t,n){e.default=t.default.extend({cancelAction:"closeModal",editController:n.default.inject.controller("visits/edit"),newVitals:!1,temperatureLabel:"Temperature (°C)",title:function(){return this.get("model.isNew")?"Add Vitals":"Edit Vitals"}.property("model.isNew"),updateCapability:"add_vitals",beforeUpdate:function(){return this.get("model.isNew")&&this.set("newVitals",!0),n.default.RSVP.Promise.resolve()},afterUpdate:function(e){this.get("newVitals")?this.get("editController").send("addVitals",e):this.send("closeModal")}})}),define("hospitalrun/visits/vitals/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"OAomDrTd",
+block:'{"statements":[["block",["modal-dialog"],null,[["hideCancelButton","isUpdateDisabled","title","updateButtonAction","updateButtonText"],[["get",["hideCancelButton"]],["get",["isUpdateDisabled"]],["get",["title"]],["get",["updateButtonAction"]],["get",["updateButtonText"]]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class","format","showTime"],["dateRecorded",["helper",["t"],["vitals.labels.dateRecorded"],null],"col-sm-6","l h:mm A",true]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["number-input"],null,[["class","property","label"],["col-sm-3 required temperature-text","temperature",["get",["temperatureLabel"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-input"],null,[["class","property","label"],["col-sm-3 weight-text","weight",["helper",["t"],["vitals.labels.weight"],null]]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["class","property","label"],["col-sm-3 height-text","height",["helper",["t"],["vitals.labels.height"],null]]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-input"],null,[["class","property","label"],["col-sm-3 required sbp-text","sbp",["helper",["t"],["vitals.labels.sbp"],null]]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["class","property","label"],["col-sm-3 required dbp-text","dbp",["helper",["t"],["vitals.labels.dbp"],null]]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["number-input"],null,[["class","property","label"],["col-sm-3 required heart-rate-text","heartRate",["helper",["t"],["vitals.labels.heartRate"],null]]]],false],["text","\\n "],["append",["helper",["number-input"],null,[["class","property","label"],["col-sm-3 required respiratory-rate-text","respiratoryRate",["helper",["t"],["vitals.labels.respiratoryRate"],null]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],0]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/visits/vitals/edit/template.hbs"}})}),define("hospitalrun/config/environment",["ember"],function(e){try{var t="hospitalrun/config/environment",n=document.querySelector('meta[name="'+t+'"]').getAttribute("content"),a=JSON.parse(unescape(n)),l={default:a};return Object.defineProperty(l,"__esModule",{value:!0}),l}catch(e){throw new Error('Could not read config from meta tag with name "'+t+'".')}}),runningTests||require("hospitalrun/app").default.create({name:"hospitalrun",version:"1.0.0-beta+f4745891"});
\ No newline at end of file
diff --git a/prod/assets/vendor-7ea4554a73f88bc06f973eec3a85f1ba.css b/prod/assets/vendor-7ea4554a73f88bc06f973eec3a85f1ba.css
new file mode 100644
index 0000000000..35a1b1644c
--- /dev/null
+++ b/prod/assets/vendor-7ea4554a73f88bc06f973eec3a85f1ba.css
@@ -0,0 +1,12 @@
+@charset "UTF-8";/*!
+ * FullCalendar v3.4.0 Stylesheet
+ * Docs & License: https://fullcalendar.io/
+ * (c) 2017 Adam Shaw
+ */.fc-icon,body .fc{font-size:1em}.fc-button-group,.fc-icon{display:inline-block}.fc-bg,.fc-row .fc-bgevent-skeleton,.fc-row .fc-highlight-skeleton{bottom:0}.fc-icon,.fc-unselectable{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-touch-callout:none}.fc table,.pika-table{border-collapse:collapse;border-spacing:0}.fc-clear,.pika-single:after,.pika-time-container{clear:both}.fc{direction:ltr;text-align:left}.fc-rtl{text-align:right}.fc th,.fc-basic-view td.fc-week-number,.fc-icon,.fc-toolbar{text-align:center}.fc-unthemed .fc-content,.fc-unthemed .fc-divider,.fc-unthemed .fc-list-heading td,.fc-unthemed .fc-list-view,.fc-unthemed .fc-popover,.fc-unthemed .fc-row,.fc-unthemed tbody,.fc-unthemed td,.fc-unthemed th,.fc-unthemed thead{border-color:#ddd}.fc-unthemed .fc-popover{background-color:#fff}.fc-unthemed .fc-divider,.fc-unthemed .fc-list-heading td,.fc-unthemed .fc-popover .fc-header{background:#eee}.fc-unthemed .fc-popover .fc-header .fc-close{color:#666}.fc-unthemed td.fc-today{background:#fcf8e3}.fc-highlight{background:#bce8f1;opacity:.3}.fc-bgevent{background:#8fdf82;opacity:.3}.fc-nonbusiness{background:#d7d7d7}.fc-unthemed .fc-disabled-day{background:#d7d7d7;opacity:.3}.ui-widget .fc-disabled-day{background-image:none}.fc-icon{height:1em;line-height:1em;overflow:hidden;font-family:"Courier New",Courier,monospace;user-select:none}.fc-icon:after{position:relative}.fc-icon-left-single-arrow:after{content:"\02039";font-weight:700;font-size:200%;top:-7%}.fc-icon-right-single-arrow:after{content:"\0203A";font-weight:700;font-size:200%;top:-7%}.fc-icon-left-double-arrow:after{content:"\000AB";font-size:160%;top:-7%}.fc-icon-right-double-arrow:after{content:"\000BB";font-size:160%;top:-7%}.fc-icon-left-triangle:after{content:"\25C4";font-size:125%;top:3%}.fc-icon-right-triangle:after{content:"\25BA";font-size:125%;top:3%}.fc-icon-down-triangle:after{content:"\25BC";font-size:125%;top:2%}.fc-icon-x:after{content:"\000D7";font-size:200%;top:6%}.fc button{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;height:2.1em;padding:0 .6em;font-size:1em;white-space:nowrap;cursor:pointer}.fc button::-moz-focus-inner{margin:0;padding:0}.fc-state-default{border:1px solid;background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);color:#333;text-shadow:0 1px 1px rgba(255,255,255,.75);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.fc-state-default.fc-corner-left{border-top-left-radius:4px;border-bottom-left-radius:4px}.fc-state-default.fc-corner-right{border-top-right-radius:4px;border-bottom-right-radius:4px}.fc button .fc-icon{position:relative;top:-.05em;margin:0 .2em;vertical-align:middle}.fc-state-active,.fc-state-disabled,.fc-state-down,.fc-state-hover{color:#333;background-color:#e6e6e6}.fc-state-hover{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.fc-state-active,.fc-state-down{background-color:#ccc;background-image:none;box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.fc-state-disabled{cursor:default;background-image:none;opacity:.65;box-shadow:none}.fc-event.fc-draggable,.fc-event[href],.fc-popover .fc-header .fc-close,a[data-goto]{cursor:pointer}.fc .fc-button-group>*{float:left;margin:0 0 0 -1px}.fc .fc-button-group>:first-child{margin-left:0}.fc-popover{position:absolute;box-shadow:0 2px 6px rgba(0,0,0,.15)}.fc-popover .fc-header{padding:2px 4px}.fc-popover .fc-header .fc-title{margin:0 2px}.fc-ltr .fc-popover .fc-header .fc-title,.fc-rtl .fc-popover .fc-header .fc-close{float:left}.fc-ltr .fc-popover .fc-header .fc-close,.fc-rtl .fc-popover .fc-header .fc-title{float:right}.fc-unthemed .fc-popover{border-width:1px;border-style:solid}.fc-unthemed .fc-popover .fc-header .fc-close{font-size:.9em;margin-top:2px}.fc-popover>.ui-widget-header+.ui-widget-content{border-top:0}.fc-divider{border-style:solid;border-width:1px}hr.fc-divider{height:0;margin:0;padding:0 0 2px;border-width:1px 0}.fc-bg table,.fc-row .fc-bgevent-skeleton table,.fc-row .fc-highlight-skeleton table{height:100%}.fc-bg,.fc-bgevent-skeleton,.fc-helper-skeleton,.fc-highlight-skeleton{position:absolute;top:0;left:0;right:0}.fc table{width:100%;box-sizing:border-box;table-layout:fixed;font-size:1em}.fc td,.fc th{border-style:solid;border-width:1px;padding:0;vertical-align:top}.fc td.fc-today{border-style:double}a[data-goto]:hover{text-decoration:underline}.fc .fc-row{border-style:solid;border-width:0}.fc-row table{border-left:0 hidden transparent;border-right:0 hidden transparent;border-bottom:0 hidden transparent}.fc-row:first-child table{border-top:0 hidden transparent}.fc-row{position:relative}.fc-row .fc-bg{z-index:1}.fc-row .fc-bgevent-skeleton td,.fc-row .fc-highlight-skeleton td{border-color:transparent}.fc-row .fc-bgevent-skeleton{z-index:2}.fc-row .fc-highlight-skeleton{z-index:3}.fc-row .fc-content-skeleton{position:relative;z-index:4;padding-bottom:2px}.fc-row .fc-helper-skeleton{z-index:5}.fc-row .fc-content-skeleton td,.fc-row .fc-helper-skeleton td{background:0 0;border-color:transparent;border-bottom:0}.fc-row .fc-content-skeleton tbody td,.fc-row .fc-helper-skeleton tbody td{border-top:0}.fc-scroller{-webkit-overflow-scrolling:touch}.fc-row.fc-rigid,.fc-time-grid-event{overflow:hidden}.fc-scroller>.fc-day-grid,.fc-scroller>.fc-time-grid{position:relative;width:100%}.fc-event{position:relative;display:block;font-size:.85em;line-height:1.3;border-radius:3px;border:1px solid #3a87ad;font-weight:400}.fc-event,.fc-event-dot{background-color:#3a87ad}.fc-event,.fc-event:hover,.ui-widget .fc-event{color:#fff;text-decoration:none}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc-event .fc-bg{z-index:1;background:#fff;opacity:.25}.fc-event .fc-content{position:relative;z-index:2}.fc-event .fc-resizer{position:absolute;z-index:4;display:none}.fc-event.fc-allow-mouse-resize .fc-resizer,.fc-event.fc-selected .fc-resizer{display:block}.fc-event.fc-selected .fc-resizer:before{content:"";position:absolute;z-index:9999;top:50%;left:50%;width:40px;height:40px;margin-left:-20px;margin-top:-20px}.fc-event.fc-selected{z-index:9999!important;box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event.fc-selected.fc-dragging{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-h-event.fc-selected:before{content:"";position:absolute;z-index:3;top:-10px;bottom:-10px;left:0;right:0}.fc-ltr .fc-h-event.fc-not-start,.fc-rtl .fc-h-event.fc-not-end{margin-left:0;border-left-width:0;padding-left:1px;border-top-left-radius:0;border-bottom-left-radius:0}.fc-ltr .fc-h-event.fc-not-end,.fc-rtl .fc-h-event.fc-not-start{margin-right:0;border-right-width:0;padding-right:1px;border-top-right-radius:0;border-bottom-right-radius:0}.fc-ltr .fc-h-event .fc-start-resizer,.fc-rtl .fc-h-event .fc-end-resizer{cursor:w-resize;left:-1px}.fc-ltr .fc-h-event .fc-end-resizer,.fc-rtl .fc-h-event .fc-start-resizer{cursor:e-resize;right:-1px}.fc-h-event.fc-allow-mouse-resize .fc-resizer{width:7px;top:-1px;bottom:-1px}.fc-h-event.fc-selected .fc-resizer{border-radius:4px;border-width:1px;width:6px;height:6px;border-style:solid;border-color:inherit;background:#fff;top:50%;margin-top:-4px}.fc-ltr .fc-h-event.fc-selected .fc-start-resizer,.fc-rtl .fc-h-event.fc-selected .fc-end-resizer{margin-left:-4px}.fc-ltr .fc-h-event.fc-selected .fc-end-resizer,.fc-rtl .fc-h-event.fc-selected .fc-start-resizer{margin-right:-4px}.fc-day-grid-event{margin:1px 2px 0;padding:0 1px}tr:first-child>td>.fc-day-grid-event{margin-top:2px}.fc-day-grid-event.fc-selected:after{content:"";position:absolute;z-index:1;top:-1px;right:-1px;bottom:-1px;left:-1px;background:#000;opacity:.25}.fc-day-grid-event .fc-content{white-space:nowrap;overflow:hidden}.fc-day-grid-event .fc-time{font-weight:700}.fc-ltr .fc-day-grid-event.fc-allow-mouse-resize .fc-start-resizer,.fc-rtl .fc-day-grid-event.fc-allow-mouse-resize .fc-end-resizer{margin-left:-2px}.fc-ltr .fc-day-grid-event.fc-allow-mouse-resize .fc-end-resizer,.fc-rtl .fc-day-grid-event.fc-allow-mouse-resize .fc-start-resizer{margin-right:-2px}a.fc-more{margin:1px 3px;font-size:.85em;cursor:pointer;text-decoration:none}a.fc-more:hover{text-decoration:underline}.fc-limited{display:none}.fc-day-grid .fc-row{z-index:1}.fc-more-popover{z-index:2;width:220px}.fc-more-popover .fc-event-container{padding:10px}.fc-now-indicator{position:absolute;border:0 solid red}.fc-unselectable{user-select:none;-webkit-tap-highlight-color:transparent}.fc-toolbar.fc-header-toolbar{margin-bottom:1em}.fc-toolbar.fc-footer-toolbar{margin-top:1em}.fc-toolbar .fc-left{float:left}.fc-toolbar .fc-right{float:right}.fc-toolbar .fc-center{display:inline-block}.fc .fc-toolbar>*>*{float:left;margin-left:.75em}.fc .fc-toolbar>*>:first-child{margin-left:0}.fc-toolbar h2{margin:0}.fc-toolbar button{position:relative}.fc-toolbar .fc-state-hover,.fc-toolbar .ui-state-hover{z-index:2}.fc-toolbar .fc-state-down{z-index:3}.fc-toolbar .fc-state-active,.fc-toolbar .ui-state-active{z-index:4}.fc-toolbar button:focus{z-index:5}.fc-view-container *,.fc-view-container :after,.fc-view-container :before{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.fc-view,.fc-view>table{position:relative;z-index:1}.fc-basicDay-view .fc-content-skeleton,.fc-basicWeek-view .fc-content-skeleton{padding-bottom:1em}.fc-basic-view .fc-body .fc-row{min-height:4em}.fc-row.fc-rigid .fc-content-skeleton{position:absolute;top:0;left:0;right:0}.fc-day-top.fc-other-month{opacity:.3}.fc-basic-view .fc-day-number,.fc-basic-view .fc-week-number{padding:2px}.fc-basic-view th.fc-day-number,.fc-basic-view th.fc-week-number{padding:0 2px}.fc-ltr .fc-basic-view .fc-day-top .fc-day-number{float:right}.fc-rtl .fc-basic-view .fc-day-top .fc-day-number{float:left}.fc-ltr .fc-basic-view .fc-day-top .fc-week-number{float:left;border-radius:0 0 3px}.fc-rtl .fc-basic-view .fc-day-top .fc-week-number{float:right;border-radius:0 0 0 3px}.fc-basic-view .fc-day-top .fc-week-number{min-width:1.5em;text-align:center;background-color:#f2f2f2;color:grey}.fc-basic-view td.fc-week-number>*{display:inline-block;min-width:1.25em}.fc-agenda-view .fc-day-grid{position:relative;z-index:2}.fc-agenda-view .fc-day-grid .fc-row{min-height:3em}.fc-agenda-view .fc-day-grid .fc-row .fc-content-skeleton{padding-bottom:1em}.fc .fc-axis{vertical-align:middle;padding:0 4px;white-space:nowrap}.fc-ltr .fc-axis{text-align:right}.fc-rtl .fc-axis{text-align:left}.ui-widget td.fc-axis{font-weight:400}.fc-time-grid,.fc-time-grid-container{position:relative;z-index:1}.fc-time-grid{min-height:100%}.fc-time-grid table{border:0 hidden transparent}.fc-time-grid>.fc-bg{z-index:1}.fc-time-grid .fc-slats,.fc-time-grid>hr{position:relative;z-index:2}.fc-time-grid .fc-content-col{position:relative}.fc-time-grid .fc-content-skeleton{position:absolute;z-index:3;top:0;left:0;right:0}.fc-time-grid .fc-business-container{position:relative;z-index:1}.fc-time-grid .fc-bgevent-container{position:relative;z-index:2}.fc-time-grid .fc-highlight-container{z-index:3;position:relative}.fc-time-grid .fc-event-container{position:relative;z-index:4}.fc-time-grid .fc-now-indicator-line{z-index:5}.fc-time-grid .fc-helper-container{position:relative;z-index:6}.fc-time-grid .fc-slats td{height:1.5em;border-bottom:0}.fc-time-grid .fc-slats .fc-minor td{border-top-style:dotted}.fc-time-grid .fc-slats .ui-widget-content{background:0 0}.fc-time-grid .fc-highlight{position:absolute;left:0;right:0}.fc-ltr .fc-time-grid .fc-event-container{margin:0 2.5% 0 2px}.fc-rtl .fc-time-grid .fc-event-container{margin:0 2px 0 2.5%}.fc-time-grid .fc-bgevent,.fc-time-grid .fc-event{position:absolute;z-index:1}.fc-time-grid .fc-bgevent{left:0;right:0}.fc-v-event.fc-not-start{border-top-width:0;padding-top:1px;border-top-left-radius:0;border-top-right-radius:0}.fc-v-event.fc-not-end{border-bottom-width:0;padding-bottom:1px;border-bottom-left-radius:0;border-bottom-right-radius:0}.fc-time-grid-event.fc-selected{overflow:visible}.fc-scroller-clip,.fc-time-grid-event .fc-content,.fc-timeline .fc-cell-content,.fc-timeline-event .fc-content,.pika-label,.pika-next,.pika-prev,tr.fc-collapsed>td,tr.fc-transitioning>td{overflow:hidden}.fc-time-grid-event.fc-selected .fc-bg{display:none}.fc-time-grid-event .fc-time,.fc-time-grid-event .fc-title{padding:0 1px}.fc-time-grid-event .fc-time{font-size:.85em;white-space:nowrap}.fc-time-grid-event.fc-short .fc-content{white-space:nowrap}.fc-time-grid-event.fc-short .fc-time,.fc-time-grid-event.fc-short .fc-title{display:inline-block;vertical-align:top}.fc-list-empty,.fc-timeline th{vertical-align:middle}.fc-time-grid-event.fc-short .fc-time span{display:none}.fc-time-grid-event.fc-short .fc-time:before{content:attr(data-start)}.fc-time-grid-event.fc-short .fc-time:after{content:"\000A0-\000A0"}.fc-time-grid-event.fc-short .fc-title{font-size:.85em;padding:0}.fc-time-grid-event.fc-allow-mouse-resize .fc-resizer{left:0;right:0;bottom:0;height:8px;overflow:hidden;line-height:8px;font-size:11px;font-family:monospace;text-align:center;cursor:s-resize}.fc-time-grid-event.fc-allow-mouse-resize .fc-resizer:after{content:"="}.fc-time-grid-event.fc-selected .fc-resizer{border-radius:5px;border-width:1px;width:8px;height:8px;border-style:solid;border-color:inherit;background:#fff;left:50%;margin-left:-5px;bottom:-5px}.fc-time-grid .fc-now-indicator-line{border-top-width:1px;left:0;right:0}.fc-time-grid .fc-now-indicator-arrow{margin-top:-5px}.fc-ltr .fc-time-grid .fc-now-indicator-arrow{left:0;border-width:5px 0 5px 6px;border-top-color:transparent;border-bottom-color:transparent}.fc-rtl .fc-time-grid .fc-now-indicator-arrow{right:0;border-width:5px 6px 5px 0;border-top-color:transparent;border-bottom-color:transparent}.fc-event-dot{display:inline-block;width:10px;height:10px;border-radius:5px}.fc-rtl .fc-list-view{direction:rtl}.fc-list-view{border-width:1px;border-style:solid}.fc .fc-list-table{table-layout:auto}.fc-list-table td{border-width:1px 0 0;padding:8px 14px}.fc-list-table tr:first-child td{border-top-width:0}.fc-list-heading{border-bottom-width:1px}.fc-list-heading td{font-weight:700}.fc-ltr .fc-list-heading-main{float:left}.fc-ltr .fc-list-heading-alt,.fc-rtl .fc-list-heading-main{float:right}.fc-rtl .fc-list-heading-alt{float:left}.fc-list-item.fc-has-url{cursor:pointer}.fc-list-item:hover td{background-color:#f5f5f5}.fc-list-item-marker,.fc-list-item-time{white-space:nowrap;width:1px}.fc-ltr .fc-list-item-marker{padding-right:0}.fc-rtl .fc-list-item-marker{padding-left:0}.fc-resource-area .fc-cell-content,.fc-timeline .fc-cell-text{padding-left:4px;padding-right:4px}.fc-list-item-title a{text-decoration:none;color:inherit}.fc-list-item-title a[href]:hover{text-decoration:underline}.fc-list-empty-wrap2{position:absolute;top:0;left:0;right:0;bottom:0}.fc-list-empty-wrap1{width:100%;height:100%;display:table}.fc-list-empty{display:table-cell;text-align:center}.fc-unthemed .fc-list-empty{background-color:#eee}/*!
+ * FullCalendar Scheduler v1.6.2
+ * Docs & License: https://fullcalendar.io/scheduler/
+ * (c) 2017 Adam Shaw
+ */.fc-scroller-clip{position:relative}.fc-no-scrollbars{background:rgba(255,255,255,0)}.fc-timeline .fc-body .fc-divider.ui-widget-header,.fc-timeline .fc-body .ui-widget-content{background-image:none}.fc-no-scrollbars::-webkit-scrollbar{width:0;height:0}.fc-scroller-canvas{position:relative;box-sizing:border-box;min-height:100%}.fc-scroller-canvas>.fc-bg{z-index:1}.fc-scroller-canvas>.fc-content{z-index:2;position:relative;border-style:solid;border-width:0}.ui-widget .fc-scroller-canvas>.fc-content{border-color:transparent}.fc-scroller-canvas.fc-gutter-left>.fc-content{border-left-width:1px;margin-left:-1px}.fc-scroller-canvas.fc-gutter-right>.fc-content{border-right-width:1px;margin-right:-1px}.fc-scroller-canvas.fc-gutter-top>.fc-content{border-top-width:1px;margin-top:-1px}.fc-rtl .fc-timeline{direction:rtl}.fc-timeline .fc-divider{width:3px;border-style:double}.fc-timeline .fc-head>tr>.fc-divider{border-bottom:0}.fc-timeline .fc-body>tr>.fc-divider{border-top:0}.fc-scrolled .fc-head .fc-scroller{z-index:2}.fc-timeline.fc-scrolled .fc-head .fc-scroller{box-shadow:0 3px 4px rgba(0,0,0,.075)}.fc-timeline .fc-body .fc-scroller{z-index:1}.fc-timeline .fc-scroller-canvas>div>div>table,.fc-timeline .fc-scroller-canvas>div>table{border-style:hidden}.fc-timeline .fc-scroller-canvas>.fc-content>.fc-rows>table{border-bottom-style:none}.fc-timeline td,.fc-timeline th{white-space:nowrap}.fc-timeline .fc-col-resizer{cursor:col-resize}.fc-timeline .fc-head .fc-cell-content{padding-top:3px;padding-bottom:3px}.fc-resource-area{width:30%}.fc-resource-area col{width:40%;min-width:70px}.fc-resource-area col.fc-main-col{width:60%}.fc-flat .fc-expander-space{display:none}.fc-ltr .fc-resource-area tr>*{text-align:left}.fc-rtl .fc-resource-area tr>*{text-align:right}.fc-resource-area .fc-super th{text-align:center}.fc-resource-area th>div{position:relative}.fc-resource-area th .fc-cell-content{position:relative;z-index:1}.fc-resource-area th .fc-col-resizer,.fc-time-area .fc-bgevent,.fc-time-area .fc-highlight,.fc-time-area .fc-slats{position:absolute;top:0;bottom:0}.fc-resource-area th .fc-col-resizer{z-index:2;width:5px}.fc-ltr .fc-resource-area th .fc-col-resizer{right:-3px}.fc-rtl .fc-resource-area th .fc-col-resizer{left:-3px}tr.fc-transitioning>td>div{transition:margin-top .2s}tr.fc-collapsed>td>div{margin-top:-10px}.fc-body .fc-resource-area .fc-cell-content{padding-top:8px;padding-bottom:8px}.fc-no-overlap .fc-body .fc-resource-area .fc-cell-content{padding-top:5px;padding-bottom:5px}.fc-resource-area .fc-icon{width:1em;font-size:.9em;vertical-align:middle;margin-top:-1%}.fc-resource-area .fc-expander{cursor:pointer;color:#666}.fc-time-area col{min-width:2.2em}.fc-ltr .fc-time-area .fc-chrono th{text-align:left}.fc-rtl .fc-time-area .fc-chrono th{text-align:right}.fc-time-area .fc-slats{z-index:1;left:0;right:0}.fc-time-area .fc-slats table{height:100%}.fc-time-area .fc-slats .fc-minor{border-style:dotted}.fc-time-area .fc-slats td{border-width:0 1px}.fc-ltr .fc-time-area .fc-slats td{border-right-width:0}.fc-rtl .fc-time-area .fc-slats td{border-left-width:0}.fc-time-area .fc-bgevent-container,.fc-time-area .fc-highlight-container{position:absolute;z-index:2;top:0;bottom:0;width:0}.fc-ltr .fc-time-area .fc-bgevent-container,.fc-ltr .fc-time-area .fc-helper-container,.fc-ltr .fc-time-area .fc-highlight-container{left:0}.fc-rtl .fc-time-area .fc-bgevent-container,.fc-rtl .fc-time-area .fc-helper-container,.fc-rtl .fc-time-area .fc-highlight-container{right:0}.fc-time-area .fc-rows{position:relative;z-index:3}.fc-time-area .fc-rows .ui-widget-content{background:0 0}.fc-time-area .fc-rows td>div{position:relative}.fc-time-area .fc-rows .fc-bgevent-container,.fc-time-area .fc-rows .fc-highlight-container{z-index:1}.fc-time-area .fc-event-container{position:relative;z-index:2;width:0}.fc-time-area .fc-helper-container{position:absolute;z-index:3;top:0}.fc-time-area .fc-event-container{padding-bottom:8px;top:-1px}.fc-time-area tr:first-child .fc-event-container{top:0}.fc-no-overlap .fc-time-area .fc-event-container{padding-bottom:0;top:0}.fc-timeline .fc-now-indicator{z-index:3;top:0}.fc-time-area .fc-now-indicator-arrow{margin:0 -6px;border-width:6px 5px 0;border-left-color:transparent;border-right-color:transparent}.fc-time-area .fc-now-indicator-line{margin:0 -1px;bottom:0;border-left-width:1px}.fc-timeline-event{position:absolute;border-radius:0;padding:2px 0;margin-bottom:1px}.fc-no-overlap .fc-timeline-event{padding:5px 0;margin-bottom:0}.fc-ltr .fc-timeline-event{margin-right:1px}.fc-rtl .fc-timeline-event{margin-left:1px}.fc-timeline-event .fc-content{padding:0 1px;white-space:nowrap}.fc-timeline-event .fc-time{font-weight:700;padding:0 1px}.fc-rtl .fc-timeline-event .fc-time{display:inline-block}.fc-timeline-event .fc-title{padding:0 1px}.fc-timeline-event.fc-selected .fc-bg{display:none}.fc-ltr .fc-timeline-event .fc-title{padding-left:10px;margin-left:-8px}.fc-rtl .fc-timeline-event .fc-title{padding-right:10px;margin-right:-8px}.fc-ltr .fc-timeline-event.fc-not-start .fc-title{margin-left:-2px}.fc-rtl .fc-timeline-event.fc-not-start .fc-title{margin-right:-2px}.fc-body .fc-time-area .fc-following,.fc-timeline-event.fc-not-start .fc-title{position:relative}.fc-body .fc-time-area .fc-following:before,.fc-timeline-event.fc-not-start .fc-title:before{content:"";position:absolute;top:50%;margin-top:-5px;border:5px solid #000;border-top-color:transparent;border-bottom-color:transparent;opacity:.5}.fc-ltr .fc-body .fc-time-area .fc-following:before,.fc-ltr .fc-timeline-event.fc-not-start .fc-title:before{border-left:0;left:2px}.fc-rtl .fc-body .fc-time-area .fc-following:before,.fc-rtl .fc-timeline-event.fc-not-start .fc-title:before{border-right:0;right:2px}.fc-license-message{position:absolute;z-index:99999;bottom:1px;left:1px;background:#eee;border-color:#ddd;border-style:solid;border-width:1px 1px 0 0;padding:2px 4px;font-size:12px;border-top-right-radius:3px}/*!
+ * Pikaday
+ * Copyright © 2014 David Bushell | BSD & MIT license | http://dbushell.com/
+ */.pika-single{z-index:9999;display:block;position:relative;color:#333;background:#fff;border:1px solid #ccc;border-bottom-color:#bbb;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}.pika-single:after,.pika-single:before{content:" ";display:table}.pika-single.is-hidden{display:none}.pika-single.is-bound{position:absolute;box-shadow:0 5px 15px -5px rgba(0,0,0,.5)}.pika-lendar{float:left;width:240px;margin:8px}.pika-title{position:relative;text-align:center}.pika-label{display:inline-block;position:relative;z-index:9999;margin:0;padding:5px 3px;font-size:14px;line-height:20px;font-weight:700;background-color:#fff}.pika-title select{cursor:pointer;position:absolute;z-index:9998;margin:0;left:0;top:5px;filter:alpha(opacity=0);opacity:0}.pika-next,.pika-prev{display:block;cursor:pointer;position:relative;outline:0;border:0;padding:0;width:20px;height:30px;color:transparent;white-space:nowrap;background-color:transparent;background-position:center center;background-repeat:no-repeat;background-size:75% 75%;opacity:.5}.pika-next:hover,.pika-prev:hover{opacity:1}.is-rtl .pika-next,.pika-prev{float:left;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==)}.is-rtl .pika-prev,.pika-next{float:right;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=)}.pika-next.is-disabled,.pika-prev.is-disabled{cursor:default;opacity:.2}.pika-select{display:inline-block}.pika-table{width:100%;border:0}.pika-table td,.pika-table th{width:14.285714285714286%;padding:0}.pika-table th{color:#999;font-size:12px;line-height:25px;font-weight:700;text-align:center}.pika-button{cursor:pointer;display:block;box-sizing:border-box;-moz-box-sizing:border-box;outline:0;border:0;margin:0;width:100%;padding:5px;color:#666;font-size:12px;line-height:15px;text-align:right;background:#f5f5f5}.pika-week{font-size:11px;color:#999}.is-today .pika-button{color:#3af;font-weight:700}.is-selected .pika-button{color:#fff;font-weight:700;background:#3af;box-shadow:inset 0 1px 3px #178fe5;border-radius:3px}.is-inrange .pika-button{background:#D5E9F7}.is-startrange .pika-button{color:#fff;background:#6CB31D;box-shadow:none;border-radius:3px}.is-endrange .pika-button{color:#fff;background:#3af;box-shadow:none;border-radius:3px}.is-disabled .pika-button,.is-outside-current-month .pika-button{pointer-events:none;cursor:default;color:#999;opacity:.3}.pika-button:hover{color:#fff;background:#ff8000;box-shadow:none;border-radius:3px}.pika-table abbr{border-bottom:none;cursor:help}.pika-time{margin:7px auto}.pika-time .pika-time-label{font-weight:700;font-size:11px;color:#666;padding-right:.33em}@font-face{font-family:octicons;src:url(fonts/octicons.eot?#iefix) format('embedded-opentype'),url(fonts/octicons.woff) format('woff'),url(fonts/octicons.ttf) format('truetype'),url(fonts/octicons.svg#octicons) format('svg');font-weight:400;font-style:normal}.mega-octicon,.octicon{font:normal normal normal 16px/1 octicons;display:inline-block;text-decoration:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mega-octicon{font-size:32px}.octicon-alert:before{content:'\f02d'}.octicon-alignment-align:before{content:'\f08a'}.octicon-alignment-aligned-to:before{content:'\f08e'}.octicon-alignment-unalign:before{content:'\f08b'}.octicon-arrow-down:before{content:'\f03f'}.octicon-arrow-left:before{content:'\f040'}.octicon-arrow-right:before{content:'\f03e'}.octicon-arrow-small-down:before{content:'\f0a0'}.octicon-arrow-small-left:before{content:'\f0a1'}.octicon-arrow-small-right:before{content:'\f071'}.octicon-arrow-small-up:before{content:'\f09f'}.octicon-arrow-up:before{content:'\f03d'}.octicon-beer:before{content:'\f069'}.octicon-book:before{content:'\f007'}.octicon-bookmark:before{content:'\f07b'}.octicon-briefcase:before{content:'\f0d3'}.octicon-broadcast:before{content:'\f048'}.octicon-browser:before{content:'\f0c5'}.octicon-bug:before{content:'\f091'}.octicon-calendar:before{content:'\f068'}.octicon-check:before{content:'\f03a'}.octicon-checklist:before{content:'\f076'}.octicon-chevron-down:before{content:'\f0a3'}.octicon-chevron-left:before{content:'\f0a4'}.octicon-chevron-right:before{content:'\f078'}.octicon-chevron-up:before{content:'\f0a2'}.octicon-circle-slash:before{content:'\f084'}.octicon-circuit-board:before{content:'\f0d6'}.octicon-clippy:before{content:'\f035'}.octicon-clock:before{content:'\f046'}.octicon-cloud-download:before{content:'\f00b'}.octicon-cloud-upload:before{content:'\f00c'}.octicon-code:before{content:'\f05f'}.octicon-color-mode:before{content:'\f065'}.octicon-comment-add:before,.octicon-comment:before{content:'\f02b'}.octicon-comment-discussion:before{content:'\f04f'}.octicon-credit-card:before{content:'\f045'}.octicon-dash:before{content:'\f0ca'}.octicon-dashboard:before{content:'\f07d'}.octicon-database:before{content:'\f096'}.octicon-device-camera:before{content:'\f056'}.octicon-device-camera-video:before{content:'\f057'}.octicon-device-desktop:before{content:'\f27c'}.octicon-device-mobile:before{content:'\f038'}.octicon-diff:before{content:'\f04d'}.octicon-diff-added:before{content:'\f06b'}.octicon-diff-ignored:before{content:'\f099'}.octicon-diff-modified:before{content:'\f06d'}.octicon-diff-removed:before{content:'\f06c'}.octicon-diff-renamed:before{content:'\f06e'}.octicon-ellipsis:before{content:'\f09a'}.octicon-eye-unwatch:before,.octicon-eye-watch:before,.octicon-eye:before{content:'\f04e'}.octicon-file-binary:before{content:'\f094'}.octicon-file-code:before{content:'\f010'}.octicon-file-directory:before{content:'\f016'}.octicon-file-media:before{content:'\f012'}.octicon-file-pdf:before{content:'\f014'}.octicon-file-submodule:before{content:'\f017'}.octicon-file-symlink-directory:before{content:'\f0b1'}.octicon-file-symlink-file:before{content:'\f0b0'}.octicon-file-text:before{content:'\f011'}.octicon-file-zip:before{content:'\f013'}.octicon-flame:before{content:'\f0d2'}.octicon-fold:before{content:'\f0cc'}.octicon-gear:before{content:'\f02f'}.octicon-gift:before{content:'\f042'}.octicon-gist:before{content:'\f00e'}.octicon-gist-secret:before{content:'\f08c'}.octicon-git-branch-create:before,.octicon-git-branch-delete:before,.octicon-git-branch:before{content:'\f020'}.octicon-git-commit:before{content:'\f01f'}.octicon-git-compare:before{content:'\f0ac'}.octicon-git-merge:before{content:'\f023'}.octicon-git-pull-request-abandoned:before,.octicon-git-pull-request:before{content:'\f009'}.octicon-globe:before{content:'\f0b6'}.octicon-graph:before{content:'\f043'}.octicon-heart:before{content:'\2665'}.octicon-history:before{content:'\f07e'}.octicon-home:before{content:'\f08d'}.octicon-horizontal-rule:before{content:'\f070'}.octicon-hourglass:before{content:'\f09e'}.octicon-hubot:before{content:'\f09d'}.octicon-inbox:before{content:'\f0cf'}.octicon-info:before{content:'\f059'}.octicon-issue-closed:before{content:'\f028'}.octicon-issue-opened:before{content:'\f026'}.octicon-issue-reopened:before{content:'\f027'}.octicon-jersey:before{content:'\f019'}.octicon-jump-down:before{content:'\f072'}.octicon-jump-left:before{content:'\f0a5'}.octicon-jump-right:before{content:'\f0a6'}.octicon-jump-up:before{content:'\f073'}.octicon-key:before{content:'\f049'}.octicon-keyboard:before{content:'\f00d'}.octicon-law:before{content:'\f0d8'}.octicon-light-bulb:before{content:'\f000'}.octicon-link:before{content:'\f05c'}.octicon-link-external:before{content:'\f07f'}.octicon-list-ordered:before{content:'\f062'}.octicon-list-unordered:before{content:'\f061'}.octicon-location:before{content:'\f060'}.octicon-gist-private:before,.octicon-git-fork-private:before,.octicon-lock:before,.octicon-mirror-private:before{content:'\f06a'}.octicon-logo-github:before{content:'\f092'}.octicon-mail:before{content:'\f03b'}.octicon-mail-read:before{content:'\f03c'}.octicon-mail-reply:before{content:'\f051'}.octicon-mark-github:before{content:'\f00a'}.octicon-markdown:before{content:'\f0c9'}.octicon-megaphone:before{content:'\f077'}.octicon-mention:before{content:'\f0be'}.octicon-microscope:before{content:'\f089'}.octicon-milestone:before{content:'\f075'}.octicon-mirror-public:before,.octicon-mirror:before{content:'\f024'}.octicon-mortar-board:before{content:'\f0d7'}.octicon-move-down:before{content:'\f0a8'}.octicon-move-left:before{content:'\f074'}.octicon-move-right:before{content:'\f0a9'}.octicon-move-up:before{content:'\f0a7'}.octicon-mute:before{content:'\f080'}.octicon-no-newline:before{content:'\f09c'}.octicon-octoface:before{content:'\f008'}.octicon-organization:before{content:'\f037'}.octicon-package:before{content:'\f0c4'}.octicon-paintcan:before{content:'\f0d1'}.octicon-pencil:before{content:'\f058'}.octicon-person-add:before,.octicon-person-follow:before,.octicon-person:before{content:'\f018'}.octicon-pin:before{content:'\f041'}.octicon-playback-fast-forward:before{content:'\f0bd'}.octicon-playback-pause:before{content:'\f0bb'}.octicon-playback-play:before{content:'\f0bf'}.octicon-playback-rewind:before{content:'\f0bc'}.octicon-plug:before{content:'\f0d4'}.octicon-file-add:before,.octicon-file-directory-create:before,.octicon-gist-new:before,.octicon-plus:before,.octicon-repo-create:before{content:'\f05d'}.octicon-podium:before{content:'\f0af'}.octicon-primitive-dot:before{content:'\f052'}.octicon-primitive-square:before{content:'\f053'}.octicon-pulse:before{content:'\f085'}.octicon-puzzle:before{content:'\f0c0'}.octicon-question:before{content:'\f02c'}.octicon-quote:before{content:'\f063'}.octicon-radio-tower:before{content:'\f030'}.octicon-repo-delete:before,.octicon-repo:before{content:'\f001'}.octicon-repo-clone:before{content:'\f04c'}.octicon-repo-force-push:before{content:'\f04a'}.octicon-gist-fork:before,.octicon-repo-forked:before{content:'\f002'}.octicon-repo-pull:before{content:'\f006'}.octicon-repo-push:before{content:'\f005'}.octicon-rocket:before{content:'\f033'}.octicon-rss:before{content:'\f034'}.octicon-ruby:before{content:'\f047'}.octicon-screen-full:before{content:'\f066'}.octicon-screen-normal:before{content:'\f067'}.octicon-search-save:before,.octicon-search:before{content:'\f02e'}.octicon-server:before{content:'\f097'}.octicon-settings:before{content:'\f07c'}.octicon-log-in:before,.octicon-sign-in:before{content:'\f036'}.octicon-log-out:before,.octicon-sign-out:before{content:'\f032'}.octicon-split:before{content:'\f0c6'}.octicon-squirrel:before{content:'\f0b2'}.octicon-star-add:before,.octicon-star-delete:before,.octicon-star:before{content:'\f02a'}.octicon-steps:before{content:'\f0c7'}.octicon-stop:before{content:'\f08f'}.octicon-repo-sync:before,.octicon-sync:before{content:'\f087'}.octicon-tag-add:before,.octicon-tag-remove:before,.octicon-tag:before{content:'\f015'}.octicon-telescope:before{content:'\f088'}.octicon-terminal:before{content:'\f0c8'}.octicon-three-bars:before{content:'\f05e'}.octicon-tools:before{content:'\f031'}.octicon-trashcan:before{content:'\f0d0'}.octicon-triangle-down:before{content:'\f05b'}.octicon-triangle-left:before{content:'\f044'}.octicon-triangle-right:before{content:'\f05a'}.octicon-triangle-up:before{content:'\f0aa'}.octicon-unfold:before{content:'\f039'}.octicon-unmute:before{content:'\f0ba'}.octicon-versions:before{content:'\f064'}.octicon-remove-close:before,.octicon-x:before{content:'\f081'}.octicon-zap:before{content:'\26A1'}
\ No newline at end of file
diff --git a/prod/assets/vendor-93a07fe6db5c5948b7b281494a57349d.css b/prod/assets/vendor-93a07fe6db5c5948b7b281494a57349d.css
deleted file mode 100644
index 7741822def..0000000000
--- a/prod/assets/vendor-93a07fe6db5c5948b7b281494a57349d.css
+++ /dev/null
@@ -1,12 +0,0 @@
-@charset "UTF-8";/*!
- * FullCalendar v3.2.0 Stylesheet
- * Docs & License: https://fullcalendar.io/
- * (c) 2017 Adam Shaw
- */.fc-icon,body .fc{font-size:1em}.fc-button-group,.fc-icon{display:inline-block}.fc-bg,.fc-row .fc-bgevent-skeleton,.fc-row .fc-highlight-skeleton{bottom:0}.fc-icon,.fc-unselectable{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-touch-callout:none}.fc table,.pika-table{border-collapse:collapse;border-spacing:0}.fc-clear,.pika-single:after,.pika-time-container{clear:both}.fc{direction:ltr;text-align:left}.fc-rtl{text-align:right}.fc th,.fc-basic-view td.fc-week-number,.fc-icon,.fc-toolbar{text-align:center}.fc-unthemed .fc-content,.fc-unthemed .fc-divider,.fc-unthemed .fc-list-heading td,.fc-unthemed .fc-list-view,.fc-unthemed .fc-popover,.fc-unthemed .fc-row,.fc-unthemed tbody,.fc-unthemed td,.fc-unthemed th,.fc-unthemed thead{border-color:#ddd}.fc-unthemed .fc-popover{background-color:#fff}.fc-unthemed .fc-divider,.fc-unthemed .fc-list-heading td,.fc-unthemed .fc-popover .fc-header{background:#eee}.fc-unthemed .fc-popover .fc-header .fc-close{color:#666}.fc-unthemed td.fc-today{background:#fcf8e3}.fc-highlight{background:#bce8f1;opacity:.3}.fc-bgevent{background:#8fdf82;opacity:.3}.fc-nonbusiness{background:#d7d7d7}.fc-icon{height:1em;line-height:1em;overflow:hidden;font-family:"Courier New",Courier,monospace;user-select:none}.fc-icon:after{position:relative}.fc-icon-left-single-arrow:after{content:"\02039";font-weight:700;font-size:200%;top:-7%}.fc-icon-right-single-arrow:after{content:"\0203A";font-weight:700;font-size:200%;top:-7%}.fc-icon-left-double-arrow:after{content:"\000AB";font-size:160%;top:-7%}.fc-icon-right-double-arrow:after{content:"\000BB";font-size:160%;top:-7%}.fc-icon-left-triangle:after{content:"\25C4";font-size:125%;top:3%}.fc-icon-right-triangle:after{content:"\25BA";font-size:125%;top:3%}.fc-icon-down-triangle:after{content:"\25BC";font-size:125%;top:2%}.fc-icon-x:after{content:"\000D7";font-size:200%;top:6%}.fc button{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;height:2.1em;padding:0 .6em;font-size:1em;white-space:nowrap;cursor:pointer}.fc button::-moz-focus-inner{margin:0;padding:0}.fc-state-default{border:1px solid;background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);color:#333;text-shadow:0 1px 1px rgba(255,255,255,.75);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.fc-state-default.fc-corner-left{border-top-left-radius:4px;border-bottom-left-radius:4px}.fc-state-default.fc-corner-right{border-top-right-radius:4px;border-bottom-right-radius:4px}.fc button .fc-icon{position:relative;top:-.05em;margin:0 .2em;vertical-align:middle}.fc-state-active,.fc-state-disabled,.fc-state-down,.fc-state-hover{color:#333;background-color:#e6e6e6}.fc-state-hover{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.fc-state-active,.fc-state-down{background-color:#ccc;background-image:none;box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.fc-state-disabled{cursor:default;background-image:none;opacity:.65;box-shadow:none}.fc-event.fc-draggable,.fc-event[href],.fc-popover .fc-header .fc-close,a[data-goto]{cursor:pointer}.fc .fc-button-group>*{float:left;margin:0 0 0 -1px}.fc .fc-button-group>:first-child{margin-left:0}.fc-popover{position:absolute;box-shadow:0 2px 6px rgba(0,0,0,.15)}.fc-popover .fc-header{padding:2px 4px}.fc-popover .fc-header .fc-title{margin:0 2px}.fc-ltr .fc-popover .fc-header .fc-title,.fc-rtl .fc-popover .fc-header .fc-close{float:left}.fc-ltr .fc-popover .fc-header .fc-close,.fc-rtl .fc-popover .fc-header .fc-title{float:right}.fc-unthemed .fc-popover{border-width:1px;border-style:solid}.fc-unthemed .fc-popover .fc-header .fc-close{font-size:.9em;margin-top:2px}.fc-popover>.ui-widget-header+.ui-widget-content{border-top:0}.fc-divider{border-style:solid;border-width:1px}hr.fc-divider{height:0;margin:0;padding:0 0 2px;border-width:1px 0}.fc-bg table,.fc-row .fc-bgevent-skeleton table,.fc-row .fc-highlight-skeleton table{height:100%}.fc-bg,.fc-bgevent-skeleton,.fc-helper-skeleton,.fc-highlight-skeleton{position:absolute;top:0;left:0;right:0}.fc table{width:100%;box-sizing:border-box;table-layout:fixed;font-size:1em}.fc td,.fc th{border-style:solid;border-width:1px;padding:0;vertical-align:top}.fc td.fc-today{border-style:double}a[data-goto]:hover{text-decoration:underline}.fc .fc-row{border-style:solid;border-width:0}.fc-row table{border-left:0 hidden transparent;border-right:0 hidden transparent;border-bottom:0 hidden transparent}.fc-row:first-child table{border-top:0 hidden transparent}.fc-row{position:relative}.fc-row .fc-bg{z-index:1}.fc-row .fc-bgevent-skeleton td,.fc-row .fc-highlight-skeleton td{border-color:transparent}.fc-row .fc-bgevent-skeleton{z-index:2}.fc-row .fc-highlight-skeleton{z-index:3}.fc-row .fc-content-skeleton{position:relative;z-index:4;padding-bottom:2px}.fc-row .fc-helper-skeleton{z-index:5}.fc-row .fc-content-skeleton td,.fc-row .fc-helper-skeleton td{background:0 0;border-color:transparent;border-bottom:0}.fc-row .fc-content-skeleton tbody td,.fc-row .fc-helper-skeleton tbody td{border-top:0}.fc-scroller{-webkit-overflow-scrolling:touch}.fc-row.fc-rigid,.fc-time-grid-event{overflow:hidden}.fc-scroller>.fc-day-grid,.fc-scroller>.fc-time-grid{position:relative;width:100%}.fc-event{position:relative;display:block;font-size:.85em;line-height:1.3;border-radius:3px;border:1px solid #3a87ad;font-weight:400}.fc-event,.fc-event-dot{background-color:#3a87ad}.fc-event,.fc-event:hover,.ui-widget .fc-event{color:#fff;text-decoration:none}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc-event .fc-bg{z-index:1;background:#fff;opacity:.25}.fc-event .fc-content{position:relative;z-index:2}.fc-event .fc-resizer{position:absolute;z-index:4;display:none}.fc-event.fc-allow-mouse-resize .fc-resizer,.fc-event.fc-selected .fc-resizer{display:block}.fc-event.fc-selected .fc-resizer:before{content:"";position:absolute;z-index:9999;top:50%;left:50%;width:40px;height:40px;margin-left:-20px;margin-top:-20px}.fc-event.fc-selected{z-index:9999!important;box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event.fc-selected.fc-dragging{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-h-event.fc-selected:before{content:"";position:absolute;z-index:3;top:-10px;bottom:-10px;left:0;right:0}.fc-ltr .fc-h-event.fc-not-start,.fc-rtl .fc-h-event.fc-not-end{margin-left:0;border-left-width:0;padding-left:1px;border-top-left-radius:0;border-bottom-left-radius:0}.fc-ltr .fc-h-event.fc-not-end,.fc-rtl .fc-h-event.fc-not-start{margin-right:0;border-right-width:0;padding-right:1px;border-top-right-radius:0;border-bottom-right-radius:0}.fc-ltr .fc-h-event .fc-start-resizer,.fc-rtl .fc-h-event .fc-end-resizer{cursor:w-resize;left:-1px}.fc-ltr .fc-h-event .fc-end-resizer,.fc-rtl .fc-h-event .fc-start-resizer{cursor:e-resize;right:-1px}.fc-h-event.fc-allow-mouse-resize .fc-resizer{width:7px;top:-1px;bottom:-1px}.fc-h-event.fc-selected .fc-resizer{border-radius:4px;border-width:1px;width:6px;height:6px;border-style:solid;border-color:inherit;background:#fff;top:50%;margin-top:-4px}.fc-ltr .fc-h-event.fc-selected .fc-start-resizer,.fc-rtl .fc-h-event.fc-selected .fc-end-resizer{margin-left:-4px}.fc-ltr .fc-h-event.fc-selected .fc-end-resizer,.fc-rtl .fc-h-event.fc-selected .fc-start-resizer{margin-right:-4px}.fc-day-grid-event{margin:1px 2px 0;padding:0 1px}tr:first-child>td>.fc-day-grid-event{margin-top:2px}.fc-day-grid-event.fc-selected:after{content:"";position:absolute;z-index:1;top:-1px;right:-1px;bottom:-1px;left:-1px;background:#000;opacity:.25}.fc-day-grid-event .fc-content{white-space:nowrap;overflow:hidden}.fc-day-grid-event .fc-time{font-weight:700}.fc-ltr .fc-day-grid-event.fc-allow-mouse-resize .fc-start-resizer,.fc-rtl .fc-day-grid-event.fc-allow-mouse-resize .fc-end-resizer{margin-left:-2px}.fc-ltr .fc-day-grid-event.fc-allow-mouse-resize .fc-end-resizer,.fc-rtl .fc-day-grid-event.fc-allow-mouse-resize .fc-start-resizer{margin-right:-2px}a.fc-more{margin:1px 3px;font-size:.85em;cursor:pointer;text-decoration:none}a.fc-more:hover{text-decoration:underline}.fc-limited{display:none}.fc-day-grid .fc-row{z-index:1}.fc-more-popover{z-index:2;width:220px}.fc-more-popover .fc-event-container{padding:10px}.fc-now-indicator{position:absolute;border:0 solid red}.fc-unselectable{user-select:none;-webkit-tap-highlight-color:transparent}.fc-toolbar.fc-header-toolbar{margin-bottom:1em}.fc-toolbar.fc-footer-toolbar{margin-top:1em}.fc-toolbar .fc-left{float:left}.fc-toolbar .fc-right{float:right}.fc-toolbar .fc-center{display:inline-block}.fc .fc-toolbar>*>*{float:left;margin-left:.75em}.fc .fc-toolbar>*>:first-child{margin-left:0}.fc-toolbar h2{margin:0}.fc-toolbar button{position:relative}.fc-toolbar .fc-state-hover,.fc-toolbar .ui-state-hover{z-index:2}.fc-toolbar .fc-state-down{z-index:3}.fc-toolbar .fc-state-active,.fc-toolbar .ui-state-active{z-index:4}.fc-toolbar button:focus{z-index:5}.fc-view-container *,.fc-view-container :after,.fc-view-container :before{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.fc-view,.fc-view>table{position:relative;z-index:1}.fc-basicDay-view .fc-content-skeleton,.fc-basicWeek-view .fc-content-skeleton{padding-bottom:1em}.fc-basic-view .fc-body .fc-row{min-height:4em}.fc-row.fc-rigid .fc-content-skeleton{position:absolute;top:0;left:0;right:0}.fc-day-top.fc-other-month{opacity:.3}.fc-basic-view .fc-day-number,.fc-basic-view .fc-week-number{padding:2px}.fc-basic-view th.fc-day-number,.fc-basic-view th.fc-week-number{padding:0 2px}.fc-ltr .fc-basic-view .fc-day-top .fc-day-number{float:right}.fc-rtl .fc-basic-view .fc-day-top .fc-day-number{float:left}.fc-ltr .fc-basic-view .fc-day-top .fc-week-number{float:left;border-radius:0 0 3px}.fc-rtl .fc-basic-view .fc-day-top .fc-week-number{float:right;border-radius:0 0 0 3px}.fc-basic-view .fc-day-top .fc-week-number{min-width:1.5em;text-align:center;background-color:#f2f2f2;color:grey}.fc-basic-view td.fc-week-number>*{display:inline-block;min-width:1.25em}.fc-agenda-view .fc-day-grid{position:relative;z-index:2}.fc-agenda-view .fc-day-grid .fc-row{min-height:3em}.fc-agenda-view .fc-day-grid .fc-row .fc-content-skeleton{padding-bottom:1em}.fc .fc-axis{vertical-align:middle;padding:0 4px;white-space:nowrap}.fc-ltr .fc-axis{text-align:right}.fc-rtl .fc-axis{text-align:left}.ui-widget td.fc-axis{font-weight:400}.fc-time-grid,.fc-time-grid-container{position:relative;z-index:1}.fc-time-grid{min-height:100%}.fc-time-grid table{border:0 hidden transparent}.fc-time-grid>.fc-bg{z-index:1}.fc-time-grid .fc-slats,.fc-time-grid>hr{position:relative;z-index:2}.fc-time-grid .fc-content-col{position:relative}.fc-time-grid .fc-content-skeleton{position:absolute;z-index:3;top:0;left:0;right:0}.fc-time-grid .fc-business-container{position:relative;z-index:1}.fc-time-grid .fc-bgevent-container{position:relative;z-index:2}.fc-time-grid .fc-highlight-container{z-index:3;position:relative}.fc-time-grid .fc-event-container{position:relative;z-index:4}.fc-time-grid .fc-now-indicator-line{z-index:5}.fc-time-grid .fc-helper-container{position:relative;z-index:6}.fc-time-grid .fc-slats td{height:1.5em;border-bottom:0}.fc-time-grid .fc-slats .fc-minor td{border-top-style:dotted}.fc-time-grid .fc-slats .ui-widget-content{background:0 0}.fc-time-grid .fc-highlight{position:absolute;left:0;right:0}.fc-ltr .fc-time-grid .fc-event-container{margin:0 2.5% 0 2px}.fc-rtl .fc-time-grid .fc-event-container{margin:0 2px 0 2.5%}.fc-time-grid .fc-bgevent,.fc-time-grid .fc-event{position:absolute;z-index:1}.fc-time-grid .fc-bgevent{left:0;right:0}.fc-v-event.fc-not-start{border-top-width:0;padding-top:1px;border-top-left-radius:0;border-top-right-radius:0}.fc-v-event.fc-not-end{border-bottom-width:0;padding-bottom:1px;border-bottom-left-radius:0;border-bottom-right-radius:0}.fc-time-grid-event.fc-selected{overflow:visible}.fc-scroller-clip,.fc-time-grid-event .fc-content,.fc-timeline .fc-cell-content,.fc-timeline-event .fc-content,.pika-label,.pika-next,.pika-prev,tr.fc-collapsed>td,tr.fc-transitioning>td{overflow:hidden}.fc-time-grid-event.fc-selected .fc-bg{display:none}.fc-time-grid-event .fc-time,.fc-time-grid-event .fc-title{padding:0 1px}.fc-time-grid-event .fc-time{font-size:.85em;white-space:nowrap}.fc-time-grid-event.fc-short .fc-content{white-space:nowrap}.fc-time-grid-event.fc-short .fc-time,.fc-time-grid-event.fc-short .fc-title{display:inline-block;vertical-align:top}.fc-list-empty,.fc-timeline th{vertical-align:middle}.fc-time-grid-event.fc-short .fc-time span{display:none}.fc-time-grid-event.fc-short .fc-time:before{content:attr(data-start)}.fc-time-grid-event.fc-short .fc-time:after{content:"\000A0-\000A0"}.fc-time-grid-event.fc-short .fc-title{font-size:.85em;padding:0}.fc-time-grid-event.fc-allow-mouse-resize .fc-resizer{left:0;right:0;bottom:0;height:8px;overflow:hidden;line-height:8px;font-size:11px;font-family:monospace;text-align:center;cursor:s-resize}.fc-time-grid-event.fc-allow-mouse-resize .fc-resizer:after{content:"="}.fc-time-grid-event.fc-selected .fc-resizer{border-radius:5px;border-width:1px;width:8px;height:8px;border-style:solid;border-color:inherit;background:#fff;left:50%;margin-left:-5px;bottom:-5px}.fc-time-grid .fc-now-indicator-line{border-top-width:1px;left:0;right:0}.fc-time-grid .fc-now-indicator-arrow{margin-top:-5px}.fc-ltr .fc-time-grid .fc-now-indicator-arrow{left:0;border-width:5px 0 5px 6px;border-top-color:transparent;border-bottom-color:transparent}.fc-rtl .fc-time-grid .fc-now-indicator-arrow{right:0;border-width:5px 6px 5px 0;border-top-color:transparent;border-bottom-color:transparent}.fc-event-dot{display:inline-block;width:10px;height:10px;border-radius:5px}.fc-rtl .fc-list-view{direction:rtl}.fc-list-view{border-width:1px;border-style:solid}.fc .fc-list-table{table-layout:auto}.fc-list-table td{border-width:1px 0 0;padding:8px 14px}.fc-list-table tr:first-child td{border-top-width:0}.fc-list-heading{border-bottom-width:1px}.fc-list-heading td{font-weight:700}.fc-ltr .fc-list-heading-main{float:left}.fc-ltr .fc-list-heading-alt,.fc-rtl .fc-list-heading-main{float:right}.fc-rtl .fc-list-heading-alt{float:left}.fc-list-item.fc-has-url{cursor:pointer}.fc-list-item:hover td{background-color:#f5f5f5}.fc-list-item-marker,.fc-list-item-time{white-space:nowrap;width:1px}.fc-ltr .fc-list-item-marker{padding-right:0}.fc-rtl .fc-list-item-marker{padding-left:0}.fc-resource-area .fc-cell-content,.fc-timeline .fc-cell-text{padding-left:4px;padding-right:4px}.fc-list-item-title a{text-decoration:none;color:inherit}.fc-list-item-title a[href]:hover{text-decoration:underline}.fc-list-empty-wrap2{position:absolute;top:0;left:0;right:0;bottom:0}.fc-list-empty-wrap1{width:100%;height:100%;display:table}.fc-list-empty{display:table-cell;text-align:center}.fc-unthemed .fc-list-empty{background-color:#eee}/*!
- * FullCalendar Scheduler v1.5.1
- * Docs & License: https://fullcalendar.io/scheduler/
- * (c) 2017 Adam Shaw
- */.fc-scroller-clip{position:relative}.fc-no-scrollbars{background:rgba(255,255,255,0)}.fc-timeline .fc-body .fc-divider.ui-widget-header,.fc-timeline .fc-body .ui-widget-content{background-image:none}.fc-no-scrollbars::-webkit-scrollbar{width:0;height:0}.fc-scroller-canvas{position:relative;box-sizing:border-box;min-height:100%}.fc-scroller-canvas>.fc-bg{z-index:1}.fc-scroller-canvas>.fc-content{z-index:2;position:relative;border-style:solid;border-width:0}.ui-widget .fc-scroller-canvas>.fc-content{border-color:transparent}.fc-scroller-canvas.fc-gutter-left>.fc-content{border-left-width:1px;margin-left:-1px}.fc-scroller-canvas.fc-gutter-right>.fc-content{border-right-width:1px;margin-right:-1px}.fc-scroller-canvas.fc-gutter-top>.fc-content{border-top-width:1px;margin-top:-1px}.fc-rtl .fc-timeline{direction:rtl}.fc-timeline .fc-divider{width:3px;border-style:double}.fc-timeline .fc-head>tr>.fc-divider{border-bottom:0}.fc-timeline .fc-body>tr>.fc-divider{border-top:0}.fc-scrolled .fc-head .fc-scroller{z-index:2}.fc-timeline.fc-scrolled .fc-head .fc-scroller{box-shadow:0 3px 4px rgba(0,0,0,.075)}.fc-timeline .fc-body .fc-scroller{z-index:1}.fc-timeline .fc-scroller-canvas>div>div>table,.fc-timeline .fc-scroller-canvas>div>table{border-style:hidden}.fc-timeline .fc-scroller-canvas>.fc-content>.fc-rows>table{border-bottom-style:none}.fc-timeline td,.fc-timeline th{white-space:nowrap}.fc-timeline .fc-col-resizer{cursor:col-resize}.fc-timeline .fc-head .fc-cell-content{padding-top:3px;padding-bottom:3px}.fc-resource-area{width:30%}.fc-resource-area col{width:40%;min-width:70px}.fc-resource-area col.fc-main-col{width:60%}.fc-flat .fc-expander-space{display:none}.fc-ltr .fc-resource-area tr>*{text-align:left}.fc-rtl .fc-resource-area tr>*{text-align:right}.fc-resource-area .fc-super th{text-align:center}.fc-resource-area th>div{position:relative}.fc-resource-area th .fc-cell-content{position:relative;z-index:1}.fc-resource-area th .fc-col-resizer,.fc-time-area .fc-bgevent,.fc-time-area .fc-highlight,.fc-time-area .fc-slats{position:absolute;top:0;bottom:0}.fc-resource-area th .fc-col-resizer{z-index:2;width:5px}.fc-ltr .fc-resource-area th .fc-col-resizer{right:-3px}.fc-rtl .fc-resource-area th .fc-col-resizer{left:-3px}tr.fc-transitioning>td>div{transition:margin-top .2s}tr.fc-collapsed>td>div{margin-top:-10px}.fc-body .fc-resource-area .fc-cell-content{padding-top:8px;padding-bottom:8px}.fc-no-overlap .fc-body .fc-resource-area .fc-cell-content{padding-top:5px;padding-bottom:5px}.fc-resource-area .fc-icon{width:1em;font-size:.9em;vertical-align:middle;margin-top:-1%}.fc-resource-area .fc-expander{cursor:pointer;color:#666}.fc-time-area col{min-width:2.2em}.fc-ltr .fc-time-area .fc-chrono th{text-align:left}.fc-rtl .fc-time-area .fc-chrono th{text-align:right}.fc-time-area .fc-slats{z-index:1;left:0;right:0}.fc-time-area .fc-slats table{height:100%}.fc-time-area .fc-slats .fc-minor{border-style:dotted}.fc-time-area .fc-slats td{border-width:0 1px}.fc-ltr .fc-time-area .fc-slats td{border-right-width:0}.fc-rtl .fc-time-area .fc-slats td{border-left-width:0}.fc-time-area .fc-bgevent-container,.fc-time-area .fc-highlight-container{position:absolute;z-index:2;top:0;bottom:0;width:0}.fc-ltr .fc-time-area .fc-bgevent-container,.fc-ltr .fc-time-area .fc-helper-container,.fc-ltr .fc-time-area .fc-highlight-container{left:0}.fc-rtl .fc-time-area .fc-bgevent-container,.fc-rtl .fc-time-area .fc-helper-container,.fc-rtl .fc-time-area .fc-highlight-container{right:0}.fc-time-area .fc-rows{position:relative;z-index:3}.fc-time-area .fc-rows .ui-widget-content{background:0 0}.fc-time-area .fc-rows td>div{position:relative}.fc-time-area .fc-rows .fc-bgevent-container,.fc-time-area .fc-rows .fc-highlight-container{z-index:1}.fc-time-area .fc-event-container{position:relative;z-index:2;width:0}.fc-time-area .fc-helper-container{position:absolute;z-index:3;top:0}.fc-time-area .fc-event-container{padding-bottom:8px;top:-1px}.fc-time-area tr:first-child .fc-event-container{top:0}.fc-no-overlap .fc-time-area .fc-event-container{padding-bottom:0;top:0}.fc-timeline .fc-now-indicator{z-index:3;top:0}.fc-time-area .fc-now-indicator-arrow{margin:0 -6px;border-width:6px 5px 0;border-left-color:transparent;border-right-color:transparent}.fc-time-area .fc-now-indicator-line{margin:0 -1px;bottom:0;border-left-width:1px}.fc-timeline-event{position:absolute;border-radius:0;padding:2px 0;margin-bottom:1px}.fc-no-overlap .fc-timeline-event{padding:5px 0;margin-bottom:0}.fc-ltr .fc-timeline-event{margin-right:1px}.fc-rtl .fc-timeline-event{margin-left:1px}.fc-timeline-event .fc-content{padding:0 1px;white-space:nowrap}.fc-timeline-event .fc-time{font-weight:700;padding:0 1px}.fc-rtl .fc-timeline-event .fc-time{display:inline-block}.fc-timeline-event .fc-title{padding:0 1px}.fc-timeline-event.fc-selected .fc-bg{display:none}.fc-ltr .fc-timeline-event .fc-title{padding-left:10px;margin-left:-8px}.fc-rtl .fc-timeline-event .fc-title{padding-right:10px;margin-right:-8px}.fc-ltr .fc-timeline-event.fc-not-start .fc-title{margin-left:-2px}.fc-rtl .fc-timeline-event.fc-not-start .fc-title{margin-right:-2px}.fc-body .fc-time-area .fc-following,.fc-timeline-event.fc-not-start .fc-title{position:relative}.fc-body .fc-time-area .fc-following:before,.fc-timeline-event.fc-not-start .fc-title:before{content:"";position:absolute;top:50%;margin-top:-5px;border:5px solid #000;border-top-color:transparent;border-bottom-color:transparent;opacity:.5}.fc-ltr .fc-body .fc-time-area .fc-following:before,.fc-ltr .fc-timeline-event.fc-not-start .fc-title:before{border-left:0;left:2px}.fc-rtl .fc-body .fc-time-area .fc-following:before,.fc-rtl .fc-timeline-event.fc-not-start .fc-title:before{border-right:0;right:2px}.fc-license-message{position:absolute;z-index:99999;bottom:1px;left:1px;background:#eee;border-color:#ddd;border-style:solid;border-width:1px 1px 0 0;padding:2px 4px;font-size:12px;border-top-right-radius:3px}/*!
- * Pikaday
- * Copyright © 2014 David Bushell | BSD & MIT license | http://dbushell.com/
- */.pika-single{z-index:9999;display:block;position:relative;color:#333;background:#fff;border:1px solid #ccc;border-bottom-color:#bbb;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}.pika-single:after,.pika-single:before{content:" ";display:table}.pika-single.is-hidden{display:none}.pika-single.is-bound{position:absolute;box-shadow:0 5px 15px -5px rgba(0,0,0,.5)}.pika-lendar{float:left;width:240px;margin:8px}.pika-title{position:relative;text-align:center}.pika-label{display:inline-block;position:relative;z-index:9999;margin:0;padding:5px 3px;font-size:14px;line-height:20px;font-weight:700;background-color:#fff}.pika-title select{cursor:pointer;position:absolute;z-index:9998;margin:0;left:0;top:5px;filter:alpha(opacity=0);opacity:0}.pika-next,.pika-prev{display:block;cursor:pointer;position:relative;outline:0;border:0;padding:0;width:20px;height:30px;color:transparent;white-space:nowrap;background-color:transparent;background-position:center center;background-repeat:no-repeat;background-size:75% 75%;opacity:.5}.pika-next:hover,.pika-prev:hover{opacity:1}.is-rtl .pika-next,.pika-prev{float:left;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==)}.is-rtl .pika-prev,.pika-next{float:right;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=)}.pika-next.is-disabled,.pika-prev.is-disabled{cursor:default;opacity:.2}.pika-select{display:inline-block}.pika-table{width:100%;border:0}.pika-table td,.pika-table th{width:14.285714285714286%;padding:0}.pika-table th{color:#999;font-size:12px;line-height:25px;font-weight:700;text-align:center}.pika-button{cursor:pointer;display:block;box-sizing:border-box;-moz-box-sizing:border-box;outline:0;border:0;margin:0;width:100%;padding:5px;color:#666;font-size:12px;line-height:15px;text-align:right;background:#f5f5f5}.pika-week{font-size:11px;color:#999}.is-today .pika-button{color:#3af;font-weight:700}.is-selected .pika-button{color:#fff;font-weight:700;background:#3af;box-shadow:inset 0 1px 3px #178fe5;border-radius:3px}.is-disabled .pika-button{pointer-events:none;cursor:default;color:#999;opacity:.3}.pika-button:hover{color:#fff!important;background:#ff8000!important;box-shadow:none!important;border-radius:3px!important}.pika-table abbr{border-bottom:none;cursor:help}.pika-time{margin:7px auto}@font-face{font-family:octicons;src:url(/fonts/octicons.eot?#iefix) format('embedded-opentype'),url(/fonts/octicons.woff) format('woff'),url(/fonts/octicons.ttf) format('truetype'),url(/fonts/octicons.svg#octicons) format('svg');font-weight:400;font-style:normal}.mega-octicon,.octicon{font:normal normal normal 16px/1 octicons;display:inline-block;text-decoration:none;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mega-octicon{font-size:32px}.octicon-alert:before{content:'\f02d'}.octicon-alignment-align:before{content:'\f08a'}.octicon-alignment-aligned-to:before{content:'\f08e'}.octicon-alignment-unalign:before{content:'\f08b'}.octicon-arrow-down:before{content:'\f03f'}.octicon-arrow-left:before{content:'\f040'}.octicon-arrow-right:before{content:'\f03e'}.octicon-arrow-small-down:before{content:'\f0a0'}.octicon-arrow-small-left:before{content:'\f0a1'}.octicon-arrow-small-right:before{content:'\f071'}.octicon-arrow-small-up:before{content:'\f09f'}.octicon-arrow-up:before{content:'\f03d'}.octicon-beer:before{content:'\f069'}.octicon-book:before{content:'\f007'}.octicon-bookmark:before{content:'\f07b'}.octicon-briefcase:before{content:'\f0d3'}.octicon-broadcast:before{content:'\f048'}.octicon-browser:before{content:'\f0c5'}.octicon-bug:before{content:'\f091'}.octicon-calendar:before{content:'\f068'}.octicon-check:before{content:'\f03a'}.octicon-checklist:before{content:'\f076'}.octicon-chevron-down:before{content:'\f0a3'}.octicon-chevron-left:before{content:'\f0a4'}.octicon-chevron-right:before{content:'\f078'}.octicon-chevron-up:before{content:'\f0a2'}.octicon-circle-slash:before{content:'\f084'}.octicon-circuit-board:before{content:'\f0d6'}.octicon-clippy:before{content:'\f035'}.octicon-clock:before{content:'\f046'}.octicon-cloud-download:before{content:'\f00b'}.octicon-cloud-upload:before{content:'\f00c'}.octicon-code:before{content:'\f05f'}.octicon-color-mode:before{content:'\f065'}.octicon-comment-add:before,.octicon-comment:before{content:'\f02b'}.octicon-comment-discussion:before{content:'\f04f'}.octicon-credit-card:before{content:'\f045'}.octicon-dash:before{content:'\f0ca'}.octicon-dashboard:before{content:'\f07d'}.octicon-database:before{content:'\f096'}.octicon-device-camera:before{content:'\f056'}.octicon-device-camera-video:before{content:'\f057'}.octicon-device-desktop:before{content:'\f27c'}.octicon-device-mobile:before{content:'\f038'}.octicon-diff:before{content:'\f04d'}.octicon-diff-added:before{content:'\f06b'}.octicon-diff-ignored:before{content:'\f099'}.octicon-diff-modified:before{content:'\f06d'}.octicon-diff-removed:before{content:'\f06c'}.octicon-diff-renamed:before{content:'\f06e'}.octicon-ellipsis:before{content:'\f09a'}.octicon-eye-unwatch:before,.octicon-eye-watch:before,.octicon-eye:before{content:'\f04e'}.octicon-file-binary:before{content:'\f094'}.octicon-file-code:before{content:'\f010'}.octicon-file-directory:before{content:'\f016'}.octicon-file-media:before{content:'\f012'}.octicon-file-pdf:before{content:'\f014'}.octicon-file-submodule:before{content:'\f017'}.octicon-file-symlink-directory:before{content:'\f0b1'}.octicon-file-symlink-file:before{content:'\f0b0'}.octicon-file-text:before{content:'\f011'}.octicon-file-zip:before{content:'\f013'}.octicon-flame:before{content:'\f0d2'}.octicon-fold:before{content:'\f0cc'}.octicon-gear:before{content:'\f02f'}.octicon-gift:before{content:'\f042'}.octicon-gist:before{content:'\f00e'}.octicon-gist-secret:before{content:'\f08c'}.octicon-git-branch-create:before,.octicon-git-branch-delete:before,.octicon-git-branch:before{content:'\f020'}.octicon-git-commit:before{content:'\f01f'}.octicon-git-compare:before{content:'\f0ac'}.octicon-git-merge:before{content:'\f023'}.octicon-git-pull-request-abandoned:before,.octicon-git-pull-request:before{content:'\f009'}.octicon-globe:before{content:'\f0b6'}.octicon-graph:before{content:'\f043'}.octicon-heart:before{content:'\2665'}.octicon-history:before{content:'\f07e'}.octicon-home:before{content:'\f08d'}.octicon-horizontal-rule:before{content:'\f070'}.octicon-hourglass:before{content:'\f09e'}.octicon-hubot:before{content:'\f09d'}.octicon-inbox:before{content:'\f0cf'}.octicon-info:before{content:'\f059'}.octicon-issue-closed:before{content:'\f028'}.octicon-issue-opened:before{content:'\f026'}.octicon-issue-reopened:before{content:'\f027'}.octicon-jersey:before{content:'\f019'}.octicon-jump-down:before{content:'\f072'}.octicon-jump-left:before{content:'\f0a5'}.octicon-jump-right:before{content:'\f0a6'}.octicon-jump-up:before{content:'\f073'}.octicon-key:before{content:'\f049'}.octicon-keyboard:before{content:'\f00d'}.octicon-law:before{content:'\f0d8'}.octicon-light-bulb:before{content:'\f000'}.octicon-link:before{content:'\f05c'}.octicon-link-external:before{content:'\f07f'}.octicon-list-ordered:before{content:'\f062'}.octicon-list-unordered:before{content:'\f061'}.octicon-location:before{content:'\f060'}.octicon-gist-private:before,.octicon-git-fork-private:before,.octicon-lock:before,.octicon-mirror-private:before{content:'\f06a'}.octicon-logo-github:before{content:'\f092'}.octicon-mail:before{content:'\f03b'}.octicon-mail-read:before{content:'\f03c'}.octicon-mail-reply:before{content:'\f051'}.octicon-mark-github:before{content:'\f00a'}.octicon-markdown:before{content:'\f0c9'}.octicon-megaphone:before{content:'\f077'}.octicon-mention:before{content:'\f0be'}.octicon-microscope:before{content:'\f089'}.octicon-milestone:before{content:'\f075'}.octicon-mirror-public:before,.octicon-mirror:before{content:'\f024'}.octicon-mortar-board:before{content:'\f0d7'}.octicon-move-down:before{content:'\f0a8'}.octicon-move-left:before{content:'\f074'}.octicon-move-right:before{content:'\f0a9'}.octicon-move-up:before{content:'\f0a7'}.octicon-mute:before{content:'\f080'}.octicon-no-newline:before{content:'\f09c'}.octicon-octoface:before{content:'\f008'}.octicon-organization:before{content:'\f037'}.octicon-package:before{content:'\f0c4'}.octicon-paintcan:before{content:'\f0d1'}.octicon-pencil:before{content:'\f058'}.octicon-person-add:before,.octicon-person-follow:before,.octicon-person:before{content:'\f018'}.octicon-pin:before{content:'\f041'}.octicon-playback-fast-forward:before{content:'\f0bd'}.octicon-playback-pause:before{content:'\f0bb'}.octicon-playback-play:before{content:'\f0bf'}.octicon-playback-rewind:before{content:'\f0bc'}.octicon-plug:before{content:'\f0d4'}.octicon-file-add:before,.octicon-file-directory-create:before,.octicon-gist-new:before,.octicon-plus:before,.octicon-repo-create:before{content:'\f05d'}.octicon-podium:before{content:'\f0af'}.octicon-primitive-dot:before{content:'\f052'}.octicon-primitive-square:before{content:'\f053'}.octicon-pulse:before{content:'\f085'}.octicon-puzzle:before{content:'\f0c0'}.octicon-question:before{content:'\f02c'}.octicon-quote:before{content:'\f063'}.octicon-radio-tower:before{content:'\f030'}.octicon-repo-delete:before,.octicon-repo:before{content:'\f001'}.octicon-repo-clone:before{content:'\f04c'}.octicon-repo-force-push:before{content:'\f04a'}.octicon-gist-fork:before,.octicon-repo-forked:before{content:'\f002'}.octicon-repo-pull:before{content:'\f006'}.octicon-repo-push:before{content:'\f005'}.octicon-rocket:before{content:'\f033'}.octicon-rss:before{content:'\f034'}.octicon-ruby:before{content:'\f047'}.octicon-screen-full:before{content:'\f066'}.octicon-screen-normal:before{content:'\f067'}.octicon-search-save:before,.octicon-search:before{content:'\f02e'}.octicon-server:before{content:'\f097'}.octicon-settings:before{content:'\f07c'}.octicon-log-in:before,.octicon-sign-in:before{content:'\f036'}.octicon-log-out:before,.octicon-sign-out:before{content:'\f032'}.octicon-split:before{content:'\f0c6'}.octicon-squirrel:before{content:'\f0b2'}.octicon-star-add:before,.octicon-star-delete:before,.octicon-star:before{content:'\f02a'}.octicon-steps:before{content:'\f0c7'}.octicon-stop:before{content:'\f08f'}.octicon-repo-sync:before,.octicon-sync:before{content:'\f087'}.octicon-tag-add:before,.octicon-tag-remove:before,.octicon-tag:before{content:'\f015'}.octicon-telescope:before{content:'\f088'}.octicon-terminal:before{content:'\f0c8'}.octicon-three-bars:before{content:'\f05e'}.octicon-tools:before{content:'\f031'}.octicon-trashcan:before{content:'\f0d0'}.octicon-triangle-down:before{content:'\f05b'}.octicon-triangle-left:before{content:'\f044'}.octicon-triangle-right:before{content:'\f05a'}.octicon-triangle-up:before{content:'\f0aa'}.octicon-unfold:before{content:'\f039'}.octicon-unmute:before{content:'\f0ba'}.octicon-versions:before{content:'\f064'}.octicon-remove-close:before,.octicon-x:before{content:'\f081'}.octicon-zap:before{content:'\26A1'}
\ No newline at end of file
diff --git a/prod/assets/vendor-d8042eae6c7c66fd59f343eb1b260d51.js b/prod/assets/vendor-d8042eae6c7c66fd59f343eb1b260d51.js
new file mode 100644
index 0000000000..62530c9a83
--- /dev/null
+++ b/prod/assets/vendor-d8042eae6c7c66fd59f343eb1b260d51.js
@@ -0,0 +1,74 @@
+function createDeprecatedModule(e){define(e,["exports","ember-resolver/resolver","ember"],function(t,n,r){r.default.deprecate("Usage of `"+e+"` module is deprecated, please update to `ember-resolver`.",!1,{id:"ember-resolver.legacy-shims",until:"3.0.0"}),t.default=n.default})}function CODE128(e){function t(){return-1!=e.search(f)}function n(e){var t="";return t+=c,t+=r(e),t+=o(i(e)),t+=l}function r(e){for(var t="",n=0;n","11011011000",30],["?","11011000110",31],["@","11000110110",32],["A","10100011000",33],["B","10001011000",34],["C","10001000110",35],["D","10110001000",36],["E","10001101000",37],["F","10001100010",38],["G","11010001000",39],["H","11000101000",40],["I","11000100010",41],["J","10110111000",42],["K","10110001110",43],["L","10001101110",44],["M","10111011000",45],["N","10111000110",46],["O","10001110110",47],["P","11101110110",48],["Q","11010001110",49],["R","11000101110",50],["S","11011101000",51],["T","11011100010",52],["U","11011101110",53],["V","11101011000",54],["W","11101000110",55],["X","11100010110",56],["Y","11101101000",57],["Z","11101100010",58],["[","11100011010",59],["\\","11101111010",60],["]","11001000010",61],["^","11110001010",62],["_","10100110000",63],["`","10100001100",64],["a","10010110000",65],["b","10010000110",66],["c","10000101100",67],["d","10000100110",68],["e","10110010000",69],["f","10110000100",70],["g","10011010000",71],["h","10011000010",72],["i","10000110100",73],["j","10000110010",74],["k","11000010010",75],["l","11001010000",76],["m","11110111010",77],["n","11000010100",78],["o","10001111010",79],["p","10100111100",80],["q","10010111100",81],["r","10010011110",82],["s","10111100100",83],["t","10011110100",84],["u","10011110010",85],["v","11110100100",86],["w","11110010100",87],["x","11110010010",88],["y","11011011110",89],["z","11011110110",90],["{","11110110110",91],["|","10101111000",92],["}","10100011110",93],["~","10001011110",94],[String.fromCharCode(127),"10111101000",95],[String.fromCharCode(128),"10111100010",96],[String.fromCharCode(129),"11110101000",97],[String.fromCharCode(130),"11110100010",98],[String.fromCharCode(131),"10111011110",99],[String.fromCharCode(132),"10111101110",100],[String.fromCharCode(133),"11101011110",101],[String.fromCharCode(134),"11110101110",102]],c="11010010000",l="1100011101011",f=/^[!-~ ]+$/}window.EmberENV={FEATURES:{},EXTEND_PROTOTYPES:{Date:!1}};var runningTests=!1,loader,define,requireModule,require,requirejs;if(function(e){"use strict";function t(){var e=Object.create(null);return e.__=void 0,delete e.__,e}function n(e){throw new Error("an unsupported module was defined, expected `define(name, deps, module)` instead got: `"+e+"` arguments to define`")}function r(e,t,n,r){this.id=h++,this.name=e,this.deps=!t.length&&n.length?p:t,this.module={exports:{}},this.callback=n,this.hasExportsAsDep=!1,this.isAlias=r,this.reified=new Array(t.length),this.state="new"}function i(e){this.name=e}function o(e,t){throw new Error("Could not find module `"+e+"` imported from `"+t+"`")}function s(e,t,n){for(var r=f[e]||f[e+"/index"];r&&r.isAlias;)r=f[r.name];return r||o(e,t),n&&"pending"!==r.state&&"finalized"!==r.state&&(r.findDeps(n),n.push(r)),r}function a(e,t){if("."!==e.charAt(0))return e;for(var n=e.split("/"),r=t.split("/"),i=r.slice(0,-1),o=0,s=n.length;o=0;r--)t[r].exports();return n.module.exports},loader={noConflict:function(t){var n,r;for(n in t)t.hasOwnProperty(n)&&c.hasOwnProperty(n)&&(r=t[n],e[r]=e[n],e[n]=c[n])}};var l;l=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var f=t(),d=t(),h=0,p=["require","exports","module"];r.prototype.makeDefaultExport=function(){var e=this.module.exports;null===e||"object"!=typeof e&&"function"!=typeof e||void 0!==e.default||!Object.isExtensible(e)||(e.default=e)},r.prototype.exports=function(){if("finalized"===this.state||"reifying"===this.state)return this.module.exports;loader.wrapModules&&(this.callback=loader.wrapModules(this.name,this.callback)),this.reify();var e=this.callback.apply(this,this.reified);return this.state="finalized",this.hasExportsAsDep&&void 0===e||(this.module.exports=e),this.makeDefaultExport(),this.module.exports},r.prototype.unsee=function(){this.state="new",this.module={exports:{}}},r.prototype.reify=function(){if("reified"!==this.state){this.state="reifying";try{this.reified=this._reify(),this.state="reified"}finally{"reifying"===this.state&&(this.state="errored")}}},r.prototype._reify=function(){for(var e=this.reified.slice(),t=0;t0)for(n=0;n0?"future":"past"];return x(n)?n(t):n.replace(/%s/i,t)}function N(e,t){var n=e.toLowerCase();Or[n]=Or[n+"s"]=Or[t]=e}function j(e){return"string"==typeof e?Or[e]||Or[e.toLowerCase()]:void 0}function P(e){var t,n,r={};for(n in e)u(e,n)&&(t=j(n))&&(r[t]=e[n]);return r}function L(e,t){Dr[e]=t}function F(e){var t=[];for(var n in e)t.push({unit:n,priority:Dr[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function B(t,n){return function(r){return null!=r?(z(this,t,r),e.updateOffset(this,n),this):q(this,t)}}function q(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function z(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function H(e){return e=j(e),x(this[e])?this[e]():this}function U(e,t){if("object"==typeof e){e=P(e);for(var n=F(e),r=0;r=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function V(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(jr[e]=i),t&&(jr[t[0]]=function(){return W(i.apply(this,arguments),t[1],t[2])}),n&&(jr[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function G(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function $(e){var t,n,r=e.match(Mr);for(t=0,n=r.length;t=0&&Ir.test(e);)e=e.replace(Ir,n),Ir.lastIndex=0,r-=1;return e}function J(e,t,n){Yr[e]=x(t)?t:function(e,r){return e&&n?n:t}}function Q(e,t){return u(Yr,e)?Yr[e](t._strict,t._locale):new RegExp(X(e))}function X(e){return Z(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function Z(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ee(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),o(t)&&(r=function(e,n){n[t]=b(e)}),n=0;n=0&&isFinite(a.getFullYear())&&a.setFullYear(e),a}function ye(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function be(e,t,n){var r=7+t-n;return-(7+ye(e,0,r).getUTCDay()-t)%7+r-1}function _e(e,t,n,r,i){var o,s,a=(7+n-r)%7,u=be(e,r,i),c=1+7*(t-1)+a+u;return c<=0?(o=e-1,s=pe(o)+c):c>pe(e)?(o=e+1,s=c-pe(e)):(o=e,s=c),{year:o,dayOfYear:s}}function we(e,t,n){var r,i,o=be(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?(i=e.year()-1,r=s+Se(i,t,n)):s>Se(e.year(),t,n)?(r=s-Se(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function Se(e,t,n){var r=be(e,t,n),i=be(e+1,t,n);return(pe(e)-r+i)/7}function Ee(e){return we(e,this._week.dow,this._week.doy).week}function xe(){return this._week.dow}function ke(){return this._week.doy}function Ce(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Re(e){var t=we(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Te(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ae(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Oe(e,n){return e?t(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(n)?"format":"standalone"][e.day()]:t(this._weekdays)?this._weekdays:this._weekdays.standalone}function De(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Me(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ie(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=l([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(i=si.call(this._weekdaysParse,s),-1!==i?i:null):"ddd"===t?(i=si.call(this._shortWeekdaysParse,s),-1!==i?i:null):(i=si.call(this._minWeekdaysParse,s),-1!==i?i:null):"dddd"===t?(i=si.call(this._weekdaysParse,s),-1!==i?i:(i=si.call(this._shortWeekdaysParse,s),-1!==i?i:(i=si.call(this._minWeekdaysParse,s),-1!==i?i:null))):"ddd"===t?(i=si.call(this._shortWeekdaysParse,s),-1!==i?i:(i=si.call(this._weekdaysParse,s),-1!==i?i:(i=si.call(this._minWeekdaysParse,s),-1!==i?i:null))):(i=si.call(this._minWeekdaysParse,s),-1!==i?i:(i=si.call(this._weekdaysParse,s),-1!==i?i:(i=si.call(this._shortWeekdaysParse,s),-1!==i?i:null)))}function Ne(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Ie.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=l([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function je(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Te(e,this.localeData()),this.add(e-t,"d")):t}function Pe(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Le(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ae(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Fe(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=vi),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Be(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=yi),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qe(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=bi),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ze(){function e(e,t){return t.length-e.length}var t,n,r,i,o,s=[],a=[],u=[],c=[];for(t=0;t<7;t++)n=l([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),s.push(r),a.push(i),u.push(o),c.push(r),c.push(i),c.push(o);for(s.sort(e),a.sort(e),u.sort(e),c.sort(e),t=0;t<7;t++)a[t]=Z(a[t]),u[t]=Z(u[t]),c[t]=Z(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function He(){return this.hours()%12||12}function Ue(){return this.hours()||24}function We(e,t){V(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ve(e,t){return t._meridiemParse}function Ge(e){return"p"===(e+"").toLowerCase().charAt(0)}function $e(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Ke(e){return e?e.toLowerCase().replace("_","-"):e}function Ye(e){for(var t,n,r,i,o=0;o0;){if(r=Je(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&_(i,n,!0)>=t-1)break;t--}o++}return null}function Je(e){var t=null;if(!Ei[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=_i._abbr,require("./locale/"+e),Qe(t)}catch(e){}return Ei[e]}function Qe(e,t){var n;return e&&(n=i(t)?et(e):Xe(e,t))&&(_i=n),_i._abbr}function Xe(e,t){if(null!==t){var n=Si;if(t.abbr=e,null!=Ei[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Ei[e]._config;else if(null!=t.parentLocale){if(null==Ei[t.parentLocale])return xi[t.parentLocale]||(xi[t.parentLocale]=[]),xi[t.parentLocale].push({name:e,config:t}),null;n=Ei[t.parentLocale]._config}return Ei[e]=new R(C(n,t)),xi[e]&&xi[e].forEach(function(e){Xe(e.name,e.config)}),Qe(e),Ei[e]}return delete Ei[e],null}function Ze(e,t){if(null!=t){var n,r=Si;null!=Ei[e]&&(r=Ei[e]._config),t=C(r,t),n=new R(t),n.parentLocale=Ei[e],Ei[e]=n,Qe(e)}else null!=Ei[e]&&(null!=Ei[e].parentLocale?Ei[e]=Ei[e].parentLocale:null!=Ei[e]&&delete Ei[e]);return Ei[e]}function et(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return _i;if(!t(e)){if(n=Je(e))return n;e=[e]}return Ye(e)}function tt(){return Cr(Ei)}function nt(e){var t,n=e._a;return n&&-2===d(e).overflow&&(t=n[Xr]<0||n[Xr]>11?Xr:n[Zr]<1||n[Zr]>re(n[Qr],n[Xr])?Zr:n[ei]<0||n[ei]>24||24===n[ei]&&(0!==n[ti]||0!==n[ni]||0!==n[ri])?ei:n[ti]<0||n[ti]>59?ti:n[ni]<0||n[ni]>59?ni:n[ri]<0||n[ri]>999?ri:-1,d(e)._overflowDayOfYear&&(tZr)&&(t=Zr),d(e)._overflowWeeks&&-1===t&&(t=ii),d(e)._overflowWeekday&&-1===t&&(t=oi),d(e).overflow=t),e}function rt(e){var t,n,r,i,o,s,a=e._i,u=ki.exec(a)||Ci.exec(a);if(u){for(d(e).iso=!0,t=0,n=Ti.length;t10?"YYYY ":"YY "),o="HH:mm"+(n[4]?":ss":""),n[1]){var l=new Date(n[2]),f=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][l.getDay()];if(n[1].substr(0,3)!==f)return d(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(n[5].length){case 2:0===u?a=" +0000":(u="YXWVUTSRQPONZABCDEFGHIKLM".indexOf(n[5][1].toUpperCase())-12,a=(u<0?" -":" +")+(""+u).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:a=c[n[5]];break;default:a=c[" GMT"]}n[5]=a,e._i=n.splice(1).join(""),s=" ZZ",e._f=r+i+o+s,lt(e),d(e).rfc2822=!0}else e._isValid=!1}function ot(t){var n=Oi.exec(t._i);return null!==n?void(t._d=new Date(+n[1])):(rt(t),void(!1===t._isValid&&(delete t._isValid,it(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))))}function st(e,t,n){return null!=e?e:null!=t?t:n}function at(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ut(e){var t,n,r,i,o=[];if(!e._d){for(r=at(e),e._w&&null==e._a[Zr]&&null==e._a[Xr]&&ct(e),null!=e._dayOfYear&&(i=st(e._a[Qr],r[Qr]),(e._dayOfYear>pe(i)||0===e._dayOfYear)&&(d(e)._overflowDayOfYear=!0),n=ye(i,0,e._dayOfYear),e._a[Xr]=n.getUTCMonth(),e._a[Zr]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ei]&&0===e._a[ti]&&0===e._a[ni]&&0===e._a[ri]&&(e._nextDay=!0,e._a[ei]=0),e._d=(e._useUTC?ye:ve).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ei]=24)}}function ct(e){var t,n,r,i,o,s,a,u;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,s=4,n=st(t.GG,e._a[Qr],we(yt(),1,4).year),r=st(t.W,1),((i=st(t.E,1))<1||i>7)&&(u=!0);else{o=e._locale._week.dow,s=e._locale._week.doy;var c=we(yt(),o,s);n=st(t.gg,e._a[Qr],c.year),r=st(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o}r<1||r>Se(n,o,s)?d(e)._overflowWeeks=!0:null!=u?d(e)._overflowWeekday=!0:(a=_e(n,r,i,o,s),e._a[Qr]=a.year,e._dayOfYear=a.dayOfYear)}function lt(t){if(t._f===e.ISO_8601)return void rt(t);if(t._f===e.RFC_2822)return void it(t);t._a=[],d(t).empty=!0;var n,r,i,o,s,a=""+t._i,u=a.length,c=0;for(i=Y(t._f,t._locale).match(Mr)||[],n=0;n0&&d(t).unusedInput.push(s),a=a.slice(a.indexOf(r)+r.length),c+=r.length),jr[o]?(r?d(t).empty=!1:d(t).unusedTokens.push(o),ne(o,r,t)):t._strict&&!r&&d(t).unusedTokens.push(o);d(t).charsLeftOver=u-c,a.length>0&&d(t).unusedInput.push(a),t._a[ei]<=12&&!0===d(t).bigHour&&t._a[ei]>0&&(d(t).bigHour=void 0),d(t).parsedDateParts=t._a.slice(0),d(t).meridiem=t._meridiem,t._a[ei]=ft(t._locale,t._a[ei],t._meridiem),ut(t),nt(t)}function ft(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function dt(e){var t,n,r,i,o;if(0===e._f.length)return d(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Bt(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(m(e,this),e=mt(e),e._a){var t=e._isUTC?l(e._a):yt(e._a);this._isDSTShifted=this.isValid()&&_(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function qt(){return!!this.isValid()&&!this._isUTC}function zt(){return!!this.isValid()&&this._isUTC}function Ht(){return!!this.isValid()&&this._isUTC&&0===this._offset}function Ut(e,t){var n,r,i,s=e,a=null;return Ct(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:o(e)?(s={},t?s[t]=e:s.milliseconds=e):(a=Li.exec(e))?(n="-"===a[1]?-1:1,s={y:0,d:b(a[Zr])*n,h:b(a[ei])*n,m:b(a[ti])*n,s:b(a[ni])*n,ms:b(Rt(1e3*a[ri]))*n}):(a=Fi.exec(e))?(n="-"===a[1]?-1:1,s={y:Wt(a[2],n),M:Wt(a[3],n),w:Wt(a[4],n),d:Wt(a[5],n),h:Wt(a[6],n),m:Wt(a[7],n),s:Wt(a[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(i=Gt(yt(s.from),yt(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),r=new kt(s),Ct(e)&&u(e,"_locale")&&(r._locale=e._locale),r}function Wt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Vt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Gt(e,t){var n;return e.isValid()&&t.isValid()?(t=Ot(t,e),e.isBefore(t)?n=Vt(e,t):(n=Vt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function $t(e,t){return function(n,r){var i,o;return null===r||isNaN(+r)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=Ut(n,r),Kt(this,i,e),this}}function Kt(t,n,r,i){var o=n._milliseconds,s=Rt(n._days),a=Rt(n._months);t.isValid()&&(i=null==i||i,o&&t._d.setTime(t._d.valueOf()+o*r),s&&z(t,"Date",q(t,"Date")+s*r),a&&ue(t,q(t,"Month")+a*r),i&&e.updateOffset(t,s||a))}function Yt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Jt(t,n){var r=t||yt(),i=Ot(r,this).startOf("day"),o=e.calendarFormat(this,i)||"sameElse",s=n&&(x(n[o])?n[o].call(this,r):n[o]);return this.format(s||this.localeData().calendar(o,this,yt(r)))}function Qt(){return new g(this)}function Xt(e,t){var n=v(e)?e:yt(e);return!(!this.isValid()||!n.isValid())&&(t=j(i(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()9999?K(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):x(Date.prototype.toISOString)?this.toDate().toISOString():K(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function cn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)}function ln(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=K(this,t);return this.localeData().postformat(n)}function fn(e,t){return this.isValid()&&(v(e)&&e.isValid()||yt(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function dn(e){return this.from(yt(),e)}function hn(e,t){return this.isValid()&&(v(e)&&e.isValid()||yt(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pn(e){return this.to(yt(),e)}function mn(e){var t;return void 0===e?this._locale._abbr:(t=et(e),null!=t&&(this._locale=t),this)}function gn(){return this._locale}function vn(e){switch(e=j(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function yn(e){return e=j(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function bn(){return this._d.valueOf()-6e4*(this._offset||0)}function _n(){return Math.floor(this.valueOf()/1e3)}function wn(){return new Date(this.valueOf())}function Sn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function En(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function xn(){return this.isValid()?this.toISOString():null}function kn(){return h(this)}function Cn(){return c({},d(this))}function Rn(){return d(this).overflow}function Tn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function An(e,t){V(0,[e,e.length],0,t)}function On(e){return Nn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Dn(e){return Nn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Mn(){return Se(this.year(),1,4)}function In(){var e=this.localeData()._week;return Se(this.year(),e.dow,e.doy)}function Nn(e,t,n,r,i){var o;return null==e?we(this,r,i).year:(o=Se(e,r,i),t>o&&(t=o),jn.call(this,e,t,n,r,i))}function jn(e,t,n,r,i){var o=_e(e,t,n,r,i),s=ye(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Pn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Ln(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Fn(e,t){t[ri]=b(1e3*("0."+e))}function Bn(){return this._isUTC?"UTC":""}function qn(){return this._isUTC?"Coordinated Universal Time":""}function zn(e){return yt(1e3*e)}function Hn(){return yt.apply(null,arguments).parseZone()}function Un(e){return e}function Wn(e,t,n,r){var i=et(),o=l().set(r,t);return i[n](o,e)}function Vn(e,t,n){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return Wn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Wn(e,r,n,"month");return i}function Gn(e,t,n,r){"boolean"==typeof e?(o(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,o(t)&&(n=t,t=void 0),t=t||"");var i=et(),s=e?i._week.dow:0;if(null!=n)return Wn(t,(n+s)%7,r,"day");var a,u=[];for(a=0;a<7;a++)u[a]=Wn(t,(a+s)%7,r,"day");return u}function $n(e,t){return Vn(e,t,"months")}function Kn(e,t){return Vn(e,t,"monthsShort")}function Yn(e,t,n){return Gn(e,t,n,"weekdays")}function Jn(e,t,n){return Gn(e,t,n,"weekdaysShort")}function Qn(e,t,n){return Gn(e,t,n,"weekdaysMin")}function Xn(){var e=this._data;return this._milliseconds=Yi(this._milliseconds),this._days=Yi(this._days),this._months=Yi(this._months),e.milliseconds=Yi(e.milliseconds),e.seconds=Yi(e.seconds),e.minutes=Yi(e.minutes),e.hours=Yi(e.hours),e.months=Yi(e.months),e.years=Yi(e.years),this}function Zn(e,t,n,r){var i=Ut(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function er(e,t){return Zn(this,e,t,1)}function tr(e,t){return Zn(this,e,t,-1)}function nr(e){return e<0?Math.floor(e):Math.ceil(e)}function rr(){var e,t,n,r,i,o=this._milliseconds,s=this._days,a=this._months,u=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*nr(or(a)+s),s=0,a=0),u.milliseconds=o%1e3,e=y(o/1e3),u.seconds=e%60,t=y(e/60),u.minutes=t%60,n=y(t/60),u.hours=n%24,s+=y(n/24),i=y(ir(s)),a+=i,s-=nr(or(i)),r=y(a/12),a%=12,u.days=s,u.months=a,u.years=r,this}function ir(e){return 4800*e/146097}function or(e){return 146097*e/4800}function sr(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=j(e))||"year"===e)return t=this._days+r/864e5,n=this._months+ir(t),"month"===e?n:n/12;switch(t=this._days+Math.round(or(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function ar(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN}function ur(e){return function(){return this.as(e)}}function cr(e){return e=j(e),this.isValid()?this[e+"s"]():NaN}function lr(e){return function(){return this.isValid()?this._data[e]:NaN}}function fr(){return y(this.days()/7)}function dr(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function hr(e,t,n){var r=Ut(e).abs(),i=fo(r.as("s")),o=fo(r.as("m")),s=fo(r.as("h")),a=fo(r.as("d")),u=fo(r.as("M")),c=fo(r.as("y")),l=i<=ho.ss&&["s",i]||i0,l[4]=n,dr.apply(null,l)}function pr(e){return void 0===e?fo:"function"==typeof e&&(fo=e,!0)}function mr(e,t){return void 0!==ho[e]&&(void 0===t?ho[e]:(ho[e]=t,"s"===e&&(ho.ss=t-1),!0))}function gr(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=hr(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function vr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r=po(this._milliseconds)/1e3,i=po(this._days),o=po(this._months);e=y(r/60),t=y(e/60),r%=60,e%=60,n=y(o/12),o%=12;var s=n,a=o,u=i,c=t,l=e,f=r,d=this.asSeconds();return d?(d<0?"-":"")+"P"+(s?s+"Y":"")+(a?a+"M":"")+(u?u+"D":"")+(c||l||f?"T":"")+(c?c+"H":"")+(l?l+"M":"")+(f?f+"S":""):"P0D"}var yr,br;br=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r68?1900:2e3)};var di=B("FullYear",!0);V("w",["ww",2],"wo","week"),V("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),L("week",5),L("isoWeek",5),J("w",Br),J("ww",Br,Pr),J("W",Br),J("WW",Br,Pr),te(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=b(e)});var hi={dow:0,doy:6};V("d",0,"do","day"),V("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),V("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),V("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),V("e",0,0,"weekday"),V("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),L("day",11),L("weekday",11),L("isoWeekday",11),J("d",Br),J("e",Br),J("E",Br),J("dd",function(e,t){return t.weekdaysMinRegex(e)}),J("ddd",function(e,t){return t.weekdaysShortRegex(e)}),J("dddd",function(e,t){return t.weekdaysRegex(e)}),te(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:d(n).invalidWeekday=e}),te(["d","e","E"],function(e,t,n,r){t[r]=b(e)});var pi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),mi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),gi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),vi=Kr,yi=Kr,bi=Kr;V("H",["HH",2],0,"hour"),V("h",["hh",2],0,He),V("k",["kk",2],0,Ue),V("hmm",0,0,function(){return""+He.apply(this)+W(this.minutes(),2)}),V("hmmss",0,0,function(){return""+He.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),V("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),V("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),We("a",!0),We("A",!1),N("hour","h"),L("hour",13),J("a",Ve),J("A",Ve),J("H",Br),J("h",Br),J("k",Br),J("HH",Br,Pr),J("hh",Br,Pr),J("kk",Br,Pr),J("hmm",qr),J("hmmss",zr),J("Hmm",qr),J("Hmmss",zr),ee(["H","HH"],ei),ee(["k","kk"],function(e,t,n){var r=b(e);t[ei]=24===r?0:r}),ee(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ee(["h","hh"],function(e,t,n){t[ei]=b(e),d(n).bigHour=!0}),ee("hmm",function(e,t,n){var r=e.length-2;t[ei]=b(e.substr(0,r)),t[ti]=b(e.substr(r)),d(n).bigHour=!0}),ee("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ei]=b(e.substr(0,r)),t[ti]=b(e.substr(r,2)),t[ni]=b(e.substr(i)),d(n).bigHour=!0}),ee("Hmm",function(e,t,n){var r=e.length-2;t[ei]=b(e.substr(0,r)),t[ti]=b(e.substr(r))}),ee("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ei]=b(e.substr(0,r)),t[ti]=b(e.substr(r,2)),t[ni]=b(e.substr(i))});var _i,wi=B("Hours",!0),Si={calendar:Rr,longDateFormat:Tr,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:Ar,months:ui,monthsShort:ci,week:hi,weekdays:pi,weekdaysMin:gi,weekdaysShort:mi,meridiemParse:/[ap]\.?m?\.?/i},Ei={},xi={},ki=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ci=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ri=/Z|[+-]\d\d(?::?\d\d)?/,Ti=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ai=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Oi=/^\/?Date\((\-?\d+)/i,Di=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;e.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Mi=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=yt.apply(null,arguments);return this.isValid()&&e.isValid()?ethis?this:e:p()}),Ni=function(){return Date.now?Date.now():+new Date},ji=["year","quarter","month","week","day","hour","minute","second","millisecond"];Tt("Z",":"),Tt("ZZ",""),J("Z",$r),J("ZZ",$r),ee(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=At($r,e)});var Pi=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Li=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Fi=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ut.fn=kt.prototype,Ut.invalid=xt;var Bi=$t(1,"add"),qi=$t(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var zi=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});V(0,["gg",2],0,function(){return this.weekYear()%100}),V(0,["GG",2],0,function(){return this.isoWeekYear()%100}),An("gggg","weekYear"),An("ggggg","weekYear"),An("GGGG","isoWeekYear"),An("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),L("weekYear",1),L("isoWeekYear",1),J("G",Vr),J("g",Vr),J("GG",Br,Pr),J("gg",Br,Pr),J("GGGG",Ur,Lr),J("gggg",Ur,Lr),J("GGGGG",Wr,Fr),J("ggggg",Wr,Fr),te(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=b(e)}),te(["gg","GG"],function(t,n,r,i){n[i]=e.parseTwoDigitYear(t)}),V("Q",0,"Qo","quarter"),N("quarter","Q"),L("quarter",7),J("Q",/\d/),ee("Q",function(e,t){t[Xr]=3*(b(e)-1)}),V("D",["DD",2],"Do","date"),N("date","D"),L("date",9),J("D",Br),J("DD",Br,Pr),J("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ee(["D","DD"],Zr),ee("Do",function(e,t){t[Zr]=b(e.match(Br)[0],10)});var Hi=B("Date",!0);V("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),L("dayOfYear",4),J("DDD",Hr),J("DDDD",/\d{3}/),ee(["DDD","DDDD"],function(e,t,n){n._dayOfYear=b(e)}),V("m",["mm",2],0,"minute"),N("minute","m"),L("minute",14),J("m",Br),J("mm",Br,Pr),ee(["m","mm"],ti);var Ui=B("Minutes",!1);V("s",["ss",2],0,"second"),N("second","s"),L("second",15),J("s",Br),J("ss",Br,Pr),ee(["s","ss"],ni);var Wi=B("Seconds",!1);V("S",0,0,function(){return~~(this.millisecond()/100)}),V(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),V(0,["SSS",3],0,"millisecond"),V(0,["SSSS",4],0,function(){return 10*this.millisecond()}),V(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),V(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),V(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),V(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),V(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),N("millisecond","ms"),L("millisecond",16),J("S",Hr,/\d/),J("SS",Hr,Pr),J("SSS",Hr,/\d{3}/);var Vi;for(Vi="SSSS";Vi.length<=9;Vi+="S")J(Vi,/\d+/);for(Vi="S";Vi.length<=9;Vi+="S")ee(Vi,Fn);var Gi=B("Milliseconds",!1);V("z",0,0,"zoneAbbr"),V("zz",0,0,"zoneName");var $i=g.prototype;$i.add=Bi,$i.calendar=Jt,$i.clone=Qt,$i.diff=on,$i.endOf=yn,$i.format=ln,$i.from=fn,$i.fromNow=dn,$i.to=hn,$i.toNow=pn,$i.get=H,$i.invalidAt=Rn,$i.isAfter=Xt,$i.isBefore=Zt,$i.isBetween=en,$i.isSame=tn,$i.isSameOrAfter=nn,$i.isSameOrBefore=rn,$i.isValid=kn,$i.lang=zi,$i.locale=mn,$i.localeData=gn,$i.max=Ii,$i.min=Mi,$i.parsingFlags=Cn,$i.set=U,$i.startOf=vn,$i.subtract=qi,$i.toArray=Sn,$i.toObject=En,$i.toDate=wn,$i.toISOString=un,$i.inspect=cn,$i.toJSON=xn,$i.toString=an,$i.unix=_n,$i.valueOf=bn,$i.creationData=Tn,$i.year=di,$i.isLeapYear=ge,$i.weekYear=On,$i.isoWeekYear=Dn,$i.quarter=$i.quarters=Pn,$i.month=ce,$i.daysInMonth=le,$i.week=$i.weeks=Ce,$i.isoWeek=$i.isoWeeks=Re,$i.weeksInYear=In,$i.isoWeeksInYear=Mn,$i.date=Hi,$i.day=$i.days=je,$i.weekday=Pe,$i.isoWeekday=Le,$i.dayOfYear=Ln,$i.hour=$i.hours=wi,$i.minute=$i.minutes=Ui,$i.second=$i.seconds=Wi,$i.millisecond=$i.milliseconds=Gi,$i.utcOffset=Mt,$i.utc=Nt,$i.local=jt,$i.parseZone=Pt,$i.hasAlignedHourOffset=Lt,$i.isDST=Ft,$i.isLocal=qt,$i.isUtcOffset=zt,$i.isUtc=Ht,$i.isUTC=Ht,$i.zoneAbbr=Bn,$i.zoneName=qn,$i.dates=S("dates accessor is deprecated. Use date instead.",Hi),$i.months=S("months accessor is deprecated. Use month instead",ce),$i.years=S("years accessor is deprecated. Use year instead",di),$i.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",It),$i.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Bt);var Ki=R.prototype;Ki.calendar=T,Ki.longDateFormat=A,Ki.invalidDate=O,Ki.ordinal=D,Ki.preparse=Un,Ki.postformat=Un,Ki.relativeTime=M,Ki.pastFuture=I,Ki.set=k,Ki.months=ie,Ki.monthsShort=oe,Ki.monthsParse=ae,Ki.monthsRegex=de,Ki.monthsShortRegex=fe,Ki.week=Ee,Ki.firstDayOfYear=ke,Ki.firstDayOfWeek=xe,Ki.weekdays=Oe,Ki.weekdaysMin=Me,Ki.weekdaysShort=De,Ki.weekdaysParse=Ne,Ki.weekdaysRegex=Fe,Ki.weekdaysShortRegex=Be,Ki.weekdaysMinRegex=qe,Ki.isPM=Ge,Ki.meridiem=$e,Qe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===b(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),e.lang=S("moment.lang is deprecated. Use moment.locale instead.",Qe),e.langData=S("moment.langData is deprecated. Use moment.localeData instead.",et);var Yi=Math.abs,Ji=ur("ms"),Qi=ur("s"),Xi=ur("m"),Zi=ur("h"),eo=ur("d"),to=ur("w"),no=ur("M"),ro=ur("y"),io=lr("milliseconds"),oo=lr("seconds"),so=lr("minutes"),ao=lr("hours"),uo=lr("days"),co=lr("months"),lo=lr("years"),fo=Math.round,ho={ss:44,s:45,m:45,h:22,d:26,M:11},po=Math.abs,mo=kt.prototype;return mo.isValid=Et,mo.abs=Xn,mo.add=er,mo.subtract=tr,mo.as=sr,mo.asMilliseconds=Ji,mo.asSeconds=Qi,mo.asMinutes=Xi,mo.asHours=Zi,mo.asDays=eo,mo.asWeeks=to,mo.asMonths=no,mo.asYears=ro,mo.valueOf=ar,mo._bubble=rr,mo.get=cr,mo.milliseconds=io,mo.seconds=oo,mo.minutes=so,mo.hours=ao,mo.days=uo,mo.weeks=fr,mo.months=co,mo.years=lo,mo.humanize=gr,mo.toISOString=vr,mo.toString=vr,mo.toJSON=vr,mo.locale=mn,mo.localeData=gn,mo.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",vr),mo.lang=zi,V("X",0,0,"unix"),V("x",0,0,"valueOf"),J("x",Vr),J("X",/[+-]?\d+(\.\d{1,3})?/),ee("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ee("x",function(e,t,n){n._d=new Date(b(e))}),e.version="2.18.1",function(e){yr=e}(yt),e.fn=$i,e.min=_t,e.max=wt,e.now=Ni,e.utc=l,e.unix=zn,e.months=$n,e.isDate=s,e.locale=Qe,e.invalid=p,e.duration=Ut,e.isMoment=v,e.weekdays=Yn,e.parseZone=Hn,e.localeData=et,e.isDuration=Ct,e.monthsShort=Kn,e.weekdaysMin=Qn,e.defineLocale=Xe,e.updateLocale=Ze,e.locales=tt,e.weekdaysShort=Jn,e.normalizeUnits=j,e.relativeTimeRounding=pr,e.relativeTimeThreshold=mr,e.calendarFormat=Yt,e.prototype=$i,e}),function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return i(n||e)},l,l.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s2?c[2]:void 0,f=Math.min((void 0===l?s:i(l,s))-u,s-a),d=1;for(u0;)u in n?n[a]=n[u]:delete n[a],a+=d,u+=d;return n}},{76:76,79:79,80:80}],6:[function(e,t,n){"use strict";var r=e(80),i=e(76),o=e(79);t.exports=[].fill||function(e){for(var t=r(this),n=o(t.length),s=arguments,a=s.length,u=i(a>1?s[1]:void 0,n),c=a>2?s[2]:void 0,l=void 0===c?n:i(c,n);l>u;)t[u++]=e;return t}},{76:76,79:79,80:80}],7:[function(e,t,n){var r=e(78),i=e(79),o=e(76);t.exports=function(e){return function(t,n,s){var a,u=r(t),c=i(u.length),l=o(s,c);if(e&&n!=n){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l;return!e&&-1}}},{76:76,78:78,79:79}],8:[function(e,t,n){var r=e(17),i=e(34),o=e(80),s=e(79),a=e(9);t.exports=function(e){var t=1==e,n=2==e,u=3==e,c=4==e,l=6==e,f=5==e||l;return function(d,h,p){for(var m,g,v=o(d),y=i(v),b=r(h,p,3),_=s(y.length),w=0,S=t?a(d,_):n?a(d,0):void 0;_>w;w++)if((f||w in y)&&(m=y[w],g=b(m,w,v),e))if(t)S[w]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:S.push(m)}else if(c)return!1;return l?-1:u||c?c:S}}},{17:17,34:34,79:79,80:80,9:9}],9:[function(e,t,n){var r=e(38),i=e(36),o=e(83)("species");t.exports=function(e,t){var n;return i(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)||(n=void 0),r(n)&&null===(n=n[o])&&(n=void 0)),new(void 0===n?Array:n)(t)}},{36:36,38:38,83:83}],10:[function(e,t,n){var r=e(11),i=e(83)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=(t=Object(e))[i])?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},{11:11,83:83}],11:[function(e,t,n){var r={}.toString;t.exports=function(e){return r.call(e).slice(8,-1)}},{}],12:[function(e,t,n){"use strict";var r=e(46),i=e(31),o=e(60),s=e(17),a=e(69),u=e(18),c=e(27),l=e(42),f=e(44),d=e(82)("id"),h=e(30),p=e(38),m=e(65),g=e(19),v=Object.isExtensible||p,y=g?"_s":"size",b=0,_=function(e,t){if(!p(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!h(e,d)){if(!v(e))return"F";if(!t)return"E";i(e,d,++b)}return"O"+e[d]},w=function(e,t){var n,r=_(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};t.exports={getConstructor:function(e,t,n,i){var l=e(function(e,o){a(e,l,t),e._i=r.create(null),e._f=void 0,e._l=void 0,e[y]=0,void 0!=o&&c(o,n,e[i],e)});return o(l.prototype,{clear:function(){for(var e=this,t=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete t[n.i];e._f=e._l=void 0,e[y]=0},delete:function(e){var t=this,n=w(t,e);if(n){var r=n.n,i=n.p;delete t._i[n.i],n.r=!0,i&&(i.n=r),r&&(r.p=i),t._f==n&&(t._f=r),t._l==n&&(t._l=i),t[y]--}return!!n},forEach:function(e){for(var t,n=s(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!w(this,e)}}),g&&r.setDesc(l.prototype,"size",{get:function(){return u(this[y])}}),l},def:function(e,t,n){var r,i,o=w(e,t);return o?o.v=n:(e._l=o={i:i=_(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[y]++,"F"!==i&&(e._i[i]=o)),e},getEntry:w,setStrong:function(e,t,n){l(e,t,function(e,t){this._t=e,this._k=t,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?f(0,n.k):"values"==t?f(0,n.v):f(0,[n.k,n.v]):(e._t=void 0,f(1))},n?"entries":"values",!n,!0),m(t)}}},{17:17,18:18,19:19,27:27,30:30,31:31,38:38,42:42,44:44,46:46,60:60,65:65,69:69,82:82}],13:[function(e,t,n){var r=e(27),i=e(10);t.exports=function(e){return function(){if(i(this)!=e)throw TypeError(e+"#toJSON isn't generic");var t=[];return r(this,!1,t.push,t),t}}},{10:10,27:27}],14:[function(e,t,n){"use strict"
+;var r=e(31),i=e(60),o=e(4),s=e(38),a=e(69),u=e(27),c=e(8),l=e(30),f=e(82)("weak"),d=Object.isExtensible||s,h=c(5),p=c(6),m=0,g=function(e){return e._l||(e._l=new v)},v=function(){this.a=[]},y=function(e,t){return h(e.a,function(e){return e[0]===t})};v.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},t.exports={getConstructor:function(e,t,n,r){var o=e(function(e,i){a(e,o,t),e._i=m++,e._l=void 0,void 0!=i&&u(i,n,e[r],e)});return i(o.prototype,{delete:function(e){return!!s(e)&&(d(e)?l(e,f)&&l(e[f],this._i)&&delete e[f][this._i]:g(this).delete(e))},has:function(e){return!!s(e)&&(d(e)?l(e,f)&&l(e[f],this._i):g(this).has(e))}}),o},def:function(e,t,n){return d(o(t))?(l(t,f)||r(t,f,{}),t[f][e._i]=n):g(e).set(t,n),e},frozenStore:g,WEAK:f}},{27:27,30:30,31:31,38:38,4:4,60:60,69:69,8:8,82:82}],15:[function(e,t,n){"use strict";var r=e(29),i=e(22),o=e(61),s=e(60),a=e(27),u=e(69),c=e(38),l=e(24),f=e(43),d=e(66);t.exports=function(e,t,n,h,p,m){var g=r[e],v=g,y=p?"set":"add",b=v&&v.prototype,_={},w=function(e){var t=b[e];o(b,e,"delete"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof v&&(m||b.forEach&&!l(function(){(new v).entries().next()}))){var S,E=new v,x=E[y](m?{}:-0,1)!=E,k=l(function(){E.has(1)}),C=f(function(e){new v(e)});C||(v=t(function(t,n){u(t,v,e);var r=new g;return void 0!=n&&a(n,p,r[y],r),r}),v.prototype=b,b.constructor=v),m||E.forEach(function(e,t){S=1/t==-1/0}),(k||S)&&(w("delete"),w("has"),p&&w("get")),(S||x)&&w(y),m&&b.clear&&delete b.clear}else v=h.getConstructor(t,e,p,y),s(v.prototype,n);return d(v,e),_[e]=v,i(i.G+i.W+i.F*(v!=g),_),m||h.setStrong(v,e,p),v}},{22:22,24:24,27:27,29:29,38:38,43:43,60:60,61:61,66:66,69:69}],16:[function(e,t,n){var r=t.exports={version:"1.2.6"};"number"==typeof __e&&(__e=r)},{}],17:[function(e,t,n){var r=e(2);t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},{2:2}],18:[function(e,t,n){t.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},{}],19:[function(e,t,n){t.exports=!e(24)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{24:24}],20:[function(e,t,n){var r=e(38),i=e(29).document,o=r(i)&&r(i.createElement);t.exports=function(e){return o?i.createElement(e):{}}},{29:29,38:38}],21:[function(e,t,n){var r=e(46);t.exports=function(e){var t=r.getKeys(e),n=r.getSymbols;if(n)for(var i,o=n(e),s=r.isEnum,a=0;o.length>a;)s.call(e,i=o[a++])&&t.push(i);return t}},{46:46}],22:[function(e,t,n){var r=e(29),i=e(16),o=e(31),s=e(61),a=e(17),u=function(e,t,n){var c,l,f,d,h=e&u.F,p=e&u.G,m=e&u.S,g=e&u.P,v=e&u.B,y=p?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,b=p?i:i[t]||(i[t]={}),_=b.prototype||(b.prototype={});p&&(n=t);for(c in n)l=!h&&y&&c in y,f=(l?y:n)[c],d=v&&l?a(f,r):g&&"function"==typeof f?a(Function.call,f):f,y&&!l&&s(y,c,f),b[c]!=f&&o(b,c,d),g&&_[c]!=f&&(_[c]=f)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,t.exports=u},{16:16,17:17,29:29,31:31,61:61}],23:[function(e,t,n){var r=e(83)("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},{83:83}],24:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],25:[function(e,t,n){"use strict";var r=e(31),i=e(61),o=e(24),s=e(18),a=e(83);t.exports=function(e,t,n){var u=a(e),c=""[e];o(function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,n(s,u,c)),r(RegExp.prototype,u,2==t?function(e,t){return c.call(e,this,t)}:function(e){return c.call(e,this)}))}},{18:18,24:24,31:31,61:61,83:83}],26:[function(e,t,n){"use strict";var r=e(4);t.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},{4:4}],27:[function(e,t,n){var r=e(17),i=e(40),o=e(35),s=e(4),a=e(79),u=e(84);t.exports=function(e,t,n,c){var l,f,d,h=u(e),p=r(n,c,t?2:1),m=0;if("function"!=typeof h)throw TypeError(e+" is not iterable!");if(o(h))for(l=a(e.length);l>m;m++)t?p(s(f=e[m])[0],f[1]):p(e[m]);else for(d=h.call(e);!(f=d.next()).done;)i(d,p,f.value,t)}},{17:17,35:35,4:4,40:40,79:79,84:84}],28:[function(e,t,n){var r=e(78),i=e(46).getNames,o={}.toString,s="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return i(e)}catch(e){return s.slice()}};t.exports.get=function(e){return s&&"[object Window]"==o.call(e)?a(e):i(r(e))}},{46:46,78:78}],29:[function(e,t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],30:[function(e,t,n){var r={}.hasOwnProperty;t.exports=function(e,t){return r.call(e,t)}},{}],31:[function(e,t,n){var r=e(46),i=e(59);t.exports=e(19)?function(e,t,n){return r.setDesc(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},{19:19,46:46,59:59}],32:[function(e,t,n){t.exports=e(29).document&&document.documentElement},{29:29}],33:[function(e,t,n){t.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},{}],34:[function(e,t,n){var r=e(11);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},{11:11}],35:[function(e,t,n){var r=e(45),i=e(83)("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},{45:45,83:83}],36:[function(e,t,n){var r=e(11);t.exports=Array.isArray||function(e){return"Array"==r(e)}},{11:11}],37:[function(e,t,n){var r=e(38),i=Math.floor;t.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},{38:38}],38:[function(e,t,n){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],39:[function(e,t,n){var r=e(38),i=e(11),o=e(83)("match");t.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},{11:11,38:38,83:83}],40:[function(e,t,n){var r=e(4);t.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},{4:4}],41:[function(e,t,n){"use strict";var r=e(46),i=e(59),o=e(66),s={};e(31)(s,e(83)("iterator"),function(){return this}),t.exports=function(e,t,n){e.prototype=r.create(s,{next:i(1,n)}),o(e,t+" Iterator")}},{31:31,46:46,59:59,66:66,83:83}],42:[function(e,t,n){"use strict";var r=e(48),i=e(22),o=e(61),s=e(31),a=e(30),u=e(45),c=e(41),l=e(66),f=e(46).getProto,d=e(83)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(e,t,n,m,g,v,y){c(n,t,m);var b,_,w=function(e){if(!h&&e in k)return k[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",E="values"==g,x=!1,k=e.prototype,C=k[d]||k["@@iterator"]||g&&k[g],R=C||w(g);if(C){var T=f(R.call(new e));l(T,S,!0),!r&&a(k,"@@iterator")&&s(T,d,p),E&&"values"!==C.name&&(x=!0,R=function(){return C.call(this)})}if(r&&!y||!h&&!x&&k[d]||s(k,d,R),u[t]=R,u[S]=p,g)if(b={values:E?R:w("values"),keys:v?R:w("keys"),entries:E?w("entries"):R},y)for(_ in b)_ in k||o(k,_,b[_]);else i(i.P+i.F*(h||x),t,b);return b}},{22:22,30:30,31:31,41:41,45:45,46:46,48:48,61:61,66:66,83:83}],43:[function(e,t,n){var r=e(83)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}t.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){n=!0},o[r]=function(){return s},e(o)}catch(e){}return n}},{83:83}],44:[function(e,t,n){t.exports=function(e,t){return{value:t,done:!!e}}},{}],45:[function(e,t,n){t.exports={}},{}],46:[function(e,t,n){var r=Object;t.exports={create:r.create,getProto:r.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:r.getOwnPropertyDescriptor,setDesc:r.defineProperty,setDescs:r.defineProperties,getKeys:r.keys,getNames:r.getOwnPropertyNames,getSymbols:r.getOwnPropertySymbols,each:[].forEach}},{}],47:[function(e,t,n){var r=e(46),i=e(78);t.exports=function(e,t){for(var n,o=i(e),s=r.getKeys(o),a=s.length,u=0;a>u;)if(o[n=s[u++]]===t)return n}},{46:46,78:78}],48:[function(e,t,n){t.exports=!1},{}],49:[function(e,t,n){t.exports=Math.expm1||function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}},{}],50:[function(e,t,n){t.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},{}],51:[function(e,t,n){t.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},{}],52:[function(e,t,n){var r,i,o,s=e(29),a=e(75).set,u=s.MutationObserver||s.WebKitMutationObserver,c=s.process,l=s.Promise,f="process"==e(11)(c),d=function(){var e,t,n;for(f&&(e=c.domain)&&(c.domain=null,e.exit());r;)t=r.domain,n=r.fn,t&&t.enter(),n(),t&&t.exit(),r=r.next;i=void 0,e&&e.enter()};if(f)o=function(){c.nextTick(d)};else if(u){var h=1,p=document.createTextNode("");new u(d).observe(p,{characterData:!0}),o=function(){p.data=h=-h}}else o=l&&l.resolve?function(){l.resolve().then(d)}:function(){a.call(s,d)};t.exports=function(e){var t={fn:e,next:void 0,domain:f&&c.domain};i&&(i.next=t),r||(r=t,o()),i=t}},{11:11,29:29,75:75}],53:[function(e,t,n){var r=e(46),i=e(80),o=e(34);t.exports=e(24)(function(){var e=Object.assign,t={},n={},r=Symbol(),i="abcdefghijklmnopqrst";return t[r]=7,i.split("").forEach(function(e){n[e]=e}),7!=e({},t)[r]||Object.keys(e({},n)).join("")!=i})?function(e,t){for(var n=i(e),s=arguments,a=s.length,u=1,c=r.getKeys,l=r.getSymbols,f=r.isEnum;a>u;)for(var d,h=o(s[u++]),p=l?c(h).concat(l(h)):c(h),m=p.length,g=0;m>g;)f.call(h,d=p[g++])&&(n[d]=h[d]);return n}:Object.assign},{24:24,34:34,46:46,80:80}],54:[function(e,t,n){var r=e(22),i=e(16),o=e(24);t.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},{16:16,22:22,24:24}],55:[function(e,t,n){var r=e(46),i=e(78),o=r.isEnum;t.exports=function(e){return function(t){for(var n,s=i(t),a=r.getKeys(s),u=a.length,c=0,l=[];u>c;)o.call(s,n=a[c++])&&l.push(e?[n,s[n]]:s[n]);return l}}},{46:46,78:78}],56:[function(e,t,n){var r=e(46),i=e(4),o=e(29).Reflect;t.exports=o&&o.ownKeys||function(e){var t=r.getNames(i(e)),n=r.getSymbols;return n?t.concat(n(e)):t}},{29:29,4:4,46:46}],57:[function(e,t,n){"use strict";var r=e(58),i=e(33),o=e(2);t.exports=function(){for(var e=o(this),t=arguments.length,n=Array(t),s=0,a=r._,u=!1;t>s;)(n[s]=arguments[s++])===a&&(u=!0);return function(){var r,o=this,s=arguments,c=s.length,l=0,f=0;if(!u&&!c)return i(e,n,o);if(r=n.slice(),u)for(;t>l;l++)r[l]===a&&(r[l]=s[f++]);for(;c>f;)r.push(s[f++]);return i(e,r,o)}}},{2:2,33:33,58:58}],58:[function(e,t,n){t.exports=e(29)},{29:29}],59:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],60:[function(e,t,n){var r=e(61);t.exports=function(e,t){for(var n in t)r(e,n,t[n]);return e}},{61:61}],61:[function(e,t,n){var r=e(29),i=e(31),o=e(82)("src"),s=Function.toString,a=(""+s).split("toString");e(16).inspectSource=function(e){return s.call(e)},(t.exports=function(e,t,n,s){"function"==typeof n&&(n.hasOwnProperty(o)||i(n,o,e[t]?""+e[t]:a.join(String(t))),n.hasOwnProperty("name")||i(n,"name",t)),e===r?e[t]=n:(s||delete e[t],i(e,t,n))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[o]||s.call(this)})},{16:16,29:29,31:31,82:82}],62:[function(e,t,n){t.exports=function(e,t){var n=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,n)}}},{}],63:[function(e,t,n){t.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},{}],64:[function(e,t,n){var r=e(46).getDesc,i=e(38),o=e(4),s=function(e,t){if(o(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,i){try{i=e(17)(Function.call,r(Object.prototype,"__proto__").set,2),i(t,[]),n=!(t instanceof Array)}catch(e){n=!0}return function(e,t){return s(e,t),n?e.__proto__=t:i(e,t),e}}({},!1):void 0),check:s}},{17:17,38:38,4:4,46:46}],65:[function(e,t,n){"use strict";var r=e(29),i=e(46),o=e(19),s=e(83)("species");t.exports=function(e){var t=r[e];o&&t&&!t[s]&&i.setDesc(t,s,{configurable:!0,get:function(){return this}})}},{19:19,29:29,46:46,83:83}],66:[function(e,t,n){var r=e(46).setDesc,i=e(30),o=e(83)("toStringTag");t.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},{30:30,46:46,83:83}],67:[function(e,t,n){var r=e(29),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(e){return i[e]||(i[e]={})}},{29:29}],68:[function(e,t,n){var r=e(4),i=e(2),o=e(83)("species");t.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||void 0==(n=r(s)[o])?t:i(n)}},{2:2,4:4,83:83}],69:[function(e,t,n){t.exports=function(e,t,n){if(!(e instanceof t))throw TypeError(n+": use the 'new' operator!");return e}},{}],70:[function(e,t,n){var r=e(77),i=e(18);t.exports=function(e){return function(t,n){var o,s,a=String(i(t)),u=r(n),c=a.length;return u<0||u>=c?e?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?e?a.charAt(u):o:e?a.slice(u,u+2):s-56320+(o-55296<<10)+65536)}}},{18:18,77:77}],71:[function(e,t,n){var r=e(39),i=e(18);t.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},{18:18,39:39}],72:[function(e,t,n){var r=e(79),i=e(73),o=e(18);t.exports=function(e,t,n,s){var a=String(o(e)),u=a.length,c=void 0===n?" ":String(n),l=r(t);if(l<=u)return a;""==c&&(c=" ");var f=l-u,d=i.call(c,Math.ceil(f/c.length));return d.length>f&&(d=d.slice(0,f)),s?d+a:a+d}},{18:18,73:73,79:79}],73:[function(e,t,n){"use strict";var r=e(77),i=e(18);t.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},{18:18,77:77}],74:[function(e,t,n){var r=e(22),i=e(18),o=e(24),s="\t\n\v\f\r \u2028\u2029\ufeff",a="["+s+"]",u="
",c=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),f=function(e,t){var n={};n[e]=t(d),r(r.P+r.F*o(function(){return!!s[e]()||u[e]()!=u}),"String",n)},d=f.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(l,"")),e};t.exports=f},{18:18,22:22,24:24}],75:[function(e,t,n){var r,i,o,s=e(17),a=e(33),u=e(32),c=e(20),l=e(29),f=l.process,d=l.setImmediate,h=l.clearImmediate,p=l.MessageChannel,m=0,g={},v=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},y=function(e){v.call(e.data)};d&&h||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++m]=function(){a("function"==typeof e?e:Function(e),t)},r(m),m},h=function(e){delete g[e]},"process"==e(11)(f)?r=function(e){f.nextTick(s(v,e,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=y,r=s(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",y,!1)):r="onreadystatechange"in c("script")?function(e){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),v.call(e)}}:function(e){setTimeout(s(v,e,1),0)}),t.exports={set:d,clear:h}},{11:11,17:17,20:20,29:29,32:32,33:33}],76:[function(e,t,n){var r=e(77),i=Math.max,o=Math.min;t.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},{77:77}],77:[function(e,t,n){var r=Math.ceil,i=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?i:r)(e)}},{}],78:[function(e,t,n){var r=e(34),i=e(18);t.exports=function(e){return r(i(e))}},{18:18,34:34}],79:[function(e,t,n){var r=e(77),i=Math.min;t.exports=function(e){return e>0?i(r(e),9007199254740991):0}},{77:77}],80:[function(e,t,n){var r=e(18);t.exports=function(e){return Object(r(e))}},{18:18}],81:[function(e,t,n){var r=e(38);t.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},{38:38}],82:[function(e,t,n){var r=0,i=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+i).toString(36))}},{}],83:[function(e,t,n){var r=e(67)("wks"),i=e(82),o=e(29).Symbol;t.exports=function(e){return r[e]||(r[e]=o&&o[e]||(o||i)("Symbol."+e))}},{29:29,67:67,82:82}],84:[function(e,t,n){var r=e(10),i=e(83)("iterator"),o=e(45);t.exports=e(16).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},{10:10,16:16,45:45,83:83}],85:[function(e,t,n){"use strict";var r,i=e(46),o=e(22),s=e(19),a=e(59),u=e(32),c=e(20),l=e(30),f=e(11),d=e(33),h=e(24),p=e(4),m=e(2),g=e(38),v=e(80),y=e(78),b=e(77),_=e(76),w=e(79),S=e(34),E=e(82)("__proto__"),x=e(8),k=e(7)(!1),C=Object.prototype,R=Array.prototype,T=R.slice,A=R.join,O=i.setDesc,D=i.getDesc,M=i.setDescs,I={};s||(r=!h(function(){return 7!=O(c("div"),"a",{get:function(){return 7}}).a}),i.setDesc=function(e,t,n){if(r)try{return O(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(p(e)[t]=n.value),e},i.getDesc=function(e,t){if(r)try{return D(e,t)}catch(e){}if(l(e,t))return a(!C.propertyIsEnumerable.call(e,t),e[t])},i.setDescs=M=function(e,t){p(e);for(var n,r=i.getKeys(t),o=r.length,s=0;o>s;)i.setDesc(e,n=r[s++],t[n]);return e}),o(o.S+o.F*!s,"Object",{getOwnPropertyDescriptor:i.getDesc,defineProperty:i.setDesc,defineProperties:M});var N="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),j=N.concat("length","prototype"),P=N.length,L=function(){var e,t=c("iframe"),n=P;for(t.style.display="none",u.appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("
-
-
+
+