diff --git a/CHANGELOG.md b/CHANGELOG.md index b000d98efa..1646cc014b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,126 @@ # Change Log -## [0.9.18](https://github.com/HospitalRun/hospitalrun-frontend/tree/0.9.18) +## [1.0.0-beta](https://github.com/HospitalRun/hospitalrun-frontend/tree/1.0.0-beta) (2017-05-18) +[Full Changelog](https://github.com/HospitalRun/hospitalrun-frontend/compare/0.9.18...1.0.0-beta) + +**Implemented enhancements:** + +- New fields requested on the OPD Visit Reports [\#997](https://github.com/HospitalRun/hospitalrun-frontend/issues/997) +- Need to be able to customize invoice header and footer [\#370](https://github.com/HospitalRun/hospitalrun-frontend/issues/370) +- Deployment process [\#238](https://github.com/HospitalRun/hospitalrun-frontend/issues/238) +- Move config from DB to configuration file [\#153](https://github.com/HospitalRun/hospitalrun-frontend/issues/153) +- Exam and procedural notes shortcuts [\#130](https://github.com/HospitalRun/hospitalrun-frontend/issues/130) +- Add the ability to include multiple locations for a received item on entry [\#110](https://github.com/HospitalRun/hospitalrun-frontend/issues/110) +- Philippines need certification of confinement with admitting Diagnosis [\#100](https://github.com/HospitalRun/hospitalrun-frontend/issues/100) +- Result form\(s\) for labs [\#65](https://github.com/HospitalRun/hospitalrun-frontend/issues/65) +- For Ward Charges, need to segregate into separate charge sheets [\#59](https://github.com/HospitalRun/hospitalrun-frontend/issues/59) +- Handle 3rd party payments made after final bill [\#57](https://github.com/HospitalRun/hospitalrun-frontend/issues/57) +- Payment profiles should support specifying a set fee [\#35](https://github.com/HospitalRun/hospitalrun-frontend/issues/35) +- Ordering items from the orthopedic workshop [\#30](https://github.com/HospitalRun/hospitalrun-frontend/issues/30) +- We need to report appointment delinquency [\#27](https://github.com/HospitalRun/hospitalrun-frontend/issues/27) + +**Fixed bugs:** + +- Can't delete patient \(new installation via docker\) [\#1049](https://github.com/HospitalRun/hospitalrun-frontend/issues/1049) +- Syncing for offline use not working [\#731](https://github.com/HospitalRun/hospitalrun-frontend/issues/731) +- Search is not working off-line [\#631](https://github.com/HospitalRun/hospitalrun-frontend/issues/631) + +**Closed issues:** + +- Docker not working on Centos 7. [\#1081](https://github.com/HospitalRun/hospitalrun-frontend/issues/1081) +- Can't visit Users page under Administration \(session expired\), and then locked out of system until cookies are deleted [\#1077](https://github.com/HospitalRun/hospitalrun-frontend/issues/1077) +- translation-sync fails [\#1066](https://github.com/HospitalRun/hospitalrun-frontend/issues/1066) +- Poor calander pop-up [\#1054](https://github.com/HospitalRun/hospitalrun-frontend/issues/1054) +- Error running initcouch2.sh on ubuntu 16.04 [\#1053](https://github.com/HospitalRun/hospitalrun-frontend/issues/1053) +- Missed appointments screen should be removed [\#1047](https://github.com/HospitalRun/hospitalrun-frontend/issues/1047) +- Searching for appointments - search field not labeled correctly. [\#1035](https://github.com/HospitalRun/hospitalrun-frontend/issues/1035) +- Feature Request - Patient role [\#1034](https://github.com/HospitalRun/hospitalrun-frontend/issues/1034) +- Clean up Report Header functions [\#1023](https://github.com/HospitalRun/hospitalrun-frontend/issues/1023) +- Vitals - include the user who entered the information [\#1016](https://github.com/HospitalRun/hospitalrun-frontend/issues/1016) +- Discharge report - use the examiner field from the visit. [\#1014](https://github.com/HospitalRun/hospitalrun-frontend/issues/1014) +- Discharge Report is missing notes field [\#1013](https://github.com/HospitalRun/hospitalrun-frontend/issues/1013) +- Search in docker install [\#1011](https://github.com/HospitalRun/hospitalrun-frontend/issues/1011) +- No Way to Edit Imaging Pricing Type List, [\#1007](https://github.com/HospitalRun/hospitalrun-frontend/issues/1007) +- Visit diagnosis is not being retained; current patient diagnosis is shown [\#999](https://github.com/HospitalRun/hospitalrun-frontend/issues/999) +- Imaging Type should be a Lookup List [\#998](https://github.com/HospitalRun/hospitalrun-frontend/issues/998) +- OPD Visit Report - minor UX changes around view and print [\#996](https://github.com/HospitalRun/hospitalrun-frontend/issues/996) +- Title on new Operative Plan should change after creating one [\#995](https://github.com/HospitalRun/hospitalrun-frontend/issues/995) +- Clicking on "Add Allergy" link on visit page takes you to the patient page [\#994](https://github.com/HospitalRun/hospitalrun-frontend/issues/994) +- \[TRACKING ISSUE\] Docs 1.0 [\#989](https://github.com/HospitalRun/hospitalrun-frontend/issues/989) +- Search function in pricing does not return correct result [\#986](https://github.com/HospitalRun/hospitalrun-frontend/issues/986) +- Use docker-compose to build and run app [\#980](https://github.com/HospitalRun/hospitalrun-frontend/issues/980) +- Tests fail when ran between 23:00 and 00:00 hours \(Eastern, -5:00\) [\#976](https://github.com/HospitalRun/hospitalrun-frontend/issues/976) +- Concider ember-concurrency addon [\#969](https://github.com/HospitalRun/hospitalrun-frontend/issues/969) +- Updating the Demo [\#931](https://github.com/HospitalRun/hospitalrun-frontend/issues/931) +- Spaces in username, during logging [\#922](https://github.com/HospitalRun/hospitalrun-frontend/issues/922) +- Thoughts on PouchDB/CouchDB architecture [\#863](https://github.com/HospitalRun/hospitalrun-frontend/issues/863) +- Make it easy for future translator to identify what phrases are needed to translate [\#862](https://github.com/HospitalRun/hospitalrun-frontend/issues/862) +- Can manually delete required End Date value in a new appointment and still save it [\#817](https://github.com/HospitalRun/hospitalrun-frontend/issues/817) +- class .active on the nav is seen in multiple items at once [\#783](https://github.com/HospitalRun/hospitalrun-frontend/issues/783) +- Build acceptance test for procedures.index [\#703](https://github.com/HospitalRun/hospitalrun-frontend/issues/703) +- Build acceptance test for patients.admitted [\#699](https://github.com/HospitalRun/hospitalrun-frontend/issues/699) +- Build acceptance test for medication.completed [\#697](https://github.com/HospitalRun/hospitalrun-frontend/issues/697) +- Build acceptance test for appointments.missed [\#691](https://github.com/HospitalRun/hospitalrun-frontend/issues/691) +- Build acceptance test for appointments.today [\#690](https://github.com/HospitalRun/hospitalrun-frontend/issues/690) +- Translations of delete messages across the application [\#543](https://github.com/HospitalRun/hospitalrun-frontend/issues/543) +- Patient Id auto increment with page refresh [\#447](https://github.com/HospitalRun/hospitalrun-frontend/issues/447) +- Adjustment types for inventory need to localized [\#390](https://github.com/HospitalRun/hospitalrun-frontend/issues/390) +- Show patient update confirmation as inline alert rather than modal [\#377](https://github.com/HospitalRun/hospitalrun-frontend/issues/377) +- Allow deletion/cancellation of inventory requests [\#334](https://github.com/HospitalRun/hospitalrun-frontend/issues/334) +- Conditionally include New Relic Instrumentation [\#176](https://github.com/HospitalRun/hospitalrun-frontend/issues/176) +- Personas / user research thread... [\#148](https://github.com/HospitalRun/hospitalrun-frontend/issues/148) +- Examining Inventory across the network [\#125](https://github.com/HospitalRun/hospitalrun-frontend/issues/125) +- Submitting an order to HQ from Inventory [\#124](https://github.com/HospitalRun/hospitalrun-frontend/issues/124) +- Generating a purchase order from Inventory [\#123](https://github.com/HospitalRun/hospitalrun-frontend/issues/123) +- Trending reporting for financials [\#106](https://github.com/HospitalRun/hospitalrun-frontend/issues/106) + +**Merged pull requests:** + +- Fix for Dockerfile issues building on CentOs 7. See issue \#1081 [\#1082](https://github.com/HospitalRun/hospitalrun-frontend/pull/1082) ([RonanOD](https://github.com/RonanOD)) +- Offline fixes [\#1080](https://github.com/HospitalRun/hospitalrun-frontend/pull/1080) ([jkleinsc](https://github.com/jkleinsc)) +- 334 delete inventory requests [\#1071](https://github.com/HospitalRun/hospitalrun-frontend/pull/1071) ([StIvEk](https://github.com/StIvEk)) +- Ember build fixes [\#1069](https://github.com/HospitalRun/hospitalrun-frontend/pull/1069) ([tangollama](https://github.com/tangollama)) +- fix translation-sync instruction and script [\#1067](https://github.com/HospitalRun/hospitalrun-frontend/pull/1067) ([mqchau](https://github.com/mqchau)) +- Modified medication model [\#1065](https://github.com/HospitalRun/hospitalrun-frontend/pull/1065) ([hsorellana](https://github.com/hsorellana)) +- HospitalRun electron [\#1058](https://github.com/HospitalRun/hospitalrun-frontend/pull/1058) ([tangollama](https://github.com/tangollama)) +- Text expansion shortcut [\#1057](https://github.com/HospitalRun/hospitalrun-frontend/pull/1057) ([tangollama](https://github.com/tangollama)) +- Update README.md for typos and added links [\#1055](https://github.com/HospitalRun/hospitalrun-frontend/pull/1055) ([lisaychuang](https://github.com/lisaychuang)) +- Update readme to allow windows user run bootstrap script [\#1051](https://github.com/HospitalRun/hospitalrun-frontend/pull/1051) ([ssh24](https://github.com/ssh24)) +- 1047 remove missed appointments [\#1050](https://github.com/HospitalRun/hospitalrun-frontend/pull/1050) ([StIvEk](https://github.com/StIvEk)) +- Documents for Docker-compose [\#1043](https://github.com/HospitalRun/hospitalrun-frontend/pull/1043) ([Anisha1234](https://github.com/Anisha1234)) +- Address issue \#390, Adjustment types for inventory need to be localized [\#1041](https://github.com/HospitalRun/hospitalrun-frontend/pull/1041) ([sweeneydavidj](https://github.com/sweeneydavidj)) +- Fix allergies bug [\#1040](https://github.com/HospitalRun/hospitalrun-frontend/pull/1040) ([adeolabadmus](https://github.com/adeolabadmus)) +- Fix 1023 [\#1039](https://github.com/HospitalRun/hospitalrun-frontend/pull/1039) ([adeolabadmus](https://github.com/adeolabadmus)) +- Automate syncing translation files [\#1037](https://github.com/HospitalRun/hospitalrun-frontend/pull/1037) ([mqchau](https://github.com/mqchau)) +- Conform with Logstash [\#1036](https://github.com/HospitalRun/hospitalrun-frontend/pull/1036) ([adeolabadmus](https://github.com/adeolabadmus)) +- Clarify in README whether installation instructions whether to clone or fork [\#1032](https://github.com/HospitalRun/hospitalrun-frontend/pull/1032) ([jglovier](https://github.com/jglovier)) +- Fix/edit operative plan bug [\#1031](https://github.com/HospitalRun/hospitalrun-frontend/pull/1031) ([Chima1707](https://github.com/Chima1707)) +- Update ember-concurrency to the latest version 🚀 [\#1029](https://github.com/HospitalRun/hospitalrun-frontend/pull/1029) ([greenkeeper[bot]](https://github.com/integration/greenkeeper)) +- Two translated labels fixed [\#1028](https://github.com/HospitalRun/hospitalrun-frontend/pull/1028) ([BogdanAlexandru](https://github.com/BogdanAlexandru)) +- add cashier role in roles [\#1027](https://github.com/HospitalRun/hospitalrun-frontend/pull/1027) ([baoqchau](https://github.com/baoqchau)) +- Fix 1016 [\#1020](https://github.com/HospitalRun/hospitalrun-frontend/pull/1020) ([adeolabadmus](https://github.com/adeolabadmus)) +- Fix 1014 [\#1017](https://github.com/HospitalRun/hospitalrun-frontend/pull/1017) ([adeolabadmus](https://github.com/adeolabadmus)) +- \[WIP\] Docker Compose Added [\#1015](https://github.com/HospitalRun/hospitalrun-frontend/pull/1015) ([Anisha1234](https://github.com/Anisha1234)) +- add appointment today test [\#1012](https://github.com/HospitalRun/hospitalrun-frontend/pull/1012) ([baoqchau](https://github.com/baoqchau)) +- add custom form for labs [\#1009](https://github.com/HospitalRun/hospitalrun-frontend/pull/1009) ([baoqchau](https://github.com/baoqchau)) +- add medication completed test [\#1008](https://github.com/HospitalRun/hospitalrun-frontend/pull/1008) ([baoqchau](https://github.com/baoqchau)) +- Fix reports pod [\#1006](https://github.com/HospitalRun/hospitalrun-frontend/pull/1006) ([adeolabadmus](https://github.com/adeolabadmus)) +- Fix/menu active class [\#1005](https://github.com/HospitalRun/hospitalrun-frontend/pull/1005) ([Chima1707](https://github.com/Chima1707)) +- Fix/space in username [\#1004](https://github.com/HospitalRun/hospitalrun-frontend/pull/1004) ([Chima1707](https://github.com/Chima1707)) +- New OPD Report fields [\#1003](https://github.com/HospitalRun/hospitalrun-frontend/pull/1003) ([adeolabadmus](https://github.com/adeolabadmus)) +- Fix 817 [\#1002](https://github.com/HospitalRun/hospitalrun-frontend/pull/1002) ([adeolabadmus](https://github.com/adeolabadmus)) +- OPD UX Changes [\#1001](https://github.com/HospitalRun/hospitalrun-frontend/pull/1001) ([adeolabadmus](https://github.com/adeolabadmus)) +- add patient admitted test. [\#993](https://github.com/HospitalRun/hospitalrun-frontend/pull/993) ([baoqchau](https://github.com/baoqchau)) +- Refactor delete message translation [\#992](https://github.com/HospitalRun/hospitalrun-frontend/pull/992) ([baoqchau](https://github.com/baoqchau)) +- Button Colour Fixed [\#983](https://github.com/HospitalRun/hospitalrun-frontend/pull/983) ([Anisha1234](https://github.com/Anisha1234)) +- Enhancement/move modal to inline [\#982](https://github.com/HospitalRun/hospitalrun-frontend/pull/982) ([dasManaswini](https://github.com/dasManaswini)) +- Introduce ember-concurrency with examples [\#977](https://github.com/HospitalRun/hospitalrun-frontend/pull/977) ([sukima](https://github.com/sukima)) +- Update ember-fullcalendar to the latest version 🚀 [\#934](https://github.com/HospitalRun/hospitalrun-frontend/pull/934) ([greenkeeper[bot]](https://github.com/integration/greenkeeper)) +- Update ember-pouch to the latest version 🚀 [\#858](https://github.com/HospitalRun/hospitalrun-frontend/pull/858) ([greenkeeper[bot]](https://github.com/integration/greenkeeper)) +- Payment set fee [\#670](https://github.com/HospitalRun/hospitalrun-frontend/pull/670) ([tangollama](https://github.com/tangollama)) + +## [0.9.18](https://github.com/HospitalRun/hospitalrun-frontend/tree/0.9.18) (2017-03-15) [Full Changelog](https://github.com/HospitalRun/hospitalrun-frontend/compare/0.9.17...0.9.18) **Implemented enhancements:** @@ -47,6 +166,7 @@ - Updating documentation about linters. [\#981](https://github.com/HospitalRun/hospitalrun-frontend/pull/981) ([sweeneydavidj](https://github.com/sweeneydavidj)) - Solved issue \#313 - Button not visible properly [\#971](https://github.com/HospitalRun/hospitalrun-frontend/pull/971) ([Anisha1234](https://github.com/Anisha1234)) - Fix typo on README.md \#\# Running with Docker section [\#963](https://github.com/HospitalRun/hospitalrun-frontend/pull/963) ([biasao](https://github.com/biasao)) +- Move modal alert to inline [\#958](https://github.com/HospitalRun/hospitalrun-frontend/pull/958) ([melissahie](https://github.com/melissahie)) - Refactor appointment translations [\#951](https://github.com/HospitalRun/hospitalrun-frontend/pull/951) ([billybonks](https://github.com/billybonks)) - Update translations.js [\#950](https://github.com/HospitalRun/hospitalrun-frontend/pull/950) ([JonanOribe](https://github.com/JonanOribe)) - User role homescreen [\#945](https://github.com/HospitalRun/hospitalrun-frontend/pull/945) ([tangollama](https://github.com/tangollama)) diff --git a/app/mixins/hospitalrun-version.js b/app/mixins/hospitalrun-version.js index 4c7cb45293..e49b183d4f 100644 --- a/app/mixins/hospitalrun-version.js +++ b/app/mixins/hospitalrun-version.js @@ -1,4 +1,4 @@ import Ember from 'ember'; export default Ember.Mixin.create({ - version: '0.9.18' + version: '1.0.0-beta' }); diff --git a/ember-cli-build.js b/ember-cli-build.js index 8b22c0962b..491a56c9c9 100644 --- a/ember-cli-build.js +++ b/ember-cli-build.js @@ -7,6 +7,11 @@ module.exports = function(defaults) { babel: { optional: ['es6.spec.symbols'], includePolyfill: true + }, + minifyJS: { + options: { + exclude: ['**/service-worker.js'] + } } }); diff --git a/package.json b/package.json index ad17361bad..ad60432709 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hospitalrun", - "version": "0.9.18", + "version": "1.0.0-beta", "description": "Ember front end for HospitalRun", "homepage": "http://hospitalrun.io", "directories": { diff --git a/prod/assets/fonts/glyphicons-halflings-regular.eot b/prod/assets/fonts/glyphicons-halflings-regular.eot new file mode 100644 index 0000000000..4a4ca865d6 Binary files /dev/null and b/prod/assets/fonts/glyphicons-halflings-regular.eot differ diff --git a/prod/assets/fonts/glyphicons-halflings-regular.svg b/prod/assets/fonts/glyphicons-halflings-regular.svg new file mode 100644 index 0000000000..e3e2dc739d --- /dev/null +++ b/prod/assets/fonts/glyphicons-halflings-regular.svg @@ -0,0 +1,229 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/prod/assets/fonts/glyphicons-halflings-regular.ttf b/prod/assets/fonts/glyphicons-halflings-regular.ttf new file mode 100644 index 0000000000..67fa00bf83 Binary files /dev/null and b/prod/assets/fonts/glyphicons-halflings-regular.ttf differ diff --git a/prod/assets/fonts/glyphicons-halflings-regular.woff b/prod/assets/fonts/glyphicons-halflings-regular.woff new file mode 100644 index 0000000000..8c54182aa5 Binary files /dev/null and b/prod/assets/fonts/glyphicons-halflings-regular.woff differ diff --git a/prod/assets/fonts/lato-black-webfont.eot b/prod/assets/fonts/lato-black-webfont.eot new file mode 100755 index 0000000000..8fc3c675d6 Binary files /dev/null and b/prod/assets/fonts/lato-black-webfont.eot differ diff --git a/prod/assets/fonts/lato-black-webfont.svg b/prod/assets/fonts/lato-black-webfont.svg new file mode 100755 index 0000000000..8c70a6e84a --- /dev/null +++ b/prod/assets/fonts/lato-black-webfont.svg @@ -0,0 +1,4241 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/prod/assets/fonts/lato-black-webfont.ttf b/prod/assets/fonts/lato-black-webfont.ttf new file mode 100755 index 0000000000..bb3c4af3a7 Binary files /dev/null and b/prod/assets/fonts/lato-black-webfont.ttf differ diff --git a/prod/assets/fonts/lato-black-webfont.woff b/prod/assets/fonts/lato-black-webfont.woff new file mode 100755 index 0000000000..0fdf6c57aa Binary files /dev/null and b/prod/assets/fonts/lato-black-webfont.woff differ diff --git a/prod/assets/fonts/lato-bold-webfont.eot b/prod/assets/fonts/lato-bold-webfont.eot new file mode 100755 index 0000000000..a10e031c25 Binary files /dev/null and b/prod/assets/fonts/lato-bold-webfont.eot differ diff --git a/prod/assets/fonts/lato-bold-webfont.svg b/prod/assets/fonts/lato-bold-webfont.svg new file mode 100755 index 0000000000..80674cfe23 --- /dev/null +++ b/prod/assets/fonts/lato-bold-webfont.svg @@ -0,0 +1,4551 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/prod/assets/fonts/lato-bold-webfont.ttf b/prod/assets/fonts/lato-bold-webfont.ttf new file mode 100755 index 0000000000..bde05149d6 Binary files /dev/null and b/prod/assets/fonts/lato-bold-webfont.ttf differ diff --git a/prod/assets/fonts/lato-bold-webfont.woff b/prod/assets/fonts/lato-bold-webfont.woff new file mode 100755 index 0000000000..c857007ba2 Binary files /dev/null and b/prod/assets/fonts/lato-bold-webfont.woff differ diff --git a/prod/assets/fonts/lato-hairline-webfont.eot b/prod/assets/fonts/lato-hairline-webfont.eot new file mode 100755 index 0000000000..6e69ad45c8 Binary files /dev/null and b/prod/assets/fonts/lato-hairline-webfont.eot differ diff --git a/prod/assets/fonts/lato-hairline-webfont.svg b/prod/assets/fonts/lato-hairline-webfont.svg new file mode 100755 index 0000000000..4fb4b778a2 --- /dev/null +++ b/prod/assets/fonts/lato-hairline-webfont.svg @@ -0,0 +1,4241 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/prod/assets/fonts/lato-hairline-webfont.ttf b/prod/assets/fonts/lato-hairline-webfont.ttf new file mode 100755 index 0000000000..f3261a52a4 Binary files /dev/null and b/prod/assets/fonts/lato-hairline-webfont.ttf differ diff --git a/prod/assets/fonts/lato-hairline-webfont.woff b/prod/assets/fonts/lato-hairline-webfont.woff new file mode 100755 index 0000000000..197c9d29ca Binary files /dev/null and b/prod/assets/fonts/lato-hairline-webfont.woff differ diff --git a/prod/assets/fonts/lato-light-webfont.eot b/prod/assets/fonts/lato-light-webfont.eot new file mode 100755 index 0000000000..54df50c0e9 Binary files /dev/null and b/prod/assets/fonts/lato-light-webfont.eot differ diff --git a/prod/assets/fonts/lato-light-webfont.svg b/prod/assets/fonts/lato-light-webfont.svg new file mode 100755 index 0000000000..7cf9c92433 --- /dev/null +++ b/prod/assets/fonts/lato-light-webfont.svg @@ -0,0 +1,4241 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/prod/assets/fonts/lato-light-webfont.ttf b/prod/assets/fonts/lato-light-webfont.ttf new file mode 100755 index 0000000000..80c7474cd9 Binary files /dev/null and b/prod/assets/fonts/lato-light-webfont.ttf differ diff --git a/prod/assets/fonts/lato-light-webfont.woff b/prod/assets/fonts/lato-light-webfont.woff new file mode 100755 index 0000000000..8742306839 Binary files /dev/null and b/prod/assets/fonts/lato-light-webfont.woff differ diff --git a/prod/assets/fonts/lato-regular-webfont.eot b/prod/assets/fonts/lato-regular-webfont.eot new file mode 100755 index 0000000000..ca87c69c87 Binary files /dev/null and b/prod/assets/fonts/lato-regular-webfont.eot differ diff --git a/prod/assets/fonts/lato-regular-webfont.svg b/prod/assets/fonts/lato-regular-webfont.svg new file mode 100755 index 0000000000..96737afe89 --- /dev/null +++ b/prod/assets/fonts/lato-regular-webfont.svg @@ -0,0 +1,4241 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/prod/assets/fonts/lato-regular-webfont.ttf b/prod/assets/fonts/lato-regular-webfont.ttf new file mode 100755 index 0000000000..1d1c8d24df Binary files /dev/null and b/prod/assets/fonts/lato-regular-webfont.ttf differ diff --git a/prod/assets/fonts/lato-regular-webfont.woff b/prod/assets/fonts/lato-regular-webfont.woff new file mode 100755 index 0000000000..7a5e1cb9e9 Binary files /dev/null and b/prod/assets/fonts/lato-regular-webfont.woff differ diff --git a/prod/assets/fonts/octicons.eot b/prod/assets/fonts/octicons.eot new file mode 100644 index 0000000000..89f55a315c Binary files /dev/null and b/prod/assets/fonts/octicons.eot differ diff --git a/prod/assets/fonts/octicons.svg b/prod/assets/fonts/octicons.svg new file mode 100644 index 0000000000..ea3e0f1615 --- /dev/null +++ b/prod/assets/fonts/octicons.svg @@ -0,0 +1,198 @@ + + + + +(c) 2012-2014 GitHub + +When using the GitHub logos, be sure to follow the GitHub logo guidelines (https://github.com/logos) + +Font License: SIL OFL 1.1 (http://scripts.sil.org/OFL) +Applies to all font files + +Code License: MIT (http://choosealicense.com/licenses/mit/) +Applies to all other files + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/prod/assets/fonts/octicons.ttf b/prod/assets/fonts/octicons.ttf new file mode 100644 index 0000000000..557b893dc5 Binary files /dev/null and b/prod/assets/fonts/octicons.ttf differ diff --git a/prod/assets/fonts/octicons.woff b/prod/assets/fonts/octicons.woff new file mode 100644 index 0000000000..3c0e36ad6f Binary files /dev/null and b/prod/assets/fonts/octicons.woff differ diff --git a/prod/assets/hospitalrun-7be696a72f5a47e59649827830e22e86.css b/prod/assets/hospitalrun-7be696a72f5a47e59649827830e22e86.css deleted file mode 100644 index 9927688f65..0000000000 --- a/prod/assets/hospitalrun-7be696a72f5a47e59649827830e22e86.css +++ /dev/null @@ -1,6 +0,0 @@ -/*! - * MAIN BOOTSTRAP - * Bootstrap v3.1.1 (http://getbootstrap.com) - * Copyright 2011-2014 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - *//*! normalize.css v3.0.0 | MIT License | git.io/normalize */button,select{text-transform:none}hr,img{border:0}a:focus,a:hover{color:#2a6496;text-decoration:underline}body,figure{margin:0}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.carousel-indicators,.dropdown-menu,.list-inline,.list-reset,.list-style-none,.list-unstyled,.media-list,.nav,.pager{list-style:none}.break-word,pre{word-wrap:break-word}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:0 0}a:active,a:hover{outline:0}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0}mark{color:#000;background:#ff0}sub{bottom:-.25em}sup{top:-.5em}img{vertical-align:middle}svg:not(:root){overflow:hidden}hr{height:0;-moz-box-sizing:content-box;box-sizing:content-box}.border-box,.col,.col-right{box-sizing:border-box}pre,textarea{overflow:auto}code,kbd,pre,samp{font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}.glyphicon,address,cite{font-style:normal}button{overflow:visible}.caps,.form-signin-heading,.form-signin-heading::first-letter,.initialism{text-transform:uppercase}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner{padding:0;border:0}input::-moz-focus-inner{padding:0;border:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}@media print{blockquote,img,pre,tr{page-break-inside:avoid}*{color:#000!important;text-shadow:none!important;background:0 0!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{border:1px solid #999}thead{display:table-header-group}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff!important}.navbar{display:none}.table td,.table th{background-color:#fff!important}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}.btn,.btn-danger.active,.btn-danger:active,.btn-default.active,.btn-default:active,.btn-info.active,.btn-info:active,.btn-primary.active,.btn-primary:active,.btn-warning.active,.btn-warning:active,.btn.active,.btn:active,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover,.form-control,.navbar-toggle,.open .dropdown-toggle.btn-danger,.open .dropdown-toggle.btn-default,.open .dropdown-toggle.btn-info,.open .dropdown-toggle.btn-primary,.open .dropdown-toggle.btn-warning{background-image:none}*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:62.5%;-webkit-tap-highlight-color:transparent}body{font-family:lato-webfont,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#2f4358;background-color:#2e4359}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#428bca;text-decoration:none}a:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}select[multiple],select[size],textarea.form-control{height:auto}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#999}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}dt,label{font-weight:700}address,blockquote .small,blockquote footer,blockquote small,dd,dt,output,pre{line-height:1.42857143}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-muted{color:#999}.text-primary{color:#428bca}a.text-primary:hover{color:#3071a9}.text-success{color:#3c763d}a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#428bca}a.bg-primary:hover{background-color:#3071a9}.bg-success{background-color:#dff0d8}a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:hover{background-color:#e4b9b9}pre code,table{background-color:transparent}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}dl,ol,ul{margin-top:0}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child,ol ol,ol ul,ul ol,ul ul{margin-bottom:0}address,dl{margin-bottom:20px}ol,ul{margin-bottom:10px}.list-unstyled{padding-left:0}.list-inline{padding-left:0;margin-left:-5px}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}.container{width:750px}}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.form-horizontal .form-group:after,.modal-footer:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #999}.initialism{font-size:90%}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;color:#999}legend,pre{display:block;color:#333}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}code,kbd{padding:2px 4px;font-size:90%}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}blockquote:after,blockquote:before{content:""}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{color:#c7254e;white-space:nowrap;background-color:#f9f2f4;border-radius:4px}kbd{color:#fff;background-color:#333;border-radius:3px;box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}pre{padding:9.5px;margin:0 0 10px;font-size:13px;word-break:break-all;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container,.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:0}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:0}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:0}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:0}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:0}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:0}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:0}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:0}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{max-width:100%}th{text-align:left}.table{width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th,.table>tr>td,.table>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered,.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-child(odd)>td,.table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.table-hover>tbody>tr:hover>td,.table-hover>tbody>tr:hover>th,.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}@media (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-x:scroll;overflow-y:hidden;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset,legend{padding:0;border:0}fieldset{min-width:0;margin:0}legend{width:100%;margin-bottom:20px;font-size:21px;line-height:inherit;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-bottom:5px}.checkbox,.form-control,.radio,input[type=file],output{display:block}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px\9;line-height:normal}input[type=range]{display:block;width:100%}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}output{padding-top:7px;font-size:14px;color:#555}.form-control{width:100%;padding:6px 12px;font-size:16px;line-height:2;color:#555;background-color:#fff;border-radius:3px;-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder,.form-control::-webkit-input-placeholder{color:#999}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .form-control-feedback,.has-success .help-block,.has-success .radio,.has-success .radio-inline{color:#3c763d}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee;opacity:1}input[type=date]{line-height:34px}.form-group{margin-bottom:15px}.checkbox,.radio{min-height:20px;padding-left:20px;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{display:inline;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{float:left;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}.checkbox-inline[disabled],.checkbox[disabled],.radio-inline[disabled],.radio[disabled],fieldset[disabled] .checkbox,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio,fieldset[disabled] .radio-inline,fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox][disabled],input[type=radio][disabled]{cursor:not-allowed}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.has-feedback .form-control-feedback{position:absolute;top:25px;right:0;display:block;width:34px;height:34px;line-height:34px;text-align:center}.collapsing,.dropdown,.glyphicon{position:relative}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .form-control-feedback,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .form-control-feedback,.has-error .help-block,.has-error .radio,.has-error .radio-inline{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.form-control-static{margin-bottom:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .checkbox,.form-inline .form-control,.form-inline .form-group,.form-inline .radio{display:inline-block;vertical-align:middle}.form-inline .control-label,.form-inline .form-group{margin-bottom:0;vertical-align:middle}.form-inline .form-control{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .checkbox,.form-inline .radio{padding-left:0;margin-top:0;margin-bottom:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{float:none;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}.form-horizontal .control-label{text-align:right}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .control-label,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}.form-horizontal .form-control-static{padding-top:7px}.form-horizontal .has-feedback .form-control-feedback{top:0;right:15px}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;border-radius:4px}.btn.active:focus,.btn:active:focus,.btn:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{pointer-events:none;cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}.btn-default{color:#333}.btn-default.active,.btn-default:active,.btn-default:focus,.btn-default:hover,.open .dropdown-toggle.btn-default{color:#333;background-color:#ebebeb;border-color:#adadad}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;border:none}.btn-primary.active,.btn-primary:active,.btn-primary:focus,.btn-primary:hover{color:#fff}.open .dropdown-toggle.btn-primary{color:#fff;background-color:#3276b1;border-color:#285e8e}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#428bca;border-color:#357ebd}.btn-primary .badge{color:#428bca;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c}.btn-success.active,.btn-success:active,.btn-success:focus,.btn-success:hover,.open .dropdown-toggle.btn-success{color:#fff;background-color:#47a447;border-color:#398439}.btn-success.active,.btn-success:active,.open .dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de}.btn-info.active,.btn-info:active,.btn-info:focus,.btn-info:hover,.open .dropdown-toggle.btn-info{color:#fff;background-color:#39b3d7;border-color:#269abc}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e}.btn-warning.active,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.open .dropdown-toggle.btn-warning{color:#fff;background-color:#ed9c28;border-color:#d58512}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f}.btn-danger.active,.btn-danger:active,.btn-danger:focus,.btn-danger:hover,.open .dropdown-toggle.btn-danger{color:#fff;background-color:#d2322d;border-color:#ac2925}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#428bca;cursor:pointer;border-radius:0;background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#2a6496;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#999;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:3px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%;padding-right:0;padding-left:0}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}.caret,.glyphicon{display:inline-block}.collapsing{height:0;overflow:hidden;-webkit-transition:height .35s ease;transition:height .35s ease}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format("embedded-opentype"),url(../fonts/glyphicons-halflings-regular.woff) format("woff"),url(../fonts/glyphicons-halflings-regular.ttf) format("truetype"),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format("svg")}.glyphicon{top:1px;font-family:'Glyphicons Halflings';font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.caret{width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu-right,.dropdown-menu.pull-right{right:0;left:auto}.dropdown-header,.dropdown-menu>li>a{display:block;padding:3px 20px;line-height:1.42857143}.btn-group-vertical>.btn:not(:first-child):not(:last-child),.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn,.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{clear:both;font-weight:400;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#999}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-left{right:auto;left:0}.dropdown-header{font-size:12px;color:#999}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover,.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px solid}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.nav-justified>.dropdown .dropdown-menu,.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn:focus,.btn-group>.btn:focus{outline:0}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn .caret,.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:first-child>.btn:last-child,.btn-group>.btn-group:first-child>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active{outline:0}.btn-group.open .dropdown-toggle{outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-lg .caret{border-width:5px 5px 0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{display:block;width:100%;max-width:100%;float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group,.input-group-btn>.btn+.btn{margin-left:-1px}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}[data-toggle=buttons]>.btn>input[type=checkbox],[data-toggle=buttons]>.btn>input[type=radio]{display:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.nav>li,.nav>li>a{display:block;position:relative}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.nav{padding-left:0;margin-bottom:0;font-size:16px}.nav>li>a{padding:10px 15px}.nav>li.disabled>a{color:#999}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#999;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#428bca}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center;margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0;border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-justified>li,.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;margin-bottom:20px;border:1px solid transparent}.navbar-collapse{max-height:340px;padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar{border-radius:4px}.navbar-header{float:left}.navbar-collapse{width:auto;border-top:0;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.media,.media-body,.modal-open,.progress{overflow:hidden}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}.navbar-static-top{z-index:1000;border-width:0 0 1px}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}.navbar-fixed-bottom,.navbar-fixed-top,.navbar-static-top{border-radius:0}.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.breadcrumb>li,.pagination{display:inline-block}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}.progress-striped .progress-bar,.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}.navbar-nav.navbar-right:last-child{margin-right:-15px}.navbar-left{float:left!important}.navbar-right{float:right!important}}.navbar-form{padding:10px 15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);margin:8px -15px}@media (min-width:768px){.navbar-form .checkbox,.navbar-form .form-control,.navbar-form .form-group,.navbar-form .radio{display:inline-block;vertical-align:middle}.navbar-form .control-label,.navbar-form .form-group{margin-bottom:0;vertical-align:middle}.navbar-form .input-group>.form-control{width:100%}.navbar-form .checkbox,.navbar-form .radio{padding-left:0;margin-top:0;margin-bottom:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{float:none;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-form.navbar-right:last-child{margin-right:-15px}}.btn .badge,.btn .label{top:-1px;position:relative}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}.navbar-text.navbar-right:last-child{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-nav>li>a,.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#999}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>li>a,.navbar-inverse .navbar-text{color:#999}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-link{color:#999}.navbar-inverse .navbar-link:hover{color:#fff}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#999}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#999}.pagination{padding-left:0;margin:20px 0;border-radius:4px}.pager li,.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#428bca;text-decoration:none;background-color:#fff;border:1px solid #ddd}.badge,.label{font-weight:700;line-height:1;text-align:center;vertical-align:baseline;white-space:nowrap}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{color:#2a6496;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:2;color:#fff;cursor:default;background-color:#428bca;border-color:#428bca}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#999;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#999;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;color:#fff;border-radius:.25em}.label[href]:focus,.label[href]:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.label-default{background-color:#999}.label-default[href]:focus,.label-default[href]:hover{background-color:grey}.label-primary{background-color:#428bca}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#3071a9}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;color:#fff;background-color:#999;border-radius:10px}.badge:empty{display:none}.media-object,.thumbnail{display:block}.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}a.list-group-item.active>.badge{color:#428bca;background-color:#fff}.jumbotron,.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron{padding:30px;margin-bottom:30px;background-color:#eee}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.alert,.thumbnail{margin-bottom:20px}.alert .alert-link,.close{font-weight:700}.container .jumbotron{border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#428bca}.thumbnail .caption{padding:9px;color:#333}.alert h4{margin-top:0;color:inherit}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable{padding-right:35px}.alert-dismissable .close{position:relative;top:-2px;right:-21px;color:inherit}.modal,.modal-backdrop{right:0;bottom:0;left:0}.alert-success{color:#3c763d;background-color:#dff0d8}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#428bca;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;transition:width .6s ease}.close,.list-group-item>.badge{float:right}.progress-striped .progress-bar{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:40px 40px}.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-striped .progress-bar-info,.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media,.media-body{zoom:1}.media,.media .media{margin-top:15px}.media:first-child{margin-top:0}.media-heading{margin:0 0 5px}.media>.pull-left{margin-right:10px}.media>.pull-right{margin-left:10px}.media-list{padding-left:0}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.list-group-item>.badge+.badge{margin-right:5px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover{text-decoration:none;background-color:#f5f5f5}a.list-group-item.active,a.list-group-item.active:focus,a.list-group-item.active:hover{z-index:2;color:#fff;background-color:#428bca;border-color:#428bca}a.list-group-item.active .list-group-item-heading,a.list-group-item.active:focus .list-group-item-heading,a.list-group-item.active:hover .list-group-item-heading{color:inherit}a.list-group-item.active .list-group-item-text,a.list-group-item.active:focus .list-group-item-text,a.list-group-item.active:hover .list-group-item-text{color:#e1edf7}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.panel-heading>.dropdown .dropdown-toggle,.panel-title,.panel-title>a{color:inherit}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.close{line-height:1}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px}.panel-title,.panel>.list-group,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel-body{padding:15px}.panel-heading{border-radius:3px}.panel-title{margin-top:0}.panel-footer{padding:10px 15px;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel-group .panel-heading,.panel>.list-group:last-child .list-group-item:last-child,.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.list-group:last-child .list-group-item:last-child,.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-left-radius:3px;border-bottom-right-radius:3px}.panel>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive{border-top:1px solid #ddd}.panel-group .panel-footer,.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;overflow:hidden;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default>.panel-heading+.panel-collapse .panel-body{border-top-color:#ddd}.panel-default>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ddd}.panel-primary>.panel-heading{color:#fff;background-color:#428bca;border-color:#428bca}.panel-primary>.panel-heading+.panel-collapse .panel-body{border-top-color:#428bca}.panel-primary>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#428bca}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse .panel-body{border-top-color:#d6e9c6}.panel-success>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse .panel-body{border-top-color:#bce8f1}.panel-info>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse .panel-body{border-top-color:#faebcc}.panel-warning>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse .panel-body{border-top-color:#ebccd1}.panel-danger>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ebccd1}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{font-size:21px;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.carousel-caption,.carousel-control{text-shadow:0 1px 2px rgba(0,0,0,.6)}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-content,.popover{background-clip:padding-box}.modal{position:fixed;top:0;z-index:1050;display:none;overflow:auto;overflow-y:scroll;-webkit-overflow-scrolling:touch;outline:0}.carousel-inner,.hide,.overflow-hidden{overflow:hidden}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);transform:translate(0,0)}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.carousel-control,.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{min-height:16.43px;padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:20px}.popover,.tooltip,.tooltip-arrow{position:absolute}.modal-footer{padding:19px 20px 20px;margin-top:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{z-index:1030;display:block;font-size:12px;line-height:1.4;visibility:visible;filter:alpha(opacity=0);opacity:0}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px}.tooltip-arrow{width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow,.tooltip.top-left .tooltip-arrow,.tooltip.top-right .tooltip-arrow{bottom:0;border-width:5px 5px 0;border-top-color:#000}.tooltip.top .tooltip-arrow{left:50%;margin-left:-5px}.tooltip.top-left .tooltip-arrow{left:5px}.tooltip.top-right .tooltip-arrow{right:5px}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow,.tooltip.bottom-left .tooltip-arrow,.tooltip.bottom-right .tooltip-arrow{border-width:0 5px 5px;border-bottom-color:#000;top:0}.tooltip.bottom .tooltip-arrow{left:50%;margin-left:-5px}.tooltip.bottom-left .tooltip-arrow{left:5px}.tooltip.bottom-right .tooltip-arrow{right:5px}.popover{top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;white-space:normal;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2)}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover-content{padding:9px 14px}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.carousel,.carousel-inner{position:relative}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.left>.arrow:after,.popover.right>.arrow:after{bottom:-10px;content:" "}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{left:1px;border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;border-right-width:0;border-left-color:#fff}.carousel-inner{width:100%}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center}.carousel-control.left{background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,.5) 0),color-stop(rgba(0,0,0,.0001) 100%));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,.0001) 0),color-stop(rgba(0,0,0,.5) 100%));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000\9;background-color:transparent;border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center}.alert-info,.carousel-caption .btn,.text-hide{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-15px;margin-left:-15px;font-size:30px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.hidden,.visible-lg,.visible-md,.visible-print,.visible-sm,.visible-xs{display:none!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;background-color:transparent;border:0}.hidden{visibility:hidden!important}.affix{position:fixed}@-ms-viewport{width:device-width}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}.hidden-lg{display:none!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media print{.visible-print{display:block!important}table.visible-print{display:table}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}.hidden-print{display:none!important}}@font-face{font-family:lato-webfont;font-weight:400;font-style:normal;src:url(/fonts/lato-regular-webfont.eot);src:url(/fonts/lato-regular-webfont.eot?#iefix) format("embedded-opentype"),url(/fonts/lato-regular-webfont.woff) format("woff"),url(/fonts/lato-regular-webfont.ttf) format("truetype"),url(/fonts/lato-regular-webfont.svg#latoregular) format("svg")}@font-face{font-family:lato-webfont;font-weight:300;font-style:normal;src:url(/fonts/lato-light-webfont.eot);src:url(/fonts/lato-light-webfont.eot?#iefix) format("embedded-opentype"),url(/fonts/lato-light-webfont.woff) format("woff"),url(/fonts/lato-light-webfont.ttf) format("truetype"),url(/fonts/lato-light-webfont.svg#latolight) format("svg")}@font-face{font-family:lato-webfont;font-weight:100;font-style:normal;src:url(/fonts/lato-hairline-webfont.eot);src:url(/fonts/lato-hairline-webfont.eot?#iefix) format("embedded-opentype"),url(/fonts/lato-hairline-webfont.woff) format("woff"),url(/fonts/lato-hairline-webfont.ttf) format("truetype"),url(/fonts/lato-hairline-webfont.svg#latohairline) format("svg")}@font-face{font-family:lato-webfont;font-weight:700;font-style:normal;src:url(/fonts/lato-bold-webfont.eot);src:url(/fonts/lato-bold-webfont.eot?#iefix) format("embedded-opentype"),url(/fonts/lato-bold-webfont.woff) format("woff"),url(/fonts/lato-bold-webfont.ttf) format("truetype"),url(/fonts/lato-bold-webfont.svg#latobold) format("svg")}@font-face{font-family:lato-webfont;font-weight:900;font-style:normal;src:url(/fonts/lato-black-webfont.eot);src:url(/fonts/lato-black-webfont.eot?#iefix) format("embedded-opentype"),url(/fonts/lato-black-webfont.woff) format("woff"),url(/fonts/lato-black-webfont.ttf) format("truetype"),url(/fonts/lato-black-webfont.svg#latoblack) format("svg")}body{background:#eff2f5}body.ember-application{padding-left:275px}.clickable{cursor:pointer}.modal-dialog{color:#2e4359}.not-editable{opacity:.5;background-color:rgba(217,217,217,.5);cursor:default}.view-top-bar{margin:0;border-bottom:1px solid #d2dae3;background:#fff;padding:0 15px;height:55px}.view-current-title{float:left;margin:0;line-height:55px;letter-spacing:-1px;color:#2f4358;font-size:28px;font-weight:600}.panel-primary{position:relative;border:0;background-color:#fff;color:#2f4358}.panel-primary input,.panel-primary select,.panel-primary textarea{background:rgba(219,235,255,.2)}.panel-default{border:0;border-radius:0;background-color:transparent}.panel-default>.panel-heading{border:0;border-radius:0;background-color:transparent;padding:0;color:#2e4359}.panel-heading{background-color:#e9f3ff;padding:10px 15px;color:#2e4359}.detail-section-content{padding:15px 0}.detail-section-content .table{margin-top:-15px}.table-header>th{border-top:0;font-weight:300}.report-header{display:none}@media print{*{background-color:#fff;color:#000;font-size:14px}.panel-default,.panel-primary{position:absolute;left:0;margin:0 5%;width:90%}.report-header{display:block;border-bottom:1px solid #d2dae3;padding:10px 0;text-align:center}.btn,.nav,.panel-footer,.print-hide,.view-current-title,.view-sub-bar,.view-top-bar{display:none}.patient-history-heading{border-bottom:1px solid #000}.report-logo{height:60px}.report .patient-summary{margin-bottom:20px;border-bottom:1px solid #d2dae3}.report input{border:0;padding:5px;font-size:.8em}.report select{outline:0;border:0;text-overflow:'';-moz-appearance:none;-webkit-appearance:none}.report .panel-primary{position:absolute;left:0;margin:0;width:100%}}.ml0,.mx0{margin-left:0}.mr0,.mx0{margin-right:0}.mt0,.my0{margin-top:0}.mb0,.my0{margin-bottom:0}.pl0,.px0{padding-left:0}.pr0,.px0{padding-right:0}.pt0,.py0{padding-top:0}.pb0,.py0{padding-bottom:0}.align-baseline{vertical-align:baseline}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.border{border-style:solid;border-width:var(--border-width)}.border-top{border-top-style:solid;border-top-width:var(--border-width)}.border-right{border-right-style:solid;border-right-width:var(--border-width)}.border-bottom{border-bottom-style:solid;border-bottom-width:var(--border-width)}.border-left{border-left-style:solid;border-left-width:var(--border-width)}.border-none{border:0}.rounded{border-radius:var(--border-radius)}.circle{border-radius:50%}.rounded-top{border-radius:var(--border-radius) var(--border-radius) 0 0}.rounded-right{border-radius:0 var(--border-radius) var(--border-radius) 0}.rounded-bottom{border-radius:0 0 var(--border-radius) var(--border-radius)}.rounded-left{border-radius:var(--border-radius) 0 0 var(--border-radius)}.not-rounded{border-radius:0}:root{--border-width:1px;--border-radius:3px;--width-1:24rem;--width-2:32rem;--width-3:48rem;--width-4:64rem;--space-1:.5rem;--space-2:1rem;--space-3:2rem;--space-4:4rem;--z1:1;--z2:2;--z3:3;--z4:4;--h1:2rem;--h2:1.5rem;--h3:1.25rem;--h4:1rem;--h5:.875rem;--h6:.75rem;--line-height-1:1;--line-height-2:1.125;--line-height-3:1.25;--line-height-4:1.5;--letter-spacing:1;--caps-letter-spacing:.2em;--bold-font-weight:bold}.flex{display:flex}.flex-column{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-baseline{align-self:baseline}.self-stretch{align-self:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.content-start{align-content:flex-start}.content-end{align-content:flex-end}.content-center{align-content:center}.content-between{align-content:space-between}.content-around{align-content:space-around}.content-stretch{align-content:stretch}.flex-auto{flex:1 1 auto;min-width:0;min-height:0}.flex-none{flex:none}.order-0{order:0}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-last{order:99999}@custom-media --breakpoint-sm (min-width: 40em);@custom-media --breakpoint-md (min-width: 52em);@custom-media --breakpoint-lg (min-width: 64em);.col{float:left}.col-right{float:right}.col-1{width:calc(1/12 * 100%)}.col-2{width:calc(2/12 * 100%)}.col-3{width:calc(3/12 * 100%)}.col-4{width:calc(4/12 * 100%)}.col-5{width:calc(5/12 * 100%)}.col-6{width:calc(6/12 * 100%)}.col-7{width:calc(7/12 * 100%)}.col-8{width:calc(8/12 * 100%)}.col-9{width:calc(9/12 * 100%)}.col-10{width:calc(10/12 * 100%)}.col-11{width:calc(11/12 * 100%)}.col-12{width:100%}@media (--breakpoint-sm){.sm-flex{display:flex}.sm-col,.sm-col-right{box-sizing:border-box}.sm-col{float:left}.sm-col-right{float:right}.sm-col-1{width:calc(1/12 * 100%)}.sm-col-2{width:calc(2/12 * 100%)}.sm-col-3{width:calc(3/12 * 100%)}.sm-col-4{width:calc(4/12 * 100%)}.sm-col-5{width:calc(5/12 * 100%)}.sm-col-6{width:calc(6/12 * 100%)}.sm-col-7{width:calc(7/12 * 100%)}.sm-col-8{width:calc(8/12 * 100%)}.sm-col-9{width:calc(9/12 * 100%)}.sm-col-10{width:calc(10/12 * 100%)}.sm-col-11{width:calc(11/12 * 100%)}.sm-col-12{width:100%}}@media (--breakpoint-md){.md-flex{display:flex}.md-col,.md-col-right{box-sizing:border-box}.md-col{float:left}.md-col-right{float:right}.md-col-1{width:calc(1/12 * 100%)}.md-col-2{width:calc(2/12 * 100%)}.md-col-3{width:calc(3/12 * 100%)}.md-col-4{width:calc(4/12 * 100%)}.md-col-5{width:calc(5/12 * 100%)}.md-col-6{width:calc(6/12 * 100%)}.md-col-7{width:calc(7/12 * 100%)}.md-col-8{width:calc(8/12 * 100%)}.md-col-9{width:calc(9/12 * 100%)}.md-col-10{width:calc(10/12 * 100%)}.md-col-11{width:calc(11/12 * 100%)}.md-col-12{width:100%}}@media (--breakpoint-lg){.lg-flex{display:flex}.lg-col,.lg-col-right{box-sizing:border-box}.lg-col{float:left}.lg-col-right{float:right}.lg-col-1{width:calc(1/12 * 100%)}.lg-col-2{width:calc(2/12 * 100%)}.lg-col-3{width:calc(3/12 * 100%)}.lg-col-4{width:calc(4/12 * 100%)}.lg-col-5{width:calc(5/12 * 100%)}.lg-col-6{width:calc(6/12 * 100%)}.lg-col-7{width:calc(7/12 * 100%)}.lg-col-8{width:calc(8/12 * 100%)}.lg-col-9{width:calc(9/12 * 100%)}.lg-col-10{width:calc(10/12 * 100%)}.lg-col-11{width:calc(11/12 * 100%)}.lg-col-12{width:100%}.lg-hide{display:none!important}}@custom-media --breakpoint-sm (min-width: 40em);@custom-media --breakpoint-md (min-width: 52em);@custom-media --breakpoint-lg (min-width: 64em);.hide{position:absolute!important;height:1px;width:1px;clip:rect(1px,1px,1px,1px)}@media (--breakpoint-xs){.xs-hide{display:none!important}}@media (--breakpoint-sm-md){.sm-hide{display:none!important}}@media (--breakpoint-md-lg){.md-hide{display:none!important}}.display-none{display:none!important}@custom-media --breakpoint-xs (max-width: 40em);@custom-media --breakpoint-sm-md (min-width: 40em) and (max-width: 52em);@custom-media --breakpoint-md-lg (min-width: 52em) and (max-width: 64em);@custom-media --breakpoint-lg (min-width: 64em);.inline{display:inline}.block{display:block}.inline-block{display:inline-block}.table{display:table}.table-cell{display:table-cell}.overflow-scroll{overflow:scroll}.overflow-auto{overflow:auto}.clearfix:after,.clearfix:before{content:" ";display:table}.left{float:left}.btn.align-right,.right{float:right}.fit{max-width:100%}.max-width-1{max-width:var(--width-1)}.max-width-2{max-width:var(--width-2)}.max-width-3{max-width:var(--width-3)}.max-width-4{max-width:var(--width-4)}.m0{margin:0}.ml1,.mx1{margin-left:var(--space-1)}.mr1,.mx1{margin-right:var(--space-1)}.mt1,.my1{margin-top:var(--space-1)}.mb1,.my1{margin-bottom:var(--space-1)}.m1{margin:var(--space-1)}.ml2,.mx2{margin-left:var(--space-2)}.mr2,.mx2{margin-right:var(--space-2)}.mt2,.my2{margin-top:var(--space-2)}.mb2,.my2{margin-bottom:var(--space-2)}.m2{margin:var(--space-2)}.ml3,.mx3{margin-left:var(--space-3)}.mr3,.mx3{margin-right:var(--space-3)}.mt3,.my3{margin-top:var(--space-3)}.mb3,.my3{margin-bottom:var(--space-3)}.m3{margin:var(--space-3)}.ml4,.mx4{margin-left:var(--space-4)}.mr4,.mx4{margin-right:var(--space-4)}.mt4,.my4{margin-top:var(--space-4)}.mb4,.my4{margin-bottom:var(--space-4)}.m4{margin:var(--space-4)}.mxn1{margin-left:-var(--space-1);margin-right:-var(--space-1)}.mxn2{margin-left:-var(--space-2);margin-right:-var(--space-2)}.mxn3{margin-left:-var(--space-3);margin-right:-var(--space-3)}.mxn4{margin-left:-var(--space-4);margin-right:-var(--space-4)}.ml-auto,.mx-auto{margin-left:auto}.mr-auto,.mx-auto{margin-right:auto}.p0{padding:0}.pl1,.px1{padding-left:var(--space-1)}.pr1,.px1{padding-right:var(--space-1)}.pt1,.py1{padding-top:var(--space-1)}.pb1,.py1{padding-bottom:var(--space-1)}.p1{padding:var(--space-1)}.pt2,.py2{padding-top:var(--space-2)}.pb2,.py2{padding-bottom:var(--space-2)}.pl2,.px2{padding-left:var(--space-2)}.pr2,.px2{padding-right:var(--space-2)}.p2{padding:var(--space-2)}.pt3,.py3{padding-top:var(--space-3)}.pb3,.py3{padding-bottom:var(--space-3)}.pl3,.px3{padding-left:var(--space-3)}.pr3,.px3{padding-right:var(--space-3)}.p3{padding:var(--space-3)}.pt4,.py4{padding-top:var(--space-4)}.pb4,.py4{padding-bottom:var(--space-4)}.pl4,.px4{padding-left:var(--space-4)}.pr4,.px4{padding-right:var(--space-4)}.p4{padding:var(--space-4)}.relative{position:relative}.absolute{position:absolute}.fixed{position:fixed}.top-0{top:0}.right-0{right:0}.bottom-0{bottom:0}.left-0{left:0}.z1{z-index:var(--z1)}.z2{z-index:var(--z2)}.z3{z-index:var(--z3)}.z4{z-index:var(--z4)}.h1{font-size:var(--h1)}.h2{font-size:var(--h2)}.h3{font-size:var(--h3)}.h4{font-size:var(--h4)}.h5{font-size:var(--h5)}.h6{font-size:var(--h6)}.font-family-inherit{font-family:inherit}.font-size-inherit{font-size:inherit}.text-decoration-none{text-decoration:none}.bold{font-weight:var(--bold-font-weight,bold)}.regular{font-weight:400}.italic{font-style:italic}.caps{letter-spacing:var(--caps-letter-spacing)}.left-align{text-align:left}.center{text-align:center}.right-align{text-align:right}.justify{text-align:justify}.nowrap{white-space:nowrap}.line-height-1{line-height:var(--line-height-1)}.line-height-2{line-height:var(--line-height-2)}.line-height-3{line-height:var(--line-height-3)}.line-height-4{line-height:var(--line-height-4)}.underline{text-decoration:underline}.truncate{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-reset{padding-left:0}.alert{border:0;border-radius:3px;padding:12px}.alert-success{border-color:#b2dba1;background-image:linear-gradient(to bottom,#dff0d8 0,#c8e5bc 100%);background-repeat:repeat-x}.alert-info{border:0;box-shadow:none;background:#ffffe4;color:rgba(83,83,75,.7)}.alert-warning,.btn-danger,.btn-info,.btn-success,.btn-warning,.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{background-repeat:repeat-x}.alert-warning{border-color:#f5e79e;background-image:linear-gradient(to bottom,#fcf8e3 0,#f8efc0 100%)}.alert-danger{background-color:rgba(255,109,111,.3);color:#c3124e}.btn.on-white{background-color:#00c4a2;color:#fff}.btn.warning{background-color:#ff6d6f;color:#fff}.btn.warning:focus,.btn.warning:hover{background-color:rgba(255,109,111,.75);color:#711214}.btn.neutral{background-color:#d9d9d9;color:rgba(46,67,89,.65)}.btn.neutral:focus,.btn.neutral:hover{opacity:.8}.btn.admit{width:103px}.btn .octicon{position:relative;left:-3px}.btn.align-left{float:left}.btn-default{border:0;border-radius:3px;background-color:#00bd9c}.btn-default:focus,.btn-default:hover{background-color:#13d8b6}.btn-primary{background-color:#00bd9c}.btn-primary:focus,.btn-primary:hover{background-color:#08987f}.btn-primary.active,.btn-primary:active{background-color:#00cca8}.btn-primary.disabled-btn,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover{opacity:.7;background-color:#dbebff;color:#000}.sidebar-nav-logo:focus,.sidebar-nav-logo:hover,.sidebar-nav-search .btn:hover{opacity:.8}.btn-success{border-color:#3e8f3e;background-image:linear-gradient(to bottom,#5cb85c 0,#419641 100%)}.btn-success:focus,.btn-success:hover{background-color:#419641;background-position:0 -15px}.btn-success.active,.btn-success:active{border-color:#3e8f3e;background-color:#419641}.btn-info{border-color:#28a4c9;background-image:linear-gradient(to bottom,#5bc0de 0,#2aabd2 100%)}.btn-info:focus,.btn-info:hover{background-color:#2aabd2;background-position:0 -15px}.btn-info.active,.btn-info:active{border-color:#28a4c9;background-color:#2aabd2}.btn-warning{border-color:#e38d13;background-image:linear-gradient(to bottom,#f0ad4e 0,#eb9316 100%)}.btn-warning:focus,.btn-warning:hover{background-color:#eb9316;background-position:0 -15px}.btn-warning.active,.btn-warning:active{border-color:#e38d13;background-color:#eb9316}.btn-danger{border-color:#b92c28;background-image:linear-gradient(to bottom,#d9534f 0,#c12e2a 100%)}.btn-danger:focus,.btn-danger:hover{background-color:#c12e2a;background-position:0 -15px}.btn-danger.active,.btn-danger:active{border-color:#b92c28;background-color:#c12e2a}.glyphicon-refresh-animate{-webkit-animation:spin2 .7s infinite linear;animation:spin .7s infinite linear}@-webkit-keyframes spin2{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(360deg)}}@keyframes spin{from{transform:scale(1) rotate(0)}to{transform:scale(1) rotate(360deg)}}.fc-toolbar.fc-header-toolbar{margin-bottom:0}.fc-toolbar.fc-header-toolbar h2{margin-top:.35em;font-size:18px}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{background-color:#e8e8e8;background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%)}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{background-color:#357ebd;background-image:linear-gradient(to bottom,#428bca 0,#357ebd 100%);background-repeat:repeat-x}.form-input-group{display:block;margin-bottom:15px}.form-input-group select{height:44px}.checkbox-label-space{top:25px}.required .control-label::after{color:#ff6d6f;content:'*'}.input-group-addon{border:0;background-color:#fff}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{margin-left:-18px}.form-control{border:1px solid #dee2e7}.container label{font-weight:300}.notes{max-width:300px}.loading-notice{position:absolute;top:0;right:0;bottom:0;z-index:99;margin:0 auto;width:calc(100% - 275px);height:100%;text-align:center}.loading-notice .wrapper{position:relative;top:50%;transform:translateY(-50%);margin:0 auto;border-radius:10px;background-color:#dde5ee;padding:20px;width:140px}.loading-notice.apploading{left:0;width:100%}.loading-notice .loading-text{margin-bottom:0;text-transform:uppercase;letter-spacing:2px;color:#263648;font-weight:300}.loading-notice .spinner{margin:0 auto 10px;width:50px;height:40px;text-align:center;font-size:10px}.loading-notice .spinner>div{display:inline-block;-webkit-animation:stretchdelay 1.2s infinite ease-in-out;animation:stretchdelay 1.2s infinite ease-in-out;margin-left:3px;border-radius:50px;background-color:#00bd9c;width:6px;height:100%}.loading-notice .spinner>div:first-child{margin-left:0}.loading-notice .spinner .rect2{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.loading-notice .spinner .rect3{-webkit-animation-delay:-1s;animation-delay:-1s}.loading-notice .spinner .rect4{-webkit-animation-delay:-.9s;animation-delay:-.9s}.loading-notice .spinner .rect5{-webkit-animation-delay:-.8s;animation-delay:-.8s}@-webkit-keyframes stretchdelay{0%,100%,40%{-webkit-transform:scaleY(.4)}20%{-webkit-transform:scaleY(1)}}@keyframes stretchdelay{0%,100%,40%{-webkit-transform:scaleY(.4);transform:scaleY(.4)}20%{-webkit-transform:scaleY(1);transform:scaleY(1)}}.paging-buttons{position:absolute;top:3px;right:3px}.panel-heading .view-sub-bar{padding:0 15px}.panel-heading .view-sub-nav{margin:0}.panel-heading .view-action-buttons{float:right}.panel-heading .view-action-buttons .btn{margin:10px 0 10px 15px;border:1px solid #00bd9c;background-color:transparent;color:#00bd9c;font-size:14px}.panel-heading .view-action-buttons .btn:focus,.panel-heading .view-action-buttons .btn:hover{background-color:#00bd9c;color:#fff}.panel-heading .nav-pills{margin:0}.panel-heading .nav-pills li{margin-left:40px;line-height:58px;font-size:18px}.panel-heading .nav-pills li:first-of-type{margin-left:0}.panel-heading .nav-pills li.active>a{background-color:transparent;color:#2f4358;font-weight:600}.panel-heading .nav-pills a{padding:0;color:#6784a2}.panel-heading .nav-pills a:hover{background-color:transparent!important;color:#2f4358}.panel-title{font-size:24px}.panel-footer{background-color:#fff;text-align:right}.patient-history-item{margin:15px 0;border-radius:5px;background:rgba(239,242,245,.5);padding:5px 15px 15px}.patient-history-item .ph-note-item{margin-top:15px;font-weight:300}.patient-history-item .ph-note-heading{font-size:16px;font-weight:600}.patient-history-heading{margin:-5px -15px 10px;border-radius:5px 5px 0 0;background:#eff2f5;padding:5px 15px;font-size:18px}.patient-history-heading .ph-visit-date{display:inline-block;margin:-5px 10px -5px -15px;border-radius:5px 0 0;background:#dee2e7;padding:5px 15px;line-height:26px;font-size:16px;font-weight:600}.patient-history-heading .ph-visit-type{display:inline-block;font-weight:300}.patient-summary{position:relative;border-bottom:2px solid #eff2f5;padding-bottom:15px}.patient-summary .ps-info-group{margin-bottom:5px}.patient-summary .ps-info-group.patient-id{position:absolute;top:-10px;right:-10px;border-radius:3px;background:rgba(239,242,245,.7);padding:10px 20px;text-align:center}.progress,.progress-bar,.progress-bar-danger,.progress-bar-info,.progress-bar-success,.progress-bar-warning{background-repeat:repeat-x}.patient-summary .ps-info-group.patient-id .ps-info-label{margin-right:5px;margin-bottom:0;width:auto;text-align:right}.patient-summary .ps-info-group.patient-id .ps-info-data{font-size:22px;font-weight:300}.patient-summary .ps-info-group.patient-name .ps-info-data{font-size:22px;font-weight:600}.patient-summary .ps-info-group.long-form{float:left;padding-right:15px;width:50%}.patient-summary .ps-info-label{margin-right:10px;width:40px;font-size:16px;font-weight:400}.patient-summary .ps-info-data-block,.sidebar-nav{font-weight:300}.patient-summary .ps-info-label.wide{width:auto}.patient-summary .ps-info-data{color:#2f4358;font-size:16px;font-weight:300}.progress{background-image:linear-gradient(to bottom,#ebebeb 0,#f5f5f5 100%)}.progress-bar{background-image:linear-gradient(to bottom,#428bca 0,#3071a9 100%)}.progress-bar-success{background-image:linear-gradient(to bottom,#5cb85c 0,#449d44 100%)}.progress-bar-info{background-image:linear-gradient(to bottom,#5bc0de 0,#31b0d5 100%)}.progress-bar-warning{background-image:linear-gradient(to bottom,#f0ad4e 0,#ec971f 100%)}.progress-bar-danger{background-image:linear-gradient(to bottom,#d9534f 0,#c9302c 100%)}.sidebar-nav{display:block;position:fixed;top:0;bottom:0;left:0;z-index:1;box-shadow:1px 0 0 #1e2c3a;background-color:#263648;width:275px;color:#fff}.sidebar-nav .mega-octicon{text-align:center;color:#92a7bc;font-size:16px}.scroll-container{position:absolute;top:55px;left:0;width:100%;height:calc(100% - 55px);overflow:auto}.sidebar-nav-header{position:absolute;top:0;left:0;border-bottom:1px solid #1e2c3a;background-color:#2f4358;width:100%;height:55px}.sidebar-nav-logo{transition:opacity .2s ease;display:inline-block;padding:0 15px;height:55px}.sidebar-nav-logo .logo-svg{position:relative;top:15px;width:150px}.settings-trigger{float:right;padding:15px}.settings-trigger.active .mega-octicon{color:#00bd9c}.settings-nav{position:absolute;top:48px;right:10px;z-index:10;border-radius:5px;background-color:#eff2f5;min-width:130px}.settings-nav::before{display:block;position:absolute;top:-7px;right:10px;border-right:5px solid transparent;border-bottom:7px solid #eff2f5;border-left:5px solid transparent;content:' '}.settings-nav>a{display:block;border-top:1px solid #dee2e7;padding:6px 10px;color:#3a4d63;font-size:14px;font-weight:400}.settings-nav>a:first-of-type{border-top:0}.sidebar-nav-search{border-bottom:1px solid #1e2c3a;padding:10px 15px;height:58px}.sidebar-nav-search .form-group{float:left;margin-bottom:0}.sidebar-nav-search input{border:0;border-radius:5px 0 0 5px;background-color:#546a83;padding:6px 12px;width:198px;height:38px;color:#2e4359;font-size:18px;font-weight:300}.sidebar-nav-search input::-webkit-input-placeholder{color:#92a7bc}.sidebar-nav-search input:focus{background-color:#fff}.sidebar-nav-search .btn{transition:opacity .2s ease;position:absolute;top:10px;right:15px;border-radius:0 5px 5px 0;background-color:#92a7bc;width:46px;height:38px;text-shadow:none;color:#d2dae3;font-size:18px}.sidebar-nav-search .btn .glyphicon{top:2px;right:1px}.primary-nav-item a:focus,.primary-nav-item a:hover,.primary-nav-item a:visited{text-decoration:none}.primary-nav-item .primary-section-link{transition:all .2s ease;display:block;border-bottom:1px solid #1e2c3a;background:#2f4358;padding:0 15px;height:48px;line-height:48px;color:#fff;font-size:18px}.primary-nav-item .primary-section-link .mega-octicon{transition:all .2s ease;float:left;margin-right:12px;width:16px;line-height:48px}.primary-nav-item .primary-section-link.active,.primary-nav-item .primary-section-link:hover{background:#546a83}.primary-nav-item .primary-section-link.active .mega-octicon,.primary-nav-item .primary-section-link:hover .mega-octicon{color:#fff}.primary-nav-item .category-sub-items{border-bottom:1px solid #1e2c3a;background:#3a4d63}.primary-nav-item .category-sub-item{transition:all .2s ease;display:block;background:#3a4d63;padding:0 15px;height:36px;line-height:36px;color:#c2d2e3;font-size:15px}.primary-nav-item .category-sub-item:hover{background:#546a83;color:#fff}.primary-nav-item .category-sub-item:hover .octicon{margin-right:2px;margin-left:10px;color:#fff}.primary-nav-item .category-sub-item .octicon{transition:all .2s ease;float:left;margin-right:6px;margin-left:6px;width:16px;line-height:36px}.tt-menu,.twitter-typeahead{width:100%}.primary-nav-item .nav-link{font-weight:300}.tab-pane .panel-heading{background-color:transparent;padding:10px 0}.tab-pane .panel-title{font-size:20px}.nav-pills{margin:0}.nav-pills li{margin-left:40px;line-height:58px;font-size:18px}.nav-pills li:first-of-type{margin-left:0}.nav-pills li.active>a{background-color:transparent;color:#2f4358;font-weight:600}.nav-pills a{padding:0;color:#6784a2}.nav-pills a:focus,.nav-pills a:hover{background-color:transparent;text-decoration:none;color:#2f4358}.nav-pills.tab-nav{border-bottom:2px solid #eff2f5}.nav-pills.tab-nav li{margin-left:0;line-height:26px;font-size:16px}.nav-pills.tab-nav li.active a,.nav-pills.tab-nav li:focus a,.nav-pills.tab-nav li:hover a{margin-bottom:-2px;border-bottom:2px solid #6784a2}.tt-menu .query-results,.twitter-typeahead .tt-hint,.twitter-typeahead .tt-query{margin-bottom:0}.table-header{background-color:#d2dae3;color:rgba(38,54,72,.7)}.table-header .sortable-column{cursor:pointer}.table-header .sortable-column .inactive{color:rgba(38,54,72,.3)}.tt-menu{border:1px solid rgba(0,0,0,.1);border-radius:0 0 3px 3px;box-shadow:0 3px 5px rgba(0,0,0,.1);background-clip:padding-box;background-color:#fff;padding:5px 0;min-width:160px;max-height:110px;overflow-y:scroll;overflow-x:none}.tt-suggestion{display:block;padding:3px 12px}.tt-suggestion.tt-is-under-cursor{background-color:#0081c2;background-image:linear-gradient(to bottom,#08c,#0077b3);background-repeat:repeat-x;color:#fff}.tt-suggestion.tt-is-under-cursor a{color:#fff}.tt-suggestion p{margin:0}.scrollable-typeahead .tt-menu{max-height:200px;overflow-y:auto}.signin-logo{margin:40px auto;max-width:200px}.form-signin{position:absolute;top:0;left:50%;transform:translate(-50%,0);margin:0 auto;max-width:300px}.form-signin .alert{margin-bottom:15px}.form-signin input{background:#fff}.signin-contents{border-radius:10px;background:#dde5ee;padding:20px;width:300px}.form-signin-heading{margin:0 0 20px;text-align:center;letter-spacing:2px;color:#263648;font-size:24px;font-weight:300} \ No newline at end of file diff --git a/prod/assets/hospitalrun-9367b8649869b5c56fc0452e0fcc3b68.css b/prod/assets/hospitalrun-9367b8649869b5c56fc0452e0fcc3b68.css new file mode 100644 index 0000000000..6c0338b807 --- /dev/null +++ b/prod/assets/hospitalrun-9367b8649869b5c56fc0452e0fcc3b68.css @@ -0,0 +1,6 @@ +/*! + * MAIN BOOTSTRAP + * Bootstrap v3.1.1 (http://getbootstrap.com) + * Copyright 2011-2014 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + *//*! normalize.css v3.0.0 | MIT License | git.io/normalize */button,select{text-transform:none}hr,img{border:0}a:focus,a:hover{color:#2a6496;text-decoration:underline}body,figure{margin:0}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.carousel-indicators,.dropdown-menu,.list-inline,.list-reset,.list-style-none,.list-unstyled,.media-list,.nav,.pager{list-style:none}.break-word,pre{word-wrap:break-word}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:0 0}a:active,a:hover{outline:0}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0}mark{color:#000;background:#ff0}sub{bottom:-.25em}sup{top:-.5em}img{vertical-align:middle}svg:not(:root){overflow:hidden}hr{height:0;-moz-box-sizing:content-box;box-sizing:content-box}.border-box,.col,.col-right{box-sizing:border-box}pre,textarea{overflow:auto}code,kbd,pre,samp{font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}.glyphicon,address,cite{font-style:normal}button{overflow:visible}.caps,.form-signin-heading,.form-signin-heading::first-letter,.initialism{text-transform:uppercase}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner{padding:0;border:0}input::-moz-focus-inner{padding:0;border:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}@media print{blockquote,img,pre,tr{page-break-inside:avoid}*{color:#000!important;text-shadow:none!important;background:0 0!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{border:1px solid #999}thead{display:table-header-group}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff!important}.navbar{display:none}.table td,.table th{background-color:#fff!important}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}.btn,.btn-danger.active,.btn-danger:active,.btn-default.active,.btn-default:active,.btn-info.active,.btn-info:active,.btn-primary.active,.btn-primary:active,.btn-warning.active,.btn-warning:active,.btn.active,.btn:active,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover,.form-control,.navbar-toggle,.open .dropdown-toggle.btn-danger,.open .dropdown-toggle.btn-default,.open .dropdown-toggle.btn-info,.open .dropdown-toggle.btn-primary,.open .dropdown-toggle.btn-warning{background-image:none}*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:62.5%;-webkit-tap-highlight-color:transparent}body{font-family:lato-webfont,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#2f4358;background-color:#2e4359}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#428bca;text-decoration:none}a:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}select[multiple],select[size],textarea.form-control{height:auto}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#999}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}dt,label{font-weight:700}address,blockquote .small,blockquote footer,blockquote small,dd,dt,output,pre{line-height:1.42857143}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-muted{color:#999}.text-primary{color:#428bca}a.text-primary:hover{color:#3071a9}.text-success{color:#3c763d}a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#428bca}a.bg-primary:hover{background-color:#3071a9}.bg-success{background-color:#dff0d8}a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:hover{background-color:#e4b9b9}pre code,table{background-color:transparent}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}dl,ol,ul{margin-top:0}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child,ol ol,ol ul,ul ol,ul ul{margin-bottom:0}address,dl{margin-bottom:20px}ol,ul{margin-bottom:10px}.list-unstyled{padding-left:0}.list-inline{padding-left:0;margin-left:-5px}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}.container{width:750px}}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.form-horizontal .form-group:after,.modal-footer:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #999}.initialism{font-size:90%}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;color:#999}legend,pre{display:block;color:#333}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}code,kbd{padding:2px 4px;font-size:90%}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}blockquote:after,blockquote:before{content:""}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{color:#c7254e;white-space:nowrap;background-color:#f9f2f4;border-radius:4px}kbd{color:#fff;background-color:#333;border-radius:3px;box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}pre{padding:9.5px;margin:0 0 10px;font-size:13px;word-break:break-all;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container,.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:0}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:0}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:0}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:0}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:0}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:0}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:0}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:0}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{max-width:100%}th{text-align:left}.table{width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th,.table>tr>td,.table>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered,.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-child(odd)>td,.table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.table-hover>tbody>tr:hover>td,.table-hover>tbody>tr:hover>th,.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}@media (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-x:scroll;overflow-y:hidden;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset,legend{padding:0;border:0}fieldset{min-width:0;margin:0}legend{width:100%;margin-bottom:20px;font-size:21px;line-height:inherit;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-bottom:5px}.checkbox,.form-control,.radio,input[type=file],output{display:block}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px\9;line-height:normal}input[type=range]{display:block;width:100%}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}output{padding-top:7px;font-size:14px;color:#555}.form-control{width:100%;padding:6px 12px;font-size:16px;line-height:2;color:#555;background-color:#fff;border-radius:3px;-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder,.form-control::-webkit-input-placeholder{color:#999}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .form-control-feedback,.has-success .help-block,.has-success .radio,.has-success .radio-inline{color:#3c763d}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee;opacity:1}input[type=date]{line-height:34px}.form-group{margin-bottom:15px}.checkbox,.radio{min-height:20px;padding-left:20px;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{display:inline;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{float:left;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}.checkbox-inline[disabled],.checkbox[disabled],.radio-inline[disabled],.radio[disabled],fieldset[disabled] .checkbox,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio,fieldset[disabled] .radio-inline,fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox][disabled],input[type=radio][disabled]{cursor:not-allowed}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.has-feedback .form-control-feedback{position:absolute;top:25px;right:0;display:block;width:34px;height:34px;line-height:34px;text-align:center}.collapsing,.dropdown,.glyphicon{position:relative}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .form-control-feedback,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .form-control-feedback,.has-error .help-block,.has-error .radio,.has-error .radio-inline{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.form-control-static{margin-bottom:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .checkbox,.form-inline .form-control,.form-inline .form-group,.form-inline .radio{display:inline-block;vertical-align:middle}.form-inline .control-label,.form-inline .form-group{margin-bottom:0;vertical-align:middle}.form-inline .form-control{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .checkbox,.form-inline .radio{padding-left:0;margin-top:0;margin-bottom:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{float:none;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}.form-horizontal .control-label{text-align:right}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .control-label,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}.form-horizontal .form-control-static{padding-top:7px}.form-horizontal .has-feedback .form-control-feedback{top:0;right:15px}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;border-radius:4px}.btn.active:focus,.btn:active:focus,.btn:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{pointer-events:none;cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}.btn-default{color:#333}.btn-default.active,.btn-default:active,.btn-default:focus,.btn-default:hover,.open .dropdown-toggle.btn-default{color:#333;background-color:#ebebeb;border-color:#adadad}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;border:none}.btn-primary.active,.btn-primary:active,.btn-primary:focus,.btn-primary:hover{color:#fff}.open .dropdown-toggle.btn-primary{color:#fff;background-color:#3276b1;border-color:#285e8e}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#428bca;border-color:#357ebd}.btn-primary .badge{color:#428bca;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c}.btn-success.active,.btn-success:active,.btn-success:focus,.btn-success:hover,.open .dropdown-toggle.btn-success{color:#fff;background-color:#47a447;border-color:#398439}.btn-success.active,.btn-success:active,.open .dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de}.btn-info.active,.btn-info:active,.btn-info:focus,.btn-info:hover,.open .dropdown-toggle.btn-info{color:#fff;background-color:#39b3d7;border-color:#269abc}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e}.btn-warning.active,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.open .dropdown-toggle.btn-warning{color:#fff;background-color:#ed9c28;border-color:#d58512}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f}.btn-danger.active,.btn-danger:active,.btn-danger:focus,.btn-danger:hover,.open .dropdown-toggle.btn-danger{color:#fff;background-color:#d2322d;border-color:#ac2925}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#428bca;cursor:pointer;border-radius:0;background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#2a6496;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#999;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:3px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%;padding-right:0;padding-left:0}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}.caret,.glyphicon{display:inline-block}.collapsing{height:0;overflow:hidden;-webkit-transition:height .35s ease;transition:height .35s ease}@font-face{font-family:'Glyphicons Halflings';src:url(fonts/glyphicons-halflings-regular.eot);src:url(fonts/glyphicons-halflings-regular.eot?#iefix) format("embedded-opentype"),url(fonts/glyphicons-halflings-regular.woff) format("woff"),url(fonts/glyphicons-halflings-regular.ttf) format("truetype"),url(fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format("svg")}.glyphicon{top:1px;font-family:'Glyphicons Halflings';font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.caret{width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu-right,.dropdown-menu.pull-right{right:0;left:auto}.dropdown-header,.dropdown-menu>li>a{display:block;padding:3px 20px;line-height:1.42857143}.btn-group-vertical>.btn:not(:first-child):not(:last-child),.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn,.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{clear:both;font-weight:400;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#999}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-left{right:auto;left:0}.dropdown-header{font-size:12px;color:#999}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover,.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px solid}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.nav-justified>.dropdown .dropdown-menu,.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn:focus,.btn-group>.btn:focus{outline:0}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn .caret,.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:first-child>.btn:last-child,.btn-group>.btn-group:first-child>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active{outline:0}.btn-group.open .dropdown-toggle{outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-lg .caret{border-width:5px 5px 0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{display:block;width:100%;max-width:100%;float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group,.input-group-btn>.btn+.btn{margin-left:-1px}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}[data-toggle=buttons]>.btn>input[type=checkbox],[data-toggle=buttons]>.btn>input[type=radio]{display:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.nav>li,.nav>li>a{display:block;position:relative}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.nav{padding-left:0;margin-bottom:0;font-size:16px}.nav>li>a{padding:10px 15px}.nav>li.disabled>a{color:#999}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#999;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#428bca}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center;margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0;border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-justified>li,.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;margin-bottom:20px;border:1px solid transparent}.navbar-collapse{max-height:340px;padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar{border-radius:4px}.navbar-header{float:left}.navbar-collapse{width:auto;border-top:0;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.media,.media-body,.modal-open,.progress{overflow:hidden}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}.navbar-static-top{z-index:1000;border-width:0 0 1px}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}.navbar-fixed-bottom,.navbar-fixed-top,.navbar-static-top{border-radius:0}.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.breadcrumb>li,.pagination{display:inline-block}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}.progress-striped .progress-bar,.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}.navbar-nav.navbar-right:last-child{margin-right:-15px}.navbar-left{float:left!important}.navbar-right{float:right!important}}.navbar-form{padding:10px 15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);margin:8px -15px}@media (min-width:768px){.navbar-form .checkbox,.navbar-form .form-control,.navbar-form .form-group,.navbar-form .radio{display:inline-block;vertical-align:middle}.navbar-form .control-label,.navbar-form .form-group{margin-bottom:0;vertical-align:middle}.navbar-form .input-group>.form-control{width:100%}.navbar-form .checkbox,.navbar-form .radio{padding-left:0;margin-top:0;margin-bottom:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{float:none;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-form.navbar-right:last-child{margin-right:-15px}}.btn .badge,.btn .label{top:-1px;position:relative}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}.navbar-text.navbar-right:last-child{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-nav>li>a,.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#999}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>li>a,.navbar-inverse .navbar-text{color:#999}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-link{color:#999}.navbar-inverse .navbar-link:hover{color:#fff}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#999}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#999}.pagination{padding-left:0;margin:20px 0;border-radius:4px}.pager li,.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#428bca;text-decoration:none;background-color:#fff;border:1px solid #ddd}.badge,.label{font-weight:700;line-height:1;text-align:center;vertical-align:baseline;white-space:nowrap}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{color:#2a6496;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:2;color:#fff;cursor:default;background-color:#428bca;border-color:#428bca}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#999;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#999;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;color:#fff;border-radius:.25em}.label[href]:focus,.label[href]:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.label-default{background-color:#999}.label-default[href]:focus,.label-default[href]:hover{background-color:grey}.label-primary{background-color:#428bca}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#3071a9}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;color:#fff;background-color:#999;border-radius:10px}.badge:empty{display:none}.media-object,.thumbnail{display:block}.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}a.list-group-item.active>.badge{color:#428bca;background-color:#fff}.jumbotron,.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron{padding:30px;margin-bottom:30px;background-color:#eee}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.alert,.thumbnail{margin-bottom:20px}.alert .alert-link,.close{font-weight:700}.container .jumbotron{border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#428bca}.thumbnail .caption{padding:9px;color:#333}.alert h4{margin-top:0;color:inherit}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable{padding-right:35px}.alert-dismissable .close{position:relative;top:-2px;right:-21px;color:inherit}.modal,.modal-backdrop{right:0;bottom:0;left:0}.alert-success{color:#3c763d;background-color:#dff0d8}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#428bca;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;transition:width .6s ease}.close,.list-group-item>.badge{float:right}.progress-striped .progress-bar{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:40px 40px}.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-striped .progress-bar-info,.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media,.media-body{zoom:1}.media,.media .media{margin-top:15px}.media:first-child{margin-top:0}.media-heading{margin:0 0 5px}.media>.pull-left{margin-right:10px}.media>.pull-right{margin-left:10px}.media-list{padding-left:0}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.list-group-item>.badge+.badge{margin-right:5px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover{text-decoration:none;background-color:#f5f5f5}a.list-group-item.active,a.list-group-item.active:focus,a.list-group-item.active:hover{z-index:2;color:#fff;background-color:#428bca;border-color:#428bca}a.list-group-item.active .list-group-item-heading,a.list-group-item.active:focus .list-group-item-heading,a.list-group-item.active:hover .list-group-item-heading{color:inherit}a.list-group-item.active .list-group-item-text,a.list-group-item.active:focus .list-group-item-text,a.list-group-item.active:hover .list-group-item-text{color:#e1edf7}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.panel-heading>.dropdown .dropdown-toggle,.panel-title,.panel-title>a{color:inherit}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.close{line-height:1}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px}.panel-title,.panel>.list-group,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel-body{padding:15px}.panel-heading{border-radius:3px}.panel-title{margin-top:0}.panel-footer{padding:10px 15px;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel-group .panel-heading,.panel>.list-group:last-child .list-group-item:last-child,.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.list-group:last-child .list-group-item:last-child,.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-left-radius:3px;border-bottom-right-radius:3px}.panel>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive{border-top:1px solid #ddd}.panel-group .panel-footer,.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;overflow:hidden;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default>.panel-heading+.panel-collapse .panel-body{border-top-color:#ddd}.panel-default>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ddd}.panel-primary>.panel-heading{color:#fff;background-color:#428bca;border-color:#428bca}.panel-primary>.panel-heading+.panel-collapse .panel-body{border-top-color:#428bca}.panel-primary>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#428bca}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse .panel-body{border-top-color:#d6e9c6}.panel-success>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse .panel-body{border-top-color:#bce8f1}.panel-info>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse .panel-body{border-top-color:#faebcc}.panel-warning>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse .panel-body{border-top-color:#ebccd1}.panel-danger>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ebccd1}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{font-size:21px;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.carousel-caption,.carousel-control{text-shadow:0 1px 2px rgba(0,0,0,.6)}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-content,.popover{background-clip:padding-box}.modal{position:fixed;top:0;z-index:1050;display:none;overflow:auto;overflow-y:scroll;-webkit-overflow-scrolling:touch;outline:0}.carousel-inner,.hide,.overflow-hidden{overflow:hidden}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);transform:translate(0,0)}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.carousel-control,.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{min-height:16.43px;padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:20px}.popover,.tooltip,.tooltip-arrow{position:absolute}.modal-footer{padding:19px 20px 20px;margin-top:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{z-index:1030;display:block;font-size:12px;line-height:1.4;visibility:visible;filter:alpha(opacity=0);opacity:0}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px}.tooltip-arrow{width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow,.tooltip.top-left .tooltip-arrow,.tooltip.top-right .tooltip-arrow{bottom:0;border-width:5px 5px 0;border-top-color:#000}.tooltip.top .tooltip-arrow{left:50%;margin-left:-5px}.tooltip.top-left .tooltip-arrow{left:5px}.tooltip.top-right .tooltip-arrow{right:5px}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow,.tooltip.bottom-left .tooltip-arrow,.tooltip.bottom-right .tooltip-arrow{border-width:0 5px 5px;border-bottom-color:#000;top:0}.tooltip.bottom .tooltip-arrow{left:50%;margin-left:-5px}.tooltip.bottom-left .tooltip-arrow{left:5px}.tooltip.bottom-right .tooltip-arrow{right:5px}.popover{top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;white-space:normal;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2)}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover-content{padding:9px 14px}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.carousel,.carousel-inner{position:relative}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.left>.arrow:after,.popover.right>.arrow:after{bottom:-10px;content:" "}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{left:1px;border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;border-right-width:0;border-left-color:#fff}.carousel-inner{width:100%}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center}.carousel-control.left{background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,.5) 0),color-stop(rgba(0,0,0,.0001) 100%));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,.0001) 0),color-stop(rgba(0,0,0,.5) 100%));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000\9;background-color:transparent;border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center}.alert-info,.carousel-caption .btn,.text-hide{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-15px;margin-left:-15px;font-size:30px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.hidden,.visible-lg,.visible-md,.visible-print,.visible-sm,.visible-xs{display:none!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;background-color:transparent;border:0}.hidden{visibility:hidden!important}.affix{position:fixed}@-ms-viewport{width:device-width}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}.hidden-lg{display:none!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media print{.visible-print{display:block!important}table.visible-print{display:table}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}.hidden-print{display:none!important}}@font-face{font-family:lato-webfont;font-weight:400;font-style:normal;src:url(fonts/lato-regular-webfont.eot);src:url(fonts/lato-regular-webfont.eot?#iefix) format("embedded-opentype"),url(fonts/lato-regular-webfont.woff) format("woff"),url(fonts/lato-regular-webfont.ttf) format("truetype"),url(fonts/lato-regular-webfont.svg#latoregular) format("svg")}@font-face{font-family:lato-webfont;font-weight:300;font-style:normal;src:url(fonts/lato-light-webfont.eot);src:url(fonts/lato-light-webfont.eot?#iefix) format("embedded-opentype"),url(fonts/lato-light-webfont.woff) format("woff"),url(fonts/lato-light-webfont.ttf) format("truetype"),url(fonts/lato-light-webfont.svg#latolight) format("svg")}@font-face{font-family:lato-webfont;font-weight:100;font-style:normal;src:url(fonts/lato-hairline-webfont.eot);src:url(fonts/lato-hairline-webfont.eot?#iefix) format("embedded-opentype"),url(fonts/lato-hairline-webfont.woff) format("woff"),url(fonts/lato-hairline-webfont.ttf) format("truetype"),url(fonts/lato-hairline-webfont.svg#latohairline) format("svg")}@font-face{font-family:lato-webfont;font-weight:700;font-style:normal;src:url(fonts/lato-bold-webfont.eot);src:url(fonts/lato-bold-webfont.eot?#iefix) format("embedded-opentype"),url(fonts/lato-bold-webfont.woff) format("woff"),url(fonts/lato-bold-webfont.ttf) format("truetype"),url(fonts/lato-bold-webfont.svg#latobold) format("svg")}@font-face{font-family:lato-webfont;font-weight:900;font-style:normal;src:url(fonts/lato-black-webfont.eot);src:url(fonts/lato-black-webfont.eot?#iefix) format("embedded-opentype"),url(fonts/lato-black-webfont.woff) format("woff"),url(fonts/lato-black-webfont.ttf) format("truetype"),url(fonts/lato-black-webfont.svg#latoblack) format("svg")}body{background:#eff2f5}body.ember-application{padding-left:275px}.clickable{cursor:pointer}.modal-dialog{color:#2e4359}.not-editable{opacity:.5;background-color:rgba(217,217,217,.5);cursor:default}.view-top-bar{margin:0;border-bottom:1px solid #d2dae3;background:#fff;padding:0 15px;height:55px}.view-current-title{float:left;margin:0;line-height:55px;letter-spacing:-1px;color:#2f4358;font-size:28px;font-weight:600}.panel-primary{position:relative;border:0;background-color:#fff;color:#2f4358}.panel-primary input,.panel-primary select,.panel-primary textarea{background:rgba(219,235,255,.2)}.panel-default{border:0;border-radius:0;background-color:transparent}.panel-default>.panel-heading{border:0;border-radius:0;background-color:transparent;padding:0;color:#2e4359}.panel-heading{background-color:#e9f3ff;padding:10px 15px;color:#2e4359}.detail-section-content{padding:15px 0}.detail-section-content .table{margin-top:-15px}.table-header>th{border-top:0;font-weight:300}.report-header{display:none}@media print{*{background-color:#fff;color:#000;font-size:14px}.panel-default,.panel-primary{position:absolute;left:0;margin:0 5%;width:90%}.report-header{display:block;border-bottom:1px solid #d2dae3;padding:10px 0;text-align:center}.btn,.nav,.panel-footer,.print-hide,.view-current-title,.view-sub-bar,.view-top-bar{display:none}.patient-history-heading{border-bottom:1px solid #000}.report-logo{height:60px}.report .patient-summary{margin-bottom:20px;border-bottom:1px solid #d2dae3}.report input{border:0;padding:5px;font-size:.8em}.report select{outline:0;border:0;text-overflow:'';-moz-appearance:none;-webkit-appearance:none}.report .panel-primary{position:absolute;left:0;margin:0;width:100%}}.ml0,.mx0{margin-left:0}.mr0,.mx0{margin-right:0}.mt0,.my0{margin-top:0}.mb0,.my0{margin-bottom:0}.pl0,.px0{padding-left:0}.pr0,.px0{padding-right:0}.pt0,.py0{padding-top:0}.pb0,.py0{padding-bottom:0}.align-baseline{vertical-align:baseline}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.border{border-style:solid;border-width:var(--border-width)}.border-top{border-top-style:solid;border-top-width:var(--border-width)}.border-right{border-right-style:solid;border-right-width:var(--border-width)}.border-bottom{border-bottom-style:solid;border-bottom-width:var(--border-width)}.border-left{border-left-style:solid;border-left-width:var(--border-width)}.border-none{border:0}.rounded{border-radius:var(--border-radius)}.circle{border-radius:50%}.rounded-top{border-radius:var(--border-radius) var(--border-radius) 0 0}.rounded-right{border-radius:0 var(--border-radius) var(--border-radius) 0}.rounded-bottom{border-radius:0 0 var(--border-radius) var(--border-radius)}.rounded-left{border-radius:var(--border-radius) 0 0 var(--border-radius)}.not-rounded{border-radius:0}:root{--border-width:1px;--border-radius:3px;--width-1:24rem;--width-2:32rem;--width-3:48rem;--width-4:64rem;--space-1:.5rem;--space-2:1rem;--space-3:2rem;--space-4:4rem;--z1:1;--z2:2;--z3:3;--z4:4;--h1:2rem;--h2:1.5rem;--h3:1.25rem;--h4:1rem;--h5:.875rem;--h6:.75rem;--line-height-1:1;--line-height-2:1.125;--line-height-3:1.25;--line-height-4:1.5;--letter-spacing:1;--caps-letter-spacing:.2em;--bold-font-weight:bold}.flex{display:flex}.flex-column{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-baseline{align-self:baseline}.self-stretch{align-self:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.content-start{align-content:flex-start}.content-end{align-content:flex-end}.content-center{align-content:center}.content-between{align-content:space-between}.content-around{align-content:space-around}.content-stretch{align-content:stretch}.flex-auto{flex:1 1 auto;min-width:0;min-height:0}.flex-none{flex:none}.order-0{order:0}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-last{order:99999}@custom-media --breakpoint-sm (min-width: 40em);@custom-media --breakpoint-md (min-width: 52em);@custom-media --breakpoint-lg (min-width: 64em);.col{float:left}.col-right{float:right}.col-1{width:calc(1/12 * 100%)}.col-2{width:calc(2/12 * 100%)}.col-3{width:calc(3/12 * 100%)}.col-4{width:calc(4/12 * 100%)}.col-5{width:calc(5/12 * 100%)}.col-6{width:calc(6/12 * 100%)}.col-7{width:calc(7/12 * 100%)}.col-8{width:calc(8/12 * 100%)}.col-9{width:calc(9/12 * 100%)}.col-10{width:calc(10/12 * 100%)}.col-11{width:calc(11/12 * 100%)}.col-12{width:100%}@media (--breakpoint-sm){.sm-flex{display:flex}.sm-col,.sm-col-right{box-sizing:border-box}.sm-col{float:left}.sm-col-right{float:right}.sm-col-1{width:calc(1/12 * 100%)}.sm-col-2{width:calc(2/12 * 100%)}.sm-col-3{width:calc(3/12 * 100%)}.sm-col-4{width:calc(4/12 * 100%)}.sm-col-5{width:calc(5/12 * 100%)}.sm-col-6{width:calc(6/12 * 100%)}.sm-col-7{width:calc(7/12 * 100%)}.sm-col-8{width:calc(8/12 * 100%)}.sm-col-9{width:calc(9/12 * 100%)}.sm-col-10{width:calc(10/12 * 100%)}.sm-col-11{width:calc(11/12 * 100%)}.sm-col-12{width:100%}}@media (--breakpoint-md){.md-flex{display:flex}.md-col,.md-col-right{box-sizing:border-box}.md-col{float:left}.md-col-right{float:right}.md-col-1{width:calc(1/12 * 100%)}.md-col-2{width:calc(2/12 * 100%)}.md-col-3{width:calc(3/12 * 100%)}.md-col-4{width:calc(4/12 * 100%)}.md-col-5{width:calc(5/12 * 100%)}.md-col-6{width:calc(6/12 * 100%)}.md-col-7{width:calc(7/12 * 100%)}.md-col-8{width:calc(8/12 * 100%)}.md-col-9{width:calc(9/12 * 100%)}.md-col-10{width:calc(10/12 * 100%)}.md-col-11{width:calc(11/12 * 100%)}.md-col-12{width:100%}}@media (--breakpoint-lg){.lg-flex{display:flex}.lg-col,.lg-col-right{box-sizing:border-box}.lg-col{float:left}.lg-col-right{float:right}.lg-col-1{width:calc(1/12 * 100%)}.lg-col-2{width:calc(2/12 * 100%)}.lg-col-3{width:calc(3/12 * 100%)}.lg-col-4{width:calc(4/12 * 100%)}.lg-col-5{width:calc(5/12 * 100%)}.lg-col-6{width:calc(6/12 * 100%)}.lg-col-7{width:calc(7/12 * 100%)}.lg-col-8{width:calc(8/12 * 100%)}.lg-col-9{width:calc(9/12 * 100%)}.lg-col-10{width:calc(10/12 * 100%)}.lg-col-11{width:calc(11/12 * 100%)}.lg-col-12{width:100%}.lg-hide{display:none!important}}@custom-media --breakpoint-sm (min-width: 40em);@custom-media --breakpoint-md (min-width: 52em);@custom-media --breakpoint-lg (min-width: 64em);.hide{position:absolute!important;height:1px;width:1px;clip:rect(1px,1px,1px,1px)}@media (--breakpoint-xs){.xs-hide{display:none!important}}@media (--breakpoint-sm-md){.sm-hide{display:none!important}}@media (--breakpoint-md-lg){.md-hide{display:none!important}}.display-none{display:none!important}@custom-media --breakpoint-xs (max-width: 40em);@custom-media --breakpoint-sm-md (min-width: 40em) and (max-width: 52em);@custom-media --breakpoint-md-lg (min-width: 52em) and (max-width: 64em);@custom-media --breakpoint-lg (min-width: 64em);.inline{display:inline}.block{display:block}.inline-block{display:inline-block}.table{display:table}.table-cell{display:table-cell}.overflow-scroll{overflow:scroll}.overflow-auto{overflow:auto}.clearfix:after,.clearfix:before{content:" ";display:table}.left{float:left}.btn.align-right,.right{float:right}.fit{max-width:100%}.max-width-1{max-width:var(--width-1)}.max-width-2{max-width:var(--width-2)}.max-width-3{max-width:var(--width-3)}.max-width-4{max-width:var(--width-4)}.m0{margin:0}.ml1,.mx1{margin-left:var(--space-1)}.mr1,.mx1{margin-right:var(--space-1)}.mt1,.my1{margin-top:var(--space-1)}.mb1,.my1{margin-bottom:var(--space-1)}.m1{margin:var(--space-1)}.ml2,.mx2{margin-left:var(--space-2)}.mr2,.mx2{margin-right:var(--space-2)}.mt2,.my2{margin-top:var(--space-2)}.mb2,.my2{margin-bottom:var(--space-2)}.m2{margin:var(--space-2)}.ml3,.mx3{margin-left:var(--space-3)}.mr3,.mx3{margin-right:var(--space-3)}.mt3,.my3{margin-top:var(--space-3)}.mb3,.my3{margin-bottom:var(--space-3)}.m3{margin:var(--space-3)}.ml4,.mx4{margin-left:var(--space-4)}.mr4,.mx4{margin-right:var(--space-4)}.mt4,.my4{margin-top:var(--space-4)}.mb4,.my4{margin-bottom:var(--space-4)}.m4{margin:var(--space-4)}.mxn1{margin-left:-var(--space-1);margin-right:-var(--space-1)}.mxn2{margin-left:-var(--space-2);margin-right:-var(--space-2)}.mxn3{margin-left:-var(--space-3);margin-right:-var(--space-3)}.mxn4{margin-left:-var(--space-4);margin-right:-var(--space-4)}.ml-auto,.mx-auto{margin-left:auto}.mr-auto,.mx-auto{margin-right:auto}.p0{padding:0}.pl1,.px1{padding-left:var(--space-1)}.pr1,.px1{padding-right:var(--space-1)}.pt1,.py1{padding-top:var(--space-1)}.pb1,.py1{padding-bottom:var(--space-1)}.p1{padding:var(--space-1)}.pt2,.py2{padding-top:var(--space-2)}.pb2,.py2{padding-bottom:var(--space-2)}.pl2,.px2{padding-left:var(--space-2)}.pr2,.px2{padding-right:var(--space-2)}.p2{padding:var(--space-2)}.pt3,.py3{padding-top:var(--space-3)}.pb3,.py3{padding-bottom:var(--space-3)}.pl3,.px3{padding-left:var(--space-3)}.pr3,.px3{padding-right:var(--space-3)}.p3{padding:var(--space-3)}.pt4,.py4{padding-top:var(--space-4)}.pb4,.py4{padding-bottom:var(--space-4)}.pl4,.px4{padding-left:var(--space-4)}.pr4,.px4{padding-right:var(--space-4)}.p4{padding:var(--space-4)}.relative{position:relative}.absolute{position:absolute}.fixed{position:fixed}.top-0{top:0}.right-0{right:0}.bottom-0{bottom:0}.left-0{left:0}.z1{z-index:var(--z1)}.z2{z-index:var(--z2)}.z3{z-index:var(--z3)}.z4{z-index:var(--z4)}.h1{font-size:var(--h1)}.h2{font-size:var(--h2)}.h3{font-size:var(--h3)}.h4{font-size:var(--h4)}.h5{font-size:var(--h5)}.h6{font-size:var(--h6)}.font-family-inherit{font-family:inherit}.font-size-inherit{font-size:inherit}.text-decoration-none{text-decoration:none}.bold{font-weight:var(--bold-font-weight,bold)}.regular{font-weight:400}.italic{font-style:italic}.caps{letter-spacing:var(--caps-letter-spacing)}.left-align{text-align:left}.center{text-align:center}.right-align{text-align:right}.justify{text-align:justify}.nowrap{white-space:nowrap}.line-height-1{line-height:var(--line-height-1)}.line-height-2{line-height:var(--line-height-2)}.line-height-3{line-height:var(--line-height-3)}.line-height-4{line-height:var(--line-height-4)}.underline{text-decoration:underline}.truncate{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-reset{padding-left:0}.alert{border:0;border-radius:3px;padding:12px}.alert-success{border-color:#b2dba1;background-image:linear-gradient(to bottom,#dff0d8 0,#c8e5bc 100%);background-repeat:repeat-x}.alert-info{border:0;box-shadow:none;background:#ffffe4;color:rgba(83,83,75,.7)}.alert-warning,.btn-danger,.btn-info,.btn-success,.btn-warning,.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{background-repeat:repeat-x}.alert-warning{border-color:#f5e79e;background-image:linear-gradient(to bottom,#fcf8e3 0,#f8efc0 100%)}.alert-danger{background-color:rgba(255,109,111,.3);color:#c3124e}.btn.on-white{background-color:#00c4a2;color:#fff}.btn.warning{background-color:#ff6d6f;color:#fff}.btn.warning:focus,.btn.warning:hover{background-color:rgba(255,109,111,.75);color:#711214}.btn.neutral{background-color:#d9d9d9;color:rgba(46,67,89,.65)}.btn.neutral:focus,.btn.neutral:hover{opacity:.8}.btn.admit,.btn.info{width:110px}.btn .octicon{position:relative;left:-3px}.btn.align-left{float:left}.btn-default{border:0;border-radius:3px;background-color:#00bd9c}.btn-default:focus,.btn-default:hover{background-color:#13d8b6}.btn-primary{background-color:#00bd9c}.btn-primary:focus,.btn-primary:hover{background-color:#08987f}.btn-primary.active,.btn-primary:active{background-color:#00cca8}.btn-primary.disabled-btn,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover{opacity:.7;background-color:#dbebff;color:#000}.sidebar-nav-logo:focus,.sidebar-nav-logo:hover,.sidebar-nav-search .btn:hover{opacity:.8}.btn-success{border-color:#3e8f3e;background-image:linear-gradient(to bottom,#5cb85c 0,#419641 100%)}.btn-success:focus,.btn-success:hover{background-color:#419641;background-position:0 -15px}.btn-success.active,.btn-success:active{border-color:#3e8f3e;background-color:#419641}.btn-info{border-color:#28a4c9;background-image:linear-gradient(to bottom,#5bc0de 0,#2aabd2 100%)}.btn-info:focus,.btn-info:hover{background-color:#2aabd2;background-position:0 -15px}.btn-info.active,.btn-info:active{border-color:#28a4c9;background-color:#2aabd2}.btn-warning{border-color:#e38d13;background-image:linear-gradient(to bottom,#f0ad4e 0,#eb9316 100%)}.btn-warning:focus,.btn-warning:hover{background-color:#eb9316;background-position:0 -15px}.btn-warning.active,.btn-warning:active{border-color:#e38d13;background-color:#eb9316}.btn-danger{border-color:#b92c28;background-image:linear-gradient(to bottom,#d9534f 0,#c12e2a 100%)}.btn-danger:focus,.btn-danger:hover{background-color:#c12e2a;background-position:0 -15px}.btn-danger.active,.btn-danger:active{border-color:#b92c28;background-color:#c12e2a}.glyphicon-refresh-animate{-webkit-animation:spin2 .7s infinite linear;animation:spin .7s infinite linear}@-webkit-keyframes spin2{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(360deg)}}@keyframes spin{from{transform:scale(1) rotate(0)}to{transform:scale(1) rotate(360deg)}}.fc-toolbar.fc-header-toolbar{margin-bottom:0}.fc-toolbar.fc-header-toolbar h2{margin-top:.35em;font-size:18px}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{background-color:#e8e8e8;background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%)}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{background-color:#357ebd;background-image:linear-gradient(to bottom,#428bca 0,#357ebd 100%);background-repeat:repeat-x}.form-input-group{display:block;margin-bottom:15px}.form-input-group select{height:44px}.checkbox-label-space{top:25px}.required .control-label::after{color:#ff6d6f;content:'*'}.input-group-addon{border:0;background-color:#fff}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{margin-left:-18px}.form-control{border:1px solid #dee2e7}.container label{font-weight:300}.text-expansion-container{position:absolute;border-width:1px;border-style:solid;border-radius:3px;background-color:#ffffe0;padding-right:5px;padding-left:5px}.notes{max-width:300px}.loading-notice{position:absolute;top:0;right:0;bottom:0;z-index:99;margin:0 auto;width:calc(100% - 275px);height:100%;text-align:center}.loading-notice .wrapper{position:relative;top:50%;transform:translateY(-50%);margin:0 auto;border-radius:10px;background-color:#dde5ee;padding:20px;width:140px}.loading-notice.apploading{left:0;width:100%}.loading-notice .loading-text{margin-bottom:0;text-transform:uppercase;letter-spacing:2px;color:#263648;font-weight:300}.loading-notice .spinner{margin:0 auto 10px;width:50px;height:40px;text-align:center;font-size:10px}.loading-notice .spinner>div{display:inline-block;-webkit-animation:stretchdelay 1.2s infinite ease-in-out;animation:stretchdelay 1.2s infinite ease-in-out;margin-left:3px;border-radius:50px;background-color:#00bd9c;width:6px;height:100%}.loading-notice .spinner>div:first-child{margin-left:0}.loading-notice .spinner .rect2{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.loading-notice .spinner .rect3{-webkit-animation-delay:-1s;animation-delay:-1s}.loading-notice .spinner .rect4{-webkit-animation-delay:-.9s;animation-delay:-.9s}.loading-notice .spinner .rect5{-webkit-animation-delay:-.8s;animation-delay:-.8s}@-webkit-keyframes stretchdelay{0%,100%,40%{-webkit-transform:scaleY(.4)}20%{-webkit-transform:scaleY(1)}}@keyframes stretchdelay{0%,100%,40%{-webkit-transform:scaleY(.4);transform:scaleY(.4)}20%{-webkit-transform:scaleY(1);transform:scaleY(1)}}.paging-buttons{position:absolute;top:3px;right:3px}.panel-heading .view-sub-bar{padding:0 15px}.panel-heading .view-sub-nav{margin:0}.panel-heading .view-action-buttons{float:right}.panel-heading .view-action-buttons .btn{margin:10px 0 10px 15px;border:1px solid #00bd9c;background-color:transparent;color:#00bd9c;font-size:14px}.panel-heading .view-action-buttons .btn:focus,.panel-heading .view-action-buttons .btn:hover{background-color:#00bd9c;color:#fff}.panel-heading .nav-pills{margin:0}.panel-heading .nav-pills li{margin-left:40px;line-height:58px;font-size:18px}.panel-heading .nav-pills li:first-of-type{margin-left:0}.panel-heading .nav-pills li.active>a{background-color:transparent;color:#2f4358;font-weight:600}.panel-heading .nav-pills a{padding:0;color:#6784a2}.panel-heading .nav-pills a:hover{background-color:transparent!important;color:#2f4358}.panel-title{font-size:24px}.panel-footer{background-color:#fff;text-align:right}.patient-history-item{margin:15px 0;border-radius:5px;background:rgba(239,242,245,.5);padding:5px 15px 15px}.patient-history-item .ph-note-item{margin-top:15px;font-weight:300}.patient-history-item .ph-note-heading{font-size:16px;font-weight:600}.patient-history-heading{margin:-5px -15px 10px;border-radius:5px 5px 0 0;background:#eff2f5;padding:5px 15px;font-size:18px}.patient-history-heading .ph-visit-date{display:inline-block;margin:-5px 10px -5px -15px;border-radius:5px 0 0;background:#dee2e7;padding:5px 15px;line-height:26px;font-size:16px;font-weight:600}.patient-history-heading .ph-visit-type{display:inline-block;font-weight:300}.patient-summary{position:relative;border-bottom:2px solid #eff2f5;padding-bottom:15px}.patient-summary .ps-info-group{margin-bottom:5px}.patient-summary .ps-info-group.patient-id{position:absolute;top:-10px;right:-10px;border-radius:3px;background:rgba(239,242,245,.7);padding:10px 20px;text-align:center}.progress,.progress-bar,.progress-bar-danger,.progress-bar-info,.progress-bar-success,.progress-bar-warning{background-repeat:repeat-x}.patient-summary .ps-info-group.patient-id .ps-info-label{margin-right:5px;margin-bottom:0;width:auto;text-align:right}.patient-summary .ps-info-group.patient-id .ps-info-data{font-size:22px;font-weight:300}.patient-summary .ps-info-group.patient-name .ps-info-data{font-size:22px;font-weight:600}.patient-summary .ps-info-group.long-form{float:left;padding-right:15px;width:50%}.patient-summary .ps-info-label{margin-right:10px;width:40px;font-size:16px;font-weight:400}.patient-summary .ps-info-data-block,.sidebar-nav{font-weight:300}.patient-summary .ps-info-label.wide{width:auto}.patient-summary .ps-info-data{color:#2f4358;font-size:16px;font-weight:300}.progress{background-image:linear-gradient(to bottom,#ebebeb 0,#f5f5f5 100%)}.progress-bar{background-image:linear-gradient(to bottom,#428bca 0,#3071a9 100%)}.progress-bar-success{background-image:linear-gradient(to bottom,#5cb85c 0,#449d44 100%)}.progress-bar-info{background-image:linear-gradient(to bottom,#5bc0de 0,#31b0d5 100%)}.progress-bar-warning{background-image:linear-gradient(to bottom,#f0ad4e 0,#ec971f 100%)}.progress-bar-danger{background-image:linear-gradient(to bottom,#d9534f 0,#c9302c 100%)}.sidebar-nav{display:block;position:fixed;top:0;bottom:0;left:0;z-index:1;box-shadow:1px 0 0 #1e2c3a;background-color:#263648;width:275px;color:#fff}.sidebar-nav .mega-octicon{text-align:center;color:#92a7bc;font-size:16px}.scroll-container{position:absolute;top:55px;left:0;width:100%;height:calc(100% - 55px);overflow:auto}.sidebar-nav-header{position:absolute;top:0;left:0;border-bottom:1px solid #1e2c3a;background-color:#2f4358;width:100%;height:55px}.sidebar-nav-logo{transition:opacity .2s ease;display:inline-block;padding:0 15px;height:55px}.sidebar-nav-logo .logo-svg{position:relative;top:15px;width:150px}.settings-trigger{float:right;padding:15px}.settings-trigger.active .mega-octicon{color:#00bd9c}.settings-nav{position:absolute;top:48px;right:10px;z-index:10;border-radius:5px;background-color:#eff2f5;min-width:130px}.settings-nav::before{display:block;position:absolute;top:-7px;right:10px;border-right:5px solid transparent;border-bottom:7px solid #eff2f5;border-left:5px solid transparent;content:' '}.settings-nav>a{display:block;border-top:1px solid #dee2e7;padding:6px 10px;color:#3a4d63;font-size:14px;font-weight:400}.settings-nav>a:first-of-type{border-top:0}.sidebar-nav-search{border-bottom:1px solid #1e2c3a;padding:10px 15px;height:58px}.sidebar-nav-search .form-group{float:left;margin-bottom:0}.sidebar-nav-search input{border:0;border-radius:5px 0 0 5px;background-color:#546a83;padding:6px 12px;width:198px;height:38px;color:#2e4359;font-size:18px;font-weight:300}.sidebar-nav-search input::-webkit-input-placeholder{color:#92a7bc}.sidebar-nav-search input:focus{background-color:#fff}.sidebar-nav-search .btn{transition:opacity .2s ease;position:absolute;top:10px;right:15px;border-radius:0 5px 5px 0;background-color:#92a7bc;width:46px;height:38px;text-shadow:none;color:#d2dae3;font-size:18px}.sidebar-nav-search .btn .glyphicon{top:2px;right:1px}.primary-nav-item a:focus,.primary-nav-item a:hover,.primary-nav-item a:visited{text-decoration:none}.primary-nav-item .primary-section-link{transition:all .2s ease;display:block;border-bottom:1px solid #1e2c3a;background:#2f4358;padding:0 15px;height:48px;line-height:48px;color:#fff;font-size:18px}.primary-nav-item .primary-section-link .mega-octicon{transition:all .2s ease;float:left;margin-right:12px;width:16px;line-height:48px}.primary-nav-item .primary-section-link.active,.primary-nav-item .primary-section-link:hover{background:#546a83}.primary-nav-item .primary-section-link.active .mega-octicon,.primary-nav-item .primary-section-link:hover .mega-octicon{color:#fff}.primary-nav-item .category-sub-items{border-bottom:1px solid #1e2c3a;background:#3a4d63}.primary-nav-item .category-sub-item{transition:all .2s ease;display:block;background:#3a4d63;padding:0 15px;height:36px;line-height:36px;color:#c2d2e3;font-size:15px}.primary-nav-item .category-sub-item:hover{background:#546a83;color:#fff}.primary-nav-item .category-sub-item:hover .octicon{margin-right:2px;margin-left:10px;color:#fff}.primary-nav-item .category-sub-item .octicon{transition:all .2s ease;float:left;margin-right:6px;margin-left:6px;width:16px;line-height:36px}.tt-menu,.twitter-typeahead{width:100%}.primary-nav-item .nav-link{font-weight:300}.tab-pane .panel-heading{background-color:transparent;padding:10px 0}.tab-pane .panel-title{font-size:20px}.nav-pills{margin:0}.nav-pills li{margin-left:40px;line-height:58px;font-size:18px}.nav-pills li:first-of-type{margin-left:0}.nav-pills li.active>a{background-color:transparent;color:#2f4358;font-weight:600}.nav-pills a{padding:0;color:#6784a2}.nav-pills a:focus,.nav-pills a:hover{background-color:transparent;text-decoration:none;color:#2f4358}.nav-pills.tab-nav{border-bottom:2px solid #eff2f5}.nav-pills.tab-nav li{margin-left:0;line-height:26px;font-size:16px}.nav-pills.tab-nav li.active a,.nav-pills.tab-nav li:focus a,.nav-pills.tab-nav li:hover a{margin-bottom:-2px;border-bottom:2px solid #6784a2}.tt-menu .query-results,.twitter-typeahead .tt-hint,.twitter-typeahead .tt-query{margin-bottom:0}.table-header{background-color:#d2dae3;color:rgba(38,54,72,.7)}.table-header .sortable-column{cursor:pointer}.table-header .sortable-column .inactive{color:rgba(38,54,72,.3)}.tt-menu{border:1px solid rgba(0,0,0,.1);border-radius:0 0 3px 3px;box-shadow:0 3px 5px rgba(0,0,0,.1);background-clip:padding-box;background-color:#fff;padding:5px 0;min-width:160px;max-height:110px;overflow-y:scroll;overflow-x:none}.tt-suggestion{display:block;padding:3px 12px}.tt-suggestion.tt-is-under-cursor{background-color:#0081c2;background-image:linear-gradient(to bottom,#08c,#0077b3);background-repeat:repeat-x;color:#fff}.tt-suggestion.tt-is-under-cursor a{color:#fff}.tt-suggestion p{margin:0}.scrollable-typeahead .tt-menu{max-height:200px;overflow-y:auto}.signin-logo{margin:40px auto;max-width:200px}.form-signin{position:absolute;top:0;left:50%;transform:translate(-50%,0);margin:0 auto;max-width:300px}.form-signin .alert{margin-bottom:15px}.form-signin input{background:#fff}.signin-contents{border-radius:10px;background:#dde5ee;padding:20px;width:300px}.form-signin-heading{margin:0 0 20px;text-align:center;letter-spacing:2px;color:#263648;font-size:24px;font-weight:300} \ No newline at end of file diff --git a/prod/assets/hospitalrun-a2e0697179dd75f87728751625c4b795.js b/prod/assets/hospitalrun-a2e0697179dd75f87728751625c4b795.js deleted file mode 100644 index 10ee79a904..0000000000 --- a/prod/assets/hospitalrun-a2e0697179dd75f87728751625c4b795.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict";define("hospitalrun/adapters/application",["exports","ember","ember-pouch","npm:uuid"],function(e,t,n,a){var l=t.default.get,s=t.default.run.bind;e.default=n.Adapter.extend({database:t.default.inject.service(),db:t.default.computed.reads("database.mainDB"),_specialQueries:["containsValue","mapReduce"],_esDefaultSize:25,_executeContainsSearch:function(e,n,a){var l=this;return new t.default.RSVP.Promise(function(s,i){var o=l.getRecordTypeName(n),r="/search/hrdb/"+o+"/_search";a.containsValue&&a.containsValue.value?function(){var o="";a.containsValue.keys.forEach(function(e){t.default.isEmpty(o)||(o+=" OR ");var n=a.containsValue.value;switch(e.type){case"contains":n="*"+n+"*";break;case"fuzzy":n+="~"}o=o+"data."+e.name+":"+n});var d=function(a){if(a&&a.hits&&a.hits.hits){var o=t.default.A(a.hits.hits).map(function(e){var t=e._source;return t.id=t._id,t}),r={rows:o};l._handleQueryResponse(r,e,n).then(s,i)}else a.rows?l._handleQueryResponse(a,e,n).then(s,i):i("Search results are not valid")};t.default.isEmpty(a.size)&&(a.size=l.get("_esDefaultSize")),t.default.$.ajax(r,{dataType:"json",data:{q:o,size:l.get("_esDefaultSize")},success:d})}():i("invalid query")})},_handleQueryResponse:function(e,n,a){var l=this,s=this.get("database");return new t.default.RSVP.Promise(function(t,i){if(e.rows.length>0)!function(){var o=e.rows.map(function(e){return s.getEmberId(e.id)});l.findRecord(n,a,o).then(function(e){var n=a.modelName.camelize().pluralize(),l=[];o.forEach(function(t){var a=e[n].findBy("id",t);l.push(a)}),e[n]=l,t(e)},i)}();else{var o={};o[a.modelName]=[],t(o)}})},_doesStartKeyContainSpecialCharacters:function(e){var n=!1,a=this.get("maxValue");return!t.default.isEmpty(e)&&t.default.isArray(e)&&e.forEach(function(e){null!==e&&e!==a||(n=!0)}),n},_startChangesToStoreListener:function(){var e=this.get("db");e&&(this.changes=e.changes({since:"now",live:!0,returnDocs:!1}).on("change",s(this,"onChange")).on("error",t.default.K),e.changesListener=this.changes)},generateIdForRecord:function(){return a.default.v4()},query:function(e,n,a,s){for(var i=this,o=!1,r=0;r0}),_canModifyValue:function(e,t){switch(t){case"inventory_types":if("Medication"===e)return!1;break;case"lab_pricing_types":if("Lab Procedure"===e)return!1;break;case"imaging_pricing_types":if("Imaging Procedure"===e)return!1;break;case"visit_types":if("Admission"===e)return!1;if("Imaging"===e)return!1;if("Lab"===e)return!1;if("Pharmacy"===e)return!1}return!0},_importLookupList:function(e){var t=this,n=u(this,"fileSystem"),l=u(this,"lookupTypeList"),s=u(l,"value");n.fileToString(e).then(function(e){(0,a.default)(e,{trim:!0},function(e,n){n.forEach(function(e){var t=d(e,1),n=t[0];s.includes(n)||s.addObject(n)}),s.sort();var a=u(t,"i18n"),i=a.t("admin.lookup.alertImportListSaveMessage"),o=a.t("admin.lookup.alertImportListSaveTitle");l.save().then(function(){u(t,"lookupLists").resetLookupList(u(l,"id")),t.displayAlert(o,i),t.set("importFile"),t.set("model.importFileName")})})})},_sortValues:function(e,n){return t.default.compare(e.toLowerCase(),n.toLowerCase())},activateKeyboard:t.default.on("init",function(){this.set("keyboardActivated",!0)}),updateListKeyboard:t.default.on((0,r.keyDown)("ctrl+KeyS"),(0,r.keyDown)("cmd+KeyS"),function(e){this.send("updateList"),e.preventDefault()}),actions:{addValue:function(){this.send("openModal","admin.lookup.edit",t.default.Object.create({isNew:!0}))},confirmDeleteValue:function(e){var n=this.get("i18n"),a=n.t("admin.lookup.titles.deleteLookupValue"),l=n.t("admin.lookup.messages.deleteLookupValue",{value:e});this.displayConfirm(a,l,"deleteValue",t.default.Object.create({valueToDelete:e}))},deleteValue:function(e){var t=this.get("lookupTypeList"),n=t.get("value"),a=e.get("valueToDelete");n.removeObject(a.toString()),t.save()},editValue:function(e){t.default.isEmpty(e)||this.send("openModal","admin.lookup.edit",t.default.Object.create({isNew:!1,originalValue:e.toString(),value:e.toString()}))},importList:function(){var e=this.get("importFile");e&&e.type?this._importLookupList(e):this.displayAlert(this.get("i18n").t("admin.lookup.alertImportListTitle"),this.get("i18n").t("admin.lookup.alertImportListMessage"))},updateList:function(){var e=this,t=this.get("lookupTypeList");t.save().then(function(){u(e,"lookupLists").resetLookupList(u(t,"id")),e.displayAlert(e.get("i18n").t("admin.lookup.alertImportListUpdateTitle"),e.get("i18n").t("admin.lookup.alertImportListUpdateMessage"))})},updateValue:function(e){var t=!1,n=this.get("lookupTypeList"),a=n.get("value"),l=e.get("value");if(e.get("isNew"))t=!0;else{var s=e.get("originalValue");l!==s&&(a.removeObject(s),t=!0)}t&&(a.addObject(l),a=a.sort(this._sortValues),n.set("value",a),this.send("updateList"))}}})}),define("hospitalrun/admin/lookup/edit/controller",["exports","ember","hospitalrun/mixins/is-update-disabled"],function(e,t,n){e.default=t.default.Controller.extend(n.default,{editController:t.default.inject.controller("admin/lookup"),showUpdateButton:!0,updateButtonAction:"update",updateButtonText:function(){var e=this.get("i18n");return this.get("model.isNew")?e.t("buttons.add"):e.t("buttons.update")}.property("model.isNew"),actions:{cancel:function(){this.send("closeModal")},update:function(){t.default.isEmpty(this.get("model.value"))||(this.get("editController").send("updateValue",this.get("model")),this.send("closeModal"))}}})}),define("hospitalrun/admin/lookup/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"2fhdRW7b",block:'{"statements":[["block",["modal-dialog"],null,[["isUpdateDisabled","title","updateButtonAction","updateButtonText"],[["get",["isUpdateDisabled"]],["helper",["t"],[["helper",["if"],[["get",["model","isNew"]],"admin.lookup.edit.template.addTitle","admin.lookup.edit.template.editTitle"],null]],null],["get",["updateButtonAction"]],["get",["updateButtonText"]]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["em-input"],null,[["label","property","class"],[["helper",["t"],["admin.lookup.edit.template.labelTitle"],null],"value","lookup-type-value"]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton","action"],[["get",["model"]],false,"update"]],0]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/admin/lookup/edit/template.hbs"}})}),define("hospitalrun/admin/lookup/route",["exports","hospitalrun/routes/abstract-index-route","ember-i18n"],function(e,t,n){e.default=t.default.extend({hideNewButton:!0,pageTitle:(0,n.translationMacro)("admin.lookup.pageTitle"),model:function(){var e=this;return this.store.findAll("lookup").catch(function(t){return e.send("error",t)})},afterModel:function(e){e.set("lookupType","anesthesia_types")},actions:{deleteValue:function(e){this.controller.send("deleteValue",e)}}})}),define("hospitalrun/admin/lookup/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"Kwt+t5YD",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",["model"]],false]],6],["text"," "],["close-element"],["text","\\n"],["close-element"],["text","\\n"],["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",["lookupTitle"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["canEditValues"]]],null,5],["text"," "],["open-element","div",[]],["static-attr","class","panel-footer"],["flush-element"],["text","\\n"],["block",["if"],[["get",["canEditValues"]]],null,2],["block",["em-form"],null,[["model","submitButton"],[["get",["lookupTypeList"]],false]],1],["text"," "],["close-element"],["text","\\n"],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["em-checkbox"],null,[["label","property","class"],["Organize Pricing By Type","organizeByType","col-sm-4"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","col-sm-4"],["flush-element"],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["labels.userCanAddNewValue"],null],"userCanAdd"]]],false],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default"],["modifier",["action"],[["get",[null]],"updateList"]],["flush-element"],["append",["helper",["t"],["buttons.update"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["showOrganizeByType"]]],null,0],["text"," "],["open-element","div",[]],["static-attr","class","col-sm-4"],["flush-element"],["text","\\n "],["append",["helper",["file-upload"],null,[["label","property","selectedFile"],[["helper",["t"],["labels.importFile"],null],"importFileName",["get",["importFile"]]]]],false],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default"],["modifier",["action"],[["get",[null]],"importList"]],["flush-element"],["append",["helper",["t"],["buttons.import"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"addValue"]],["flush-element"],["append",["helper",["t"],["buttons.addValue"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"editValue",["get",["lookupTypeValue","value"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["append",["helper",["t"],["labels.edit"],null],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"confirmDeleteValue",["get",["lookupTypeValue","value"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["append",["helper",["t"],["labels.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","lookup-type-value"],["flush-element"],["append",["unknown",["lookupTypeValue","value"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["lookupTypeValue","canModify"]]],null,3],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["lookupTypeValue"]},{"statements":[["text"," "],["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.value"],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",["lookupTypeValues"]]],null,4],["text"," "],["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","selected"],["col-xs-3 lookup-type form-input-group",["helper",["t"],["labels.lookupType"],null],"lookupType",["get",["lookupTypes"]],"value","name",["get",["model","lookupType"]]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/admin/lookup/template.hbs"}})}),define("hospitalrun/admin/print-header/controller",["exports","hospitalrun/controllers/abstract-edit-controller"],function(e,t){e.default=t.default.extend({hideCancelButton:!0,updateCapability:"update_config",afterUpdate:function(){this.displayAlert(this.get("i18n").t("admin.header.titles.optionsSaved"),this.get("i18n").t("admin.header.messages.headerSaved"))}})}),define("hospitalrun/admin/print-header/route",["exports","hospitalrun/routes/abstract-edit-route","ember","ember-i18n","hospitalrun/utils/unauthorized-error"],function(e,t,n,a,l){e.default=t.default.extend({hideNewButton:!0,newTitle:(0,a.translationMacro)("admin.header.newTitle"),editTitle:(0,a.translationMacro)("admin.header.editTitle"),model:function(){var e=this;return new n.default.RSVP.Promise(function(t,n){e.get("store").find("option","print_header").then(function(e){t(e)},function(a){if(a instanceof l.default)n(a);else{var s=e.get("store");t(s.push(s.normalize("option",{id:"print_header",value:{facilityName:e.get("i18n").t("admin.header.facilityName"),headerLine1:e.get("i18n").t("admin.header.headerLine1")}})))}})})}})}),define("hospitalrun/admin/print-header/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"S6QZp+QS",block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["em-input"],null,[["label","property"],[["helper",["t"],["admin.header.facilityName"],null],"value.facilityName"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["admin.header.includeFacilityName"],null],"value.facilityNameInclude"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["label","property"],[["helper",["t"],["admin.header.headerLine1"],null],"value.headerLine1"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["admin.header.includeHeaderLine1"],null],"value.headerLine1Include"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["label","property"],[["helper",["t"],["admin.header.headerLine2"],null],"value.headerLine2"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["admin.header.includeHeaderLine2"],null],"value.headerLine2Include"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["label","property"],[["helper",["t"],["admin.header.headerLine3"],null],"value.headerLine3"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["admin.header.includeHeaderLine3"],null],"value.headerLine3Include"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["label","property"],[["helper",["t"],["admin.header.logoURL"],null],"value.logoURL"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["admin.header.includeLogoURL"],null],"value.logoURLInclude"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["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",["model"]],false]],0],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/admin/print-header/template.hbs"}})}),define("hospitalrun/admin/query/controller",["exports","ember","hospitalrun/mixins/edit-panel-props","hospitalrun/utils/select-values"],function(e,t,n,a){e.default=t.default.Controller.extend(n.default,{hideCancelButton:!0,showUpdateButton:!0,updateButtonAction:"query",updateButtonText:"Query",objectTypeList:["appointment","imaging","inv-location","inv-purchase","inv-request","inventory","invoice","lab","medication","patient","photo","procedure","visit","vital"],objectTypes:t.default.computed.map("objectTypeList",a.default.selectValuesMap),actions:{query:function e(){var n=this.get("fieldName"),a=this.get("objectType"),l=this.get("queryValue"),e={containsValue:{value:l,keys:[n]}};this.store.query(a,e).then(function(e){var n=this;t.default.isEmpty(e)?(this.set("errorMessage","Query returned no results."),this.set("haveError",!0),this.set("showQueryResults",!1)):function(){var a=void 0,l=["id"],s=[];e.get("firstObject").eachAttribute(function(e){l.push(e)}),e.forEach(function(e){var n=[];l.forEach(function(l){a=e.get(l),t.default.isEmpty(a)||n.push({name:l,value:a})}),s.push(n)}),n.set("resultRows",s),n.set("haveError",!1),n.set("showQueryResults",!0)}()}.bind(this),function(e){this.set("errorMessage",e),this.set("haveError",!0),this.set("showQueryResults",!1)}.bind(this))}}})}),define("hospitalrun/admin/query/route",["exports","ember-simple-auth/mixins/authenticated-route-mixin","ember","hospitalrun/mixins/user-session"],function(e,t,n,a){e.default=n.default.Route.extend(a.default,t.default,{beforeModel:function(){this.currentUserCan("query_db")||this.transitionTo("application")}})}),define("hospitalrun/admin/query/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"jNp4d1tp", -block:'{"statements":[["text","\\n"],["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],5]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["unknown",["name"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["value"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["result"]},{"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"],["text","Field"],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["text","Value"],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["resultRow"]]],null,0],["text"," "],["close-element"],["text","\\n"]],"locals":["resultRow"]},{"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"],["text","Query Results"],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body"],["flush-element"],["text","\\n"],["block",["each"],[["get",["resultRows"]]],null,1],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-danger"],["static-attr","role","alert"],["flush-element"],["append",["unknown",["errorMessage"]],false],["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","selected"],["col-xs-3","Object Type","objectType",["get",["objectTypes"]],["get",["objectType"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["em-input"],null,[["label","property"],["Field Name","fieldName"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["label","property"],["Query Value","queryValue"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["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]],4],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["haveError"]]],null,3],["block",["if"],[["get",["showQueryResults"]]],null,2]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/admin/query/template.hbs"}})}),define("hospitalrun/admin/roles/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember","hospitalrun/mixins/user-roles","hospitalrun/mixins/user-session"],function(e,t,n,a,l){e.default=t.default.extend(a.default,l.default,{currentRole:"",disabledAction:!1,hideCancelButton:!0,updateCapability:"define_user_roles",filteredRoles:n.default.computed.filter("userRoles",function(e){return"System Administrator"!==e.name}),availableCapabilities:[{name:"admin",capabilities:["admin","loadDb","updateConfig","defineUserRoles"]},{name:"appointments",capabilities:["appointments","addAppointment"]},{name:"billing",capabilities:["billing","addBillingDiagnosis","addCharge","addPricing","addPricingProfile","addInvoice","addPayment","deleteInvoice","deletePricing","deletePricingProfile","editInvoice","invoices","overrideInvoice","pricing"]},{name:"patients",capabilities:["patients","addAllergy","addDiagnosis","addNote","addOperativePlan","addOperationReport","addPhoto","addPatient","addProcedure","addSocialwork","addVisit","addVitals","admitPatient","deleteNote","deletePhoto","deletePatient","deleteAppointment","deleteDiagnosis","deleteProcedure","deleteSocialwork","deleteVitals","deleteVisit","dischargePatient","patientReports","visits"]},{name:"medication",capabilities:["medication","addMedication","deleteMedication","fulfillMedication"]},{name:"labs",capabilities:["labs","addLab","completeLab","deleteLab"]},{name:"imaging",capabilities:["imaging","addImaging","completeImaging","deleteImaging"]},{name:"incident",capabilities:["incident","addIncident","addIncidentCategory","deleteIncident","deleteIncidentCategory","manageIncidents","generateIncidentReport"]},{name:"inventory",capabilities:["inventory","addInventoryRequest","addInventoryItem","addInventoryPurchase","adjustInventoryLocation","deleteInventoryItem","fulfillInventory"]}],missingCapablities:n.default.computed("availableCapabilities","defaultCapabilities",function(){var e=this.get("availableCapabilities"),t=Object.keys(e),n=Object.keys(this.get("defaultCapabilities")),a=[];return n.forEach(function(n){var l=!1;t.forEach(function(t){e[t].capabilities.includes(n.camelize())&&(l=!0)}),l||a.push(n+" - "+n.camelize())}),a}),capabilitySections:n.default.computed.map("availableCapabilities",function(e){var t=this,n=[];return e.capabilities.forEach(function(e){n.push({key:e,name:t.get("i18n").t("admin.roles.capability."+e)})}),{name:this.get("i18n").t("admin.roles.capability."+e.name),capabilities:n}}),actions:{selectRole:function(e){var t=this,n=this.get("model").findBy("id",e.dasherize());this.set("currentRole",e),this.set("roleToUpdate",n);try{n?function(){var e=n.get("capabilities");t.get("availableCapabilities").forEach(function(n){n.capabilities.forEach(function(n){e.includes(n)?t.set(n,!0):t.set(n,!1)})})}():function(){var n=t.get("defaultCapabilities");Object.keys(n).forEach(function(a){n[a].includes(e)?t.set(a.camelize(),!0):t.set(a.camelize(),!1)})}()}catch(e){console.log("ex setting role:",e)}},update:function(){var e=this,t=this.get("currentRole"),a=this.get("roleToUpdate");n.default.isEmpty(a)&&(a=this.get("store").createRecord("user-role",{id:t.dasherize(),name:t}));var l=[];this.get("availableCapabilities").forEach(function(t){t.capabilities.forEach(function(t){e.get(t)===!0&&l.push(t)})}),a.set("capabilities",l),a.save().then(function(){e.displayAlert(e.get("i18n").t("admin.roles.titles.roleSaved"),e.get("i18n").t("admin.roles.messages.roleSaved",{roleName:t}))})}}})}),define("hospitalrun/admin/roles/route",["exports","hospitalrun/routes/abstract-edit-route","ember-i18n"],function(e,t,n){e.default=t.default.extend({hideNewButton:!0,newTitle:(0,n.translationMacro)("admin.userRoles"),editTitle:(0,n.translationMacro)("admin.userRoles"),model:function(){return this.get("store").findAll("user-role")}})}),define("hospitalrun/admin/roles/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"2aNV3BOq",block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],4]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["capability","name"]],["get",["capability","key"]],["helper",["concat"],["checkbox"," checkbox-",["get",["capability","key"]]],null]]]],false],["text","\\n"]],"locals":["capability"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","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",["unknown",["capabilitySection","name"]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","detail-section-content"],["flush-element"],["text","\\n"],["block",["each"],[["get",["capabilitySection","capabilities"]]],null,0],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["capabilitySection"]},{"statements":[["text"," "],["open-element","option",[]],["dynamic-attr","value",["concat",[["unknown",["userRole","name"]]]]],["dynamic-attr","selected",["helper",["eq"],[["get",["selectedRole"]],["get",["userRole","name"]]],null],null],["flush-element"],["text","\\n "],["append",["unknown",["userRole","name"]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":["userRole"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","form-group has-success"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["labels.role"],null],false],["close-element"],["text","\\n "],["open-element","select",[]],["dynamic-attr","onchange",["helper",["action"],[["get",[null]],"selectRole"],[["value"],["target.value"]]],null],["static-attr","class","form-control role-select"],["flush-element"],["text","\\n "],["open-element","option",[]],["static-attr","disabled",""],["dynamic-attr","selected",["helper",["is-not"],[["get",["selectedRole"]]],null],null],["flush-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["filteredRoles"]]],null,2],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["capabilitySections"]]],null,1]],"locals":[]},{"statements":[["text"," "],["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]],3],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/admin/roles/template.hbs"}})}),define("hospitalrun/admin/route",["exports","hospitalrun/routes/abstract-module-route"],function(e,t){e.default=t.default.extend({addCapability:"add_user",allowSearch:!1,moduleName:"admin",sectionTitle:"Admin",editPath:function(){return"users.edit"}.property(),deletePath:function(){return"users.delete"}.property()})}),define("hospitalrun/admin/visit-forms/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember","hospitalrun/mixins/visit-types"],function(e,t,n,a){var l=n.default.computed;e.default=t.default.extend(a.default,{hideCancelButton:!0,updateCapability:"update_config",visitTypesList:l.alias("model.visitTypesList"),visitFormsForEditing:l("model.visitForms","visitTypes",function(){var e=this.get("model.visitForms");return this.get("visitTypes").map(function(t){return e[t.value]||(e[t.value]="initial"),{type:t.value,form:e[t.value]}})}),visitTemplateIds:["initial","followup"],visitTemplates:l(function(){var e=this.get("i18n");return this.get("visitTemplateIds").map(function(t){return{id:t,value:e.t("admin.visitForms.labels."+t)}})}),afterUpdate:function(){this.displayAlert(this.get("i18n").t("admin.address.titles.optionsSaved"),this.get("i18n").t("admin.address.messages.addressSaved"))},actions:{selectForm:function(e,t){this.get("model.visitForms")[e]=t.target.value}}})}),define("hospitalrun/admin/visit-forms/route",["exports","hospitalrun/routes/abstract-edit-route","ember","ember-i18n"],function(e,t,n,a){e.default=t.default.extend({hideNewButton:!0,editTitle:(0,a.translationMacro)("admin.visitForms.titles.visitForms"),newTitle:n.default.computed.alias("editTitle"),model:function(){var e=this.get("store"),t={visitFormsOption:e.find("option","visit_forms"),visitTypes:e.find("lookup","visit_types")};return new n.default.RSVP.Promise(function(e,a){n.default.RSVP.hashSettled(t).then(function(t){var a=n.default.Object.create();"fulfilled"===t.visitTypes.state&&a.set("visitTypesList",t.visitTypes.value),"fulfilled"===t.visitFormsOption.state?a.set("visitForms",t.visitFormsOption.value):a.set("visitForms",{}),e(a)},a)})}})}),define("hospitalrun/admin/visit-forms/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"Wi/FzQog",block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],3]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","option",[]],["dynamic-attr","value",["concat",[["unknown",["visitTemplate","id"]]]]],["dynamic-attr","selected",["helper",["eq"],[["get",["visitForm","form"]],["get",["visitTemplate","id"]]],null],null],["flush-element"],["text","\\n "],["append",["unknown",["visitTemplate","value"]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":["visitTemplate"]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["visitForm","type"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","select",[]],["dynamic-attr","onchange",["helper",["action"],[["get",[null]],"selectForm",["get",["visitForm","type"]]],null],null],["static-attr","class","form-control role-select"],["flush-element"],["text","\\n"],["block",["each"],[["get",["visitTemplates"]]],null,1],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["visitForm"]},{"statements":[["text"," "],["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\\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"],["admin.visitForms.labels.visitType"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["admin.visitForms.labels.form"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["visitFormsForEditing"]]],null,2],["text"," "],["close-element"],["text","\\n"],["block",["em-form"],null,[["model","submitButton"],[["get",[null]],false]],0],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/admin/visit-forms/template.hbs"}})}),define("hospitalrun/admin/workflow/controller",["exports","hospitalrun/controllers/abstract-edit-controller"],function(e,t){e.default=t.default.extend({hideCancelButton:!0,updateCapability:"update_config",afterUpdate:function(){this.displayAlert(this.get("i18n").t("admin.workflow.titles.optionsSaved"),this.get("i18n").t("admin.workflow.messages.optionsSaved"))}})}),define("hospitalrun/admin/workflow/route",["exports","hospitalrun/routes/abstract-edit-route","ember-i18n"],function(e,t,n){e.default=t.default.extend({hideNewButton:!0,editTitle:(0,n.translationMacro)("admin.workflow.editTitle"),model:function(){var e=this.get("store");return e.find("option","workflow_options").catch(function(){return e.push(e.normalize("option",{id:"workflow_options",value:{admissionDeposit:!1,clinicPrepayment:!1,followupPrepayment:!1,outpatientLabPrepayment:!1,outpatientImagingPrepayment:!1,outpatientMedicationPrepayment:!1}}))})}})}),define("hospitalrun/admin/workflow/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"Mr+Jr99y",block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["admin.workflow.admissionDepositLabel"],null],"value.admissionDeposit"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["admin.workflow.clinicPrepaymentLabel"],null],"value.clinicPrepayment"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["admin.workflow.followupPrepaymentLabel"],null],"value.followupPrepayment"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["admin.workflow.outpatientLabLabel"],null],"value.outpatientLabPrepayment"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["admin.workflow.outpatientImagingLabel"],null],"value.outpatientImagingPrepayment"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["admin.workflow.outpatientMedicationLabel"],null],"value.outpatientMedicationPrepayment"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["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",["model"]],false]],0],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/admin/workflow/template.hbs"}})}),define("hospitalrun/app",["exports","ember","hospitalrun/resolver","ember-load-initializers","hospitalrun/config/environment"],function(e,t,n,a,l){var s=void 0;t.default.MODEL_FACTORY_INJECTIONS=!0,s=t.default.Application.extend({modulePrefix:l.default.modulePrefix,podModulePrefix:l.default.podModulePrefix,Resolver:n.default}),(0,a.default)(s,l.default.modulePrefix),e.default=s}),define("hospitalrun/appointments/calendar/controller",["exports","hospitalrun/appointments/index/controller","hospitalrun/mixins/appointment-statuses","moment","hospitalrun/mixins/visit-types","hospitalrun/utils/select-values","ember"],function(e,t,n,a,l,s,i){var o=i.default.computed,r=i.default.computed.alias,d=i.default.get,c=i.default.inject,u=i.default.isEmpty,p=i.default.set;e.default=t.default.extend(n.default,l.default,{appointmentType:null,endDate:null,location:null,provider:null,queryParams:["appointmentType","endDate","provider","status","startDate","location","viewType"],startDate:null,status:null,viewType:"agendaWeek",appointmentsController:c.controller("appointments"),locations:r("appointmentsController.locationList.value"),physicians:r("appointmentsController.physicianList.value"),calendarDate:o("startDate",function(){var e=d(this,"startDate");if(!u(e))return(0,a.default)(parseInt(e))}),locationList:o("locations",function(){return s.default.selectValues(d(this,"locations"),!0)}),physicianList:o("physicians",function(){return s.default.selectValues(d(this,"physicians"),!0)}),_getSelectedFilteringCriteria:function(){var e={status:d(this,"model.selectedStatus"),type:d(this,"model.selectedAppointmentType"),provider:d(this,"model.selectedProvider"),location:d(this,"model.selectedLocation")};return{status:u(e.status)?null:e.status,type:u(e.type)?null:e.type,provider:u(e.provider)?null:e.provider,location:u(e.location)?null:e.location}},actions:{clearFilteringCriteria:function(){p(this,"model.selectedStatus",null),p(this,"model.selectedAppointmentType",null),p(this,"model.selectedProvider",null),p(this,"model.selectedLocation",null),this.send("filter")},createNewAppointment:function(e){var t=this.store.createRecord("appointment",{appointmentType:"Admission",allDay:!1,selectPatient:!0,startDate:e.local().toDate()});this.send("editAppointment",t)},filter:function(){var e=this._getSelectedFilteringCriteria();this.setProperties({appointmentType:e.type,provider:e.provider,status:e.status,location:e.location})},handleVisualConfigurationChanged:function(e){this.setProperties(e)},navigateToAppointment:function(e){this.send("editAppointment",e.referencedAppointment)},updateAppointment:function(e){var t=this,n=e.referencedAppointment,a=e.end.local().toDate();p(n,"startDate",e.start.local().toDate()),p(n,"endDate",a),n.save().catch(function(e){t.send("error",e,"appointments.calendar")})}}})}),define("hospitalrun/appointments/calendar/route",["exports","hospitalrun/appointments/index/route","ember","ember-i18n"],function(e,t,n,a){var l=n.default.get,s=n.default.isEmpty;e.default=t.default.extend({dateIntervalEnd:null,dateIntervalStart:null,editReturn:"appointments.calendar",filterParams:["appointmentType","provider","status","location"],modelName:"appointment",pageTitle:(0,a.translationMacro)("appointments.calendarTitle"),queryParams:{appointmentType:{refreshModel:!0},endDate:{refreshModel:!0},provider:{refreshModel:!0},status:{refreshModel:!0},startDate:{refreshModel:!0},location:{refreshModel:!0},viewType:{refreshModel:!1}},model:function(e){return this._super(e).then(this._createCalendarEvents.bind(this)).then(function(t){return t.selectedAppointmentType=e.appointmentType,t.selectedProvider=e.provider,t.selectedStatus=e.status,t.selectedLocation=e.location,t})},_createCalendarEvent:function(e){var t=l(e,"patient.displayName"),n=l(e,"provider");s(n)||(t=t+"\n"+n);var a={allDay:l(e,"allDay"),title:t,start:l(e,"startDate"),end:l(e,"endDate"),referencedAppointment:e},i=l(e,"location");if(s(i)){i=l(this,"i18n").t("appointments.labels.noLocation").toString()}return a.resourceId=i.toLowerCase(),a},_createCalendarEvents:function(e){var t=this,n=[],a=[];return e.forEach(function(e){var s=t._createCalendarEvent(e);n.push(s);var i=l(s,"resourceId");a.findBy("id",i)||a.push({id:i,title:l(s,"referencedAppointment.location")})}),{events:n,resources:a}},_modelQueryParams:function(e){var t=e.endDate,n=e.startDate;return null===t||null===n?this._super(e):{options:{startkey:[parseInt(n),parseInt(n),this._getMinPouchId()],endkey:[parseInt(t),parseInt(t),this._getMaxPouchId()]},mapReduce:"appointments_by_date"}}})}),define("hospitalrun/appointments/calendar/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"yaoDoExK",block:'{"statements":[["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]],0],["text"," "],["open-element","div",[]],["static-attr","class","panel-footer"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"clearFilteringCriteria"]],["flush-element"],["append",["helper",["t"],["buttons.clear"],null],false],["close-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default"],["modifier",["action"],[["get",[null]],"filter"]],["flush-element"],["append",["helper",["t"],["buttons.filter"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["calendar-control"],null,[["events","defaultDate","defaultView","onDayClick","onEventClick","onEventDrop","onEventResize","onVisualConfigurationChanged","userCanEdit"],[["get",["model","events"]],["get",["calendarDate"]],["get",["viewType"]],["helper",["action"],[["get",[null]],"createNewAppointment"],null],["helper",["action"],[["get",[null]],"navigateToAppointment"],null],["helper",["action"],[["get",[null]],"updateAppointment"],null],["helper",["action"],[["get",[null]],"updateAppointment"],null],["helper",["action"],[["get",[null]],"handleVisualConfigurationChanged"],null],["get",["canEdit"]]]]],false],["text","\\n "],["close-element"],["text","\\n"],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content"],["col-sm-3 form-input-group",["helper",["t"],["models.appointment.labels.status"],null],"selectedStatus",["get",["appointmentStatusesWithEmpty"]]]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content"],["col-sm-3 form-input-group",["helper",["t"],["models.appointment.labels.type"],null],"selectedAppointmentType",["get",["visitTypesWithEmpty"]]]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content"],["col-sm-3 form-input-group",["helper",["t"],["models.appointment.labels.provider"],null],"selectedProvider",["get",["physicianList"]]]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content"],["col-sm-3 form-input-group",["helper",["t"],["models.appointment.labels.location"],null],"selectedLocation",["get",["locationList"]]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/appointments/calendar/template.hbs"}})}),define("hospitalrun/appointments/delete/controller",["exports","hospitalrun/controllers/abstract-delete-controller"],function(e,t){e.default=t.default.extend({title:"Delete Appointment",afterDeleteAction:function(){return this.get("model.deleteFromPatient")?"appointmentDeleted":"closeModal"}.property("model.deleteFromPatient")})}),define("hospitalrun/appointments/delete/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"k7CkZQLv",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"],["appointments.messages.deleteAppointmentMessage"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/appointments/delete/template.hbs"}})}),define("hospitalrun/appointments/edit/controller",["exports","hospitalrun/controllers/abstract-edit-controller","hospitalrun/mixins/appointment-statuses","ember","hospitalrun/mixins/patient-submodule","hospitalrun/mixins/visit-types"],function(e,t,n,a,l,s){var i=a.default.computed,o=a.default.computed.alias,r=a.default.get,d=a.default.inject,c=a.default.set;e.default=t.default.extend(n.default,l.default,s.default,{findPatientVisits:!1,updateCapability:"add_appointment",appointmentsController:d.controller("appointments"),physicianList:o("appointmentsController.physicianList"),surgeryLocationList:o("appointmentsController.surgeryLocationList"),visitLocationList:o("appointmentsController.locationList"),visitTypesList:o("appointmentsController.visitTypesList"),cancelAction:i("model.returnTo",function(){var e=r(this,"model.returnTo");return a.default.isEmpty(e)?this._super():"returnTo"}),isAdmissionAppointment:i("model.appointmentType",function(){return"Admission"===r(r(this,"model"),"appointmentType")}),lookupListsToUpdate:i("model.appointmentType",function(){var e=r(this,"model.appointmentType"),t=[{name:"physicianList",property:"model.provider",id:"physician_list"}];"Surgery"===e?t.push({name:"visitLocationList",property:"model.location",id:"visit_location_list"}):t.push({name:"surgeryLocationList",property:"model.location",id:"procedure_locations"})}),showTime:i("model.allDay","isAdmissionAppointment",function(){var e=r(this,"model.allDay"),t=r(this,"isAdmissionAppointment");return!e&&t}),afterUpdate:function(e){var t=r(this,"i18n"),n={patient:r(e,"patient.displayName")},a=t.t("appointments.messages.appointmentSaved",n),l=t.t("appointments.titles.appointmentSaved");this.displayAlert(l,a)},actions:{appointmentTypeChanged:function(e){var t=r(this,"model");c(t,"appointmentType",e),c(t,"allDay",r(this,"isAdmissionAppointment"))}}})}),define("hospitalrun/appointments/edit/route",["exports","hospitalrun/routes/abstract-edit-route","hospitalrun/mixins/add-to-patient-route","ember","moment","hospitalrun/mixins/patient-list-route","ember-i18n"],function(e,t,n,a,l,s,i){var o=a.default.get,r=a.default.isEmpty,d=a.default.RSVP.resolve;e.default=t.default.extend(n.default,s.default,{editTitle:(0,i.translationMacro)("appointments.editTitle"),modelName:"appointment",newButtonText:(0,i.translationMacro)("appointments.buttons.newButton"),newTitle:(0,i.translationMacro)("appointments.newTitle"),getNewData:function(e){var t=o(this,"idParam"),n={appointmentType:"Admission",allDay:!0,selectPatient:!0,startDate:new Date};return r(t)||"newsurgery"!==e[t]||(n.appointmentType="Surgery",n.allDay=!1,n.endDate=(0,l.default)().add("1","hours").toDate(),n.returnTo="appointments.theater"),d(n)},getScreenTitle:function(e){if("Surgery"===o(e,"appointmentType")){var t=o(this,"i18n");return o(e,"isNew")?t.t("appointments.titles.newSurgicalAppointment"):t.t("appointments.titles.editSurgicalAppointment")}return this._super(e)},model:function(e){var t=this.get("idParam"),n=e[t];if(r(t)||0!==n.indexOf("new"))return this._super(e);if(r(e.forPatientId)){if(r(e.forVisitId))return this._createNewRecord(e);var a=this._super(e);return this._setVisitOnModel(a,e.forVisitId)}var a=this._super(e);return this._setPatientOnModel(a,e.forPatientId)}})}),define("hospitalrun/appointments/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"vULBSJJS", -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 "],["open-element","div",[]],["static-attr","class","form-input-group col-sm-6 required test-appointment-type"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["static-attr","for","startTime"],["flush-element"],["append",["helper",["t"],["models.appointment.labels.type"],null],false],["close-element"],["text","\\n "],["append",["helper",["select-list"],null,[["content","optionLabelPath","optionValuePath","value","class","id","action"],[["get",["visitTypes"]],"value","id",["get",["model","appointmentType"]],"form-control","appointmentType",["helper",["action"],[["get",[null]],"appointmentTypeChanged"],null]]]],false],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["className","property","label","list","selection"],["col-sm-6 test-appointment-with","provider",["helper",["t"],["models.appointment.labels.provider"],null],["get",["physicianList"]],["get",["model","provider"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["className","property","label","list","selection"],["col-sm-6 test-appointment-location","location",["helper",["t"],["models.appointment.labels.location"],null],["get",["visitLocationList"]],["get",["model","location"]]]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","property","label","content"],["form-input-group col-sm-3 test-appointment-status","status",["helper",["t"],["models.appointment.labels.status"],null],["get",["appointmentStatuses"]]]]],false],["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"],["col-sm-6 test-appointment-with","provider",["helper",["t"],["models.appointment.labels.provider"],null],["get",["physicianList"]],["get",["model","provider"]]]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["className","property","label","list","selection"],["col-sm-6 test-appointment-location","location",["helper",["t"],["models.appointment.labels.location"],null],["get",["surgeryLocationList"]],["get",["model","location"]]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["date-time-picker"],null,[["datePickerClass","label","model"],["required test-appointment-date",["helper",["t"],["labels.date"],null],["get",["model"]]]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["date-picker"],null,[["property","label","showTime","class"],["startDate",["helper",["t"],["models.appointment.labels.startDate"],null],["get",["showTime"]],"col-sm-4 required test-appointment-start"]]],false],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","showTime","class"],["endDate",["helper",["t"],["models.appointment.labels.endDate"],null],["get",["showTime"]],"col-sm-4 required test-appointment-end"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["patient-summary"],null,[["patient","returnTo","returnToContext","disablePatientLink"],[["get",["model","patient"]],"appointments.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"],["models.patient.names.singular"],null],["get",["patientList"]],["get",["selectedPatient"]],"required test-patient-input"]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["model","selectPatient"]]],null,5,4],["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n"],["block",["if"],[["get",["isAdmissionAppointment"]]],null,3,2],["text"," "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["helper",["t"],["models.appointment.labels.allDay"],null],"allDay","col-sm-2 appointment-all-day"]]],false],["text","\\n "],["close-element"],["text","\\n\\n"],["block",["if"],[["helper",["eq"],[["get",["model","appointmentType"]],"Surgery"],null]],null,1,0],["text"," "],["append",["helper",["em-text"],null,[["label","property","rows"],[["helper",["t"],["models.appointment.labels.notes"],null],"notes",3]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],6]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/appointments/edit/template.hbs"}})}),define("hospitalrun/appointments/index/controller",["exports","hospitalrun/controllers/abstract-paged-controller","hospitalrun/mixins/user-session"],function(e,t,n){e.default=t.default.extend(n.default,{startKey:[],canAddVisit:function(){return this.currentUserCan("add_visit")}.property(),canEdit:function(){return this.currentUserCan("add_appointment")}.property(),canDelete:function(){return this.currentUserCan("delete_appointment")}.property(),sortProperties:["startDate","endDate"],sortAscending:!0})}),define("hospitalrun/appointments/index/route",["exports","hospitalrun/routes/abstract-index-route","moment","ember-i18n"],function(e,t,n,a){e.default=t.default.extend({editReturn:"appointments.index",modelName:"appointment",newButtonText:(0,a.translationMacro)("appointments.buttons.newButton"),pageTitle:(0,a.translationMacro)("appointments.thisWeek"),_getStartKeyFromItem:function(e){var t=e.get("endDate"),n=this._getPouchIdFromItem(e),a=e.get("startDate");return t&&""!==t&&(t=new Date(t),t.getTime&&(t=t.getTime())),a&&""!==a&&(a=new Date(a),a.getTime&&(a=a.getTime())),[a,t,n]},_modelQueryParams:function(){var e=(0,n.default)().endOf("week").toDate().getTime();return{options:{startkey:[(0,n.default)().startOf("week").toDate().getTime(),null,null],endkey:[e,e,this._getMaxPouchId()]},mapReduce:"appointments_by_date"}},actions:{editAppointment:function(e){e.set("returnTo",this.get("editReturn")),this.send("editItem",e)}}})}),define("hospitalrun/appointments/index/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"iYHwvIbB",block:'{"statements":[["block",["item-listing"],null,[["paginationProps"],[["get",["paginationProps"]]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["partial","appointments/item"],["text","\\n"]],"locals":["appointment"]},{"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"],["models.appointment.labels.appointmentDate"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["models.patient.labels.name"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["models.appointment.labels.type"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["models.appointment.labels.location"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["models.appointment.labels.provider"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["models.appointment.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"]]],null,0],["text"," "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":true}',meta:{moduleName:"hospitalrun/appointments/index/template.hbs"}})}),define("hospitalrun/appointments/item/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"tgFrtDZJ",block:'{"statements":[["open-element","tr",[]],["modifier",["action"],[["get",[null]],"editAppointment",["get",["appointment"]]]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","appointment-date"],["flush-element"],["text","\\n "],["append",["unknown",["appointment","formattedAppointmentDate"]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["appointment","patient","displayName"]],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","location"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["appointment","provider"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","appointment-status"],["flush-element"],["append",["unknown",["appointment","displayStatus"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["canEdit"]]],null,3],["block",["if"],[["get",["canAddVisit"]]],null,2],["block",["if"],[["get",["canDelete"]]],null,0],["text"," "],["close-element"],["text","\\n"],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"deleteItem",["get",["appointment"]]],[["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"],["modifier",["action"],[["get",[null]],"checkIn",["get",["appointment"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","glyphicon glyphicon-log-in"],["flush-element"],["close-element"],["text","\\n "],["append",["helper",["t"],["visits.buttons.checkIn"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["helper",["eq"],[["get",["appointment","displayStatus"]],"Scheduled"],null]],null,1]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"editAppointment",["get",["appointment"]]],[["bubbles"],[false]]],["flush-element"],["append",["helper",["t"],["labels.edit"],null],false],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/appointments/item/template.hbs"}})}),define("hospitalrun/appointments/missed/controller",["exports","hospitalrun/appointments/index/controller"],function(e,t){e.default=t.default.extend({startKey:[]})}),define("hospitalrun/appointments/missed/route",["exports","hospitalrun/appointments/index/route","ember-i18n"],function(e,t,n){e.default=t.default.extend({editReturn:"appointments.missed",modelName:"appointment",pageTitle:(0,n.translationMacro)("appointments.missed"),_modelQueryParams:function(){var e=this._super.apply(this,arguments);return e.filterBy=[{name:"status",value:"Missed"}],e}})}),define("hospitalrun/appointments/missed/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"I2CynOk8",block:'{"statements":[["partial","appointments/index"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[],"hasPartials":true}',meta:{moduleName:"hospitalrun/appointments/missed/template.hbs"}})}),define("hospitalrun/appointments/route",["exports","hospitalrun/routes/abstract-module-route","hospitalrun/mixins/user-session","ember-i18n"],function(e,t,n,a){e.default=t.default.extend(n.default,{addCapability:"add_appointment",allowSearch:!1,currentScreenTitle:(0,a.translationMacro)("appointments.currentScreenTitle"),editTitle:(0,a.translationMacro)("appointments.editTitle"),newTitle:(0,a.translationMacro)("appointments.newTitle"),moduleName:"appointments",newButtonText:(0,a.translationMacro)("appointments.buttons.newButton"),sectionTitle:(0,a.translationMacro)("appointments.sectionTitle"),actions:{checkIn:function(e){var t=e.get("patient"),n=e.getProperties("startDate","endDate","location","patient");n.visitType=e.get("appointmentType"),n.examiner=e.get("provider"),n.appointment=e,n.hidePatientSelection=!0,n.patient=t,n.returnTo="appointments",this.transitionTo("visits.edit","checkin").then(function(e){e.currentModel.setProperties(n),e.controller.getPatientDiagnoses(t,e.currentModel)}.bind(this))}},additionalModels:[{name:"physicianList",findArgs:["lookup","physician_list"]},{name:"locationList",findArgs:["lookup","visit_location_list"]},{name:"surgeryLocationList",findArgs:["lookup","procedure_locations"]},{name:"visitTypesList",findArgs:["lookup","visit_types"]}]})}),define("hospitalrun/appointments/search/controller",["exports","hospitalrun/appointments/index/controller","hospitalrun/mixins/appointment-statuses","ember","hospitalrun/utils/select-values","hospitalrun/mixins/visit-types"],function(e,t,n,a,l,s){e.default=t.default.extend(n.default,s.default,{appointmentsController:a.default.inject.controller("appointments"),appointmentType:null,physicians:a.default.computed.alias("appointmentsController.physicianList.value"),physicianList:function(){return l.default.selectValues(this.get("physicians"),!0)}.property("physicians"),provider:null,queryParams:["appointmentType","provider","status","startKey","startDate"],selectedProvider:null,selectedStatus:null,sortProperties:null,startDate:null,startKey:[],status:null,visitTypesList:a.default.computed.alias("appointmentsController.visitTypesList"),actions:{search:function(){var e=this.get("model.selectedAppointmentType"),t={startKey:[],previousStartKey:null,previousStartKeys:[]},n=this.get("model.selectedProvider"),l=this.get("model.selectedStatus"),s=this.get("model.selectedStartingDate");a.default.isEmpty(e)?t.appointmentType=null:t.appointmentType=e,a.default.isEmpty(n)?t.provider=null:t.provider=n,a.default.isEmpty(l)?t.status=null:t.status=l,a.default.isEmpty(s)||(t.startDate=s.getTime()),a.default.isEmpty(t)||this.setProperties(t)}}})}),define("hospitalrun/appointments/search/route",["exports","hospitalrun/appointments/index/route","hospitalrun/mixins/date-format","ember","moment","ember-i18n"],function(e,t,n,a,l,s){e.default=t.default.extend(n.default,{editReturn:"appointments.search",filterParams:["appointmentType","provider","status"],modelName:"appointment",pageTitle:(0,s.translationMacro)("appointments.searchTitle"),queryParams:{appointmentType:{refreshModel:!0},provider:{refreshModel:!0},status:{refreshModel:!0},startDate:{refreshModel:!0},startKey:{refreshModel:!0}},_modelQueryParams:function(e){var t=e.startDate,n=this.get("maxValue");return t=a.default.isEmpty(t)?(0,l.default)():(0,l.default)(parseInt(t)),{options:{startkey:[t.startOf("day").toDate().getTime(),null,"appointment_"],endkey:[n,n,"appointment_"+n]},mapReduce:"appointments_by_date"}},model:function(e){return this._super(e).then(function(t){t.setProperties({selectedAppointmentType:e.appointmentType,selectedProvider:e.provider,selectedStatus:e.status});var n=e.startDate;return n=new Date,a.default.isEmpty(e.startDate)||n.setTime(e.startDate),t.set("selectedStartingDate",n),t.set("display_selectedStartingDate",this._dateFormat(n)),t}.bind(this))}})}),define("hospitalrun/appointments/search/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"WzWiJXM4",block:'{"statements":[["block",["item-listing"],null,[["paginationProps"],[["get",["paginationProps"]]]],7]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["partial","appointments/item"],["text","\\n"]],"locals":["appointment"]},{"statements":[["append",["helper",["t"],["models.appointment.labels.status"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["models.appointment.labels.provider"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["models.appointment.labels.location"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["models.appointment.labels.type"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["models.appointment.labels.appointmentDate"],null],false]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class"],["selectedStartingDate",["helper",["t"],["appointments.labels.selectedStartingDate"],null],"col-sm-3"]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","property","label","content"],["col-sm-3 form-input-group","selectedStatus",["helper",["t"],["models.appointment.labels.status"],null],["get",["appointmentStatusesWithEmpty"]]]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content"],["col-sm-3 form-input-group",["helper",["t"],["models.appointment.labels.type"],null],"selectedAppointmentType",["get",["visitTypesWithEmpty"]]]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","property","label","content"],["col-sm-3 form-input-group","selectedProvider",["helper",["t"],["models.appointment.labels.provider"],null],["get",["physicianList"]]]]],false],["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]],6],["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-default"],["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 "],["open-element","table",[]],["static-attr","class","table"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["date",["get",["sortDesc"]],["get",["sortKey"]]]],5],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["models.patient.labels.name"],null],false],["close-element"],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["appointmentType",["get",["sortDesc"]],["get",["sortKey"]]]],4],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["location",["get",["sortDesc"]],["get",["sortKey"]]]],3],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["provider",["get",["sortDesc"]],["get",["sortKey"]]]],2],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["status",["get",["sortDesc"]],["get",["sortKey"]]]],1],["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"]]],null,0],["text"," "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":true}',meta:{moduleName:"hospitalrun/appointments/search/template.hbs"}})}),define("hospitalrun/appointments/theater/controller",["exports","hospitalrun/appointments/calendar/controller"],function(e,t){e.default=t.default.extend({dayGroupByResource:{day:{groupByResource:!0}},actions:{createNewAppointment:function(e){var t=this.store.createRecord("appointment",{appointmentType:"Surgery",selectPatient:!0,startDate:e.local().toDate(),endDate:e.add("1","hours").local().toDate()});this.send("editAppointment",t)}}})}),define("hospitalrun/appointments/theater/route",["exports","hospitalrun/appointments/calendar/route","ember-i18n"],function(e,t,n){e.default=t.default.extend({editReturn:"appointments.theater",newButtonText:(0,n.translationMacro)("appointments.buttons.scheduleSurgery"),pageTitle:(0,n.translationMacro)("appointments.titles.theaterSchedule"),_modelQueryParams:function(e){var t=this._super(e);return t.mapReduce="surgical_appointments_by_date",t},actions:{newItem:function(){this.transitionTo("appointments.edit","newsurgery")}}})}),define("hospitalrun/appointments/theater/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"Gi4jgZzU",block:'{"statements":[["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]],0],["text"," "],["open-element","div",[]],["static-attr","class","panel-footer"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"clearFilteringCriteria"]],["flush-element"],["append",["helper",["t"],["buttons.clear"],null],false],["close-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default"],["modifier",["action"],[["get",[null]],"filter"]],["flush-element"],["append",["helper",["t"],["buttons.filter"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["calendar-control"],null,[["events","defaultDate","defaultView","onDayClick","onEventClick","onEventDrop","onEventResize","onVisualConfigurationChanged","resources","userCanEdit","views"],[["get",["model","events"]],["get",["calendarDate"]],["get",["viewType"]],["helper",["action"],[["get",[null]],"createNewAppointment"],null],["helper",["action"],[["get",[null]],"navigateToAppointment"],null],["helper",["action"],[["get",[null]],"updateAppointment"],null],["helper",["action"],[["get",[null]],"updateAppointment"],null],["helper",["action"],[["get",[null]],"handleVisualConfigurationChanged"],null],["get",["model","resources"]],["get",["canEdit"]],["get",["dayGroupByResource"]]]]],false],["text","\\n "],["close-element"],["text","\\n"],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content"],["col-sm-3 form-input-group",["helper",["t"],["models.appointment.labels.status"],null],"selectedStatus",["get",["appointmentStatusesWithEmpty"]]]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content"],["col-sm-3 form-input-group",["helper",["t"],["models.appointment.labels.provider"],null],"selectedProvider",["get",["physicianList"]]]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content"],["col-sm-3 form-input-group",["helper",["t"],["models.appointment.labels.location"],null],"selectedLocation",["get",["locationList"]]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/appointments/theater/template.hbs"}})}),define("hospitalrun/appointments/today/controller",["exports","hospitalrun/appointments/index/controller"],function(e,t){e.default=t.default.extend({startKey:[]})}),define("hospitalrun/appointments/today/route",["exports","hospitalrun/appointments/index/route","moment","ember-i18n"],function(e,t,n,a){e.default=t.default.extend({editReturn:"appointments.today",modelName:"appointment",pageTitle:(0,a.translationMacro)("appointments.todayTitle"),_modelQueryParams:function(){var e=(0,n.default)().endOf("day").toDate().getTime(),t=this.get("maxValue");return{options:{startkey:[(0,n.default)().startOf("day").toDate().getTime(),null,"appointment_"],endkey:[e,e,"appointment_"+t]},mapReduce:"appointments_by_date"}}})}),define("hospitalrun/appointments/today/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"NpXWri4D",block:'{"statements":[["partial","appointments/index"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[],"hasPartials":true}',meta:{moduleName:"hospitalrun/appointments/today/template.hbs"}})}),define("hospitalrun/authenticators/custom",["exports","ember","ember-simple-auth/authenticators/base"],function(e,t,n){e.default=n.default.extend({config:t.default.inject.service(),database:t.default.inject.service(),serverEndpoint:"/db/_session",useGoogleAuth:!1,_absolutizeExpirationTime:function(e){if(!t.default.isEmpty(e))return new Date((new Date).getTime()+1e3*(e-5)).getTime()},_checkUser:function(e){var n=this;return new t.default.RSVP.Promise(function(t,a){n._makeRequest("POST",{name:e.name},"/chkuser").then(function(n){n.error&&a(n),e.displayName=n.displayName,e.role=n.role,e.prefix=n.prefix,t(e)},function(){t(e)})})},_getPromise:function(e,n){return new t.default.RSVP.Promise(function(a,l){this._makeRequest(e,n).then(function(e){t.default.run(function(){a(e)})},function(e){t.default.run(function(){l(e.responseJSON||e.responseText)})})}.bind(this))},_makeRequest:function(e,n,a){return a||(a=this.serverEndpoint),t.default.$.ajax({url:a,type:e,data:n,dataType:"json",contentType:"application/x-www-form-urlencoded",xhrFields:{withCredentials:!0}})},authenticate:function(e){var n=this;if(e.google_auth){var a=function(){n.useGoogleAuth=!0;var a={google_auth:!0,consumer_key:e.params.k,consumer_secret:e.params.s1,token:e.params.t,token_secret:e.params.s2,name:e.params.i};return{v:new t.default.RSVP.Promise(function(e,t){n._checkUser(a).then(function(t){e(t),n.get("config").setCurrentUser(t.name)},t)})}}();if("object"==typeof a)return a.v}return new t.default.RSVP.Promise(function(t,a){var l={name:e.identification,password:e.password};n._makeRequest("POST",l).then(function(e){e.name=l.name,e.expires_at=n._absolutizeExpirationTime(600),n._checkUser(e).then(function(e){n.get("config").setCurrentUser(e.name),n.get("database").setup({}).then(function(){t(e)},a)},a)},function(e){a(e.responseJSON||e.responseText)})})},invalidate:function(){return this.useGoogleAuth?t.default.RSVP.resolve():this._getPromise("DELETE")},restore:function(e){var n=this;return new t.default.RSVP.Promise(function(a,l){var s=(new Date).getTime();!t.default.isEmpty(e.expires_at)&&e.expires_at0;){var l=a.splice(0,t).map(this._mapCheckboxValues.bind(this));e.push(l)}return e}.property("content","checkboxesPerRow"),actions:{checkboxChanged:function(e,n){var a=this.get("property"),l="model."+a,s=this.get(l);t.default.isArray(s)||(s=[]), -n&&!s.includes(e)?s.addObject(e):!n&&s.includes(e)&&s.removeObject(e),this.set(l,s),this.set("selection",s),this.get("model").validate().catch(t.default.K)}}})}),define("hospitalrun/components/control-within-label",["exports","ember-rapid-forms/components/control-within-label"],function(e,t){e.default=t.default}),define("hospitalrun/components/custom-form-manager",["exports","ember","hospitalrun/utils/select-values"],function(e,t,n){var a=t.default.Component,l=t.default.computed.alias,s=t.default.get,i=t.default.inject;e.default=a.extend(n.default,{customForms:i.service(),formType:null,formsForType:null,model:null,openModalAction:"openModal",formsForSelect:l("customForms.formsForSelect"),formsToDisplay:l("customForms.formsToDisplay"),showAddButton:l("customForms.showAddButton"),didReceiveAttrs:function(){this._super.apply(this,arguments);var e=s(this,"customForms"),t=s(this,"formType"),n=s(this,"model");e.setupForms(t,n)},actions:{addForm:function(){var e=s(this,"model"),n=s(this,"formsForSelect");this.sendAction("openModalAction","custom-form-add",t.default.Object.create({modelToAddTo:e,customForms:n}))}}})}),define("hospitalrun/components/custom-form",["exports","ember","hospitalrun/utils/select-values"],function(e,t,n){var a=t.default.computed,l=t.default.isEmpty;e.default=t.default.Component.extend(n.default,{classNames:"detail-section-content",propertyPrefix:"",fieldsByRow:a("form","form.fields.[]","form.columns",function(){var e=this,n=[],a=this.get("form"),s=this.get("form.fields");return l(a)||l(s)||function(){var a=e.getWithDefault("form.columns",1),l=[],i=0,o=Math.floor(12/a);s.forEach(function(e){var s=e.get("classNames");s||(s="");var r=e.get("colSpan")||1;(i===a||i+r>a)&&(n.push(l.slice()),l=[],i=0),s+=" col-sm-"+o*r,e.set("displayClassNames",s),"radio"===e.get("type")&&e.set("mappedValues",e.get("values").map(function(e){return t.default.get(e,"label")})),l.push(e),i+=r}),i>0&&n.push(l)}(),n})})}),define("hospitalrun/components/date-filter",["exports","ember","hospitalrun/mixins/pikaday-component"],function(e,t,n){var a=t.default.Component;e.default=a.extend(n.default,{classNames:["input-group"],dateSetAction:"filter",actions:{clearFilter:function(){this.$("input").val(""),this.sendAction("dateSetAction")}}})}),define("hospitalrun/components/date-input",["exports","ember","ember-rapid-forms/components/html-input","hospitalrun/mixins/pikaday-component"],function(e,t,n,a){e.default=n.default.extend(a.default,{_shouldSetDate:function(e,n){return n&&(t.default.isEmpty(e)||t.default.isEmpty(n.getDate())||e.getTime&&n.getDate().getTime()!==e.getTime())},currentDateChangedValue:function(){var e=this.get("currentDate"),n=this.get("_picker");!t.default.isEmpty(e)&&this._shouldSetDate(e,n)&&n.setDate(e)},format:function(){return this.get("showTime")?"l h:mm A":"l"}.property("mainComponent.showTime"),showTimeChanged:function(){var e=this.get("_picker");e&&(e.destroy(),this.didInsertElement())}.observes("mainComponent.showTime"),dateSet:function(){var e=this.get("currentDate"),n=this.get("_picker");if(this._shouldSetDate(e,n)){var a=n.getDate(),l=this.get("mainComponent"),s=l.get("dateSetAction");this.set("currentDate",a),t.default.isEmpty(s)||l.sendAction("dateSetAction",a)}},didReceiveAttrs:function(){this._super.apply(this,arguments);var e=this.get("mainComponent.originalPropery"),n="display_"+e;this.currentDate=t.default.computed.alias("mainComponent.model."+e),this.minDate=t.default.computed.alias("mainComponent.minDate"),this.maxDate=t.default.computed.alias("mainComponent.maxDate"),this.showTime=t.default.computed.alias("mainComponent.showTime"),this.yearRange=t.default.computed.alias("mainComponent.yearRange"),this.addObserver("mainComponent.model."+e,this,this.currentDateChangedValue),t.default.Binding.from("mainComponent.model.errors."+e).to("mainComponent.model.errors."+n).connect(this)}})}),define("hospitalrun/components/date-picker",["exports","ember-rapid-forms/components/em-input"],function(e,t){e.default=t.default.extend({dateSetAction:null,htmlComponent:"date-input",minDate:null,maxDate:null,originalPropery:null,showTime:!1,yearRange:10,didReceiveAttrs:function(e){var t=this.get("property"),n="display_"+t;this.set("property",n),this.set("originalPropery",t),this._super(e)}})}),define("hospitalrun/components/date-time-picker",["exports","ember","moment"],function(e,t,n){var a=t.default.computed,l=t.default.isEmpty;e.default=t.default.Component.extend({i18n:t.default.inject.service(),dateTimePickerDate:null,datePickerClass:"",endDate:t.default.computed.alias("model.endDate"),endHour:null,endMinute:null,label:"",startDate:t.default.computed.alias("model.startDate"),startHour:null,startMinute:null,didReceiveAttrs:function(){var e=(0,n.default)(this.get("endDate")),t=(0,n.default)(this.get("startDate"));l(e)&&(e=t),this.set("endHour",e.hour()),this.set("endMinute",e.minute()),this.set("startHour",t.hour()),this.set("startMinute",t.minute()),this.set("dateTimePickerDate",t.toDate()),this._updateDates()},hourList:a(function(){var e=void 0,t=[],n=this.get("i18n");for(e=0;e<24;e++){var a=void 0,l={hour:e%12};a=0===e?n.t("components.dateTimePicker.midnight"):12===e?n.t("components.dateTimePicker.noon"):e<12?n.t("components.dateTimePicker.amHour",l):n.t("components.dateTimePicker.pmHour",l),t.push({name:a,value:e})}return t}),isAllDay:a("model.allDay",function(){var e=this.get("model.allDay");return e&&(this.set("startHour",0),this.set("startMinute",0),this.set("endHour",23),this.set("endMinute",59),this._updateDates()),e}),minuteList:a(function(){var e=void 0,t=[];for(e=0;e<60;e++)t.push({name:String("00"+e).slice(-2),value:e});return t}),actions:{dateChanged:function(){this._updateDates()},endHourChanged:function(e){this.set("endHour",e),this._updateDates()},endMinuteChanged:function(e){this.set("endMinute",e),this._updateDates()},startHourChanged:function(e){this.set("startHour",e),this._updateDates()},startMinuteChanged:function(e){this.set("startMinute",e),this._updateDates()}},endTimeHasError:a("model.isValid",function(){return this.get("model.errors.endDate").length>0}),_updateDates:function(){var e=this;t.default.run.once(this,function(){["start","end"].forEach(function(a){var l=a+"Date",s=e.get(l),i=e.get("dateTimePickerDate"),o=e.get(a+"Hour"),r=e.get(a+"Minute");t.default.isEmpty(i)||(s=(0,n.default)(i),s.hour(o),s.minute(r),e.set(l,s.toDate()))}),e.get("model").validate().catch(t.default.K)})}})}),define("hospitalrun/components/edit-panel",["exports","ember"],function(e,t){e.default=t.default.Component.extend({editPanelProps:null,cancelAction:"cancel",actions:{cancel:function(){this.sendAction("cancelAction")},disabledAction:function(){this.sendAction("editPanelProps.disabledAction")},fireButtonAction:function(e){this.set(e,e),this.sendAction(e)},updateButtonAction:function(){this.sendAction("editPanelProps.updateButtonAction")}}})}),define("hospitalrun/components/em-checkbox",["exports","ember-rapid-forms/components/em-checkbox"],function(e,t){e.default=t.default}),define("hospitalrun/components/em-custom-input",["exports","ember-rapid-forms/components/em-custom-input"],function(e,t){e.default=t.default}),define("hospitalrun/components/em-form-control-help",["exports","ember-rapid-forms/components/em-form-control-help"],function(e,t){e.default=t.default}),define("hospitalrun/components/em-form-group",["exports","ember-rapid-forms/components/em-form-group"],function(e,t){e.default=t.default}),define("hospitalrun/components/em-form-label",["exports","ember-rapid-forms/components/em-form-label"],function(e,t){e.default=t.default}),define("hospitalrun/components/em-form-submit",["exports","ember-rapid-forms/components/em-form-submit"],function(e,t){e.default=t.default}),define("hospitalrun/components/em-form",["exports","ember-rapid-forms/components/em-form"],function(e,t){e.default=t.default}),define("hospitalrun/components/em-input",["exports","ember-rapid-forms/components/em-input"],function(e,t){e.default=t.default}),define("hospitalrun/components/em-select",["exports","ember-rapid-forms/components/em-select"],function(e,t){e.default=t.default}),define("hospitalrun/components/em-text",["exports","ember-rapid-forms/components/em-text"],function(e,t){e.default=t.default}),define("hospitalrun/components/erf-html-checkbox",["exports","ember-rapid-forms/components/html-checkbox"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/components/erf-html-custom-input",["exports","ember-rapid-forms/components/html-custom-input"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/components/erf-html-input",["exports","ember-rapid-forms/components/html-input"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/components/erf-html-select",["exports","ember-rapid-forms/components/html-select"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/components/erf-html-text",["exports","ember-rapid-forms/components/html-text"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/components/ext-radio",["exports","ember"],function(e,t){e.default=t.default.Component.extend({includeOtherOption:!1,otherOptionLabel:null,showInline:!1,haveLabel:function(){var e=this.get("content.firstObject");return!t.default.isEmpty(e.label)}.property("content"),radioClass:function(){return this.get("showInline")?"radio-inline":"radio"}.property("showInline")})}),define("hospitalrun/components/file-upload",["exports","hospitalrun/components/image-upload"],function(e,t){e.default=t.default.extend({resizeFile:!1})}),define("hospitalrun/components/form-group-control",["exports","ember-rapid-forms/components/form-group-control"],function(e,t){e.default=t.default}),define("hospitalrun/components/form-group",["exports","ember-rapid-forms/components/form-group"],function(e,t){e.default=t.default}),define("hospitalrun/components/full-calendar",["exports","ember-fullcalendar/components/full-calendar"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/components/icd10-pcs-typeahead",["exports","hospitalrun/components/icd10-typeahead"],function(e,t){e.default=t.default.extend()}),define("hospitalrun/components/icd10-typeahead",["exports","hospitalrun/components/type-ahead"],function(e,t){e.default=t.default.extend({class:"scrollable-typeahead",minlength:2,selectionKey:"id",setOnBlur:!0,templates:{header:''},_sourceQuery:function(e,t){this.bloodhound.get(e,function(n){t(n),this.$(".query-results").html(""+e+" returned "+n.length+" results")}.bind(this))},_getSource:function(){return this._sourceQuery.bind(this)}})}),define("hospitalrun/components/image-upload",["exports","ember","ember-rapid-forms/components/em-input"],function(e,t,n){var a=t.default.isEmpty;e.default=n.default.extend({fileInputEl:null,isImage:!0,resizeFile:!0,selectedFile:null,type:"file",_fileChanged:function(){var e=this,t=this.get("fileInputEl"),n=this.get("resizeFile");!a(t.files[0])&&n?function(){var n=window.URL.createObjectURL(t.files[0]),a=new Image;a.src=n,a.addEventListener("load",function(){window.URL.revokeObjectURL(n),this.set("selectedFile",this._resizeImage(a)),this.set("isImage",!0)}.bind(e)),a.addEventListener("error",function(){window.URL.revokeObjectURL(n),this.set("selectedFile",t.files[0]),this.set("isImage",!1)}.bind(e))}():(this.set("isImage",!1),this.set("selectedFile",t.files[0]))},_resizeImage:function(e){var t=document.createElement("canvas"),n=e.height,a=e.width;a>n?a>1024&&(n=Math.round(n*=1024/a),a=1024):n>1024&&(a=Math.round(a*=1024/n),n=1024),t.width=a,t.height=n,t.getContext("2d").drawImage(e,0,0,a,n);for(var l=t.toDataURL("image/png"),s=atob(l.split(",")[1]),i=[],o=0;o=l&&(s=a),o},0),s>-1?a.get("length")>s+1&&(a=a.slice(0,s+1),this.set("calculatedLocationPickers",a)):a.addObject(t.default.Object.create()),this._setupLocationPickers(a,n)),a.forEach(function(e){i.addObject(e.get("selectedLocation"))}),this.set("componentSelectedLocations",i)},_setup:function(){t.default.Binding.from("selectedLocations").to("componentSelectedLocations").connect(this)}.on("init"),_setupLocationPickers:function(e,a,l){e.reduce(function(e,t){var a=t.get("selectedLocation");return t.set("subLocationList",e.map(n.default.selectObjectMap)),e.includes(a)&&!l||t.set("selectedLocation",e.get("firstObject")),t.set("label","And"),e.filter(function(e){return t.get("selectedLocation.id")!==e.get("id")})},a);var s=e.get("firstObject");t.default.isEmpty(s)||s.set("label",this.get("label")),this.set("calculatedLocationPickers",e)},locationPickers:function(){var e=this.get("locationList"),n=[],a=this.get("quantityRequested");if(!t.default.isEmpty(e)&&!t.default.isEmpty(a))return this.set("doingSetup",!0),e.reduce(function(e,l){return e0)return"have-inventory-items"}.property("content"),mappedContent:function(){var e=this.get("content"),t=[];return e&&(t=e.map(this._mapInventoryItems.bind(this))),t}.property("content"),contentChanged:function(){var e=this.get("bloodhound"),t=this.get("content");e&&(e.clear(),e.add(t.map(this._mapInventoryItems.bind(this))))}.observes("content.[]"),itemSelected:function(e){var n=this;this._super();var a=this.get("store");t.default.isEmpty(e)||a.find("inventory",e.id).then(function(e){var a=n.get("model");a.set("inventoryItem",e),t.default.run.once(n,function(){a.validate().catch(t.default.K)})})}})}),define("hospitalrun/components/item-listing",["exports","ember","hospitalrun/mixins/paging-actions"],function(e,t,n){e.default=t.default.Component.extend(n.default,{classNames:["panel","panel-primary"]})}),define("hospitalrun/components/loading-message",["exports","ember","ember-i18n"],function(e,t,n){e.default=t.default.Component.extend({tagName:"span",showLoadingMessages:!1,loadingMessages:[(0,n.translationMacro)("loading.messages.0"),(0,n.translationMacro)("loading.messages.1"),(0,n.translationMacro)("loading.messages.2"),(0,n.translationMacro)("loading.messages.3"),(0,n.translationMacro)("loading.messages.4"),(0,n.translationMacro)("loading.messages.5"),(0,n.translationMacro)("loading.messages.6"),(0,n.translationMacro)("loading.messages.7"),(0,n.translationMacro)("loading.messages.8"),(0,n.translationMacro)("loading.messages.9"),(0,n.translationMacro)("loading.messages.10"),(0,n.translationMacro)("loading.messages.11")],_setRandomMessage:function(){var e=this.get("loadingMessages"),n=Math.floor(Math.random()*e.length);this.set("message",e[n]),this.set("timer",t.default.run.later(this,this._setRandomMessage,1e3))},didInsertElement:function(){this._setRandomMessage()},willDestroyElement:function(){var e=this.get("timer");t.default.isEmpty(e)||t.default.run.cancel(e)}})}),define("hospitalrun/components/location-select",["exports","ember"],function(e,t){e.default=t.default.Component.extend({locationPicker:null,_setup:function(){this.locationChange=this.currentLocationChanged.bind(this)}.on("init"),currentLocationChanged:function(e){this.get("locationPicker").set("selectedLocation",e),t.default.run.once(this,function(){this.get("parentView").locationChange()})}})}),define("hospitalrun/components/medication-allergy",["exports","ember"],function(e,t){var n=t.default.computed,a=t.default.get,l=t.default.isEmpty;e.default=t.default.Component.extend({classNames:"ps-info-group long-form",store:t.default.inject.service(),i18n:t.default.inject.service(),patient:null,displayModal:!1,currentAllergy:!1,buttonConfirmText:n("currentAllergy",function(){var e=this.get("i18n");return this.get("currentAllergy")?e.t("buttons.update"):e.t("buttons.add")}),additionalButtons:n("currentAllergy",function(){var e=this.get("currentAllergy"),t=this.get("i18n").t("buttons.delete");if(e)return[{class:"btn btn-default warning",buttonAction:"deleteAllergy",buttonIcon:"octicon octicon-x",buttonText:t}]}),showAllergies:n("canAddAllergy","patient.allergies.[]",{get:function(){var e=a(this,"canAddAllergy"),t=a(this,"patient.allergies");return e||!l(t)}}),modalTitle:t.default.computed("currentAllergy",function(){var e=this.get("currentAllergy"),t=this.get("i18n");return e?t.t("allergies.titles.editAllergy"):t.t("allergies.titles.addAllergy")}),closeAllergyModal:function(){this.set("currentAllergy",!1),this.set("displayModal",!1)},actions:{cancel:function(){this.closeAllergyModal()},closeModal:function(){this.closeAllergyModal()},editAllergy:function(e){this.set("currentAllergy",e),this.set("displayModal",!0)},createNewAllergy:function(){this.set("displayModal",!0)},updateAllergy:function(){var e=this,t=this.get("patient"),n=this.get("currentAllergy");n?n.save().then(function(){e.closeAllergyModal()}):(n=this.get("store").createRecord("allergy",{name:this.get("name")}),n.save().then(function(){t.get("allergies").pushObject(n),t.save().then(function(){e.set("name",""),e.closeAllergyModal()})}))},deleteAllergy:function(){var e=this,t=this.get("currentAllergy"),n=this.get("patient"),a=n.get("allergies");t.destroyRecord().then(function(){a.removeObject(t),n.save().then(function(){e.closeAllergyModal()})})}}})}),define("hospitalrun/components/modal-dialog",["exports","ember"],function(e,t){e.default=t.default.Component.extend({i18n:t.default.inject.service(),cancelAction:"cancel",closeModalAction:"closeModal",hideCancelButton:!1,hideUpdateButton:!1,isUpdateDisabled:!1,title:"",updateButtonAction:"",updateButtonClass:"",updateButtonText:"",cancelButtonText:"",cancelBtnText:function(){var e=this.get("cancelButtonText");return t.default.isEmpty(e)?this.get("i18n").t("buttons.cancel"):e}.property("cancelButtonText"),actions:{cancelAction:function(){this.sendAction("cancelAction")},fireButtonAction:function(e){this.set(e,e),this.sendAction(e)},updateAction:function(){this.sendAction("updateButtonAction")}},didInsertElement:function(){this.$(".modal").modal().on("hidden.bs.modal",function(){this.sendAction("closeModalAction"),this.sendAction("cancelAction")}.bind(this))},willDestroyElement:function(){var e=this.$(".modal");e.off("hidden.bs.modal"),e.modal("hide"),$("body").removeClass("modal-open"),$(".modal-backdrop").remove()}})}),define("hospitalrun/components/nav-menu",["exports","ember","hospitalrun/mixins/user-session"],function(e,t,n){e.default=t.default.Component.extend(n.default,{tagName:"div",classNames:["primary-nav-item"],nav:null,show:function(){return this._setupSubNav(),this.currentUserCan(this.get("nav").capability)}.property("nav","session.data.authenticated.userCaps"),isShowing:!1,_setup:function(){this.get("nav").closeSubnav=function(){this.set("isShowing",!1)}.bind(this),this._setupSubNav()}.on("init"),_setupSubNav:function(){var e=this;this.get("nav").subnav.forEach(function(t){t.show=e.currentUserCan(t.capability)})},callNavAction:"navAction",callCloseSettings:"closeSettings",actions:{toggleContent:function(){this.set("isShowing",!this.get("isShowing")),this.sendAction("callNavAction",this.nav)},resetNav:function(){this.sendAction("callCloseSettings")}}})}),define("hospitalrun/components/nav-paging",["exports","ember","hospitalrun/mixins/paging-actions"],function(e,t,n){e.default=t.default.Component.extend(n.default,{classNames:["paging-buttons"],paginationProps:null})}),define("hospitalrun/components/number-input",["exports","ember-rapid-forms/components/em-input"],function(e,t){e.default=t.default.extend({sanitizeFunction:function(e){return e.replace(new RegExp(/([^0-9|.]+)/g),"")},focusOut:function(){return this._sanitizeValue(),this._super()},keyUp:function(){return this._sanitizeValue(),this._super()},_sanitizeValue:function(){var e=this.get("model"),t=this.get("property"),n=e.get(t),a=this.get("sanitizeFunction")(n);e.set(t,a)}})}),define("hospitalrun/components/operative-procedures",["exports","ember"],function(e,t){function n(e){var t=s(e,"procedures"),n=s(e,"procedureDescription");l(n)||(t.addObject({description:n}),i(e,"procedureDescription",null))}e.addProcedure=n;var a=t.default.computed,l=t.default.isEmpty,s=t.default.get,i=t.default.set;e.default=t.default.Component.extend({model:null,procedureList:null,haveProcedures:a("model.procedures.[]",{get:function(){return!l(s(this,"model.procedures"))}}),actions:{addProcedure:function(){n(s(this,"model"))},deleteProcedure:function(e){var t=s(this,"model");s(t,"procedures").removeObject(e),t.validate()}}})}),define("hospitalrun/components/patient-diagnosis",["exports","ember","hospitalrun/mixins/patient-diagnosis","ember-i18n","hospitalrun/mixins/user-session"],function(e,t,n,a,l){var s=t.default.computed,i=t.default.get,o=["diagnosisContainer","hideInActiveDiagnoses","diagnosisContainer.diagnoses.@each.active","diagnosisContainer.diagnoses.@each.secondaryDiagnosis"];e.default=t.default.Component.extend(n.default,l.default,{i18n:t.default.inject.service(),allowAddDiagnosis:!1,diagnosisContainer:null,diagnosisProperty:null,diagnosisList:null,editDiagnosisAction:"editDiagnosis",hideInActiveDiagnoses:!0,showAddDiagnosisAction:"showAddDiagnosis",primaryDiagnosisLabel:(0,a.translationMacro)("patients.labels.primaryDiagnosis"),secondaryDiagnosisLabel:(0,a.translationMacro)("patients.labels.secondaryDiagnosis"),canAddDiagnosis:s("allowAddDiagnosis",{get:function(){return i(this,"allowAddDiagnosis")&&this.currentUserCan("add_diagnosis")}}),havePrimaryDiagnoses:s("primaryDiagnoses.length",{get:function(){return this.get("primaryDiagnoses.length")>0}}),haveSecondaryDiagnoses:s("secondaryDiagnoses.length",{get:function(){return this.get("secondaryDiagnoses.length")>0}}),primaryDiagnoses:s.apply(void 0,o.concat([{get:function(){var e=this.get("diagnosisContainer"),t=this.get("hideInActiveDiagnoses");return this.getDiagnoses(e,t,!1)}}])),secondaryDiagnoses:s.apply(void 0,o.concat([{get:function(){var e=this.get("diagnosisContainer"),t=this.get("hideInActiveDiagnoses");return this.getDiagnoses(e,t,!0)}}])),showPrimaryDiagnoses:s("canAddDiagnosis","havePrimaryDiagnoses",{get:function(){return this.get("canAddDiagnosis")||this.get("havePrimaryDiagnoses")}}),actions:{editDiagnosis:function(e){this.sendAction("editDiagnosisAction",e)},showAddDiagnosis:function(){this.sendAction("showAddDiagnosisAction")}}})}),define("hospitalrun/components/patient-orders",["exports","ember","hospitalrun/mixins/filter-list","hospitalrun/mixins/user-session"],function(e,t,n,a){var l=t.default.computed;e.default=t.default.Component.extend(n.default,a.default,{editImagingAction:"editImaging",editLabAction:"editLab",editMedicationAction:"editMedication",filterBy:null,filterValue:null,newImagingAction:"newImaging",newLabAction:"newLab",newMedicationAction:"newMedication",showDeleteImagingAction:"showDeleteImaging",showDeleteLabAction:"showDeleteLab",showDeleteMedicationAction:"showDeleteMedication",sortKey:null,sortDesc:!1,orderTypeFilters:t.default.computed(function(){var e=this.get("i18n");return[e.t("components.patientOrders.labels.imagingOrderType").toString(),e.t("components.patientOrders.labels.labOrderType").toString(),e.t("components.patientOrders.labels.medicationOrderType").toString()]}),canAddImaging:t.default.computed(function(){return this.currentUserCan("add_imaging")}),canAddLab:t.default.computed(function(){return this.currentUserCan("add_lab")}),canAddMedication:t.default.computed(function(){return this.currentUserCan("add_medication")}),canDeleteImaging:t.default.computed(function(){return this.currentUserCan("delete_imaging")}),canDeleteLab:t.default.computed(function(){return this.currentUserCan("delete_lab")}),canDeleteMedication:t.default.computed(function(){return this.currentUserCan("delete_medication")}),filteredList:l("orderList.[]","filterBy","filterValue",function(){var e=this.get("filterBy"),t=this.get("filterValue"),n=this.get("orderList");return n=this.filterList(n,e,t)}),orderList:l("visit.imaging.[]","visit.labs.[]","visit.medication.[]",function(){var e=this,n=this.get("i18n"),a=this.get("visit.imaging"),l=this.get("visit.labs"),s=this.get("visit.medication"),i=new t.default.A;return i.addObjects(a.map(function(t){return t.set("orderType",n.t("components.patientOrders.labels.imagingOrderType")),t.set("name",t.get("imagingType.name")),t.set("dateProcessed",t.get("imagingDate")),e._setPermissions(t,"canAddImaging","canDeleteImaging"),t})),i.addObjects(l.map(function(t){return t.set("orderType",n.t("components.patientOrders.labels.labOrderType")),t.set("name",t.get("labType.name")),t.set("dateProcessed",t.get("labDate")),e._setPermissions(t,"canAddLab","canDeleteLab"),t})),i.addObjects(s.map(function(t){return t.set("orderType",n.t("components.patientOrders.labels.medicationOrderType")),t.set("name",t.get("medicationName")),t.set("dateProcessed",t.get("prescriptionDate")),t.set("result",""),t.set("notes",t.get("prescription")),e._setPermissions(t,"canAddMedication","canDeleteMedication"),t})),i}),sortedOrders:t.default.computed("filteredList","sortKey","sortDesc",function(){var e=this.get("filteredList"),n=this.get("sortDesc"),a=this.get("sortKey");return t.default.isEmpty(e)||t.default.isEmpty(a)?e:e=e.sort(function(e,l){var s=e.get(a),i=l.get(a);return"orderType"===a&&(s=s.toString(),i=i.toString()),n?t.default.compare(i,s):t.default.compare(s,i)})}),i18n:t.default.inject.service(),visit:null,_setPermissions:function(e,t,n){e.get("canEdit")&&(this.get(t)&&e.set("canEdit",!0),this.get(n)&&e.set("canDelete",!0))},actions:{filter:function(e,t){this.setProperties({filterBy:e,filterValue:t})},newImaging:function(){this.sendAction("newImagingAction")},newLab:function(){this.sendAction("newLabAction")},newMedication:function(){this.sendAction("newMedicationAction")},editOrder:function(e){var t=e.get("constructor.modelName").capitalize();this.sendAction("edit"+t+"Action",e)},showDeleteOrder:function(e){var t=e.get("constructor.modelName").capitalize();this.sendAction("showDelete"+t+"Action",e)},sortByKey:function(e,t){this.setProperties({sortKey:e,sortDesc:t})}}})}),define("hospitalrun/components/patient-summary",["exports","ember","hospitalrun/mixins/user-session"],function(e,t,n){var a=t.default.computed,l=t.default.get,s=t.default.isEmpty,i=t.default.set;e.default=t.default.Component.extend(n.default,{allowAddAllergy:!1,allowAddDiagnosis:!1,allowAddOperativePlan:!1,classNames:["patient-summary"],diagnosisContainer:null,diagnosisList:null,disablePatientLink:!1,editDiagnosisAction:"editDiagnosis",editOperativePlanAction:"editOperativePlan",editOperationReportAction:"editOperationReport",editProcedureAction:"editProcedure",hideInActiveDiagnoses:!0,patient:null,patientProcedures:null,showAddDiagnosisAction:"showAddDiagnosis",showPatientAction:"showPatient",canAddAllergy:a("allowAddAllergy",{get:function(){return l(this,"allowAddAllergy")&&this.currentUserCan("add_allergy")}}),canAddOperativePlan:a("allowAddOperativePlan",{get:function(){return l(this,"allowAddOperativePlan")&&this.currentUserCan("add_operative_plan")}}),currentOperativePlan:a("patient.operativePlans.@each.status",{get:function(){return l(this,"patient.operativePlans").findBy("isPlanned",!0)}}),haveProcedures:a("patientProcedures.length",function(){return this.get("patientProcedures.length")>0}),shouldLinkToPatient:a("disablePatientLink",function(){return!this.get("disablePatientLink")}),didReceiveAttrs:function(){this._super.apply(this,arguments),s(l(this,"diagnosisContainer"))&&i(this,"diagnosisContainer",l(this,"patient"))},actions:{addOperativePlan:function(){this.sendAction("editOperativePlanAction")},editOperativePlan:function(e){this.sendAction("editOperativePlanAction",e)},linkToPatient:function(){if(this.get("shouldLinkToPatient")){var e=this.get("patient"),t=this.get("returnTo"),n=this.get("returnToContext");e.set("returnTo",t),e.set("returnToContext",n),this.sendAction("showPatientAction",this.get("patient"))}},editDiagnosis:function(e){this.sendAction("editDiagnosisAction",e)},editProcedure:function(e){var t=l(e,"report");s(t)?this.sendAction("editProcedureAction",e):this.sendAction("editOperationReportAction",t)},showAddDiagnosis:function(){this.sendAction("showAddDiagnosisAction")}}})}),define("hospitalrun/components/patient-typeahead",["exports","ember","hospitalrun/mixins/patient-name","hospitalrun/components/type-ahead"],function(e,t,n,a){e.default=a.default.extend(n.default,{displayKey:"name",selectedAction:"selectedPatientChanged",setOnBlur:!0,_mapPatient:function(e){var t={};return t.name=this.getPatientDisplayName(e)+" - "+this.getPatientDisplayId(e),t[this.get("selectionKey")]=e,t},contentChanged:function(){var e=this.get("bloodhound"),n=this.get("content");e&&(e.clear(),t.default.isEmpty(n)||e.add(n.map(this._mapPatient.bind(this))))}.observes("content.[]"),mappedContent:function(){var e=this.get("content"),t=[];return e&&(t=e.map(this._mapPatient.bind(this))),t}.property("content")})}),define("hospitalrun/components/photo-display",["exports","ember"],function(e,t){e.default=t.default.Component.extend({computedPhotoUrl:null,filesystem:t.default.inject.service(),isFileSystemEnabled:t.default.computed.alias("filesystem.isFileSystemEnabled"),fileName:t.default.computed.alias("photo.fileName"),photo:null,url:t.default.computed.alias("photo.url"),photoUrl:function(){var e=this.get("computedPhotoUrl"),n=this.get("fileName"),a=this.get("filesystem"),l=this.get("isFileSystemEnabled"),s=this.get("url");return t.default.isEmpty(e)?(l&&a.pathToFileSystemURL(n).then(function(e){t.default.isEmpty(e)||this.set("computedPhotoUrl",e)}.bind(this)),s):e}.property("computedPhotoUrl","fileName","url")})}),define("hospitalrun/components/price-list",["exports","ember","hospitalrun/mixins/charge-actions"],function(e,t,n){e.default=t.default.Component.extend(n.default,{attributeBindings:["tabId:id","role"],charges:t.default.computed.alias("model.charges"),classNameBindings:["active"],classNames:["tab-pane"],index:null,model:null,pricingList:null,pricingType:null,role:"tab",setChargeQuantityAction:"setChargeQuantity",active:function(){return 0===this.get("index")}.property(),pricingListByType:function(){ -var e=this.get("pricingList"),n=this.get("pricingType"),a=[];if(!t.default.isEmpty(e)){e=e.filterBy("pricingType",n),e=e.map(function(e){var t=this.findChargeForPricingItem(e,this.get("charges"));return t&&this.sendAction("setChargeQuantityAction",e.id,t.get("quantity")),e}.bind(this));for(var l=0,s=e,i=s.length;l1&&!t.default.isEmpty(e)&&!isNaN(e)}.property("calculated"),currentQuantityGroups:function(){var e=void 0,n=this.get("quantityGroups"),a=this.get("targetUnit");if(e=n.get("firstObject"),!t.default.isEmpty(e)){var l=e.unit;t.default.isEmpty(l)?this.set("quantityGroups.firstObject.unit",a):this.updateCurrentUnit(l,0)}return n}.property("quantityGroups","targetUnit"),calculateTotal:function(){var e=this.get("quantityGroups"),n=e.get("lastObject"),a=this.get("targetUnit");if(e.every(function(e){var n=e.quantity,a=e.unit;return!t.default.isEmpty(n)&&!t.default.isEmpty(a)&&!isNaN(n)})&&n.unit===a){var l=e.reduce(function(e,t){return e*parseInt(t.quantity)},1);this.set("calculated",l)}else this.set("calculated")},updateCurrentUnit:function(e,n){var a=this.get("targetUnit"),l=this.get("quantityGroups"),s=l.length;t.default.isEmpty(a)||(e===a?n1}),didInsertElement:function(){var e=s(this,"canCaptureVideo"),t=s(this,"defaultPhotoSource");o(t)&&(t=e?"takeAPicture":"uploadAFile"),this._photoSourceChanged(t)},willDestroyElement:function(){this._stopStream()},_cameraChange:function(e){r(this,"selectedCamera",e);var n=s(this,"stream"),a=s(this,"video");t.default.isEmpty(n)||(a.src=null,this._stopStream());var l=s(this,"selectedCamera"),i={audio:!1,video:{deviceId:l}};navigator.mediaDevices.getUserMedia(i).then(this._gotStream.bind(this)).catch(this._errorCallback),this._setupVideo()},_errorCallback:function(e){console.log("navigator.mediaDevices.getUserMedia error: ",e)},_gotSources:function(e){for(var t=0,n=void 0,a=[],l=0;l!==e.length;++l){var s=e[l];"videoinput"===s.kind&&(n="Camera '"+ ++t,s.label&&(n+=" ("+s.label+")"),a.addObject({deviceId:s.deviceId,label:n}))}r(this,"videoSources",a),a.length>0&&(r(this,"selectedCamera",a[0].deviceId),this._cameraChange(a[0].deviceId))},_gotStream:function(e){if(this.isDestroyed)this._stopStream(e);else{var t=s(this,"video");r(this,"stream",e),t.srcObject=e,t.play()}},_photoSourceChanged:function(e){var t=this.$(".camera"),n=s(this,"setupCamera");if(r(this,"photoSource",e),"uploadAFile"===e)t.hide();else if(t.show(),!n){var a=this.$("canvas").get(0),l=this.$("img").get(0),i=this.$("video").get(0);if(this.setProperties({canvas:a,photo:l,video:i}),navigator.mediaDevices)if(navigator.mediaDevices.enumerateDevices)navigator.mediaDevices.enumerateDevices().then(this._gotSources.bind(this)).catch(this._errorCallback),this._setupCanPlayListener(i);else if(navigator.mediaDevices.getUserMedia){var o={audio:!1,video:!0};navigator.mediaDevices.getUserMedia(o).then(this._gotStream.bind(this)).catch(this._errorCallback),this._setupCanPlayListener(i)}r(this,"setupCamera",!0)}},_setupCanPlayListener:function(e){e.removeEventListener("canplay",this._setupVideo.bind(this),!1),e.addEventListener("canplay",this._setupVideo.bind(this),!1)},_setupVideo:function(){var e=s(this,"canvas"),t=s(this,"height"),n=s(this,"video"),a=s(this,"width");t=n.videoHeight/(n.videoWidth/a),n.setAttribute("width",a),n.setAttribute("height",t),e.setAttribute("width",a),e.setAttribute("height",t),this.setProperties({height:t,width:a})},_stopStream:function(e){var a=e||s(this,"stream");if(!t.default.isEmpty(a))if(void 0===a.active)a.stop();else{var l=a.getTracks(),i=n(l,1),o=i[0];o.stop()}},actions:{cameraChange:function(e){this._cameraChange(e)},photoSourceChange:function(e){this._photoSourceChanged(e)},takePhoto:function(){var e=s(this,"canvas"),t=s(this,"height"),n=s(this,"video"),a=s(this,"width");e.width=a,e.height=t,e.getContext("2d").drawImage(n,0,0,a,t);for(var l=e.toDataURL("image/png"),i=atob(l.split(",")[1]),o=[],d=0;d0}}),actions:{nextPage:function(){var e=this.get("nextStartKey"),t=this.get("previousStartKeys"),n=this.get("firstKey");this.set("previousStartKey",n),t.push(n),this.set("startKey",e),this.showProgressModal()},previousPage:function(){var e=this.get("previousStartKey"),t=this.get("previousStartKeys");t.pop(),this.set("startKey",e),this.set("previousStartKey",t.pop()),this.set("previousStartKeys",t),this.showProgressModal()},sortByKey:function(e,t){this.setProperties({previousStartKey:null,previousStartKeys:[],nextStartKey:null,sortDesc:t,sortKey:e,startKey:null,firstKey:null}),this.showProgressModal()}}})}),define("hospitalrun/controllers/abstract-report-controller",["exports","ember","hospitalrun/mixins/date-format","hospitalrun/mixins/modal-helper","moment","hospitalrun/mixins/number-format","hospitalrun/mixins/pagination-props","hospitalrun/mixins/pouchdb","hospitalrun/mixins/progress-dialog"],function(e,t,n,a,l,s,i,o,r){e.default=t.default.Controller.extend(n.default,a.default,s.default,i.default,o.default,r.default,{defaultErrorMessage:"An error was encountered while generating the requested report. Please let your system administrator know that you have encountered an error.",offset:0,limit:25,progressMessage:"Please wait while your report is generated.",progressTitle:"Generating Report",reportColumns:null,reportHeaders:null,reportRows:[],reportTitle:null,reportType:null,reportTypes:null,showFirstPageButton:!0,showLastPageButton:!0,showReportResults:!1,_addReportRow:function(e,n,a,l){var s=void 0,i=this.get("reportRows"),o=[];t.default.isEmpty(a)&&(a=this.get("reportColumns"));for(var r in a)a[r].include&&(s=t.default.get(e,a[r].property),t.default.isEmpty(s)?o.push(""):"_numberFormat"===a[r].format?n?o.push(s):o.push(this._numberFormat(s)):!n&&a[r].format?o.push(this[a[r].format](s)):o.push(s));l?i.addObject({rowAction:l,row:o}):i.addObject(o)},_finishReport:function(e){this.set("showReportResults",!0),this.set("offset",0),this._setReportHeaders(e),this._setReportTitle(),this._generateExport(),this.closeProgressModal()},_generateExport:function(){var e=[],t=this.get("reportHeaders"),n=[t];n.addObjects(this.get("reportRows")),n.forEach(function(t){var n=void 0;n=t.row?t.row:t,n=n.map(function(e){return e?e.replace?e.replace('"','""'):e:""}),e.push('"'+n.join('","')+'"')});var a=e.join("\r\n"),l="data:application/csv;charset=utf-8,"+encodeURIComponent(a);this.set("csvExport",l)},_notifyReportError:function(e){var t=this.get("i18n");throw this.closeProgressModal(),this.displayAlert(t.t("alerts.reportError"),t.t("messages.reportError")),new Error(e)},_setReportHeaders:function(e){var n=[];t.default.isEmpty(e)&&(e=this.get("reportColumns"));for(var a in e)e[a].include&&n.push(e[a].label);this.set("reportHeaders",n)},_setReportTitle:function(){var e=this.get("endDate"),n="",a="",s=this.get("reportType"),i=this.get("reportTypes"),o=this.get("startDate");t.default.isEmpty(e)||(n=(0,l.default)(e).format("l"));var r=i.findBy("value",s);t.default.isEmpty(o)?this.set("reportTitle",this.get("i18n").t("inventory.reports.titleSingleDate",{name:r.name,date:n})):(a=(0,l.default)(o).format("l"),this.set("reportTitle",this.get("i18n").t("inventory.reports.titleDateRange",{name:r.name,startDate:a,endDate:n})))},actions:{firstPage:function(){this.set("offset",0)},nextPage:function(){var e=this.get("limit");this.incrementProperty("offset",e)},previousPage:function(){var e=this.get("limit");this.decrementProperty("offset",e)},lastPage:function(){var e=this.get("reportRows.length"),t=this.get("limit"),n=parseInt(e/t);this.set("offset",n*t)}},currentReportRows:function(){var e=this.get("limit"),t=this.get("offset");return this.get("reportRows").slice(t,t+e)}.property("reportRows.[]","offset","limit"),disablePreviousPage:function(){return 0===this.get("offset")}.property("offset"),disableNextPage:function(){var e=this.get("limit"),t=this.get("reportRows.length");return this.get("offset")+e>=t}.property("offset","limit","reportRows.length"),showPagination:function(){return this.get("reportRows.length")>this.get("limit")}.property("reportRows.length")})}),define("hospitalrun/controllers/application",["exports","ember"],function(e,t){e.default=t.default.Controller.extend({filesystem:t.default.inject.service(),session:t.default.inject.service(),_setup:function(){this.get("filesystem").setup()}.on("init")})}),define("hospitalrun/controllers/index",["exports","ember","hospitalrun/mixins/user-session"],function(e,t,n){e.default=t.default.Controller.extend(n.default,{indexLinks:["Appointments","Labs","Imaging","Inventory","Medication","Patients","Users"],setupPermissions:t.default.on("init",function(){var e=this.get("defaultCapabilities");for(var t in e)this.currentUserCan(t)&&this.set("userCan_"+t,!0)}),activeLinks:t.default.computed("indexLinks",function(){var e=[];return this.get("indexLinks").forEach(function(t){var n=t.toLowerCase();this.currentUserCan(n)&&e.push({action:n,text:t})}.bind(this)),e})})}),define("hospitalrun/controllers/login",["exports","ember"],function(e,t){var n=t.default.Controller.extend({session:t.default.inject.service(),errorMessage:null,identification:null,password:null,actions:{authenticate:function(){var e=this,t=this.getProperties("identification","password"),n=t.identification,a=t.password;this.get("session").authenticate("authenticator:custom",{identification:n,password:a}).catch(function(t){e.set("errorMessage",t.reason)})}}});e.default=n}),define("hospitalrun/controllers/navigation",["exports","ember","hospitalrun/mixins/hospitalrun-version","hospitalrun/mixins/modal-helper","hospitalrun/mixins/progress-dialog","hospitalrun/mixins/user-session","hospitalrun/mixins/navigation"],function(e,t,n,a,l,s,i){e.default=t.default.Controller.extend(n.default,a.default,l.default,s.default,i.default,{ajax:t.default.inject.service(),application:t.default.inject.controller(),allowSearch:!1,config:t.default.inject.service(),currentSearchText:null,currentRouteName:t.default.computed.alias("application.currentRouteName"),progressTitle:"Searching",searchRoute:null,session:t.default.inject.service(),syncStatus:"",currentOpenNav:null,actions:{about:function(){var e=this,n=this.get("version");this.get("ajax").request("/serverinfo").then(function(a){var l="Version: "+n;t.default.isEmpty(a)||(l+=" Site Info: "+a),e.displayAlert(e.get("i18n").t("navigation.about"),l)})},invalidateSession:function(){var e=this.get("session");e.get("isAuthenticated")&&e.invalidate()},search:function(){if(this.allowSearch&&this.searchRoute){var e=this.get("currentRouteName"),t=this.get("currentSearchText"),n=this.get("searchText");t===n&&e.indexOf(".search")!==-1||(this.set("searchText",""),this.set("progressMessage","Searching for "+n+". Please wait..."),this.showProgressModal(),this.transitionToRoute(this.searchRoute+"/"+n))}},navAction:function(e){this.currentOpenNav&&this.currentOpenNav.route!==e.route&&this.currentOpenNav.closeSubnav(),this.set("currentOpenNav",e),this.transitionToRoute(e.route),this.set("isShowingSettings",!1)},toggleSettings:function(){this.toggleProperty("isShowingSettings")},closeSettings:function(){this.set("isShowingSettings",!1)}}})}),define("hospitalrun/custom-form-add/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember"],function(e,t,n){var a=n.default.computed,l=n.default.isEmpty;e.default=t.default.extend({updateAction:"addForm",actions:{addForm:function(){var e=this.get("model.modelToAddTo"),t=e.get("customForms"),a=this.get("model.selectedForm");l(t)&&(t=n.default.Object.create(),e.set("customForms",t)),t.set(a,n.default.Object.create()),e.notifyPropertyChange("customForms"),this.send("closeModal")}},isUpdateDisabled:a("model.selectedForm",function(){return l(this.get("model.selectedForm"))})})}),define("hospitalrun/custom-form-add/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"1q7fCvJu",block:'{"statements":[["block",["modal-dialog"],null,[["cancelAction","isUpdateDisabled","title","updateButtonAction","updateButtonText"],["closeModal",["get",["isUpdateDisabled"]],["helper",["t"],["customForms.titles.addCustomForm"],null],"addForm",["helper",["t"],["customForms.buttons.addForm"],null]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["em-select"],null,[["label","property","content","prompt","class"],[["helper",["t"],["customForms.labels.formToAdd"],null],"selectedForm",["get",["model","customForms"]]," ","form-to-add"]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],0]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/custom-form-add/template.hbs"}})}),define("hospitalrun/diagnosis/edit/controller",["exports","ember","hospitalrun/controllers/abstract-edit-controller"],function(e,t,n){var a=t.default.computed;e.default=n.default.extend({updateCapability:"add_diagnosis",editController:t.default.computed.alias("model.editController"),diagnosisList:t.default.computed.alias("editController.diagnosisList"),newDiagnosis:!1,lookupListsToUpdate:[{name:"diagnosisList",property:"model.diagnosis",id:"diagnosis_list"}],additionalButtons:a("model.isNew",function(){var e=this.get("i18n");if(!this.get("model.isNew"))return[{class:"btn btn-default warning",buttonAction:"deleteDiagnosis",buttonIcon:"octicon octicon-x",buttonText:e.t("buttons.delete")}]}),canDeleteDiagnosis:a(function(){return this.currentUserCan("delete_diagnosis")}),title:a("model.isNew",function(){var e=this.get("i18n");return this.get("model.isNew")?e.t("diagnosis.titles.addDiagnosis"):e.t("diagnosis.titles.editDiagnosis")}),afterUpdate:function(e){this.get("newDiagnosis")?this.get("editController").send("addDiagnosis",e):this.send("closeModal")},beforeUpdate:function(){var e=this.get("model");return this.set("newDiagnosis",e.get("isNew")),t.default.RSVP.Promise.resolve()},actions:{cancel:function(){this.send("closeModal")},deleteDiagnosis:function(){var e=this.get("model");this.get("editController").send("deleteDiagnosis",e)}}})}),define("hospitalrun/diagnosis/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"i1WyGKMG",block:'{"statements":[["block",["modal-dialog"],null,[["additionalButtons","hideCancelButton","isUpdateDisabled","title","updateButtonAction","updateButtonText"],[["get",["additionalButtons"]],["get",["hideCancelButton"]],["get",["isUpdateDisabled"]],["get",["title"]],["get",["updateButtonAction"]],["get",["updateButtonText"]]]],4]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["helper",["t"],["diagnosis.labels.activeDiagnosis"],null],"active","col-sm-4"]]],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"],["diagnosis.labels.diagnosis"],null],false],["close-element"],["text","\\n "],["open-element","div",[]],["flush-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","diagnosis"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","hint","class"],["diagnosis",["helper",["t"],["diagnosis.labels.diagnosis"],null],["get",["diagnosisList"]],false,"diagnosis-text required"]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["model","isNew"]]],null,2,1],["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class"],["date",["helper",["t"],["diagnosis.labels.date"],null],"col-sm-4 required"]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["helper",["t"],["diagnosis.labels.secondaryDiagnosis"],null],"secondaryDiagnosis","col-sm-4 secondary-diagnosis"]]],false],["text","\\n"],["block",["unless"],[["get",["model","isNew"]]],null,0],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],3]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/diagnosis/edit/template.hbs"}})}),define("hospitalrun/dialog/controller",["exports","ember"],function(e,t){var n=t.default.computed,a=t.default.get,l=t.default.isEmpty;e.default=t.default.Controller.extend({showUpdateButton:!0,isUpdateDisabled:!1,cancelAction:n("model.cancelAction",function(){var e=a(this,"model.cancelAction");return l(e)&&(e="cancel"),e}),actions:{cancel:function(){this.send("closeModal")},confirm:function(){var e=this.getWithDefault("model.closeModalOnConfirm",!0),t=this.getWithDefault("model.confirmAction","model.confirm");this.send(t,a(this,"model")),e&&this.send("closeModal")},ok:function(){var e=a(this,"model.okAction"),t=a(this,"model.okContext");l(t)&&(t=a(this,"model")),l(e)||this.send(e,t),this.send("closeModal")}}})}),define("hospitalrun/dialog/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"CVjH3ZEN", -block:'{"statements":[["block",["modal-dialog"],null,[["cancelAction","hideCancelButton","hideUpdateButton","isUpdateDisabled","title","updateButtonAction","updateButtonText","cancelButtonText"],[["get",["cancelAction"]],["get",["model","hideCancelButton"]],["get",["model","hideUpdateButton"]],["get",["model","isUpdateDisabled"]],["get",["model","title"]],["get",["model","updateButtonAction"]],["get",["model","updateButtonText"]],["get",["model","cancelButtonText"]]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","progress"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","progress-bar progress-bar-striped active"],["static-attr","role","progressbar"],["dynamic-attr","aria-valuenow",["unknown",["model","progressBarValue"]],null],["static-attr","aria-valuemin","0"],["static-attr","aria-valuemax","100"],["dynamic-attr","style",["unknown",["model","progressBarStyle"]],null],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","sr-only"],["flush-element"],["append",["helper",["t"],["loading.progressBar.progress"],[["progressBarValue"],[["get",["model","progressBarValue"]]]]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["model","showProgress"]]],null,0],["text"," "],["append",["unknown",["model","message"]],false],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/dialog/template.hbs"}})}),define("hospitalrun/finishgauth/route",["exports","ember","hospitalrun/mixins/setup-user-role"],function(e,t,n){e.default=t.default.Route.extend(n.default,{config:t.default.inject.service(),database:t.default.inject.service(),session:t.default.inject.service(),model:function(e){var t=this;if(e.k&&e.s1&&e.s2&&e.t){var n=function(){t.get("session").authenticate("authenticator:custom",{google_auth:!0,params:e});var n={config_consumer_key:e.k,config_consumer_secret:e.s1,config_oauth_token:e.t,config_token_secret:e.s2};return{v:t.get("config").saveOauthConfigs(n).then(function(){var e=this;return n.config_use_google_auth=!0,this.get("database").setup(n).then(function(){return e.setupUserRole()})}.bind(t))}}();if("object"==typeof n)return n.v}}})}),define("hospitalrun/helpers/and",["exports","ember","ember-truth-helpers/helpers/and"],function(e,t,n){var a=null;t.default.Helper?a=t.default.Helper.helper(n.andHelper):t.default.HTMLBars.makeBoundHelper&&(a=t.default.HTMLBars.makeBoundHelper(n.andHelper)),e.default=a}),define("hospitalrun/helpers/app-version",["exports","ember","hospitalrun/config/environment","ember-cli-app-version/utils/regexp"],function(e,t,n,a){function l(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return t.hideSha?s.match(a.versionRegExp)[0]:t.hideVersion?s.match(a.shaRegExp)[0]:s}e.appVersion=l;var s=n.default.APP.version;e.default=t.default.Helper.helper(l)}),define("hospitalrun/helpers/date-format",["exports","ember","moment"],function(e,t,n){var a=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")}}();e.default=t.default.Helper.helper(function(e,l){if(!t.default.isEmpty(e[0])){var s="l",i=a(e,1),o=i[0];return l&&l.format&&(s=l.format),o&&"function"==typeof o.get&&(o=o.get("content")),(0,n.default)(o).format(s)}})}),define("hospitalrun/helpers/eq",["exports","ember","ember-truth-helpers/helpers/equal"],function(e,t,n){var a=null;t.default.Helper?a=t.default.Helper.helper(n.equalHelper):t.default.HTMLBars.makeBoundHelper&&(a=t.default.HTMLBars.makeBoundHelper(n.equalHelper)),e.default=a}),define("hospitalrun/helpers/gt",["exports","ember","ember-truth-helpers/helpers/gt"],function(e,t,n){var a=null;t.default.Helper?a=t.default.Helper.helper(n.gtHelper):t.default.HTMLBars.makeBoundHelper&&(a=t.default.HTMLBars.makeBoundHelper(n.gtHelper)),e.default=a}),define("hospitalrun/helpers/gte",["exports","ember","ember-truth-helpers/helpers/gte"],function(e,t,n){var a=null;t.default.Helper?a=t.default.Helper.helper(n.gteHelper):t.default.HTMLBars.makeBoundHelper&&(a=t.default.HTMLBars.makeBoundHelper(n.gteHelper)),e.default=a}),define("hospitalrun/helpers/html-line-break",["exports","ember"],function(e,t){var n=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")}}();e.default=t.default.Helper.helper(function(e){var a=n(e,1),l=a[0];return null!==l&&void 0!==l?t.default.String.htmlSafe(l.replace(/\n/g,"
")):null})}),define("hospitalrun/helpers/is-array",["exports","ember","ember-truth-helpers/helpers/is-array"],function(e,t,n){var a=null;t.default.Helper?a=t.default.Helper.helper(n.isArrayHelper):t.default.HTMLBars.makeBoundHelper&&(a=t.default.HTMLBars.makeBoundHelper(n.isArrayHelper)),e.default=a}),define("hospitalrun/helpers/is-equal-array",["exports","ember"],function(e,t){var n=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")}}();e.default=t.default.Helper.helper(function(e){var a=n(e,2),l=a[0],s=a[1];return!(!t.default.isArray(l)||!t.default.isArray(s)||l.get("length")!==s.get("length"))&&l.every(function(e){return s.includes(e)})})}),define("hospitalrun/helpers/is-equal-by-path",["exports","ember"],function(e,t){var n=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")}}();e.default=t.default.Helper.helper(function(e){var a=n(e,3),l=a[0],s=a[1],i=a[2];return i?t.default.get(l,i)===s:l===s})}),define("hospitalrun/helpers/is-equal",["exports","ember"],function(e,t){var n=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")}}();e.default=t.default.Helper.helper(function(e){var t=n(e,2);return t[0]===t[1]})}),define("hospitalrun/helpers/is-not",["exports","ember"],function(e,t){var n=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")}}();e.default=t.default.Helper.helper(function(e){return!n(e,1)[0]})}),define("hospitalrun/helpers/lt",["exports","ember","ember-truth-helpers/helpers/lt"],function(e,t,n){var a=null;t.default.Helper?a=t.default.Helper.helper(n.ltHelper):t.default.HTMLBars.makeBoundHelper&&(a=t.default.HTMLBars.makeBoundHelper(n.ltHelper)),e.default=a}),define("hospitalrun/helpers/lte",["exports","ember","ember-truth-helpers/helpers/lte"],function(e,t,n){var a=null;t.default.Helper?a=t.default.Helper.helper(n.lteHelper):t.default.HTMLBars.makeBoundHelper&&(a=t.default.HTMLBars.makeBoundHelper(n.lteHelper)),e.default=a}),define("hospitalrun/helpers/not-eq",["exports","ember","ember-truth-helpers/helpers/not-equal"],function(e,t,n){var a=null;t.default.Helper?a=t.default.Helper.helper(n.notEqualHelper):t.default.HTMLBars.makeBoundHelper&&(a=t.default.HTMLBars.makeBoundHelper(n.notEqualHelper)),e.default=a}),define("hospitalrun/helpers/not",["exports","ember","ember-truth-helpers/helpers/not"],function(e,t,n){var a=null;t.default.Helper?a=t.default.Helper.helper(n.notHelper):t.default.HTMLBars.makeBoundHelper&&(a=t.default.HTMLBars.makeBoundHelper(n.notHelper)),e.default=a}),define("hospitalrun/helpers/number-format",["exports","ember","hospitalrun/mixins/number-format"],function(e,t,n){var a=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")}}(),l=t.default.Object.extend(n.default);e.default=t.default.Helper.helper(function(e){var t=a(e,1),n=t[0];return(new l)._numberFormat(n)})}),define("hospitalrun/helpers/or",["exports","ember","ember-truth-helpers/helpers/or"],function(e,t,n){var a=null;t.default.Helper?a=t.default.Helper.helper(n.orHelper):t.default.HTMLBars.makeBoundHelper&&(a=t.default.HTMLBars.makeBoundHelper(n.orHelper)),e.default=a}),define("hospitalrun/helpers/pluralize",["exports","ember-inflector/lib/helpers/pluralize"],function(e,t){e.default=t.default}),define("hospitalrun/helpers/read-path",["exports","ember"],function(e,t){var n=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")}}();e.default=t.default.Helper.helper(function(e){var a=n(e,2),l=a[0],s=a[1];return t.default.isEmpty(s)?l:t.default.get(l,s)})}),define("hospitalrun/helpers/singularize",["exports","ember-inflector/lib/helpers/singularize"],function(e,t){e.default=t.default}),define("hospitalrun/helpers/t",["exports","ember-i18n/helper"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/helpers/xor",["exports","ember","ember-truth-helpers/helpers/xor"],function(e,t,n){var a=null;t.default.Helper?a=t.default.Helper.helper(n.xorHelper):t.default.HTMLBars.makeBoundHelper&&(a=t.default.HTMLBars.makeBoundHelper(n.xorHelper)),e.default=a}),define("hospitalrun/imaging/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.controllers("imaging/edit"),pricingList:n.default.computed.alias("requestingController.chargesPricingList")})}),define("hospitalrun/imaging/charge/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"bkPMKXlR",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/imaging/charge/template.hbs"}})}),define("hospitalrun/imaging/completed/completed-list-item/component",["exports","ember"],function(e,t){e.default=t.default.Component.extend({tagName:"tr"})}),define("hospitalrun/imaging/completed/completed-list-item/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"mAPPy+fo",block:'{"statements":[["open-element","td",[]],["static-attr","class","requested-date"],["flush-element"],["append",["helper",["date-format"],[["get",["imaging","requestedDate"]]],null],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","imaging-date"],["flush-element"],["append",["helper",["date-format"],[["get",["imaging","imagingDate"]]],null],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","requested-by"],["flush-element"],["append",["unknown",["imaging","requestedBy"]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","display-name"],["flush-element"],["append",["unknown",["imaging","patient","displayName"]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","type"],["flush-element"],["append",["unknown",["imaging","imagingType","name"]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","results"],["flush-element"],["append",["unknown",["imaging","result"]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","notes"],["flush-element"],["append",["unknown",["imaging","notes"]],false],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[],"hasPartials":false}',meta:{moduleName:"hospitalrun/imaging/completed/completed-list-item/template.hbs"}})}),define("hospitalrun/imaging/completed/controller",["exports","hospitalrun/controllers/abstract-paged-controller"],function(e,t){e.default=t.default.extend({startKey:[],showActions:!1})}),define("hospitalrun/imaging/completed/route",["exports","ember-i18n","hospitalrun/imaging/index/route"],function(e,t,n){e.default=n.default.extend({pageTitle:(0,t.translationMacro)("imaging.titles.completedImaging"),searchStatus:"Completed"})}),define("hospitalrun/imaging/completed/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"Rfh3vstr",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"],["imaging.messages.noCompleted"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["imaging/completed/completed-list-item"],null,[["imaging"],[["get",["imaging"]]]]],false],["text","\\n"]],"locals":["imaging"]},{"statements":[["text"," "],["open-element","table",[]],["static-attr","class","table imaging-completed-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.requestedBy"],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.imagingType"],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/imaging/completed/template.hbs"}})}),define("hospitalrun/imaging/delete/controller",["exports","hospitalrun/controllers/abstract-delete-controller","hospitalrun/mixins/patient-submodule"],function(e,t,n){e.default=t.default.extend(n.default,{title:"Delete Request",actions:{delete:function(){this.deleteChildFromVisit("imaging")}}})}),define("hospitalrun/imaging/delete/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"9b0/J8uA",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"],["imaging.messages.delete"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/imaging/delete/template.hbs"}})}),define("hospitalrun/imaging/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,{imagingController:a.default.inject.controller("imaging"),chargePricingCategory:"Imaging",chargeRoute:"imaging.charge",selectedImagingType:null,canComplete:function(){var e=this.get("model.isNew"),t=this.get("model.imagingTypeName"),n=this.get("selectedImagingType");return(!e||!(a.default.isEmpty(t)||a.default.isArray(n)&&n.length>1))&&this.currentUserCan("complete_imaging")}.property("selectedImagingType.[]","model.imagingTypeName"),actions:{completeImaging:function(){this.set("model.status","Completed"),this.get("model").validate().then(function(){this.get("model.isValid")&&(this.set("model.imagingDate",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("selectedImagingType");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.imagingTypeName"),"Imaging","model.imagingType").then(function(){this.addChildToVisit(t,"imaging","Imaging").then(function(){this.saveModel()}.bind(this))}.bind(e)):e.getSelectedPricing("selectedImagingType").then(function(e){a.default.isArray(e)?this.createMultipleRequests(e,"imagingType","imaging","Imaging"):(this.set("model.imagingType",e),this.addChildToVisit(t,"imaging","Imaging").then(function(){this.saveModel()}.bind(this)))}.bind(e))}():this.saveModel()}},additionalButtons:function(){var e=this.get("i18n"),t=this.get("canComplete");if(this.get("model.isValid")&&t)return[{buttonAction:"completeImaging",buttonIcon:"glyphicon glyphicon-ok",class:"btn btn-primary on-white",buttonText:e.t("buttons.complete")}]}.property("canComplete","model.isValid"),lookupListsToUpdate:[{name:"radiologistList",property:"model.radiologist",id:"radiologists"}],pricingTypeForObjectType:"Imaging Procedure",pricingTypes:a.default.computed.alias("imagingController.imagingPricingTypes"),pricingList:null,radiologistList:a.default.computed.alias("imagingController.radiologistList"),updateCapability:"add_imaging",afterUpdate:function(e,t){var n=this.get("i18n");this.updateLookupLists();var a=void 0,l=void 0,s=void 0;"Completed"===this.get("model.status")?(l=n.t("imaging.alerts.completedTitle"),s=n.t("imaging.alerts.completedMessage")):(l=n.t("imaging.alerts.savedTitle"),s=n.t("imaging.alerts.savedMessage")),t&&(a=this.get("cancelAction")),this.saveVisitIfNeeded(l,s,a),this.set("model.selectPatient",!1)}})}),define("hospitalrun/imaging/edit/route",["exports","ember-i18n","hospitalrun/routes/abstract-edit-route","hospitalrun/mixins/add-to-patient-route","hospitalrun/mixins/charge-route","ember","moment","hospitalrun/mixins/patient-list-route"],function(e,t,n,a,l,s,i,o){e.default=n.default.extend(a.default,l.default,o.default,{editTitle:(0,t.translationMacro)("imaging.titles.editTitle"),modelName:"imaging",newTitle:(0,t.translationMacro)("imaging.titles.editTitle"),pricingCategory:"Imaging",actions:{returnToAllItems:function(){this.controller.send("returnToAllItems")}},getNewData:function(){return s.default.RSVP.resolve({selectPatient:!0,requestDate:(0,i.default)().startOf("day").toDate()})}})}),define("hospitalrun/imaging/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"FpG92j1s",block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],6]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","prompt","class"],["radiologist",["helper",["t"],["imaging.labels.radiologist"],null],["get",["radiologistList"]]," ","radiologist-input"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["result",["helper",["t"],["labels.result"],null],"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-9"],["flush-element"],["text","\\n "],["open-element","label",[]],["flush-element"],["append",["helper",["t"],["labels.imagingType"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","imagingType","name"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group col-xs-12"],["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",["helper",["t"],["labels.visit"],null],"visit",["get",["patientVisitsForSelect"]],"selectObject","selectObject.visitDescription",["helper",["t"],["imaging.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","class"],["imagingTypeName",["helper",["t"],["labels.imagingType"],null],["get",["objectTypeList"]],["get",["selectedImagingType"]],"name","pricing","required"," ",["get",["model"]],"imaging-type-input"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["patient-summary"],null,[["patient","returnTo","returnToContext","disablePatientLink"],[["get",["model","patient"]],"imaging.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 patient-input"]]],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",["em-text"],null,[["property","label","rows"],["notes",["helper",["t"],["labels.notes"],null],3]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],5]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/imaging/edit/template.hbs"}})}),define("hospitalrun/imaging/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_imaging"})}),define("hospitalrun/imaging/index/imaging-edit-button/component",["exports","ember"],function(e,t){e.default=t.default.Component.extend({tagName:"button",classNames:["btn","btn-default","neutral"]})}),define("hospitalrun/imaging/index/imaging-edit-button/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"fgj2GO/M",block:'{"statements":[["block",["link-to"],["imaging.edit",["get",["imaging"]]],null,0],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["append",["helper",["t"],["labels.edit"],null],false]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/imaging/index/imaging-edit-button/template.hbs"}})}),define("hospitalrun/imaging/index/requested-list-item/component",["exports","ember"],function(e,t){e.default=t.default.Component.extend({tagName:"tr",classNames:["clickable"],click:function(){this.sendAction("action",this.imaging)}})}),define("hospitalrun/imaging/index/requested-list-item/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"JWG9328s",block:'{"statements":[["open-element","td",[]],["static-attr","class","date"],["flush-element"],["append",["helper",["date-format"],[["get",["imaging","requestedDate"]]],[["format"],["l h:mm A"]]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","requested-by"],["flush-element"],["append",["unknown",["imaging","requestedBy"]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","patient"],["flush-element"],["append",["unknown",["imaging","patient","displayName"]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","type"],["flush-element"],["append",["unknown",["imaging","imagingType","name"]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","notes"],["flush-element"],["append",["unknown",["imaging","notes"]],false],["close-element"],["text","\\n\\n"],["block",["if"],[["get",["showActions"]]],null,1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["imaging/index/imaging-edit-button"],null,[["imaging"],[["get",["imaging"]]]]],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/imaging/index/requested-list-item/template.hbs"}})}),define("hospitalrun/imaging/index/route",["exports","ember-i18n","hospitalrun/routes/abstract-index-route"],function(e,t,n){e.default=n.default.extend({modelName:"imaging",pageTitle:(0,t.translationMacro)("imaging.pageTitle"),searchStatus:"Requested",_getStartKeyFromItem:function(e){var t=e.get("imagingDateAsTime"),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:"imaging_by_status"}}})}),define("hospitalrun/imaging/index/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"bA1O68vE", -block:'{"statements":[["block",["item-listing"],null,[["paginationProps"],[["get",["paginationProps"]]]],5]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","a",[]],["static-attr","href","#"],["modifier",["action"],[["get",[null]],"newItem"]],["flush-element"],["append",["helper",["t"],["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"],["messages.noItemsFound"],null],false],["text"," "],["block",["if"],[["get",["canAdd"]]],null,0],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["imaging/index/requested-list-item"],null,[["imaging","action","showActions","canEdit"],[["get",["imaging"]],"editItem",["get",["showActions"]],["get",["canEdit"]]]]],false],["text","\\n"]],"locals":["imaging"]},{"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.requestedBy"],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.imagingType"],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/imaging/index/template.hbs"}})}),define("hospitalrun/imaging/route",["exports","ember-i18n","hospitalrun/routes/abstract-module-route"],function(e,t,n){e.default=n.default.extend({addCapability:"add_imaging",additionalModels:[{name:"imagingPricingTypes",findArgs:["lookup","imaging_pricing_types"]},{name:"radiologistList",findArgs:["lookup","radiologists"]}],allowSearch:!1,moduleName:"imaging",newButtonText:(0,t.translationMacro)("imaging.buttons.newButton"),sectionTitle:(0,t.translationMacro)("imaging.sectionTitle")})}),define("hospitalrun/inc-category/add-item/controller",["exports","ember","ember-i18n"],function(e,t,n){var a=t.default.Controller,l=t.default.computed.alias,s=t.default.get,i=t.default.inject;e.default=a.extend({showUpdateButton:!0,title:(0,n.translationMacro)("incident.titles.addCategoryItem"),updateButtonAction:"add",updateButtonText:"Add",incidentCategoryEdit:i.controller("inc-category/edit"),editController:l("incidentCategoryEdit"),actions:{add:function(){var e=s(this,"model");s(this,"editController").send("addItem",e)},cancel:function(){this.send("closeModal")}}})}),define("hospitalrun/inc-category/add-item/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"vKfk7Zs7",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",["em-input"],null,[["label","property","class"],[["helper",["t"],["incident.labels.item"],null],"item","incident-category-item"]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],0]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inc-category/add-item/template.hbs"}})}),define("hospitalrun/inc-category/delete/controller",["exports","hospitalrun/controllers/abstract-delete-controller","ember-i18n"],function(e,t,n){e.default=t.default.extend({title:(0,n.translationMacro)("incident.titles.deleteIncidentCategory")})}),define("hospitalrun/inc-category/delete/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"ypiNqsxX",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"],["incident.messages.deleteCategory"],[["name"],[["get",["model","incidentCategoryName"]]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inc-category/delete/template.hbs"}})}),define("hospitalrun/inc-category/edit/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember"],function(e,t,n){var a=n.default.get;e.default=t.default.extend({updateCapability:"add_incident_category",afterUpdate:function(e){var t=a(this,"i18n"),n=t.t("incident.messages.incidentCategorySaved",{name:a(e,"incidentCategoryName")}),l=t.t("incident.titles.incidentCategorySaved");this.displayAlert(l,n)},actions:{addItem:function(e){var t=this.getWithDefault("model.incidentCategoryItems",[]),n=a(this,"model");t.addObject(e),n.set("incidentCategoryItems",t),this.send("update",!0),this.send("closeModal")},deleteItem:function(e){var t=e.get("itemToDelete");a(this,"model.incidentCategoryItems").removeObject(t),this.send("update",!0)},showAddItem:function(){this.send("openModal","inc-category.add-item",n.default.Object.create())},showDeleteItem:function(e){var t=a(this,"i18n"),l=t.t("incident.messages.deleteItem"),s=t.t("incident.titles.deleteItem");this.displayConfirm(s,l,"deleteItem",n.default.Object.create({itemToDelete:e}))}}})}),define("hospitalrun/inc-category/edit/route",["exports","hospitalrun/routes/abstract-edit-route","ember-i18n"],function(e,t,n){e.default=t.default.extend({editTitle:(0,n.translationMacro)("incident.titles.editIncidentCategory"),modelName:"inc-category",newTitle:(0,n.translationMacro)("incident.titles.newIncidentCategory"),actions:{deleteItem:function(e){this.controller.send("deleteItem",e)}}})}),define("hospitalrun/inc-category/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"lHIEhMMk",block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],2]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","incident-category-item"],["flush-element"],["append",["unknown",["incidentCategoryItem","item"]],false],["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]],"showDeleteItem",["get",["incidentCategoryItem"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["append",["helper",["t"],["incident.buttons.delete"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["incidentCategoryItem"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","form-group has-success"],["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"],["incident.titles.incidentCategoryName"],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 "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-input"],null,[["property","class"],["incidentCategoryName","incident-category-name col-sm-12"]]],false],["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"],["incident.titles.incidentCategoryItem"],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 "],["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"],["incident.labels.item"],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","incidentCategoryItems"]]],null,0],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-footer"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"showAddItem"]],["flush-element"],["append",["helper",["t"],["incident.buttons.addItem"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],1]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inc-category/edit/template.hbs"}})});define("hospitalrun/inc-category/index/controller",["exports","hospitalrun/controllers/abstract-paged-controller","ember"],function(e,t,n){e.default=t.default.extend({startKey:[],canDeleteIncidentCategory:n.default.computed(function(){return this.currentUserCan("delete_incident_category")}),actions:{showDeleteIncidentCategory:function(e){this.send("openModal","inc-category.delete",e)}}})}),define("hospitalrun/inc-category/index/route",["exports","hospitalrun/routes/abstract-index-route","ember-i18n"],function(e,t,n){e.default=t.default.extend({modelName:"inc-category",newButtonAction:"newItem",newButtonText:(0,n.translationMacro)("incident.buttons.newCategory"),pageTitle:(0,n.translationMacro)("incident.titles.incidentCategories"),actions:{editItem:function(e){this.transitionTo("inc-category.edit",e)},newItem:function(){this.transitionTo("inc-category.edit","new")}}})}),define("hospitalrun/inc-category/index/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"e+LcjQOv",block:'{"statements":[["block",["item-listing"],null,[["paginationProps"],[["get",["paginationProps"]]]],5]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-info"],["flush-element"],["text","\\n "],["open-element","em",[]],["flush-element"],["append",["helper",["t"],["incident.messages.noIncidentCategoriesFound"],null],false],["close-element"],["text","\\n "],["open-element","em",[]],["flush-element"],["append",["helper",["t"],["incident.messages.createNewIncidentCategory"],null],false],["close-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-primary on-white"],["modifier",["action"],[["get",[null]],"newItem"]],["flush-element"],["append",["helper",["t"],["incident.buttons.newCategory"],null],false],["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]],"showDeleteIncidentCategory",["get",["category"]]],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["append",["helper",["t"],["incident.buttons.delete"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["modifier",["action"],[["get",[null]],"editItem",["get",["category"]]]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","incident-catergory-name"],["flush-element"],["append",["unknown",["category","incidentCategoryName"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"editItem",["get",["category"]]],[["bubbles"],[false]]],["flush-element"],["append",["helper",["t"],["incident.buttons.edit"],null],false],["close-element"],["text","\\n"],["block",["if"],[["get",["canDeleteIncidentCategory"]]],null,1],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["unless"],[["get",["category","archived"]]],null,2]],"locals":["category"]},{"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"],["incident.titles.incidentCategoryName"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["incident.labels.actions"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model"]]],null,3],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["hasRecords"]]],null,4,0]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inc-category/index/template.hbs"}})}),define("hospitalrun/inc-category/route",["exports","ember-simple-auth/mixins/authenticated-route-mixin","ember"],function(e,t,n){e.default=n.default.Route.extend(t.default,{actions:{allItems:function(){this.transitionTo("inc-category.index")}}})}),define("hospitalrun/incident/attachment/controller",["exports","hospitalrun/patients/photo/controller","ember","ember-i18n"],function(e,t,n,a){var l=n.default.inject;e.default=t.default.extend({addAction:"addAttachment",editTitle:(0,a.translationMacro)("incident.titles.editAttachment"),modelName:"attachment",newTitle:(0,a.translationMacro)("incident.titles.addAttachment"),fileRequiredMessage:(0,a.translationMacro)("incident.messages.attachmentFileRequired"),editController:l.controller("incident/edit")})}),define("hospitalrun/incident/attachment/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"PyR3FXRE",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"],["incident.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","title"]],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,[["defaultPhotoSource","isImage","photoFile","sourceLabel"],["uploadAFile",["get",["model","isImage"]],["get",["model","photoFile"]],["helper",["t"],["incident.labels.howToAddAttachment"],null]]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-input"],null,[["property","label","class"],["title",["helper",["t"],["incident.labels.title"],null],"attachment-title"]]],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/incident/attachment/template.hbs"}})}),define("hospitalrun/incident/completed/controller",["exports","hospitalrun/incident/index/controller"],function(e,t){e.default=t.default.extend({canDelete:!1,startKey:[]})}),define("hospitalrun/incident/completed/route",["exports","hospitalrun/incident/index/route","hospitalrun/mixins/user-session","ember-i18n"],function(e,t,n,a){e.default=t.default.extend(n.default,{editReturn:"incident.completed",modelName:"incident",pageTitle:(0,a.translationMacro)("incident.titles.closed"),_getStartKeyFromItem:function(e){var t=this._getPouchIdFromItem(e);return[e.get("reportedBy"),t]},_modelQueryParams:function(){var e=this._getMaxPouchId(),t=this.getUserName(!0),n={mapReduce:"closed_incidents_by_user"};return this.currentUserCan("manage_incidents")||(n.options={startkey:[t,null],endkey:[t,e]}),n}})}),define("hospitalrun/incident/completed/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"M/U8O1VD",block:'{"statements":[["partial","incident/index"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[],"hasPartials":true}',meta:{moduleName:"hospitalrun/incident/completed/template.hbs"}})}),define("hospitalrun/incident/delete/controller",["exports","hospitalrun/controllers/abstract-delete-controller","ember","ember-i18n"],function(e,t,n,a){var l=n.default.get,s=n.default.RSVP;e.default=t.default.extend({title:(0,a.translationMacro)("incident.titles.deleteIncident"),_deleteChildObject:function(e,t,n){e.get(t).then(function(e){e.forEach(function(e){n.push(e.destroyRecord())})})},actions:{delete:function(){var e=[],t=l(this,"model");this._deleteChildObject(t,"notes",e),s.all(e).then(function(){l(this,"model").destroyRecord().then(function(){this.send("closeModal")}.bind(this))}.bind(this))}}})}),define("hospitalrun/incident/delete/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"XLU8tTEm",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"," "],["append",["helper",["t"],["incident.messages.deleteIncident"],[["name"],[["get",["name"]]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/incident/delete/template.hbs"}})}),define("hospitalrun/incident/edit/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember-data","ember","hospitalrun/mixins/friendly-id","hospitalrun/mixins/incident-statuses","hospitalrun/mixins/patient-submodule","hospitalrun/utils/select-values","hospitalrun/mixins/user-session"],function(e,t,n,a,l,s,i,o,r){var d=n.default.PromiseArray,c=n.default.PromiseObject,u=a.default.computed,p=a.default.computed.alias,m=a.default.get,f=a.default.inject,h=a.default.set;e.default=t.default.extend(s.default,l.default,i.default,o.default,r.default,{lookupListsToUpdate:[{name:"incidentDepartmentList",property:"model.department",id:"incident_departments"}],sequenceName:"incident",sequenceView:"incident_by_friendly_id",updateCapability:"add_incident",customForms:f.service(),database:f.service(),filesystem:f.service(),lookupLists:f.service(),customFormsToAdd:p("customForms.formsForSelect"),customFormsToDisplay:p("customForms.formsToDisplay"),showAddFormButton:p("customForms.showAddButton"),incidentController:f.controller("incident"),canManageIncident:u("model.{isNew,status}",function(){var e=this.currentUserCan("manage_incidents"),t=m(this,"model.status");return(m(this,"model.isNew")||t===s.CLOSED)&&(e=!1),e}),canUpdateStatus:u("model.isNew",function(){var e=this.currentUserCan("manage_incidents"),t=m(this,"model.isNew");return e&&!t}),categoryNameList:u("incidentCategoryList.@each.archived",function(){return d.create({promise:m(this,"incidentCategoryList").then(function(e){return e.map(function(e){return{id:m(e,"incidentCategoryName"),value:m(e,"incidentCategoryName")}})})})}),incidentCategoryList:u(function(){return m(this,"lookupLists").getLookupList("incidentCategories")}).volatile(),incidentDepartmentList:u("lookupListsLastUpdate",function(){var e=m(this,"lookupLists");return c.create({promise:e.getLookupList("incident_departments")})}).volatile(),incidentStatuses:u(function(){var e=this;return m(this,"statusList").map(function(t){return{id:t,value:e.getLocalizedStatus(t)}})}),itemList:u("model.categoryName",function(){var e=m(this,"model.categoryName");if(!a.default.isEmpty(e))return d.create({promise:m(this,"incidentCategoryList").then(function(t){return m(t.findBy("incidentCategoryName",e),"incidentCategoryItems")})})}),afterUpdate:function(){var e=m(this,"i18n");this.displayAlert(e.t("incident.titles.incidentSaved"),e.t("incident.messages.saved"))},beforeUpdate:function(){var e=m(this,"model");return h(e,"modifiedByDisplayName",this.getUserName(!1)),m(e,"isNew")?this.generateFriendlyId("incident").then(function(t){h(e,"friendlyId",t)}):a.default.RSVP.resolve()},setupCustomForms:function(){var e=m(this,"customForms"),t=m(this,"model");e.setupForms("incident",t)},_updateList:function(e,t,n){m(m(this,"model"),e).then(function(e){n?e.removeObject(t):e.addObject(t),this.send("update",!0),this.send("closeModal")}.bind(this))},actions:{addNote:function(e){this._updateList("notes",e)},addAttachment:function(e){this._updateList("incidentAttachments",e)},addCustomForm:function(){var e=m(this,"model"),t=m(this,"customFormsToAdd");this.send("openModal","custom-form-add",a.default.Object.create({modelToAddTo:e,customForms:t}))},showAddAttachment:function(){var e=m(this,"store").createRecord("attachment",{dateAdded:new Date,addedBy:this.getUserName(!0),addedByDisplayName:this.getUserName(!1),saveToDir:"/incidents/"+m(this,"model.id")+"/"});this.send("openModal","incident.attachment",e)},showAddNote:function(){var e=m(this,"store").createRecord("incident-note",{dateRecorded:new Date,givenBy:this.getUserName(!0),givenByDisplayName:this.getUserName(!1)});this.send("openModal","incident.note.edit",e)},deleteAttachment:function(e){var t=this,n=m(e,"itemToDelete");this._updateList("incidentAttachments",n,!0),n.destroyRecord().then(function(){var e=m(n,"id"),a=m(t,"database"),l=m(n,"fileName"),s=m(t,"filesystem");if(m(s,"isFileSystemEnabled")){var i=a.getPouchId(e,"attachment");s.deleteFile(l,i).catch(function(){})}})},deleteNote:function(e){this._updateList("notes",e,!0)},showDeleteAttachment:function(e){var t=m(this,"i18n"),n=t.t("incident.messages.deleteAttachment"),l=a.default.Object.create({itemToDelete:e}),s=t.t("incident.titles.deleteAttachment");this.displayConfirm(s,n,"deleteAttachment",l)},showDeleteNote:function(e){this.send("openModal","incident.note.delete",e)},showEditAttachment:function(e){this.send("openModal","incident.attachment",e)},showEditNote:function(e){this.send("openModal","incident.note.edit",e)}}})}),define("hospitalrun/incident/edit/route",["exports","hospitalrun/routes/abstract-edit-route","ember","hospitalrun/mixins/patient-list-route","hospitalrun/mixins/user-session","ember-i18n"],function(e,t,n,a,l,s){var i=n.default.get;e.default=t.default.extend(a.default,l.default,{editTitle:(0,s.translationMacro)("incident.titles.editIncident"),modelName:"incident",newTitle:(0,s.translationMacro)("incident.titles.newIncident"),customForms:n.default.inject.service(),getNewData:function(){var e=i(this,"customForms"),t=new Date,a={customForms:n.default.Object.create(),dateOfIncident:t,reportedDate:t,reportedBy:this.getUserName(!0),reportedByDisplayName:this.getUserName(!1)};return e.setDefaultCustomForms(["incident"],a)},setupController:function(e,t){this._super(e,t),e.setupCustomForms()},actions:{deleteAttachment:function(e){this.controller.send("deleteAttachment",e)}}})}),define("hospitalrun/incident/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"RRinieE5", -block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],11]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","role","tabpanel"],["static-attr","class","tab-pane"],["dynamic-attr","id",["helper",["concat"],["customForm",["get",["index"]]],null],null],["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 "],["append",["helper",["custom-form"],null,[["model","form","propertyPrefix"],[["get",["model"]],["get",["customForm","form"]],["get",["customForm","propertyPrefix"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["customForm","index"]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["attachment","dateAdded"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["attachment","addedByDisplayName"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["attachment","title"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"showEditAttachment",["get",["attachment"]]]],["flush-element"],["append",["helper",["t"],["incident.buttons.edit"],null],false],["close-element"],["text","\\n "],["open-element","a",[]],["dynamic-attr","href",["unknown",["attachment","url"]],null],["static-attr","target","_blank"],["dynamic-attr","download",["concat",[["unknown",["attachment","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"],["incident.buttons.download"],null],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeleteAttachment",["get",["attachment"]]],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["incident.buttons.delete"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["attachment"]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["note","dateRecorded"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["note","givenByDisplayName"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","note-description"],["flush-element"],["append",["unknown",["note","description"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"showEditNote",["get",["note"]]]],["flush-element"],["append",["helper",["t"],["incident.buttons.edit"],null],false],["close-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeleteNote",["get",["note"]]],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["incident.buttons.delete"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["note"]},{"statements":[["text"," "],["open-element","li",[]],["static-attr","role","presentation"],["flush-element"],["text","\\n "],["open-element","a",[]],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["modifier",["action"],[["get",[null]],"addCustomForm"],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["append",["helper",["t"],["incident.buttons.addForm"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","li",[]],["static-attr","role","presentation"],["flush-element"],["text","\\n "],["open-element","a",[]],["dynamic-attr","href",["helper",["concat"],["#customForm",["get",["index"]]],null],null],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["flush-element"],["text","\\n "],["append",["unknown",["customForm","form","name"]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["customForm","index"]},{"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"],["open-element","a",[]],["static-attr","href","#notes"],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["flush-element"],["append",["helper",["t"],["incident.titles.notes"],null],false],["close-element"],["close-element"],["text","\\n "],["open-element","li",[]],["static-attr","role","presentation"],["flush-element"],["open-element","a",[]],["static-attr","href","#attachments"],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["flush-element"],["append",["helper",["t"],["incident.titles.attachments"],null],false],["close-element"],["close-element"],["text","\\n"],["block",["each"],[["get",["customFormsToDisplay"]]],null,4],["block",["if"],[["get",["showAddFormButton"]]],null,3],["text"," "],["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 active"],["static-attr","id","notes"],["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","button",[]],["static-attr","class","btn btn-primary align-right"],["modifier",["action"],[["get",[null]],"showAddNote"],[["bubbles"],[false]]],["flush-element"],["append",["helper",["t"],["incident.buttons.newNote"],null],false],["close-element"],["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 "],["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"],["incident.labels.date"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["incident.labels.givenBy"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["incident.labels.note"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["incident.labels.actions"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","notes"]]],null,2],["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","attachments"],["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","button",[]],["static-attr","class","btn btn-primary align-right"],["modifier",["action"],[["get",[null]],"showAddAttachment"],[["bubbles"],[false]]],["flush-element"],["append",["helper",["t"],["incident.buttons.newAttachment"],null],false],["close-element"],["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 "],["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"],["incident.labels.date"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["incident.labels.addedBy"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["incident.labels.title"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["incident.labels.actions"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","incidentAttachments"]]],null,1],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["customFormsToDisplay"]]],null,0],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["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"],["append",["helper",["t"],["incident.labels.patientId"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static patient-id"],["flush-element"],["append",["unknown",["model","patient","friendlyId"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["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"],["append",["helper",["t"],["incident.labels.status"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","status"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-select"],null,[["label","property","content","class"],[["helper",["t"],["incident.labels.status"],null],"status",["get",["incidentStatuses"]],"required form-input-group col-sm-3"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","form-group col-sm-2"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["incident.labels.incidentId"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","friendlyId"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group col-sm-2"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["incident.labels.reportedDate"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["helper",["date-format"],[["get",["model","reportedDate"]]],[["format"],["l h:mm A"]]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group col-sm-2"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["incident.labels.reportedBy"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","reportedByDisplayName"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group col-sm-2"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["incident.labels.lastUpdated"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["helper",["date-format"],[["get",["model","lastModified"]]],[["format"],["l h:mm A"]]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group col-sm-2"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["incident.labels.updatedBy"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","modifiedByDisplayName"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n"],["block",["unless"],[["get",["model","isNew"]]],null,9],["text"," "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n\\n "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["helper",["t"],["incident.labels.sentinelEvent"],null],"sentinelEvent","col-sm-3 sentinel-event"]]],false],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class","showTime"],["dateOfIncident",["helper",["t"],["incident.labels.incidentDate"],null],"col-sm-3 required incident-date",true]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["className","property","label","list","selection"],["col-sm-3 required incident-department","department",["helper",["t"],["incident.labels.department"],null],["get",["incidentDepartmentList"]],["get",["model","location"]]]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["reportedTo",["helper",["t"],["incident.labels.reportedTo"],null],"col-sm-3 reported-to"]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","prompt","property","content"],["col-sm-4 form-input-group required incident-category",["helper",["t"],["incident.labels.category"],null]," ","categoryName",["get",["categoryNameList"]]]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","prompt","property","content","optionLabelPath","optionValuePath"],["col-sm-4 form-input-group incident-category-item",["helper",["t"],["incident.labels.categoryItem"],null]," ","categoryItem",["get",["itemList"]],"item","item"]]],false],["text","\\n"],["block",["if"],[["get",["canUpdateStatus"]]],null,8,7],["text"," "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["patient-typeahead"],null,[["property","label","content","class","selection"],["patientTypeAhead",["helper",["t"],["incident.labels.patientImpacted"],null],["get",["patientList"]],"patient-name col-sm-9",["get",["selectedPatient"]]]]],false],["text","\\n"],["block",["if"],[["get",["model","patient"]]],null,6],["text"," "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-text"],null,[["label","property","class","rows"],[["helper",["t"],["incident.labels.description"],null],"description","required col-sm-12 incident-description",3]]],false],["text","\\n "],["close-element"],["text","\\n\\n"],["block",["if"],[["get",["canManageIncident"]]],null,5]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],10]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/incident/edit/template.hbs"}})}),define("hospitalrun/incident/index/controller",["exports","hospitalrun/controllers/abstract-paged-controller","ember","hospitalrun/mixins/filter-list","hospitalrun/mixins/user-session"],function(e,t,n,a,l){var s=n.default.computed,i=n.default.computed.alias,o=n.default.get,r=n.default.inject,d=n.default.isEmpty;e.default=t.default.extend(a.default,l.default,{addPermission:"add_incident",deletePermission:"delete_incident",startKey:[],incidentController:r.controller("incident"),departmentNames:i("incidentController.incidentDepartmentList.value"),categoryItems:s("model.@each.categoryItem",function(){return this._getUniqueValues("categoryItem")}),categoryNames:s("model.@each.categoryName",function(){return this._getUniqueValues("categoryName")}),statusList:s("model.@each.localizedStatus",function(){return this._getUniqueValues("localizedStatus")}),filteredIncidents:s("model.[]","filterBy","filterValue",function(){var e=o(this,"filterBy"),t=o(this,"filterValue"),n=o(this,"model");return this.filterList(n,e,t)}),sortedIncidents:s("filteredIncidents","sortByKey","sortByDesc",function(){var e=o(this,"filteredIncidents");return this.sortFilteredList(e)}),_getUniqueValues:function(e){return o(this,"model").map(function(t){return o(t,e)}).uniq().filter(function(e){return!d(e)})},actions:{showDeleteIncident:function(e){this.send("openModal","incident.delete",e)}}})}),define("hospitalrun/incident/index/route",["exports","hospitalrun/routes/abstract-index-route","hospitalrun/mixins/user-session","ember-i18n"],function(e,t,n,a){e.default=t.default.extend(n.default,{editReturn:"incident.index",itemsPerPage:null,modelName:"incident",pageTitle:(0,a.translationMacro)("incident.titles.incidents"),_getStartKeyFromItem:function(e){var t=this._getPouchIdFromItem(e);return[e.get("reportedBy"),t]},_modelQueryParams:function(){var e=this._getMaxPouchId(),t=this.getUserName(!0),n={mapReduce:"open_incidents_by_user"};return this.currentUserCan("manage_incidents")||(n.options={startkey:[t,null],endkey:[t,e]}),n}})}),define("hospitalrun/incident/index/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"2kjrShWl",block:'{"statements":[["block",["item-listing"],null,[["paginationProps"],[["get",["paginationProps"]]]],13]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["open-element","a",[]],["static-attr","href","#"],["modifier",["action"],[["get",[null]],"newItem"]],["flush-element"],["append",["helper",["t"],["incident.messages.createNew"],null],false],["close-element"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-info"],["flush-element"],["text","\\n "],["append",["helper",["t"],["incident.messages.noIncidents"],null],false],["text"," "],["block",["if"],[["get",["canAdd"]]],null,0],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeleteIncident",["get",["incident"]]],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["incident.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",["incident"]]],[["bubbles"],[false]]],["flush-element"],["append",["helper",["t"],["incident.buttons.edit"],null],false],["close-element"],["text","\\n "]],"locals":[]},{"statements":[["text"," "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAdd"]]],null,3],["text"," "],["block",["if"],[["get",["canDelete"]]],null,2],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["static-attr","class","incident-row"],["modifier",["action"],[["get",[null]],"editItem",["get",["incident"]]]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","incident-date"],["flush-element"],["append",["helper",["date-format"],[["get",["incident","dateOfIncident"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","incident-department"],["flush-element"],["append",["unknown",["incident","department"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","incident-category"],["flush-element"],["append",["unknown",["incident","categoryName"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","incident-category-item"],["flush-element"],["append",["unknown",["incident","categoryItem"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","incident-status"],["flush-element"],["append",["unknown",["incident","localizedStatus"]],false],["close-element"],["text","\\n"],["block",["if"],[["get",["showActions"]]],null,4],["text"," "],["close-element"],["text","\\n"]],"locals":["incident"]},{"statements":[["text"," "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["incident.labels.actions"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["incident.labels.status"],null],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["incident.labels.categoryItem"],null],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["incident.labels.category"],null],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["incident.labels.department"],null],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["incident.labels.incidentDate"],null],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","table",[]],["static-attr","class","table incident-listing"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n"],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey","filterBy","filteredBy","filterType"],["dateOfIncident",["get",["sortByDesc"]],["get",["sortByKey"]],"dateForFilter",["get",["filteredBy"]],"date"]],11],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey","filterBy","filteredBy","filterType","filterValues"],["department",["get",["sortByDesc"]],["get",["sortByKey"]],"department",["get",["filteredBy"]],"list",["get",["departmentNames"]]]],10],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey","filterBy","filteredBy","filterType","filterValues"],["categoryName",["get",["sortByDesc"]],["get",["sortByKey"]],"categoryName",["get",["filteredBy"]],"list",["get",["categoryNames"]]]],9],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey","filterBy","filteredBy","filterType","filterValues"],["categoryItem",["get",["sortByDesc"]],["get",["sortByKey"]],"categoryItem",["get",["filteredBy"]],"list",["get",["categoryItems"]]]],8],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey","filterBy","filteredBy","filterType","filterValues"],["localizedStatus",["get",["sortByDesc"]],["get",["sortByKey"]],"localizedStatus",["get",["filteredBy"]],"list",["get",["statusList"]]]],7],["block",["if"],[["get",["showActions"]]],null,6],["text"," "],["close-element"],["text","\\n"],["block",["each"],[["get",["sortedIncidents"]]],null,5],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["hasRecords"]]],null,12,1]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/incident/index/template.hbs"}})}),define("hospitalrun/incident/note/delete/controller",["exports","hospitalrun/controllers/abstract-delete-controller","ember","ember-i18n"],function(e,t,n,a){var l=n.default.get,s=n.default.inject;e.default=t.default.extend({afterDeleteAction:"notifyNoteDelete",editController:s.controller("incident/edit"),title:(0,a.translationMacro)("incident.titles.deleteNote"),actions:{notifyNoteDelete:function(){l(this,"editController").send("deleteNote",l(this,"model")),this.send("closeModal")}}})}),define("hospitalrun/incident/note/delete/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"M3FLBmku",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"],["incident.messages.deleteNote"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/incident/note/delete/template.hbs"}})}),define("hospitalrun/incident/note/edit/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember"],function(e,t,n){var a=n.default.computed,l=n.default.get,s=n.default.inject,i=n.default.RSVP,o=n.default.set;e.default=t.default.extend({cancelAction:"closeModal",newNote:!1,updateCapability:"manage_incidents",editController:s.controller("incident/edit"),title:a("model.isNew",function(){var e=l(this,"i18n");return l(this,"model.isNew")?e.t("incident.titles.addNote"):e.t("incident.titles.editNote")}),afterUpdate:function(e){l(this,"newNote")?l(this,"editController").send("addNote",e):this.send("closeModal")},beforeUpdate:function(){return o(this,"newNote",l(this,"model.isNew")),i.resolve()}})}),define("hospitalrun/incident/note/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"NrG5TT+g",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","row"],["flush-element"],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class","format","showTime"],["dateRecorded",["helper",["t"],["incident.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",["em-text"],null,[["property","label","class"],["description",["helper",["t"],["incident.labels.note"],null],"col-sm-12 note-description"]]],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/incident/note/edit/template.hbs"}})}),define("hospitalrun/incident/reports/controller",["exports","hospitalrun/controllers/abstract-report-controller","ember","hospitalrun/mixins/number-format","hospitalrun/mixins/user-session","moment"],function(e,t,n,a,l,s){var i=n.default.get,o=n.default.computed,r=n.default.isEmpty,d=n.default.RSVP;e.default=t.default.extend(l.default,a.default,{reportType:"department",canGenerateReport:o(function(){return this.currentUserCan("generate_incident_report")}),departmentReportColumns:o(function(){var e=i(this,"i18n");return{department:{label:e.t("incident.labels.department"),include:!0,property:"type"},total:{label:e.t("incident.labels.total"),include:!0,property:"total",format:"_numberFormat"}}}),incidentCategoryReportColumns:o(function(){var e=i(this,"i18n");return{incidentCategory:{label:e.t("incident.labels.category"),include:!0,property:"type"},total:{label:e.t("incident.labels.total"),include:!0,property:"total",format:"_numberFormat"}}}),reportTypes:o(function(){var e=i(this,"i18n");return[{name:e.t("incident.titles.incidentsByDepartment"),value:"department"},{name:e.t("incident.titles.incidentsByCategory"),value:"incidentCategory"}]}),_findIncidentsByDate:function(){var e=i(this,"endDate"),t=i(this,"startDate"),n={options:{},mapReduce:"incident_by_date"},a=i(this,"maxValue");return new d.Promise(function(l,i){return r(t)&&i(),n.options.startkey=[t.getTime(),null],r(e)||(e=(0,s.default)(e).endOf("day").toDate(),n.options.endkey=[e.getTime(),a]),this.store.query("incident",n).then(l,i)}.bind(this))}, -_generateByDepartmentOrByIncidentCategoryReport:function(e,t){var n=void 0,a=void 0;"department"===t?(n=i(this,"departmentReportColumns"),a="department"):(n=i(this,"incidentCategoryReportColumns"),a="categoryName"),this._addRowsByType(e,a,"Total incidents: ",n),this._finishReport(n)},_addRowsByType:function(e,t,n,a){this._totalByType(e,t,n).forEach(function(e){this._addReportRow(e,!0,a)}.bind(this))},_totalByType:function(e,t,n){var a=0,l=[];return e.forEach(function(e){var n=e.get(t),s=void 0;r(n)||(s=l.findBy("type",n),r(s)&&(s={type:n,total:0,records:[]},l.push(s)),s.total++,s.records.push(e),a++)}),l=l.sortBy("type"),l.push({type:n,total:a}),l},actions:{generateReport:function(){var e=this,t=i(this,"reportRows"),n=i(this,"reportType");switch(t.clear(),this.showProgressModal(),n){case"department":case"incidentCategory":this._findIncidentsByDate().then(function(t){e._generateByDepartmentOrByIncidentCategoryReport(t,n)}).catch(function(t){console.log("Error:",t),e.closeProgressModal()})}}}})}),define("hospitalrun/incident/reports/route",["exports","hospitalrun/routes/abstract-index-route","ember"],function(e,t,n){e.default=t.default.extend({pageTitle:"Incident Report",model:function(){return n.default.RSVP.resolve(n.default.Object.create({}))}})}),define("hospitalrun/incident/reports/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"WbfoMb69",block:'{"statements":[["open-element","div",[]],["static-attr","class","panel panel-primary"],["flush-element"],["text","\\n"],["block",["if"],[["get",["canGenerateReport"]]],null,5],["close-element"],["text","\\n"],["block",["if"],[["get",["showReportResults"]]],null,3]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","td",[]],["flush-element"],["append",["get",["subrow"]],false],["close-element"],["text","\\n"]],"locals":["subrow"]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n"],["block",["each"],[["get",["row"]]],null,0],["text"," "],["close-element"],["text","\\n"]],"locals":["row"]},{"statements":[["text"," "],["open-element","th",[]],["flush-element"],["append",["get",["header"]],false],["close-element"],["text","\\n"]],"locals":["header"]},{"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],["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,2],["text"," "],["close-element"],["text","\\n"],["block",["each"],[["get",["reportRows"]]],null,1],["text"," "],["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-default"],["flush-element"],["append",["helper",["t"],["incident.buttons.export"],null],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",["date-picker"],null,[["property","label","class"],["startDate",["helper",["t"],["incident.labels.startDate"],null],"col-sm-4"]]],false],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class"],["endDate",["helper",["t"],["incident.labels.endDate"],null],"col-sm-4"]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["static-attr","data-test-selector","select-report-type"],["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"],["incident.labels.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 "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","panel-body"],["flush-element"],["text","\\n"],["block",["em-form"],null,[["model","submitButton"],[["get",[null]],false]],4],["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-default"],["modifier",["action"],[["get",[null]],"generateReport"]],["flush-element"],["append",["helper",["t"],["incident.buttons.generateRep"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/incident/reports/template.hbs"}})}),define("hospitalrun/incident/route",["exports","hospitalrun/routes/abstract-module-route","ember-i18n"],function(e,t,n){e.default=t.default.extend({addCapability:"add_incident",additionalModels:[{name:"incidentDepartmentList",findArgs:["lookup","incident_departments"]},{name:"incidentCategoryList",findArgs:["inc-category"]}],moduleName:"incident",newButtonText:(0,n.translationMacro)("incident.buttons.newIncident"),sectionTitle:(0,n.translationMacro)("incident.titles.incidents")})}),define("hospitalrun/initializers/app-version",["exports","ember-cli-app-version/initializer-factory","hospitalrun/config/environment"],function(e,t,n){var a=n.default.APP,l=a.name,s=a.version;e.default={name:"App Version",initialize:(0,t.default)(l,s)}}),define("hospitalrun/initializers/container-debug-adapter",["exports","ember-resolver/container-debug-adapter"],function(e,t){e.default={name:"container-debug-adapter",initialize:function(){var e=arguments[1]||arguments[0];e.register("container-debug-adapter:main",t.default),e.inject("container-debug-adapter:main","namespace","application:main")}}}),define("hospitalrun/initializers/data-adapter",["exports","ember"],function(e,t){e.default={name:"data-adapter",before:"store",initialize:function(){}}}),define("hospitalrun/initializers/ember-data",["exports","ember-data/setup-container","ember-data/-private/core"],function(e,t,n){e.default={name:"ember-data",initialize:t.default}}),define("hospitalrun/initializers/ember-i18n",["exports","ember-i18n/initializers/ember-i18n"],function(e,t){e.default=t.default}),define("hospitalrun/initializers/ember-keyboard-first-responder-inputs",["exports","ember-keyboard/initializers/ember-keyboard-first-responder-inputs"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"initialize",{enumerable:!0,get:function(){return t.initialize}})}),define("hospitalrun/initializers/ember-simple-auth",["exports","hospitalrun/config/environment","ember-simple-auth/configuration","ember-simple-auth/initializers/setup-session","ember-simple-auth/initializers/setup-session-service"],function(e,t,n,a,l){e.default={name:"ember-simple-auth",initialize:function(e){var s=t.default["ember-simple-auth"]||{};s.baseURL=t.default.rootURL||t.default.baseURL,n.default.load(s),(0,a.default)(e),(0,l.default)(e)}}}),define("hospitalrun/initializers/export-application-global",["exports","ember","hospitalrun/config/environment"],function(e,t,n){function a(){var e=arguments[1]||arguments[0];if(n.default.exportApplicationGlobal!==!1){var a;if("undefined"!=typeof window)a=window;else if("undefined"!=typeof global)a=global;else{if("undefined"==typeof self)return;a=self}var l,s=n.default.exportApplicationGlobal;l="string"==typeof s?s:t.default.String.classify(n.default.modulePrefix),a[l]||(a[l]=e,e.reopen({willDestroy:function(){this._super.apply(this,arguments),delete a[l]}}))}}e.initialize=a,e.default={name:"export-application-global",initialize:a}}),define("hospitalrun/initializers/i18n",["exports"],function(e){e.default={name:"i18n",after:"ember-i18n",initialize:function(e){e.inject("route","i18n","service:i18n"),e.inject("controller","i18n","service:i18n"),e.inject("mixin","i18n","service:i18n"),e.inject("model","i18n","service:i18n")}}}),define("hospitalrun/initializers/injectStore",["exports","ember"],function(e,t){e.default={name:"injectStore",before:"store",initialize:function(){}}}),define("hospitalrun/initializers/store",["exports","ember"],function(e,t){e.default={name:"store",after:"ember-data",initialize:function(){}}}),define("hospitalrun/initializers/transforms",["exports","ember"],function(e,t){e.default={name:"transforms",before:"store",initialize:function(){}}}),define("hospitalrun/initializers/truth-helpers",["exports","ember","ember-truth-helpers/utils/register-helper","ember-truth-helpers/helpers/and","ember-truth-helpers/helpers/or","ember-truth-helpers/helpers/equal","ember-truth-helpers/helpers/not","ember-truth-helpers/helpers/is-array","ember-truth-helpers/helpers/not-equal","ember-truth-helpers/helpers/gt","ember-truth-helpers/helpers/gte","ember-truth-helpers/helpers/lt","ember-truth-helpers/helpers/lte"],function(e,t,n,a,l,s,i,o,r,d,c,u,p){function m(){t.default.Helper||((0,n.registerHelper)("and",a.andHelper),(0,n.registerHelper)("or",l.orHelper),(0,n.registerHelper)("eq",s.equalHelper),(0,n.registerHelper)("not",i.notHelper),(0,n.registerHelper)("is-array",o.isArrayHelper),(0,n.registerHelper)("not-eq",r.notEqualHelper),(0,n.registerHelper)("gt",d.gtHelper),(0,n.registerHelper)("gte",c.gteHelper),(0,n.registerHelper)("lt",u.ltHelper),(0,n.registerHelper)("lte",p.lteHelper))}e.initialize=m,e.default={name:"truth-helpers",initialize:m}}),define("hospitalrun/instance-initializers/ember-data",["exports","ember-data/-private/instance-initializers/initialize-store-service"],function(e,t){e.default={name:"ember-data",initialize:t.default}}),define("hospitalrun/instance-initializers/ember-i18n",["exports","ember-i18n/instance-initializers/ember-i18n"],function(e,t){e.default=t.default}),define("hospitalrun/instance-initializers/ember-simple-auth",["exports","ember-simple-auth/instance-initializers/setup-session-restoration"],function(e,t){e.default={name:"ember-simple-auth",initialize:function(e){(0,t.default)(e)}}}),define("hospitalrun/inventory/adjust/controller",["exports","hospitalrun/controllers/abstract-edit-controller","hospitalrun/mixins/inventory-adjustment-types","ember","ember-i18n"],function(e,t,n,a,l){e.default=t.default.extend(n.default,{inventoryController:a.default.inject.controller("inventory"),expenseAccountList:a.default.computed.alias("inventoryController.expenseAccountList"),title:(0,l.translationMacro)("inventory.titles.adjustment"),transactionTypeChanged:function(){a.default.run.once(this,function(){this.get("model").validate().catch(a.default.K)})}.observes("transactionType"),updateButtonText:function(){return this.get("model.transactionType")}.property("model.transactionType"),updateButtonAction:"adjust",updateCapability:"adjust_inventory_location",actions:{cancel:function(){this.send("closeModal")},adjust:function(){this.send("adjustItems",this.get("model"),!0)}}})}),define("hospitalrun/inventory/adjust/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"9dBN/TFf",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","adjustmentItem","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.adjustmentFor"],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.currentQuantity"],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","row"],["flush-element"],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content","optionValuePath","optionLabelPath"],["col-sm-4",["helper",["t"],["inventory.labels.adjustmentType"],null],"transactionType",["get",["adjustmentTypes"]],"type","name"]]],false],["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 "],["append",["helper",["em-text"],null,[["label","property","rows"],[["helper",["t"],["inventory.labels.reason"],null],"reason",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"],["inventory.labels.adjustmentDate"],null],"col-sm-4 required"]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection","class"],["expenseAccount",["helper",["t"],["inventory.labels.expense"],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]],0]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inventory/adjust/template.hbs"}})}),define("hospitalrun/inventory/barcode/controller",["exports","ember"],function(e,t){e.default=t.default.Controller.extend({selectedPrinter:null,barcodeUri:function(){var e=this.get("model.id"),n=this.get("model.name");return t.default.$(document).JsBarcode(e,{width:1,height:20,fontSize:10,displayValue:n,returnUri:!0})}.property("model.id","model.name"),printers:function(){return dymo.label.framework.getTapePrinters()}.property(),havePrinters:function(){return this.get("printers").length>0}.property("printers"),singlePrinter:function(){return 1===this.get("printers").length}.property("printers"),actions:{print:function(){var e=this.get("barcodeUri"),n=this.get("selectedPrinter");n||(n=this.get("printers")[0].name),t.default.$.get("/dymo/BarcodeAsImage.label",function(t){var a=dymo.label.framework.openLabelXml(t),l=e.substr("data:image/png;base64,".length);a.setObjectText("Image",l),a.print(n)},"text")}}})}),define("hospitalrun/inventory/barcode/route",["exports","ember"],function(e,t){e.default=t.default.Route.extend({model:function(e){return this.store.find("inventory",e.inventory_id)}})}),define("hospitalrun/inventory/barcode/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"PD6MlfyD",block:'{"statements":[["open-element","div",[]],["static-attr","class","panel panel-default"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body"],["flush-element"],["text","\\n "],["open-element","img",[]],["dynamic-attr","src",["unknown",["barcodeUri"]],null],["flush-element"],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["close-element"],["text","\\n\\n"],["block",["if"],[["get",["havePrinters"]]],null,1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","label",[]],["static-attr","for","printerSelect"],["flush-element"],["append",["helper",["t"],["inventory.labels.printer"],null],false],["close-element"],["text","\\n "],["append",["helper",["select-list"],null,[["content","optionLabelPath","optionValuePath","value","class","action","id"],[["get",["printers"]],"name","name",["get",["selectedPrinter"]],"form-control",["helper",["action"],[["get",[null]],["helper",["mut"],[["get",["selectedPrinter"]]],null]],null],"printerSelect"]]],false],["text","\\n"]],"locals":[]},{"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",["helper",["t"],["inventory.labels.printBarcode"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n"],["block",["unless"],[["get",["singlePrinter"]]],null,0],["text"," "],["close-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-primary"],["modifier",["action"],[["get",[null]],"print"]],["flush-element"],["open-element","span",[]],["static-attr","class"," glyphicon glyphicon-print"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["inventory.labels.print"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inventory/barcode/template.hbs"}})}),define("hospitalrun/inventory/batch/controller",["exports","hospitalrun/controllers/abstract-edit-controller","hospitalrun/mixins/inventory-id","hospitalrun/mixins/inventory-locations","ember","ember-i18n"],function(e,t,n,a,l,s){e.default=t.default.extend(n.default,a.default,{doingUpdate:!1,inventoryController:l.default.inject.controller("inventory"),inventoryItems:null,warehouseList:l.default.computed.alias("inventoryController.warehouseList"),aisleLocationList:l.default.computed.alias("inventoryController.aisleLocationList"),vendorList:l.default.computed.alias("inventoryController.vendorList"),purchaseAttributes:["expirationDate","inventoryItem","lotNumber","purchaseCost","quantity","vendorItemNo"],inventoryList:function(){var e=this.get("inventoryItems");if(!l.default.isEmpty(e)){return e.map(function(e){return e.doc})}}.property("inventoryItems.[]"),lookupListsToUpdate:[{name:"aisleLocationList",property:"model.aisleLocation",id:"aisle_location_list"},{name:"vendorList",property:"model.vendor",id:"vendor_list"},{name:"warehouseList",property:"model.location",id:"warehouse_list"}],showDistributionUnit:function(){return this._haveValidInventoryItem()}.property("model.inventoryItemTypeAhead","model.inventoryItem"),showInvoiceItems:function(){var e=this.get("model.invoiceItems");return!l.default.isEmpty(e)}.property("model.invoiceItems.[]"),totalReceived:function(){var e=this.get("model.invoiceItems"),t=0;l.default.isEmpty("invoiceItems")||(t=e.reduce(function(e,t){return e+Number(t.get("purchaseCost"))},t));var n=this.get("model.purchaseCost");return this.get("model.isValid")&&!l.default.isEmpty(n)&&(t+=Number(n)),t}.property("model.invoiceItems.[].purchaseCost","model.isValid","model.purchaseCost"),updateButtonText:(0,s.translationMacro)("inventory.labels.save"),updateCapability:"add_inventory_item",_addNewInventoryItem:function(){this.generateId().then(function(e){var t=this.store.createRecord("inventory",{id:e,name:this.get("model.inventoryItemTypeAhead"),quantity:0,skipSavePurchase:!0});this.send("openModal","inventory.quick-add",t)}.bind(this))},_addInventoryItem:function(){var e=this.get("model"),t=this.get("model.inventoryItemTypeAhead"),n=this.get("model.purchaseCost"),a=this.get("model.quantity");return e.validate().then(function(){if(!this.get("model.isValid")||l.default.isEmpty(t)||l.default.isEmpty(a)||l.default.isEmpty(n))throw Error("invalid");if(!this._haveValidInventoryItem())return this._addNewInventoryItem(),!0;this._addInvoiceItem()}.bind(this)).catch(function(){this.displayAlert(this.get("i18n").t("inventory.titles.warning"),this.get("i18n").t("inventory.messages.warning"))}.bind(this))},_addInvoiceItem:function(){var e=this.get("model"),t=e.get("invoiceItems"),n=e.getProperties(this.get("purchaseAttributes")),a=l.default.Object.create(n);t.addObject(a),e.set("expirationDate"),e.set("inventoryItem"),e.set("inventoryItemTypeAhead"),e.set("lotNumber"),e.set("purchaseCost"),e.set("quantity"),e.set("selectedInventoryItem"),e.set("vendorItemNo")},_findInventoryItem:function(e){var t=this.get("model.invoiceItems"),n=e.get("inventoryItem");if(!l.default.isEmpty(n)){var a=t.find(function(e){return e.get("inventoryItem.id")===n},this);if(!l.default.isEmpty(a))return a.get("inventoryItem")}},_haveValidInventoryItem:function(){var e=this.get("model.inventoryItemTypeAhead"),t=this.get("model.inventoryItem");if(l.default.isEmpty(e)||l.default.isEmpty(t))return!1;var n=t.get("name");return e.substr(0,n.length)===n},_savePurchases:function(){var e=this.get("model"),t=e.getProperties(["dateReceived","vendor","invoiceNo","location","aisleLocation","giftInKind"]),n=e.get("invoiceItems"),a=void 0,s=[];n.forEach(function(e){var n=e.get("inventoryItem"),l=e.get("quantity");a=this.store.createRecord("inv-purchase",t),a.setProperties(e.getProperties(this.get("purchaseAttributes"))),a.setProperties({distributionUnit:n.get("distributionUnit"),currentQuantity:l,originalQuantity:l,inventoryItem:n.get("id")}),s.push(a.save())}.bind(this)),l.default.RSVP.all(s).then(function(e){var t=[],n=[];e.forEach(function(e){var t=this._findInventoryItem(e);t.get("purchases").addObject(e),n.push(this.newPurchaseAdded(t,e))}.bind(this)),l.default.RSVP.all(t).then(function(){e.forEach(function(e){var n=this._findInventoryItem(e);n.updateQuantity(),t.push(n.save())}.bind(this)),l.default.RSVP.all(t).then(function(){this.updateLookupLists(),this.displayAlert(this.get("i18n").t("inventory.titles.purchaseSaved"),this.get("i18n").t("inventory.messages.purchaseSaved"),"allItems")}.bind(this))}.bind(this))}.bind(this))},actions:{addInventoryItem:function(){this._addInventoryItem()},addedNewInventoryItem:function(e){this.set("model.inventoryItem",e),this._addInvoiceItem(),this.send("closeModal"),this.get("doingUpdate")&&this._savePurchases()},removeItem:function(e){var t=this.get("model.invoiceItems"),n=e.itemToRemove;t.removeObject(n),this.send("closeModal")},showRemoveItem:function(e){var t=this.get("i18n").t("inventory.messages.removeItem"),n=l.default.Object.create({itemToRemove:e}),a=this.get("i18n").t("inventory.titles.removeItem");this.displayConfirm(a,t,"removeItem",n)},update:function(){this.set("doingUpdate",!0),this._addInventoryItem().then(function(e){e||this._savePurchases()}.bind(this))}}})}),define("hospitalrun/inventory/batch/route",["exports","hospitalrun/inventory/request/route","ember","ember-i18n"],function(e,t,n,a){e.default=t.default.extend({editTitle:(0,a.translationMacro)("navigation.subnav.inventoryReceived"),modelName:"inventory-batch",newTitle:(0,a.translationMacro)("navigation.subnav.inventoryReceived"),getNewData:function(){return n.default.RSVP.resolve({invoiceItems:[],dateReceived:new Date})},actions:{addedNewInventoryItem:function(e){this.controller.send("addedNewInventoryItem",e)}}})}),define("hospitalrun/inventory/batch/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"9T4fAteu", -block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],4]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-sm-2"],["flush-element"],["text","\\n "],["append",["unknown",["invoiceItem","inventoryItem","name"]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-sm-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",["invoiceItem","quantity"]]]]],false],["text","\\n "],["open-element","span",[]],["static-attr","class","input-group-addon"],["flush-element"],["text","\\n "],["append",["unknown",["invoiceItem","inventoryItem","distributionUnit"]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-sm-2"],["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",["invoiceItem","purchaseCost"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-sm-2"],["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",["invoiceItem","vendorItemNo"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-sm-2"],["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",["invoiceItem","lotNumber"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-sm-2"],["flush-element"],["text","\\n "],["append",["helper",["date-picker"],null,[["property","minDate","model"],["expirationDate","now",["get",["invoiceItem"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-sm-1"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showRemoveItem",["get",["invoiceItem"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["append",["helper",["t"],["inventory.labels.remove"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["invoiceItem"]},{"statements":[["text"," "],["open-element","h3",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.invoiceItems"],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"],["inventory.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"],["inventory.labels.cost"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.itemNumber"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.serialNumber"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.expirationDate"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.action"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","invoiceItems"]]],null,0],["text"," "],["close-element"],["text","\\n "],["open-element","h4",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.totalReceived"],[["total"],[["get",["totalReceived"]]]]],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","p",[]],["static-attr","class","form-control-static inventory-distribution-unit"],["flush-element"],["append",["unknown",["model","inventoryItem","distributionUnit"]],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class"],["dateReceived",["helper",["t"],["inventory.labels.dateReceived"],null],"col-sm-4 required"]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection","className"],["vendor",["helper",["t"],["inventory.labels.vendor"],null],["get",["vendorList"]],["get",["model","vendor"]],"col-sm-4 required test-vendor"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["invoiceNo",["helper",["t"],["inventory.labels.invoiceNumber"],null],"col-sm-4 test-invoice-number"]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group row"],["flush-element"],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection","className"],["location",["helper",["t"],["inventory.labels.location"],null],["get",["warehouseList"]],["get",["model","location"]],"col-sm-5"]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection","className"],["aisleLocation",["helper",["t"],["inventory.labels.aisleLocation"],null],["get",["aisleLocationList"]],["get",["model","aisleLocation"]],"col-sm-5"]]],false],["text","\\n "],["open-element","div",[]],["static-attr","class","col-sm-2 checkbox-label-space"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-check"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label sr-only"],["flush-element"],["append",["helper",["t"],["inventory.labels.gift"],null],false],["close-element"],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["inventory.labels.gift"],null],"giftInKind"]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["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",["helper",["t"],["inventory.labels.invoiceLineItem"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["inventory-typeahead"],null,[["class","property","label","content","selection","showQuantity"],["col-sm-7 required test-inv-item","inventoryItemTypeAhead",["helper",["t"],["inventory.labels.inventoryItem"],null],["get",["inventoryList"]],["get",["selectedInventoryItem"]],false]]],false],["text","\\n "],["append",["helper",["number-input"],null,[["property","label","class"],["quantity",["helper",["t"],["labels.quantity"],null],"col-sm-2 required 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"],["append",["helper",["t"],["inventory.labels.unit"],null],false],["close-element"],["text","\\n"],["block",["if"],[["get",["showDistributionUnit"]]],null,2],["text"," "],["close-element"],["text","\\n "],["append",["helper",["number-input"],null,[["property","label","class"],["purchaseCost",["helper",["t"],["inventory.labels.purchaseCost"],null],"col-sm-2 required test-inv-cost"]]],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"],["vendorItemNo",["helper",["t"],["inventory.labels.vendorItemNumber"],null],"col-sm-4"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["lotNumber",["helper",["t"],["inventory.labels.serialNumber"],null],"col-sm-4"]]],false],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","minDate","class"],["expirationDate",["helper",["t"],["inventory.labels.expirationDate"],null],"now","col-sm-2"]]],false],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group col-sm-2"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["text"," "],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-primary"],["modifier",["action"],[["get",[null]],"addInventoryItem"]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["inventory.labels.add"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["model","invoiceItems"]]],null,1]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],3]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inventory/batch/template.hbs"}})}),define("hospitalrun/inventory/delete/controller",["exports","ember-i18n","hospitalrun/controllers/abstract-delete-controller"],function(e,t,n){e.default=n.default.extend({title:(0,t.translationMacro)("inventory.labels.deleteItem")})}),define("hospitalrun/inventory/delete/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"sUGbE9jt",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"],["inventory.messages.delete"],[["name"],[["get",["model","name"]]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inventory/delete/template.hbs"}})}),define("hospitalrun/inventory/edit/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember","hospitalrun/mixins/friendly-id","hospitalrun/mixins/inventory-locations","hospitalrun/mixins/inventory-type-list","hospitalrun/mixins/return-to","hospitalrun/mixins/unit-types","hospitalrun/mixins/user-session"],function(e,t,n,a,l,s,i,o,r){var d=n.default.computed,c=n.default.get;e.default=t.default.extend(a.default,l.default,s.default,i.default,o.default,r.default,{inventory:n.default.inject.controller(),savingNewItem:!1,sequenceView:"inventory_by_friendly_id",canAddPurchase:function(){return this.currentUserCan("add_inventory_purchase")}.property(),canAdjustLocation:function(){return this.currentUserCan("adjust_inventory_location")},warehouseList:n.default.computed.alias("inventory.warehouseList"),aisleLocationList:n.default.computed.alias("inventory.aisleLocationList"),inventoryTypeList:n.default.computed.alias("inventory.inventoryTypeList.value"),inventoryUnitList:n.default.computed.alias("inventory.inventoryUnitList.value"),vendorList:n.default.computed.alias("inventory.vendorList"),database:n.default.inject.service(),lookupListsToUpdate:[{name:"aisleLocationList",property:"model.aisleLocation",id:"aisle_location_list"},{name:"vendorList",property:"model.vendor",id:"vendor_list"},{name:"warehouseList",property:"model.location",id:"warehouse_list"}],canEditQuantity:function(){return this.get("model.isNew")}.property("model.isNew"),haveTransactions:function(){return null!==this.get("transactions")}.property("transactions.[]"),locationQuantityTotal:function(){return this.get("model.locations").reduce(function(e,t){return e+parseInt(t.get("quantity"))},0)}.property("model.locations"),quantityDiscrepency:function(){var e=this.get("locationQuantityTotal"),t=this.get("model.quantity");return!n.default.isEmpty(e)&&!n.default.isEmpty(t)&&e!==t}.property("locationQuantityTotal","model.quantity"),quantityDifferential:function(){var e=this.get("locationQuantityTotal"),t=this.get("model.quantity");return Math.abs(e-t)}.property("locationQuantityTotal","model.quantity"),originalQuantityUpdated:function(){var e=this.get("model.isNew"),t=this.get("model.originalQuantity");e&&!n.default.isEmpty(t)&&this.set("model.quantity",t)}.observes("model.isNew","model.originalQuantity"),sequenceName:d("model.inventoryType",function(){return"inventory_"+c(this,"model.inventoryType")}),showTransactions:function(){var e=this.get("transactions");return!n.default.isEmpty(e)}.property("transactions.[]"),transactions:null,updateCapability:"add_inventory_item",actions:{adjustItems:function(e){var t=parseInt(e.get("adjustmentQuantity")),n=this.get("model"),a=e.get("transactionType"),l=this.get("store").createRecord("inv-request",{adjustPurchases:!0,dateCompleted:e.get("dateCompleted"),expenseAccount:e.get("expenseAccount"),inventoryItem:n,quantity:t,transactionType:a,reason:e.get("reason"),deliveryAisle:e.get("aisleLocation"),deliveryLocation:e.get("location")});l.set("inventoryLocations",[e]);var s=!1;"Adjustment (Add)"!==a&&"Return"!==a||(s=!0),l.set("markAsConsumed",!0),l.get("inventoryItem").then(function(){this.send("fulfillRequest",l,!0,s,!0)}.bind(this))},editNewItem:function(){this.send("editItem",this.get("model.id"))},showAdjustment:function(e){e.setProperties({dateCompleted:new Date,adjustmentItem:this.get("model"),adjustmentQuantity:"",reason:"",transferItem:null,transactionType:"Adjustment (Add)"}),this.send("openModal","inventory.adjust",e)},showTransfer:function(e){e.set("adjustmentQuantity"),e.set("transferItem",this.get("model")),e.set("dateCompleted",new Date),this.send("openModal","inventory.transfer",e)},transferItems:function(e){var t=this.get("model"),n=this.get("store").createRecord("inv-request",{adjustPurchases:!1,dateCompleted:e.get("dateCompleted"),inventoryItem:t,quantity:e.get("adjustmentQuantity"),deliveryAisle:e.get("transferAisleLocation"),deliveryLocation:e.get("transferLocation"),transactionType:"Transfer"});this.transferToLocation(t,e).then(function(){e.setProperties({transferItem:null,transferLocation:null,transferAisleLocation:null,adjustmentQuantity:null}),n.set("locationsAffected",[{name:e.get("locationName"),quantity:n.get("quantity")}]),n.get("inventoryItem").then(function(){this._saveRequest(n)}.bind(this))}.bind(this))},updatePurchase:function(e,t){t&&(this.get("model").updateQuantity(),this.send("update",!0)),this.send("closeModal")}},_completeBeforeUpdate:function(e){var t=[],a=this.get("model"),l=a.getProperties("aisleLocation","dateReceived","purchaseCost","lotNumber","expirationDate","giftInKind","invoiceNo","location","originalQuantity","quantityGroups","vendor","vendorItemNo"),s=this.get("model.originalQuantity");if(!n.default.isEmpty(s)){l.currentQuantity=s,l.inventoryItem=this.get("model.id");var i=this.get("store").createRecord("inv-purchase",l);t.push(i.save()),this.get("model.purchases").addObject(i),t.push(this.newPurchaseAdded(this.get("model"),i))}return a.set("friendlyId",e),n.default.RSVP.all(t,"All before update done for inventory item")},_saveRequest:function(e){e.set("status","Completed"),e.set("completedBy",e.getUserName()),e.save().then(function(){this.send("update",!0),this.send("closeModal"),this.getTransactions()}.bind(this))},getTransactions:function(){var e=this.get("model.id");this.set("transactions",null),this.store.query("inv-request",{options:{endkey:[e,"Completed",0],startkey:[e,"Completed",9999999999999],descending:!0},mapReduce:"inventory_request_by_item"}).then(function(e){this.set("transactions",e)}.bind(this))},beforeUpdate:function(){var e=this;if(!this.get("model.isNew"))return n.default.RSVP.Promise.resolve();var t=function(){var t=e.get("model");return{v:t.validate().then(function(){if(t.get("isValid"))return e.set("savingNewItem",!0),e.generateFriendlyId("inventory").then(function(t){return e._completeBeforeUpdate(t)});throw Error("invalid model")}).catch(function(){e.send("showDisabledDialog")})}}();return"object"==typeof t?t.v:void 0},afterUpdate:function(){var e=null;this.get("savingNewItem")&&(e="editNewItem",this.set("savingNewItem",!1)),this.displayAlert("Inventory Item Saved","The inventory item has been saved.",e)}})}),define("hospitalrun/inventory/edit/route",["exports","hospitalrun/routes/abstract-edit-route","ember","ember-i18n","hospitalrun/mixins/inventory-id"],function(e,t,n,a,l){e.default=t.default.extend(l.default,{editTitle:(0,a.translationMacro)("inventory.labels.editItem"),modelName:"inventory",newTitle:(0,a.translationMacro)("inventory.labels.newItem"),actions:{adjustItems:function(e){this.controller.send("adjustItems",e)},doneFulfillRequest:function(){this.controller.getTransactions()},editNewItem:function(){this.controller.send("editNewItem")},transferItems:function(e){this.controller.send("transferItems",e)},updatePurchase:function(e,t){this.controller.send("updatePurchase",e,t)}},getNewData:function(){return n.default.RSVP.resolve({dateReceived:new Date,quantityGroups:[]})},setupController:function(e,t){this._super(e,t),e.getTransactions()}})}),define("hospitalrun/inventory/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"dewSrZbs", -block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],27]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","colspan","4"],["flush-element"],["open-element","span",[]],["static-attr","class","glyphicon glyphicon-refresh glyphicon-refresh-animate"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["inventory.messages.loading"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["unknown",["location","name"]],false],["open-element","br",[]],["flush-element"],["close-element"],["text","\\n"]],"locals":["location"]},{"statements":[["text"," "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.transferredFrom"],null],false],["close-element"],["text","\\n"],["block",["each"],[["get",["transaction","locationsAffected"]]],null,1],["text"," "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.transferredTo"],null],false],["close-element"],["text"," "],["append",["unknown",["transaction","deliveryDetails"]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.delivered"],null],false],["close-element"],["text"," "],["append",["unknown",["transaction","deliveryDetails"]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.prescription"],null],false],["close-element"],["text"," "],["append",["unknown",["transaction","deliveryDetails"]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["unknown",["location","name"]],false],["open-element","br",[]],["flush-element"],["close-element"],["text","\\n"]],"locals":["location"]},{"statements":[["text"," "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.cost"],null],false],["close-element"],["text"," "],["append",["unknown",["transaction","costPerUnit"]],false],["open-element","br",[]],["flush-element"],["close-element"],["text","\\n "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.quantity"],null],false],["close-element"],["text"," "],["append",["unknown",["transaction","quantityAtCompletion"]],false],["open-element","br",[]],["flush-element"],["close-element"],["text","\\n "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.pulled"],null],false],["close-element"],["text","\\n"],["block",["each"],[["get",["transaction","locationsAffected"]]],null,5],["block",["if"],[["get",["transaction","patient"]]],null,4,3]],"locals":[]},{"statements":[["text"," "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.location"],null],false],["close-element"],["text"," "],["append",["unknown",["transaction","deliveryDetails"]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.returned"],null],false],["close-element"],["text"," "],["append",["unknown",["transaction","deliveryDetails"]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.reason"],null],false],["close-element"],["text"," "],["append",["unknown",["transaction","reason"]],false],["open-element","br",[]],["flush-element"],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["transaction","haveReason"]]],null,9],["block",["if"],[["get",["transaction","patient"]]],null,8,7]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["transaction","dateCompleted"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["transaction","quantity"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["transaction","transactionType"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["transaction","expenseAccount"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["transaction","isAdjustment"]]],null,10],["block",["if"],[["get",["transaction","isFulfillment"]]],null,6],["block",["if"],[["get",["transaction","isTransfer"]]],null,2],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["transaction"]},{"statements":[["block",["each"],[["get",["transactions"]]],null,11]],"locals":[]},{"statements":[["text"," "],["open-element","h3",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.transactions"],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"],["inventory.labels.dateCompleted"],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"],["inventory.labels.transaction"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.expense"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.details"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["haveTransactions"]]],null,12,0],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-primary neutral"],["modifier",["action"],[["get",[null]],"showAdjustment",["get",["location"]]]],["flush-element"],["append",["helper",["t"],["inventory.labels.adjust"],null],false],["close-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-primary neutral"],["modifier",["action"],[["get",[null]],"showTransfer",["get",["location"]]]],["flush-element"],["append",["helper",["t"],["inventory.labels.transfer"],null],false],["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",["location","location"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["location","aisleLocation"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["location","quantity"]],false],["close-element"],["text","\\n"],["block",["if"],[["get",["canAdjustLocation"]]],null,14],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["location","quantity"]]],null,15]],"locals":["location"]},{"statements":[["text"," "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.action"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","h3",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.locations"],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"],["inventory.labels.location"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.aisleLocation"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.quantity"],null],false],["close-element"],["text","\\n"],["block",["if"],[["get",["canAdjustLocation"]]],null,17],["text"," "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","locations"]]],null,16],["text"," "],["close-element"],["text","\\n"],["block",["if"],[["get",["showTransactions"]]],null,13]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["inventory.labels.giftInKindNo"],null],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["inventory.labels.giftInKindYes"],null],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["dynamic-attr","class",["helper",["if"],[["get",["purchase","expired"]],"warning"],null],null],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["purchase","dateReceived"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["purchase","purchaseCost"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["purchase","costPerUnit"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["purchase","originalQuantity"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["purchase","currentQuantity"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["purchase","giftInKind"]]],null,20,19],["text"," "],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["purchase","lotNumber"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["purchase","expirationDate"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["purchase","vendor"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["purchase","invoiceNo"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["purchase"]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-primary align-right"],["modifier",["action"],[["get",[null]],"showAddPurchase",["get",["model"]]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["inventory.titles.addPurchase"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-danger alert-dismissible"],["static-attr","role","alert"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","close"],["static-attr","data-dismiss","alert"],["flush-element"],["open-element","span",[]],["static-attr","aria-hidden","true"],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["open-element","span",[]],["static-attr","class","sr-only"],["flush-element"],["append",["helper",["t"],["buttons.close"],null],false],["close-element"],["close-element"],["text","\\n "],["open-element","p",[]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","glyphicon glyphicon-warning-sign"],["flush-element"],["close-element"],["text","\\n "],["append",["helper",["t"],["inventory.messages.quantity"],[["quantity","locationQuantity"],[["get",["model","quantity"]],["get",["locationQuantityTotal"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","p",[]],["flush-element"],["append",["helper",["t"],["inventory.messages.adjust"],[["difference"],[["get",["quantityDifferential"]]]]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["quantityDiscrepency"]]],null,23],["text"," "],["open-element","h3",[]],["flush-element"],["text","\\n "],["append",["helper",["t"],["inventory.labels.purchases"],null],false],["text","\\n"],["block",["if"],[["get",["canAddPurchase"]]],null,22],["text"," "],["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"],["inventory.labels.dateReceived"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.purchaseCost"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.costPerUnit"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.originalQuantity"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.currentQuantity"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.gift"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.serialNumber"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.expirationDate"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.vendor"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.invoiceNumber"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","purchases"]]],null,21],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","h3",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.purchaseInfo"],null],false],["close-element"],["text","\\n "],["partial","inv-purchase"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["partial","inventory-basic"],["text","\\n"],["block",["if"],[["get",["model","isNew"]]],null,25,24],["block",["unless"],[["get",["model","isNew"]]],null,18]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],26]],"locals":[]}],"hasPartials":true}',meta:{moduleName:"hospitalrun/inventory/edit/template.hbs"}})}),define("hospitalrun/inventory/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_inventory_request")}.property(),canFulfill:function(){return this.currentUserCan("fulfill_inventory")}.property()})}),define("hospitalrun/inventory/index/route",["exports","hospitalrun/routes/abstract-index-route","hospitalrun/mixins/user-session","ember-i18n"],function(e,t,n,a){e.default=t.default.extend(n.default,{modelName:"inv-request",newButtonAction:function(){return this.currentUserCan("add_inventory_request")?"newRequest":null}.property(),newButtonText:(0,a.translationMacro)("buttons.newRequestPlus"),pageTitle:(0,a.translationMacro)("navigation.subnav.requests"),_getStartKeyFromItem:function(e){return["Requested",null,this._getPouchIdFromItem(e)]},_modelQueryParams:function(){var e=this.get("maxValue");return{options:{startkey:["Requested",null,null],endkey:["Requested",e,e]},mapReduce:"inventory_request_by_status"}},actions:{fulfill:function(e){e.set("dateCompleted",new Date),this.transitionTo("inventory.request",e)}}})}),define("hospitalrun/inventory/index/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"kh9OXcNN",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]],"newRequest"]],["flush-element"],["text"," "],["append",["helper",["t"],["inventory.messages.createRequest"],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"],["inventory.messages.noRequests"],null],false],["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]],"fulfill",["get",["request"]]]],["flush-element"],["append",["helper",["t"],["labels.fulfill"],null],false],["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",["request","inventoryItem","name"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["request","quantity"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["request","dateRequested"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["request","requestedBy"]],false],["close-element"],["text","\\n"],["block",["if"],[["get",["canFulfill"]]],null,2],["text"," "],["close-element"],["text","\\n"]],"locals":["request"]},{"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.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.requestedOn"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.requestedBy"],null],false],["close-element"],["text","\\n"],["block",["if"],[["get",["canFulfill"]]],null,4],["text"," "],["close-element"],["text","\\n"],["block",["each"],[["get",["model"]]],null,3],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["hasRecords"]]],null,5,1]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inventory/index/template.hbs"}})}),define("hospitalrun/inventory/listing/controller",["exports","hospitalrun/controllers/abstract-paged-controller","hospitalrun/mixins/user-session"],function(e,t,n){e.default=t.default.extend(n.default,{canAddItem:function(){return this.currentUserCan("add_inventory_item")}.property(),canAddPurchase:function(){return this.currentUserCan("add_inventory_purchase")}.property(),canDeleteItem:function(){return this.currentUserCan("delete_inventory_item")}.property(),startKey:[]})}),define("hospitalrun/inventory/listing/route",["exports","hospitalrun/routes/abstract-index-route","hospitalrun/mixins/user-session","ember-i18n"],function(e,t,n,a){e.default=t.default.extend(n.default,{modelName:"inventory",newButtonAction:function(){return this.currentUserCan("add_inventory_item")?"newItem":null}.property(),newButtonText:(0,a.translationMacro)("buttons.newItem"),pageTitle:(0,a.translationMacro)("inventory.labels.items"),_modelQueryParams:function(){return{mapReduce:"inventory_by_name"}},_getStartKeyFromItem:function(e){var t=this._getPouchIdFromItem(e);return[e.get("name"),t]}})}),define("hospitalrun/inventory/listing/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"lA3sUJLz",block:'{"statements":[["block",["item-listing"],null,[["paginationProps"],[["get",["paginationProps"]]]],14]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","a",[]],["static-attr","href","#"],["modifier",["action"],[["get",[null]],"newItem"]],["flush-element"],["append",["helper",["t"],["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"],["messages.noItemsFound"],null],false],["text"," "],["block",["if"],[["get",["canAddItem"]]],null,0],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["append",["helper",["t"],["buttons.barcode"],null],false]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"deleteItem",["get",["inventory"]]],[["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",["inventory"]]],[["bubbles"],[false]]],["flush-element"],["append",["helper",["t"],["labels.edit"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default"],["modifier",["action"],[["get",[null]],"showAddPurchase",["get",["inventory"]]],[["bubbles"],[false]]],["flush-element"],["append",["helper",["t"],["buttons.add"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["static-attr","class","clickable"],["modifier",["action"],[["get",[null]],"editItem",["get",["inventory"]]]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["inventory","friendlyId"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["inventory","name"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["inventory","inventoryType"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["inventory","quantity"]],false],["text"," "],["append",["unknown",["inventory","distributionUnit"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["inventory","displayLocations"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["inventory","crossReference"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddPurchase"]]],null,5],["block",["if"],[["get",["canAddItem"]]],null,4],["block",["if"],[["get",["canDeleteItem"]]],null,3],["text"," "],["block",["link-to"],["inventory.barcode",["get",["inventory"]]],[["class","bubbles"],["btn btn-default neutral",false]],2],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["unless"],[["get",["inventory","isNew"]]],null,6]],"locals":["inventory"]},{"statements":[["append",["helper",["t"],["inventory.labels.xref"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["labels.quantity"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["labels.type"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["labels.name"],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","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["friendlyId",["get",["sortDesc"]],["get",["sortKey"]]]],12],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["name",["get",["sortDesc"]],["get",["sortKey"]]]],11],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["inventoryType",["get",["sortDesc"]],["get",["sortKey"]]]],10],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["quantity",["get",["sortDesc"]],["get",["sortKey"]]]],9],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.location"],null],false],["close-element"],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["crossReference",["get",["sortDesc"]],["get",["sortKey"]]]],8],["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"]]],null,7],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["hasRecords"]]],null,13,1]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inventory/listing/template.hbs"}})}),define("hospitalrun/inventory/purchase/edit/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember","hospitalrun/mixins/unit-types"],function(e,t,n,a){e.default=t.default.extend(a.default,{inventoryController:n.default.inject.controller("inventory"),cancelAction:"closeModal",canEditQuantity:function(){var e=this.get("model.originalQuantity");return!(this.get("model.currentQuantity")-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.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,e.giftInKind===!0&&(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)){return p+=this._getValidNumber(t.quantity)*this._getValidNumber(t.costPerUnit),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";e.giftInKind===!0&&(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&&e.doc.archived!==!0&&(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=t.totalCost*-1)}},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:"g8+aEF0m", -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-default"],["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-default"],["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:"eXEh2gJn",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"],["billing.alerts.deleteItem"],[["item"],[["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:"HLQLw+RK", -block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],17]],"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","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,4],["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.expense_to"],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,6],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["item","details"]]],null,5]],"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,8],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["item","showDetails"]]],null,7]],"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,9],["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,15],["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n"],["block",["unless"],[["get",["model","isNew"]]],null,14],["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,13,12],["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]],16],["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,11],["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,10],["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","patientResponsibility"]]],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 "],["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:"+thqAl2P", -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-default neutral"],["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;this.get("newPayment")===!0?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:"R4hTidw9",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",["em-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"})),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:"+OJQ5Cwg",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"],["labs.messages.confirmDeletion"],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",actions:{returnToAllItems:function(){this.controller.send("returnToAllItems")}},getNewData:function(){return l.default.RSVP.resolve({selectPatient:!0,requestDate:(0,s.default)().startOf("day").toDate()})}})}),define("hospitalrun/labs/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"zksQIuZ7",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",["em-text"],null,[["property","label","rows"],["notes",["helper",["t"],["labels.notes"],null],3]]],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={dashboard:{title:"Was möchten Sie tun?"},navigation:{imaging:"Bildgebung",inventory:"Inventar",patients:"Patienten",appointments:"Termine",medication:"Medikation",labs:"Labore",billing:"Abrechnung",administration:"Administration",subnav:{requests:"Anfragen",items:"Einheiten",completed:"Erledigt",newRequest:"Neue Anfrage",inventoryReceived:"Eingeganges Inventar",reports:"Berichte",patientListing:"Patietenliste",newPatient:"Neuer Patient",thisWeek:"Diese Woche",today:"Heute",search:"Suche",addAppointment:"Termin eintragen",dispense:"Verabreichen",returnMedication:"Medikamente zurückgeben",invoices:"Rechnungen",newInvoice:"Neue Rechnung",prices:"Kosten",priceProfiles:"Preisprofile",lookupLists:"Nachschlagelisten",addressFields:"Adressfelder",loadDb:"Datenbank laden",users:"Benutzer",newUser:"Neuer Benutzer"},actions:{logout:"Abmelden",login:"Anmelden"},about:"Über HospitalRun"},user:{plusNewUser:"+ Neuer Benutzer",usersPageTile:"Benutzerliste"},admin:{addressOptions:"Adressoptionen",lookupLists:"Nachschlagelisten",loadDb:"Datenbank laden",users:"Benutzer",address:{address1Label:"Adresse 1 Kennzeichen",address2Label:"Adresse 2 Kennzeichen",address3Label:"Adresse 3 Kennzeichen",address4Label:"Adresse 4 Kennzeichen",include1Label:"Einbezug 1 Kennzeichen",include2Label:"Einbezug 2 Kennzeichen",include3Label:"Einbezug 3 Kennzeichen",include4Label:"Einbezug 4 Kennzeichen",titles:{optionsSaved:"Optionen gespeichert"},messages:{addressSaved:"Die Adressoptionen wurden gespeichert"}},lookup:{anesthesiaTypes:"Anästhesiearten",anesthesiologists:"Anästhesiologe",billingCategories:"Abrechnungskategorien",clinicList:"Kliniken",countryList:"Länder",diagnosisList:"Diagnosen",cptCodeList:"CPT Codes",expenseAccountList:"Ausgabekonten",aisleLocationList:"Gänge-Verzeichnis",warehouseList:"Warenhaus",inventoryTypes:"Inventartypen",imagingPricingTypes:"Bildgebungs-Preiskategorien",labPricingTypes:"Labor-Preiskategorien",patientStatusList:"Patientenstatus",physicianList:"Ärzte",procedureList:"Abläufe",procedureLocations:"Ablaufs-Orte",procedurePricingTypes:"Ablaufs-Preiskategorien",radiologists:"Radiologen",unitTypes:"Einheiten",vendorList:"Anbieter",visitLocationList:"Einsatzorte",visitTypes:"Besuchsarten",wardPricingTypes:"Krankenstations-Preistypen"}},labels:{name:"Name",patient:"Patient",quantity:"Anzahl",requestedOn:"Angefragt am",dateRequested:"Anfragedatum",dateCompleted:"Abschlussdatum",requestedBy:"Angefragt von",fulfill:"Ausführen",actions:"Aktionen",action:"Aktion",notes:"Notizen",edit:"Bearbeiten",imagingType:"Bildgebungsart",result:"Ergebnis",results:"Ergebnisse",visit:"Besuch",requests:"Anfragen",completed:"Erledigt",id:"Id-Nr",sex:"Geschlecht",age:"Alter",username:"Username",email:"E-Mail",role:"Rolle",delete:"Entfernen",userCanAddNewValue:"Benutzer kann neue Werte hinzufügen",value:"Wert",lookupType:"Nachschlagebereich",importFile:"Datei importieren",fileLoadSuccessful:"Datei erfolgreich geladen",fileToLoad:"Datei laden",startTime:"Startzeit",endTime:"Endzeit",docRead:"Dokument gelesen",docWritten:"Dokument geschrieben",displayName:"Angezeigter Name",password:"Passwort",editUser:"Benutzer bearbeiten",newUser:"Neuer Benutzer",deleteUser:"Benutzer löschen"},messages:{noItemsFound:"Keine Einträge gefunden.",createNewRecord:"Neuen Eintrag erstellen?",createNewUser:"Neuen Benutzer hinzufügen?",noUsersFound:"Keine Benutzer gefunden.",areYouSureDelete:"Wollen Sie den Benutzer {{user}} sicher löschen?",userHasBeenSaved:"Der Benutzer wurde gespeichert.",userSaved:"Benutzer gespeichert",forAuthorizedPersons:"Dieser Bericht ist nur für autorisierte Personen."},buttons:{complete:"Abschließen",cancel:"Abbrechen",returnButton:"Zurück",add:"Hinzufügen",update:"Aktualisieren",ok:"Okay",delete:"Entfernen",newUser:"Neuer Benutzer",addValue:"Wert hinzufügen",import:"Importieren",loadFile:"Datei laden"},login:{messages:{signIn:"Bitte anmelden",error:"Benutzername oder Passwort falsch."},labels:{password:"Passwort",username:"Benutzername",signIn:"Anmelden"}},inventory:{messages:{noRequests:"Keine Anfragen gefunden.",createRequest:"Neue Anfrage erstellen?"}},imaging:{pageTitle:"Anfrage zur Bildgebung",sectionTitle:"Bildgebung",buttons:{newButton:"+ Neue Bildgebung"},labels:{radiologist:"Radiologe",addNewVisit:"--Neuen Besuch hinzufügen--"},messages:{noCompleted:"Keine erledigten Einträge gefunden."},titles:{completedImaging:"Erledigte Bildgebung",editTitle:"Bildgebungs-Anfrage bearbeiten",newTitle:"Neue Bildgebungs-Anfrage"},alerts:{completedTitle:"Bildgebungs-Anfrage gestellt",completedMessage:"Die Anfrage zur Bildgebung wurde abgeschlossen.",savedTitle:"Bildgebungs-Anfrage gespeichert",savedMessage:"Die Anfrage zur Bildgebung wurde gespeichert."}}}}),define("hospitalrun/locales/en/config",["exports"],function(e){e.default={}}),define("hospitalrun/locales/en/translations",["exports"],function(e){e.default={dashboard:{title:"What would you like to do?"},errors:{inclusion:"is not included in the list",exclusion:"is reserved",invalid:"is invalid",confirmation:"doesn't match {{attribute}}",accepted:"must be accepted",empty:"can't be empty",blank:"can't be blank",present:"must be blank",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)",notANumber:"is not a number",notAnInteger:"must be an integer",greaterThan:"must be greater than {{count}}",greaterThanOrEqualTo:"must be greater than or equal to {{count}}",equalTo:"must be equal to {{count}}",lessThan:"must be less than {{count}}",lessThanOrEqualTo:"must be less than or equal to {{count}}",otherThan:"must be other than {{count}}",odd:"must be odd",even:"must be even",invalidNumber:"not a valid number",result:"Please enter a result before completing"},dates:{long:"{{years}} year {{months}} months {{days}} days",longPlural:"{{years}} years {{months}} months {{days}} days",longOmitYears:"{{months}} months {{days}} days",longOmitDays:"{{years}} year {{months}} months",longOmitDaysPlural:"{{years}} years {{months}} months",longOmitDaysYears:"{{months}} months",shortOmitYears:"{{months}}m {{days}}d",short:"{{years}}y {{months}}m {{days}}d"},navigation:{imaging:"Imaging",inventory:"Inventory",patients:"Patients",scheduling:"Scheduling",medication:"Medication",labs:"Labs",billing:"Billing",administration:"Administration",incident:"Incident",subnav:{actions:"Actions",requests:"Requests",items:"Items",completed:"Completed",newRequest:"New Request",inventoryReceived:"Inventory Received",reports:"Reports",patientListing:"Patient Listing",newPatient:"New Patient",appointmentsThisWeek:"Appointment This Week","today'sAppointments":"Today's Appointments",appointmentSearch:"Appointment Search",addAppointment:"Add Appointment",dispense:"Dispense",returnMedication:"Return Medication",invoices:"Invoices",newInvoice:"New Invoice",prices:"Prices",priceProfiles:"Price Profiles",lookupLists:"Lookup Lists",addressFields:"Address Fields",loadDB:"Load DB",users:"Users",newUser:"New User",admittedPatients:"Admitted Patients",missedAppointments:"Missed Appointments",userRoles:"User Roles",workflow:"Workflow",outpatient:"Outpatient",customForms:"Custom Forms",appointmentsCalendar:"Appointments Calendar",theaterSchedule:"Theater Schedule",scheduleSurgery:"Schedule Surgery",printHeader:"Print Header",currentIncidents:"Current Incidents",newIncident:"New Incident",history:"History",incidentCategories:"Incident Categories"},actions:{logout:"Logout",login:"Login"},about:"About HospitalRun"},user:{plusNewUser:"+ new user",usersPageTile:"User Listing"},admin:{addressOptions:"Address Options",lookupLists:"Lookup Lists",loadDb:"Load DB",userRoles:"User Roles",users:"Users",address:{address1Label:"Address 1 Label",address2Label:"Address 2 Label",address3Label:"Address 3 Label",address4Label:"Address 4 Label",include1Label:"Include 1 Label",include2Label:"Include 2 Label",include3Label:"Include 3 Label",include4Label:"Include 4 Label",titles:{optionsSaved:"Options Saved"},messages:{addressSaved:"The address options have been saved"},newTitle:"Address Options",editTitle:"Address Options",addressLabel:"Address"},header:{facilityName:"Facility Name",headerLine1:"Header Line 1",headerLine2:"Header Line 2",headerLine3:"Header Line 3",logoURL:"Logo URL",includeFacilityName:"Include Facility Name",includeHeaderLine1:"Include Header Line 1",includeHeaderLine2:"Include Header Line 2",includeHeaderLine3:"Include Header Line 3",includeLogoURL:"Include Logo URL",titles:{optionsSaved:"Options Saved"},messages:{headerSaved:"The header options have been saved"},newTitle:"Header Options",editTitle:"Header Options",headerLabel:"Header"},customForms:{buttons:{addField:"Add Field",moveDown:"Move Down",moveUp:"Move Up",newForm:"+ new form",preview:"Preview"},labels:{alwaysInclude:"Always Include",checkbox:"Checkbox",columns:"Columns",colSpan:"Number of Columns To Span",customForm:"Custom Form",formName:"Form Name",formType:"Form Type",includeOtherOption:"Include Other Option",incidentFormType:"Incident",label:"Label",newForm:"New Form",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",opdReportFormType:"Outpatient Report",dischargeReportFormType:"Discharge Report"},messages:{deleteForm:"Are you sure you want to delete this custom form?",formSaved:"The {{name}} form has been saved."},titles:{customForms:"Custom Forms",deleteForm:"Delete Custom Form",editCustomForm:"Edit Custom Form",fields:"Fields",formSaved:"Form Saved",checkboxValues:"Checkbox Values",dropDownValues:"Dropdown Values",newCustomForm:"New Custom Form",radioValues:"Radio Values"}},loaddb:{progressMessage:"Please wait while your database is loaded.",progressTitle:"Loading Database",displayAlertTitle:"Select File To Load",displayAlertMessage:"Please select file to load.",errorDisplayAlertTitle:"Error Loading",errorDisplayAlertMessage:"The database could not be imported. The error was: {{error}}",editTitle:"Load DB"},lookup:{alertImportListTitle:"Select File To Import",alertImportListMessage:"Please select file to import.",alertImportListSaveTitle:"List Imported",alertImportListSaveMessage:"The lookup list has been imported.",alertImportListUpdateTitle:"List Saved",alertImportListUpdateMessage:"The lookup list has been saved.",pageTitle:"Lookup Lists",edit:{template:{addTitle:"Add Value",editTitle:"Edit Value",updateButtonTextAdd:"Add",updateButtonTextUpdate:"Update",labelTitle:"Value"}},anesthesiaTypes:"Anesthesia Types",anesthesiologists:"Anesthesiologists",billingCategories:"Billing Categories",clinicList:"Clinic Locations",countryList:"Countries",diagnosisList:"Diagnoses",cptCodeList:"CPT Codes",expenseAccountList:"Expense Accounts",aisleLocationList:"Inventory Aisle Locations",warehouseList:"Inventory Locations",incidentDepartments:"Incident Departments",inventoryTypes:"Inventory Types",imagingPricingTypes:"Imaging Pricing Types",labPricingTypes:"Lab Pricing Types",patientStatusList:"Patient Status List",physicianList:"Physicians",procedureList:"Procedures",procedureLocations:"Procedures Locations",procedurePricingTypes:"Procedure Pricing Types",radiologists:"Radiologists",unitTypes:"Unit Types",vendorList:"Vendor",visitLocationList:"Visit Locations",visitTypes:"Visit Types",wardPricingTypes:"Ward Pricing Types",messages:{deleteLookupValue:"Are you sure you want to delete the {{value}} value?"},titles:{deleteLookupValue:"Delete Value"}},roles:{capability:{admin:"Administration",loadDb:"Load Database",updateConfig:"Update Configurations",appointments:"Appointments",addAppointment:"Add Appointment",billing:"Billing",addCharge:"Add Charge",addPricing:"Add Pricing",addPricingProfile:"Add Pricing Profile",addInvoice:"Add Invoice",addPayment:"Add Payment",deleteInvoice:"Delete Invoice",deletePricing:"Delete Pricing",deletePricingProfile:"Delete Pricing Profile",editInvoice:"Edit Invoice",invoices:"Invoices",overrideInvoice:"Override Invoice",pricing:"Pricing",patients:"Patients",addDiagnosis:"Add Diagnosis",addPhoto:"Add Photo",addPatient:"Add Patient",addProcedure:"Add Procedure",addVisit:"Add Visit",addVitals:"Add Vitals",admitPatient:"Admit Patient",deletePhoto:"Delete Photo",deletePatient:"Delete Patient",deleteAppointment:"Delete Appointment",deleteDiagnosis:"Delete Diagnosis",deleteProcedure:"Delete Procedure",deleteSocialwork:"Delete Social Work",deleteVitals:"Delete Vitals",deleteVisit:"Delete Visit",dischargePatient:"Discharge Patient",patientReports:"Patient Reports",visits:"Visits",medication:"Medication",addMedication:"Add Medication",deleteMedication:"Delete Medication",fulfillMedication:"Fulfill Medication",labs:"Labs",addLab:"Add Lab",completeLab:"Complete Lab",deleteLab:"Delete Lab",imaging:"Imaging",addImaging:"Add Imaging",completeImaging:"Complete Imaging",deleteImaging:"Delete Imaging",inventory:"Inventory",addInventoryRequest:"Add Inventory Request",addInventoryItem:"Add Inventory Item",addInventoryPurchase:"Add Inventory Purchase",adjustInventoryLocation:"Adjust Inventory Location",deleteInventoryItem:"Delete Inventory Item",fulfillInventory:"Fulfill Inventory",defineUserRoles:"Define User Roles",addBillingDiagnosis:"Add Billing Diagnosis",addNote:"Add Note",addSocialwork:"Add Social Work",deleteNote:"Delete Note",addOperativePlan:"Add Operative Plan",addAllergy:"Add Allergy",addOperationReport:"Add Operation Report",incident:"Incident",addIncident:"Add Incident",addIncidentCategory:"Add Incident Category",deleteIncident:"Delete Incident",deleteIncidentCategory:"Delete Incident Category",generateIncidentReport:"Generate Incident Report",manageIncidents:"Manage Incidents"},messages:{roleSaved:"The {{roleName}} role has been saved."},titles:{roleSaved:"Role Saved"}},visitForms:{labels:{followup:"Followup",form:"Form",initial:"Initial",visitType:"Visit Type"},titles:{visitForms:"Visit Forms"}},workflow:{admissionDepositLabel:"Admission deposit required",clinicPrepaymentLabel:"Clinic prepayment required",followupPrepaymentLabel:"Followup prepayment required",outpatientLabLabel:"Outpatient Lab prepayment required",outpatientImagingLabel:"Outpatient Imaging prepayment required",outpatientMedicationLabel:"Outpatient Medication prepayment required",titles:{optionsSaved:"Options Saved"},messages:{optionsSaved:"The workflow options have been saved"},newTitle:"Workflow Options",editTitle:"Workflow Options",workflowLabel:"Workflow"}},labels:{cptcode:"CPT Code",loading:"Loading",name:"Name",note:"Note",patient:"Patient",prescriber:"Prescriber",quantity:"Quantity",requestedOn:"Requested On",date:"Date",dateOfBirth:"Date of Birth",dateOfBirthShort:"DoB",dateRequested:"Date Requested",dateCompleted:"Date Completed",description:"Description",requestedBy:"Requested By",fulfill:"Fulfill",fulfillRequest:"Fulfill Request",fulfillRequestNow:"Fulfill Request Now",actions:"Actions",action:"Action",notes:"Notes",edit:"Edit",imageOrders:"Image Orders",labOrders:"Lab Orders",imagingType:"Imaging Type",result:"Result",results:"Results",visit:"Visit",requests:"Requests",completed:"Completed",id:"Id",on:"on",type:"Type",sex:"Sex",age:"Age",search:"Search",username:"Username",email:"Email",role:"Role",delete:"Delete",userCanAddNewValue:"User Can Add New Values",value:"Value",lookupType:"Lookup Type",importFile:"Import File",fileLoadSuccessful:"File To Load Successful",fileToLoad:"File Load",fileName:"File Name",startTime:"Start Time",startDate:"Start Date",endTime:"End Time",endDate:"End Date",docRead:"Docs Read",docWritten:"Docs Written",displayName:"Display Name",password:"Password",editUser:"Edit User",newUser:"New User",deleteUser:"Delete User",medication:"Medication",status:"Status",addNewOutpatientVisit:"--Add New Outpatient Visit--",prescription:"Prescription",prescriptionDate:"Prescription Date",billTo:"Bill To",pullFrom:"Pull From",fulfilled:"Fulfilled",deleteRequest:"Delete Request",location:"Location",provider:"Provider",with:"With",allDay:"All Day",physician:"Physician",assisting:"Assisting",anesthesia:"Anesthesia",procedures:"Procedures",number:"Number",billDate:"Bill Date",balanceDue:"Balance Due",amount:"Amount",datePaid:"Date Paid",creditTo:"Credit To",invoiceId:"Invoice ID",lineItems:"Line Items",discount:"Discount",excess:"Excess",price:"Price",total:"Total",expenseTo:"Expense To",grandTotal:"Grand Total",remarks:"Remarks",payments:"Payments",category:"Category",department:"Department",address:"Address",country:"Country"},messages:{noItemsFound:"No items found.",noHistoryAvailable:"No history available.",createNewRecord:"Create a new record?",createNewUser:"Create a new user?",noUsersFound:"No users found.",areYouSureDelete:"Are you sure you wish to delete the user {{user}}?",userHasBeenSaved:"The user has been saved.",userSaved:"User Saved",onBehalfOf:"on behalf of",newPatientHasToBeCreated:"A new patient needs to be created...Please wait..",noNotesAvailable:"No additional clinical notes are available for this visit.",sorry:"Sorry, something went wrong...",forAuthorizedPersons:"This report is for authorized persons only.",requiredFieldsCorrectErrors:"Please fill in required fields (marked with *) and correct the errors before saving.",saveActionException:"An error occurred while attempting to save: {{message}}",reportError:"An error was encountered while generating the requested report. Please let your system administrator know that you have encountered an error."},alerts:{pleaseWait:"Please Wait",warningExclamation:"Warning!!!!",errorExclamation:"Error!!!!",reportError:"Error Generating Report"},headings:{chargedItems:"Charged Items"},buttons:{addItem:"Add Item",complete:"Complete",cancel:"Cancel",close:"Close",returnButton:"Return",barcode:"Barcode",add:"Add",update:"Update",ok:"Ok",fulfill:"Fulfill",remove:"Remove",delete:"Delete",newUser:"New User",addValue:"Add Value",newNote:"New Note",import:"Import",loadFile:"Load File",newRequest:"New Request",allRequests:"All Requests",dispense:"Dispense",newItem:"+ new item",newRequestPlus:"+ new request",addVisit:"Add Visit",search:"Search",filter:"Filter",clear:"Clear",edit:"Edit",addLineItem:"Add Line Item",showFewer:"Show Fewer",showAll:"Show All"},login:{messages:{signIn:"please sign in",error:"Username or password is incorrect."},labels:{password:"Password",username:"Username",signIn:"Sign in"}},loading:{progressBar:{progress:"{{progressBarValue}}% Complete"},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."}},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",adjust:"Adjust",adjustmentDate:"Adjustment Date",adjustmentFor:"Adjustment For",adjustmentType:"Adjustment Type",aisle:"Aisle",aisleLocation:"Aisle Location",allInventory:"All Inventory",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",dateStart:"Start Date",dateReceived:"Date Received",dateTransferred:"Date Transferred",daysLeft:"Days Left",deliveryAisle:"Delivery Aisle",deliveryLocation:"Delivery Location",distributionUnit:"Distribution Unit",deleteItem:"Delete Item",details:"Details",editItem:"Edit Item",expense:"Expense To",expirationDate:"Expiration Date",fulfillRequest:"Fulfill Request",fulfillRequestNow:"Fulfill Request Now",gift:"Gift in Kind",giftUsage:"Gift in Kind Usage",giftInKindNo:"N",giftInKindYes:"Y",inventoryConsumed:"Inventory Consumed",inventoryItem:"Inventory Item",inventoryObsolence:"Inventory Obsolence",invoiceItems:"Invoice Items",invoiceLineItem:"Invoice Line Item",invoiceNumber:"Invoice Number",item:"Item",items:"Items",itemNumber:"Item Number",location:"Location",locations:"Locations",name:"Name",markAsConsumed:"Mark as Consumed",newItem:"New Item",allItems:"All Items",originalQuantity:"Original Quantity",print:"Print",printBarcode:"Print Barcode",printer:"Printer",pullFrom:"Pull From",purchases:"Purchases",purchaseCost:"Purchase Cost",purchaseInfo:"Purchase Information",quantity:"Quantity ({{unit}})",quantityAvailable:"Quantity Available",quantityOnHand:"Quantity on Hand",quantityRequested:"Quantity Requested",rank:"Rank",reason:"Reason",remove:"Remove",reorderPoint:"Reorder Point",requestedItems:"Requested Items",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",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?",delete:"Are you sure you wish to delete {{name}}?",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 ...",purchaseSaved:"The inventory purchases have been successfully saved.",noRequests:"No requests found.",noItems:"No items found.",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:{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}}"},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",stockTransferDetail:"Detailed Stock Transfer",stockTransferSum:"Summary Stock Transfer",stockUsageDetail:"Detailed Stock Usage",stockUsageSum:"Summary Stock Usage",titleSingleDate:"{{name}} Report {{date}}",titleDateRange:"{{name}} Report {{startDate}} - {{endDate}}"},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!!!!!"}},imaging:{pageTitle:"Imaging Requests",sectionTitle:"Imaging",buttons:{newButton:"+ new imaging"},labels:{radiologist:"Radiologist",addNewVisit:"--Add New Visit--"},messages:{delete:"Are you sure you wish to delete this imaging request?",noCompleted:"No completed items found."},titles:{completedImaging:"Completed Imaging",editTitle:"Edit Imaging Request",newTitle:"New Imaging Request"},alerts:{completedTitle:"Imaging Request Completed",completedMessage:"The imaging request has been completed.",savedTitle:"Imaging Request Saved",savedMessage:"The imaging request has been saved."}},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?",deleteAttachment:"Are you sure you wish to delete this attachment?",deleteCategory:"Are you sure you wish to delete {{name}}?",deleteIncident:"Are you sure you wish to delete this incident?",deleteItem:"Are you sure you want to delete this item?",deleteNote:"Are you sure you wish to delete this note?",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"}},medication:{pageTitle:"Medication Requests",sectionTitle:"Medication",returnMedication:"Return Medication",buttons:{ -dispenseMedication:"dispense medication",newButton:"+ new request",returnMedication:"return medication"},titles:{completedMedication:"Completed Medication",editMedicationRequest:"Edit Medication Request",newMedicationRequest:"New Medication Request"},messages:{createNew:"Create a new medication request?",confirmDeletion:"Are you sure you wish to delete this medication request?"},labels:{refills:"Refills",quantityRequested:"Quantity Requested",quantityDispensed:"Quantity Dispensed",quantityDistributed:"Quantity Distributed",quantityToReturn:"Quantity To Return",returnLocation:"Return Location",returnAisle:"Return Aisle",returnReason:"Return Reason/Notes",adjustmentDate:"Adjustment Date",creditToAccount:"Credit To Account"},alerts:{returnedTitle:"Medication Returned",returnedMessage:"The medication has been marked as returned.",savedTitle:"Medication Request Saved",savedMessage:"The medication record has been saved.",fulfilledTitle:"Medication Request Fulfilled"}},appointments:{currentScreenTitle:"Appointment List",editTitle:"Edit Appointment",newTitle:"New Appointment",sectionTitle:"Appointments",thisWeek:"Appointments This Week",missed:"Missed Appointments",searchTitle:"Search Appointments",todayTitle:"Today's Appointments",calendarTitle:"Appointments Calendar",messages:{appointmentSaved:"The appointment for {{patient}} has been saved.",deleteAppointmentMessage:"Are you sure you wish to delete this appointment?",endTimeLaterThanStart:"Please select an end time later than the start time."},buttons:{newButton:"+ new appointment",scheduleSurgery:"+ schedule surgery"},labels:{noLocation:"No Location",selectedStartingDate:"Show Appointments On Or After"},titles:{appointmentSaved:"Appointment Saved",editSurgicalAppointment:"Edit Surgical Appointment",newSurgicalAppointment:"New Surgical Appointment",theaterSchedule:"Theater Schedule"}},vitals:{messages:{delete:"Are you sure you wish to delete these vitals?"},labels:{dateRecorded:"Date Recorded",temperature:"Temperature",weight:"Weight",height:"Height",sbp:"SBP",dbp:"DBP",heartRate:"Heart Rate",respiratoryRate:"Respiratory Rate"}},visits:{titles:{additionalDiagnoses:"Additional Diagnoses",checkedIn:"Patient Checked In",checkOut:"Patient Check Out",checkedOut:"Patient Checked Out",discharged:"Patient Discharged",editVisit:"Edit Visit",newVisit:"New Visit",patientCheckIn:"Patient Check In",visitSaved:"Visit Saved"},messages:{delete:"Are you sure you wish to delete this visit?",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."},buttons:{newProcedure:"New Procedure",newAppointment:"New Appointment",addDiagnosis:"Add Diagnosis",newVitals:"New Vitals",checkIn:"Check In",checkOut:"Check Out",discharge:"Discharge"},labels:{diagnosis:"Diagnosis",procedure:"Procedure",procedureDate:"Procedure Date",authoredBy:"Authored By",visitInformation:"Visit Information",examiner:"Examiner",status:"Visit Status",finalDiagnosis:"Final/Billing Diagnosis",visitDate:"Visit Date",visitType:"Visit Type",patientToCheckIn:"Patient To Check In",checkInTime:"Check In",checkOutTime:"Check Out",appointment:"Appointment",haveAppointment:"Y",noAppointment:"N",ordersDone:"Orders Done",haveDoneOrders:"Y",ordersNotDone:"N",reasonForVisit:"Reason For Visit",statusAdmitted:"Admitted",statusDischarged:"Discharged",statusCheckedIn:"Checked In",statusCheckedOut:"Checked Out",createNewPatient:"Create New Patient",reportType:"Report type"},navigation:{charges:"Charges",notes:"Notes",orders:"Orders",procedures:"Procedures",vitals:"Vitals",reports:"Reports"}},labs:{sectionTitle:"Labs",requestsTitle:"Lab Requests",editTitle:"Edit Lab Request",newTitle:"New Lab Request",deleteTitle:"Delete Request",completedTitle:"Completed Labs",labels:{labType:"Lab Type",addNewVisit:"--Add New Visit--"},messages:{noItemsFound:"No labs found.",createNewRecord:"Create a new record?",confirmDeletion:"Are you sure you wish to delete this lab request?",noCompleted:"No completed items found."},buttons:{newButton:"+ new lab"},alerts:{requestCompletedTitle:"Lab Request Completed",requestCompletedMessage:"The lab request has been completed.",requestSavedTitle:"Lab Request Saved",requestSavedMessage:"The lab request has been saved."}},patients:{navigation:{photos:"Photos",general:"General",history:"History",appointments:"Appointments",visits:"Visits",medication:"Medication",imaging:"Imaging",labs:"Labs",socialWork:"Social Work"},titles:{addContact:"Add Contact",admittedPatients:"Admitted Patients",expenses:"Expenses",additionalContacts:"Additional Contacts",familyInformation:"Family Information",delete:"Delete Patient",new:"New Patient",edit:"Edit Patient",patient:"Patient Report",patientListing:"Patient Listing",patientReport:"Patient Report",addPhoto:"Add Photo",editPhoto:"Edit Photo",socialWork:"Expense",familyInfo:"Family Info",deleteFamilyMember:"Delete Family Member",deleteExpense:"Delete Expense",deletePhoto:"Delete Photo",deleteContact:"Delete Contact",savedPatient:"Patient Saved",todaysOutpatients:"Today's Outpatients",admissionsDetail:"Admissions Detail",admissionsSummary:"Admissions Summary",diagnosticTesting:"Diagnostic Testing",dischargesDetail:"Discharges Detail",dischargesSummary:"Discharges Summary",proceduresDetail:"Procedures Detail",proceduresSummary:"Procedures Summary",patientStatus:"Patient Status",totalPatientDays:"Total Patient Days",totalPatientDaysDetailed:"Total Patient Days (Detailed)",visit:"Visit",deletePatientRecord:"Delete Patient Record",outpatientsForDate:"Outpatients for {{visitDate}}"},messages:{areYouSureDelete:"Are you sure you want to delete this {{object}}?",deletePatient:"Are you sure you wish to delete {{firstName}} {{lastName}}?",noPatientsFound:"No patients found.",savedPatient:"The patient record for {{displayName}} has been saved.",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.",createNewPatient:"Create a new patient record?",deletingPatient:"Deleting patient and all associated records",photoFileRequired:"Please take a picture or upload a file before saving this photo."},buttons:{addExpense:"Add Expense",addContact:"Add Contact",addOperativePlan:"Add Operative Plan",editOperativePlan:"Current Operative Plan",download:"Download",newLab:"New Lab",newVisit:"New Visit",newMedication:"New Medication",newImaging:"New Imaging",addFamilyMember:"Add Family Member",newPhoto:"New Photo",newAppointment:"New Appointment",backToPatients:"Back to Patient List",newPatient:"+ new patient",patientCheckIn:"Patient Check In",newOPDReport:"New OPD Report",newDischargeReport:"New Discharge Report",scheduleSurgery:"Schedule Surgery"},labels:{primaryDiagnosis:"Primary Diagnoses",secondaryDiagnosis:"Secondary Diagnoses",monthlyCost:"Monthly Cost",totalMontlyExpense:"Total Monthly Expenses",patientType:"Patient Type",admissionDate:"Admission Date",patientDays:"Patient Days",dischargeDate:"Discharge Date",admit:"Admit",relationships:"Relationships",phone:"Phone",email:"Email",firstName:"First Name",middleName:"Middle Name",lastName:"Last Name",sex:"Sex",dob:"DOB",dateOfBirth:"Date Of Birth",placeOfBirth:"Place Of Birth",sources:"Sources",cost:"Cost",civilStatus:"Civil Status",relationship:"Relationship To Patient",education:"Education",occupation:"Occupation",income:"Income",insurance:"Insurance",dateProcessed:"Date Processed",status:"Patient Status",externalPatientId:"External Patient Id",bloodType:"Blood Type",clinic:"Clinic Site",referredBy:"Referred By",referredDate:"Referred Date",religion:"Religion",parent:"Parent/Guardian",contacts:"Contacts",sexNotEntered:"Sex Not Entered",operativePlan:"Operative Plan",caption:"Caption",patientTypeCharity:"Charity",patientTypePrivate:"Private"},notes:{newNote:"New Note for",updateNote:"Updating Note from",onBehalfOfLabel:"On Behalf Of",onBehalfOfCopy:"on behalf of",pleaseSelectAVisit:"Please select a visit"}},billing:{alerts:{noInvoiceFound:"No invoices found",deleteItem:"Are you sure you wish to delete {{item}}?",noPricingItems:"No pricing items found.",noPricingProfiles:"No pricing profiles found."},buttons:{createInvoice:"Create an invoice?",addOverride:"Add Override"},labels:{externalInvoiceNumber:"External Invoice #",paymentProfile:"Payment Profile",actualCharges:"Actual Charges",insurance:"National Insurance",hmoCom:"HMO/COM",paymentsDeposits:"Payments/Deposits",pricingPanelOverrides:"Pricing profile overrides",pricingProfile:"Pricing Profile",discountAmount:"Discount Amount",discountPercentage:"Discount Percentage"}},print:{invoice:{labels:{patientName:"NAME OF PATIENT:",patientId:"PATIENT #:",patientAge:"AGE:",patientAddress:"ADDRESS:",dateAdmitted:"ADMITTED:",dateDischarged:"DISCHARGE:",dischargeNotes:"Discharge Notes:",remarks:"Remarks:",billedBy:"Billed by:",billedDate:"Bill Date:",spacer:"__________________________________________"},messages:{whereConducted:"were deducted during my confinement"},titles:{patientMember:"Patient-Member",relContact:"Relationship/Contact no.",patients:"PATIENT'S",billingStatement:"BILLING STATEMENT"}}},procedures:{titles:{addChargeItem:"Add Charge Item",deleteChargeItem:"Delete Charge Item",editChargeItem:"Edit Charge Item",medicationUsed:"Medication Used",deleteMedicationUsed:"Delete Medication Used",addMedicationUsed:"Add Medication Used",editMedicationUsed:"Edit Medication Used",edit:"Edit Procedure",saved:"Procedure Saved",new:"New Procedure"},labels:{medicationUsed:"Medication Used"},messages:{deleteMedication:"Are you sure you want to delete this medication?",delete:"Are you sure you wish to delete this procedure?",saved:"The procedure record has been saved."},buttons:{addMedication:"Add Medication"}},reports:{titles:{saved:"Report saved",opdTitle:"OPD Report",dischargeReport:"Discharge Report"},form:{visitDate:"Date of Visit",admissionDate:"Admission Date",dischargeDate:"Discharge Date",notes:{title:"Notes",date:"Date",author:"Author"},primaryDiagnosis:"Primary Diagnosis",secondaryDiagnosis:"Secondary Diagnosis",procedures:"Procedures",allProcedures:"All Procedures Performed",labs:"Labs",images:"Images",medications:"Medications",nextAppointment:"Next Appointment",nextAppointments:"Next Appointments",operativePlan:{title:"Operative Plan",description:"Operation Description",procedures:"Planned Procedures",instructions:"Instructions upon Admission"},completedBy:"Completed By"},opd:{titles:{new:"New OPD Report",edit:"Edit OPD Report"}},discharge:{titles:{new:"New Discharge Report",edit:"Edit Discharge Report"}},messages:{delete:"Are you sure you wish to delete this report?",saved:"The report has been saved."}},components:{chargesByTypeTab:{charges:"charges"},customFormManager:{buttons:{addForm:"Add Form"}},sortableColumn:{labels:{selectAll:"(Select All)"}},imageUpload:{messages:{selectValidImageFile:"Please select a valid image file."}},dateTimePicker:{amHour:"{{hour}} AM",midnight:"Midnight",noon:"Noon",pmHour:"{{hour}} PM"},takePhoto:{how:"How Do You Want To Add A Photo?",takePhoto:"Take photo",uploadFile:"Upload File",camera:"Camera",photo:"photo",preview:"preview",labels:{takeAPicture:"Take a Picture",uploadAFile:"Upload a File"}},quantityConv:{unit:"Unit",conversion:"What does 1 {{name}} contain?"},quantityCalc:{result:"{{targetUnit}} total: {{calculated}}"},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"},operativeProcedures:{buttons:{addProcedure:"Add Procedure"},labels:{procedure:"Procedure"},titles:{procedures:"Procedures"}},upcomingAppointments:{labels:{date:"Date",with:"With",location:"Location",type:"Type"},titles:{upcomingAppointments:"Upcoming Appointments"}}},customForms:{buttons:{addForm:"Add Form"},labels:{formToAdd:"Form To Add"},titles:{addCustomForm:"Add Custom Form"}},diagnosis:{labels:{activeDiagnosis:"Active Diagnosis",date:"Date",diagnosis:"Diagnosis",secondaryDiagnosis:"Secondary Diagnosis"},titles:{addDiagnosis:"Add Diagnosis",editDiagnosis:"Edit Diagnosis"}},allergies:{buttons:{addAllergy:"Add Allergy"},titles:{addAllergy:"Add Allergy",editAllergy:"Edit Allergy"},labels:{allergyName:"Name",patientAllergy:"Patient Allergies"}},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:{planSaved:"The operative plan has been saved.",planCompleted:"The operative plan has been completed. You will now be directed to the operation report."},titles:{editTitle:"Edit Operative Plan",newTitle:"New Operative Plan",planCompleted:"Plan Completed",planSaved:"Plan Saved"}},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"}},application:{messages:{sessionExpired:"Your session has expired. Please login to continue."},titles:{sessionExpired:"Session Expired"}},models:{appointment:{labels:{status:"First Name",appointmentType:"Type",provider:"With",location:"Location",patient:"Patient",startDate:"Start Date",endDate:"End Date",allDay:"All Day",type:"Type",notes:"Notes",appointmentDate:"Date"}},patient:{labels:{name:"Name"},names:{singular:"Patient"}}}}}),define("hospitalrun/locales/es-co/translations",["exports"],function(e){e.default={dashboard:{title:"Que deseas hacer?"},navigation:{imaging:"Radiografia",inventory:"Inventario",patients:"Pacientes",appointments:"Citas",medication:"Recetas medicas",labs:"Laboratorio",billing:"Facturas",administration:"Administracion",subnav:{requests:"Pedidos",items:"Items",completed:"Completado",newRequest:"New pedido",inventoryReceived:"Inventario recibido",reports:"Reportes",patientListing:"Lista de pacientes",newPatient:"Nuevo paciente",thisWeek:"Esta semana",today:"Hoy",search:"Buscar",addAppointment:"Nueva cita",dispense:"Dispense",returnMedication:"Devolver medicamento",invoices:"Facturas",newInvoice:"Nueva factura",prices:"Precios",priceProfiles:"Perfil de precios",lookupLists:"Lista de busuedas",addressFields:"Campos de dirección",loadDb:"Cargar base de datos",users:"Usuarios",newUser:"Nuevo usuario",userRoles:"Roles"},actions:{logout:"Salir",login:"Ingresar"},about:"Información de HospitalRun"},user:{plusNewUser:"+ nuevo usuario",usersPageTile:"Listado de usuarios"},admin:{addressOptions:"Opciones de direcciones",lookupLists:"Lista de busqueda",loadDb:"Cargar Base de datos",userRoles:"Roles",users:"Usuarios",address:{address1Label:"Texto direccion 1",address2Label:"Texto direccion 2",address3Label:"Texto direccion 3",address4Label:"Texto direccion 4",include1Label:"Incluir 1",include2Label:"Incluir 2",include3Label:"Incluir 3",include4Label:"Incluir 4",titles:{optionsSaved:"Opciones guardadas"},messages:{addressSaved:"las opciones de dirección han sido guardadas"},newTitle:"Opciones de dirección",editTitle:"Opciones de dirección",addressLabel:"Direcciones"},loaddb:{progressMessage:"Por favor espere mientras la base de datos es cargada.",progressTitle:"Cargando ase de datos",displayAlertTitle:"Seleccione un archivo para cargar",displayAlertMessage:"Por favor seleccione un archivo para ser cargado.",errorDisplayAlertTitle:"Error cargando",errorDisplayAlertMessage:"La base de datos no fue cargada el error fue: {{error}}",editTitle:"Cargar bd"},lookup:{alertImportListTitle:"Seleccione un archivo para importar",alertImportListMessage:"Por favor seleccione un archivo para importar.",alertImportListSaveTitle:"Lista importada",alertImportListSaveMessage:"Lista de busqueda importada.",alertImportListUpdateTitle:"Lista salvada",alertImportListUpdateMessage:"La lista de busqueda ha sido salvada.",pageTitle:"Listas de busqueda",edit:{template:{addTitle:"Adicionar valor",editTitle:"Editar valor",updateButtonTextAdd:"Adicionar",updateButtonTextUpdate:"Actualizar",labelTitle:"Valor"}},anesthesiaTypes:"Tipos de anestesia",anesthesiologists:"Anestesiologo",billingCategories:"Categorias de facturacion",clinicList:"Ubicacion de las clinicas",countryList:"Paises",diagnosisList:"Diagnosticos",cptCodeList:"Codigos CPT",expenseAccountList:"Cuentas de gastos",aisleLocationList:"Ubicacion de inventario de pasillo",warehouseList:"Ubicacciones de inventarios",inventoryTypes:"Tipos de inventarios",imagingPricingTypes:"Tipos de precios de radiografias",labPricingTypes:"Precios de laboratorio",patientStatusList:"Lista de estado de pacientes",physicianList:"Medicos",procedureList:"Procedimientos",procedureLocations:"Ubicacion de los procedimientos",procedurePricingTypes:"Tipos de procedimientos y precios",radiologists:"Radiologo",unitTypes:"Tipos de unidad",vendorList:"Proveedor",visitLocationList:"Lugares de visista",visitTypes:"Tipos de visita",wardPricingTypes:"Tipos de las tarifas"},roles:{capability:{admin:"Administracion",loadDb:"Cargar base de datos",updateConfig:"Actualizar configuracion",appointments:"Citas",addAppointment:"Adicionar cita",billing:"Facturacion",addCharge:"Adicionar cargo (valor)",addPricing:"Adicionar precio",addPricingProfile:"Adicionar perfil de precios",addInvoice:"Adicionar factura",addPayment:"Adicionar pago",deleteInvoice:"Eliminar factura",deletePricing:"Eliminar precio",deletePricingProfile:"Eliminar perfil de precio",editInvoice:"Editar factura",invoices:"Facturas",overrideInvoice:"Sobreescribir factura",pricing:"Precio",patients:"Pacientes",addDiagnosis:"Adicionar diagnostico",addPhoto:"Adicionar foto",addPatient:"Adicionar paciente",addVisit:"Adicionar visita",addVitals:"Adicionar partes vitales",admitPatient:"Admitir paciente",deletePhoto:"Eliminar foto",deletePatient:"Eliminar paciente",deleteAppointment:"Eliminar cita",deleteDiagnosis:"Eliminar diagnostico",deleteProcedure:"Eliminar procedimiento",deleteSocialwork:"Eliminar trabajo social",deleteVitals:"Eliminar organo vital",deleteVisit:"Eliminar visita",dischargePatient:"Descartar paciente",patientReports:"Reportes por paciente",visits:"Visitas",medication:"Medicación",addMedication:"Adicionar medicación",deleteMedication:"Eliminar medicación",fulfillMedication:"Cumplir la medicación",labs:"Laboratorios",addLab:"Adicionar laboratorio",completeLab:"Completar laboratorio",deleteLab:"Eliminar laboratorio",imaging:"Radiografia",addImaging:"Adicionar radiografia",completeImaging:"Completar radiografia",deleteImaging:"Eliminar radiografia",inventory:"Inventario",addInventoryRequest:"Pedido de inventario",addInventoryItem:"Adicionar elemento al inventario",addInventoryPurchase:"Adicionar compra",adjustInventoryLocation:"Ajustar lugar elemento en el inventario",deleteInventoryItem:"Eliminar elemento del inventario",deleteInventoryPurchase:"Eliminar compra del inventario",fulfillInventory:"Cumplimiento de inventario",defineUserRoles:"Roles de usuario"},messages:{roleSaved:"El {{roleName}} rol ha sido salvado."},titles:{roleSaved:"Role salvado"}}},labels:{cptcode:"Codigo CPT",loading:"Cargando",name:"Nombre",patient:"Paciente",quantity:"Cantidada",requestedOn:"Pedido On",date:"Fecha",dateOfBirth:"Fecha de nacimiento",dateOfBirthShort:"FDN",dateRequested:"Fecha de pedido",dateCompleted:"Fecha completada",description:"Descripción",requestedBy:"Pedido por|",fulfill:"Cumplomiento",fulfillRequest:"Pedido de cumplimiento",fulfillRequestNow:"Pedido de cumplimiento ahora",actions:"Acciones",action:"Accion",notes:"Notas",edit:"Editar",imageOrders:"Ordenes de radiografias",labOrders:"Ordenes de laboratorio",imagingType:"Tipo de radiografia",result:"Resultado",results:"Resultados",visit:"Visita",requests:"Pedido",completed:"Completado",id:"Id",on:"on",type:"Tipo",sex:"Genero",age:"Edad",username:"Nombre de usuario",email:"Email",role:"Rol",delete:"Eliminar",userCanAddNewValue:"Los usuarios pueden agregar nuevos valores",value:"Valor",lookupType:"Tipo de busqueda",importFile:"Importar archivo",fileLoadSuccessful:"Archivo cargado exitosamente",fileToLoad:"Archivo cargado",startTime:"Hora de inicio",startDate:"Fecha de inicio",endTime:"Hora de finalización",endDate:"Fecha final",docRead:"Leer documento",docWritten:"Documento escrito",displayName:"Nombre para mostrar",password:"Contraseña",editUser:"Editar usuario",newUser:"Nuevo usuario",deleteUser:"Eliminar usuario",medication:"Medicación",status:"Estado",addNewOutpatientVisit:"--Nueva visita a paciente externo--",prescription:"Receta medica",prescriptionDate:"Fecha de la receta medica",billTo:"Facturar a",pullFrom:"Traer de",fulfilled:"Cumplido",deleteRequest:"Eliminar pedido",location:"Ubicacion",provider:"Proveedor",with:"con",allDay:"Todo el dia",physician:"Médico",assisting:"Asistencia",anesthesia:"Anestesia",procedures:"Procedimiento"},messages:{noItemsFound:"Elementos no encontrados.",noHistoryAvailable:"Historia no disponible.",createNewRecord:"Crear un nuevo registro?",createNewUser:"Crear un nuevo usuario?",noUsersFound:"Ningun usuario encontrado.",areYouSureDelete:"Estas seguro de eliminar este usuario {{user}}?",userHasBeenSaved:"El usuario ha sido salvado.",userSaved:"Usuario salvado",onBehalfOf:"a nombre de",newPatientHasToBeCreated:"Un nuevo paciente debe ser creado...Por favor espere..",noNotesAvailable:"No hay notas clínicas adicionales están disponibles para esta visita.",sorry:"Lo sentimos, un error ha ocurrido...",forAuthorizedPersons:"Este informe es sólo para personas autorizadas."},alerts:{pleaseWait:"Por favor espere"},buttons:{complete:"Completado",cancel:"Cancelar",close:"Cerrar",returnButton:"Regresar",barcode:"Codigo de barras",add:"Adicionar",update:"Actualizar",ok:"Ok",fulfill:"Cumplimiento",remove:"Remover",delete:"Eliminar",newUser:"Nuevo usuario",addValue:"Adicionar valor",newNote:"Nueva nota",import:"Importar",loadFile:"Cargar archivo",newRequest:"Nueva solicitud",allRequests:"Todas las solicitudes",dispense:"Repartir",newItem:"+ nuevo elemento",newRequestPlus:"+ nuevo pedido",addVisit:"Adicionar visita",search:"Buscar"},login:{messages:{signIn:"por favor ingrese",error:"Nombre de usuario o clave incorrectos."},labels:{password:"Clave",username:"Nombre de usuario",signIn:"Ingresar"}},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",adjust:"Adjustar",adjustmentDate:"Fecha de ajuste",adjustmentFor:"Ajustado para",adjustmentType:"Tipo de ajuste",aisle:"Pasillo",aisleLocation:"Ubicación pasillo",allInventory:"Todo el inventario",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",dateStart:"Fecha inicial",dateReceived:"Fecha recibido",dateTransferred:"Fecha transferencia",daysLeft:"Dias restantes",deliveryAisle:"Enviado a pasillo",deliveryLocation:"Ubicación del envio",distributionUnit:"Unidad de distribución",deleteItem:"Eliminar elemento",details:"Detalles",editItem:"Editar elemento",expense:"Gastos a",expirationDate:"Fecha de vencimiento",fulfillRequest:"Pedido de cumplimiento",fulfillRequestNow:"Pedido de incumplimiento para hoy",gift:"Regalo en especie",giftUsage:"Uso del regalo en especie",giftInKindNo:"N",giftInKindYes:"Y",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",items:"Elementos",itemNumber:"Numero de elemento",location:"Ubicación",locations:"Ubicaciones",name:"Nombre",markAsConsumed:"Marcar como consumido",newItem:"Nuevo elemento",originalQuantity:"Cantidad original",print:"Imprimir",printBarcode:"Imprimir codigo de barras",printer:"Impresora",pullFrom:"Traido de",purchases:"Compras",purchaseCost:"Costo de compra",purchaseInfo:"Informacion de la compra",quantity:"Cantidad ({{unit}})",quantityAvailable:"Cantidad disponible",quantityOnHand:"Cantidad a la mano",quantityRequested:"Cantidad pedida",rank:"Ranking",reason:"Razón",remove:"Remover",reorderPoint:"Reordenar punto",requestedItems:"Elementos solicitados",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",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?",delete:"Estas seguro de eliminar {{name}}?",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 ...",purchaseSaved:"La compra de inventario ha sido salvada.",noRequests:"No se encontraron pedidos.",noItems:"No se encontraron elementos.",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:{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}}"},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",stockTransferDetail:"Detalle de traslado de stock",stockTransferSum:"Resumen traslado de stock",stockUsageDetail:"Detalle de uso de stock",stockUsageSum:"Resumen uso de stock"},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!!!!!"}},imaging:{pageTitle:"Pedido de radriografia",sectionTitle:"Radiografias",buttons:{newButton:"+ new radiografia"},labels:{radiologist:"Radiologo",addNewVisit:"--Adicionar nueva visita--"},messages:{noCompleted:"No de items encontrados."},titles:{completedImaging:"Radiografia completada",editTitle:"Pedido de edicion de radiografia",newTitle:"Nuevo pedido de radiografia"},alerts:{completedTitle:"Pedido de radiografia completado",completedMessage:"El pedido de radiografia ha sido completado.",savedTitle:"Pedido de radiografia salvado",savedMessage:"El pedido de radiografia ha sido guardado."}},medication:{pageTitle:"Pedido de medicación",sectionTitle:"Medication",returnMedication:"Retorno de medicación",buttons:{dispenseMedication:"dispensar medicación",newButton:"+ nuevo pedido",returnMedication:"debolver medicacion"},titles:{completedMedication:"Medicacion completada",editMedicationRequest:"Editar pedido de medicacion",newMedicationRequest:"Nuevo pedido de medicacion"},messages:{createNew:"Crear un nuevo pedido de medicacion?",confirmDeletion:"Estas seguro de eliminar este pedido de medicación?"},labels:{refills:"Recargas",quantityRequested:"Cantidad solicitada",quantityDispensed:"Cantidad dispensada",quantityDistributed:"Cantidad distribuida",quantityToReturn:"Cantidad a devolver",returnLocation:"Retornar a ubicación",returnAisle:"Devolve a pasillo",returnReason:"Razon por la que se devuelve/Nota",adjustmentDate:"Fecha de ajuste",creditToAccount:"Credito a cuenta"},alerts:{returnedTitle:"Medicacion devuelta",returnedMessage:"La medicacion ha sido marcada para devolver.",savedTitle:"Pedido de medicacion guardado",savedMessage:"La elemento de medicación ha sido guardado.",fulfilledTitle:"Pedido de medicación cumplido"}},appointments:{currentScreenTitle:"Listado de citas",editTitle:"Editar cita",newTitle:"Nueva cita",sectionTitle:"Citas",thisWeek:"Citas esta semana",missed:"Citas perdidas",searchTitle:"Buscar citas",todayTitle:"Citas para hoy",messages:{deleteAppointmentMessage:"Esta seguro de eliminar esta cita?",endTimeLaterThanStart:"Seleccione una hora de finalizacion despues de la de inicio."},buttons:{newButton:"+ nueva cita"}},visits:{edit:{buttons:{newAppointment:"Nuevas citas",addDiagnosis:"Adicionar diagnostico",newProcedure:"Nuevo procedimiento",newLab:"New laboratorio",newMedication:"Nueva mediicación",newImaging:"Nueva radiografia"},labels:{diagnosis:"Diagnostico",procedure:"Procedimiento",authoredBy:"Escrito por",labs:"Laboratorios",imaging:"Radiografias",visitInformation:"Informacion de visita"}}},labs:{sectionTitle:"Laboratorios",requestsTitle:"Pedido de laboratorio",editTitle:"Editar pedido de laboratorio",newTitle:"Nuevo pedido de laboratorio",deleteTitle:"Eliminar pedido",completedTitle:"Completar laboratorio",labels:{labType:"Tipo de laboratorio",addNewVisit:"--Adicionar nueva visita--"},messages:{noItemsFound:"No boratorios encontrados.",createNewRecord:"Crear un registro?",confirmDeletion:"Esta seguro de eliminar esta solicitud de laboratorio?",noCompleted:"No elementos completados encontrados."},buttons:{newButton:"+ nuevo laboratorio"},alerts:{requestCompletedTitle:"Pedido de laboratorio competado", -requestCompletedMessage:"El pedido de laboratorio ha sido completado.",requestSavedTitle:"Silicitud de laboratorio guardado",requestSavedMessage:"El pedido de laboratorio ha sido guardado."}},common:{actions:"Acciones"},patients:{notes:{onBehalfOfLabel:"A nombre de",onBehalfOfCopy:"a nombre de",pleaseSelectAVisit:"Por favor seleccione una visista",noteLabel:"Nota"}}}}),define("hospitalrun/locales/es/translations",["exports"],function(e){e.default={dashboard:{title:"Que deseas hacer?"},navigation:{imaging:"Radiografia",inventory:"Inventario",patients:"Pacientes",appointments:"Citas",medication:"Recetas medicas",labs:"Laboratorio",billing:"Facturas",administration:"Administracion",subnav:{requests:"Pedidos",items:"Items",completed:"Completado",newRequest:"New pedido",inventoryReceived:"Inventario recibido",reports:"Reportes",patientListing:"Lista de pacientes",newPatient:"Nuevo paciente",thisWeek:"Esta semana",today:"Hoy",search:"Buscar",addAppointment:"Nueva cita",dispense:"Dispense",returnMedication:"Devolver medicamento",invoices:"Facturas",newInvoice:"Nueva factura",prices:"Precios",priceProfiles:"Perfil de precios",lookupLists:"Lista de busuedas",addressFields:"Campos de dirección",loadDb:"Cargar base de datos",users:"Usuarios",newUser:"Nuevo usuario",userRoles:"Roles"},actions:{logout:"Salir",login:"Ingresar"},about:"Información de HospitalRun"},user:{plusNewUser:"+ nuevo usuario",usersPageTile:"Listado de usuarios"},admin:{addressOptions:"Opciones de direcciones",lookupLists:"Lista de busqueda",loadDb:"Cargar Base de datos",userRoles:"Roles",users:"Usuarios",address:{address1Label:"Texto direccion 1",address2Label:"Texto direccion 2",address3Label:"Texto direccion 3",address4Label:"Texto direccion 4",include1Label:"Incluir 1",include2Label:"Incluir 2",include3Label:"Incluir 3",include4Label:"Incluir 4",titles:{optionsSaved:"Opciones guardadas"},messages:{addressSaved:"las opciones de dirección han sido guardadas"},newTitle:"Opciones de dirección",editTitle:"Opciones de dirección",addressLabel:"Direcciones"},loaddb:{progressMessage:"Por favor espere mientras la base de datos es cargada.",progressTitle:"Cargando ase de datos",displayAlertTitle:"Seleccione un archivo para cargar",displayAlertMessage:"Por favor seleccione un archivo para ser cargado.",errorDisplayAlertTitle:"Error cargando",errorDisplayAlertMessage:"La base de datos no fue cargada el error fue: {{error}}",editTitle:"Cargar bd"},lookup:{alertImportListTitle:"Seleccione un archivo para importar",alertImportListMessage:"Por favor seleccione un archivo para importar.",alertImportListSaveTitle:"Lista importada",alertImportListSaveMessage:"Lista de busqueda importada.",alertImportListUpdateTitle:"Lista salvada",alertImportListUpdateMessage:"La lista de busqueda ha sido salvada.",pageTitle:"Listas de busqueda",edit:{template:{addTitle:"Adicionar valor",editTitle:"Editar valor",updateButtonTextAdd:"Adicionar",updateButtonTextUpdate:"Actualizar",labelTitle:"Valor"}},anesthesiaTypes:"Tipos de anestesia",anesthesiologists:"Anestesiologo",billingCategories:"Categorias de facturacion",clinicList:"Ubicacion de las clinicas",countryList:"Paises",diagnosisList:"Diagnosticos",cptCodeList:"Codigos CPT",expenseAccountList:"Cuentas de gastos",aisleLocationList:"Ubicacion de inventario de pasillo",warehouseList:"Ubicacciones de inventarios",inventoryTypes:"Tipos de inventarios",imagingPricingTypes:"Tipos de precios de radiografias",labPricingTypes:"Precios de laboratorio",patientStatusList:"Lista de estado de pacientes",physicianList:"Medicos",procedureList:"Procedimientos",procedureLocations:"Ubicacion de los procedimientos",procedurePricingTypes:"Tipos de procedimientos y precios",radiologists:"Radiologo",unitTypes:"Tipos de unidad",vendorList:"Proveedor",visitLocationList:"Lugares de visista",visitTypes:"Tipos de visita",wardPricingTypes:"Tipos de las tarifas"},roles:{capability:{admin:"Administracion",loadDb:"Cargar base de datos",updateConfig:"Actualizar configuracion",appointments:"Citas",addAppointment:"Adicionar cita",billing:"Facturacion",addCharge:"Adicionar cargo (valor)",addPricing:"Adicionar precio",addPricingProfile:"Adicionar perfil de precios",addInvoice:"Adicionar factura",addPayment:"Adicionar pago",deleteInvoice:"Eliminar factura",deletePricing:"Eliminar precio",deletePricingProfile:"Eliminar perfil de precio",editInvoice:"Editar factura",invoices:"Facturas",overrideInvoice:"Sobreescribir factura",pricing:"Precio",patients:"Pacientes",addDiagnosis:"Adicionar diagnostico",addPhoto:"Adicionar foto",addPatient:"Adicionar paciente",addVisit:"Adicionar visita",addVitals:"Adicionar partes vitales",admitPatient:"Admitir paciente",deletePhoto:"Eliminar foto",deletePatient:"Eliminar paciente",deleteAppointment:"Eliminar cita",deleteDiagnosis:"Eliminar diagnostico",deleteProcedure:"Eliminar procedimiento",deleteSocialwork:"Eliminar trabajo social",deleteVitals:"Eliminar organo vital",deleteVisit:"Eliminar visita",dischargePatient:"Descartar paciente",patientReports:"Reportes por paciente",visits:"Visitas",medication:"Medicación",addMedication:"Adicionar medicación",deleteMedication:"Eliminar medicación",fulfillMedication:"Cumplir la medicación",labs:"Laboratorios",addLab:"Adicionar laboratorio",completeLab:"Completar laboratorio",deleteLab:"Eliminar laboratorio",imaging:"Radiografia",addImaging:"Adicionar radiografia",completeImaging:"Completar radiografia",deleteImaging:"Eliminar radiografia",inventory:"Inventario",addInventoryRequest:"Pedido de inventario",addInventoryItem:"Adicionar elemento al inventario",addInventoryPurchase:"Adicionar compra",adjustInventoryLocation:"Ajustar lugar elemento en el inventario",deleteInventoryItem:"Eliminar elemento del inventario",deleteInventoryPurchase:"Eliminar compra del inventario",fulfillInventory:"Cumplimiento de inventario",defineUserRoles:"Roles de usuario"},messages:{roleSaved:"El {{roleName}} rol ha sido salvado."},titles:{roleSaved:"Role salvado"}}},labels:{cptcode:"Codigo CPT",loading:"Cargando",name:"Nombre",patient:"Paciente",quantity:"Cantidada",requestedOn:"Pedido On",date:"Fecha",dateOfBirth:"Fecha de nacimiento",dateOfBirthShort:"FDN",dateRequested:"Fecha de pedido",dateCompleted:"Fecha completada",description:"Descripción",requestedBy:"Pedido por|",fulfill:"Cumplomiento",fulfillRequest:"Pedido de cumplimiento",fulfillRequestNow:"Pedido de cumplimiento ahora",actions:"Acciones",action:"Accion",notes:"Notas",edit:"Editar",imageOrders:"Ordenes de radiografias",labOrders:"Ordenes de laboratorio",imagingType:"Tipo de radiografia",result:"Resultado",results:"Resultados",visit:"Visita",requests:"Pedido",completed:"Completado",id:"Id",on:"on",type:"Tipo",sex:"Genero",age:"Edad",username:"Nombre de usuario",email:"Email",role:"Rol",delete:"Eliminar",userCanAddNewValue:"Los usuarios pueden agregar nuevos valores",value:"Valor",lookupType:"Tipo de busqueda",importFile:"Importar archivo",fileLoadSuccessful:"Archivo cargado exitosamente",fileToLoad:"Archivo cargado",startTime:"Hora de inicio",startDate:"Fecha de inicio",endTime:"Hora de finalización",endDate:"Fecha final",docRead:"Leer documento",docWritten:"Documento escrito",displayName:"Nombre para mostrar",password:"Contraseña",editUser:"Editar usuario",newUser:"Nuevo usuario",deleteUser:"Eliminar usuario",medication:"Medicación",status:"Estado",addNewOutpatientVisit:"--Nueva visita a paciente externo--",prescription:"Receta medica",prescriptionDate:"Fecha de la receta medica",billTo:"Facturar a",pullFrom:"Traer de",fulfilled:"Cumplido",deleteRequest:"Eliminar pedido",location:"Ubicacion",provider:"Proveedor",with:"con",allDay:"Todo el dia",physician:"Médico",assisting:"Asistencia",anesthesia:"Anestesia",procedures:"Procedimiento"},messages:{noItemsFound:"Elementos no encontrados.",noHistoryAvailable:"Historia no disponible.",createNewRecord:"Crear un nuevo registro?",createNewUser:"Crear un nuevo usuario?",noUsersFound:"Ningun usuario encontrado.",areYouSureDelete:"Estas seguro de eliminar este usuario {{user}}?",userHasBeenSaved:"El usuario ha sido salvado.",userSaved:"Usuario salvado",onBehalfOf:"a nombre de",newPatientHasToBeCreated:"Un nuevo paciente debe ser creado...Por favor espere..",noNotesAvailable:"No hay notas clínicas adicionales están disponibles para esta visita.",sorry:"Lo sentimos, un error ha ocurrido...",forAuthorizedPersons:"Este informe es sólo para personas autorizadas."},alerts:{pleaseWait:"Por favor espere"},buttons:{complete:"Completado",cancel:"Cancelar",close:"Cerrar",returnButton:"Regresar",barcode:"Codigo de barras",add:"Adicionar",update:"Actualizar",ok:"Ok",fulfill:"Cumplimiento",remove:"Remover",delete:"Eliminar",newUser:"Nuevo usuario",addValue:"Adicionar valor",newNote:"Nueva nota",import:"Importar",loadFile:"Cargar archivo",newRequest:"Nueva solicitud",allRequests:"Todas las solicitudes",dispense:"Repartir",newItem:"+ nuevo elemento",newRequestPlus:"+ nuevo pedido",addVisit:"Adicionar visita",search:"Buscar"},login:{messages:{signIn:"por favor ingrese",error:"Nombre de usuario o clave incorrectos."},labels:{password:"Clave",username:"Nombre de usuario",signIn:"Ingresar"}},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",adjust:"Adjustar",adjustmentDate:"Fecha de ajuste",adjustmentFor:"Ajustado para",adjustmentType:"Tipo de ajuste",aisle:"Pasillo",aisleLocation:"Ubicación pasillo",allInventory:"Todo el inventario",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",dateStart:"Fecha inicial",dateReceived:"Fecha recibido",dateTranferred:"Fecha transferencia",daysLeft:"Dias restantes",deliveryAisle:"Enviado a pasillo",deliveryLocation:"Ubicación del envio",distributionUnit:"Unidad de distribución",deleteItem:"Eliminar elemento",details:"Detalles",editItem:"Editar elemento",expense:"Gastos a",expirationDate:"Fecha de vencimiento",fulfillRequest:"Pedido de cumplimiento",fulfillRequestNow:"Pedido de incumplimiento para hoy",gift:"Regalo en especie",giftUsage:"Uso del regalo en especie",giftInKindNo:"N",giftInKindYes:"Y",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",items:"Elementos",itemNumber:"Numero de elemento",location:"Ubicación",locations:"Ubicaciones",name:"Nombre",markAsConsumed:"Marcar como consumido",newItem:"Nuevo elemento",originalQuantity:"Cantidad original",print:"Imprimir",printBarcode:"Imprimir codigo de barras",printer:"Impresora",pullFrom:"Traido de",purchases:"Compras",purchaseCost:"Costo de compra",purchaseInfo:"Informacion de la compra",quantity:"Cantidad ({{unit}})",quantityAvailable:"Cantidad disponible",quantityOnHand:"Cantidad a la mano",quantityRequested:"Cantidad pedida",rank:"Ranking",reason:"Razón",remove:"Remover",reorderPoint:"Reordenar punto",requestedItems:"Elementos solicitados",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",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?",delete:"Estas seguro de eliminar {{name}}?",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 ...",purchaseSaved:"La compra de inventario ha sido salvada.",noRequests:"No se encontraron pedidos.",noItems:"No se encontraron elementos.",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:{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}}"},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",stockTransferDetail:"Detalle de traslado de stock",stockTransferSum:"Resumen traslado de stock",stockUsageDetail:"Detalle de uso de stock",stockUsageSum:"Resumen uso de stock"},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!!!!!"}},imaging:{pageTitle:"Pedido de radriografia",sectionTitle:"Radiografias",buttons:{newButton:"+ new radiografia"},labels:{radiologist:"Radiologo",addNewVisit:"--Adicionar nueva visita--"},messages:{noCompleted:"No de items encontrados."},titles:{completedImaging:"Radiografia completada",editTitle:"Pedido de edicion de radiografia",newTitle:"Nuevo pedido de radiografia"},alerts:{completedTitle:"Pedido de radiografia completado",completedMessage:"El pedido de radiografia ha sido completado.",savedTitle:"Pedido de radiografia salvado",savedMessage:"El pedido de radiografia ha sido guardado."}},medication:{pageTitle:"Pedido de medicación",sectionTitle:"Medication",returnMedication:"Retorno de medicación",buttons:{dispenseMedication:"dispensar medicación",newButton:"+ nuevo pedido",returnMedication:"debolver medicacion"},titles:{completedMedication:"Medicacion completada",editMedicationRequest:"Editar pedido de medicacion",newMedicationRequest:"Nuevo pedido de medicacion"},messages:{createNew:"Crear un nuevo pedido de medicacion?",confirmDeletion:"Estas seguro de eliminar este pedido de medicación?"},labels:{refills:"Recargas",quantityRequested:"Cantidad solicitada",quantityDispensed:"Cantidad dispensada",quantityDistributed:"Cantidad distribuida",quantityToReturn:"Cantidad a devolver",returnLocation:"Retornar a ubicación",returnAisle:"Devolve a pasillo",returnReason:"Razon por la que se devuelve/Nota",adjustmentDate:"Fecha de ajuste",creditToAccount:"Credito a cuenta"},alerts:{returnedTitle:"Medicacion devuelta",returnedMessage:"La medicacion ha sido marcada para devolver.",savedTitle:"Pedido de medicacion guardado",savedMessage:"La elemento de medicación ha sido guardado.",fulfilledTitle:"Pedido de medicación cumplido"}},appointments:{currentScreenTitle:"Listado de citas",editTitle:"Editar cita",newTitle:"Nueva cita",sectionTitle:"Citas",thisWeek:"Citas esta semana",missed:"Citas perdidas",searchTitle:"Buscar citas",todayTitle:"Citas para hoy",messages:{deleteAppointmentMessage:"Esta seguro de eliminar esta cita?",endTimeLaterThanStart:"Seleccione una hora de finalizacion despues de la de inicio."},buttons:{newButton:"+ nueva cita"}},visits:{edit:{buttons:{newAppointment:"Nuevas citas",addDiagnosis:"Adicionar diagnostico",newProcedure:"Nuevo procedimiento",newLab:"New laboratorio",newMedication:"Nueva mediicación",newImaging:"Nueva radiografia"},labels:{diagnosis:"Diagnostico",procedure:"Procedimiento",authoredBy:"Escrito por",labs:"Laboratorios",imaging:"Radiografias",visitInformation:"Informacion de visita"}}},labs:{sectionTitle:"Laboratorios",requestsTitle:"Pedido de laboratorio",editTitle:"Editar pedido de laboratorio",newTitle:"Nuevo pedido de laboratorio",deleteTitle:"Eliminar pedido",completedTitle:"Completar laboratorio",labels:{labType:"Tipo de laboratorio",addNewVisit:"--Adicionar nueva visita--"},messages:{noItemsFound:"No boratorios encontrados.",createNewRecord:"Crear un registro?",confirmDeletion:"Esta seguro de eliminar esta solicitud de laboratorio?",noCompleted:"No elementos completados encontrados."},buttons:{newButton:"+ nuevo laboratorio"},alerts:{requestCompletedTitle:"Pedido de laboratorio competado",requestCompletedMessage:"El pedido de laboratorio ha sido completado.",requestSavedTitle:"Silicitud de laboratorio guardado",requestSavedMessage:"El pedido de laboratorio ha sido guardado."}},common:{actions:"Acciones"},patients:{notes:{onBehalfOfLabel:"A nombre de",onBehalfOfCopy:"a nombre de",pleaseSelectAVisit:"Por favor seleccione una visista",noteLabel:"Nota"}}}}),define("hospitalrun/locales/fr/translations",["exports"],function(e){e.default={dashboard:{title:"Que voulez-vous faire?"},navigation:{imaging:"Imagerie",inventory:"Inventaire",patients:"Patients",appointments:"Rendez-vous",medication:"Médicament",labs:"Labos",billing:"Facturation",administration:"Administration",subnav:{requests:"Demandes",items:"Articles",completed:"Traité",newRequest:"Nouvelle demande",inventoryReceived:"Inventaire reçu",reports:"Rapports",patientListing:"Liste des patients",newPatient:"Nouveau patient",thisWeek:"Cette semaine",today:"Aujourd'hui",search:"Rechercher",addAppointment:"Ajouter un rendez-vous",dispense:"Dispenser",returnMedication:"Retourner un Médicament",invoices:"Factures",newInvoice:"Nouvelle facture",prices:"Prix",priceProfiles:"Profils de prix",lookupLists:"Listes de référence",addressFields:"Champs d'adresse",loadDb:"Importer une BD",users:"Utilisateurs",newUser:"Nouvel utilisateur",admittedPatients:"patients admis",missed:"Manqué",userRoles:"Rôles de l'utilisateur"},actions:{logout:"Deconnexion",login:"Connexion"},about:"À propos de HospitalRun"},user:{plusNewUser:"+ nouvel utilisateur",usersPageTile:"Liste des Utilisateurs"},admin:{addressOptions:"Options d'adresse",lookupLists:"Listes de référence",loadDb:"Importer une BD",users:"Utilisateurs",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",include1Label:"Label de l'include 1",include2Label:"Label de l'include 2",include3Label:"Label de l'include 3",include4Label:"Label de l'include 4",titles:{optionsSaved:"Options enregistrées"},messages:{addressSaved:"Les options d'adresse ont été enregistrées"},newTitle:"Options d'adresse",editTitle:"Options d'adresse",addressLabel:"Adresse"},loaddb:{progressMessage:"Veuillez patienter durant le chargement de la base de données.",progressTitle:"Chargement de la base de données en cours",displayAlertTitle:"Sélectionner le fichier à télécharger.",displayAlertMessage:"Veuillez sélectionner le fichier à télécharger.",errorDisplayAlertTitle:"Erreur de chargement",errorDisplayAlertMessage:"La base de données ne pouvait pas être importée. L'erreur etait: {{error}}",editTitle:"Importer une BD"},lookup:{alertImportListTitle:"Sélectionner le fichier à importer",alertImportListMessage:"Veuillez sélectionner le fichier à importer.",alertImportListSaveTitle:"Liste importée",alertImportListSaveMessage:"La liste de référence a été importée.",alertImportListUpdateTitle:"Liste enregistrée",alertImportListUpdateMessage:"La liste de référence a été enregistrée.",pageTitle:"Listes de référence",edit:{template:{addTitle:"Ajouter une valeur",editTitle:"Modifier la valeur",updateButtonTextAdd:"Ajouter",updateButtonTextUpdate:"Mettre à jour",labelTitle:"Valeur"}},anesthesiaTypes:"Types d'Anesthésie",anesthesiologists:"Anesthésiologistes",billingCategories:"Catégories de facturation",clinicList:"Emplacements de la clinique",countryList:"Pays",diagnosisList:"Diagnostics",cptCodeList:"Codes CPT",expenseAccountList:"Comptes de dépense",aisleLocationList:"Emplacements de rayon d'inventaire",warehouseList:"Emplacements d'inventaire",inventoryTypes:"Types d'inventaire",imagingPricingTypes:"Types de prix d'imagerie",labPricingTypes:"Types de prix de labo",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",unitTypes:"Types d'unité",vendorList:"Fournisseur",visitLocationList:"Emplacements de visite",visitTypes:"Types de visite",wardPricingTypes:"Types de prix de service"},roles:{capability:{admin:"Administration",loadDb:"Charger la Base de données",updateConfig:"Mettre à jour les Configurations",appointments:"Rendez-vous",addAppointment:"Ajouter un Rendez-vous",billing:"Facturation",addCharge:"Ajouter une charge",addPricing:"Ajouter un Prix",addPricingProfile:"Ajouter le profil de prix",addInvoice:"Ajouter une facture",addPayment:"Ajouter un paiement",deleteInvoice:"Supprimer une facture",deletePricing:"Supprimer un Prix",deletePricingProfile:"Supprimer le profil de prix",editInvoice:"Modifier la facture",invoices:"Factures",overrideInvoice:"Remplacer la facture",pricing:"Tarification",patients:"Patients",addDiagnosis:"Ajouter un diagnostic",addPhoto:"Ajouter une photo",addPatient:"Ajouter un patient",addVisit:"Ajouter une visite",addVitals:"Ajouter les signes vitaux",admitPatient:"Admettre un patient",deletePhoto:"Supprimer une photo",deletePatient:"Supprimer un patient",deleteAppointment:"Supprimer un rendez-vous",deleteDiagnosis:"Supprimer un diagnostic",deleteProcedure:"Supprimer une procédure",deleteSocialwork:"Supprimer un travail social",deleteVitals:"Supprimer des signes vitaux",deleteVisit:"Supprimer une Visite",dischargePatient:"Liberer un patient",patientReports:"Rapports des patients",visits:"Visites",medication:"Médicament",addMedication:"Ajouter un médicament",deleteMedication:"Supprimer un médicament",fulfillMedication:"Traiter une demande de médicaments",labs:"Test Labo",addLab:"Ajouter un test labo",completeLab:"Completer un test labo",deleteLab:"Supprimer un test labo",imaging:"Imagerie",addImaging:"Ajouter une imagerie",completeImaging:"Completer une imagerie",deleteImaging:"Supprimer une Imagerie",inventory:"Inventaire",addInventoryRequest:"Ajouter une demande d'inventaire",addInventoryItem:"Ajouter un article d'inventaire",addInventoryPurchase:"Ajouter un achat d'inventaire",adjustInventoryLocation:"Ajuster la localisation de l'inventaire",deleteInventoryItem:"Supprimer un article d'inventaire",deleteInventoryPurchase:"Supprimer un achat d'inventaire",fulfillInventory:"Traiter l'inventaire",defineUserRoles:"Rôles d'utilisateur"},messages:{roleSaved:"Le rôle {{roleName}} a été enregistré."},titles:{roleSaved:"Rôle enregistré"}}},labels:{cptcode:"Code CPT",loading:"Chargement",name:"Nom",patient:"Patient",prescriber:"prescripteur",quantity:"Quantité",requestedOn:"Demandé le",date:"Date",dateOfBirth:"Date de naissance",dateOfBirthShort:"DdN",dateRequested:"Date de demande",dateCompleted:"Date de traitement",description:"Description",requestedBy:"Demandé par",fulfill:"Traiter",fulfillRequest:"Traiter la demande",fulfillRequestNow:"Traiter la demande maintenant",actions:"Actions",action:"Action",notes:"Notes",edit:"Modifier",imageOrders:"Demandes d'imagerie",labOrders:"Demandes de labo",imagingType:"Type d'imagerie",result:"Resultat",results:"Resultats",visit:"Visite",requests:"Demandes",completed:"Traité",id:"Id",on:"sur",type:"Type",sex:"Sexe",age:"Age",username:"Nom d'utilisateur",email:"Email",role:"Rôle",delete:"Supprimer",userCanAddNewValue:"Utilisateur peut ajouter de nouvelles valeurs",value:"Valeur",lookupType:"Type de référence",importFile:"Importer un fichier",fileLoadSuccessful:"Téléchargement reussi",fileToLoad:"Téléchargement de fichier",startTime:"Heure de debut",startDate:"Date de debut",endTime:"Heure de fin",endDate:"Date de fin",docRead:"Documents lus",docWritten:"Documents écrits",displayName:"Nom à afficher",password:"Mot de passe",editUser:"Modifier un utilisateur",newUser:"Nouvel utilisateur",deleteUser:"Supprimer un utilisateur",medication:"Médicament",status:"Statut",addNewOutpatientVisit:"--Ajouter une nouvelle consultation externe--",prescription:"Ordonnance",prescriptionDate:"Date de prescription",billTo:"Facturer à",pullFrom:"Tirer de",fulfilled:"Traité",deleteRequest:"Supprimer la demande",location:"Emplacement",provider:"Fournisseur",with:"Avec",allDay:"Toute la journée",physician:"Médecin",assisting:"Assistant",anesthesia:"Anesthésie",procedures:"Procédures"},messages:{noItemsFound:"Aucun article retrouvé.",noHistoryAvailable:"Aucune historique disponible.",createNewRecord:"Créer un nouveau dossier?",createNewUser:"Créer un nouvel utilisateur?",noUsersFound:"Aucun utilisateur retrouvé.",areYouSureDelete:"Êtes-vous sûr de vouloir supprimer l'utilisateur {{user}}?",userHasBeenSaved:"L'utilisateur a été enregistré.",userSaved:"Utilisateur enregistré",onBehalfOf:"de la part de",newPatientHasToBeCreated:"Un nouveau patient doit être crée...Veuillez attendre...",noNotesAvailable:"Aucune note clinique supplémentaire disponible pour cette visite.",sorry:"Désolé, quelque chose a mal tourné ...",forAuthorizedPersons:"Ce rapport est destiné uniquement aux personnes autorisées."},alerts:{pleaseWait:"Veuillez attendre"},buttons:{complete:"Traiter",cancel:"Annuler",close:"Fermer",returnButton:"Retourner",barcode:"Code barre",add:"Ajouter",update:"Mettre à jour",ok:"Ok",fulfill:"Traiter",remove:"Retirer",delete:"Supprimer",newUser:"Nouvel utilisateur",addValue:"Ajouter une valeur",newNote:"Nouvelle note",import:"Importer",loadFile:"Télécharger le fichier",newRequest:"Nouvelle demande",allRequests:"Toutes les demandes",dispense:"Dispenser",newItem:"+ nouvel article",newRequestPlus:"+ nouvelle demande",addVisit:"Ajouter une visite",search:"Rechercher"},login:{messages:{signIn:"veuillez-vous connecter",error:"Nom d'utilisateur ou mot de passe est incorrect."},labels:{password:"Mot de passe",username:"Nom d'utilisateur",signIn:"Connexion"}},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",adjust:"Ajuster",adjustmentDate:"Date d'ajustement",adjustmentFor:"Ajustement pour",adjustmentType:"Type d'ajustement",aisle:"Rayon",aisleLocation:"Emplacement du rayon",allInventory:"Toute l'inventaire",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",dateStart:"Date de debut",dateReceived:"Date de réception",dateTransferred:"Date de transfert",daysLeft:"Nombre de jours restant",deliveryAisle:"Rayon de livraison",deliveryLocation:"Emplacement de livraison",distributionUnit:"Unité de distribution",deleteItem:"Supprimer l'article",details:"Détails",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",giftUsage:"Utilisation de don en nature",giftInKindNo:"N",giftInKindYes:"O",inventoryConsumed:"Inventaire utilisé",inventoryItem:"Article à inventorier",inventoryObsolence:"Inventory Obsolence",invoiceItems:"Articles de facture",invoiceLineItem:"Article de facture",invoiceNumber:"Numero de facture",item:"Article",items:"Articles",itemNumber:"Numero d'article",location:"Emplacement",locations:"Emplacements",name:"Nom",markAsConsumed:"Marqué comme utilisé",newItem:"Nouvel article",originalQuantity:"Quantité originale",print:"Imprimer",printBarcode:"Imprimer le code barre",printer:"Imprimante",pullFrom:"Tirer de",purchases:"Achats",purchaseCost:"Coût d'achat",purchaseInfo:"Détails de l'achat",quantity:"Quantité ({{unit}})",quantityAvailable:"Quantité disponible",quantityOnHand:"Quantité en main",quantityRequested:"Quantité demandée",rank:"Rang",reason:"Motif",remove:"Retirer",reorderPoint:"Point de commande",requestedItems:"Articles demandés",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",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?",delete:"Etes-vous sûr que vous souhaitez supprimer {{name}}?",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…",purchaseSaved:"Les achats d'inventaire ont été enregistrés avec succès.",noRequests:"Aucune demande retrouvée.",noItems:"Aucun article retrouvé.",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:{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}}"},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",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"},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!!!!!"}},imaging:{pageTitle:"Demandes d'imagerie",sectionTitle:"Imagerie",buttons:{newButton:"+ nouvelle imagerie"},labels:{radiologist:"Radiologiste",addNewVisit:"--Ajouter une nouvelle visite--"},messages:{noCompleted:"Aucun article traité retrouvé."},titles:{completedImaging:"Imagerie traitée",editTitle:"Modifier la demande d'imagerie",newTitle:"Nouvelle demande d'imagerie"},alerts:{completedTitle:"Demande d'imagerie traitée",completedMessage:"La demande d'imagerie a été traitée.",savedTitle:"Demande d'imagerie enregistrée",savedMessage:"La demande d'imagerie a été enregistrée."}},medication:{pageTitle:"Demandes de médicament",sectionTitle:"Médicament",returnMedication:"Retourner un médicament",buttons:{dispenseMedication:"dispenser un médicament",newButton:"+ nouvelle demande",returnMedication:"retourner un médicament"},titles:{completedMedication:"Médicament traitée",editMedicationRequest:"Modifier une demande de médicament",newMedicationRequest:"Nouvelle demande de médicament"},messages:{createNew:"Créer une nouvelle demande de médicament?",confirmDeletion:"Êtes-vous sûr de vouloir supprimer cette demande de médicaments?"},labels:{refills:"Renouvellements",quantityRequested:"Quantité demandé",quantityDispensed:"Quantité dispensé",quantityDistributed:"Quantité distribué",quantityToReturn:"Quantité à retourner",returnLocation:"Emplacement de retour",returnAisle:"Rayon de retour",returnReason:"Motif/notes du retour",adjustmentDate:"Date d'ajustement",creditToAccount:"Créditer le compte"},alerts:{returnedTitle:"Médicament retourné",returnedMessage:"Le médicament a été marqué comme retourné.",savedTitle:"Demande de médicament enregistrée",savedMessage:"Le dossier de médicament a été enregistré.",fulfilledTitle:"Demande de médicament traitée"}},appointments:{currentScreenTitle:"Liste des rendez-vous",editTitle:"Modifier le rendez-vous",newTitle:"Nouveau rendez-vous",sectionTitle:"Rendez-vous",thisWeek:"Rendez-vous de la semaine",missed:"Rendez-vous manqués",searchTitle:"Rechercher les rendez-vous",todayTitle:"Rendez-vous d'aujourd'hui",messages:{deleteAppointmentMessage:"Etes-vous sûr de vouloir supprimer ce rendez-vous?",endTimeLaterThanStart:"Veuillez sélectionnez une heure de fin plus tard que l'heure de début."},buttons:{newButton:"+ nouveau rendez-vous"}},visits:{edit:{buttons:{newAppointment:"Nouveau rendez-vous",addDiagnosis:"Ajoute un diagnostic",newProcedure:"Nouvelle procédure",newLab:"Nouveau labo",newImaging:"Nouvelle imagerie",newMedication:"Nouveau médicament"},labels:{diagnosis:"Diagnostic",procedure:"Procédure",authoredBy:"Crée par",labs:"Labos",imaging:"Imagerie",visitInformation:"Détails de la visite"}}},labs:{sectionTitle:"Labos",requestsTitle:"Demandes de labo",editTitle:"Modifier la demande de labo",newTitle:"Nouvelle demande de labo",deleteTitle:"Supprimer la demande",completedTitle:"Labos traités",labels:{labType:"Type de labo",addNewVisit:"--Ajouter une nouvelle visite--"},messages:{noItemsFound:"Aucun labo retrouvé.",createNewRecord:"Créer un nouveau dossier?",confirmDeletion:"Etes-vous sûr de vouloir supprimer cette demande de labo?",noCompleted:"Aucun article traité retrouvé."},buttons:{newButton:"+ nouveau labo"},alerts:{requestCompletedTitle:"Demande de labo traitée",requestCompletedMessage:"La demande de labo a été traitée.",requestSavedTitle:"Demande de labo enregistrée",requestSavedMessage:"La demande de labo a été enregistrée."}},common:{actions:"Actions"},patients:{notes:{onBehalfOfLabel:"De la part de",onBehalfOfCopy:"de la part de",pleaseSelectAVisit:"Veuillez sélectionner une visite",noteLabel:"Note"}}}}),define("hospitalrun/locales/pt-br/translations",["exports"],function(e){e.default={dashboard:{title:"O que você gostaria de fazer?"},errors:{inclusion:"não está na lista",exclusion:"é reservado",invalid:"é inválido",confirmation:"{{attribute}} não corresponde",accepted:"deve ser aceito",empty:"não pode ser vazio",blank:"não pode ser branco",present:"pode ser branco",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)",notANumber:"não é um número",notAnInteger:"deve ser um número inteiro",greaterThan:"deve ser maior do que {{count}}",greaterThanOrEqualTo:"deve ser maior ou igual à {{count}}",equalTo:"deve ser igual à {{count}}",lessThan:"deve ser menor do que {{count}}",lessThanOrEqualTo:"deve ser menor ou igual à {{count}}",otherThan:"deve ser diferente de {{count}}",odd:"deve ser ímpar",even:"deve ser até",invalidNumber:"número não é valido",result:"Informe um resultado antes de concluir"},dates:{long:"{{years}} ano {{months}} meses {{days}} dias",longPlural:"{{years}} anos {{months}} meses {{days}} dias",longOmitYears:"{{months}} meses {{days}} dias",longOmitDays:"{{years}} ano {{months}} meses",longOmitDaysPlural:"{{years}} anos {{months}} meses",longOmitDaysYears:"{{months}} meses",shortOmitYears:"{{months}}m {{days}}d",short:"{{years}}y {{months}}m {{days}}d"},navigation:{imaging:"Imagem",inventory:"Inventário",patients:"Pacientes",scheduling:"Agenda",appointments:"Compromisso",medication:"Medicação",labs:"Laboratórios",billing:"Faturamento",administration:"Administração",subnav:{actions:"Ações",requests:"Requisições",items:"Itens",completed:"Concluídos",newRequest:"Nova Requisição",inventoryReceived:"Inventário Recebido",reports:"Relatórios",patientListing:"Lista de Pacientes",newPatient:"Novo Paciente",appointmentsThisWeek:"Compromissos dessa Semana","today'sAppointments":"Compromissos de Hoje",appointmentSearch:"Pesquisar compromissos",thisWeek:"Essa Semana",today:"Hoje",search:"Pesquisa",addAppointment:"Adicionar Compromisso",dispense:"Dispensar",returnMedication:"Retorno de Medicação",invoices:"Faturas",newInvoice:"Nova Fatura",prices:"Preços",priceProfiles:"Perfis de Preços",lookupLists:"Listas de Pesquisa",addressFields:"Campos de Endereço",loadDB:"Carregar BD",users:"Usuários",newUser:"Novo Usuário",admittedPatients:"Pacientes Admitidos",missedAppointments:"Compromissos Esquecidos",missed:"Perdidos",userRoles:"Perfis de Usuário",workflow:"Workflow",outpatient:"Ambulatório",customForms:"Formulários customisados",appointmentsCalendar:"Compromissos",theaterSchedule:"Agenda de Cirurgias",scheduleSurgery:"Agendar Cirurgia"},actions:{logout:"Sair",login:"Entrar"},about:"Sobre HospitalRun"},user:{plusNewUser:"+ novo usuário",usersPageTile:"Lista de Usuários"},admin:{addressOptions:"Opções de Endereço",lookupLists:"Lista de Pesquisas",loadDb:"Carregar DB",userRoles:"Perfis de Usuários",users:"Usuários",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",include1Label:"Rótulo Include 1",include2Label:"Rótulo Include 2",include3Label:"Rótulo Include 3",include4Label:"Rótulo Include 4",titles:{optionsSaved:"Opções Salvas"},messages:{addressSaved:"As opções de endereço foram salvas"},newTitle:"Opções de Endereço",editTitle:"Opções de Endereço",addressLabel:"Endereço"},loaddb:{progressMessage:"Por favor aguarde enquanto o seu banco de dados é carregado.",progressTitle:"Carregando Banco de Dados",displayAlertTitle:"Selecione o Arquivo para Carregar",displayAlertMessage:"Por favor Selecione o Arquivo para Carregar.",errorDisplayAlertTitle:"Erro ao carregar",errorDisplayAlertMessage:"O banco de dados não foi carregado. O erro foi: {{error}}",editTitle:"Carregando BD"},lookup:{alertImportListTitle:"Selecione o arquivo para importação",alertImportListMessage:"Por favor Selecione o arquivo para importação.",alertImportListSaveTitle:"Lista Importdada",alertImportListSaveMessage:"A lista de pesquisa foi importada.",alertImportListUpdateTitle:"Lista Salva",alertImportListUpdateMessage:"A lista de pesquisa foi salva.",pageTitle:"Listas de Pesquisa",edit:{template:{addTitle:"Adicionar Valor",editTitle:"Editar Valor",updateButtonTextAdd:"Adicionar",updateButtonTextUpdate:"Atualizar",labelTitle:"Valor"}},anesthesiaTypes:"Tipos de Anestesia",anesthesiologists:"Anestesiologista",billingCategories:"Categorias de Faturamento",clinicList:"Localização de Clínicas",countryList:"Países",diagnosisList:"Diagnósticos",cptCodeList:"Códigos CPT",expenseAccountList:"Contas de Despesas",aisleLocationList:"Localização de Corredores no Inventário",warehouseList:"Locais de Inventário",inventoryTypes:"Tipos de Inventário",imagingPricingTypes:"Tipos de Preço Imagem",labPricingTypes:"Tipos de Preço Laboratório",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",unitTypes:"Tipos de Unidade",vendorList:"Fornecedor",visitLocationList:"Localização dos Visitantes",visitTypes:"Tipos de Visita",wardPricingTypes:"Tipos de Preços Enfermaria"},roles:{capability:{admin:"Administração",loadDb:"Carregar Banco de Dados",updateConfig:"Atualizar Configurações",appointments:"Compromissos",addAppointment:"Adicionar Compromissos",billing:"Faturamentos",addCharge:"Adicionar Cobrança",addPricing:"Adicionar Preço",addPricingProfile:"Adicionar Perfil de Preço",addInvoice:"Adicionar Fatura",addPayment:"Adicionar Pagamentos",deleteInvoice:"Excluir Fatura",deletePricing:"Excluir Preço",deletePricingProfile:"Excluir Perfil de Preço",editInvoice:"Editar Fatura",invoices:"Faturas",overrideInvoice:"Substituir Fatura",pricing:"Preço",patients:"Pacientes",addDiagnosis:"Adicionar Diagnóstico",addPhoto:"Adicionar Foto",addPatient:"Adicionar Paciente",addProcedure:"Adicionar Procedimento",addVisit:"Adicionar Visita",addVitals:"Adicionar Sinais Vitais",admitPatient:"Admitir Paciente",deletePhoto:"Excluir Paciente",deletePatient:"Excluir Paciente",deleteAppointment:"Excluir Compromisso",deleteDiagnosis:"Excluir Diagnóstico",deleteProcedure:"Excluir Procedimento",deleteSocialwork:"Excluir Trabalho Social",deleteVitals:"Excluir Sinais Vitais",deleteVisit:"Excluir Visita",dischargePatient:"Alta do Paciente",patientReports:"Relatório do Paciente",visits:"Visita",medication:"Medicação",addMedication:"Adicionar Medicação",deleteMedication:"Excluir Medicação",fulfillMedication:"Preencher Medicação",labs:"Laboratório",addLab:"Adicionar Laboratório",completeLab:"Laboratório Concluído",deleteLab:"Excluir Laboratório",imaging:"Imagem",addImaging:"Adicionar Imagem",completeImaging:"Imagem Concluída",deleteImaging:"Excluir Imagem",inventory:"Inventário",addInventoryRequest:"Adicionar Requisição de Inventário",addInventoryItem:"Adicionar Item de Inventário",addInventoryPurchase:"Adicionar Compra de Inventário",adjustInventoryLocation:"Ajustar Localização de Inventário",deleteInventoryItem:"Excluir Item de Inventário",fulfillInventory:"Preencher Inventário",defineUserRoles:"Perfis de Usuários"},messages:{roleSaved:"O perfil {{roleName}} foi salvo."},titles:{roleSaved:"Perfil Salvo"}},workflow:{admissionDepositLabel:"Depósito de Admissão é exigido",clinicPrepaymentLabel:"Pagamento Antecipado da Clínica é exigido",followupPrepaymentLabel:"Pagamento Antecipado do Acompanhamento é exigido",outpatientLabLabel:"Pagamento Antecipado do Laboratório Ambulatorial é exigido",outpatientImagingLabel:"Pagamento Antecipado do Ambulatorio de Imagem é exigido",outpatientMedicationLabel:"Pagamento Antecipado do Ambulatorio de Medicação é exigido",titles:{optionsSaved:"Opções Salvas"},messages:{optionsSaved:"As opções de WorkFlow foram salvas"},newTitle:"Opções de Workflow",editTitle:"Opções de Workflow",workflowLabel:"Workflow"}},labels:{cptcode:"Código CPT*",loading:"Carregando",name:"Nome",note:"Note",patient:"Paciente",prescriber:"Médico Responsável pela Prescrição",quantity:"Quantidade",requestedOn:"Solicitado em",date:"Data",dateOfBirth:"Data de Nascimento",dateOfBirthShort:"DtNasc",dateRequested:"Data da Requisição",dateCompleted:"Data da Conclusão",description:"Descrição",requestedBy:"Requisitado por",fulfill:"Preencha",fulfillRequest:"Preencha a Requisição",fulfillRequestNow:"Preencha a Requisição Agora",actions:"Ações",action:"Ação",notes:"Notas",edit:"Editar",imageOrders:"Pedido de Imagem",labOrders:"Pedidos de Laboratório",imagingType:"Tipo de Imagem",result:"Resultado",results:"Resultados",visit:"Visita",requests:"Requisições",completed:"Completo",id:"Id",on:"ligado",type:"Tipo",sex:"Sexo",age:"Idade",search:"Pesquisa",username:"Usuário",email:"Email",role:"Papel",delete:"Excluir",userCanAddNewValue:"O usuário pode adicionar novos valores",value:"Valor",lookupType:"Tipo de Pesquisa",importFile:"Importar Arquivo",fileLoadSuccessful:"Arquivo Carregado com Sucesso",fileToLoad:"Carregar Arquivo",startTime:"Hora Início",startDate:"Data de Início",endTime:"Hora de Término",endDate:"Data de Término",docRead:"Documentos Lidos",docWritten:"Documentos Escritos",displayName:"Nome de Exibição",password:"Senha",editUser:"Editar Usuário",newUser:"Novo Usuário",deleteUser:"Excluir Usuário",medication:"Medicação",status:"Situação",addNewOutpatientVisit:"--Adicionar Nova Visita Ambulatorial--",prescription:"Prescrição",prescriptionDate:"Data da Prescrição",billTo:"Conta Para",pullFrom:"Puxar De",fulfilled:"Preenchido",deleteRequest:"Excluir Requisição",location:"Localização",provider:"Fornecedor",with:"Com",allDay:"Todo Dia",physician:"Médico",assisting:"Ajudante",anesthesia:"Anestesia",procedures:"Procedimentos",number:"Número",billDate:"Data da Conta",balanceDue:"Saldo Devedor",amount:"Quantidade",datePaid:"Data de Pagamento",creditTo:"Crédito Para",invoiceId:"ID da Fatura",lineItems:"Itens de Linha",discount:"Desconto",excess:"Excesso",price:"Preço",total:"Total",expenseTo:"Despesa Para",grandTotal:"Total Geral",remarks:"Observações",payments:"Pagamentos",category:"Categoria",department:"Departamento",address:"Endereço",country:"País"},messages:{noItemsFound:"Nenhum item encontrado",noHistoryAvailable:"Histórico não disponível.",createNewRecord:"Criar uma nova gravação?",createNewUser:"Criar um novo usuário?",noUsersFound:"Nenhum usuário encontrado.",areYouSureDelete:"Você tem certeza que deseja excluir o usuário {{user}}?",userHasBeenSaved:"O usuário foi salvo.",userSaved:"Usuário Salvo",onBehalfOf:"em nome de",newPatientHasToBeCreated:"Um novo paciente precisa ser criado... Por favor aguarde...",noNotesAvailable:"Nenhuma nota clinica adicional está diponível para essa visita.",sorry:"Desculpe, algo deu errado...",forAuthorizedPersons:"Este relatório é somente para pessoas autorizadas."},alerts:{pleaseWait:"Por Favor Aguarde"},headings:{chargedItems:"Itens Carregados"},buttons:{addItem:"Adicionar Item",complete:"Completo",cancel:"Cancelar",close:"Fechar",returnButton:"Retornar",barcode:"Código de Barras",add:"Adicionar",update:"Atualizar",ok:"Ok",fulfill:"Preencher",remove:"Remover",delete:"Excluir",newUser:"Novo Usuário",addValue:"Adicionar Valor",newNote:"Nova Nota",import:"Importar",loadFile:"Carregar Arquivo",newRequest:"Nova Requisição",allRequests:"Todas as Requisições",dispense:"Dispensar",newItem:"+ novo item",newRequestPlus:"+ nova requisição",addVisit:"Adicionar Visita",search:"Pesquisa",edit:"Editar",addLineItem:"Adicionar Item de Linha",clear:"Limpar",filter:"Filtrar"},login:{messages:{signIn:"Entrar",error:"Nome de usuário ou senha está incorreta."},labels:{password:"Senha",username:"Usuário",signIn:"Entrar"}},loading:{progressBar:{progress:"{{progressBarValue}}% concluído"},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."}},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",adjust:"Ajustar",adjustmentDate:"Data de Ajuste",adjustmentFor:"Ajuste Para",adjustmentType:"Tipo de Ajuste",aisle:"Corredor",aisleLocation:"Localização do Corredor",allInventory:"Todo Inventário",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",dateStart:"Data de Início",dateReceived:"Data Recebida",dateTransferred:"Data Transferida",daysLeft:"Dias Restantes",deliveryAisle:"Corredor de Entrega",deliveryLocation:"Local de Entrega",distributionUnit:"Centro de Distribuição",deleteItem:"Deletar Item",details:"Detalhes",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",giftUsage:"Uso de Doação em Espécie",giftInKindNo:"N",giftInKindYes:"S",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",items:"Itens",itemNumber:"Número de Item",location:"Localização",locations:"Localizações",name:"Nome",markAsConsumed:"Marcar como Consumido",newItem:"Novo Item",allItems:"Todos os Itens",originalQuantity:"Quantidade Original",print:"Imprimir",printBarcode:"Imprimir Código Barras",printer:"Impressora",pullFrom:"Retirar de",purchases:"Compras",purchaseCost:"Custo da Compra",purchaseInfo:"Informações da Compra",quantity:"Quantity ({{unit}})",quantityAvailable:"Quantity Available",quantityOnHand:"Quantidade on Hand",quantityRequested:"Quantidade Solicitada",rank:"Classificação",reason:"Motivo",remove:"Remover",reorderPoint:"Ponto de Reabastecimento",requestedItems:"Itens Solicitados",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",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?",delete:"Você tem certeza que deseja excluir {{name}}?",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 ...",purchaseSaved:"As compras de inventário foram salvas com sucesso.",noRequests:"Nenhuma requisição encontrada.",noItems:"Nenhum item encontrado.",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:{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}}"},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",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"},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!!!!!"}},imaging:{pageTitle:"Requisição de imagens",sectionTitle:"Imagem",buttons:{newButton:"+ nova imagem"},labels:{radiologist:"Radiologista",addNewVisit:"--Adicionar novo visitante--"},messages:{delete:"Você tem certeza que deseja excluir essa requisição de imagem?",noCompleted:"Nenhum item completo encontrado."},titles:{completedImaging:"Imagem completa",editTitle:"Requisição de edição de imagem",newTitle:"Nova requisição de imagem"},alerts:{completedTitle:"Requisição de Imagem Completa",completedMessage:"A requisição de imagem esta completa.",savedTitle:"Requisição de imagem salva",savedMessage:"A requisição de imagem foi salva."}},medication:{pageTitle:"Requisição de Medicação",sectionTitle:"Medicação",returnMedication:"Retorno de Medicação",buttons:{dispenseMedication:"dispensar medicação",newButton:"+ nova requisição",returnMedication:"retorno de medicação"},titles:{completedMedication:"Medicação Concluída",editMedicationRequest:"Editar Requisição de Medicação",newMedicationRequest:"Nova Requisição de Medicação"},messages:{createNew:"Criar uma nova requisição de medicação?",confirmDeletion:"Você tem certeza que deseja excluir essa requisição de medicação?"},labels:{refills:"Recargas",quantityRequested:"Quantidade Requisitada",quantityDispensed:"Quantidade Dispensada",quantityDistributed:"Quantidade Distribuída",quantityToReturn:"Quantidade Retornada",returnLocation:"Localização de Retorno",returnAisle:"Corredor de Retorno",returnReason:"Razão/Notas de Retorno",adjustmentDate:"Data de Ajuste",creditToAccount:"Crédito na Conta"},alerts:{returnedTitle:"Medicação Retornada",returnedMessage:"A medicação foi marcada como retornada.",savedTitle:"Requisição de Medicação foi Salva",savedMessage:"O registro de medicação foi salvo.",fulfilledTitle:"Requisição de Medicação Preenchido"}},appointments:{currentScreenTitle:"Lista de Compromisso",editTitle:"Editar Compromisso",newTitle:"Novo Compromisso",sectionTitle:"Compromissos",thisWeek:"Compromissos dessa Semana",missed:"Compromissos Esquecidos",searchTitle:"Pesquisar Compromissos",todayTitle:"Compromissos de Hoje",calendarTitle:"Compromissos",messages:{deleteAppointmentMessage:"Você tem certeza que deseja excluir esse compromisso?",endTimeLaterThanStart:"Por favor, selecione um horário de término mais tarde do que a hora de início."},buttons:{newButton:"+ novo compromisso",scheduleSurgery:"+ nova cirurgia"},labels:{noLocation:"Sem Localização",selectedStartingDate:"Mostrar Compromisso em ou após"},titles:{appointmentSaved:"Compromisso Salvo",editSurgicalAppointment:"Editar cirurgia",newSurgicalAppointment:"Nova cirurgia",theaterSchedule:"Cirurgias"}},vitals:{messages:{delete:"Você tem certeza que deseja excluir esses sinais vitais?"},labels:{dateRecorded:"Data de Gravação",temperature:"Temperatura",weight:"Peso",height:"Altura",sbp:"PAS",dbp:"PAD",heartRate:"Frequência Cardíaca",respiratoryRate:"Frequência Respiratória"}},visits:{titles:{additionalDiagnoses:"Diagnósticos Adicionais"},messages:{delete:"Você tem certeza que deseja excluir essa visita?"},buttons:{newProcedure:"Novo Procedimento",newLab:"Novo Laboratório",newAppointment:"Novo Compromisso",addDiagnosis:"Adicionar Diagnóstico",newImaging:"Nova Imagem",newMedication:"Nova Medicação",newVitals:"Novos Sinais Vitais",checkIn:"Entrada"},labels:{diagnosis:"Diagnósticos",procedure:"Procedimentos",authoredBy:"Autorizado Por",labs:"Laboratório",imaging:"Imagem",visitInformation:"Imformação de Visita",examiner:"Examinador",medication:"Medicação",status:"Situação de Visita",admittingDiagnosis:"Diagnósticos de Admisão",finalDiagnosis:"Diagnósticos de Finais/Faturamento",visitType:"Tipo de Visita",vitals:"Sinais Vitais"}},labs:{sectionTitle:"Laboratório",requestsTitle:"Requisições de Laboratório",editTitle:"Editar Requisição de Laboratório",newTitle:"Nova Requisição de Laboratório",deleteTitle:"Excluir Requisição",completedTitle:"Laboratórios Concluídos",labels:{labType:"Tipo de Laboratório",addNewVisit:"--Adicionar Nova Visita--"},messages:{noItemsFound:"Nenhum laboratório encontrado.",createNewRecord:"Criar novo registro?",confirmDeletion:"VOcê tem certeza que deseja excluir essa requisição de laboratório?",noCompleted:"Items concluídos não econtrados."},buttons:{newButton:"+ novo laboratório"},alerts:{requestCompletedTitle:"Requisições de Laboratório Concluída",requestCompletedMessage:"Requisição de laboratório foi concluída.",requestSavedTitle:"Requisição de Laboratório Salva",requestSavedMessage:"A requisição de laboratório foi salva."}},patients:{navigation:{photos:"Fotos",general:"Geral",history:"Histórico",appointments:"Compromissos",visits:"Visitas",medication:"Medicação",imaging:"Imagem",labs:"Laboratórios",socialWork:"Assitência Social"},titles:{expenses:"Despesas",additionalContacts:"Contatos Adicionais",familyInformation:"Informação Familiar",delete:"Excluir Paciente",new:"Novo Paciente",edit:"Editar Paciente",patient:"Relatório de Paciente",patientListing:"Lista de Pacientes",addPhoto:"Adicionar Foto",editPhoto:"Editar Foto",socialWork:"Despesa",familyInfo:"Informação Familiar",deleteFamilyMember:"Excluir Membro Familiar",deleteExpense:"Excluir Despesa",deletePhoto:"Excluir Foto",deleteContact:"Excluir Contato",savedPatient:"Paciente Salvo"},messages:{areYouSureDelete:"Você tem certeza que deseja excluir este(a) {{object}}?",deletePatient:"Você tem certeza que deseja excluir {{firstName}} {{lastName}}?",noPatientsFound:"Nenhum paciente encontrado.",savedPatient:"O registro de paciente para {{displayName}} foi salvo.",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.",createNewPatient:"Criar novos registro de paciente?"},buttons:{addExpense:"Adicionar Despesa",addContact:"Adicionar Contato",newLab:"Novo Laboratório",newVisit:"Nova Visita",newMedication:"Nova Medicação",newImaging:"Nova Imagem",addFamilyMember:"Adicionar Membro Familiar",newPhoto:"Nova Foto",newAppointment:"Novo Compromisso",backToPatients:"Voltar para Lista de Pacientes",newPatient:"+ novo paciente"},labels:{primaryDiagnosis:"Diagnósticos Primários",secondaryDiagnosis:"Diagnósticos Secundários",monthlyCost:"Custo Mensal",totalMontlyExpense:"Total de Despesas Mensais",patientType:"Tipo de Paciente",admissionDate:"Data de Admissão",patientDays:"Dias do Paciente",dischargeDate:"Data de Pagamento",discharge:"Pagamento",admit:"Admitir",relationships:"Relação",phone:"Telefone",email:"Email",firstName:"Primeiro Nome",middleName:"Nome do meio",lastName:"Último Nome",sex:"Sexo",dob:"DatNasc",dateOfBirth:"Data de Nascimento",placeOfBirth:"Local de Nascimento",sources:"Fontes",cost:"Custo",civilStatus:"Estado Civil",relationship:"Relação com Paciente",education:"Educação",occupation:"Ocupação",income:"Renda",insurance:"Seguro",dateProcessed:"Data de Processamento",status:"Situação do Paciente",externalPatientId:"ID de Paciente Externo",bloodType:"Tipo Sanguíneo",clinic:"Site(Filial) da Clínica",referredBy:"Indicado Por",referredDate:"Data de Indicação",religion:"Religião",parent:"Responsável Legal",patientTypeCharity:"Caridade",patientTypePrivate:"Privado"},notes:{newNote:"Nova Nota para",updateNote:"Atualizando Nota de",onBehalfOfLabel:"Em Nome de",onBehalfOfCopy:"em nome de",pleaseSelectAVisit:"Por favor selecione uma visita"}},billing:{alerts:{noInvoiceFound:"Nenhuma fatura encontrada",deleteItem:"Você tem certeza que deseja excluir {{item}}?",noPricingItems:"Nenhum item de preço encontrado.",noPricingProfiles:"Nenhum perfil de preço encontrado."},buttons:{createInvoice:"Criar nova fatura?",addOverride:"Adicionar Substituir"},labels:{externalInvoiceNumber:"Fatura Externa #",paymentProfile:"Perfil de Pagamento",actualCharges:"Cobranças Atuais", -insurance:"Seguro Nacional",hmoCom:"HMO/COM",paymentsDeposits:"Pagamentos/Depositos",pricingPanelOverrides:"Substituição e Perfil de Preços",pricingProfile:"Perfil de Preços",discountAmount:"Quantidade de Desconto",discountPercentage:"Porcentagem de Desconto"}},print:{invoice:{labels:{patientName:"NOME DO PACIENTE:",patientId:"PACIENTE #:",patientAge:"IDADE:",patientAddress:"ENDEREÇO:",dateAdmitted:"ADMITIDO:",dateDischarged:"PAGAMENTO:",dischargeNotes:"Notas de Pagamento:",remarks:"Observações:",billedBy:"Faturado por:",billedDate:"Data de Faturamento:",spacer:"__________________________________________"},messages:{whereConducted:"foram deduzidos durante minha internação"},titles:{patientMember:"Paciente-Membro",relContact:"Relações/Contato",patients:"DO PACIENTE",billingStatement:"DECLARAÇÃO DO FATURAMENTO"}}},procedures:{titles:{addChargeItem:"Adicionar Item de Cobrança",deleteChargeItem:"Excluir Item de Cobrança",editChargeItem:"Editar Item de Cobrança",medicationUsed:"Medicação Usada",deleteMedicationUsed:"Excluir Medicação Usada",addMedicationUsed:"Adicionar Medicação Usada",editMedicationUsed:"Editar Medicação Usada",edit:"Editar Procedimento",saved:"Procedimento Salvo",new:"Novo Procedimento"},labels:{medicationUsed:"Medicação Usada"},messages:{deleteMedication:"Você tem certeza que deseja excluir esta medicação?",delete:"Você tem certeza que deseja excluir este procedimento?",saved:"O registro de procedimento foi salvo."},buttons:{addMedication:"Adicionar Medicação"}},components:{chargesByTypeTab:{charges:"cobranças"},dateTimePicker:{amHour:"{{hour}} AM",midnight:"Meia-noite",noon:"Meio-dia",pmHour:"{{hour}} PM"},takePhoto:{how:"Como você quer adicionar um Foto?",takePhoto:"Tirar um Foto",uploadFile:"Upload de Arquivo",camera:"Câmera",photo:"foto",preview:"pré visualização"},quantityConv:{unit:"Unidade",conversion:"O que significa contém 1 {{name}}?"},quantityCalc:{result:"{{targetUnit}} total: {{calculated}}"},priceList:{charges:"cobranças de {{pricingType}}"}},customForms:{buttons:{addForm:"Adicionar formulário"},labels:{formToAdd:"Formulário para adicionar"},titles:{addCustomForm:"Adicionar formulário customisado"}},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"}},allergies:{buttons:{addAllergy:"Adicionar alergia"},titles:{addAllergy:"Adicionar alergia",editAllergy:"Editar alergia"},labels:{allergyName:"Nome",patientAllergy:"Alergias do paciente"}},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:{planSaved:"O plano de operação foi salvo.",planCompleted:"O plano de operação foi concluído. Agora você será direcionado para o relatório de operação."},titles:{editTitle:"Editar plano de operação",newTitle:"Novo plano de operação",planCompleted:"Plano completo",planSaved:"Plano salvo"}},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"}},application:{messages:{sessionExpired:"Sua sessaão expirou. Faça login para continuar."},titles:{sessionExpired:"Sessaão expirada"}}}}),define("hospitalrun/locales/ru/translations",["exports"],function(e){e.default={dashboard:{title:"Что вы хотите сделать?"},labels:{name:"Имя",patient:"Пациент",quantity:"Количество",requestedOn:"Запрошен",dateRequested:"Дата Запроса",dateCompleted:"Дата Выполнения",requestedBy:"Запрошен",fulfill:"Отправить",actions:"Действия",action:"Действие",notes:"Заметки",edit:"Редактировать",imagingType:"Тип визуализации",result:"Результат",results:"Результаты",visit:"Осмотр",requests:"Ожидающие",completed:"Выполненые",id:"Номер",sex:"Пол",age:"Возраст"},messages:{noItemsFound:"Ничего не найдено.",createNewRecord:"Создать новую запись?",forAuthorizedPersons:"Этот отчет предназначен только для уполномоченных лиц."},buttons:{complete:"Готово",cancel:"Отметить",returnButton:"Вернутся",add:"Добавить",update:"Обновить",ok:"Ок"},login:{messages:{signIn:"войдите в систему",error:"Неверное имя пользователя или пароль."},labels:{password:"Пароль",username:"Имя пользователя",signIn:"Войти"}},inventory:{messages:{noRequests:"Запросов не найдено.",createRequest:"Создать новый запрос?"}},imaging:{pageTitle:"Запросы на визуализацию",sectionTitle:"Визуализация",buttons:{newButton:"+ новый запрос"},labels:{radiologist:"Радиолог",addNewVisit:"--Добавить новый тип осмотра--"},messages:{noCompleted:"Не найдено выполненых запросов."},titles:{completedImaging:"Выполненые запросы",editTitle:"Редактировать запрос на визуализацию",newTitle:"Новый запрос на визуализацию"},alerts:{completedTitle:"Визуализация выполнена",completedMessage:"Запрос на визуализацию удовлетворён.",savedTitle:"Запрос сохранён",savedMessage:"Запрос на визуализацию сохранён."}}}}),define("hospitalrun/locales/tr/translations",["exports"],function(e){e.default={dashboard:{title:"Ne yapmak istersiniz?"},labels:{name:"Ad",patient:"Hasta",quantity:"Miktar",requestedOn:"Açık Talep",dateRequested:"Talep Tarihi",dateCompleted:"Bitiş tarihi",requestedBy:"Talep sahibi",fulfill:"Fulfill",actions:"İşlemler",action:"İşlem",notes:"Notlar",edit:"Düzenle",imagingType:"Görüntüleme Tipi",result:"Sonuç",results:"Sonuçlar",visit:"Ziyaret",requests:"Talepler",completed:"Tamamlandı",id:"Id",sex:"Cinsiyet",age:"Yaş"},messages:{noItemsFound:"Hiçbir öğe bulunamadı.",createNewRecord:"Yeni bir kayıt oluştur?",forAuthorizedPersons:"Bu rapor yetkili kişiler içindir."},buttons:{complete:"Bitir",cancel:"Vazgeç",returnButton:"Geri Dön",add:"Ekle",update:"Güncelle",ok:"Tamam"},login:{messages:{signIn:"GİRİŞ YAPIN",error:"Kullanıcı adı veya parola hatalı."},labels:{password:"Parola",username:"Kullanıcı Adı",signIn:"Giriş yap"}},inventory:{messages:{noRequests:"Talep bulunamadı",createRequest:"Yeni talep oluştur?"}},imaging:{pageTitle:"Görüntüleme talepleri",sectionTitle:"Görüntüleme",buttons:{newButton:"+ yeni görüntüleme"},labels:{radiologist:"Radyolog",addNewVisit:"--Yeni Ziyaret Ekle--"},messages:{noCompleted:"Tamamlanmayan öğe bulunamadı."},titles:{completedImaging:"Görüntüleme Tamamlandı",editTitle:"Görüntüleme Talebini Düzenle",newTitle:"Yeni Görüntüleme Talebi"},alerts:{completedTitle:"Görüntüleme Talebi Tamamlandı",completedMessage:"Görüntüleme talebi başarıyla tamamlandı.",savedTitle:"Görüntüleme Talebi Kaydedildi",savedMessage:"Görüntüleme Talebi başarıyla kaydedildi."}}}}),define("hospitalrun/locales/ur/translations",["exports"],function(e){e.default={dashboard:{title:"آپ کیا کرنا چاہیں گے؟"},errors:{inclusion:"فہرست میں شامل نہیں ہے",exclusion:"مخصوص ہے",invalid:"غلط ہے",confirmation:"کے مماثل نہیں ہے {{attribute}}",accepted:"قبول کرنا ضروری",empty:"خالی نہیں ہو سکتا",blank:"خالی نہیں رہ سکتی",present:"خالی ہونا ضروری ہے",tooLong:"حروف {{count}}بہت طویل ہے، زیادہ سے زیادہ ",tooShort:"حروف{{count}}بہت مختصر ہے کم از کم ",wrongLength:"حروف ہونے چاہئے{{count}}غلط لمبائی ہے ",notANumber:"ایک نمبر نہیں ہے",notAnInteger:"ایک عددی ہونا لازمی ہے",greaterThan:"سے زیادہ ہونا چاہیے {{count}}",greaterThanOrEqualTo:"سے زیادہ یا برابر ہونا چاہیے {{count}}",equalTo:"کے برابر ہونا چاہیے {{count}}",lessThan:"سے کم ہونا چاہیے {{count}}",lessThanOrEqualTo:"سے کم یا برابر ہونا چاہیے {{count}}",otherThan:"سے مختلف ہونا چاہیے {{count}}",odd:"طاق ہونا ضروری ہے",even:"جفت ہونا ضروری ہے",invalidNumber:"درست نمبر نہیں",result:"براے مہربانی مکمل کرنے سے پہلے نتیجہ درج کریں"},dates:{long:"دن {{days}} مہینے {{months}} سال {{years}}",longPlural:"دن {{days}} مہینے {{months}} سال {{years}}",longOmitYears:"دن {{days}} مہینے {{months}}",longOmitDays:"مہینے {{months}} سال {{years}}",longOmitDaysPlural:"مہینے {{months}} سال {{years}}",longOmitDaysYears:"مہینے {{months}}",shortOmitYears:"د{{days} م{{months}}",short:"د{{days} م{{months}} س{{years}}"},navigation:{imaging:"امیجنگ",inventory:"انوینٹری",patients:"مریض",scheduling:"اوقات نامہ",medication:"ادویات",labs:"لیبز",billing:"بلنگ",administration:"انتظامیہ",subnav:{actions:"عوامل",requests:"درخواستیں",items:"اشیاء",completed:"مکمل",newRequest:"نئی درخواست",inventoryReceived:"انوینٹری موصول",reports:"رپورٹس",patientListing:"مریض کی فہرست سازی",newPatient:"نئے مریض",appointmentsThisWeek:"اس ہفتے کی ملاقاتیں","today's Appointments":"آج کی ملاقاتیں",appointmentSearch:" ملاقاتیں تلاش کریں",addAppointment:"ملاقات اضافہ",dispense:"تقسیم",returnMedication:"واپس دوا",invoices:"رسیدیں",newInvoice:"نئے رسید",prices:"قیمتیں",priceProfiles:"قیمت پروفائلز",lookupLists:"تلاش فہرستیں",addressFields:"ایڈریس قطعات",loadDB:"DB لوڈ کریں",users:"صارفین",newUser:"نیا صارف",admittedPatients:"جمع شدہ مریض",missedAppointments:"ضائع شدہ",userRoles:"صارف کے کردار",workflow:"ورک فلو",outpatient:"آؤٹ پیشنٹ",customForms:"کسٹم فام",appointmentsCalendar:"ملاقاتوں کا کیلنڈر",theaterSchedule:"تھیٹر اوقات نامہ",scheduleSurgery:"سرجری اوقات نامہ"},actions:{logout:"لاگ آوٹ",login:"لاگ ان"},about:"HospitalRun کے بارے"},user:{plusNewUser:"+ نیا صارف",usersPageTile:"صارفین کی فہرست سازی"},admin:{addressOptions:"ایڈرس آپشنز",lookupLists:"تلاش فہرستیں",loadDb:"DB لوڈ کریں",userRoles:"صارف کے کردار",users:"صارفین",address:{address1Label:"ایڈریس 1 لیبل",address2Label:"ایڈریس 2 لیبل",address3Label:"ایڈریس 3 لیبل",address4Label:"ایڈریس 4 لیبل",include1Label:"1 لیبل شامل کریں",include2Label:"2 لیبل شامل کریں",include3Label:"3 لیبل شامل کریں",include4Label:"4 لیبل شامل کریں",titles:{optionsSaved:"آپشنز محفوظ ہوگۓ"},messages:{addressSaved:"ایڈریس آپشنز محفوظ کرلیے گۓ ہیں"},newTitle:"ایڈریس آپشنز",editTitle:"ایڈریس آپشنز",addressLabel:"ایڈریس"},customForms:{buttons:{addField:"فیلڈ کا اضافہ کریں",moveDown:"نیچے منتقل کریں",moveUp:"اوپر منتقل کریں",newForm:"+ نیا فام",preview:"مشاہدہ کریں"},labels:{alwaysInclude:"ہمیشہ شامل",checkbox:"چیک باکس",columns:"کالم",colSpan:"پھیلاؤ کے کالموں کی تعداد",customForm:"کسٹم فام",formName:"فارم کا نام",formType:"فارم کی قسم",includeOtherOption:"دیگر آپشن شامل کریں",label:"لیبل",newForm:"نیا فارم",operativePlanFormType:"آپریٹو پلان اور رپورٹ",otherOptionLabel:"دیگر آپشن لیبل",patientFormType:"مریض",property:"خصوصیت",radio:"ریڈیو",select:"ڈراپ ڈاؤن",socialworkFormType:"سماجی کام",text:"عبارت",textarea:"بڑی عبارت",visitFormType:"دورہ"},messages:{deleteForm:"کیا آپ یقینی طور پر اس کسٹم فارم کو حذف کرنا چاہتے ہیں؟",formSaved:"فارم محفوظ ہوگیا ہے {{name}} "},titles:{customForms:"کسٹم فارمز",deleteForm:"کسٹم فارم حذف کریں",editCustomForm:"کسٹم فارم میں ترمیم کریں",fields:"قطعات",formSaved:"فارم محفوظ ہوگیا",checkboxValues:"چیک باکس میں قیمتیں",dropDownValues:"ڈراپ ڈاؤن فہرست",newCustomForm:"نئے کسٹم فارم",radioValues:"ریڈیو میں قیمتیں"}},loaddb:{progressMessage:"آپ کا ڈیٹابیس لوڈ کیا جا رہا ہے، براۂ مہربانی انتظار کریں.",progressTitle:"ڈیٹابیس لوڈ ہو رہا ہے",displayAlertTitle:"لوڈ کرنے کے لئے فائل کو منتخب کریں",displayAlertMessage:"لوڈ کرنے کے لئے فائل کو منتخب کیجیے.",errorDisplayAlertTitle:"لوڈ کرنے میں خامی",errorDisplayAlertMessage:"ڈیٹا بیس امپورٹ نہیں ہوسکتی. یہ خامی ہے {{error}}",editTitle:"DB لوڈ کریں"},lookup:{alertImportListTitle:"امپورٹ کرنے کے لئے فائل کو منتخب کریں",alertImportListMessage:"امپورٹ کرنے کے لئے فائل کو منتخب کیجیے",alertImportListSaveTitle:"لسٹ امپورٹ ہوگئ",alertImportListSaveMessage:"تلاش فہرست امپورٹ ہو گئی ہے.",alertImportListUpdateTitle:"فہرست محفوظ",alertImportListUpdateMessage:"تلاش فہرست محفوظ ہو گئی ہے.",pageTitle:"تلاش فہرستیں",edit:{template:{addTitle:"قیمت شامل کریں",editTitle:"قیمت ترمیم کریں",updateButtonTextAdd:"شامل کریں",updateButtonTextUpdate:"اپ ڈیٹ",labelTitle:"قدر"}},anesthesiaTypes:"اینستھیزیا کی اقسام",anesthesiologists:"اینستھیسیالوجسٹس",billingCategories:"بلنگ کی اقسام",clinicList:"کلینک مقامات",countryList:"ممالک",diagnosisList:"تشخیص",cptCodeList:"CPT کوڈز",expenseAccountList:"اخراجات اکاؤنٹس",aisleLocationList:"انوینٹری راہداری مقامات",warehouseList:"انوینٹری مقامات",inventoryTypes:"انوینٹری کی اقسا م",imagingPricingTypes:"امیجنگ قیمتوں کا تعین کی اقسام",labPricingTypes:"لیب کی قیمتوں کا تعین کی اقسام",patientStatusList:"مریض سٹیٹس کی فہرست",physicianList:"ڈاکٹر",procedureList:"طریقہ کار",procedureLocations:"طریقہ کار مقامات",procedurePricingTypes:"ضابطے کی قیمتوں کا تعین کی اقسام",radiologists:"ریڈیولوجسٹ",unitTypes:"یونٹ کی اقسام",vendorList:"وینڈر",visitLocationList:"دورہ مقامات",visitTypes:"دورہ کی اقسا م",wardPricingTypes:"وارڈ کی قیمتوں کا تعین کی اقسام",messages:{deleteLookupValue:" {{value}} قدر حذف کرنا چاہتے ہیں؟"},titles:{deleteLookupValue:"قدر حذف کریں"}},roles:{capability:{admin:"انتظامیہ",loadDb:"لوڈ کریں ڈیٹا بیس",updateConfig:"اپ ڈیٹ کی ترتیب",appointments:"ملاقاتیں",addAppointment:"ملاقات اضافہ",billing:"بلنگ",addCharge:"چارج شامل کریں",addPricing:"قیمتوں کا تعین شامل کریں",addPricingProfile:"قیمتوں کا تعین پروفائل شامل کریں",addInvoice:"رسید شامل کریں",addPayment:"ادائیگی شامل کریں",deleteInvoice:"رسید کو حذف کریں",deletePricing:"قیمتوں کا تعین حذف کریں",deletePricingProfile:"قیمتوں کا تعین پروفائل حذف کریں",editInvoice:"رسید میں ترمیم کریں",invoices:"رسیدیں",overrideInvoice:"رسید کو منسوخ کردے",pricing:"قیمتوں کا تعین",patients:"مریض",addDiagnosis:"تشخیص کے لئے شامل کریں",addPhoto:"تصویر کا اضافہ کریں",addPatient:"مریض شامل کریں",addProcedure:"ضابطے شامل کریں",addVisit:"دورہ شامل کریں",addVitals:"vitals شامل کریں",admitPatient:"مریض جمع کریں",deletePhoto:"تصویر حذف",deletePatient:"مریض کو حذف کریں",deleteAppointment:"ملاقات حذف کریں",deleteDiagnosis:"تشخیس حذف کریں",deleteProcedure:"ضابطہ حذف کریں",deleteSocialwork:"سماجی کام حذف کریں",deleteVitals:" vitals حذف کریں",deleteVisit:" دورہ حذف کریں",dischargePatient:"تخریج مریض",patientReports:"مریض کی رپورٹیں",visits:"دورے",medication:"ادویات",addMedication:"ادویات شامل",deleteMedication:"ادویات حذف کریں",fulfillMedication:"ادویات پورا کریں",labs:"لیبز",addLab:"لیب شامل کریں",completeLab:"مکمل لیب",deleteLab:"لیب حذف کریں",imaging:"امیجنگ",addImaging:"امیجنگ کا اضافہ کریں",completeImaging:"مکمل امیجنگ",deleteImaging:"امیجنگ حذف کریں",inventory:"انوینٹری",addInventoryRequest:"انوینٹری کی درخواست شامل کریں",addInventoryItem:"انوینٹری آئٹم شامل کریں",addInventoryPurchase:"انوینٹری کی خریداری شامل کریں",adjustInventoryLocation:"انوینٹری مقام کو درست کریں",deleteInventoryItem:"حذف انوینٹری آئٹم",fulfillInventory:"انوینٹری پورا کریں",defineUserRoles:"صارف کے کردار کی وضاحت کریں",addBillingDiagnosis:"بلنگ تشخیص شامل کریں",addNote:"نوٹ شامل",addSocialwork:"سوشل ورک شامل",deleteNote:"نوٹ حذف کریں",addOperativePlan:"آپریٹو پلان شامل کریں",addAllergy:"الرجی کا اضافہ کریں",addOperationReport:"آپریشن رپورٹ شامل کریں"},messages:{roleSaved:"{{roleName}} کردار محفوظ ہوگیا ہے."},titles:{roleSaved:"کردار محفوظ ہوگیا ہے"}},visitForms:{labels:{followup:"فالواپ",form:"فارم",initial:"ابتدائی",visitType:"دورہ کی قسم"},titles:{visitForms:"دورہ فارم"}},workflow:{admissionDepositLabel:"داخلہ جمع کی ضرورت",clinicPrepaymentLabel:"کلینک قبل از استعمال ادائیگی کی ضرورت",followupPrepaymentLabel:"تعاقب قبل از استعمال ادائیگی کی ضرورت",outpatientLabLabel:"بیرونی مریضوں کی لیب قبل از استعمال ادائیگی کی ضرورت",outpatientImagingLabel:"بیرونی مریض کی امیجنگ قبل از استعمال ادائیگی کی ضرورت",outpatientMedicationLabel:"بیرونی مریضوں کی ادویات قبل از استعمال ادائیگی کی ضرورت",titles:{optionsSaved:"آپشنز محفوظ ہوگۓ"},messages:{optionsSaved:"ورک فلو آپشنز محفوظ ہوگۓ ہیں"},newTitle:"ورک فلو آپشنز",editTitle:"ورک فلو آپشنز",workflowLabel:"فلو آپشنز"}},labels:{cptcode:"CPT کوڈ",loading:"لوڈ کر رہا ہے",name:"نام",note:"نوٹ",patient:"مریض",prescriber:"تجویز کنندہ",quantity:"تعداد",requestedOn:"پر درخواست",date:"تاریخ",dateOfBirth:"پیدائش کی تاریخ",dateOfBirthShort:"DOB",dateRequested:"درخواست کی تاریخ",dateCompleted:"تاریخ مکمل",description:"تفصیل",requestedBy:"کی طرف سے درخواست",fulfill:"پورا کریں",fulfillRequest:"درخواست کو پورا کریں",fulfillRequestNow:"ابھی درخواست کو پورا کریں",actions:"عوامل",action:"عمل",notes:"نوٹس",edit:"تصیح",imageOrders:"امیج آرڈرز",labOrders:"لیب آرڈرز",imagingType:"امیجنگ قسم",result:"نتیجہ",results:"نتائج",visit:"دورہ",requests:"درخواستیں",completed:"مکمل",id:"آئی ڈی",on:"پر",type:"قسم",sex:"جنس",age:"عمر",search:"تلاش کریں",username:"یوزر نیم",email:"ای میل",role:"کردار",delete:"حذف کریں",userCanAddNewValue:"صارف نئی اقدار کا اضافہ کر سکتے ہیں",value:"قدر",lookupType:"تلاش قسم",importFile:"امپورٹ فائل",fileLoadSuccessful:" فائل لوڈ کامیابی سے ہو گئ",fileToLoad:" لوڈ کے لیے فائل",fileName:"فائل کا نام",startTime:"وقت آغاز",startDate:"شروع کرنے کی تاریخ",endTime:"آخر وقت",endDate:"تاریخ اختتام",docRead:"دستاویزات پڑھیں",docWritten:"ڈاکس سے تحریری",displayName:"دکھانے کے لیے نام",password:"پاس ورڈ",editUser:"صارف میں ترمیم کریں",newUser:"نیا صارف",deleteUser:"صارف حذف کریں",medication:"ادویات",status:"صورتحال",addNewOutpatientVisit:"نۓ بیرنی مریض کے لیے دورہ کا اضافہ کریں",prescription:"نسخے",prescriptionDate:"نسخے تاریخ",billTo:"کا بل",pullFrom:"سے کھیںچو",fulfilled:"پوری کر دی گئ",deleteRequest:"درخواست حذف کریں",location:"مقام",provider:"مھیا کرنے والا",with:"ساتھ",allDay:"تمام دن",physician:"فزیشن",assisting:"مدد",anesthesia:"اینستھیزیا",procedures:"طریقہ کار",number:"نمبر",billDate:"بل تاریخ",balanceDue:"واجب الادا",amount:"رقم",datePaid:"تاریخ ادا",creditTo:"کرنے کے لئے کریڈٹ",invoiceId:"رسید کی آئی ڈی",lineItems:"لائن آئٹمز",discount:"رعایت",excess:"اضافی",price:"قیمت",total:"کل",expenseTo:"کرنے کے اخراجات",grandTotal:"مجموعی عدد",remarks:"تبصرہ",payments:"ادائیگیاں",category:"قسم",department:"محکمہ",address:"ایڈریس",country:"ملک"},messages:{noItemsFound:"کوئی آئٹم نہیں ملا.",noHistoryAvailable:"کوئی سرگزشت دستیاب نہیں",createNewRecord:"ایک نیا ریکارڈ بنائیں؟",createNewUser:"ایک نیا صارف بنائیں؟",noUsersFound:"کوئی صارف دستیاب نہیں",areYouSureDelete:"کیا آپ کو یقین ہے کہ آپ {{user}} صارف کو حذف کرنا چاہتے ہیں ؟",userHasBeenSaved:"صارف محفوظ ہوگیا ہے.",userSaved:" صارف محفوظ",onBehalfOf:"کی جانب سے",newPatientHasToBeCreated:"ایک نیا مریض بنایا جانا ضروری ہے ... براہ کرم انتظار کریں ...",noNotesAvailable:"کوئی اضافی کلینکل نوٹ اس دورے کے لئے دستیاب نہیں.",sorry:"معاف کرنا، کچھ غلط ہوگیا...",forAuthorizedPersons:"یہ رپورٹ صرف مجاز افراد کے لئے ہے.",requiredFieldsCorrectErrors:"ضرورت ہے کہ خالی قطعات (* کے نشان) میں بھریں اور محفوظ کرنے سے پہلے غلطیوں کو درست کریں.",saveActionException:"محفوظ کرنے کی کوشش کرتے ہوئے ایک خرابی واقع ہوئی ہے: {{message}}",reportError:"درخواست کی رپورٹ کو پیدا کرتے وقت ایک خرابی کا سامنا ہوا۔ براہ مہربانی اپنے سسٹم ایڈمنسٹریٹر کے علم میں لائیں کہ آپ کو خرابی کا سامنا ہوا"},alerts:{pleaseWait:"برائے مہربانی انتظار کریں",warningExclamation:"انتباہ !!!!",errorExclamation:"خرابی !!!!",reportError:" رپورٹ کی تیاری میں خرابی"},headings:{chargedItems:"چارج اشیا"},buttons:{addItem:"آئٹم شامل کریں",complete:"مکمل",cancel:"منسوخ کریں",close:"بند کریں",returnButton:"واپسی",barcode:"بارکوڈ",add:"شامل کریں",update:"اپ ڈیٹ",ok:"ٹھیک ہے",fulfill:"پورا کریں",remove:"دور کریں",delete:"حذف کریں",newUser:"نیا صارف",addValue:"قیمت جمع کریں",newNote:"نیا نوٹ",import:" امپورٹ کریں",loadFile:"فائل لوڈ کریں",newRequest:"نئی درخواست",allRequests:"تمام درخواستیں",dispense:"تقسیم",newItem:"+ نیا آئٹم",newRequestPlus:"+ نئی درخواست",addVisit:"دورہ میں شامل کریں",search:"تلاش کریں",filter:"فلٹر",clear:"صاف",edit:"تصیح",addLineItem:"لائن آئٹم شامل کریں",showFewer:"کم دکھائیں",showAll:"سارے دکھائیں"},login:{messages:{signIn:"سائن ان کریں",error:"یوزر نیم یا پاس ورڈ غلط ہے."},labels:{password:"پاس ورڈ",username:"یوزر نیم",signIn:"سائن ان "}},loading:{progressBar:{progress:"{{progressBarValue}}٪ مکمل"},messages:{0:"سب سے تیز تیتلی پرواز کی رفتار فی گھنٹہ 12 میل ہے. کچھ کیڑے 25 میل فی گھنٹہ کی رفتار سے پرواز کر سکتے ہیں",1:" پرندے میں صرف اللو ہیں جو نیلا رنگ دیکھ سکتے ہیں",2:"بلی کی 100 مختلف آوازیں ہیں؛ کتے کی صرف 10 ہیں",3:"انسان تقریر میں 72 مختلف پٹھوں کی کل استعمال کرتے ہیں",4:" افریقہ کے براعظم میں 1،000 سے زائد مختلف زبانیں بولی جاتی ہیں",5:" اراۓتھروفوب وہ ہے جو آسانی سے شرما جاۓ ",6:"دنیا میں سب سے زیادہ عام فوبیا درد کا خوف ہے جو اوڈاۓنوفوبیا ہے",7:" آپ جب بھی کھڑے ہوتے ہیں آپ کا جسم خود کو متوازن کرنے کے لیے 300 پٹھوں کا استعمال کرتا",8:"بعض میںڈک منجمد ٹھوس ہوسکتے ہیں پھر پگھل جائیں تو بھی جی سکتے ہیں",9:"ہماری آنکھیں پیدائش سے ہی اسی ہجم کی ہیں، لیکن ہماری ناک اور کان کبھی بڑھنا نہیں رکتی",10:"آپ کی زبان آپ کے جسم میں واحد پٹھہ ہے جو صرف ایک طرف سے منسلک ہے",11:"اونٹ کی تین پلکیں ہوتی ہیں جو اڑتی ریت سے بچانے کے لئے ہیں۔"}},inventory:{edit:{cost:"فی یونٹ لاگت:",delivered:"وصول کنندہ:",location:"مقام کی درستگی:",prescription:"نسخہ براۓ:",pulled:"سے نکالا:",quantity:"تکمیل پر مقدار:",reason:"وجہ:",returned:"مریض سے واپس",transferredFrom:"سے منتقل:",transferredTo:"میں منتقل کر دیا:"},labels:{action:"عمل",add:"شامل کریں",adjust:"درست کریں",adjustmentDate:"درستگی کی تاریخ",adjustmentFor:"درستگی براۓ",adjustmentType:"درستگی کی قسم",aisle:"راہداری",aisleLocation:"راہداری مقام",allInventory:"تمام انوینٹری",availableQuantity:"{{quantity}} دستیاب",billTo:"کا بل",consumePurchases:"کھپت خریداریاں",consumptionRate:"کھپت کی شرح",cost:"لاگت",costPerUnit:"فی یونٹ لاگت",crossReference:"دوطرفی حوالہ",currentQuantity:"موجودہ مقدار",dateCompleted:"تاریخ مکمل",dateEffective:"تاریخ نافذ",dateEnd:"آخری تاریخ",dateStart:"شروع کرنے کی تاریخ",dateReceived:"تاریخ موصولی",dateTransferred:"تاریخ منتقل",daysLeft:"دن باقی",deliveryAisle:"ڈلیوری راہداری",deliveryLocation:"ترسیل کے محل وقوع",distributionUnit:"تقسیم کا یونٹ",deleteItem:"آٹم حذف کریں",details:"تفصیلات دیکھیں",editItem:"آٹم میں ترمیم",expense:"کرنے کے اخراجات",expirationDate:"میعاد ختم ہونے کی تاریخ",fulfillRequest:"درخواست کو پورا کریں",fulfillRequestNow:"ابھی درخواست کو پورا کریں",gift:"خیراتی تحفہ",giftUsage:"خیراتی تحفہ کا استعمال",giftInKindNo:"نہیں",giftInKindYes:"ہاں",inventoryConsumed:"انوینٹری کھپت",inventoryItem:"انوینٹری آئٹم",inventoryObsolence:"متروک انوینٹری",invoiceItems:"رسید اشیاء",invoiceLineItem:"رسید لائن آئٹم",invoiceNumber:"رسید نمبر",item:"آئٹم",items:"اشیاء",itemNumber:"آئٹم نمبر",location:"مقام",locations:"مقامات",name:"نام",markAsConsumed:"خرچ شدہ کے طور پر درج کریں",newItem:"نئی آٹم",allItems:"تمام چیزیں",originalQuantity:"اصل مقدار",print:"پرنٹ",printBarcode:"پرنٹ بارکوڈ",printer:"پرنٹر",pullFrom:"سے ھیںچو",purchases:"خریداری",purchaseCost:"خریداری کی لاگت",purchaseInfo:"خریداری کی معلومات",quantity:"مقدار ({{unit}})",quantityAvailable:"دستیاب مقدار",quantityOnHand:"موجودہ مقدار",quantityRequested:" درخواست کی گئی مقدار",rank:"درجہ",reason:"وجہ",remove:"دور کریں",reorderPoint:" پوائنٹ پھر ترتیب کریں",requestedItems:"درخواست کی گئی اشیاء",salePricePerUnit:"فی یونٹ فروخت کی قیمت",save:"محفوظ کریں",serialNumber:"سیریل / لوٹ نمبر",total:"کل",totalCost:"کل لاگت",totalReceived:"کل موصول: {{total}}",transaction:"ٹرانزیکشن",transactions:"ٹرانزیکشنز",transfer:"منتقلی",transferFrom:"سے منتقلی",transferTo:"مقام پر منتقلی",transferToAisle:"مقام راہداری پر منتقلی",unit:"یونٹ",unitCost:"یونٹ کی لاگت",vendor:"وینڈر",vendorItemNumber:"وینڈر آئٹم نمبر",xref:"XRef"},messages:{adjust:" فرق کے تخمینہ کے لئے مناسب جگہ (جگہوں) پر مقدار کو ٹھیک کریں {{difference }}.",createRequest:"ایک نئی درخواست بنائیں؟",delete:" آپ کو یقین ہے کہ آپ حذف کرنا چاہتے ہیں؟ {{name}} ",itemNotFound:"
ورنہ واپس جانے کے لیے منسوخ کا بٹن دبائیں
اگر آپ ایک نیا انونٹری آئٹم تخلیق کرنا چاہتے ہیں تو ذیل میں معلومات درج کریں۔ {{item}}انونٹری آئٹم نہیں ملا۔ ",loading:"ٹراسیکشنر لوڈ ہو رہی ہے۔۔۔",purchaseSaved:"انونٹری کی خریداری کو کامیابی سے محفوظ کر لیا گیا ہے۔",noRequests:"کوئی درخواستیں نہیں ملی۔",noItems:"کوئی آئٹم نہیں ملا۔",quantity:" کے مقامات میں کل مقدار سے مماثل نہیں ہے ({{locationQuantity}})کی کل مقدار ({{quantity}})",removeItem:" آپ کو یقین ہے کہ آپ اس آٹم کو رسید سے ہٹانا چاہتے ہیں؟",removeItemRequest:" آپ کو یقین ہے کہ آپ اس آٹم کو درخواست سے ہٹانا چاہتے ہیں؟",requestFulfilled:"انونٹری کی درخواست پوری ہو گئی.",requestUpdated:"انونٹری درخواست کو اپ ڈیٹ کر دیا گیا ہے.",warning:"ضروری ہے (* کے نشان والے) قطعات میں بھرنا اور شامل کرنے سے پہلے غلطیوں کو درست کریں۔"},reports:{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}} :منجانب"},adjustment:"تفصیلی درستگی",daysSupply:"اسٹاک میں دنوں کی فراہمی",expenseDetail:"تفصیلی اخراجات",expenseSum:"خلاصہ اخراجات",expiration:"میعاد ختم ہونے کی تاریخ",export:"ایکسپورٹ رپورٹ",fields:" شامل کرنے کے قطعات",finance:"مالیات کا خلاصہ",generate:"رپورٹ بنائیں",invLocation:"محل وقوع کے اعتبار انوینٹری",invValuation:"انوینٹری کی مالیت",purchaseDetail:"تفصیلی خرید",purchaseSum:"خلاصہ خرید",reportType:"رپورٹ کی قسم",stockTransferDetail:"تفصیلی اسٹاک کی منتقلی",stockTransferSum:"خلاصہ اسٹاک کی منتقلی",stockUsageDetail:"تفصیلی اسٹاک استعمال",stockUsageSum:"خلاصہ اسٹاک استعمال",titleSingleDate:"{{date}} رپورٹ {{name}}",titleDateRange:"{{startDate}} - {{endDate}} رپورٹ {{name}}"},titles:{addPurchase:"خریداری شامل کریں",addRequest:"نئی درخواست",adjustment:"درستگی",editPurchase:"خریداری میں ترمیم کریں",editRequest:"تصیح کی گذارش",inventoryItem:"نئے انوینٹری آئٹم",inventoryReport:"انوینٹری کی رپورٹ",purchaseSaved:"انوینٹری خریداریاں محفوظ کرلی",quickAddTitle:"نئے انوینٹری آئٹم",removeItem:"آئٹم ہٹائیں",requestFulfilled:"درخواست پوری",requestUpdated:"درخواست اپ ڈیٹ ہوگئی",transfer:" اشیا منتقل کریں",warning:"انتباہ!!!"}},imaging:{pageTitle:"امیجنگ درخواستیں",sectionTitle:"امیجنگ",buttons:{newButton:"+ نئے امیجنگ"},labels:{radiologist:"ریڈیولوجسٹ",addNewVisit:"--- نیا دورہ شامل کریں ---"},messages:{delete:" آپ کو یقین ہے کہ آپ امیجنگ درخواست کو حذف کرنا چاہتے ہیں؟",noCompleted:"کوئی مکمل اشیاء نہیں موجود۔"},titles:{completedImaging:"امیجنگ مکمل",editTitle:"امیجنگ ترمیم کی گذارش",newTitle:"نئے امیجنگ گذارش"},alerts:{completedTitle:"امیجنگ درخواست مکمل",completedMessage:"امیجنگ درخواست کو مکمل کیا گیا ہے",savedTitle:"امیجنگ گذارش بچا لیا",savedMessage:"امیجنگ درخواست کو محفوظ کر لیا گیا ہے۔"}},medication:{pageTitle:"ادویات کی درخواستیں",sectionTitle:"ادویات",returnMedication:"واپس دوا",buttons:{dispenseMedication:"ادویات تقسیم",newButton:"+ نئی درخواست",returnMedication:"واپسی دوا"},titles:{completedMedication:"مکمل دوا",editMedicationRequest:"ادویات میں ترمیم کی درخواست",newMedicationRequest:"نئی دوا کی گذارش"},messages:{createNew:"ایک نئی دوا کی درخواست بنائیں؟",confirmDeletion:" آپ کو یقین ہے کہ آپ اس دوا کی درخواست کو حذف کرنا چاہتے ہیں؟"},labels:{refills:"دوبارہ بھریں",quantityRequested:" درخواست کی گئی مقدار",quantityDispensed:"تقسیم یا استعمال کی گئی مقدار",quantityDistributed:"تقسیم کی گئی مقدار",quantityToReturn:"مقدار براۓ واپسی",returnLocation:" مقام واپسی",returnAisle:"واپسی راہداری",returnReason:"واپسی کی وجہ / نوٹس",adjustmentDate:"تاریخ درستگی",creditToAccount:"اکاؤنٹ کو کریڈٹ"},alerts:{returnedTitle:"واپس کی گئی ادویات",returnedMessage:"ادویات پر واپس کر دی گئی کا نشان لگا دیا گیا ہے۔",savedTitle:"ادویات کی درخواست محفوظ کر لی گئی",savedMessage:"ادویات کا ریکارڈ محفوظ ہوگیا ہے۔",fulfilledTitle:"ادویات درخواست پوری"}},appointments:{currentScreenTitle:"ملاقات کی فہرست",editTitle:"ملاقات میں ترمیم کریں",newTitle:"نئی ملاقات",sectionTitle:"ملاقاتیں",thisWeek:"اس ہفتہ کی ملاقاتیں",missed:"چوک جانے والی ملاقاتیں",searchTitle:"ملاقاتیں تلاش کریں",todayTitle:"آج کی ملاقاتیں",calendarTitle:" ملاقات کا کیلنڈر",messages:{appointmentSaved:" - مریض کے ساتھ ملاقات محفوظ کر لی گئی ہے {{patient}}",deleteAppointmentMessage:" آپ کو یقین ہے کہ آپ اس ملاقات کو حذف کرنا چاہتے ہیں؟",endTimeLaterThanStart:"براہ مہربانی وقت آغاز کے بعد کا ختم وقت منتخب کریں۔"},buttons:{newButton:"+ نئی ملاقات",scheduleSurgery:" + سرجری کا وقت مقرر کریں"},labels:{noLocation:"کوئی مقام نہیں",selectedStartingDate:"اس تاریخ پر یا اس کے بعد کی ملاقاتیں دیکھیں"},titles:{appointmentSaved:"ملاقات محفوظ کر لی گئی",editSurgicalAppointment:"سرجری کی ملاقات میں ترمیم کریں",newSurgicalAppointment:"نئی سرجری کی ملاقات",theaterSchedule:"تھیٹر اوقات نامہ"}},vitals:{messages:{delete:"آپ کو یقین ہے کہ آپ ان کو حذف کرنا چاہتے ہیں؟ vitals"},labels:{dateRecorded:"تاریخ اندراج",temperature:"درجہ حرارت",weight:"وزن",height:"اونچائی",sbp:"SBP",dbp:"DBP",heartRate:"دل کی دھڑکن کی شرح",respiratoryRate:"سانس کی شرح"}},visits:{titles:{additionalDiagnoses:"اضافی تشخیص",checkedIn:"مریض چیک ان مکمل",checkOut:"مریض چیک آٹ",checkedOut:"مریض چیک آٹ مکمل",discharged:"مریض فارغ کر دیا گیا",editVisit:"دورہ ترمیم کریں",newVisit:"نیا دورہ",patientCheckIn:"مریض چیک ان",visitSaved:"دورہ محفوظ"},messages:{delete:"آپ کو یقین ہے کہ آپ اس دورے حذف کرنا چاہتے ہیں؟",checkOut:"کو چیک آٹ کرنا چاہتے ہیں؟ {{patientName}} آپ کو یقین ہے کہ آپ ",checkedOut:"چیک آٹ کر دیا گیا ہے {{patientName}} ",discharged:" کو فارغ کر دیا گیا ہے {{patientName}} ",patientCheckedIn:"چیک ان کر دیا گیا ہے {{patientName}} ",patientCreatedAndCheckedIn:" ۔ (مریض) بنا دیا گیا ہے اور چیک ان کر دیا گیا ہے {{patientName}} ",visitAndPatientSaved:"دورے اور مریض ریکارڈ محفوظ کیا گیا ہے۔",visitSaved:"دورہ کا ریکارڈ کو محفوظ کیا گیا ہے۔"},buttons:{newProcedure:"نئے طریقہ کار",newAppointment:"نئی ملاقات",addDiagnosis:"تشخیص کے لئے شامل کریں",newVitals:"نئے vitals",checkIn:"چیک ان",checkOut:"چیک آٹ",discharge:"فارغ کر دیں"},labels:{diagnosis:"تشخیص",procedure:"ضابطے",procedureDate:"ضابطے کی تاریخ",authoredBy:"کی طرف سے تحریر",visitInformation:"دورہ معلومات",examiner:"معائنہ کار",status:"دورہ کی صورتحال",finalDiagnosis:"حتمی / بلنگ تشخیص",visitDate:"دورہ کی تاریخ",visitType:"دورہ کی قسم",patientToCheckIn:"مریض کا چیک ان کرنا",checkInTime:"چیک ان",checkOutTime:"چیک آٹ",appointment:"ملاقات",haveAppointment:"ہاں",noAppointment:"نہیں",ordersDone:"آرڈرز مکمل کر دیے گئے",haveDoneOrders:"ہاں",ordersNotDone:"نہیں",reasonForVisit:"دورے کی وجہ",statusAdmitted:"داخل کر دیا گیا",statusDischarged:"فارغ کر دیا گیا",statusCheckedIn:"چیک ان کر دیا گیا",statusCheckedOut:"چیک آٹ کر دیا گیا",createNewPatient:"نیا مریض بنائیں"},navigation:{charges:"چارجز",notes:"نوٹس",orders:"آرڈرز",procedures:"طریقہ کار",vitals:"Vitals"}},labs:{sectionTitle:"لیبز",requestsTitle:"لیب درخواستیں",editTitle:"لیب میں ترمیم کی درخواست",newTitle:"نئے لیب کی گذارش",deleteTitle:"درخواست حذف کریں",completedTitle:"مکمل لیبز",labels:{labType:"لیب کی قسم",addNewVisit:"۔۔ نیا دورہ شامل کریں ۔۔"},messages:{noItemsFound:"کوئی لیب موجود نہیں",createNewRecord:"ایک نیا ریکارڈ بنائیں؟",confirmDeletion:"آپ کو یقین ہے کہ آپ اس لیب کی درخواست کو حذف کرنا چاہتے ہیں؟",noCompleted:"کوئی مکمل آئٹم موجود نہیں"},buttons:{newButton:"+ نئی لیب"},alerts:{requestCompletedTitle:"لیب درخواست مکمل",requestCompletedMessage:"لیب کی درخواست مکمل ہو گئی ہے",requestSavedTitle:"لیب کی درخواست محفوظ",requestSavedMessage:"لیب کی درخواست محفوظ ہو گئی ہے۔"}},patients:{navigation:{photos:"تصاویر",general:"عمومی",history:"سرگزشت",appointments:"ملاقاتیں",visits:"دورے",medication:"ادویات",imaging:"امیجنگ",labs:"لیبز",socialWork:"سماجی کام"},titles:{addContact:"رابطہ شامل کریں",admittedPatients:"داخل کیے گئے مریض",expenses:"اخراجات",additionalContacts:"اضافی رابطے",familyInformation:"خاندان کی معلومات",delete:"مریض کو حذف کریں",new:"نئے مریض", -edit:"مریض میں ترمیم کریں",patient:"مریض رپورٹ",patientListing:"مریض کی فہرست سازی",patientReport:"مریض رپورٹ",addPhoto:"تصویر کا اضافہ کریں",editPhoto:"تصویر میں ترمیم کریں",socialWork:"خرچہ",familyInfo:"خاندانی معلومات",deleteFamilyMember:"خاندان کے فرد کو حذف کریں",deleteExpense:"خرچہ حذف کریں",deletePhoto:"تصویر حذف کریں",deleteContact:"رابطہ کریں حذف کریں",savedPatient:"مریض محفوظ ہو گیا",todaysOutpatients:"آج کے بیرونی مریضوں",admissionsDetail:"داخلوں کی تفصیل",admissionsSummary:"داخلوں کا خلاصہ",diagnosticTesting:"تشخیصی جانچ",dischargesDetail:"فارغ کرنے کی تفصیل",dischargesSummary:"فارغ کرنے کا خلاصہ",proceduresDetail:"طریقہ کار کی تفصیل",proceduresSummary:"طریقہ کار کا خلاصہ",patientStatus:"مریض کی صورتحال",totalPatientDays:"مریض کے کل دن",totalPatientDaysDetailed:"مریض کے کل دن(تفصیلی) ۔",visit:"دورہ",deletePatientRecord:"مریض ریکارڈ حذف کریں",outpatientsForDate:"{{visitDate}} بیرونی مریض برائے "},messages:{areYouSureDelete:" کو حذف کرنا چاہتے ہیں؟ {{object}} آپ کو یقین ہے کہ آپ اس ",deletePatient:" کو حذف کرنا چاہتے ہیں؟ {{lastName}} {{firstName}} آپ کو یقین ہے کہ آپ اس مریض ",noPatientsFound:"کوئی مریض نہیں ملا۔",savedPatient:" کے لئے مریض کا ریکارڈ محفوظ ہوگیا ہے۔ {{displayName}} ",notFoundQuickAdd:" مریض نہیں مل سکا۔ اگر آپ کو ایک نیا مریض بنانا چاہتے ہیں تو ذیل میں معلومات درج کیجے۔ ورنہ واپس جانے کے کیے منسوخ کا بٹن دبائیں۔ {{patientFullName}} ",createNewPatient:"ایک نیا مریض ریکارڈ بنائیں؟",deletingPatient:"مریض اور سارے متعلقہ ریکارڈز حذف کیا جا رہا ہے"},buttons:{addExpense:"اخراجات میں شامل کریں",addContact:"رابطہ شامل کریں",addOperativePlan:"آپریٹو پلان میں شامل کریں",editOperativePlan:"موجودہ آپریٹو پلان",newLab:"نئی لیب",newVisit:"نیا دورہ",newMedication:"نئی دوا",newImaging:"نئی امیجنگ",addFamilyMember:"خاندان کا فرد شامل کریں",newPhoto:"نئی تصویر",newAppointment:"نئی ملاقات",backToPatients:"مریض کی فہرست پر واپس جائیں",newPatient:"+ نیا مریض",patientCheckIn:"مریض کا چیک ان",scheduleSurgery:"سرجری کا وقت مقرر کریں"},labels:{primaryDiagnosis:"بنیادی تشخیص",secondaryDiagnosis:"ثانوی تشخیص",monthlyCost:"ماہانہ اخراجات",totalMontlyExpense:"مجموعی ماہانہ اخراجات",patientType:"مریضوں کی اقسام",admissionDate:"داخلے کی تاریخ",patientDays:"مریض کے دن",dischargeDate:"فارغ کرنے کی تاریخ",admit:"داخل کریں",relationships:"تعلقات",phone:"فون",email:"ای میل",firstName:"نام کا پہلا حصہ",middleName:"نام کا درمیانی حصہ",lastName:"نام کا آخری حصہ",sex:"جنس",dob:"DOB",dateOfBirth:"پیدائش کی تاریخ",placeOfBirth:"جائے پیدائش",sources:"ذرائع",cost:"لاگت",civilStatus:"سول حیثیت",relationship:"مریض سے تعلق",education:"تعلیم",occupation:"پیشہ",income:"آمدن",insurance:"بیمہ",dateProcessed:"عمل درآمد کی تاریخ",status:"مریض کی صورتحال",externalPatientId:"بیرونی مریض کی شناخت",bloodType:"خون کی قسم",clinic:"کلینک کی جگہ",referredBy:"کی طرف سے بھیجا گیا",referredDate:"حوالہ دینے کی تاریخ",religion:"مذہب",parent:"والدین / سرپرست",contacts:"رابطے",sexNotEntered:"جنس داخل نہیں کیا گیا",operativePlan:"آپریٹو پلان"},notes:{newNote:"نیا نوٹ برائے",updateNote:"کی صرف سے نوٹ اپ ڈیٹ ہورہے ہیں",onBehalfOfLabel:"کی جانب سے",onBehalfOfCopy:"کی جانب سے",pleaseSelectAVisit:"ایک دورے براہ مہربانی منتخب کریں"}},billing:{alerts:{noInvoiceFound:"کوئی رسید نہیں ملی",deleteItem:"{{item}} آپ کو یقین ہے کہ آپ حذف کرنا چاہتے ہیں؟",noPricingItems:"کوئی قیمتوں کے تعیں والی اشیاء نہیں ملی",noPricingProfiles:"کوئی قیمتوں کے تعیں والی پروفائل نہیں ملی"},buttons:{createInvoice:"ایک رسید بنائیں؟",addOverride:"منسوخ شامل کریں"},labels:{externalInvoiceNumber:"بیرونی رسید #",paymentProfile:"ادائیگی پروفائل",actualCharges:"اصل قیمت",insurance:"قومی بیمہ",hmoCom:"HMO / COM",paymentsDeposits:"ادائیگی / جمع کھاتہ",pricingPanelOverrides:"قیمتوں کا تعین پروفائل کی منسوخی",pricingProfile:"قیمتوں کا تعین پروفائل",discountAmount:"ڈسکاؤنٹ رقم",discountPercentage:"رعایت فی صد"}},print:{invoice:{labels:{patientName:"مریض کا نام:",patientId:"مریض #:",patientAge:"عمر:",patientAddress:"پتہ:",dateAdmitted:"داخلہ کی تاریخ:",dateDischarged:"فارغ کرنے کی تاریخ:",dischargeNotes:"فارغ کرنے کے نوٹس:",remarks:"خیالات:",billedBy:"بل منجانب:",billedDate:"بل کی تاریخ:",spacer:"__________________________________________"},messages:{whereConducted:"میری محدودیت کے دوران کاٹ لیے گئے تھے"},titles:{patientMember:"مریض رکن",relContact:"تعلق / رابطہ نمبر",patients:"مریض کا",billingStatement:"بلنگ کی عبارت"}}},procedures:{titles:{addChargeItem:"چارج آئٹم شامل کریں",deleteChargeItem:"چارج آئٹم حذف کریں",editChargeItem:"چارج آئٹم میں ترمیم کریں",medicationUsed:"استعمال کی گئی ادویات",deleteMedicationUsed:"استعمال کی گئی ادویات حذف کریں",addMedicationUsed:"استعمال کی گئی ادویات شامل کریں",editMedicationUsed:"استعمال کی گئی ادویات میں ترمیم کریں",edit:"ضابطے میں ترمیم کریں",saved:"ضابطے محفوظ",new:"نیا طریقہ کار"},labels:{medicationUsed:"استعمال کی گئی ادویات"},messages:{deleteMedication:" آپ کو یقین ہے کہ آپ ان ادویات کو حذف کرنا چاہتے ہیں؟",delete:"آپ کو اس طریقہ کار کو حذف کرنا چاہتے ہیں تمہیں یقین ہے؟",saved:" آپ کو یقین ہے کہ آپ اس طریقہ کار کو حذف کرنا چاہتے ہیں؟"},buttons:{addMedication:"ادویات شامل کریں"}},components:{chargesByTypeTab:{charges:"چارجز"},customFormManager:{buttons:{addForm:"فارم کا اضافہ کریں"}},sortableColumn:{labels:{selectAll:"(تمام منتخب کریں)"}},dateTimePicker:{amHour:"{{hour}} AM",midnight:"آدھی رات",noon:"دوپہر",pmHour:"{{hour}} PM"},takePhoto:{how:"آپ ایک تصویر کو کس طرح شامل کرنا چاہتے ہیں؟",takePhoto:"تصویر کھینچیں",uploadFile:"فائل اپ لوڈ کریں",camera:"کیمرہ",photo:"تصویر",preview:"پیش نظارہ"},quantityConv:{unit:"اکائی",conversion:" میں کیا شامل ہے؟ {{name}} 1"},quantityCalc:{result:"{{targetUnit}} کل: {{calculated}}"},patientOrders:{buttons:{newImaging:"نئی امیجنگ",newLab:"نئی لیب",newMedication:"نئی ادویات"},labels:{imagingOrderType:"امیجنگ",labOrderType:"لیب",medicationOrderType:"ادویات",orderType:"آرڈر کی قسم"}},priceList:{charges:"{{pricingType}} چارجز"},operativeProcedures:{buttons:{addProcedure:"ضابطے شامل کریں"},labels:{procedure:"طریقہ کار"},titles:{procedures:"طریقہ کار/ ضابطے"}},upcomingAppointments:{labels:{date:"تاریخ",with:"کے ساتھ",location:"مقام",type:"قسم"},titles:{upcomingAppointments:"عنقریب آنے والی ملاقاتیں"}}},customForms:{buttons:{addForm:"فارم شامل کریں"},labels:{formToAdd:"شامل کرنے کے لئے فارم"},titles:{addCustomForm:"کسٹم فارم شامل کریں"}},diagnosis:{labels:{activeDiagnosis:"فعال تشخیص",date:"تاریخ",diagnosis:"تشخیص",secondaryDiagnosis:"ثانوی تشخیص"},titles:{addDiagnosis:"تشخیص کے لئے شامل کریں",editDiagnosis:"تشخیص میں ترمیم کریں"}},allergies:{buttons:{addAllergy:"الرجی شامل کریں"},titles:{addAllergy:"الرجی شامل کریں",editAllergy:"الرجی میں ترمیم کریں"},labels:{allergyName:"نام",patientAllergy:"مریض کی الرجی"}},operativePlan:{buttons:{completePlan:"مکمل حکمت عمل"},labels:{additionalNotes:"اضافی نوٹس",admissionInstructions:"داخلے کی ہدایات",caseComplexity:"کیس پیچیدگی",completedStatus:"مکمل",droppedStatus:"گرا دیا",operationDescription:"آپریشن کی تفصیل",plannedStatus:"منصوبہ بندی کر لی گئی",status:"صورتحال",surgeon:"سرجن"},messages:{planSaved:"آپریٹو پلان محفوظ ہوگیا ہے۔",planCompleted:"آپریٹو پلان مکمل ہو چکا ہے۔ اب آپریشن رپورٹ کی طرف آپ کی رہنمائی کی جائے گی۔"},titles:{editTitle:"آپریٹو پلان میں ترمیم کریں",newTitle:"نیا آپریٹو پلان",planCompleted:"پلان مکمل",planSaved:"پلان محفوظ"}},operationReport:{labels:{additionalNotes:"اضافی نوٹس",assistant:"مددگار",caseComplexity:"کیس پیچیدگی",operationDescription:"آپریشن کی تفصیل",preOpPrimaryDiagnosis:"آپریشن سے پہلے بنیادی تشخیص",preOpSecondaryDiagnosis:"آپریشن سے پہلے ثانوی تشخیص",surgeon:"سرجن",surgeryDate:"سرجری تاریخ"},messages:{reportSaved:"آپریشن رپورٹ محفوظ ہوگئی ہے۔"},titles:{editTitle:"آپریشن رپورٹ میں ترمیم کریں",newTitle:"نئے آپریشن کی رپورٹ",reportSaved:"رپورٹ محفوظ ہوگئی"}},application:{messages:{sessionExpired:"آپ کا سیشن متروک ہو گیا ہے۔ کاروائی جاری رکھنے کے لاگ ان کریں"},titles:{sessionExpired:"سیشن کی مدت ختم ہوگئی"}}}}),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:"TYQrMXNj",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"],["medication.messages.confirmDeletion"],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:"Xm0JjdeG",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",["em-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:"xGEaoO6P",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-default"],["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:"YZt6viXc",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",["em-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/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/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)||e===!1?"updateButtonAction":"disabledAction"}),editPanelProps:n.apply(void 0,l.concat([function(){return this.getProperties(l)}]))})}),define("hospitalrun/mixins/filter-list",["exports","ember"],function(e,t){var n=t.default.compare,a=t.default.get,l=t.default.isEmpty,s=t.default.String.isHTMLSafe,i=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,n){var i=a(this,"filteredBy");return l(t)&&l(i)?e:(l(t)||i.set(t,n),this.set("filteredBy",i),e.filter(function(e){var t=!0;return i.forEach(function(n,a){var i=e.get(a);l(n)||(s(n)?n=n.toString():n instanceof Date&&(n=n.getTime()),s(i)?i=i.toString():i instanceof Date&&(i=i.getTime()),i!==n&&(t=!1))}),t}))},sortFilteredList:function(e){var t=a(this,"sortByDesc"),s=a(this,"sortByKey");return l(e)||l(s)?e:e=e.toArray().sort(function(e,a){var l=e.get(s),i=a.get(s);return"orderType"===s&&(l=l.toString(),i=i.toString()),t?n(i,l):n(l,i)})},actions:{filter:function(e,t){i(this,"filterBy",e),i(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);r===!0?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:"0.9.18"})}),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:[{name:"Add",type:"Adjustment (Add)"},{name:"Remove",type:"Adjustment (Remove)"},{name:"Return To Vendor",type:"Return To Vendor"},{name:"Return",type:"Return"},{name:"Write Off",type:"Write Off"}]})}),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/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.isEqual;e.default=t.default.Mixin.create({navItems:[{title:"Inventory",iconClass:"octicon-package",route:"inventory",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",capability:"patients",subnav:[{title:"Patient Listing",iconClass:"octicon-chevron-right",route:"patients",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:"Missed Appointments",iconClass:"octicon-chevron-right",route:"appointments.missed",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:"invoices"},{title:"Price Profiles",iconClass:"octicon-chevron-right",route:"pricing.profiles",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:"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=this,a=function(e,t){return"string"==typeof e?t:e};return this.get("navItems").map(function(l){var s="navigation."+n(l.title).toLowerCase(),i=e.get("i18n").t(s);return t.default.set(l,"localizedTitle",a(i,l.title)),l.subnav=l.subnav.map(function(t){var l="navigation.subnav."+n(t.title),s=e.get("i18n").t(l);return t.localizedTitle=a(s,t.title),t}),l})}),findNavItemByRoute:function(e){for(var t=0;t0},_round100:function(e){var t=100*e;return Math.round(t)/100}})}),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 t.get("active")===!0&&t.get("diagnosis")===e.get("diagnosis")&&t.get("secondaryDiagnosis")===e.get("secondaryDiagnosis")})?this.silentUpdate("closeModal"):(n.addObject(e),this.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");return i(this.get("model.returnToVisit"))?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){var t=e.get("diagnosis"),a=e.getProperties("active","date","diagnosis","secondaryDiagnosis");return a.diagnosis=t,n.store.createRecord("diagnosis",a)}));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")})}),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=n(this,"currentDate"),s=this.$("input"),i=null,o=this.getProperties("format","yearRange","showTime");o.onSelect=this.dateSet.bind(this),a(n(this,"minDate"))||(o.minDate=n(this,"minDate"),"now"===o.minDate&&(o.minDate=new Date)),a(n(this,"maxDate"))||(o.maxDate=n(this,"maxDate"),"now"===o.maxDate&&(o.maxDate=new Date)),o.field=s[0],i=new Pikaday(o),t.default.run.next(this,function(){i.setDate(e)}),l(this,"_picker",i)},willDestroyElement:function(){var e=n(this,"_picker");e&&e.destroy(),l(this,"_picker",null)}})}),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){var a=n.default.computed,l=n.default.observer;e.default=n.default.Mixin.create({_mapContentItems:function(){var e=this,a=this.get("content");if(a){var l=a.filter(function(e){return!n.default.isEmpty(e)});return l=a instanceof t.default.RecordArray?l.map(function(t){var n=t.getProperties(e.get("displayKey"));return n[e.get("selectionKey")]=t,n}):l.map(function(t){var n={};return n[e.get("displayKey")]=t,n})}return[]},mappedContent:a("content",function(){return this._mapContentItems()}),contentChanged:l("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"},{name:"Doctor",roles:["Doctor","user"],defaultRoute:"patients"},{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"},{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"},{name:"Nurse",roles:["Nurse","user"],defaultRoute:"patients"},{name:"Nurse Manager",roles:["Nurse Manager","user"],defaultRoute:"patients"},{name:"Patient Administration",roles:["Patient Administration","user"],defaultRoute:"patients"},{name:"Pharmacist",roles:["Pharmacist","user"],defaultRoute:"medication.index"},{name:"Social Worker",roles:["Social Worker","user"],defaultRoute:"patients"},{name:"System Administrator",roles:["System Administrator","admin","user"],defaultRoute:"patients"},{name:"User Administrator",roles:["User Administrator","admin","user"],defaultRoute:"users"}];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"],add_appointment:["Data Entry","Finance","Hospital Administrator","Medical Records Officer","Patient Administration","Social Worker","System Administrator"],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"],add_payment:["Hospital Administrator","Medical Records Officer","System Administrator"],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"],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"],labs:["Data Entry","Doctor","Hospital Administrator","Lab Technician","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"],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 e(){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")})}),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(){r(this,"quantity",o(this,"purchases").reduce(function(e,t){var n=0;return t.get("expired")||(n=t.get("currentQuantity")),e+n},0))}})}),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("patientResponsibility","paidTotal",function(){var e=r(this,"patientResponsibility"),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"))){d(this,"patientInfo",r(this,"patient.displayName")+" - "+r(this,"patient.displayPatientId"))}}.observes("patient.displayName","patient.id","patient.displayPatientId"),patientResponsibilityTotals:l.default.computed.mapBy("lineItems","amountOwed"),patientResponsibility:l.default.computed.sum("patientResponsibilityTotals"),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){e.default=t.default.extend(n.default,l.default,i.default,{inventoryItem:a.default.belongsTo("inventory",{async:!0}),notes:a.default.attr("string"),patient:a.default.belongsTo("patient",{async:!1}),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"),visit:a.default.belongsTo("visit",{async:!1}),isRequested:function(){return"Requested"===this.get("status")}.property("status"),medicationName:function(){return this.getMedicationName("inventoryItem")}.property("medicationTitle","inventoryItem"),medicationPrice:function(){return this.getMedicationPrice("inventoryItem")}.property("priceOfMedication","inventoryItem"),prescriptionDateAsTime:function(){return this.dateToTime(this.get("prescriptionDate"))}.property("prescriptionDate"),requestedDateAsTime:function(){return this.dateToTime(this.get("requestedDate"))}.property("requestedDate"),validations:{prescription:{acceptance:{accept:!0,if:function(e){if(!e.get("hasDirtyAttributes")||e.get("isFulfilling"))return!1;var t=e.get("prescription"),n=e.get("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(!e.get("hasDirtyAttributes")||!e.get("isNew"))return!1;var t=e.get("inventoryItem.name"),n=e.get("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 e.get("selectPatient")}}},quantity:{numericality:{allowBlank:!0,greaterThan:0,messages:{greaterThan:"must be greater than 0"}},presence:{if:function(e){return e.get("isFulfilling")}},acceptance:{accept:!0,if:function(e){var t=e.get("isFulfilling"),n=parseInt(e.get("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"),validations:{name:{presence:!0},discountAmount:{numericality:{allowBlank:!0}},discountPercentage:{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"),surgeon:n.default.attr("string"),visit:n.default.belongsTo("visit",{async:!1}),validations:{visit:{presence:!0},reportDate:{presence:!0},surgeon:{presence:{if:function(e){return!e.get("visit.outPatient")},message:"Please select a surgeon"}}}})}),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/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)}):l.default.RSVP.resolve()},afterUpdate:function(e){var t=this;this._updateSequence(e).then(function(){t.send("openModal","dialog",l.default.Object.create({title:t.get("i18n").t("patients.titles.savedPatient"),message:t.get("i18n").t("patients.messages.savedPatient",e),updateButtonAction:"returnToPatient",updateButtonText:t.get("i18n").t("patients.buttons.backToPatients"),cancelButtonText:t.get("i18n").t("buttons.close")}))})}})}),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:"VnyJUzjn", -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]],"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:"XNP6TQZC",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-default 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-default 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-default 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:"j+0Es6Tb",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",["em-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:"eIHj9YjK",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",["em-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",["em-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(){r(this,"newPlan")?r(this,"model.patient").save().then(this._finishAfterUpdate.bind(this)):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(){u(r(this,"model"),"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:"t3/i0Jc0",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",["em-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",["em-text"],null,[["property","label","class"],["admissionInstructions",["helper",["t"],["operativePlan.labels.admissionInstructions"],null],"admission-instructions"]]],false],["text","\\n "],["append",["helper",["em-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:"UnoRIh+j",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-default"],["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"))&&n.get("patient.archived")!==!0}),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){var i=n.default.get,o=n.default.inject,r=n.default.isEmpty,d=n.default.Route,c=n.default.set,u=d.extend(t.default,a.default,l.default,{database:o.service(),config:o.service(),session:o.service(),shouldSetupUserRole:!0,actions:{closeModal:function(){this.disconnectOutlet({parentView:"application",outlet:"modal"})},error:function(e,t){var n=this;e instanceof s.default?function(){var e=n.get("i18n"),a=e.t("application.messages.sessionExpired"),l=i(n,"session"),s=e.t("application.titles.sessionExpired");if(r(t))n.displayAlert(s,a,"unauthorizeSession");else{var o=l.get("store"),d=l.get("data"),u=void 0;u=t.targetName?t.targetName:t,c(d,"transitionAfterLogin",u),o.persist(d).then(function(){n.displayAlert(s,a,"unauthorizeSession")})}}():this._super(e)},openModal:function(e,t){t&&c(this.controllerFor(e),"model",t),this.renderModal(e)},unauthorizeSession:function(){var e=i(this,"session");i(e,"isAuthenticated")&&e.invalidate()},updateModal:function(e,t){c(this.controllerFor(e),"model",t)}},model:function(e,t){var n=i(this,"session"),a=n&&i(n,"isAuthenticated");return i(this,"config").setup().then(function(e){if("finishgauth"!==t.targetName&&"login"!==t.targetName){if(c(this,"shouldSetupUserRole",!0),a)return i(this,"database").setup(e).catch(function(){n.invalidate()})}else"finishgauth"===t.targetName&&c(this,"shouldSetupUserRole",!1)}.bind(this))},afterModel:function(){c(this.controllerFor("navigation"),"allowSearch",!1),$("#apploading").remove()},renderModal:function(e){this.render(e,{into:"application",outlet:"modal"})},sessionAuthenticated:function(){var e=this;i(this,"shouldSetupUserRole")===!0&&this.setupUserRole();var t=i(this,"session"),n=t.get("data"),a=i(n,"transitionAfterLogin");if(r(a))this._super();else{var l=t.get("store");c(n,"transitionAfterLogin",null),l.persist(n).then(function(){e.transitionTo(a)})}}});e.default=u}),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)}})}),define("hospitalrun/routes/login",["exports","ember","ember-simple-auth/mixins/unauthenticated-route-mixin"],function(e,t,n){e.default=t.default.Route.extend(n.default,{config:t.default.inject.service(),beforeModel:function(e){if(!this.get("session").get("isAuthenticated"))return this.get("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.inject,a=t.default.run;e.default=t.default.Service.extend({configDB:null,database:n.service(),session:n.service(),sessionData:t.default.computed.alias("session.data"),setup:function(){var e=this.replicateConfigDB.bind(this),t=this.loadConfig.bind(this),n=this.createDB();return this.set("configDB",n),this.setCurrentUser(),e(n).then(t)},createDB:function(){return new PouchDB("config")},replicateConfigDB:function(e){return new t.default.RSVP.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_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 s.default(e,t)}return e},_mapPouchData:function(e){var t=this,n=[];return e&&(n=e.map(function(e){if(e.doc){var n={doc:e.doc.data};return n.doc.id=t.getEmberId(e.id),n}return e})),n},_createRemoteDB:function(e,a){return new t.default.RSVP.Promise(function(t,l){var s=new PouchDB(e,a);s.info().then(function(){(0,n.default)(s),t(s)}).catch(function(e){console.log("error with remote db:",JSON.stringify(e,null,2)),l(e)})})},_createLocalDB:function(e,a){return new t.default.RSVP.Promise(function(t,l){var s=new PouchDB(e,a);s.info().then(function(){(0,n.default)(s),t(s)}).catch(function(e){return l(e)})})}})}),define("hospitalrun/services/filesystem",["exports","ember"],function(e,t){e.default=t.default.Service.extend({config:t.default.inject.service(),filer:null,fileSystemSize:8589934592,_onError:function(e){console.log("Filer filesystem error: "+e)},_downloadFiles:function(){this.store.find("photo").then(function(e){e.forEach(function(e){this.downloadIfNeeded(e)}.bind(this))}.bind(this))},_downloadFileFromServer:function(e){var n=t.default.get(e,"fileName"),a=t.default.get(e,"id"),l=t.default.get(e,"url"),s=new XMLHttpRequest;t.default.isEmpty(l)||(s.open("GET",l,!0),s.responseType="blob",s.onload=function(){var e=new Blob([s.response]);this.addFile(e,n,a)}.bind(this),s.send())},setup:function(){var e=this.get("fileSystemSize"),t=new Filer;t.init({persistent:!0,size:e},function(){try{this.set("filer",t)}catch(e){}}.bind(this))},addFile:function(e,n,a){return new t.default.RSVP.Promise(function(l,s){var i=new Date,o=this.get("filer"),r=e.name||i.getTime(),d=n+r,c=this.get("config");if(n.indexOf(".")>-1){d=n;var u=n.split("/");r=u.pop(),n=u.join("/"),n+="/"}if(d.indexOf(".")===-1)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(e){function t(){if(!d&&r.config_disable_offline_sync!==!0){var e={ajax:{headers:{},timeout:3e4}};r.config_consumer_secret&&r.config_token_secret&&r.config_consumer_key&&r.config_oauth_token&&(e.ajax.headers["x-oauth-consumer-secret"]=r.config_consumer_secret,e.ajax.headers["x-oauth-consumer-key"]=r.config_consumer_key,e.ajax.headers["x-oauth-token-secret"]=r.config_token_secret,e.ajax.headers["x-oauth-token"]=r.config_oauth_token);var t=self.location.protocol+"//"+self.location.host+"/db/main",n=new PouchDB(t,e);d=u.sync(n,{live:!0,retry:!0}).on("change",function(e){logDebug("local sync change",e)}).on("paused",function(){logDebug("local sync paused")}).on("active",function(){logDebug("local sync active")}).on("denied",function(e){logDebug("local sync denied:",e)}).on("complete",function(e){logDebug("local sync complete:",e)}).on("error",function(e){logDebug("local sync error:",e)})}}function n(){return new Promise(function(e,t){r?e():c.allDocs({include_docs:!0}).then(function(t){r={},t.rows.forEach(function(e){r[e.id]=e.doc.value}),e()},t)})}function a(e,a,l,s){return n().then(t).catch(function(e){logDebug("Error setting up remote sync",JSON.stringify(e,null,2))}),logDebug("Looking for couchdb response for:",e.url),new Promise(function(t,n){var r=performance.now();toolbox.networkOnly(e,a,l).then(function(a){if(a){var l=performance.now()-r;t(a),i(l,e.url)}else logDebug("Network first returned no response, get data from local pouch db."),o(s,e,t,n)}).catch(function(a){logDebug("Network first returned err, get data from local pouch db:",a),o(s,e,t,n)})})}function l(e){return new Response(JSON.stringify(e),{status:200,statusText:"OK"})}function s(e){var t={};if(e.indexOf("?")>0)for(var n=e.split("?"),a=decodeURIComponent(n[1]).split("&"),l=0;l()[\]\\.,;:\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;a0)!function(){var o=e.rows.map(function(e){return s.getEmberId(e.id)});l.findRecord(t,a,o).then(function(e){var t=a.modelName.camelize().pluralize(),l=[];o.forEach(function(n){var a=e[t].findBy("id",n);l.push(a)}),e[t]=l,n(e)},i)}();else{var o={};o[a.modelName]=[],n(o)}})},_doesStartKeyContainSpecialCharacters:function(e){var t=!1,a=this.get("maxValue");return!n.default.isEmpty(e)&&n.default.isArray(e)&&e.forEach(function(e){null!==e&&e!==a||(t=!0)}),t},_startChangesToStoreListener:function(){var e=this.get("db");e&&(this.changes=e.changes({since:"now",live:!0,returnDocs:!1}).on("change",d(this,"onChange")).on("error",n.default.K),e.changesListener=this.changes)},generateIdForRecord:function(){return a.default.v4()},query:function(e,t,a,l){for(var s=this,i=!1,o=0;o0}),_canModifyValue:function(e,t){switch(t){case"inventory_types":if("Medication"===e)return!1;break;case"lab_pricing_types":if("Lab Procedure"===e)return!1;break;case"imaging_pricing_types":if("Imaging Procedure"===e)return!1;break;case"visit_types":if("Admission"===e)return!1;if("Imaging"===e)return!1;if("Lab"===e)return!1;if("Pharmacy"===e)return!1}return!0},_importLookupList:function(e){var t=this,n=u(this,"fileSystem"),l=u(this,"lookupTypeList"),s=u(l,"value");n.fileToString(e).then(function(e){(0,a.default)(e,{trim:!0},function(e,n){n.forEach(function(e){var t=d(e,1),n=t[0];s.includes(n)||s.addObject(n)}),s.sort();var a=u(t,"i18n"),i=a.t("admin.lookup.alertImportListSaveMessage"),o=a.t("admin.lookup.alertImportListSaveTitle");l.save().then(function(){u(t,"lookupLists").resetLookupList(u(l,"id")),t.displayAlert(o,i),t.set("importFile"),t.set("model.importFileName")})})})},_sortValues:function(e,n){return t.default.compare(e.toLowerCase(),n.toLowerCase())},activateKeyboard:t.default.on("init",function(){this.set("keyboardActivated",!0)}),updateListKeyboard:t.default.on((0,r.keyDown)("ctrl+KeyS"),(0,r.keyDown)("cmd+KeyS"),function(e){this.send("updateList"),e.preventDefault()}),actions:{addValue:function(){this.send("openModal","admin.lookup.edit",t.default.Object.create({isNew:!0}))},confirmDeleteValue:function(e){var n=this.get("i18n"),a=n.t("admin.lookup.titles.deleteLookupValue"),l=n.t("messages.delete",{name:e});this.displayConfirm(a,l,"deleteValue",t.default.Object.create({valueToDelete:e}))},deleteValue:function(e){var t=this.get("lookupTypeList"),n=t.get("value"),a=e.get("valueToDelete");n.removeObject(a.toString()),t.save()},editValue:function(e){t.default.isEmpty(e)||this.send("openModal","admin.lookup.edit",t.default.Object.create({isNew:!1,originalValue:e.toString(),value:e.toString()}))},importList:function(){var e=this.get("importFile");e&&e.type?this._importLookupList(e):this.displayAlert(this.get("i18n").t("admin.lookup.alertImportListTitle"),this.get("i18n").t("admin.lookup.alertImportListMessage"))},updateList:function(){var e=this,t=this.get("lookupTypeList");t.save().then(function(){u(e,"lookupLists").resetLookupList(u(t,"id")),e.displayAlert(e.get("i18n").t("admin.lookup.alertImportListUpdateTitle"),e.get("i18n").t("admin.lookup.alertImportListUpdateMessage"))})},updateValue:function(e){var t=!1,n=this.get("lookupTypeList"),a=n.get("value"),l=e.get("value");if(e.get("isNew"))t=!0;else{var s=e.get("originalValue");l!==s&&(a.removeObject(s),t=!0)}t&&(a.addObject(l),a=a.sort(this._sortValues),n.set("value",a),this.send("updateList"))}}})}),define("hospitalrun/admin/lookup/edit/controller",["exports","ember","hospitalrun/mixins/is-update-disabled"],function(e,t,n){e.default=t.default.Controller.extend(n.default,{editController:t.default.inject.controller("admin/lookup"),showUpdateButton:!0,updateButtonAction:"update",updateButtonText:function(){var e=this.get("i18n");return this.get("model.isNew")?e.t("buttons.add"):e.t("buttons.update")}.property("model.isNew"),actions:{cancel:function(){this.send("closeModal")},update:function(){t.default.isEmpty(this.get("model.value"))||(this.get("editController").send("updateValue",this.get("model")),this.send("closeModal"))}}})}),define("hospitalrun/admin/lookup/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"2fhdRW7b",block:'{"statements":[["block",["modal-dialog"],null,[["isUpdateDisabled","title","updateButtonAction","updateButtonText"],[["get",["isUpdateDisabled"]],["helper",["t"],[["helper",["if"],[["get",["model","isNew"]],"admin.lookup.edit.template.addTitle","admin.lookup.edit.template.editTitle"],null]],null],["get",["updateButtonAction"]],["get",["updateButtonText"]]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["em-input"],null,[["label","property","class"],[["helper",["t"],["admin.lookup.edit.template.labelTitle"],null],"value","lookup-type-value"]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton","action"],[["get",["model"]],false,"update"]],0]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/admin/lookup/edit/template.hbs"}})}),define("hospitalrun/admin/lookup/route",["exports","hospitalrun/routes/abstract-index-route","ember-i18n"],function(e,t,n){e.default=t.default.extend({hideNewButton:!0,pageTitle:(0,n.translationMacro)("admin.lookup.pageTitle"),model:function(){var e=this;return this.store.findAll("lookup").catch(function(t){return e.send("error",t)})},afterModel:function(e){e.set("lookupType","anesthesia_types")},actions:{deleteValue:function(e){this.controller.send("deleteValue",e)}}})}),define("hospitalrun/admin/lookup/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"fI9CAoea",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",["model"]],false]],6],["text"," "],["close-element"],["text","\\n"],["close-element"],["text","\\n"],["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",["lookupTitle"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["canEditValues"]]],null,5],["text"," "],["open-element","div",[]],["static-attr","class","panel-footer"],["flush-element"],["text","\\n"],["block",["if"],[["get",["canEditValues"]]],null,2],["block",["em-form"],null,[["model","submitButton"],[["get",["lookupTypeList"]],false]],1],["text"," "],["close-element"],["text","\\n"],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["em-checkbox"],null,[["label","property","class"],["Organize Pricing By Type","organizeByType","col-sm-4"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","col-sm-4"],["flush-element"],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["labels.userCanAddNewValue"],null],"userCanAdd"]]],false],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-primary"],["modifier",["action"],[["get",[null]],"updateList"]],["flush-element"],["append",["helper",["t"],["buttons.update"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["showOrganizeByType"]]],null,0],["text"," "],["open-element","div",[]],["static-attr","class","col-sm-4"],["flush-element"],["text","\\n "],["append",["helper",["file-upload"],null,[["label","property","selectedFile"],[["helper",["t"],["labels.importFile"],null],"importFileName",["get",["importFile"]]]]],false],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-primary"],["modifier",["action"],[["get",[null]],"importList"]],["flush-element"],["append",["helper",["t"],["buttons.import"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"addValue"]],["flush-element"],["append",["helper",["t"],["buttons.addValue"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"editValue",["get",["lookupTypeValue","value"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["append",["helper",["t"],["labels.edit"],null],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"confirmDeleteValue",["get",["lookupTypeValue","value"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["append",["helper",["t"],["labels.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","lookup-type-value"],["flush-element"],["append",["unknown",["lookupTypeValue","value"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["lookupTypeValue","canModify"]]],null,3],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["lookupTypeValue"]},{"statements":[["text"," "],["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.value"],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",["lookupTypeValues"]]],null,4],["text"," "],["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","selected"],["col-xs-3 lookup-type form-input-group",["helper",["t"],["labels.lookupType"],null],"lookupType",["get",["lookupTypes"]],"value","name",["get",["model","lookupType"]]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/admin/lookup/template.hbs"}})}),define("hospitalrun/admin/print-header/controller",["exports","hospitalrun/controllers/abstract-edit-controller"],function(e,t){e.default=t.default.extend({hideCancelButton:!0,updateCapability:"update_config",afterUpdate:function(){this.displayAlert(this.get("i18n").t("admin.header.titles.optionsSaved"),this.get("i18n").t("admin.header.messages.headerSaved"))}})}),define("hospitalrun/admin/print-header/route",["exports","hospitalrun/routes/abstract-edit-route","ember","ember-i18n","hospitalrun/utils/unauthorized-error"],function(e,t,n,a,l){function s(e,t){return null!=t&&t[Symbol.hasInstance]?t[Symbol.hasInstance](e):e instanceof t}e.default=t.default.extend({hideNewButton:!0,newTitle:(0,a.translationMacro)("admin.header.newTitle"),editTitle:(0,a.translationMacro)("admin.header.editTitle"),model:function(){var e=this;return new n.default.RSVP.Promise(function(t,n){e.get("store").find("option","print_header").then(function(e){t(e)},function(a){if(s(a,l.default))n(a);else{var i=e.get("store"),o=i.push(i.normalize("option",{id:"print_header",value:{facilityName:e.get("i18n").t("admin.header.facilityName"),headerLine1:e.get("i18n").t("admin.header.headerLine1")}}));t(o)}})})}})}),define("hospitalrun/admin/print-header/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"P8HLj9hB",block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["em-input"],null,[["label","property"],[["helper",["t"],["admin.header.facilityName"],null],"value.facilityName"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["label","property"],[["helper",["t"],["admin.header.headerLine1"],null],"value.headerLine1"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["label","property"],[["helper",["t"],["admin.header.headerLine2"],null],"value.headerLine2"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["label","property"],[["helper",["t"],["admin.header.headerLine3"],null],"value.headerLine3"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["label","property"],[["helper",["t"],["admin.header.logoURL"],null],"value.logoURL"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["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",["model"]],false]],0],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/admin/print-header/template.hbs"}})}),define("hospitalrun/admin/query/controller",["exports","ember","hospitalrun/mixins/edit-panel-props","hospitalrun/utils/select-values"],function(e,t,n,a){e.default=t.default.Controller.extend(n.default,{hideCancelButton:!0,showUpdateButton:!0,updateButtonAction:"query",updateButtonText:"Query",objectTypeList:["appointment","imaging","inv-location","inv-purchase","inv-request","inventory","invoice","lab","medication","patient","photo","procedure","visit","vital"],objectTypes:t.default.computed.map("objectTypeList",a.default.selectValuesMap),actions:{query:function(){var e=this.get("fieldName"),n=this.get("objectType"),a=this.get("queryValue"),l={containsValue:{value:a,keys:[e]}};this.store.query(n,l).then(function(e){var n=this;t.default.isEmpty(e)?(this.set("errorMessage","Query returned no results."),this.set("haveError",!0),this.set("showQueryResults",!1)):function(){var a=void 0,l=["id"],s=[];e.get("firstObject").eachAttribute(function(e){l.push(e)}),e.forEach(function(e){var n=[];l.forEach(function(l){a=e.get(l),t.default.isEmpty(a)||n.push({name:l,value:a})}),s.push(n)}),n.set("resultRows",s),n.set("haveError",!1),n.set("showQueryResults",!0)}()}.bind(this),function(e){this.set("errorMessage",e),this.set("haveError",!0),this.set("showQueryResults",!1)}.bind(this))}}})}),define("hospitalrun/admin/query/route",["exports","ember-simple-auth/mixins/authenticated-route-mixin","ember","hospitalrun/mixins/user-session"],function(e,t,n,a){e.default=n.default.Route.extend(a.default,t.default,{beforeModel:function(){this.currentUserCan("query_db")||this.transitionTo("application")}})}),define("hospitalrun/admin/query/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"jNp4d1tp", +block:'{"statements":[["text","\\n"],["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],5]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["unknown",["name"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["value"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["result"]},{"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"],["text","Field"],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["text","Value"],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["resultRow"]]],null,0],["text"," "],["close-element"],["text","\\n"]],"locals":["resultRow"]},{"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"],["text","Query Results"],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body"],["flush-element"],["text","\\n"],["block",["each"],[["get",["resultRows"]]],null,1],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-danger"],["static-attr","role","alert"],["flush-element"],["append",["unknown",["errorMessage"]],false],["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","selected"],["col-xs-3","Object Type","objectType",["get",["objectTypes"]],["get",["objectType"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["em-input"],null,[["label","property"],["Field Name","fieldName"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["label","property"],["Query Value","queryValue"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["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]],4],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["haveError"]]],null,3],["block",["if"],[["get",["showQueryResults"]]],null,2]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/admin/query/template.hbs"}})}),define("hospitalrun/admin/roles/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember","hospitalrun/mixins/user-roles","hospitalrun/mixins/user-session"],function(e,t,n,a,l){e.default=t.default.extend(a.default,l.default,{currentRole:"",disabledAction:!1,hideCancelButton:!0,updateCapability:"define_user_roles",filteredRoles:n.default.computed.filter("userRoles",function(e){return"System Administrator"!==e.name}),availableCapabilities:[{name:"admin",capabilities:["admin","loadDb","updateConfig","defineUserRoles"]},{name:"appointments",capabilities:["appointments","addAppointment"]},{name:"billing",capabilities:["billing","addBillingDiagnosis","addCharge","addPricing","addPricingProfile","addInvoice","addPayment","deleteInvoice","deletePricing","deletePricingProfile","editInvoice","invoices","overrideInvoice","pricing","cashier","listPaidInvoices"]},{name:"patients",capabilities:["patients","addAllergy","addDiagnosis","addNote","addOperativePlan","addOperationReport","addPhoto","addPatient","addProcedure","addSocialwork","addVisit","addVitals","admitPatient","deleteNote","deletePhoto","deletePatient","deleteAppointment","deleteDiagnosis","deleteProcedure","deleteSocialwork","deleteVitals","deleteVisit","dischargePatient","patientReports","visits"]},{name:"medication",capabilities:["medication","addMedication","deleteMedication","fulfillMedication"]},{name:"labs",capabilities:["labs","addLab","completeLab","deleteLab"]},{name:"imaging",capabilities:["imaging","addImaging","completeImaging","deleteImaging"]},{name:"incident",capabilities:["incident","addIncident","addIncidentCategory","deleteIncident","deleteIncidentCategory","manageIncidents","generateIncidentReport"]},{name:"inventory",capabilities:["inventory","addInventoryRequest","addInventoryItem","addInventoryPurchase","adjustInventoryLocation","deleteInventoryItem","fulfillInventory"]}],missingCapablities:n.default.computed("availableCapabilities","defaultCapabilities",function(){var e=this.get("availableCapabilities"),t=Object.keys(e),n=Object.keys(this.get("defaultCapabilities")),a=[];return n.forEach(function(n){var l=!1;t.forEach(function(t){e[t].capabilities.includes(n.camelize())&&(l=!0)}),l||a.push(n+" - "+n.camelize())}),a}),capabilitySections:n.default.computed.map("availableCapabilities",function(e){var t=this,n=[];return e.capabilities.forEach(function(e){n.push({key:e,name:t.get("i18n").t("admin.roles.capability."+e)})}),{name:this.get("i18n").t("admin.roles.capability."+e.name),capabilities:n}}),actions:{selectRole:function(e){var t=this,n=this.get("model").findBy("id",e.dasherize());this.set("currentRole",e),this.set("roleToUpdate",n);try{n?function(){var e=n.get("capabilities");t.get("availableCapabilities").forEach(function(n){n.capabilities.forEach(function(n){e.includes(n)?t.set(n,!0):t.set(n,!1)})})}():function(){var n=t.get("defaultCapabilities");Object.keys(n).forEach(function(a){n[a].includes(e)?t.set(a.camelize(),!0):t.set(a.camelize(),!1)})}()}catch(e){console.log("ex setting role:",e)}},update:function(){var e=this,t=this.get("currentRole"),a=this.get("roleToUpdate");n.default.isEmpty(a)&&(a=this.get("store").createRecord("user-role",{id:t.dasherize(),name:t}));var l=[];this.get("availableCapabilities").forEach(function(t){t.capabilities.forEach(function(t){!0===e.get(t)&&l.push(t)})}),a.set("capabilities",l),a.save().then(function(){e.displayAlert(e.get("i18n").t("admin.roles.titles.roleSaved"),e.get("i18n").t("admin.roles.messages.roleSaved",{roleName:t}))})}}})}),define("hospitalrun/admin/roles/route",["exports","hospitalrun/routes/abstract-edit-route","ember-i18n"],function(e,t,n){e.default=t.default.extend({hideNewButton:!0,newTitle:(0,n.translationMacro)("admin.userRoles"),editTitle:(0,n.translationMacro)("admin.userRoles"),model:function(){return this.get("store").findAll("user-role")}})}),define("hospitalrun/admin/roles/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"2aNV3BOq",block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],4]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["get",["capability","name"]],["get",["capability","key"]],["helper",["concat"],["checkbox"," checkbox-",["get",["capability","key"]]],null]]]],false],["text","\\n"]],"locals":["capability"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","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",["unknown",["capabilitySection","name"]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","detail-section-content"],["flush-element"],["text","\\n"],["block",["each"],[["get",["capabilitySection","capabilities"]]],null,0],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["capabilitySection"]},{"statements":[["text"," "],["open-element","option",[]],["dynamic-attr","value",["concat",[["unknown",["userRole","name"]]]]],["dynamic-attr","selected",["helper",["eq"],[["get",["selectedRole"]],["get",["userRole","name"]]],null],null],["flush-element"],["text","\\n "],["append",["unknown",["userRole","name"]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":["userRole"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","form-group has-success"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["labels.role"],null],false],["close-element"],["text","\\n "],["open-element","select",[]],["dynamic-attr","onchange",["helper",["action"],[["get",[null]],"selectRole"],[["value"],["target.value"]]],null],["static-attr","class","form-control role-select"],["flush-element"],["text","\\n "],["open-element","option",[]],["static-attr","disabled",""],["dynamic-attr","selected",["helper",["is-not"],[["get",["selectedRole"]]],null],null],["flush-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["filteredRoles"]]],null,2],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["capabilitySections"]]],null,1]],"locals":[]},{"statements":[["text"," "],["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]],3],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/admin/roles/template.hbs"}})}),define("hospitalrun/admin/route",["exports","hospitalrun/routes/abstract-module-route"],function(e,t){e.default=t.default.extend({addCapability:"add_user",allowSearch:!1,moduleName:"admin",sectionTitle:"Admin",editPath:function(){return"users.edit"}.property(),deletePath:function(){return"users.delete"}.property()})}),define("hospitalrun/admin/textreplace/controller",["exports","ember","ember-validations"],function(e,t,n){e.default=t.default.Controller.extend(n.default,{hideCancelButton:!0,updateCapability:"update_config",createExpansion:function(){var e=this.get("store").createRecord("text-expansion");this.set("newExpansion",e)}.on("init"),actions:{cancelExpansion:function(){this.createExpansion()}},validations:{"newExpansion.from":{presence:!0},"newExpansion.to":{presence:!0}}})}),define("hospitalrun/admin/textreplace/route",["exports","hospitalrun/routes/abstract-index-route","ember-i18n"],function(e,t,n){e.default=t.default.extend({pageTitle:(0,n.translationMacro)("admin.textReplacements.pageTitle"),hideNewButton:!0,model:function(){return this.get("store").findAll("text-expansion").then(function(e){return e.filter(function(e){return!e.get("isNew")})})},setupController:function(e,t){this._super(e,t),e.createExpansion()},actions:{addExpansion:function(e){var t=this;e.save().then(function(){t.refresh()}).catch(function(){t.refresh()})},deleteExpansion:function(e){var t=this;e.deleteRecord(),e.save().then(function(){t.refresh()}).catch(function(){t.refresh()})}}})}),define("hospitalrun/admin/textreplace/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"ixYKqrQh",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 "],["open-element","p",[]],["flush-element"],["append",["helper",["t"],["admin.textReplacements.replDesc"],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.from"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.to"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","tbody",[]],["flush-element"],["text","\\n"],["block",["each"],[["get",["model"]]],null,1],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["close-element"],["text","\\n"],["open-element","div",[]],["static-attr","class","panel"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body"],["flush-element"],["text","\\n "],["open-element","h3",[]],["flush-element"],["append",["helper",["t"],["admin.textReplacements.createNew"],null],false],["close-element"],["text","\\n"],["block",["em-form"],null,[["model","action","formLayout","showErrorsOnFocusIn","submitButton"],[["get",["newExpansion"]],"addExpansion","horizontal","true",false]],0],["text"," "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-footer"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn button-primary on-white"],["dynamic-attr","disabled",["unknown",["isInvalid"]],null],["modifier",["action"],[["get",[null]],"addExpansion",["get",["newExpansion"]]]],["flush-element"],["append",["helper",["t"],["buttons.add"],null],false],["close-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn button-default on-white"],["modifier",["action"],[["get",[null]],"cancelExpansion"]],["flush-element"],["append",["helper",["t"],["buttons.cancel"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["em-input"],null,[["property","label","placeholder"],["from",["helper",["t"],["labels.from"],null],["helper",["t"],["admin.textReplacements.toReplace"],null]]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","placeholder"],["to",["helper",["t"],["labels.to"],null],["helper",["t"],["admin.textReplacements.replaceWith"],null]]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","#"],["append",["unknown",["expansion","from"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["expansion","to"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","pull-right btn button-default on-white"],["modifier",["action"],[["get",[null]],"deleteExpansion",["get",["expansion"]]]],["flush-element"],["append",["helper",["t"],["buttons.delete"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["expansion"]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/admin/textreplace/template.hbs"}})}),define("hospitalrun/admin/visit-forms/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember","hospitalrun/mixins/visit-types"],function(e,t,n,a){var l=n.default.computed;e.default=t.default.extend(a.default,{hideCancelButton:!0,updateCapability:"update_config",visitTypesList:l.alias("model.visitTypesList"),visitFormsForEditing:l("model.visitForms","visitTypes",function(){var e=this.get("model.visitForms");return this.get("visitTypes").map(function(t){return e[t.value]||(e[t.value]="initial"),{type:t.value,form:e[t.value]}})}),visitTemplateIds:["initial","followup"],visitTemplates:l(function(){var e=this.get("i18n");return this.get("visitTemplateIds").map(function(t){return{id:t,value:e.t("admin.visitForms.labels."+t)}})}),afterUpdate:function(){this.displayAlert(this.get("i18n").t("admin.address.titles.optionsSaved"),this.get("i18n").t("admin.address.messages.addressSaved"))},actions:{selectForm:function(e,t){this.get("model.visitForms")[e]=t.target.value}}})}),define("hospitalrun/admin/visit-forms/route",["exports","hospitalrun/routes/abstract-edit-route","ember","ember-i18n"],function(e,t,n,a){e.default=t.default.extend({hideNewButton:!0,editTitle:(0,a.translationMacro)("admin.visitForms.titles.visitForms"),newTitle:n.default.computed.alias("editTitle"),model:function(){var e=this.get("store"),t={visitFormsOption:e.find("option","visit_forms"),visitTypes:e.find("lookup","visit_types")};return new n.default.RSVP.Promise(function(e,a){n.default.RSVP.hashSettled(t).then(function(t){var a=n.default.Object.create();"fulfilled"===t.visitTypes.state&&a.set("visitTypesList",t.visitTypes.value),"fulfilled"===t.visitFormsOption.state?a.set("visitForms",t.visitFormsOption.value):a.set("visitForms",{}),e(a)},a)})}})}),define("hospitalrun/admin/visit-forms/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"Wi/FzQog",block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],3]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","option",[]],["dynamic-attr","value",["concat",[["unknown",["visitTemplate","id"]]]]],["dynamic-attr","selected",["helper",["eq"],[["get",["visitForm","form"]],["get",["visitTemplate","id"]]],null],null],["flush-element"],["text","\\n "],["append",["unknown",["visitTemplate","value"]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":["visitTemplate"]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["visitForm","type"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","select",[]],["dynamic-attr","onchange",["helper",["action"],[["get",[null]],"selectForm",["get",["visitForm","type"]]],null],null],["static-attr","class","form-control role-select"],["flush-element"],["text","\\n"],["block",["each"],[["get",["visitTemplates"]]],null,1],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["visitForm"]},{"statements":[["text"," "],["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\\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"],["admin.visitForms.labels.visitType"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["admin.visitForms.labels.form"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["visitFormsForEditing"]]],null,2],["text"," "],["close-element"],["text","\\n"],["block",["em-form"],null,[["model","submitButton"],[["get",[null]],false]],0],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/admin/visit-forms/template.hbs"}})}),define("hospitalrun/admin/workflow/controller",["exports","hospitalrun/controllers/abstract-edit-controller"],function(e,t){e.default=t.default.extend({hideCancelButton:!0,updateCapability:"update_config",afterUpdate:function(){this.displayAlert(this.get("i18n").t("admin.workflow.titles.optionsSaved"),this.get("i18n").t("admin.workflow.messages.optionsSaved"))}})}),define("hospitalrun/admin/workflow/route",["exports","hospitalrun/routes/abstract-edit-route","ember-i18n"],function(e,t,n){e.default=t.default.extend({hideNewButton:!0,editTitle:(0,n.translationMacro)("admin.workflow.editTitle"),model:function(){var e=this.get("store");return e.find("option","workflow_options").catch(function(){return e.push(e.normalize("option",{id:"workflow_options",value:{admissionDeposit:!1,clinicPrepayment:!1,followupPrepayment:!1,outpatientLabPrepayment:!1,outpatientImagingPrepayment:!1,outpatientMedicationPrepayment:!1}}))})}})}),define("hospitalrun/admin/workflow/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"Mr+Jr99y",block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["admin.workflow.admissionDepositLabel"],null],"value.admissionDeposit"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["admin.workflow.clinicPrepaymentLabel"],null],"value.clinicPrepayment"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["admin.workflow.followupPrepaymentLabel"],null],"value.followupPrepayment"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["admin.workflow.outpatientLabLabel"],null],"value.outpatientLabPrepayment"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["admin.workflow.outpatientImagingLabel"],null],"value.outpatientImagingPrepayment"]]],false],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["admin.workflow.outpatientMedicationLabel"],null],"value.outpatientMedicationPrepayment"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["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",["model"]],false]],0],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/admin/workflow/template.hbs"}})}),define("hospitalrun/allergy/edit/controller",["exports","ember","hospitalrun/controllers/abstract-edit-controller"],function(e,t,n){var a=t.default.computed,l=t.default.computed.alias,s=t.default.get,i=t.default.inject,o=t.default.set;e.default=n.default.extend({i18n:i.service(),editController:l("model.editController"),newAllergy:!1,additionalButtons:a("model.isNew",function(){var e=s(this,"model"),t=s(this,"i18n").t("buttons.delete");if(!s(e,"isNew"))return[{class:"btn btn-default warning",buttonAction:"deleteAllergy",buttonIcon:"octicon octicon-x",buttonText:t}]}),title:t.default.computed("model",function(){var e=s(this,"model"),t=s(this,"i18n");return s(e,"isNew")?t.t("allergies.titles.addAllergy"):t.t("allergies.titles.editAllergy")}),beforeUpdate:function(){var e=s(this,"model");return o(this,"newAllergy",s(e,"isNew")),t.default.RSVP.Promise.resolve()},afterUpdate:function(e){s(this,"newAllergy")?(s(this,"editController").send("addAllergy",e),o(this,"name","")):this.send("closeModal")},actions:{cancel:function(){this.send("closeModal")},deleteAllergy:function(){var e=s(this,"model");s(this,"editController").send("deleteAllergy",e)}}})}),define("hospitalrun/allergy/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"pZACHNtQ",block:'{"statements":[["block",["modal-dialog"],null,[["title","updateButtonText","hideCancelButton","isUpdateDisabled","updateButtonAction","additionalButtons"],[["get",["title"]],["get",["updateButtonText"]],true,["get",["isUpdateDisabled"]],["get",["updateButtonAction"]],["get",["additionalButtons"]]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-input"],null,[["class","label","property"],["col-xs-12 form-group required test-allergy",["helper",["t"],["allergies.labels.allergyName"],null],"name"]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text","\\n"],["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],0],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/allergy/edit/template.hbs"}})}),define("hospitalrun/app",["exports","ember","hospitalrun/resolver","ember-load-initializers","hospitalrun/config/environment"],function(e,t,n,a,l){var s=void 0;t.default.MODEL_FACTORY_INJECTIONS=!0,s=t.default.Application.extend({modulePrefix:l.default.modulePrefix,podModulePrefix:l.default.podModulePrefix,Resolver:n.default}),(0,a.default)(s,l.default.modulePrefix),e.default=s}),define("hospitalrun/appointments/calendar/controller",["exports","hospitalrun/appointments/index/controller","hospitalrun/mixins/appointment-statuses","moment","hospitalrun/mixins/visit-types","hospitalrun/utils/select-values","ember"],function(e,t,n,a,l,s,i){var o=i.default.computed,r=i.default.computed.alias,d=i.default.get,c=i.default.inject,u=i.default.isEmpty,p=i.default.set;e.default=t.default.extend(n.default,l.default,{appointmentType:null,endDate:null,location:null,provider:null,queryParams:["appointmentType","endDate","provider","status","startDate","location","viewType"],startDate:null,status:null,viewType:"agendaWeek",appointmentsController:c.controller("appointments"),locations:r("appointmentsController.locationList.value"),physicians:r("appointmentsController.physicianList.value"),calendarDate:o("startDate",function(){var e=d(this,"startDate");if(!u(e))return(0,a.default)(parseInt(e))}),locationList:o("locations",function(){return s.default.selectValues(d(this,"locations"),!0)}),physicianList:o("physicians",function(){return s.default.selectValues(d(this,"physicians"),!0)}),_getSelectedFilteringCriteria:function(){var e={status:d(this,"model.selectedStatus"),type:d(this,"model.selectedAppointmentType"),provider:d(this,"model.selectedProvider"),location:d(this,"model.selectedLocation")};return{status:u(e.status)?null:e.status,type:u(e.type)?null:e.type,provider:u(e.provider)?null:e.provider,location:u(e.location)?null:e.location}},actions:{clearFilteringCriteria:function(){p(this,"model.selectedStatus",null),p(this,"model.selectedAppointmentType",null),p(this,"model.selectedProvider",null),p(this,"model.selectedLocation",null),this.send("filter")},createNewAppointment:function(e){var t=this.store.createRecord("appointment",{appointmentType:"Admission",allDay:!1,selectPatient:!0,startDate:e.local().toDate()});this.send("editAppointment",t)},filter:function(){var e=this._getSelectedFilteringCriteria();this.setProperties({appointmentType:e.type,provider:e.provider,status:e.status,location:e.location})},handleVisualConfigurationChanged:function(e){this.setProperties(e)},navigateToAppointment:function(e){this.send("editAppointment",e.referencedAppointment)},updateAppointment:function(e){var t=this,n=e.referencedAppointment,a=e.end.local().toDate(),l=e.start.local().toDate();p(n,"startDate",l),p(n,"endDate",a),n.save().catch(function(e){t.send("error",e,"appointments.calendar")})}}})}),define("hospitalrun/appointments/calendar/route",["exports","hospitalrun/appointments/index/route","ember","ember-i18n"],function(e,t,n,a){var l=n.default.get,s=n.default.isEmpty;e.default=t.default.extend({dateIntervalEnd:null,dateIntervalStart:null,editReturn:"appointments.calendar",filterParams:["appointmentType","provider","status","location"],modelName:"appointment",pageTitle:(0,a.translationMacro)("appointments.calendarTitle"),queryParams:{appointmentType:{refreshModel:!0},endDate:{refreshModel:!0},provider:{refreshModel:!0},status:{refreshModel:!0},startDate:{refreshModel:!0},location:{refreshModel:!0},viewType:{refreshModel:!1}},model:function(e){return this._super(e).then(this._createCalendarEvents.bind(this)).then(function(t){return t.selectedAppointmentType=e.appointmentType,t.selectedProvider=e.provider,t.selectedStatus=e.status,t.selectedLocation=e.location,t})},_createCalendarEvent:function(e){var t=l(e,"patient.displayName"),n=l(e,"provider");s(n)||(t=t+"\n"+n);var a={allDay:l(e,"allDay"),title:t,start:l(e,"startDate"),end:l(e,"endDate"),referencedAppointment:e},i=l(e,"location");if(s(i)){i=l(this,"i18n").t("appointments.labels.noLocation").toString()}return a.resourceId=i.toLowerCase(),a},_createCalendarEvents:function(e){var t=this,n=[],a=[];return e.forEach(function(e){var s=t._createCalendarEvent(e);n.push(s);var i=l(s,"resourceId");a.findBy("id",i)||a.push({id:i,title:l(s,"referencedAppointment.location")})}),{events:n,resources:a}},_modelQueryParams:function(e){var t=e.endDate,n=e.startDate;return null===t||null===n?this._super(e):{options:{startkey:[parseInt(n),parseInt(n),this._getMinPouchId()],endkey:[parseInt(t),parseInt(t),this._getMaxPouchId()]},mapReduce:"appointments_by_date"}}})}),define("hospitalrun/appointments/calendar/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"lDeJjJGt", +block:'{"statements":[["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]],0],["text"," "],["open-element","div",[]],["static-attr","class","panel-footer"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"clearFilteringCriteria"]],["flush-element"],["append",["helper",["t"],["buttons.clear"],null],false],["close-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-primary"],["modifier",["action"],[["get",[null]],"filter"]],["flush-element"],["append",["helper",["t"],["buttons.filter"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["calendar-control"],null,[["events","defaultDate","defaultView","onDayClick","onEventClick","onEventDrop","onEventResize","onVisualConfigurationChanged","userCanEdit"],[["get",["model","events"]],["get",["calendarDate"]],["get",["viewType"]],["helper",["action"],[["get",[null]],"createNewAppointment"],null],["helper",["action"],[["get",[null]],"navigateToAppointment"],null],["helper",["action"],[["get",[null]],"updateAppointment"],null],["helper",["action"],[["get",[null]],"updateAppointment"],null],["helper",["action"],[["get",[null]],"handleVisualConfigurationChanged"],null],["get",["canEdit"]]]]],false],["text","\\n "],["close-element"],["text","\\n"],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content"],["col-sm-3 form-input-group",["helper",["t"],["models.appointment.labels.status"],null],"selectedStatus",["get",["appointmentStatusesWithEmpty"]]]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content"],["col-sm-3 form-input-group",["helper",["t"],["models.appointment.labels.type"],null],"selectedAppointmentType",["get",["visitTypesWithEmpty"]]]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content"],["col-sm-3 form-input-group",["helper",["t"],["models.appointment.labels.provider"],null],"selectedProvider",["get",["physicianList"]]]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content"],["col-sm-3 form-input-group",["helper",["t"],["models.appointment.labels.location"],null],"selectedLocation",["get",["locationList"]]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/appointments/calendar/template.hbs"}})}),define("hospitalrun/appointments/delete/controller",["exports","hospitalrun/controllers/abstract-delete-controller"],function(e,t){e.default=t.default.extend({title:"Delete Appointment",afterDeleteAction:function(){return this.get("model.deleteFromPatient")?"appointmentDeleted":"closeModal"}.property("model.deleteFromPatient")})}),define("hospitalrun/appointments/delete/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"UFg2bH6V",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\\n "],["append",["helper",["t"],["messages.delete_singular"],[["name"],[["helper",["t"],["models.appointment.names.singular"],null]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/appointments/delete/template.hbs"}})}),define("hospitalrun/appointments/edit/controller",["exports","hospitalrun/controllers/abstract-edit-controller","hospitalrun/mixins/appointment-statuses","ember","hospitalrun/mixins/patient-submodule","hospitalrun/mixins/visit-types"],function(e,t,n,a,l,s){var i=a.default.computed,o=a.default.computed.alias,r=a.default.get,d=a.default.inject,c=a.default.set;e.default=t.default.extend(n.default,l.default,s.default,{findPatientVisits:!1,updateCapability:"add_appointment",appointmentsController:d.controller("appointments"),physicianList:o("appointmentsController.physicianList"),surgeryLocationList:o("appointmentsController.surgeryLocationList"),visitLocationList:o("appointmentsController.locationList"),visitTypesList:o("appointmentsController.visitTypesList"),cancelAction:i("model.returnTo",function(){var e=r(this,"model.returnTo");return a.default.isEmpty(e)?this._super():"returnTo"}),isAdmissionAppointment:i("model.appointmentType",function(){var e=r(this,"model");return"Admission"===r(e,"appointmentType")}),lookupListsToUpdate:i("model.appointmentType",function(){var e=r(this,"model.appointmentType"),t=[{name:"physicianList",property:"model.provider",id:"physician_list"}];"Surgery"===e?t.push({name:"visitLocationList",property:"model.location",id:"visit_location_list"}):t.push({name:"surgeryLocationList",property:"model.location",id:"procedure_locations"})}),showTime:i("model.allDay","isAdmissionAppointment",function(){var e=r(this,"model.allDay"),t=r(this,"isAdmissionAppointment");return!e&&t}),afterUpdate:function(e){var t=r(this,"i18n"),n={patient:r(e,"patient.displayName")},a=t.t("appointments.messages.appointmentSaved",n),l=t.t("appointments.titles.appointmentSaved");this.displayAlert(l,a)},actions:{appointmentTypeChanged:function(e){var t=r(this,"model");c(t,"appointmentType",e);var n=r(this,"isAdmissionAppointment");c(t,"allDay",n)}}})}),define("hospitalrun/appointments/edit/route",["exports","hospitalrun/routes/abstract-edit-route","hospitalrun/mixins/add-to-patient-route","ember","moment","hospitalrun/mixins/patient-list-route","ember-i18n"],function(e,t,n,a,l,s,i){var o=a.default.get,r=a.default.isEmpty,d=a.default.RSVP.resolve;e.default=t.default.extend(n.default,s.default,{editTitle:(0,i.translationMacro)("appointments.editTitle"),modelName:"appointment",newButtonText:(0,i.translationMacro)("appointments.buttons.newButton"),newTitle:(0,i.translationMacro)("appointments.newTitle"),getNewData:function(e){var t=o(this,"idParam"),n={appointmentType:"Admission",allDay:!0,selectPatient:!0,startDate:new Date};return r(t)||"newsurgery"!==e[t]||(n.appointmentType="Surgery",n.allDay=!1,n.endDate=(0,l.default)().add("1","hours").toDate(),n.returnTo="appointments.theater"),d(n)},getScreenTitle:function(e){if("Surgery"===o(e,"appointmentType")){var t=o(this,"i18n");return o(e,"isNew")?t.t("appointments.titles.newSurgicalAppointment"):t.t("appointments.titles.editSurgicalAppointment")}return this._super(e)},model:function(e){var t=this.get("idParam"),n=e[t];if(r(t)||0!==n.indexOf("new"))return this._super(e);if(r(e.forPatientId)){if(r(e.forVisitId))return this._createNewRecord(e);var a=this._super(e);return this._setVisitOnModel(a,e.forVisitId)}var a=this._super(e);return this._setPatientOnModel(a,e.forPatientId)}})}),define("hospitalrun/appointments/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"TCL5xbjW",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 "],["open-element","div",[]],["static-attr","class","form-input-group col-sm-6 required test-appointment-type"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["static-attr","for","startTime"],["flush-element"],["append",["helper",["t"],["models.appointment.labels.type"],null],false],["close-element"],["text","\\n "],["append",["helper",["select-list"],null,[["content","optionLabelPath","optionValuePath","value","class","id","action"],[["get",["visitTypes"]],"value","id",["get",["model","appointmentType"]],"form-control","appointmentType",["helper",["action"],[["get",[null]],"appointmentTypeChanged"],null]]]],false],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["className","property","label","list","selection"],["col-sm-6 test-appointment-with","provider",["helper",["t"],["models.appointment.labels.provider"],null],["get",["physicianList"]],["get",["model","provider"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["className","property","label","list","selection"],["col-sm-6 test-appointment-location","location",["helper",["t"],["models.appointment.labels.location"],null],["get",["visitLocationList"]],["get",["model","location"]]]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","property","label","content"],["form-input-group col-sm-3 test-appointment-status","status",["helper",["t"],["models.appointment.labels.status"],null],["get",["appointmentStatuses"]]]]],false],["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"],["col-sm-6 test-appointment-with","provider",["helper",["t"],["models.appointment.labels.provider"],null],["get",["physicianList"]],["get",["model","provider"]]]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["className","property","label","list","selection"],["col-sm-6 test-appointment-location","location",["helper",["t"],["models.appointment.labels.location"],null],["get",["surgeryLocationList"]],["get",["model","location"]]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["date-time-picker"],null,[["datePickerClass","label","model"],["required test-appointment-date",["helper",["t"],["labels.date"],null],["get",["model"]]]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["date-picker"],null,[["property","label","showTime","class"],["startDate",["helper",["t"],["models.appointment.labels.startDate"],null],["get",["showTime"]],"col-sm-4 required test-appointment-start"]]],false],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","showTime","class"],["endDate",["helper",["t"],["models.appointment.labels.endDate"],null],["get",["showTime"]],"col-sm-4 required test-appointment-end"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["patient-summary"],null,[["patient","returnTo","returnToContext","disablePatientLink"],[["get",["model","patient"]],"appointments.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"],["models.patient.names.singular"],null],["get",["patientList"]],["get",["selectedPatient"]],"required test-patient-input"]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["model","selectPatient"]]],null,5,4],["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n"],["block",["if"],[["get",["isAdmissionAppointment"]]],null,3,2],["text"," "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["helper",["t"],["models.appointment.labels.allDay"],null],"allDay","col-sm-2 appointment-all-day"]]],false],["text","\\n "],["close-element"],["text","\\n\\n"],["block",["if"],[["helper",["eq"],[["get",["model","appointmentType"]],"Surgery"],null]],null,1,0],["text"," "],["append",["helper",["expand-text"],null,[["label","property","rows"],[["helper",["t"],["models.appointment.labels.notes"],null],"notes",3]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],6]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/appointments/edit/template.hbs"}})}),define("hospitalrun/appointments/index/controller",["exports","hospitalrun/controllers/abstract-paged-controller","hospitalrun/mixins/user-session"],function(e,t,n){e.default=t.default.extend(n.default,{startKey:[],canAddVisit:function(){return this.currentUserCan("add_visit")}.property(),canEdit:function(){return this.currentUserCan("add_appointment")}.property(),canDelete:function(){return this.currentUserCan("delete_appointment")}.property(),sortProperties:["startDate","endDate"],sortAscending:!0})}),define("hospitalrun/appointments/index/route",["exports","hospitalrun/routes/abstract-index-route","moment","ember-i18n"],function(e,t,n,a){e.default=t.default.extend({editReturn:"appointments.index",modelName:"appointment",newButtonText:(0,a.translationMacro)("appointments.buttons.newButton"),pageTitle:(0,a.translationMacro)("appointments.thisWeek"),_getStartKeyFromItem:function(e){var t=e.get("endDate"),n=this._getPouchIdFromItem(e),a=e.get("startDate");return t&&""!==t&&(t=new Date(t),t.getTime&&(t=t.getTime())),a&&""!==a&&(a=new Date(a),a.getTime&&(a=a.getTime())),[a,t,n]},_modelQueryParams:function(){var e=(0,n.default)().endOf("week").toDate().getTime();return{options:{startkey:[(0,n.default)().startOf("week").toDate().getTime(),null,null],endkey:[e,e,this._getMaxPouchId()]},mapReduce:"appointments_by_date"}},actions:{editAppointment:function(e){e.set("returnTo",this.get("editReturn")),this.send("editItem",e)}}})}),define("hospitalrun/appointments/index/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"iYHwvIbB",block:'{"statements":[["block",["item-listing"],null,[["paginationProps"],[["get",["paginationProps"]]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["partial","appointments/item"],["text","\\n"]],"locals":["appointment"]},{"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"],["models.appointment.labels.appointmentDate"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["models.patient.labels.name"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["models.appointment.labels.type"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["models.appointment.labels.location"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["models.appointment.labels.provider"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["models.appointment.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"]]],null,0],["text"," "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":true}',meta:{moduleName:"hospitalrun/appointments/index/template.hbs"}})}),define("hospitalrun/appointments/item/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"nE13fpXw",block:'{"statements":[["open-element","tr",[]],["modifier",["action"],[["get",[null]],"editAppointment",["get",["appointment"]]]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","appointment-date"],["flush-element"],["text","\\n "],["append",["unknown",["appointment","formattedAppointmentDate"]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["appointment","patient","displayName"]],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","location"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["appointment","provider"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","appointment-status"],["flush-element"],["append",["unknown",["appointment","displayStatus"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["canEdit"]]],null,3],["block",["if"],[["get",["canAddVisit"]]],null,2],["block",["if"],[["get",["canDelete"]]],null,0],["text"," "],["close-element"],["text","\\n"],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"deleteItem",["get",["appointment"]]],[["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"],["modifier",["action"],[["get",[null]],"checkIn",["get",["appointment"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","glyphicon glyphicon-log-in"],["flush-element"],["close-element"],["text","\\n "],["append",["helper",["t"],["visits.buttons.checkIn"],null],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["helper",["eq"],[["get",["appointment","displayStatus"]],"Scheduled"],null]],null,1]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"editAppointment",["get",["appointment"]]],[["bubbles"],[false]]],["flush-element"],["append",["helper",["t"],["labels.edit"],null],false],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/appointments/item/template.hbs"}})}),define("hospitalrun/appointments/route",["exports","hospitalrun/routes/abstract-module-route","hospitalrun/mixins/user-session","ember-i18n"],function(e,t,n,a){e.default=t.default.extend(n.default,{addCapability:"add_appointment",allowSearch:!1,currentScreenTitle:(0,a.translationMacro)("appointments.currentScreenTitle"),editTitle:(0,a.translationMacro)("appointments.editTitle"),newTitle:(0,a.translationMacro)("appointments.newTitle"),moduleName:"appointments",newButtonText:(0,a.translationMacro)("appointments.buttons.newButton"),sectionTitle:(0,a.translationMacro)("appointments.sectionTitle"),actions:{checkIn:function(e){var t=e.get("patient"),n=e.getProperties("startDate","endDate","location","patient");n.visitType=e.get("appointmentType"),n.examiner=e.get("provider"),n.appointment=e,n.hidePatientSelection=!0,n.patient=t,n.returnTo="appointments",this.transitionTo("visits.edit","checkin").then(function(e){e.currentModel.setProperties(n),e.controller.getPatientDiagnoses(t,e.currentModel)}.bind(this))}},additionalModels:[{name:"physicianList",findArgs:["lookup","physician_list"]},{name:"locationList",findArgs:["lookup","visit_location_list"]},{name:"surgeryLocationList",findArgs:["lookup","procedure_locations"]},{name:"visitTypesList",findArgs:["lookup","visit_types"]}]})}),define("hospitalrun/appointments/search/controller",["exports","hospitalrun/appointments/index/controller","hospitalrun/mixins/appointment-statuses","ember","hospitalrun/utils/select-values","hospitalrun/mixins/visit-types"],function(e,t,n,a,l,s){e.default=t.default.extend(n.default,s.default,{appointmentsController:a.default.inject.controller("appointments"),appointmentType:null,physicians:a.default.computed.alias("appointmentsController.physicianList.value"),physicianList:function(){return l.default.selectValues(this.get("physicians"),!0)}.property("physicians"),provider:null,queryParams:["appointmentType","provider","status","startKey","startDate"],selectedProvider:null,selectedStatus:null,sortProperties:null,startDate:null,startKey:[],status:null,visitTypesList:a.default.computed.alias("appointmentsController.visitTypesList"),actions:{search:function(){var e=this.get("model.selectedAppointmentType"),t={startKey:[],previousStartKey:null,previousStartKeys:[]},n=this.get("model.selectedProvider"),l=this.get("model.selectedStatus"),s=this.get("model.selectedStartingDate");a.default.isEmpty(e)?t.appointmentType=null:t.appointmentType=e,a.default.isEmpty(n)?t.provider=null:t.provider=n,a.default.isEmpty(l)?t.status=null:t.status=l,a.default.isEmpty(s)||(t.startDate=s.getTime()),a.default.isEmpty(t)||this.setProperties(t)}}})}),define("hospitalrun/appointments/search/route",["exports","hospitalrun/appointments/index/route","hospitalrun/mixins/date-format","ember","moment","ember-i18n"],function(e,t,n,a,l,s){e.default=t.default.extend(n.default,{editReturn:"appointments.search",filterParams:["appointmentType","provider","status"],modelName:"appointment",pageTitle:(0,s.translationMacro)("appointments.searchTitle"),queryParams:{appointmentType:{refreshModel:!0},provider:{refreshModel:!0},status:{refreshModel:!0},startDate:{refreshModel:!0},startKey:{refreshModel:!0}},_modelQueryParams:function(e){var t=e.startDate,n=this.get("maxValue");return t=a.default.isEmpty(t)?(0,l.default)():(0,l.default)(parseInt(t)),{options:{startkey:[t.startOf("day").toDate().getTime(),null,"appointment_"],endkey:[n,n,"appointment_"+n]},mapReduce:"appointments_by_date"}},model:function(e){return this._super(e).then(function(t){t.setProperties({selectedAppointmentType:e.appointmentType,selectedProvider:e.provider,selectedStatus:e.status});var n=e.startDate;return n=new Date,a.default.isEmpty(e.startDate)||n.setTime(e.startDate),t.set("selectedStartingDate",n),t.set("display_selectedStartingDate",this._dateFormat(n)),t}.bind(this))}})}),define("hospitalrun/appointments/search/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"AlV13qLa",block:'{"statements":[["block",["item-listing"],null,[["paginationProps"],[["get",["paginationProps"]]]],7]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["partial","appointments/item"],["text","\\n"]],"locals":["appointment"]},{"statements":[["append",["helper",["t"],["models.appointment.labels.status"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["models.appointment.labels.provider"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["models.appointment.labels.location"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["models.appointment.labels.type"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["models.appointment.labels.appointmentDate"],null],false]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class"],["selectedStartingDate",["helper",["t"],["appointments.labels.selectedStartingDate"],null],"col-sm-3"]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","property","label","content"],["col-sm-3 form-input-group","selectedStatus",["helper",["t"],["models.appointment.labels.status"],null],["get",["appointmentStatusesWithEmpty"]]]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content"],["col-sm-3 form-input-group",["helper",["t"],["models.appointment.labels.type"],null],"selectedAppointmentType",["get",["visitTypesWithEmpty"]]]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","property","label","content"],["col-sm-3 form-input-group","selectedProvider",["helper",["t"],["models.appointment.labels.provider"],null],["get",["physicianList"]]]]],false],["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]],6],["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]],"search"]],["flush-element"],["append",["helper",["t"],["buttons.search"],null],false],["close-element"],["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 "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["date",["get",["sortDesc"]],["get",["sortKey"]]]],5],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["models.patient.labels.name"],null],false],["close-element"],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["appointmentType",["get",["sortDesc"]],["get",["sortKey"]]]],4],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["location",["get",["sortDesc"]],["get",["sortKey"]]]],3],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["provider",["get",["sortDesc"]],["get",["sortKey"]]]],2],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["status",["get",["sortDesc"]],["get",["sortKey"]]]],1],["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"]]],null,0],["text"," "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":true}',meta:{moduleName:"hospitalrun/appointments/search/template.hbs"}})}),define("hospitalrun/appointments/theater/controller",["exports","hospitalrun/appointments/calendar/controller"],function(e,t){e.default=t.default.extend({dayGroupByResource:{day:{groupByResource:!0}},actions:{createNewAppointment:function(e){var t=this.store.createRecord("appointment",{appointmentType:"Surgery",selectPatient:!0,startDate:e.local().toDate(),endDate:e.add("1","hours").local().toDate()});this.send("editAppointment",t)}}})}),define("hospitalrun/appointments/theater/route",["exports","hospitalrun/appointments/calendar/route","ember-i18n"],function(e,t,n){e.default=t.default.extend({editReturn:"appointments.theater",newButtonText:(0,n.translationMacro)("appointments.buttons.scheduleSurgery"),pageTitle:(0,n.translationMacro)("appointments.titles.theaterSchedule"),_modelQueryParams:function(e){var t=this._super(e);return t.mapReduce="surgical_appointments_by_date",t},actions:{newItem:function(){this.transitionTo("appointments.edit","newsurgery")}}})}),define("hospitalrun/appointments/theater/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"ExdA/9xg",block:'{"statements":[["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]],0],["text"," "],["open-element","div",[]],["static-attr","class","panel-footer"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"clearFilteringCriteria"]],["flush-element"],["append",["helper",["t"],["buttons.clear"],null],false],["close-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-primary"],["modifier",["action"],[["get",[null]],"filter"]],["flush-element"],["append",["helper",["t"],["buttons.filter"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["append",["helper",["calendar-control"],null,[["events","defaultDate","defaultView","onDayClick","onEventClick","onEventDrop","onEventResize","onVisualConfigurationChanged","resources","userCanEdit","views"],[["get",["model","events"]],["get",["calendarDate"]],["get",["viewType"]],["helper",["action"],[["get",[null]],"createNewAppointment"],null],["helper",["action"],[["get",[null]],"navigateToAppointment"],null],["helper",["action"],[["get",[null]],"updateAppointment"],null],["helper",["action"],[["get",[null]],"updateAppointment"],null],["helper",["action"],[["get",[null]],"handleVisualConfigurationChanged"],null],["get",["model","resources"]],["get",["canEdit"]],["get",["dayGroupByResource"]]]]],false],["text","\\n "],["close-element"],["text","\\n"],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content"],["col-sm-3 form-input-group",["helper",["t"],["models.appointment.labels.status"],null],"selectedStatus",["get",["appointmentStatusesWithEmpty"]]]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content"],["col-sm-3 form-input-group",["helper",["t"],["models.appointment.labels.provider"],null],"selectedProvider",["get",["physicianList"]]]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content"],["col-sm-3 form-input-group",["helper",["t"],["models.appointment.labels.location"],null],"selectedLocation",["get",["locationList"]]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/appointments/theater/template.hbs"}})}),define("hospitalrun/appointments/today/controller",["exports","hospitalrun/appointments/index/controller"],function(e,t){e.default=t.default.extend({startKey:[]})}),define("hospitalrun/appointments/today/route",["exports","hospitalrun/appointments/index/route","moment","ember-i18n"],function(e,t,n,a){e.default=t.default.extend({editReturn:"appointments.today",modelName:"appointment", +pageTitle:(0,a.translationMacro)("appointments.todayTitle"),_modelQueryParams:function(){var e=(0,n.default)().endOf("day").toDate().getTime(),t=this.get("maxValue");return{options:{startkey:[(0,n.default)().startOf("day").toDate().getTime(),null,"appointment_"],endkey:[e,e,"appointment_"+t]},mapReduce:"appointments_by_date"}}})}),define("hospitalrun/appointments/today/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"NpXWri4D",block:'{"statements":[["partial","appointments/index"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[],"hasPartials":true}',meta:{moduleName:"hospitalrun/appointments/today/template.hbs"}})}),define("hospitalrun/authenticators/custom",["exports","ember","ember-simple-auth/authenticators/base","npm:crypto","hospitalrun/mixins/map-oauth-params","hospitalrun/mixins/oauth-headers"],function(e,t,n,a,l,s){var i=t.default.computed.alias,o=t.default.get,r=t.default.RSVP;e.default=n.default.extend(l.default,s.default,{ajax:t.default.inject.service(),config:t.default.inject.service(),database:t.default.inject.service(),serverEndpoint:"/auth/login",standAlone:i("config.standAlone"),usersDB:i("database.usersDB"),_checkUser:function(e,t){var n=this;return new r.Promise(function(a,l){var s=n.getOAuthHeaders(t);n._makeRequest({name:e.name},"/chkuser",s).then(function(t){t.error&&l(t),e.displayName=t.displayName,e.role=t.role,e.prefix=t.prefix,a(e)}).catch(function(){a(e)})})},_finishAuth:function(e,t){var n=this.get("config"),a=this.get("database");return n.setCurrentUser(e),a.setup().then(function(){return e.oauthConfigs=t,e})},_makeRequest:function(e,t,n,a){t||(t=this.serverEndpoint);var l=o(this,"ajax"),s={type:"POST",data:e,dataType:"json",contentType:"application/x-www-form-urlencoded",xhrFields:{withCredentials:!0}};return a&&(s.type=a),n&&(s.headers=n),l.request(t,s)},_saveOAuthConfigs:function(e){var t=o(this,"config"),n=this.mapOauthParams(e);return t.saveOauthConfigs(n).then(function(){return n})},authenticate:function(e){var t=this;if(!0===o(this,"standAlone"))return this._authenticateStandAlone(e);if(e.google_auth)return this._saveOAuthConfigs(e.params).then(function(n){return t._checkUser({name:e.params.i},n).then(function(e){return t._finishAuth(e,n)})});var n=this._getUserName(e),a={name:n,password:e.password};return this._makeRequest(a).then(function(e){if(e.error)throw new Error(e.errorResult||"Unauthorized user");var a={displayName:e.displayName,prefix:e.prefix,role:e.role};return a.name=n,t._saveOAuthConfigs(e).then(function(e){return t._finishAuth(a,e)})})},invalidate:function(e){var t=o(this,"standAlone");if(this.useGoogleAuth||t)return r.resolve();var n=this.getOAuthHeaders(e.oauthConfigs),a=o(this,"database").getRemoteDBUrl();return this._makeRequest({},a,n,"GET")},restore:function(e){return window.ELECTRON?r.resolve(e):this._checkUser(e,e.oauthConfigs)},_authenticateStandAlone:function(e){var t=this,n=o(this,"usersDB");return new r.Promise(function(a,l){var s=t._getUserName(e);n.get("org.couchdb.user:"+s).then(function(n){var s=n.salt,i=n.iterations,o=n.derived_key,r=e.password;t._checkPassword(r,s,i,o,function(e,s){e&&l(e),s||l(new Error("UNAUTHORIZED")),n.role=t._getPrimaryRole(n),t._finishAuth(n,{}).then(a,l)})},l)})},_checkPassword:function(e,t,n,l,s){a.default.pbkdf2(e,t,n,20,"sha1",function(e,t){if(e)return s(e);s(null,t.toString("hex")===l)})},_getPrimaryRole:function(e){var t="";return e.roles&&e.roles.forEach(function(e){"user"!==e&&"admin"!==e&&(t=e)}),t},_getUserName:function(e){var t=e.identification;return"string"==typeof t&&t&&(t=t.trim()),t}})}),define("hospitalrun/components/action-checkbox",["exports","ember"],function(e,t){e.default=t.default.Component.extend({attributeBindings:["type","value"],tagName:"input",type:"checkbox",checked:!1,_updateElementValue:function(){this.set("checked",this.$().prop("checked"))}.on("didInsertElement"),change:function(){this._updateElementValue(),this.sendAction("action",this.get("value"),this.get("checked"))}})}),define("hospitalrun/components/active-link",["exports","ember-cli-active-link-wrapper/components/active-link"],function(e,t){e.default=t.default}),define("hospitalrun/components/array-display",["exports","ember"],function(e,t){e.default=t.default.Component.extend({isArray:function(){var e=this.get("content");return t.default.isArray(e)}.property("content")})}),define("hospitalrun/components/calendar-control",["exports","ember","moment"],function(e,t,n){var a=t.default.get,l=t.default.isEmpty,s=t.default.set;e.default=t.default.Component.extend({calendarHeader:{center:"agendaDay,agendaWeek,month",left:"title",right:"today prev,next"},defaultDate:null,defaultView:"agendaWeek",height:500,onDayClick:null,onEventClick:null,onEventDrop:null,onEventResize:null,userCanEdit:!1,visualConfiguration:{endDate:null,startDate:null,viewType:null},_convertDateFromUTCToLocal:function(e){return(0,n.default)(e.utc().format("YYYY-MM-DD HH:mm:ss")).valueOf()},actions:{handleRenderingComplete:function(e){var t=a(this,"visualConfiguration"),n={startDate:this._convertDateFromUTCToLocal(e.intervalStart),endDate:this._convertDateFromUTCToLocal(e.intervalEnd),viewType:e.name};l(t.startDate)&&l(t.endDate)?s(this,"visualConfiguration",n):function(e,t){return e.startDate!==t.startDate||e.endDate!==t.endDate||e.viewType!==t.viewType}(t,n)&&(s(this,"visualConfiguration",n),a(this,"onVisualConfigurationChanged")(n))}}})}),define("hospitalrun/components/charge-quantity",["exports","ember"],function(e,t){e.default=t.default.Component.extend({i18n:t.default.inject.service(),classNames:["col-xs-2","form-group"],classNameBindings:["hasError"],tagName:"td",pricingItem:null,didReceiveAttrs:function(){this._super.apply(this,arguments),this.quantitySelected=t.default.computed.alias("model."+this.get("pricingItem.id"))},hasError:function(){var e=this.get("quantitySelected");return!t.default.isEmpty(e)&&isNaN(e)}.property("quantitySelected"),quantityHelp:function(){if(this.get("hasError"))return this.get("i18n").t("errors.invalidNumber")}.property("hasError")})}),define("hospitalrun/components/charges-by-type-tab",["exports","ember"],function(e,t){e.default=t.default.Component.extend({attributeBindings:["role"],classNameBindings:["active"],index:null,pricingList:null,role:"presentation",tagName:"li",active:function(){return 0===this.get("index")}.property(),tabId:function(){return this.get("pricingType").toLowerCase().dasherize()}.property("pricingType"),tabHref:function(){return"#"+this.get("tabId")}.property("tabId")})}),define("hospitalrun/components/checkbox-or-typeahead",["exports","ember","hospitalrun/components/select-or-typeahead"],function(e,t,n){e.default=n.default.extend({checkboxesPerRow:5,model:null,_getLabelFromContent:function(e){var n=this.get("optionLabelPath");return t.default.get(e,n)},_getValueFromContent:function(e){var n=this.get("optionValuePath");return t.default.get(e,n)},_mapCheckboxValues:function(e){return{label:this._getLabelFromContent(e),value:this._getValueFromContent(e)}},_setup:function(){var e=this.get("property");t.default.defineProperty(this,"errors",t.default.computed("model.errors."+e,function(){var e=this.get("property"),n=this.get("model.errors."+e);if(!t.default.isEmpty(n))return n[0]}))}.on("init"),checkboxRows:function(){for(var e=[],t=this.get("checkboxesPerRow"),n=this.get("content"),a=n.copy();a.length>0;){var l=a.splice(0,t).map(this._mapCheckboxValues.bind(this));e.push(l)}return e}.property("content","checkboxesPerRow"),actions:{checkboxChanged:function(e,n){var a=this.get("property"),l="model."+a,s=this.get(l);t.default.isArray(s)||(s=[]),n&&!s.includes(e)?s.addObject(e):!n&&s.includes(e)&&s.removeObject(e),this.set(l,s),this.set("selection",s),this.get("model").validate().catch(t.default.K)}}})}),define("hospitalrun/components/control-within-label",["exports","ember-rapid-forms/components/control-within-label"],function(e,t){e.default=t.default}),define("hospitalrun/components/custom-form-manager",["exports","ember","hospitalrun/utils/select-values"],function(e,t,n){var a=t.default.Component,l=t.default.computed.alias,s=t.default.get,i=t.default.inject;e.default=a.extend(n.default,{customForms:i.service(),formType:null,formsForType:null,model:null,openModalAction:"openModal",formsForSelect:l("customForms.formsForSelect"),formsToDisplay:l("customForms.formsToDisplay"),showAddButton:l("customForms.showAddButton"),didReceiveAttrs:function(){this._super.apply(this,arguments);var e=s(this,"customForms"),t=s(this,"formType"),n=s(this,"model");e.setupForms(t,n)},actions:{addForm:function(){var e=s(this,"model"),n=s(this,"formsForSelect");this.sendAction("openModalAction","custom-form-add",t.default.Object.create({modelToAddTo:e,customForms:n}))}}})}),define("hospitalrun/components/custom-form",["exports","ember","hospitalrun/utils/select-values"],function(e,t,n){var a=t.default.computed,l=t.default.isEmpty;e.default=t.default.Component.extend(n.default,{classNames:"detail-section-content",propertyPrefix:"",fieldsByRow:a("form","form.fields.[]","form.columns",function(){var e=this,n=[],a=this.get("form"),s=this.get("form.fields");return l(a)||l(s)||function(){var a=e.getWithDefault("form.columns",1),l=[],i=0,o=Math.floor(12/a);s.forEach(function(e){var s=e.get("classNames");s||(s="");var r=e.get("colSpan")||1;(i===a||i+r>a)&&(n.push(l.slice()),l=[],i=0),s+=" col-sm-"+o*r,e.set("displayClassNames",s),"radio"===e.get("type")&&e.set("mappedValues",e.get("values").map(function(e){return t.default.get(e,"label")})),l.push(e),i+=r}),i>0&&n.push(l)}(),n})})}),define("hospitalrun/components/date-filter",["exports","ember","hospitalrun/mixins/pikaday-component"],function(e,t,n){var a=t.default.Component;e.default=a.extend(n.default,{classNames:["input-group"],dateSetAction:"filter",actions:{clearFilter:function(){this.$("input").val(""),this.sendAction("dateSetAction")}}})}),define("hospitalrun/components/date-input",["exports","ember","ember-rapid-forms/components/html-input","hospitalrun/mixins/pikaday-component"],function(e,t,n,a){e.default=n.default.extend(a.default,{_shouldSetDate:function(e,n){return n&&(t.default.isEmpty(e)||t.default.isEmpty(n.getDate())||e.getTime&&n.getDate().getTime()!==e.getTime())},currentDateChangedValue:function(){var e=this.get("currentDate"),n=this.get("_picker");!t.default.isEmpty(e)&&this._shouldSetDate(e,n)&&n.setDate(e)},format:function(){return this.get("showTime")?"l h:mm A":"l"}.property("mainComponent.showTime"),showTimeChanged:function(){var e=this.get("_picker");e&&(e.destroy(),this.didInsertElement())}.observes("mainComponent.showTime"),dateSet:function(){var e=this.get("currentDate"),n=this.get("_picker");if(this._shouldSetDate(e,n)){var a=n.getDate(),l=this.get("mainComponent"),s=l.get("dateSetAction");this.set("currentDate",a),t.default.isEmpty(s)||l.sendAction("dateSetAction",a)}},didReceiveAttrs:function(){this._super.apply(this,arguments);var e=this.get("mainComponent.originalPropery"),n="display_"+e;this.currentDate=t.default.computed.alias("mainComponent.model."+e),this.minDate=t.default.computed.alias("mainComponent.minDate"),this.maxDate=t.default.computed.alias("mainComponent.maxDate"),this.showTime=t.default.computed.alias("mainComponent.showTime"),this.yearRange=t.default.computed.alias("mainComponent.yearRange"),this.addObserver("mainComponent.model."+e,this,this.currentDateChangedValue),t.default.Binding.from("mainComponent.model.errors."+e).to("mainComponent.model.errors."+n).connect(this)}})}),define("hospitalrun/components/date-picker",["exports","ember-rapid-forms/components/em-input"],function(e,t){e.default=t.default.extend({dateSetAction:null,htmlComponent:"date-input",minDate:null,maxDate:null,originalPropery:null,showTime:!1,yearRange:10,didReceiveAttrs:function(e){var t=this.get("property"),n="display_"+t;this.set("property",n),this.set("originalPropery",t),this._super(e)}})}),define("hospitalrun/components/date-time-picker",["exports","ember","moment"],function(e,t,n){var a=t.default.computed,l=t.default.isEmpty;e.default=t.default.Component.extend({i18n:t.default.inject.service(),dateTimePickerDate:null,datePickerClass:"",endDate:t.default.computed.alias("model.endDate"),endHour:null,endMinute:null,label:"",startDate:t.default.computed.alias("model.startDate"),startHour:null,startMinute:null,didReceiveAttrs:function(){var e=(0,n.default)(this.get("endDate")),t=(0,n.default)(this.get("startDate"));l(e)&&(e=t),this.set("endHour",e.hour()),this.set("endMinute",e.minute()),this.set("startHour",t.hour()),this.set("startMinute",t.minute()),this.set("dateTimePickerDate",t.toDate()),this._updateDates()},hourList:a(function(){var e=void 0,t=[],n=this.get("i18n");for(e=0;e<24;e++){var a=void 0,l={hour:e%12};a=0===e?n.t("components.dateTimePicker.midnight"):12===e?n.t("components.dateTimePicker.noon"):e<12?n.t("components.dateTimePicker.amHour",l):n.t("components.dateTimePicker.pmHour",l),t.push({name:a,value:e})}return t}),isAllDay:a("model.allDay",function(){var e=this.get("model.allDay");return e&&(this.set("startHour",0),this.set("startMinute",0),this.set("endHour",23),this.set("endMinute",59),this._updateDates()),e}),minuteList:a(function(){var e=void 0,t=[];for(e=0;e<60;e++)t.push({name:String("00"+e).slice(-2),value:e});return t}),actions:{dateChanged:function(){this._updateDates()},endHourChanged:function(e){this.set("endHour",e),this._updateDates()},endMinuteChanged:function(e){this.set("endMinute",e),this._updateDates()},startHourChanged:function(e){this.set("startHour",e),this._updateDates()},startMinuteChanged:function(e){this.set("startMinute",e),this._updateDates()}},endTimeHasError:a("model.isValid",function(){return this.get("model.errors.endDate").length>0}),_updateDates:function(){var e=this;t.default.run.once(this,function(){["start","end"].forEach(function(a){var l=a+"Date",s=e.get(l),i=e.get("dateTimePickerDate"),o=e.get(a+"Hour"),r=e.get(a+"Minute");t.default.isEmpty(i)||(s=(0,n.default)(i),s.hour(o),s.minute(r),e.set(l,s.toDate()))}),e.get("model").validate().catch(t.default.K)})}})}),define("hospitalrun/components/edit-panel",["exports","ember"],function(e,t){e.default=t.default.Component.extend({editPanelProps:null,cancelAction:"cancel",actions:{cancel:function(){this.sendAction("cancelAction")},disabledAction:function(){this.sendAction("editPanelProps.disabledAction")},fireButtonAction:function(e){this.set(e,e),this.sendAction(e)},updateButtonAction:function(){this.sendAction("editPanelProps.updateButtonAction")}}})}),define("hospitalrun/components/em-checkbox",["exports","ember-rapid-forms/components/em-checkbox"],function(e,t){e.default=t.default}),define("hospitalrun/components/em-custom-input",["exports","ember-rapid-forms/components/em-custom-input"],function(e,t){e.default=t.default}),define("hospitalrun/components/em-form-control-help",["exports","ember-rapid-forms/components/em-form-control-help"],function(e,t){e.default=t.default}),define("hospitalrun/components/em-form-group",["exports","ember-rapid-forms/components/em-form-group"],function(e,t){e.default=t.default}),define("hospitalrun/components/em-form-label",["exports","ember-rapid-forms/components/em-form-label"],function(e,t){e.default=t.default}),define("hospitalrun/components/em-form-submit",["exports","ember-rapid-forms/components/em-form-submit"],function(e,t){e.default=t.default}),define("hospitalrun/components/em-form",["exports","ember-rapid-forms/components/em-form"],function(e,t){e.default=t.default}),define("hospitalrun/components/em-input",["exports","ember-rapid-forms/components/em-input"],function(e,t){e.default=t.default}),define("hospitalrun/components/em-select",["exports","ember-rapid-forms/components/em-select"],function(e,t){e.default=t.default}),define("hospitalrun/components/em-text",["exports","ember-rapid-forms/components/em-text"],function(e,t){e.default=t.default}),define("hospitalrun/components/erf-html-checkbox",["exports","ember-rapid-forms/components/html-checkbox"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/components/erf-html-custom-input",["exports","ember-rapid-forms/components/html-custom-input"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/components/erf-html-input",["exports","ember-rapid-forms/components/html-input"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/components/erf-html-select",["exports","ember-rapid-forms/components/html-select"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/components/erf-html-text",["exports","ember-rapid-forms/components/html-text"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/components/expand-text",["exports","ember","hospitalrun/utils/text-expansion"],function(e,t,n){var a=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")}}(),l=t.default.Component,s=t.default.String.htmlSafe,i=t.default.computed,o=t.default.inject;e.default=l.extend({i18n:o.service(),store:o.service(),userText:"",didInsertElement:function(){var e=this,t=document.createElement("div");t.style.position="absolute";var n=this.$("textarea"),l=a(n,1),s=l[0];this.set("textarea",s);var i=s.getBoundingClientRect(),o=t.style;o.top=i.bottom+"px",o.left=i.left+"px",o.width=s.offsetWidth+"px",o.backgroundColor="lightyellow",o.borderStyle="solid",o.borderWidth="1px",o.borderRadius="3px",o.paddingLeft="5px",o.visibility="hidden",this.set("feedbackDiv",t),this.get("feedbackText"),this.get("activeExpansionSite"),this.get("store").findAll("text-expansion").then(function(e){return e.reduce(function(e,t){return e[t.get("from")]=t.get("to"),e},{})}).then(function(t){e.set("expansions",t)})},keyUp:function(e){var t=e.target,n=t.value;this.set("userText",n),this.set("cursorLocation",t.selectionStart)},keyDown:function(e){if(13===e.keyCode){var t=this.get("possibleSwaps");if(t&&1===t.length){var n=t[0].to,a=this.get("activeExpansionSite"),l=a.match.length,s=e.target.value,i=s.slice(0,a.index)+n+s.slice(a.index+l);return e.target.value=i,e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1}}},activeExpansionSite:i("userText","cursorLocation",function(){var e=this.get("userText"),t=this.get("textarea");if(!t)return null;var a=t.selectionStart,l=n.default.findExpansionSubjects(e);return n.default.findExpansionSites(e,l).find(function(e){var t=e.index+e.match.length;return a>=e.index&&a<=t})}),possibleSwaps:i("activeExpansionSite","expansions",function(){var e=this,t=this.get("activeExpansionSite");if(t){var n=function(){var n=e.get("expansions");return{v:Object.keys(n).filter(function(e){return e.startsWith(t.term)}).sort().map(function(e){return{from:e,to:n[e]}})}}();if("object"==typeof n)return n.v}}),expansionText:i("possibleSwaps","activeExpansionSite","userText",function(){var e="",t=this.get("i18n"),n=this.get("possibleSwaps");if(n){var a=this.get("activeExpansionSite");if(1===n.length){var l=n[0].to;e=t.t("admin.textReplacements.performExpand",{from:a.term,to:l})}else if(n.length>1){var s=n.map(function(e){return e.from}).join(", ");e=t.t("admin.textReplacements.possibleExpansions",{possible:s})}else e=t.t("admin.textReplacements.noMatches",{term:a.term})}return e}),expansionDivStyle:i("expansionText",function(){var e=this.get("expansionText"),t=e?"visible":"hidden",n=this.get("textarea"),a="visibility: "+t+";";if(n){var l=n.getBoundingClientRect();a+=" top: "+l.bottom+"px; left: "+l.left+"px; width: "+n.offsetWidth+"px;"}return s(a)})})}),define("hospitalrun/components/ext-radio",["exports","ember"],function(e,t){e.default=t.default.Component.extend({includeOtherOption:!1,otherOptionLabel:null,showInline:!1,haveLabel:function(){var e=this.get("content.firstObject");return!t.default.isEmpty(e.label)}.property("content"),radioClass:function(){return this.get("showInline")?"radio-inline":"radio"}.property("showInline")})}),define("hospitalrun/components/file-upload",["exports","hospitalrun/components/image-upload"],function(e,t){e.default=t.default.extend({resizeFile:!1})}),define("hospitalrun/components/form-group-control",["exports","ember-rapid-forms/components/form-group-control"],function(e,t){e.default=t.default}),define("hospitalrun/components/form-group",["exports","ember-rapid-forms/components/form-group"],function(e,t){e.default=t.default}),define("hospitalrun/components/full-calendar",["exports","ember-fullcalendar/components/full-calendar"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/components/icd10-pcs-typeahead",["exports","hospitalrun/components/icd10-typeahead"],function(e,t){e.default=t.default.extend()}),define("hospitalrun/components/icd10-typeahead",["exports","hospitalrun/components/type-ahead"],function(e,t){e.default=t.default.extend({class:"scrollable-typeahead",minlength:2,selectionKey:"id",setOnBlur:!0,templates:{header:''},_sourceQuery:function(e,t){this.bloodhound.get(e,function(n){t(n),this.$(".query-results").html(""+e+" returned "+n.length+" results")}.bind(this))},_getSource:function(){return this._sourceQuery.bind(this)}})}),define("hospitalrun/components/image-upload",["exports","ember","ember-rapid-forms/components/em-input"],function(e,t,n){var a=t.default.isEmpty;e.default=n.default.extend({fileInputEl:null,isImage:!0,resizeFile:!0,selectedFile:null,type:"file",_fileChanged:function(){var e=this,t=this.get("fileInputEl"),n=this.get("resizeFile");!a(t.files[0])&&n?function(){var n=window.URL.createObjectURL(t.files[0]),a=new Image;a.src=n,a.addEventListener("load",function(){window.URL.revokeObjectURL(n),this.set("selectedFile",this._resizeImage(a)),this.set("isImage",!0)}.bind(e)),a.addEventListener("error",function(){window.URL.revokeObjectURL(n),this.set("selectedFile",t.files[0]),this.set("isImage",!1)}.bind(e))}():(this.set("isImage",!1),this.set("selectedFile",t.files[0]))},_resizeImage:function(e){var t=document.createElement("canvas"),n=e.height,a=e.width;a>n?a>1024&&(n=Math.round(n*=1024/a),a=1024):n>1024&&(a=Math.round(a*=1024/n),n=1024),t.width=a,t.height=n,t.getContext("2d").drawImage(e,0,0,a,n);for(var l=t.toDataURL("image/png"),s=atob(l.split(",")[1]),i=[],o=0;o=l&&(s=a),o},0),s>-1?a.get("length")>s+1&&(a=a.slice(0,s+1),this.set("calculatedLocationPickers",a)):a.addObject(t.default.Object.create()),this._setupLocationPickers(a,n)),a.forEach(function(e){i.addObject(e.get("selectedLocation"))}),this.set("componentSelectedLocations",i)},_setup:function(){t.default.Binding.from("selectedLocations").to("componentSelectedLocations").connect(this)}.on("init"),_setupLocationPickers:function(e,a,l){e.reduce(function(e,t){var a=t.get("selectedLocation");return t.set("subLocationList",e.map(n.default.selectObjectMap)),e.includes(a)&&!l||t.set("selectedLocation",e.get("firstObject")),t.set("label","And"),e.filter(function(e){return t.get("selectedLocation.id")!==e.get("id")})},a);var s=e.get("firstObject");t.default.isEmpty(s)||s.set("label",this.get("label")),this.set("calculatedLocationPickers",e)},locationPickers:function(){var e=this.get("locationList"),n=[],a=this.get("quantityRequested");if(!t.default.isEmpty(e)&&!t.default.isEmpty(a))return this.set("doingSetup",!0),e.reduce(function(e,l){return e0)return"have-inventory-items"}.property("content"),mappedContent:function(){var e=this.get("content"),t=[];return e&&(t=e.map(this._mapInventoryItems.bind(this))),t}.property("content"),contentChanged:function(){var e=this.get("bloodhound"),t=this.get("content");e&&(e.clear(),e.add(t.map(this._mapInventoryItems.bind(this))))}.observes("content.[]"),itemSelected:function(e){var n=this;this._super();var a=this.get("store");t.default.isEmpty(e)||a.find("inventory",e.id).then(function(e){var a=n.get("model");a.set("inventoryItem",e),t.default.run.once(n,function(){a.validate().catch(t.default.K)})})}})}),define("hospitalrun/components/item-listing",["exports","ember","hospitalrun/mixins/paging-actions"],function(e,t,n){e.default=t.default.Component.extend(n.default,{classNames:["panel","panel-primary"]})}),define("hospitalrun/components/loading-message",["exports","ember","ember-i18n"],function(e,t,n){e.default=t.default.Component.extend({tagName:"span",showLoadingMessages:!1,loadingMessages:[(0,n.translationMacro)("loading.messages.0"),(0,n.translationMacro)("loading.messages.1"),(0,n.translationMacro)("loading.messages.2"),(0,n.translationMacro)("loading.messages.3"),(0,n.translationMacro)("loading.messages.4"),(0,n.translationMacro)("loading.messages.5"),(0,n.translationMacro)("loading.messages.6"),(0,n.translationMacro)("loading.messages.7"),(0,n.translationMacro)("loading.messages.8"),(0,n.translationMacro)("loading.messages.9"),(0,n.translationMacro)("loading.messages.10"),(0,n.translationMacro)("loading.messages.11")],_setRandomMessage:function(){var e=this.get("loadingMessages"),n=Math.floor(Math.random()*e.length);this.set("message",e[n]),this.set("timer",t.default.run.later(this,this._setRandomMessage,1e3))},didInsertElement:function(){this._setRandomMessage()},willDestroyElement:function(){var e=this.get("timer");t.default.isEmpty(e)||t.default.run.cancel(e)}})}),define("hospitalrun/components/location-select",["exports","ember"],function(e,t){e.default=t.default.Component.extend({locationPicker:null,_setup:function(){this.locationChange=this.currentLocationChanged.bind(this)}.on("init"),currentLocationChanged:function(e){this.get("locationPicker").set("selectedLocation",e),t.default.run.once(this,function(){this.get("parentView").locationChange()})}})}),define("hospitalrun/components/medication-allergy",["exports","ember"],function(e,t){var n=t.default.computed,a=t.default.get,l=t.default.isEmpty;e.default=t.default.Component.extend({classNames:"ps-info-group long-form",canAddAllergy:null,patient:null,editAllergyAction:"editAllergy",showAddAllergyAction:"showAddAllergy",showAllergies:n("canAddAllergy","patient.allergies.[]",{get:function(){var e=a(this,"canAddAllergy"),t=a(this,"patient.allergies");return e||!l(t)}}),actions:{editAllergy:function(e){this.sendAction("editAllergyAction",e)},createNewAllergy:function(){this.sendAction("showAddAllergyAction")}}})}),define("hospitalrun/components/modal-dialog",["exports","ember"],function(e,t){e.default=t.default.Component.extend({i18n:t.default.inject.service(),cancelAction:"cancel",closeModalAction:"closeModal",hideCancelButton:!1,hideUpdateButton:!1,isUpdateDisabled:!1,title:"",updateButtonAction:"",updateButtonClass:"",updateButtonText:"",cancelButtonText:"",cancelBtnText:function(){var e=this.get("cancelButtonText");return t.default.isEmpty(e)?this.get("i18n").t("buttons.cancel"):e}.property("cancelButtonText"),actions:{cancelAction:function(){this.sendAction("cancelAction")},fireButtonAction:function(e){this.set(e,e),this.sendAction(e)},updateAction:function(){this.sendAction("updateButtonAction")}},didInsertElement:function(){this.$(".modal").modal().on("hidden.bs.modal",function(){this.sendAction("closeModalAction"),this.sendAction("cancelAction")}.bind(this))},willDestroyElement:function(){var e=this.$(".modal");e.off("hidden.bs.modal"),e.modal("hide"),$("body").removeClass("modal-open"),$(".modal-backdrop").remove()}})}),define("hospitalrun/components/nav-menu",["exports","ember","hospitalrun/mixins/user-session"],function(e,t,n){var a=t.default.computed,l=t.default.get,s=t.default.set;e.default=t.default.Component.extend(n.default,{callCloseSettings:"closeSettings",callNavAction:"navAction",classNames:["primary-nav-item"],isShowing:!1,nav:null,tagName:"div",show:a("nav","session.data.authenticated.userCaps",function(){return this._setupSubNav(),this.currentUserCan(l(this,"nav").capability)}),_setup:function(){l(this,"nav").closeSubnav=function(){s(this,"isShowing",!1)}.bind(this),this._setupSubNav()}.on("init"),_setupSubNav:function(){var e=this;l(this,"nav").subnav.forEach(function(t){s(t,"show",e.currentUserCan(t.capability))})},actions:{resetNav:function(){this.sendAction("callCloseSettings")},toggleContent:function(){this.toggleProperty("isShowing"),this.sendAction("callNavAction",this.nav)}}})}),define("hospitalrun/components/nav-paging",["exports","ember","hospitalrun/mixins/paging-actions"],function(e,t,n){e.default=t.default.Component.extend(n.default,{classNames:["paging-buttons"],paginationProps:null})}),define("hospitalrun/components/number-input",["exports","ember-rapid-forms/components/em-input"],function(e,t){e.default=t.default.extend({sanitizeFunction:function(e){return e.replace(new RegExp(/([^0-9|.]+)/g),"")},focusOut:function(){return this._sanitizeValue(),this._super()},keyUp:function(){return this._sanitizeValue(),this._super()},_sanitizeValue:function(){var e=this.get("model"),t=this.get("property"),n=e.get(t),a=this.get("sanitizeFunction")(n);e.set(t,a)}})}),define("hospitalrun/components/operative-procedures",["exports","ember"],function(e,t){function n(e){var t=s(e,"procedures"),n=s(e,"procedureDescription");l(n)||(t.addObject({description:n}),i(e,"procedureDescription",null))}e.addProcedure=n;var a=t.default.computed,l=t.default.isEmpty,s=t.default.get,i=t.default.set;e.default=t.default.Component.extend({model:null,procedureList:null,haveProcedures:a("model.procedures.[]",{get:function(){return!l(s(this,"model.procedures"))}}),actions:{addProcedure:function(){n(s(this,"model"))},deleteProcedure:function(e){var t=s(this,"model");s(t,"procedures").removeObject(e),t.validate()}}})}),define("hospitalrun/components/patient-diagnosis",["exports","ember","hospitalrun/mixins/patient-diagnosis","ember-i18n","hospitalrun/mixins/user-session"],function(e,t,n,a,l){ +var s=t.default.computed,i=t.default.get,o=["diagnosisContainer","hideInActiveDiagnoses","diagnosisContainer.diagnoses.@each.active","diagnosisContainer.diagnoses.@each.secondaryDiagnosis"];e.default=t.default.Component.extend(n.default,l.default,{i18n:t.default.inject.service(),allowAddDiagnosis:!1,diagnosisContainer:null,diagnosisProperty:null,diagnosisList:null,editDiagnosisAction:"editDiagnosis",hideInActiveDiagnoses:!0,showAddDiagnosisAction:"showAddDiagnosis",primaryDiagnosisLabel:(0,a.translationMacro)("patients.labels.primaryDiagnosis"),secondaryDiagnosisLabel:(0,a.translationMacro)("patients.labels.secondaryDiagnosis"),canAddDiagnosis:s("allowAddDiagnosis",{get:function(){return i(this,"allowAddDiagnosis")&&this.currentUserCan("add_diagnosis")}}),havePrimaryDiagnoses:s("primaryDiagnoses.length",{get:function(){return this.get("primaryDiagnoses.length")>0}}),haveSecondaryDiagnoses:s("secondaryDiagnoses.length",{get:function(){return this.get("secondaryDiagnoses.length")>0}}),primaryDiagnoses:s.apply(void 0,o.concat([{get:function(){var e=this.get("diagnosisContainer"),t=this.get("hideInActiveDiagnoses");return this.getDiagnoses(e,t,!1)}}])),secondaryDiagnoses:s.apply(void 0,o.concat([{get:function(){var e=this.get("diagnosisContainer"),t=this.get("hideInActiveDiagnoses");return this.getDiagnoses(e,t,!0)}}])),showPrimaryDiagnoses:s("canAddDiagnosis","havePrimaryDiagnoses",{get:function(){return this.get("canAddDiagnosis")||this.get("havePrimaryDiagnoses")}}),actions:{editDiagnosis:function(e){this.sendAction("editDiagnosisAction",e)},showAddDiagnosis:function(){this.sendAction("showAddDiagnosisAction")}}})}),define("hospitalrun/components/patient-orders",["exports","ember","hospitalrun/mixins/filter-list","hospitalrun/mixins/user-session"],function(e,t,n,a){var l=t.default.computed;e.default=t.default.Component.extend(n.default,a.default,{editImagingAction:"editImaging",editLabAction:"editLab",editMedicationAction:"editMedication",filterBy:null,filterValue:null,newImagingAction:"newImaging",newLabAction:"newLab",newMedicationAction:"newMedication",showDeleteImagingAction:"showDeleteImaging",showDeleteLabAction:"showDeleteLab",showDeleteMedicationAction:"showDeleteMedication",sortKey:null,sortDesc:!1,orderTypeFilters:t.default.computed(function(){var e=this.get("i18n");return[e.t("components.patientOrders.labels.imagingOrderType").toString(),e.t("components.patientOrders.labels.labOrderType").toString(),e.t("components.patientOrders.labels.medicationOrderType").toString()]}),canAddImaging:t.default.computed(function(){return this.currentUserCan("add_imaging")}),canAddLab:t.default.computed(function(){return this.currentUserCan("add_lab")}),canAddMedication:t.default.computed(function(){return this.currentUserCan("add_medication")}),canDeleteImaging:t.default.computed(function(){return this.currentUserCan("delete_imaging")}),canDeleteLab:t.default.computed(function(){return this.currentUserCan("delete_lab")}),canDeleteMedication:t.default.computed(function(){return this.currentUserCan("delete_medication")}),filteredList:l("orderList.[]","filterBy","filterValue",function(){var e=this.get("filterBy"),t=this.get("filterValue"),n=this.get("orderList");return n=this.filterList(n,e,t)}),orderList:l("visit.imaging.[]","visit.labs.[]","visit.medication.[]",function(){var e=this,n=this.get("i18n"),a=this.get("visit.imaging"),l=this.get("visit.labs"),s=this.get("visit.medication"),i=new t.default.A;return i.addObjects(a.map(function(t){return t.set("orderType",n.t("components.patientOrders.labels.imagingOrderType")),t.set("name",t.get("imagingType.name")),t.set("dateProcessed",t.get("imagingDate")),e._setPermissions(t,"canAddImaging","canDeleteImaging"),t})),i.addObjects(l.map(function(t){return t.set("orderType",n.t("components.patientOrders.labels.labOrderType")),t.set("name",t.get("labType.name")),t.set("dateProcessed",t.get("labDate")),e._setPermissions(t,"canAddLab","canDeleteLab"),t})),i.addObjects(s.map(function(t){return t.set("orderType",n.t("components.patientOrders.labels.medicationOrderType")),t.set("name",t.get("medicationName")),t.set("dateProcessed",t.get("prescriptionDate")),t.set("result",""),t.set("notes",t.get("prescription")),e._setPermissions(t,"canAddMedication","canDeleteMedication"),t})),i}),sortedOrders:t.default.computed("filteredList","sortKey","sortDesc",function(){var e=this.get("filteredList"),n=this.get("sortDesc"),a=this.get("sortKey");return t.default.isEmpty(e)||t.default.isEmpty(a)?e:e=e.sort(function(e,l){var s=e.get(a),i=l.get(a);return"orderType"===a&&(s=s.toString(),i=i.toString()),n?t.default.compare(i,s):t.default.compare(s,i)})}),i18n:t.default.inject.service(),visit:null,_setPermissions:function(e,t,n){e.get("canEdit")&&(this.get(t)&&e.set("canEdit",!0),this.get(n)&&e.set("canDelete",!0))},actions:{filter:function(e,t){this.setProperties({filterBy:e,filterValue:t})},newImaging:function(){this.sendAction("newImagingAction")},newLab:function(){this.sendAction("newLabAction")},newMedication:function(){this.sendAction("newMedicationAction")},editOrder:function(e){var t=e.get("constructor.modelName").capitalize();this.sendAction("edit"+t+"Action",e)},showDeleteOrder:function(e){var t=e.get("constructor.modelName").capitalize();this.sendAction("showDelete"+t+"Action",e)},sortByKey:function(e,t){this.setProperties({sortKey:e,sortDesc:t})}}})}),define("hospitalrun/components/patient-summary",["exports","ember","hospitalrun/mixins/user-session"],function(e,t,n){var a=t.default.computed,l=t.default.get,s=t.default.isEmpty,i=t.default.set;e.default=t.default.Component.extend(n.default,{allowAddAllergy:!1,allowAddDiagnosis:!1,allowAddOperativePlan:!1,classNames:["patient-summary"],diagnosisContainer:null,diagnosisList:null,disablePatientLink:!1,editAllergyAction:"editAllergy",editDiagnosisAction:"editDiagnosis",editOperativePlanAction:"editOperativePlan",editOperationReportAction:"editOperationReport",editProcedureAction:"editProcedure",hideInActiveDiagnoses:!0,patient:null,patientProcedures:null,showAddAllergyAction:"showAddAllergy",showAddDiagnosisAction:"showAddDiagnosis",showPatientAction:"showPatient",canAddAllergy:a("allowAddAllergy",{get:function(){return l(this,"allowAddAllergy")&&this.currentUserCan("add_allergy")}}),canAddOperativePlan:a("allowAddOperativePlan",{get:function(){return l(this,"allowAddOperativePlan")&&this.currentUserCan("add_operative_plan")}}),currentOperativePlan:a("patient.operativePlans.@each.status",{get:function(){return l(this,"patient.operativePlans").findBy("isPlanned",!0)}}),haveProcedures:a("patientProcedures.length",function(){return this.get("patientProcedures.length")>0}),shouldLinkToPatient:a("disablePatientLink",function(){return!this.get("disablePatientLink")}),didReceiveAttrs:function(){this._super.apply(this,arguments);var e=l(this,"diagnosisContainer");s(e)&&i(this,"diagnosisContainer",l(this,"patient"))},actions:{addOperativePlan:function(){this.sendAction("editOperativePlanAction")},editOperativePlan:function(e){this.sendAction("editOperativePlanAction",e)},linkToPatient:function(){if(this.get("shouldLinkToPatient")){var e=this.get("patient"),t=this.get("returnTo"),n=this.get("returnToContext");e.set("returnTo",t),e.set("returnToContext",n),this.sendAction("showPatientAction",this.get("patient"))}},editAllergy:function(e){this.sendAction("editAllergyAction",e)},editDiagnosis:function(e){this.sendAction("editDiagnosisAction",e)},editProcedure:function(e){var t=l(e,"report");s(t)?this.sendAction("editProcedureAction",e):this.sendAction("editOperationReportAction",t)},showAddAllergy:function(){this.sendAction("showAddAllergyAction")},showAddDiagnosis:function(){this.sendAction("showAddDiagnosisAction")}}})}),define("hospitalrun/components/patient-typeahead",["exports","ember","hospitalrun/mixins/patient-name","hospitalrun/components/type-ahead"],function(e,t,n,a){e.default=a.default.extend(n.default,{displayKey:"name",selectedAction:"selectedPatientChanged",setOnBlur:!0,_mapPatient:function(e){var t={};return t.name=this.getPatientDisplayName(e)+" - "+this.getPatientDisplayId(e),t[this.get("selectionKey")]=e,t},contentChanged:function(){var e=this.get("bloodhound"),n=this.get("content");e&&(e.clear(),t.default.isEmpty(n)||e.add(n.map(this._mapPatient.bind(this))))}.observes("content.[]"),mappedContent:function(){var e=this.get("content"),t=[];return e&&(t=e.map(this._mapPatient.bind(this))),t}.property("content")})}),define("hospitalrun/components/photo-display",["exports","ember"],function(e,t){e.default=t.default.Component.extend({computedPhotoUrl:null,filesystem:t.default.inject.service(),isFileSystemEnabled:t.default.computed.alias("filesystem.isFileSystemEnabled"),fileName:t.default.computed.alias("photo.fileName"),photo:null,url:t.default.computed.alias("photo.url"),photoUrl:function(){var e=this.get("computedPhotoUrl"),n=this.get("fileName"),a=this.get("filesystem"),l=this.get("isFileSystemEnabled"),s=this.get("url");return t.default.isEmpty(e)?(l&&a.pathToFileSystemURL(n).then(function(e){t.default.isEmpty(e)||this.set("computedPhotoUrl",e)}.bind(this)),s):e}.property("computedPhotoUrl","fileName","url")})}),define("hospitalrun/components/price-list",["exports","ember","hospitalrun/mixins/charge-actions"],function(e,t,n){e.default=t.default.Component.extend(n.default,{attributeBindings:["tabId:id","role"],charges:t.default.computed.alias("model.charges"),classNameBindings:["active"],classNames:["tab-pane"],index:null,model:null,pricingList:null,pricingType:null,role:"tab",setChargeQuantityAction:"setChargeQuantity",active:function(){return 0===this.get("index")}.property(),pricingListByType:function(){var e=this.get("pricingList"),n=this.get("pricingType"),a=[];if(!t.default.isEmpty(e)){e=e.filterBy("pricingType",n),e=e.map(function(e){var t=this.findChargeForPricingItem(e,this.get("charges"));return t&&this.sendAction("setChargeQuantityAction",e.id,t.get("quantity")),e}.bind(this));for(var l=0,s=e,i=s.length;l0?t.default.run.later(null,function(){window.print()},e):t.default.run.scheduleOnce("afterRender",this,function(){window.print()})}}})}),define("hospitalrun/components/quantity-calc",["exports","ember"],function(e,t){var n=t.default.isEmpty;e.default=t.default.Component.extend({quantityGroups:[],calculated:null,currentUnit:null,targetUnit:null,unitList:null,didReceiveAttrs:function(){this._super.apply(this,arguments);var e=this.get("quantityGroups");if(n(e)){var t=this.get("calculated"),a=this.get("targetUnit");e.addObject({index:0,unit:a,firstQuantity:!0,quantity:t})}},showTotal:function(){var e=this.get("calculated");return this.get("quantityGroups").length>1&&!t.default.isEmpty(e)&&!isNaN(e)}.property("calculated"),currentQuantityGroups:function(){var e=void 0,n=this.get("quantityGroups"),a=this.get("targetUnit");if(e=n.get("firstObject"),!t.default.isEmpty(e)){var l=e.unit;t.default.isEmpty(l)?this.set("quantityGroups.firstObject.unit",a):this.updateCurrentUnit(l,0)}return n}.property("quantityGroups","targetUnit"),calculateTotal:function(){var e=this.get("quantityGroups"),n=e.get("lastObject"),a=this.get("targetUnit");if(e.every(function(e){var n=e.quantity,a=e.unit;return!t.default.isEmpty(n)&&!t.default.isEmpty(a)&&!isNaN(n)})&&n.unit===a){var l=e.reduce(function(e,t){return e*parseInt(t.quantity)},1);this.set("calculated",l)}else this.set("calculated")},updateCurrentUnit:function(e,n){var a=this.get("targetUnit"),l=this.get("quantityGroups"),s=l.length;t.default.isEmpty(a)||(e===a?n1}),didInsertElement:function(){var e=s(this,"canCaptureVideo"),t=s(this,"defaultPhotoSource");o(t)&&(t=e?"takeAPicture":"uploadAFile"),this._photoSourceChanged(t)},willDestroyElement:function(){this._stopStream()},_cameraChange:function(e){r(this,"selectedCamera",e);var n=s(this,"stream"),a=s(this,"video");t.default.isEmpty(n)||(a.src=null,this._stopStream());var l=s(this,"selectedCamera"),i={audio:!1,video:{deviceId:l}};navigator.mediaDevices.getUserMedia(i).then(this._gotStream.bind(this)).catch(this._errorCallback),this._setupVideo()},_errorCallback:function(e){console.log("navigator.mediaDevices.getUserMedia error: ",e)},_gotSources:function(e){for(var t=0,n=void 0,a=[],l=0;l!==e.length;++l){var s=e[l];"videoinput"===s.kind&&(n="Camera '"+ ++t,s.label&&(n+=" ("+s.label+")"),a.addObject({deviceId:s.deviceId,label:n}))}r(this,"videoSources",a),a.length>0&&(r(this,"selectedCamera",a[0].deviceId),this._cameraChange(a[0].deviceId))},_gotStream:function(e){if(this.isDestroyed)this._stopStream(e);else{var t=s(this,"video");r(this,"stream",e),t.srcObject=e,t.play()}},_photoSourceChanged:function(e){var t=this.$(".camera"),n=s(this,"setupCamera");if(r(this,"photoSource",e),"uploadAFile"===e)t.hide();else if(t.show(),!n){var a=this.$("canvas").get(0),l=this.$("img").get(0),i=this.$("video").get(0);if(this.setProperties({canvas:a,photo:l,video:i}),navigator.mediaDevices)if(navigator.mediaDevices.enumerateDevices)navigator.mediaDevices.enumerateDevices().then(this._gotSources.bind(this)).catch(this._errorCallback),this._setupCanPlayListener(i);else if(navigator.mediaDevices.getUserMedia){var o={audio:!1,video:!0};navigator.mediaDevices.getUserMedia(o).then(this._gotStream.bind(this)).catch(this._errorCallback),this._setupCanPlayListener(i)}r(this,"setupCamera",!0)}},_setupCanPlayListener:function(e){e.removeEventListener("canplay",this._setupVideo.bind(this),!1),e.addEventListener("canplay",this._setupVideo.bind(this),!1)},_setupVideo:function(){var e=s(this,"canvas"),t=s(this,"height"),n=s(this,"video"),a=s(this,"width");t=n.videoHeight/(n.videoWidth/a),n.setAttribute("width",a),n.setAttribute("height",t),e.setAttribute("width",a),e.setAttribute("height",t),this.setProperties({height:t,width:a})},_stopStream:function(e){var a=e||s(this,"stream");if(!t.default.isEmpty(a))if(void 0===a.active)a.stop();else{var l=a.getTracks(),i=n(l,1),o=i[0];o.stop()}},actions:{cameraChange:function(e){this._cameraChange(e)},photoSourceChange:function(e){this._photoSourceChanged(e)},takePhoto:function(){var e=s(this,"canvas"),t=s(this,"height"),n=s(this,"video"),a=s(this,"width");e.width=a,e.height=t,e.getContext("2d").drawImage(n,0,0,a,t);for(var l=e.toDataURL("image/png"),i=atob(l.split(",")[1]),o=[],d=0;d0}}),actions:{nextPage:function(){var e=this.get("nextStartKey"),t=this.get("previousStartKeys"),n=this.get("firstKey");this.set("previousStartKey",n),t.push(n),this.set("startKey",e),this.showProgressModal()},previousPage:function(){var e=this.get("previousStartKey"),t=this.get("previousStartKeys");t.pop(),this.set("startKey",e),this.set("previousStartKey",t.pop()),this.set("previousStartKeys",t),this.showProgressModal()},sortByKey:function(e,t){this.setProperties({previousStartKey:null,previousStartKeys:[],nextStartKey:null,sortDesc:t,sortKey:e,startKey:null,firstKey:null}),this.showProgressModal()}}})}),define("hospitalrun/controllers/abstract-report-controller",["exports","ember","hospitalrun/mixins/date-format","hospitalrun/mixins/modal-helper","moment","hospitalrun/mixins/number-format","hospitalrun/mixins/pagination-props","hospitalrun/mixins/pouchdb","hospitalrun/mixins/progress-dialog"],function(e,t,n,a,l,s,i,o,r){e.default=t.default.Controller.extend(n.default,a.default,s.default,i.default,o.default,r.default,{defaultErrorMessage:"An error was encountered while generating the requested report. Please let your system administrator know that you have encountered an error.",offset:0,limit:25,progressMessage:"Please wait while your report is generated.",progressTitle:"Generating Report",reportColumns:null,reportHeaders:null,reportRows:[],reportTitle:null,reportType:null,reportTypes:null,showFirstPageButton:!0,showLastPageButton:!0,showReportResults:!1,_addReportRow:function(e,n,a,l){var s=void 0,i=this.get("reportRows"),o=[];t.default.isEmpty(a)&&(a=this.get("reportColumns"));for(var r in a)a[r].include&&(s=t.default.get(e,a[r].property),t.default.isEmpty(s)?o.push(""):"_numberFormat"===a[r].format?n?o.push(s):o.push(this._numberFormat(s)):!n&&a[r].format?o.push(this[a[r].format](s)):o.push(s));l?i.addObject({rowAction:l,row:o}):i.addObject(o)},_finishReport:function(e){this.set("showReportResults",!0),this.set("offset",0),this._setReportHeaders(e),this._setReportTitle(),this._generateExport(),this.closeProgressModal()},_generateExport:function(){var e=[],t=this.get("reportHeaders"),n=[t];n.addObjects(this.get("reportRows")),n.forEach(function(t){var n=void 0;n=t.row?t.row:t,n=n.map(function(e){return e?e.replace?e.replace('"','""'):e:""}),e.push('"'+n.join('","')+'"')});var a=e.join("\r\n"),l="data:application/csv;charset=utf-8,"+encodeURIComponent(a);this.set("csvExport",l)},_notifyReportError:function(e){var t=this.get("i18n");throw this.closeProgressModal(),this.displayAlert(t.t("alerts.reportError"),t.t("messages.reportError")),new Error(e)},_setReportHeaders:function(e){var n=[];t.default.isEmpty(e)&&(e=this.get("reportColumns"));for(var a in e)e[a].include&&n.push(e[a].label);this.set("reportHeaders",n)},_setReportTitle:function(){var e=this.get("endDate"),n="",a="",s=this.get("reportType"),i=this.get("reportTypes"),o=this.get("startDate");t.default.isEmpty(e)||(n=(0,l.default)(e).format("l"));var r=i.findBy("value",s);t.default.isEmpty(o)?this.set("reportTitle",this.get("i18n").t("inventory.reports.titleSingleDate",{name:r.name,date:n})):(a=(0,l.default)(o).format("l"),this.set("reportTitle",this.get("i18n").t("inventory.reports.titleDateRange",{name:r.name,startDate:a,endDate:n})))},actions:{firstPage:function(){this.set("offset",0)},nextPage:function(){var e=this.get("limit");this.incrementProperty("offset",e)},previousPage:function(){var e=this.get("limit");this.decrementProperty("offset",e)},lastPage:function(){var e=this.get("reportRows.length"),t=this.get("limit"),n=parseInt(e/t);this.set("offset",n*t)}},currentReportRows:function(){var e=this.get("limit"),t=this.get("offset");return this.get("reportRows").slice(t,t+e)}.property("reportRows.[]","offset","limit"),disablePreviousPage:function(){return 0===this.get("offset")}.property("offset"),disableNextPage:function(){ +var e=this.get("limit"),t=this.get("reportRows.length");return this.get("offset")+e>=t}.property("offset","limit","reportRows.length"),showPagination:function(){return this.get("reportRows.length")>this.get("limit")}.property("reportRows.length")})}),define("hospitalrun/controllers/application",["exports","ember"],function(e,t){e.default=t.default.Controller.extend({filesystem:t.default.inject.service(),session:t.default.inject.service(),_setup:function(){this.get("filesystem").setup()}.on("init")})}),define("hospitalrun/controllers/index",["exports","ember","hospitalrun/mixins/user-session"],function(e,t,n){var a=t.default.computed.alias,l=t.default.inject,s=t.default.get,i=t.default.set;e.default=t.default.Controller.extend(n.default,{config:l.service(),database:l.service(),standAlone:a("config.standAlone"),needsUserSetup:a("config.needsUserSetup"),init:function(){var e=this;s(this,"standAlone")&&s(this,"database.usersDB").allDocs().then(function(t){t.total_rows<=1&&i(e,"config.needsUserSetup",!0)})},actions:{newUser:function(){this.send("createNewUser")}}})}),define("hospitalrun/controllers/login",["exports","ember","ember-ajax/errors"],function(e,t,n){var a=t.default.Controller.extend({session:t.default.inject.service(),errorMessage:null,identification:null,password:null,actions:{authenticate:function(){var e=this,t=this.getProperties("identification","password"),a=t.identification,l=t.password;this.get("session").authenticate("authenticator:custom",{identification:a,password:l}).catch(function(t){(0,n.isAbortError)(t)||(0,n.isTimeoutError)(t)?(e.set("errorMessage",!1),e.set("offlineError",!0)):(e.set("errorMessage",!0),e.set("offlineError",!1))})}}});e.default=a}),define("hospitalrun/controllers/navigation",["exports","ember","hospitalrun/mixins/hospitalrun-version","hospitalrun/mixins/modal-helper","hospitalrun/mixins/progress-dialog","hospitalrun/mixins/user-session","hospitalrun/mixins/navigation"],function(e,t,n,a,l,s,i){e.default=t.default.Controller.extend(n.default,a.default,l.default,s.default,i.default,{ajax:t.default.inject.service(),application:t.default.inject.controller(),allowSearch:!1,config:t.default.inject.service(),currentSearchText:null,currentRouteName:t.default.computed.alias("application.currentRouteName"),progressTitle:"Searching",searchRoute:null,session:t.default.inject.service(),syncStatus:"",currentOpenNav:null,actions:{about:function(){var e=this,n=this.get("version");this.get("ajax").request("/serverinfo").then(function(a){var l="Version: "+n;t.default.isEmpty(a)||(l+=" Site Info: "+a),e.displayAlert(e.get("i18n").t("navigation.about"),l)})},invalidateSession:function(){var e=this,t=this.get("session");t.get("isAuthenticated")&&t.invalidate().catch(function(){var t=e.get("i18n"),n=t.t("navigation.messages.logoutFailed"),a=t.t("navigation.titles.logoutFailed");e.displayAlert(a,n)})},search:function(){if(this.allowSearch&&this.searchRoute){var e=this.get("currentRouteName"),t=this.get("currentSearchText"),n=this.get("searchText");t===n&&-1!==e.indexOf(".search")||(this.set("searchText",""),this.set("progressMessage","Searching for "+n+". Please wait..."),this.showProgressModal(),this.transitionToRoute(this.searchRoute+"/"+n))}},navAction:function(e){this.currentOpenNav&&this.currentOpenNav.route!==e.route&&this.currentOpenNav.closeSubnav(),this.set("currentOpenNav",e),this.transitionToRoute(e.route),this.set("isShowingSettings",!1)},toggleSettings:function(){this.toggleProperty("isShowingSettings")},closeSettings:function(){this.set("isShowingSettings",!1)}}})}),define("hospitalrun/custom-form-add/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember"],function(e,t,n){var a=n.default.computed,l=n.default.isEmpty;e.default=t.default.extend({updateAction:"addForm",actions:{addForm:function(){var e=this.get("model.modelToAddTo"),t=e.get("customForms"),a=this.get("model.selectedForm");l(t)&&(t=n.default.Object.create(),e.set("customForms",t)),t.set(a,n.default.Object.create()),e.notifyPropertyChange("customForms"),this.send("closeModal")}},isUpdateDisabled:a("model.selectedForm",function(){return l(this.get("model.selectedForm"))})})}),define("hospitalrun/custom-form-add/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"1q7fCvJu",block:'{"statements":[["block",["modal-dialog"],null,[["cancelAction","isUpdateDisabled","title","updateButtonAction","updateButtonText"],["closeModal",["get",["isUpdateDisabled"]],["helper",["t"],["customForms.titles.addCustomForm"],null],"addForm",["helper",["t"],["customForms.buttons.addForm"],null]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["em-select"],null,[["label","property","content","prompt","class"],[["helper",["t"],["customForms.labels.formToAdd"],null],"selectedForm",["get",["model","customForms"]]," ","form-to-add"]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],0]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/custom-form-add/template.hbs"}})}),define("hospitalrun/diagnosis/edit/controller",["exports","ember","hospitalrun/controllers/abstract-edit-controller"],function(e,t,n){var a=t.default.computed;e.default=n.default.extend({updateCapability:"add_diagnosis",editController:t.default.computed.alias("model.editController"),diagnosisList:t.default.computed.alias("editController.diagnosisList"),newDiagnosis:!1,lookupListsToUpdate:[{name:"diagnosisList",property:"model.diagnosis",id:"diagnosis_list"}],additionalButtons:a("model.isNew",function(){var e=this.get("i18n");if(!this.get("model.isNew"))return[{class:"btn btn-default warning",buttonAction:"deleteDiagnosis",buttonIcon:"octicon octicon-x",buttonText:e.t("buttons.delete")}]}),canDeleteDiagnosis:a(function(){return this.currentUserCan("delete_diagnosis")}),title:a("model.isNew",function(){var e=this.get("i18n");return this.get("model.isNew")?e.t("diagnosis.titles.addDiagnosis"):e.t("diagnosis.titles.editDiagnosis")}),afterUpdate:function(e){this.get("newDiagnosis")?this.get("editController").send("addDiagnosis",e):this.send("closeModal")},beforeUpdate:function(){var e=this.get("model");return this.set("newDiagnosis",e.get("isNew")),t.default.RSVP.Promise.resolve()},actions:{cancel:function(){this.send("closeModal")},deleteDiagnosis:function(){var e=this.get("model");this.get("editController").send("deleteDiagnosis",e)}}})}),define("hospitalrun/diagnosis/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"i1WyGKMG",block:'{"statements":[["block",["modal-dialog"],null,[["additionalButtons","hideCancelButton","isUpdateDisabled","title","updateButtonAction","updateButtonText"],[["get",["additionalButtons"]],["get",["hideCancelButton"]],["get",["isUpdateDisabled"]],["get",["title"]],["get",["updateButtonAction"]],["get",["updateButtonText"]]]],4]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["helper",["t"],["diagnosis.labels.activeDiagnosis"],null],"active","col-sm-4"]]],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"],["diagnosis.labels.diagnosis"],null],false],["close-element"],["text","\\n "],["open-element","div",[]],["flush-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","diagnosis"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","hint","class"],["diagnosis",["helper",["t"],["diagnosis.labels.diagnosis"],null],["get",["diagnosisList"]],false,"diagnosis-text required"]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["model","isNew"]]],null,2,1],["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class"],["date",["helper",["t"],["diagnosis.labels.date"],null],"col-sm-4 required"]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["helper",["t"],["diagnosis.labels.secondaryDiagnosis"],null],"secondaryDiagnosis","col-sm-4 secondary-diagnosis"]]],false],["text","\\n"],["block",["unless"],[["get",["model","isNew"]]],null,0],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],3]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/diagnosis/edit/template.hbs"}})}),define("hospitalrun/dialog/controller",["exports","ember"],function(e,t){var n=t.default.computed,a=t.default.get,l=t.default.isEmpty;e.default=t.default.Controller.extend({showUpdateButton:!0,isUpdateDisabled:!1,cancelAction:n("model.cancelAction",function(){var e=a(this,"model.cancelAction");return l(e)&&(e="cancel"),e}),actions:{cancel:function(){this.send("closeModal")},confirm:function(){var e=this.getWithDefault("model.closeModalOnConfirm",!0),t=this.getWithDefault("model.confirmAction","model.confirm");this.send(t,a(this,"model")),e&&this.send("closeModal")},ok:function(){var e=a(this,"model.okAction"),t=a(this,"model.okContext");l(t)&&(t=a(this,"model")),l(e)||this.send(e,t),this.send("closeModal")}}})}),define("hospitalrun/dialog/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"CVjH3ZEN",block:'{"statements":[["block",["modal-dialog"],null,[["cancelAction","hideCancelButton","hideUpdateButton","isUpdateDisabled","title","updateButtonAction","updateButtonText","cancelButtonText"],[["get",["cancelAction"]],["get",["model","hideCancelButton"]],["get",["model","hideUpdateButton"]],["get",["model","isUpdateDisabled"]],["get",["model","title"]],["get",["model","updateButtonAction"]],["get",["model","updateButtonText"]],["get",["model","cancelButtonText"]]]],1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","progress"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","progress-bar progress-bar-striped active"],["static-attr","role","progressbar"],["dynamic-attr","aria-valuenow",["unknown",["model","progressBarValue"]],null],["static-attr","aria-valuemin","0"],["static-attr","aria-valuemax","100"],["dynamic-attr","style",["unknown",["model","progressBarStyle"]],null],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","sr-only"],["flush-element"],["append",["helper",["t"],["loading.progressBar.progress"],[["progressBarValue"],[["get",["model","progressBarValue"]]]]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["model","showProgress"]]],null,0],["text"," "],["append",["unknown",["model","message"]],false],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/dialog/template.hbs"}})}),define("hospitalrun/electron/reload",["exports"],function(e){!function(){function e(){for(var e,t=arguments.length,n=Array(t),a=0;a")):null})}),define("hospitalrun/helpers/is-array",["exports","ember","ember-truth-helpers/helpers/is-array"],function(e,t,n){var a=null;t.default.Helper?a=t.default.Helper.helper(n.isArrayHelper):t.default.HTMLBars.makeBoundHelper&&(a=t.default.HTMLBars.makeBoundHelper(n.isArrayHelper)),e.default=a}),define("hospitalrun/helpers/is-equal-array",["exports","ember"],function(e,t){var n=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")}}();e.default=t.default.Helper.helper(function(e){var a=n(e,2),l=a[0],s=a[1];return!(!t.default.isArray(l)||!t.default.isArray(s)||l.get("length")!==s.get("length"))&&l.every(function(e){return s.includes(e)})})}),define("hospitalrun/helpers/is-equal-by-path",["exports","ember"],function(e,t){var n=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")}}();e.default=t.default.Helper.helper(function(e){var a=n(e,3),l=a[0],s=a[1],i=a[2];return i?t.default.get(l,i)===s:l===s})}),define("hospitalrun/helpers/is-equal",["exports","ember"],function(e,t){var n=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")}}();e.default=t.default.Helper.helper(function(e){var t=n(e,2);return t[0]===t[1]})}),define("hospitalrun/helpers/is-not",["exports","ember"],function(e,t){var n=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")}}();e.default=t.default.Helper.helper(function(e){return!n(e,1)[0]})}),define("hospitalrun/helpers/lt",["exports","ember","ember-truth-helpers/helpers/lt"],function(e,t,n){var a=null;t.default.Helper?a=t.default.Helper.helper(n.ltHelper):t.default.HTMLBars.makeBoundHelper&&(a=t.default.HTMLBars.makeBoundHelper(n.ltHelper)),e.default=a}),define("hospitalrun/helpers/lte",["exports","ember","ember-truth-helpers/helpers/lte"],function(e,t,n){var a=null;t.default.Helper?a=t.default.Helper.helper(n.lteHelper):t.default.HTMLBars.makeBoundHelper&&(a=t.default.HTMLBars.makeBoundHelper(n.lteHelper)),e.default=a}),define("hospitalrun/helpers/not-eq",["exports","ember","ember-truth-helpers/helpers/not-equal"],function(e,t,n){var a=null;t.default.Helper?a=t.default.Helper.helper(n.notEqualHelper):t.default.HTMLBars.makeBoundHelper&&(a=t.default.HTMLBars.makeBoundHelper(n.notEqualHelper)),e.default=a}),define("hospitalrun/helpers/not",["exports","ember","ember-truth-helpers/helpers/not"],function(e,t,n){var a=null;t.default.Helper?a=t.default.Helper.helper(n.notHelper):t.default.HTMLBars.makeBoundHelper&&(a=t.default.HTMLBars.makeBoundHelper(n.notHelper)),e.default=a}),define("hospitalrun/helpers/number-format",["exports","ember","hospitalrun/mixins/number-format"],function(e,t,n){var a=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")}}(),l=t.default.Object.extend(n.default);e.default=t.default.Helper.helper(function(e){var t=a(e,1),n=t[0];return(new l)._numberFormat(n)})}),define("hospitalrun/helpers/or",["exports","ember","ember-truth-helpers/helpers/or"],function(e,t,n){var a=null;t.default.Helper?a=t.default.Helper.helper(n.orHelper):t.default.HTMLBars.makeBoundHelper&&(a=t.default.HTMLBars.makeBoundHelper(n.orHelper)),e.default=a}),define("hospitalrun/helpers/perform",["exports","ember","ember-concurrency/-helpers"],function(e,t,n){function a(e,t){return(0,n.taskHelperClosure)("perform",e,t)}e.performHelper=a,e.default=t.default.Helper.helper(a)}),define("hospitalrun/helpers/pluralize",["exports","ember-inflector/lib/helpers/pluralize"],function(e,t){e.default=t.default}),define("hospitalrun/helpers/read-path",["exports","ember"],function(e,t){var n=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")}}();e.default=t.default.Helper.helper(function(e){var a=n(e,2),l=a[0],s=a[1];return t.default.isEmpty(s)?l:t.default.get(l,s)})}),define("hospitalrun/helpers/singularize",["exports","ember-inflector/lib/helpers/singularize"],function(e,t){e.default=t.default}),define("hospitalrun/helpers/t",["exports","ember-i18n/helper"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("hospitalrun/helpers/task",["exports","ember"],function(e,t){function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1))&&this.currentUserCan("complete_imaging")}.property("selectedImagingType.[]","model.imagingTypeName"),actions:{completeImaging:function(){this.set("model.status","Completed"),this.get("model").validate().then(function(){this.get("model.isValid")&&(this.set("model.imagingDate",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("selectedImagingType");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.imagingTypeName"),"Imaging","model.imagingType").then(function(){this.addChildToVisit(t,"imaging","Imaging").then(function(){this.saveModel()}.bind(this))}.bind(e)):e.getSelectedPricing("selectedImagingType").then(function(e){a.default.isArray(e)?this.createMultipleRequests(e,"imagingType","imaging","Imaging"):(this.set("model.imagingType",e),this.addChildToVisit(t,"imaging","Imaging").then(function(){this.saveModel()}.bind(this))) +}.bind(e))}():this.saveModel()}},additionalButtons:function(){var e=this.get("i18n"),t=this.get("canComplete");if(this.get("model.isValid")&&t)return[{buttonAction:"completeImaging",buttonIcon:"glyphicon glyphicon-ok",class:"btn btn-primary on-white",buttonText:e.t("buttons.complete")}]}.property("canComplete","model.isValid"),lookupListsToUpdate:[{name:"radiologistList",property:"model.radiologist",id:"radiologists"}],pricingTypeForObjectType:"Imaging Procedure",pricingTypes:a.default.computed.alias("imagingController.imagingPricingTypes"),pricingList:null,radiologistList:a.default.computed.alias("imagingController.radiologistList"),updateCapability:"add_imaging",afterUpdate:function(e,t){var n=this.get("i18n");this.updateLookupLists();var a=void 0,l=void 0,s=void 0;"Completed"===this.get("model.status")?(l=n.t("imaging.alerts.completedTitle"),s=n.t("imaging.alerts.completedMessage")):(l=n.t("imaging.alerts.savedTitle"),s=n.t("imaging.alerts.savedMessage")),t&&(a=this.get("cancelAction")),this.saveVisitIfNeeded(l,s,a),this.set("model.selectPatient",!1)}})}),define("hospitalrun/imaging/edit/route",["exports","ember-i18n","hospitalrun/routes/abstract-edit-route","hospitalrun/mixins/add-to-patient-route","hospitalrun/mixins/charge-route","ember","moment","hospitalrun/mixins/patient-list-route"],function(e,t,n,a,l,s,i,o){e.default=n.default.extend(a.default,l.default,o.default,{editTitle:(0,t.translationMacro)("imaging.titles.editTitle"),modelName:"imaging",newTitle:(0,t.translationMacro)("imaging.titles.editTitle"),pricingCategory:"Imaging",actions:{returnToAllItems:function(){this.controller.send("returnToAllItems")}},getNewData:function(){return s.default.RSVP.resolve({selectPatient:!0,requestDate:(0,i.default)().startOf("day").toDate()})}})}),define("hospitalrun/imaging/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"FCK9YPgE",block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],6]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","prompt","class"],["radiologist",["helper",["t"],["imaging.labels.radiologist"],null],["get",["radiologistList"]]," ","radiologist-input"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["result",["helper",["t"],["labels.result"],null],"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-9"],["flush-element"],["text","\\n "],["open-element","label",[]],["flush-element"],["append",["helper",["t"],["labels.imagingType"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","imagingType","name"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group col-xs-12"],["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",["helper",["t"],["labels.visit"],null],"visit",["get",["patientVisitsForSelect"]],"selectObject","selectObject.visitDescription",["helper",["t"],["imaging.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","class"],["imagingTypeName",["helper",["t"],["labels.imagingType"],null],["get",["objectTypeList"]],["get",["selectedImagingType"]],"name","pricing","required"," ",["get",["model"]],"imaging-type-input"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["patient-summary"],null,[["patient","returnTo","returnToContext","disablePatientLink"],[["get",["model","patient"]],"imaging.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 patient-input"]]],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"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],5]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/imaging/edit/template.hbs"}})}),define("hospitalrun/imaging/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_imaging"})}),define("hospitalrun/imaging/index/imaging-edit-button/component",["exports","ember"],function(e,t){e.default=t.default.Component.extend({tagName:"button",classNames:["btn","btn-default","neutral"]})}),define("hospitalrun/imaging/index/imaging-edit-button/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"fgj2GO/M",block:'{"statements":[["block",["link-to"],["imaging.edit",["get",["imaging"]]],null,0],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["append",["helper",["t"],["labels.edit"],null],false]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/imaging/index/imaging-edit-button/template.hbs"}})}),define("hospitalrun/imaging/index/requested-list-item/component",["exports","ember"],function(e,t){e.default=t.default.Component.extend({tagName:"tr",classNames:["clickable"],click:function(){this.sendAction("action",this.imaging)}})}),define("hospitalrun/imaging/index/requested-list-item/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"JWG9328s",block:'{"statements":[["open-element","td",[]],["static-attr","class","date"],["flush-element"],["append",["helper",["date-format"],[["get",["imaging","requestedDate"]]],[["format"],["l h:mm A"]]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","requested-by"],["flush-element"],["append",["unknown",["imaging","requestedBy"]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","patient"],["flush-element"],["append",["unknown",["imaging","patient","displayName"]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","type"],["flush-element"],["append",["unknown",["imaging","imagingType","name"]],false],["close-element"],["text","\\n"],["open-element","td",[]],["static-attr","class","notes"],["flush-element"],["append",["unknown",["imaging","notes"]],false],["close-element"],["text","\\n\\n"],["block",["if"],[["get",["showActions"]]],null,1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["imaging/index/imaging-edit-button"],null,[["imaging"],[["get",["imaging"]]]]],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/imaging/index/requested-list-item/template.hbs"}})}),define("hospitalrun/imaging/index/route",["exports","ember-i18n","hospitalrun/routes/abstract-index-route"],function(e,t,n){e.default=n.default.extend({modelName:"imaging",pageTitle:(0,t.translationMacro)("imaging.pageTitle"),searchStatus:"Requested",_getStartKeyFromItem:function(e){var t=e.get("imagingDateAsTime"),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:"imaging_by_status"}}})}),define("hospitalrun/imaging/index/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"bA1O68vE",block:'{"statements":[["block",["item-listing"],null,[["paginationProps"],[["get",["paginationProps"]]]],5]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","a",[]],["static-attr","href","#"],["modifier",["action"],[["get",[null]],"newItem"]],["flush-element"],["append",["helper",["t"],["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"],["messages.noItemsFound"],null],false],["text"," "],["block",["if"],[["get",["canAdd"]]],null,0],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["imaging/index/requested-list-item"],null,[["imaging","action","showActions","canEdit"],[["get",["imaging"]],"editItem",["get",["showActions"]],["get",["canEdit"]]]]],false],["text","\\n"]],"locals":["imaging"]},{"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.requestedBy"],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.imagingType"],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/imaging/index/template.hbs"}})}),define("hospitalrun/imaging/route",["exports","ember-i18n","hospitalrun/routes/abstract-module-route"],function(e,t,n){e.default=n.default.extend({addCapability:"add_imaging",additionalModels:[{name:"imagingPricingTypes",findArgs:["lookup","imaging_pricing_types"]},{name:"radiologistList",findArgs:["lookup","radiologists"]}],allowSearch:!1,moduleName:"imaging",newButtonText:(0,t.translationMacro)("imaging.buttons.newButton"),sectionTitle:(0,t.translationMacro)("imaging.sectionTitle")})});define("hospitalrun/inc-category/add-item/controller",["exports","ember","ember-i18n"],function(e,t,n){var a=t.default.Controller,l=t.default.computed.alias,s=t.default.get,i=t.default.inject;e.default=a.extend({showUpdateButton:!0,title:(0,n.translationMacro)("incident.titles.addCategoryItem"),updateButtonAction:"add",updateButtonText:"Add",incidentCategoryEdit:i.controller("inc-category/edit"),editController:l("incidentCategoryEdit"),actions:{add:function(){var e=s(this,"model");s(this,"editController").send("addItem",e)},cancel:function(){this.send("closeModal")}}})}),define("hospitalrun/inc-category/add-item/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"vKfk7Zs7",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",["em-input"],null,[["label","property","class"],[["helper",["t"],["incident.labels.item"],null],"item","incident-category-item"]]],false],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],0]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inc-category/add-item/template.hbs"}})}),define("hospitalrun/inc-category/delete/controller",["exports","hospitalrun/controllers/abstract-delete-controller","ember-i18n"],function(e,t,n){e.default=t.default.extend({title:(0,n.translationMacro)("incident.titles.deleteIncidentCategory")})}),define("hospitalrun/inc-category/delete/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"WDQepTMs",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"],[["name"],[["get",["model","incidentCategoryName"]]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inc-category/delete/template.hbs"}})}),define("hospitalrun/inc-category/edit/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember"],function(e,t,n){var a=n.default.get;e.default=t.default.extend({updateCapability:"add_incident_category",afterUpdate:function(e){var t=a(this,"i18n"),n=t.t("incident.messages.incidentCategorySaved",{name:a(e,"incidentCategoryName")}),l=t.t("incident.titles.incidentCategorySaved");this.displayAlert(l,n)},actions:{addItem:function(e){var t=this.getWithDefault("model.incidentCategoryItems",[]),n=a(this,"model");t.addObject(e),n.set("incidentCategoryItems",t),this.send("update",!0),this.send("closeModal")},deleteItem:function(e){var t=e.get("itemToDelete");a(this,"model.incidentCategoryItems").removeObject(t),this.send("update",!0)},showAddItem:function(){this.send("openModal","inc-category.add-item",n.default.Object.create())},showDeleteItem:function(e){var t=a(this,"i18n"),l=t.t("models.item.names.singular"),s=t.t("messages.delete_singular",{name:l}),i=t.t("incident.titles.deleteItem");this.displayConfirm(i,s,"deleteItem",n.default.Object.create({itemToDelete:e}))}}})}),define("hospitalrun/inc-category/edit/route",["exports","hospitalrun/routes/abstract-edit-route","ember-i18n"],function(e,t,n){e.default=t.default.extend({editTitle:(0,n.translationMacro)("incident.titles.editIncidentCategory"),modelName:"inc-category",newTitle:(0,n.translationMacro)("incident.titles.newIncidentCategory"),actions:{deleteItem:function(e){this.controller.send("deleteItem",e)}}})}),define("hospitalrun/inc-category/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"lHIEhMMk",block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],2]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","incident-category-item"],["flush-element"],["append",["unknown",["incidentCategoryItem","item"]],false],["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]],"showDeleteItem",["get",["incidentCategoryItem"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["append",["helper",["t"],["incident.buttons.delete"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["incidentCategoryItem"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","form-group has-success"],["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"],["incident.titles.incidentCategoryName"],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 "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-input"],null,[["property","class"],["incidentCategoryName","incident-category-name col-sm-12"]]],false],["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"],["incident.titles.incidentCategoryItem"],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 "],["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"],["incident.labels.item"],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","incidentCategoryItems"]]],null,0],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-footer"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"showAddItem"]],["flush-element"],["append",["helper",["t"],["incident.buttons.addItem"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],1]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inc-category/edit/template.hbs"}})}),define("hospitalrun/inc-category/index/controller",["exports","hospitalrun/controllers/abstract-paged-controller","ember"],function(e,t,n){e.default=t.default.extend({startKey:[],canDeleteIncidentCategory:n.default.computed(function(){return this.currentUserCan("delete_incident_category")}),actions:{showDeleteIncidentCategory:function(e){this.send("openModal","inc-category.delete",e)}}})}),define("hospitalrun/inc-category/index/route",["exports","hospitalrun/routes/abstract-index-route","ember-i18n"],function(e,t,n){e.default=t.default.extend({modelName:"inc-category",newButtonAction:"newItem",newButtonText:(0,n.translationMacro)("incident.buttons.newCategory"),pageTitle:(0,n.translationMacro)("incident.titles.incidentCategories"),actions:{editItem:function(e){this.transitionTo("inc-category.edit",e)},newItem:function(){this.transitionTo("inc-category.edit","new")}}})}),define("hospitalrun/inc-category/index/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"e+LcjQOv",block:'{"statements":[["block",["item-listing"],null,[["paginationProps"],[["get",["paginationProps"]]]],5]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-info"],["flush-element"],["text","\\n "],["open-element","em",[]],["flush-element"],["append",["helper",["t"],["incident.messages.noIncidentCategoriesFound"],null],false],["close-element"],["text","\\n "],["open-element","em",[]],["flush-element"],["append",["helper",["t"],["incident.messages.createNewIncidentCategory"],null],false],["close-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-primary on-white"],["modifier",["action"],[["get",[null]],"newItem"]],["flush-element"],["append",["helper",["t"],["incident.buttons.newCategory"],null],false],["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]],"showDeleteIncidentCategory",["get",["category"]]],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["append",["helper",["t"],["incident.buttons.delete"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["modifier",["action"],[["get",[null]],"editItem",["get",["category"]]]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","incident-catergory-name"],["flush-element"],["append",["unknown",["category","incidentCategoryName"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"editItem",["get",["category"]]],[["bubbles"],[false]]],["flush-element"],["append",["helper",["t"],["incident.buttons.edit"],null],false],["close-element"],["text","\\n"],["block",["if"],[["get",["canDeleteIncidentCategory"]]],null,1],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["unless"],[["get",["category","archived"]]],null,2]],"locals":["category"]},{"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"],["incident.titles.incidentCategoryName"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["incident.labels.actions"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model"]]],null,3],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["hasRecords"]]],null,4,0]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inc-category/index/template.hbs"}})}),define("hospitalrun/inc-category/route",["exports","ember-simple-auth/mixins/authenticated-route-mixin","ember"],function(e,t,n){e.default=n.default.Route.extend(t.default,{actions:{allItems:function(){this.transitionTo("inc-category.index")}}})}),define("hospitalrun/incident/attachment/controller",["exports","hospitalrun/patients/photo/controller","ember","ember-i18n"],function(e,t,n,a){var l=n.default.inject;e.default=t.default.extend({addAction:"addAttachment",editTitle:(0,a.translationMacro)("incident.titles.editAttachment"),modelName:"attachment",newTitle:(0,a.translationMacro)("incident.titles.addAttachment"),fileRequiredMessage:(0,a.translationMacro)("incident.messages.attachmentFileRequired"),editController:l.controller("incident/edit")})}),define("hospitalrun/incident/attachment/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"PyR3FXRE",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"],["incident.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","title"]],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,[["defaultPhotoSource","isImage","photoFile","sourceLabel"],["uploadAFile",["get",["model","isImage"]],["get",["model","photoFile"]],["helper",["t"],["incident.labels.howToAddAttachment"],null]]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-input"],null,[["property","label","class"],["title",["helper",["t"],["incident.labels.title"],null],"attachment-title"]]],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/incident/attachment/template.hbs"}})}),define("hospitalrun/incident/completed/controller",["exports","hospitalrun/incident/index/controller"],function(e,t){e.default=t.default.extend({canDelete:!1,startKey:[]})}),define("hospitalrun/incident/completed/route",["exports","hospitalrun/incident/index/route","hospitalrun/mixins/user-session","ember-i18n"],function(e,t,n,a){e.default=t.default.extend(n.default,{editReturn:"incident.completed",modelName:"incident",pageTitle:(0,a.translationMacro)("incident.titles.closed"),_getStartKeyFromItem:function(e){var t=this._getPouchIdFromItem(e);return[e.get("reportedBy"),t]},_modelQueryParams:function(){var e=this._getMaxPouchId(),t=this.getUserName(!0),n={mapReduce:"closed_incidents_by_user"};return this.currentUserCan("manage_incidents")||(n.options={startkey:[t,null],endkey:[t,e]}),n}})}),define("hospitalrun/incident/completed/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"M/U8O1VD",block:'{"statements":[["partial","incident/index"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[],"hasPartials":true}',meta:{moduleName:"hospitalrun/incident/completed/template.hbs"}})}),define("hospitalrun/incident/delete/controller",["exports","hospitalrun/controllers/abstract-delete-controller","ember","ember-i18n"],function(e,t,n,a){var l=n.default.get,s=n.default.RSVP;e.default=t.default.extend({title:(0,a.translationMacro)("incident.titles.deleteIncident"),_deleteChildObject:function(e,t,n){e.get(t).then(function(e){e.forEach(function(e){n.push(e.destroyRecord())})})},actions:{delete:function(){var e=[],t=l(this,"model");this._deleteChildObject(t,"notes",e),s.all(e).then(function(){l(this,"model").destroyRecord().then(function(){this.send("closeModal")}.bind(this))}.bind(this))}}})}),define("hospitalrun/incident/delete/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"VVl8A6E/", +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"," "],["append",["helper",["t"],["messages.delete_singular"],[["name"],[["helper",["t"],["models.incident.names.singular"],null]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/incident/delete/template.hbs"}})}),define("hospitalrun/incident/edit/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember-data","ember","hospitalrun/mixins/friendly-id","hospitalrun/mixins/incident-statuses","hospitalrun/mixins/patient-submodule","hospitalrun/utils/select-values","hospitalrun/mixins/user-session"],function(e,t,n,a,l,s,i,o,r){var d=n.default.PromiseArray,c=n.default.PromiseObject,u=a.default.computed,p=a.default.computed.alias,m=a.default.get,f=a.default.inject,h=a.default.set;e.default=t.default.extend(s.default,l.default,i.default,o.default,r.default,{lookupListsToUpdate:[{name:"incidentDepartmentList",property:"model.department",id:"incident_departments"}],sequenceName:"incident",sequenceView:"incident_by_friendly_id",updateCapability:"add_incident",customForms:f.service(),database:f.service(),filesystem:f.service(),lookupLists:f.service(),customFormsToAdd:p("customForms.formsForSelect"),customFormsToDisplay:p("customForms.formsToDisplay"),showAddFormButton:p("customForms.showAddButton"),incidentController:f.controller("incident"),canManageIncident:u("model.{isNew,status}",function(){var e=this.currentUserCan("manage_incidents"),t=m(this,"model.status");return(m(this,"model.isNew")||t===s.CLOSED)&&(e=!1),e}),canUpdateStatus:u("model.isNew",function(){var e=this.currentUserCan("manage_incidents"),t=m(this,"model.isNew");return e&&!t}),categoryNameList:u("incidentCategoryList.@each.archived",function(){return d.create({promise:m(this,"incidentCategoryList").then(function(e){return e.map(function(e){return{id:m(e,"incidentCategoryName"),value:m(e,"incidentCategoryName")}})})})}),incidentCategoryList:u(function(){return m(this,"lookupLists").getLookupList("incidentCategories")}).volatile(),incidentDepartmentList:u("lookupListsLastUpdate",function(){var e=m(this,"lookupLists");return c.create({promise:e.getLookupList("incident_departments")})}).volatile(),incidentStatuses:u(function(){var e=this;return m(this,"statusList").map(function(t){return{id:t,value:e.getLocalizedStatus(t)}})}),itemList:u("model.categoryName",function(){var e=m(this,"model.categoryName");if(!a.default.isEmpty(e))return d.create({promise:m(this,"incidentCategoryList").then(function(t){var n=t.findBy("incidentCategoryName",e);return m(n,"incidentCategoryItems")})})}),afterUpdate:function(){var e=m(this,"i18n");this.displayAlert(e.t("incident.titles.incidentSaved"),e.t("incident.messages.saved"))},beforeUpdate:function(){var e=m(this,"model");return h(e,"modifiedByDisplayName",this.getUserName(!1)),m(e,"isNew")?this.generateFriendlyId("incident").then(function(t){h(e,"friendlyId",t)}):a.default.RSVP.resolve()},setupCustomForms:function(){var e=m(this,"customForms"),t=m(this,"model");e.setupForms("incident",t)},_updateList:function(e,t,n){var a=m(this,"model");m(a,e).then(function(e){n?e.removeObject(t):e.addObject(t),this.send("update",!0),this.send("closeModal")}.bind(this))},actions:{addNote:function(e){this._updateList("notes",e)},addAttachment:function(e){this._updateList("incidentAttachments",e)},addCustomForm:function(){var e=m(this,"model"),t=m(this,"customFormsToAdd");this.send("openModal","custom-form-add",a.default.Object.create({modelToAddTo:e,customForms:t}))},showAddAttachment:function(){var e=m(this,"store").createRecord("attachment",{dateAdded:new Date,addedBy:this.getUserName(!0),addedByDisplayName:this.getUserName(!1),saveToDir:"/incidents/"+m(this,"model.id")+"/"});this.send("openModal","incident.attachment",e)},showAddNote:function(){var e=m(this,"store").createRecord("incident-note",{dateRecorded:new Date,givenBy:this.getUserName(!0),givenByDisplayName:this.getUserName(!1)});this.send("openModal","incident.note.edit",e)},deleteAttachment:function(e){var t=this,n=m(e,"itemToDelete");this._updateList("incidentAttachments",n,!0),n.destroyRecord().then(function(){var e=m(n,"id"),a=m(t,"database"),l=m(n,"fileName"),s=m(t,"filesystem");if(m(s,"isFileSystemEnabled")){var i=a.getPouchId(e,"attachment");s.deleteFile(l,i).catch(function(){})}})},deleteNote:function(e){this._updateList("notes",e,!0)},showDeleteAttachment:function(e){var t=m(this,"i18n"),n=t.t("models.attachment.names.singular"),l=t.t("messages.delete_singular",{name:n}),s=a.default.Object.create({itemToDelete:e}),i=t.t("incident.titles.deleteAttachment");this.displayConfirm(i,l,"deleteAttachment",s)},showDeleteNote:function(e){this.send("openModal","incident.note.delete",e)},showEditAttachment:function(e){this.send("openModal","incident.attachment",e)},showEditNote:function(e){this.send("openModal","incident.note.edit",e)}}})}),define("hospitalrun/incident/edit/route",["exports","hospitalrun/routes/abstract-edit-route","ember","hospitalrun/mixins/patient-list-route","hospitalrun/mixins/user-session","ember-i18n"],function(e,t,n,a,l,s){var i=n.default.get;e.default=t.default.extend(a.default,l.default,{editTitle:(0,s.translationMacro)("incident.titles.editIncident"),modelName:"incident",newTitle:(0,s.translationMacro)("incident.titles.newIncident"),customForms:n.default.inject.service(),getNewData:function(){var e=i(this,"customForms"),t=new Date,a={customForms:n.default.Object.create(),dateOfIncident:t,reportedDate:t,reportedBy:this.getUserName(!0),reportedByDisplayName:this.getUserName(!1)};return e.setDefaultCustomForms(["incident"],a)},setupController:function(e,t){this._super(e,t),e.setupCustomForms()},actions:{deleteAttachment:function(e){this.controller.send("deleteAttachment",e)}}})}),define("hospitalrun/incident/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"LL98wjJL",block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],11]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","div",[]],["static-attr","role","tabpanel"],["static-attr","class","tab-pane"],["dynamic-attr","id",["helper",["concat"],["customForm",["get",["index"]]],null],null],["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 "],["append",["helper",["custom-form"],null,[["model","form","propertyPrefix"],[["get",["model"]],["get",["customForm","form"]],["get",["customForm","propertyPrefix"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["customForm","index"]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["attachment","dateAdded"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["attachment","addedByDisplayName"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["attachment","title"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"showEditAttachment",["get",["attachment"]]]],["flush-element"],["append",["helper",["t"],["incident.buttons.edit"],null],false],["close-element"],["text","\\n "],["open-element","a",[]],["dynamic-attr","href",["unknown",["attachment","url"]],null],["static-attr","target","_blank"],["dynamic-attr","download",["concat",[["unknown",["attachment","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"],["incident.buttons.download"],null],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeleteAttachment",["get",["attachment"]]],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["incident.buttons.delete"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["attachment"]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["note","dateRecorded"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["note","givenByDisplayName"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","note-description"],["flush-element"],["append",["unknown",["note","description"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default neutral"],["modifier",["action"],[["get",[null]],"showEditNote",["get",["note"]]]],["flush-element"],["append",["helper",["t"],["incident.buttons.edit"],null],false],["close-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeleteNote",["get",["note"]]],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["incident.buttons.delete"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["note"]},{"statements":[["text"," "],["open-element","li",[]],["static-attr","role","presentation"],["flush-element"],["text","\\n "],["open-element","a",[]],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["modifier",["action"],[["get",[null]],"addCustomForm"],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["append",["helper",["t"],["incident.buttons.addForm"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","li",[]],["static-attr","role","presentation"],["flush-element"],["text","\\n "],["open-element","a",[]],["dynamic-attr","href",["helper",["concat"],["#customForm",["get",["index"]]],null],null],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["flush-element"],["text","\\n "],["append",["unknown",["customForm","form","name"]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["customForm","index"]},{"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"],["open-element","a",[]],["static-attr","href","#notes"],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["flush-element"],["append",["helper",["t"],["incident.titles.notes"],null],false],["close-element"],["close-element"],["text","\\n "],["open-element","li",[]],["static-attr","role","presentation"],["flush-element"],["open-element","a",[]],["static-attr","href","#attachments"],["static-attr","role","tab"],["static-attr","data-toggle","pill"],["flush-element"],["append",["helper",["t"],["incident.titles.attachments"],null],false],["close-element"],["close-element"],["text","\\n"],["block",["each"],[["get",["customFormsToDisplay"]]],null,4],["block",["if"],[["get",["showAddFormButton"]]],null,3],["text"," "],["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 active"],["static-attr","id","notes"],["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","button",[]],["static-attr","class","btn btn-primary align-right"],["modifier",["action"],[["get",[null]],"showAddNote"],[["bubbles"],[false]]],["flush-element"],["append",["helper",["t"],["incident.buttons.newNote"],null],false],["close-element"],["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 "],["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"],["incident.labels.date"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["incident.labels.givenBy"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["incident.labels.note"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["incident.labels.actions"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","notes"]]],null,2],["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","attachments"],["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","button",[]],["static-attr","class","btn btn-primary align-right"],["modifier",["action"],[["get",[null]],"showAddAttachment"],[["bubbles"],[false]]],["flush-element"],["append",["helper",["t"],["incident.buttons.newAttachment"],null],false],["close-element"],["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 "],["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"],["incident.labels.date"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["incident.labels.addedBy"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["incident.labels.title"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["incident.labels.actions"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","incidentAttachments"]]],null,1],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["customFormsToDisplay"]]],null,0],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["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"],["append",["helper",["t"],["incident.labels.patientId"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static patient-id"],["flush-element"],["append",["unknown",["model","patient","friendlyId"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["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"],["append",["helper",["t"],["incident.labels.status"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","status"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["em-select"],null,[["label","property","content","class"],[["helper",["t"],["incident.labels.status"],null],"status",["get",["incidentStatuses"]],"required form-input-group col-sm-3"]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","form-group col-sm-2"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["incident.labels.incidentId"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","friendlyId"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group col-sm-2"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["incident.labels.reportedDate"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["helper",["date-format"],[["get",["model","reportedDate"]]],[["format"],["l h:mm A"]]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group col-sm-2"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["incident.labels.reportedBy"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","reportedByDisplayName"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group col-sm-2"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["incident.labels.lastUpdated"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["helper",["date-format"],[["get",["model","lastModified"]]],[["format"],["l h:mm A"]]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group col-sm-2"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["append",["helper",["t"],["incident.labels.updatedBy"],null],false],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["append",["unknown",["model","modifiedByDisplayName"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n"],["block",["unless"],[["get",["model","isNew"]]],null,9],["text"," "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n\\n "],["append",["helper",["em-checkbox"],null,[["label","property","class"],[["helper",["t"],["incident.labels.sentinelEvent"],null],"sentinelEvent","col-sm-3 sentinel-event"]]],false],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class","showTime"],["dateOfIncident",["helper",["t"],["incident.labels.incidentDate"],null],"col-sm-3 required incident-date",true]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["className","property","label","list","selection"],["col-sm-3 required incident-department","department",["helper",["t"],["incident.labels.department"],null],["get",["incidentDepartmentList"]],["get",["model","location"]]]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["reportedTo",["helper",["t"],["incident.labels.reportedTo"],null],"col-sm-3 reported-to"]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","prompt","property","content"],["col-sm-4 form-input-group required incident-category",["helper",["t"],["incident.labels.category"],null]," ","categoryName",["get",["categoryNameList"]]]]],false],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","prompt","property","content","optionLabelPath","optionValuePath"],["col-sm-4 form-input-group incident-category-item",["helper",["t"],["incident.labels.categoryItem"],null]," ","categoryItem",["get",["itemList"]],"item","item"]]],false],["text","\\n"],["block",["if"],[["get",["canUpdateStatus"]]],null,8,7],["text"," "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["patient-typeahead"],null,[["property","label","content","class","selection"],["patientTypeAhead",["helper",["t"],["incident.labels.patientImpacted"],null],["get",["patientList"]],"patient-name col-sm-9",["get",["selectedPatient"]]]]],false],["text","\\n"],["block",["if"],[["get",["model","patient"]]],null,6],["text"," "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["expand-text"],null,[["label","property","class","rows"],[["helper",["t"],["incident.labels.description"],null],"description","required col-sm-12 incident-description",3]]],false],["text","\\n "],["close-element"],["text","\\n\\n"],["block",["if"],[["get",["canManageIncident"]]],null,5]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],10]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/incident/edit/template.hbs"}})}),define("hospitalrun/incident/index/controller",["exports","hospitalrun/controllers/abstract-paged-controller","ember","hospitalrun/mixins/filter-list","hospitalrun/mixins/user-session"],function(e,t,n,a,l){var s=n.default.computed,i=n.default.computed.alias,o=n.default.get,r=n.default.inject,d=n.default.isEmpty;e.default=t.default.extend(a.default,l.default,{addPermission:"add_incident",deletePermission:"delete_incident",startKey:[],incidentController:r.controller("incident"),departmentNames:i("incidentController.incidentDepartmentList.value"),categoryItems:s("model.@each.categoryItem",function(){return this._getUniqueValues("categoryItem")}),categoryNames:s("model.@each.categoryName",function(){return this._getUniqueValues("categoryName")}),statusList:s("model.@each.localizedStatus",function(){return this._getUniqueValues("localizedStatus")}),filteredIncidents:s("model.[]","filterBy","filterValue",function(){var e=o(this,"filterBy"),t=o(this,"filterValue"),n=o(this,"model");return this.filterList(n,e,t)}),sortedIncidents:s("filteredIncidents","sortByKey","sortByDesc",function(){var e=o(this,"filteredIncidents");return this.sortFilteredList(e)}),_getUniqueValues:function(e){return o(this,"model").map(function(t){return o(t,e)}).uniq().filter(function(e){return!d(e)})},actions:{showDeleteIncident:function(e){this.send("openModal","incident.delete",e)}}})}),define("hospitalrun/incident/index/route",["exports","hospitalrun/routes/abstract-index-route","hospitalrun/mixins/user-session","ember-i18n"],function(e,t,n,a){e.default=t.default.extend(n.default,{editReturn:"incident.index",itemsPerPage:null,modelName:"incident",pageTitle:(0,a.translationMacro)("incident.titles.incidents"),_getStartKeyFromItem:function(e){var t=this._getPouchIdFromItem(e);return[e.get("reportedBy"),t]},_modelQueryParams:function(){var e=this._getMaxPouchId(),t=this.getUserName(!0),n={mapReduce:"open_incidents_by_user"};return this.currentUserCan("manage_incidents")||(n.options={startkey:[t,null],endkey:[t,e]}),n}})}),define("hospitalrun/incident/index/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"2kjrShWl", +block:'{"statements":[["block",["item-listing"],null,[["paginationProps"],[["get",["paginationProps"]]]],13]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["open-element","a",[]],["static-attr","href","#"],["modifier",["action"],[["get",[null]],"newItem"]],["flush-element"],["append",["helper",["t"],["incident.messages.createNew"],null],false],["close-element"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-info"],["flush-element"],["text","\\n "],["append",["helper",["t"],["incident.messages.noIncidents"],null],false],["text"," "],["block",["if"],[["get",["canAdd"]]],null,0],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showDeleteIncident",["get",["incident"]]],[["bubbles"],[false]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["incident.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",["incident"]]],[["bubbles"],[false]]],["flush-element"],["append",["helper",["t"],["incident.buttons.edit"],null],false],["close-element"],["text","\\n "]],"locals":[]},{"statements":[["text"," "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAdd"]]],null,3],["text"," "],["block",["if"],[["get",["canDelete"]]],null,2],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["static-attr","class","incident-row"],["modifier",["action"],[["get",[null]],"editItem",["get",["incident"]]]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","incident-date"],["flush-element"],["append",["helper",["date-format"],[["get",["incident","dateOfIncident"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","incident-department"],["flush-element"],["append",["unknown",["incident","department"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","incident-category"],["flush-element"],["append",["unknown",["incident","categoryName"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","incident-category-item"],["flush-element"],["append",["unknown",["incident","categoryItem"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","incident-status"],["flush-element"],["append",["unknown",["incident","localizedStatus"]],false],["close-element"],["text","\\n"],["block",["if"],[["get",["showActions"]]],null,4],["text"," "],["close-element"],["text","\\n"]],"locals":["incident"]},{"statements":[["text"," "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["incident.labels.actions"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["incident.labels.status"],null],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["incident.labels.categoryItem"],null],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["incident.labels.category"],null],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["incident.labels.department"],null],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["incident.labels.incidentDate"],null],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","table",[]],["static-attr","class","table incident-listing"],["flush-element"],["text","\\n "],["open-element","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n"],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey","filterBy","filteredBy","filterType"],["dateOfIncident",["get",["sortByDesc"]],["get",["sortByKey"]],"dateForFilter",["get",["filteredBy"]],"date"]],11],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey","filterBy","filteredBy","filterType","filterValues"],["department",["get",["sortByDesc"]],["get",["sortByKey"]],"department",["get",["filteredBy"]],"list",["get",["departmentNames"]]]],10],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey","filterBy","filteredBy","filterType","filterValues"],["categoryName",["get",["sortByDesc"]],["get",["sortByKey"]],"categoryName",["get",["filteredBy"]],"list",["get",["categoryNames"]]]],9],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey","filterBy","filteredBy","filterType","filterValues"],["categoryItem",["get",["sortByDesc"]],["get",["sortByKey"]],"categoryItem",["get",["filteredBy"]],"list",["get",["categoryItems"]]]],8],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey","filterBy","filteredBy","filterType","filterValues"],["localizedStatus",["get",["sortByDesc"]],["get",["sortByKey"]],"localizedStatus",["get",["filteredBy"]],"list",["get",["statusList"]]]],7],["block",["if"],[["get",["showActions"]]],null,6],["text"," "],["close-element"],["text","\\n"],["block",["each"],[["get",["sortedIncidents"]]],null,5],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["hasRecords"]]],null,12,1]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/incident/index/template.hbs"}})}),define("hospitalrun/incident/note/delete/controller",["exports","hospitalrun/controllers/abstract-delete-controller","ember","ember-i18n"],function(e,t,n,a){var l=n.default.get,s=n.default.inject;e.default=t.default.extend({afterDeleteAction:"notifyNoteDelete",editController:s.controller("incident/edit"),title:(0,a.translationMacro)("incident.titles.deleteNote"),actions:{notifyNoteDelete:function(){l(this,"editController").send("deleteNote",l(this,"model")),this.send("closeModal")}}})}),define("hospitalrun/incident/note/delete/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"b19yNOlb",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.note.names.singular"],null]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/incident/note/delete/template.hbs"}})}),define("hospitalrun/incident/note/edit/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember"],function(e,t,n){var a=n.default.computed,l=n.default.get,s=n.default.inject,i=n.default.RSVP,o=n.default.set;e.default=t.default.extend({cancelAction:"closeModal",newNote:!1,updateCapability:"manage_incidents",editController:s.controller("incident/edit"),title:a("model.isNew",function(){var e=l(this,"i18n");return l(this,"model.isNew")?e.t("incident.titles.addNote"):e.t("incident.titles.editNote")}),afterUpdate:function(e){l(this,"newNote")?l(this,"editController").send("addNote",e):this.send("closeModal")},beforeUpdate:function(){return o(this,"newNote",l(this,"model.isNew")),i.resolve()}})}),define("hospitalrun/incident/note/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"Ha08JwR2",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","row"],["flush-element"],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class","format","showTime"],["dateRecorded",["helper",["t"],["incident.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",["expand-text"],null,[["property","label","class"],["description",["helper",["t"],["incident.labels.note"],null],"col-sm-12 note-description"]]],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/incident/note/edit/template.hbs"}})}),define("hospitalrun/incident/reports/controller",["exports","hospitalrun/controllers/abstract-report-controller","ember","hospitalrun/mixins/number-format","hospitalrun/mixins/user-session","moment"],function(e,t,n,a,l,s){var i=n.default.get,o=n.default.computed,r=n.default.isEmpty,d=n.default.RSVP;e.default=t.default.extend(l.default,a.default,{reportType:"department",canGenerateReport:o(function(){return this.currentUserCan("generate_incident_report")}),departmentReportColumns:o(function(){var e=i(this,"i18n");return{department:{label:e.t("incident.labels.department"),include:!0,property:"type"},total:{label:e.t("incident.labels.total"),include:!0,property:"total",format:"_numberFormat"}}}),incidentCategoryReportColumns:o(function(){var e=i(this,"i18n");return{incidentCategory:{label:e.t("incident.labels.category"),include:!0,property:"type"},total:{label:e.t("incident.labels.total"),include:!0,property:"total",format:"_numberFormat"}}}),reportTypes:o(function(){var e=i(this,"i18n");return[{name:e.t("incident.titles.incidentsByDepartment"),value:"department"},{name:e.t("incident.titles.incidentsByCategory"),value:"incidentCategory"}]}),_findIncidentsByDate:function(){var e=i(this,"endDate"),t=i(this,"startDate"),n={options:{},mapReduce:"incident_by_date"},a=i(this,"maxValue");return new d.Promise(function(l,i){return r(t)&&i(),n.options.startkey=[t.getTime(),null],r(e)||(e=(0,s.default)(e).endOf("day").toDate(),n.options.endkey=[e.getTime(),a]),this.store.query("incident",n).then(l,i)}.bind(this))},_generateByDepartmentOrByIncidentCategoryReport:function(e,t){var n=void 0,a=void 0;"department"===t?(n=i(this,"departmentReportColumns"),a="department"):(n=i(this,"incidentCategoryReportColumns"),a="categoryName"),this._addRowsByType(e,a,"Total incidents: ",n),this._finishReport(n)},_addRowsByType:function(e,t,n,a){this._totalByType(e,t,n).forEach(function(e){this._addReportRow(e,!0,a)}.bind(this))},_totalByType:function(e,t,n){var a=0,l=[];return e.forEach(function(e){var n=e.get(t),s=void 0;r(n)||(s=l.findBy("type",n),r(s)&&(s={type:n,total:0,records:[]},l.push(s)),s.total++,s.records.push(e),a++)}),l=l.sortBy("type"),l.push({type:n,total:a}),l},actions:{generateReport:function(){var e=this,t=i(this,"reportRows"),n=i(this,"reportType");switch(t.clear(),this.showProgressModal(),n){case"department":case"incidentCategory":this._findIncidentsByDate().then(function(t){e._generateByDepartmentOrByIncidentCategoryReport(t,n)}).catch(function(t){console.log("Error:",t),e.closeProgressModal()})}}}})}),define("hospitalrun/incident/reports/route",["exports","hospitalrun/routes/abstract-index-route","ember"],function(e,t,n){e.default=t.default.extend({pageTitle:"Incident Report",model:function(){return n.default.RSVP.resolve(n.default.Object.create({}))}})}),define("hospitalrun/incident/reports/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"WbfoMb69",block:'{"statements":[["open-element","div",[]],["static-attr","class","panel panel-primary"],["flush-element"],["text","\\n"],["block",["if"],[["get",["canGenerateReport"]]],null,5],["close-element"],["text","\\n"],["block",["if"],[["get",["showReportResults"]]],null,3]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","td",[]],["flush-element"],["append",["get",["subrow"]],false],["close-element"],["text","\\n"]],"locals":["subrow"]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n"],["block",["each"],[["get",["row"]]],null,0],["text"," "],["close-element"],["text","\\n"]],"locals":["row"]},{"statements":[["text"," "],["open-element","th",[]],["flush-element"],["append",["get",["header"]],false],["close-element"],["text","\\n"]],"locals":["header"]},{"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],["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,2],["text"," "],["close-element"],["text","\\n"],["block",["each"],[["get",["reportRows"]]],null,1],["text"," "],["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-default"],["flush-element"],["append",["helper",["t"],["incident.buttons.export"],null],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",["date-picker"],null,[["property","label","class"],["startDate",["helper",["t"],["incident.labels.startDate"],null],"col-sm-4"]]],false],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class"],["endDate",["helper",["t"],["incident.labels.endDate"],null],"col-sm-4"]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["static-attr","data-test-selector","select-report-type"],["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"],["incident.labels.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 "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","panel-body"],["flush-element"],["text","\\n"],["block",["em-form"],null,[["model","submitButton"],[["get",[null]],false]],4],["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-default"],["modifier",["action"],[["get",[null]],"generateReport"]],["flush-element"],["append",["helper",["t"],["incident.buttons.generateRep"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/incident/reports/template.hbs"}})}),define("hospitalrun/incident/route",["exports","hospitalrun/routes/abstract-module-route","ember-i18n"],function(e,t,n){e.default=t.default.extend({addCapability:"add_incident",additionalModels:[{name:"incidentDepartmentList",findArgs:["lookup","incident_departments"]},{name:"incidentCategoryList",findArgs:["inc-category"]}],moduleName:"incident",newButtonText:(0,n.translationMacro)("incident.buttons.newIncident"),sectionTitle:(0,n.translationMacro)("incident.titles.incidents")})}),define("hospitalrun/initializers/app-version",["exports","ember-cli-app-version/initializer-factory","hospitalrun/config/environment"],function(e,t,n){var a=n.default.APP,l=a.name,s=a.version;e.default={name:"App Version",initialize:(0,t.default)(l,s)}}),define("hospitalrun/initializers/container-debug-adapter",["exports","ember-resolver/container-debug-adapter"],function(e,t){e.default={name:"container-debug-adapter",initialize:function(){var e=arguments[1]||arguments[0];e.register("container-debug-adapter:main",t.default),e.inject("container-debug-adapter:main","namespace","application:main")}}}),define("hospitalrun/initializers/data-adapter",["exports","ember"],function(e,t){e.default={name:"data-adapter",before:"store",initialize:t.default.K}}),define("hospitalrun/initializers/ember-concurrency",["exports","ember-concurrency"],function(e,t){e.default={name:"ember-concurrency",initialize:function(){}}}),define("hospitalrun/initializers/ember-data",["exports","ember-data/setup-container","ember-data/-private/core"],function(e,t,n){e.default={name:"ember-data",initialize:t.default}}),define("hospitalrun/initializers/ember-i18n",["exports","ember-i18n/initializers/ember-i18n"],function(e,t){e.default=t.default}),define("hospitalrun/initializers/ember-keyboard-first-responder-inputs",["exports","ember-keyboard/initializers/ember-keyboard-first-responder-inputs"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"initialize",{enumerable:!0,get:function(){return t.initialize}})}),define("hospitalrun/initializers/ember-simple-auth",["exports","hospitalrun/config/environment","ember-simple-auth/configuration","ember-simple-auth/initializers/setup-session","ember-simple-auth/initializers/setup-session-service"],function(e,t,n,a,l){e.default={name:"ember-simple-auth",initialize:function(e){var s=t.default["ember-simple-auth"]||{};s.baseURL=t.default.rootURL||t.default.baseURL,n.default.load(s),(0,a.default)(e),(0,l.default)(e)}}}),define("hospitalrun/initializers/export-application-global",["exports","ember","hospitalrun/config/environment"],function(e,t,n){function a(){var e=arguments[1]||arguments[0];if(!1!==n.default.exportApplicationGlobal){var a;if("undefined"!=typeof window)a=window;else if("undefined"!=typeof global)a=global;else{if("undefined"==typeof self)return;a=self}var l,s=n.default.exportApplicationGlobal;l="string"==typeof s?s:t.default.String.classify(n.default.modulePrefix),a[l]||(a[l]=e,e.reopen({willDestroy:function(){this._super.apply(this,arguments),delete a[l]}}))}}e.initialize=a,e.default={name:"export-application-global",initialize:a}}),define("hospitalrun/initializers/i18n",["exports"],function(e){e.default={name:"i18n",after:"ember-i18n",initialize:function(e){e.inject("route","i18n","service:i18n"),e.inject("controller","i18n","service:i18n"),e.inject("mixin","i18n","service:i18n"),e.inject("model","i18n","service:i18n")}}}),define("hospitalrun/initializers/injectStore",["exports","ember"],function(e,t){e.default={name:"injectStore",before:"store",initialize:t.default.K}}),define("hospitalrun/initializers/store",["exports","ember"],function(e,t){e.default={name:"store",after:"ember-data",initialize:t.default.K}}),define("hospitalrun/initializers/transforms",["exports","ember"],function(e,t){e.default={name:"transforms",before:"store",initialize:t.default.K}}),define("hospitalrun/initializers/truth-helpers",["exports","ember","ember-truth-helpers/utils/register-helper","ember-truth-helpers/helpers/and","ember-truth-helpers/helpers/or","ember-truth-helpers/helpers/equal","ember-truth-helpers/helpers/not","ember-truth-helpers/helpers/is-array","ember-truth-helpers/helpers/not-equal","ember-truth-helpers/helpers/gt","ember-truth-helpers/helpers/gte","ember-truth-helpers/helpers/lt","ember-truth-helpers/helpers/lte"],function(e,t,n,a,l,s,i,o,r,d,c,u,p){function m(){t.default.Helper||((0,n.registerHelper)("and",a.andHelper),(0,n.registerHelper)("or",l.orHelper),(0,n.registerHelper)("eq",s.equalHelper),(0,n.registerHelper)("not",i.notHelper),(0,n.registerHelper)("is-array",o.isArrayHelper),(0,n.registerHelper)("not-eq",r.notEqualHelper),(0,n.registerHelper)("gt",d.gtHelper),(0,n.registerHelper)("gte",c.gteHelper),(0,n.registerHelper)("lt",u.ltHelper),(0,n.registerHelper)("lte",p.lteHelper))}e.initialize=m,e.default={name:"truth-helpers",initialize:m}}),define("hospitalrun/instance-initializers/ember-data",["exports","ember-data/-private/instance-initializers/initialize-store-service"],function(e,t){e.default={name:"ember-data",initialize:t.default}}),define("hospitalrun/instance-initializers/ember-i18n",["exports","ember-i18n/instance-initializers/ember-i18n"],function(e,t){e.default=t.default}),define("hospitalrun/instance-initializers/ember-simple-auth",["exports","ember-simple-auth/instance-initializers/setup-session-restoration"],function(e,t){e.default={name:"ember-simple-auth",initialize:function(e){(0,t.default)(e)}}}),define("hospitalrun/inventory/adjust/controller",["exports","hospitalrun/controllers/abstract-edit-controller","hospitalrun/mixins/inventory-adjustment-types","ember","ember-i18n"],function(e,t,n,a,l){e.default=t.default.extend(n.default,{inventoryController:a.default.inject.controller("inventory"),expenseAccountList:a.default.computed.alias("inventoryController.expenseAccountList"),title:(0,l.translationMacro)("inventory.titles.adjustment"),transactionTypeChanged:function(){a.default.run.once(this,function(){this.get("model").validate().catch(a.default.K)})}.observes("transactionType"),updateButtonText:function(){var e=this.get("model.transactionType");return this.get("adjustmentTypes").findBy("type",e).name}.property("model.transactionType"),updateButtonAction:"adjust",updateCapability:"adjust_inventory_location",actions:{cancel:function(){this.send("closeModal")},adjust:function(){this.send("adjustItems",this.get("model"),!0)}}})}),define("hospitalrun/inventory/adjust/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"Bedatsd4",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","adjustmentItem","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.adjustmentFor"],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.currentQuantity"],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","row"],["flush-element"],["text","\\n "],["append",["helper",["em-select"],null,[["class","label","property","content","optionValuePath","optionLabelPath"],["col-sm-4",["helper",["t"],["inventory.labels.adjustmentType"],null],"transactionType",["get",["adjustmentTypes"]],"type","name"]]],false],["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 "],["append",["helper",["expand-text"],null,[["label","property","rows"],[["helper",["t"],["inventory.labels.reason"],null],"reason",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"],["inventory.labels.adjustmentDate"],null],"col-sm-4 required"]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection","class"],["expenseAccount",["helper",["t"],["inventory.labels.expense"],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]],0]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inventory/adjust/template.hbs"}})}),define("hospitalrun/inventory/barcode/controller",["exports","ember"],function(e,t){e.default=t.default.Controller.extend({selectedPrinter:null,barcodeUri:function(){var e=this.get("model.id"),n=this.get("model.name");return t.default.$(document).JsBarcode(e,{width:1,height:20,fontSize:10,displayValue:n,returnUri:!0})}.property("model.id","model.name"),printers:function(){return dymo.label.framework.getTapePrinters()}.property(),havePrinters:function(){return this.get("printers").length>0}.property("printers"),singlePrinter:function(){return 1===this.get("printers").length}.property("printers"),actions:{print:function(){var e=this.get("barcodeUri"),n=this.get("selectedPrinter");n||(n=this.get("printers")[0].name),t.default.$.get("/dymo/BarcodeAsImage.label",function(t){var a=dymo.label.framework.openLabelXml(t),l=e.substr("data:image/png;base64,".length);a.setObjectText("Image",l),a.print(n)},"text")}}})}),define("hospitalrun/inventory/barcode/route",["exports","ember"],function(e,t){e.default=t.default.Route.extend({model:function(e){return this.store.find("inventory",e.inventory_id)}})}),define("hospitalrun/inventory/barcode/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"PD6MlfyD",block:'{"statements":[["open-element","div",[]],["static-attr","class","panel panel-default"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body"],["flush-element"],["text","\\n "],["open-element","img",[]],["dynamic-attr","src",["unknown",["barcodeUri"]],null],["flush-element"],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["close-element"],["text","\\n\\n"],["block",["if"],[["get",["havePrinters"]]],null,1]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","label",[]],["static-attr","for","printerSelect"],["flush-element"],["append",["helper",["t"],["inventory.labels.printer"],null],false],["close-element"],["text","\\n "],["append",["helper",["select-list"],null,[["content","optionLabelPath","optionValuePath","value","class","action","id"],[["get",["printers"]],"name","name",["get",["selectedPrinter"]],"form-control",["helper",["action"],[["get",[null]],["helper",["mut"],[["get",["selectedPrinter"]]],null]],null],"printerSelect"]]],false],["text","\\n"]],"locals":[]},{"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",["helper",["t"],["inventory.labels.printBarcode"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group"],["flush-element"],["text","\\n"],["block",["unless"],[["get",["singlePrinter"]]],null,0],["text"," "],["close-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-primary"],["modifier",["action"],[["get",[null]],"print"]],["flush-element"],["open-element","span",[]],["static-attr","class"," glyphicon glyphicon-print"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["inventory.labels.print"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inventory/barcode/template.hbs"}})}),define("hospitalrun/inventory/batch/controller",["exports","hospitalrun/controllers/abstract-edit-controller","hospitalrun/mixins/inventory-id","hospitalrun/mixins/inventory-locations","ember","ember-i18n"],function(e,t,n,a,l,s){e.default=t.default.extend(n.default,a.default,{doingUpdate:!1,inventoryController:l.default.inject.controller("inventory"),inventoryItems:null,warehouseList:l.default.computed.alias("inventoryController.warehouseList"),aisleLocationList:l.default.computed.alias("inventoryController.aisleLocationList"),vendorList:l.default.computed.alias("inventoryController.vendorList"),purchaseAttributes:["expirationDate","inventoryItem","lotNumber","purchaseCost","quantity","vendorItemNo"],inventoryList:function(){var e=this.get("inventoryItems");if(!l.default.isEmpty(e)){return e.map(function(e){return e.doc})}}.property("inventoryItems.[]"),lookupListsToUpdate:[{name:"aisleLocationList",property:"model.aisleLocation",id:"aisle_location_list"},{name:"vendorList",property:"model.vendor",id:"vendor_list"},{name:"warehouseList",property:"model.location",id:"warehouse_list"}],showDistributionUnit:function(){return this._haveValidInventoryItem()}.property("model.inventoryItemTypeAhead","model.inventoryItem"),showInvoiceItems:function(){var e=this.get("model.invoiceItems");return!l.default.isEmpty(e)}.property("model.invoiceItems.[]"),totalReceived:function(){ +var e=this.get("model.invoiceItems"),t=0;l.default.isEmpty("invoiceItems")||(t=e.reduce(function(e,t){return e+Number(t.get("purchaseCost"))},t));var n=this.get("model.purchaseCost");return this.get("model.isValid")&&!l.default.isEmpty(n)&&(t+=Number(n)),t}.property("model.invoiceItems.[].purchaseCost","model.isValid","model.purchaseCost"),updateButtonText:(0,s.translationMacro)("inventory.labels.save"),updateCapability:"add_inventory_item",_addNewInventoryItem:function(){this.generateId().then(function(e){var t=this.store.createRecord("inventory",{id:e,name:this.get("model.inventoryItemTypeAhead"),quantity:0,skipSavePurchase:!0});this.send("openModal","inventory.quick-add",t)}.bind(this))},_addInventoryItem:function(){var e=this.get("model"),t=this.get("model.inventoryItemTypeAhead"),n=this.get("model.purchaseCost"),a=this.get("model.quantity");return e.validate().then(function(){if(!this.get("model.isValid")||l.default.isEmpty(t)||l.default.isEmpty(a)||l.default.isEmpty(n))throw Error("invalid");if(!this._haveValidInventoryItem())return this._addNewInventoryItem(),!0;this._addInvoiceItem()}.bind(this)).catch(function(){this.displayAlert(this.get("i18n").t("inventory.titles.warning"),this.get("i18n").t("inventory.messages.warning"))}.bind(this))},_addInvoiceItem:function(){var e=this.get("model"),t=e.get("invoiceItems"),n=e.getProperties(this.get("purchaseAttributes")),a=l.default.Object.create(n);t.addObject(a),e.set("expirationDate"),e.set("inventoryItem"),e.set("inventoryItemTypeAhead"),e.set("lotNumber"),e.set("purchaseCost"),e.set("quantity"),e.set("selectedInventoryItem"),e.set("vendorItemNo")},_findInventoryItem:function(e){var t=this.get("model.invoiceItems"),n=e.get("inventoryItem");if(!l.default.isEmpty(n)){var a=t.find(function(e){return e.get("inventoryItem.id")===n},this);if(!l.default.isEmpty(a))return a.get("inventoryItem")}},_haveValidInventoryItem:function(){var e=this.get("model.inventoryItemTypeAhead"),t=this.get("model.inventoryItem");if(l.default.isEmpty(e)||l.default.isEmpty(t))return!1;var n=t.get("name");return e.substr(0,n.length)===n},_savePurchases:function(){var e=this.get("model"),t=e.getProperties(["dateReceived","vendor","invoiceNo","location","aisleLocation","giftInKind"]),n=e.get("invoiceItems"),a=void 0,s=[];n.forEach(function(e){var n=e.get("inventoryItem"),l=e.get("quantity");a=this.store.createRecord("inv-purchase",t),a.setProperties(e.getProperties(this.get("purchaseAttributes"))),a.setProperties({distributionUnit:n.get("distributionUnit"),currentQuantity:l,originalQuantity:l,inventoryItem:n.get("id")}),s.push(a.save())}.bind(this)),l.default.RSVP.all(s).then(function(e){var t=[],n=[];e.forEach(function(e){var t=this._findInventoryItem(e);t.get("purchases").addObject(e),n.push(this.newPurchaseAdded(t,e))}.bind(this)),l.default.RSVP.all(t).then(function(){e.forEach(function(e){var n=this._findInventoryItem(e);n.updateQuantity(),t.push(n.save())}.bind(this)),l.default.RSVP.all(t).then(function(){this.updateLookupLists(),this.displayAlert(this.get("i18n").t("inventory.titles.purchaseSaved"),this.get("i18n").t("inventory.messages.purchaseSaved"),"allItems")}.bind(this))}.bind(this))}.bind(this))},actions:{addInventoryItem:function(){this._addInventoryItem()},addedNewInventoryItem:function(e){this.set("model.inventoryItem",e),this._addInvoiceItem(),this.send("closeModal"),this.get("doingUpdate")&&this._savePurchases()},removeItem:function(e){var t=this.get("model.invoiceItems"),n=e.itemToRemove;t.removeObject(n),this.send("closeModal")},showRemoveItem:function(e){var t=this.get("i18n").t("inventory.messages.removeItem"),n=l.default.Object.create({itemToRemove:e}),a=this.get("i18n").t("inventory.titles.removeItem");this.displayConfirm(a,t,"removeItem",n)},update:function(){this.set("doingUpdate",!0),this._addInventoryItem().then(function(e){e||this._savePurchases()}.bind(this))}}})}),define("hospitalrun/inventory/batch/route",["exports","hospitalrun/inventory/request/route","ember","ember-i18n"],function(e,t,n,a){e.default=t.default.extend({editTitle:(0,a.translationMacro)("navigation.subnav.inventoryReceived"),modelName:"inventory-batch",newTitle:(0,a.translationMacro)("navigation.subnav.inventoryReceived"),getNewData:function(){return n.default.RSVP.resolve({invoiceItems:[],dateReceived:new Date})},actions:{addedNewInventoryItem:function(e){this.controller.send("addedNewInventoryItem",e)}}})}),define("hospitalrun/inventory/batch/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"9T4fAteu",block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],4]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-sm-2"],["flush-element"],["text","\\n "],["append",["unknown",["invoiceItem","inventoryItem","name"]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-sm-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",["invoiceItem","quantity"]]]]],false],["text","\\n "],["open-element","span",[]],["static-attr","class","input-group-addon"],["flush-element"],["text","\\n "],["append",["unknown",["invoiceItem","inventoryItem","distributionUnit"]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-sm-2"],["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",["invoiceItem","purchaseCost"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-sm-2"],["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",["invoiceItem","vendorItemNo"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-sm-2"],["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",["invoiceItem","lotNumber"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-sm-2"],["flush-element"],["text","\\n "],["append",["helper",["date-picker"],null,[["property","minDate","model"],["expirationDate","now",["get",["invoiceItem"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","td",[]],["static-attr","class","col-sm-1"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"showRemoveItem",["get",["invoiceItem"]]],[["bubbles"],[false]]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["append",["helper",["t"],["inventory.labels.remove"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["invoiceItem"]},{"statements":[["text"," "],["open-element","h3",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.invoiceItems"],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"],["inventory.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"],["inventory.labels.cost"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.itemNumber"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.serialNumber"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.expirationDate"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.action"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","invoiceItems"]]],null,0],["text"," "],["close-element"],["text","\\n "],["open-element","h4",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.totalReceived"],[["total"],[["get",["totalReceived"]]]]],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","p",[]],["static-attr","class","form-control-static inventory-distribution-unit"],["flush-element"],["append",["unknown",["model","inventoryItem","distributionUnit"]],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","class"],["dateReceived",["helper",["t"],["inventory.labels.dateReceived"],null],"col-sm-4 required"]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection","className"],["vendor",["helper",["t"],["inventory.labels.vendor"],null],["get",["vendorList"]],["get",["model","vendor"]],"col-sm-4 required test-vendor"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["invoiceNo",["helper",["t"],["inventory.labels.invoiceNumber"],null],"col-sm-4 test-invoice-number"]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group row"],["flush-element"],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection","className"],["location",["helper",["t"],["inventory.labels.location"],null],["get",["warehouseList"]],["get",["model","location"]],"col-sm-5"]]],false],["text","\\n "],["append",["helper",["select-or-typeahead"],null,[["property","label","list","selection","className"],["aisleLocation",["helper",["t"],["inventory.labels.aisleLocation"],null],["get",["aisleLocationList"]],["get",["model","aisleLocation"]],"col-sm-5"]]],false],["text","\\n "],["open-element","div",[]],["static-attr","class","col-sm-2 checkbox-label-space"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","form-check"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label sr-only"],["flush-element"],["append",["helper",["t"],["inventory.labels.gift"],null],false],["close-element"],["text","\\n "],["append",["helper",["em-checkbox"],null,[["label","property"],[["helper",["t"],["inventory.labels.gift"],null],"giftInKind"]]],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["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",["helper",["t"],["inventory.labels.invoiceLineItem"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","panel-body"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","row"],["flush-element"],["text","\\n "],["append",["helper",["inventory-typeahead"],null,[["class","property","label","content","selection","showQuantity"],["col-sm-7 required test-inv-item","inventoryItemTypeAhead",["helper",["t"],["inventory.labels.inventoryItem"],null],["get",["inventoryList"]],["get",["selectedInventoryItem"]],false]]],false],["text","\\n "],["append",["helper",["number-input"],null,[["property","label","class"],["quantity",["helper",["t"],["labels.quantity"],null],"col-sm-2 required 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"],["append",["helper",["t"],["inventory.labels.unit"],null],false],["close-element"],["text","\\n"],["block",["if"],[["get",["showDistributionUnit"]]],null,2],["text"," "],["close-element"],["text","\\n "],["append",["helper",["number-input"],null,[["property","label","class"],["purchaseCost",["helper",["t"],["inventory.labels.purchaseCost"],null],"col-sm-2 required test-inv-cost"]]],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"],["vendorItemNo",["helper",["t"],["inventory.labels.vendorItemNumber"],null],"col-sm-4"]]],false],["text","\\n "],["append",["helper",["em-input"],null,[["property","label","class"],["lotNumber",["helper",["t"],["inventory.labels.serialNumber"],null],"col-sm-4"]]],false],["text","\\n "],["append",["helper",["date-picker"],null,[["property","label","minDate","class"],["expirationDate",["helper",["t"],["inventory.labels.expirationDate"],null],"now","col-sm-2"]]],false],["text","\\n "],["open-element","div",[]],["static-attr","class","form-group col-sm-2"],["flush-element"],["text","\\n "],["open-element","label",[]],["static-attr","class","control-label"],["flush-element"],["text"," "],["close-element"],["text","\\n "],["open-element","p",[]],["static-attr","class","form-control-static"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-primary"],["modifier",["action"],[["get",[null]],"addInventoryItem"]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["inventory.labels.add"],null],false],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["model","invoiceItems"]]],null,1]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],3]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inventory/batch/template.hbs"}})}),define("hospitalrun/inventory/delete/controller",["exports","ember-i18n","hospitalrun/controllers/abstract-delete-controller"],function(e,t,n){e.default=n.default.extend({title:(0,t.translationMacro)("inventory.labels.deleteItem")})}),define("hospitalrun/inventory/delete/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"flD7Jxyi",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"],[["name"],[["get",["model","name"]]]]],false],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inventory/delete/template.hbs"}})}),define("hospitalrun/inventory/edit/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember","hospitalrun/mixins/friendly-id","hospitalrun/mixins/inventory-locations","hospitalrun/mixins/inventory-type-list","hospitalrun/mixins/return-to","hospitalrun/mixins/unit-types","hospitalrun/mixins/user-session"],function(e,t,n,a,l,s,i,o,r){var d=n.default.computed,c=n.default.get;e.default=t.default.extend(a.default,l.default,s.default,i.default,o.default,r.default,{inventory:n.default.inject.controller(),savingNewItem:!1,sequenceView:"inventory_by_friendly_id",canAddPurchase:function(){return this.currentUserCan("add_inventory_purchase")}.property(),canAdjustLocation:function(){return this.currentUserCan("adjust_inventory_location")},warehouseList:n.default.computed.alias("inventory.warehouseList"),aisleLocationList:n.default.computed.alias("inventory.aisleLocationList"),inventoryTypeList:n.default.computed.alias("inventory.inventoryTypeList.value"),inventoryUnitList:n.default.computed.alias("inventory.inventoryUnitList.value"),vendorList:n.default.computed.alias("inventory.vendorList"),database:n.default.inject.service(),lookupListsToUpdate:[{name:"aisleLocationList",property:"model.aisleLocation",id:"aisle_location_list"},{name:"vendorList",property:"model.vendor",id:"vendor_list"},{name:"warehouseList",property:"model.location",id:"warehouse_list"}],canEditQuantity:function(){return this.get("model.isNew")}.property("model.isNew"),haveTransactions:function(){return null!==this.get("transactions")}.property("transactions.[]"),locationQuantityTotal:function(){return this.get("model.locations").reduce(function(e,t){return e+parseInt(t.get("quantity"))},0)}.property("model.locations"),quantityDiscrepency:function(){var e=this.get("locationQuantityTotal"),t=this.get("model.quantity");return!n.default.isEmpty(e)&&!n.default.isEmpty(t)&&e!==t}.property("locationQuantityTotal","model.quantity"),quantityDifferential:function(){var e=this.get("locationQuantityTotal"),t=this.get("model.quantity");return Math.abs(e-t)}.property("locationQuantityTotal","model.quantity"),originalQuantityUpdated:function(){var e=this.get("model.isNew"),t=this.get("model.originalQuantity");e&&!n.default.isEmpty(t)&&this.set("model.quantity",t)}.observes("model.isNew","model.originalQuantity"),sequenceName:d("model.inventoryType",function(){return"inventory_"+c(this,"model.inventoryType")}),showTransactions:function(){var e=this.get("transactions");return!n.default.isEmpty(e)}.property("transactions.[]"),transactions:null,updateCapability:"add_inventory_item",actions:{adjustItems:function(e){var t=parseInt(e.get("adjustmentQuantity")),n=this.get("model"),a=e.get("transactionType"),l=this.get("store").createRecord("inv-request",{adjustPurchases:!0,dateCompleted:e.get("dateCompleted"),expenseAccount:e.get("expenseAccount"),inventoryItem:n,quantity:t,transactionType:a,reason:e.get("reason"),deliveryAisle:e.get("aisleLocation"),deliveryLocation:e.get("location")});l.set("inventoryLocations",[e]);var s=!1;"Adjustment (Add)"!==a&&"Return"!==a||(s=!0),l.set("markAsConsumed",!0),l.get("inventoryItem").then(function(){this.send("fulfillRequest",l,!0,s,!0)}.bind(this))},editNewItem:function(){this.send("editItem",this.get("model.id"))},showAdjustment:function(e){e.setProperties({dateCompleted:new Date,adjustmentItem:this.get("model"),adjustmentQuantity:"",reason:"",transferItem:null,transactionType:"Adjustment (Add)"}),this.send("openModal","inventory.adjust",e)},showTransfer:function(e){e.set("adjustmentQuantity"),e.set("transferItem",this.get("model")),e.set("dateCompleted",new Date),this.send("openModal","inventory.transfer",e)},transferItems:function(e){var t=this.get("model"),n=this.get("store").createRecord("inv-request",{adjustPurchases:!1,dateCompleted:e.get("dateCompleted"),inventoryItem:t,quantity:e.get("adjustmentQuantity"),deliveryAisle:e.get("transferAisleLocation"),deliveryLocation:e.get("transferLocation"),transactionType:"Transfer"});this.transferToLocation(t,e).then(function(){e.setProperties({transferItem:null,transferLocation:null,transferAisleLocation:null,adjustmentQuantity:null}),n.set("locationsAffected",[{name:e.get("locationName"),quantity:n.get("quantity")}]),n.get("inventoryItem").then(function(){this._saveRequest(n)}.bind(this))}.bind(this))},updatePurchase:function(e,t){t&&(this.get("model").updateQuantity(),this.send("update",!0)),this.send("closeModal")}},_completeBeforeUpdate:function(e){var t=[],a=this.get("model"),l=a.getProperties("aisleLocation","dateReceived","purchaseCost","lotNumber","expirationDate","giftInKind","invoiceNo","location","originalQuantity","quantityGroups","vendor","vendorItemNo"),s=this.get("model.originalQuantity");if(!n.default.isEmpty(s)){l.currentQuantity=s,l.inventoryItem=this.get("model.id");var i=this.get("store").createRecord("inv-purchase",l);t.push(i.save()),this.get("model.purchases").addObject(i),t.push(this.newPurchaseAdded(this.get("model"),i))}return a.set("friendlyId",e),n.default.RSVP.all(t,"All before update done for inventory item")},_saveRequest:function(e){e.set("status","Completed"),e.set("completedBy",e.getUserName()),e.save().then(function(){this.send("update",!0),this.send("closeModal"),this.getTransactions()}.bind(this))},getTransactions:function(){var e=this.get("model.id");this.set("transactions",null),this.store.query("inv-request",{options:{endkey:[e,"Completed",0],startkey:[e,"Completed",9999999999999],descending:!0},mapReduce:"inventory_request_by_item"}).then(function(e){this.set("transactions",e)}.bind(this))},beforeUpdate:function(){var e=this;if(!this.get("model.isNew"))return n.default.RSVP.Promise.resolve();var t=function(){var t=e.get("model");return{v:t.validate().then(function(){if(t.get("isValid"))return e.set("savingNewItem",!0),e.generateFriendlyId("inventory").then(function(t){return e._completeBeforeUpdate(t)});throw Error("invalid model")}).catch(function(){e.send("showDisabledDialog")})}}();return"object"==typeof t?t.v:void 0},afterUpdate:function(){var e=null;this.get("savingNewItem")&&(e="editNewItem",this.set("savingNewItem",!1)),this.displayAlert("Inventory Item Saved","The inventory item has been saved.",e)}})}),define("hospitalrun/inventory/edit/route",["exports","hospitalrun/routes/abstract-edit-route","ember","ember-i18n","hospitalrun/mixins/inventory-id"],function(e,t,n,a,l){e.default=t.default.extend(l.default,{editTitle:(0,a.translationMacro)("inventory.labels.editItem"),modelName:"inventory",newTitle:(0,a.translationMacro)("inventory.labels.newItem"),actions:{adjustItems:function(e){this.controller.send("adjustItems",e)},doneFulfillRequest:function(){this.controller.getTransactions()},editNewItem:function(){this.controller.send("editNewItem")},transferItems:function(e){this.controller.send("transferItems",e)},updatePurchase:function(e,t){this.controller.send("updatePurchase",e,t)}},getNewData:function(){return n.default.RSVP.resolve({dateReceived:new Date,quantityGroups:[]})},setupController:function(e,t){this._super(e,t),e.getTransactions()}})}),define("hospitalrun/inventory/edit/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"fT4+Xn0L", +block:'{"statements":[["block",["edit-panel"],null,[["editPanelProps"],[["get",["editPanelProps"]]]],27]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["static-attr","colspan","4"],["flush-element"],["open-element","span",[]],["static-attr","class","glyphicon glyphicon-refresh glyphicon-refresh-animate"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["inventory.messages.loading"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["unknown",["location","name"]],false],["open-element","br",[]],["flush-element"],["close-element"],["text","\\n"]],"locals":["location"]},{"statements":[["text"," "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.transferredFrom"],null],false],["close-element"],["text","\\n"],["block",["each"],[["get",["transaction","locationsAffected"]]],null,1],["text"," "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.transferredTo"],null],false],["close-element"],["text"," "],["append",["unknown",["transaction","deliveryDetails"]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.delivered"],null],false],["close-element"],["text"," "],["append",["unknown",["transaction","deliveryDetails"]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.prescription"],null],false],["close-element"],["text"," "],["append",["unknown",["transaction","deliveryDetails"]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["unknown",["location","name"]],false],["open-element","br",[]],["flush-element"],["close-element"],["text","\\n"]],"locals":["location"]},{"statements":[["text"," "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.cost"],null],false],["close-element"],["text"," "],["append",["unknown",["transaction","costPerUnit"]],false],["open-element","br",[]],["flush-element"],["close-element"],["text","\\n "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.quantity"],null],false],["close-element"],["text"," "],["append",["unknown",["transaction","quantityAtCompletion"]],false],["open-element","br",[]],["flush-element"],["close-element"],["text","\\n "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.pulled"],null],false],["close-element"],["text","\\n"],["block",["each"],[["get",["transaction","locationsAffected"]]],null,5],["block",["if"],[["get",["transaction","patient"]]],null,4,3]],"locals":[]},{"statements":[["text"," "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.location"],null],false],["close-element"],["text"," "],["append",["unknown",["transaction","deliveryDetails"]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.returned"],null],false],["close-element"],["text"," "],["append",["unknown",["transaction","deliveryDetails"]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","strong",[]],["flush-element"],["append",["helper",["t"],["inventory.edit.reason"],null],false],["close-element"],["text"," "],["append",["unknown",["transaction","reason"]],false],["open-element","br",[]],["flush-element"],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["transaction","haveReason"]]],null,9],["block",["if"],[["get",["transaction","patient"]]],null,8,7]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["transaction","dateCompleted"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["transaction","quantity"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["transaction","transactionType"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["transaction","expenseAccount"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["transaction","isAdjustment"]]],null,10],["block",["if"],[["get",["transaction","isFulfillment"]]],null,6],["block",["if"],[["get",["transaction","isTransfer"]]],null,2],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["transaction"]},{"statements":[["block",["each"],[["get",["transactions"]]],null,11]],"locals":[]},{"statements":[["text"," "],["open-element","h3",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.transactions"],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"],["inventory.labels.dateCompleted"],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"],["inventory.labels.transaction"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.expense"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.details"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["haveTransactions"]]],null,12,0],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","td",[]],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-primary neutral"],["modifier",["action"],[["get",[null]],"showAdjustment",["get",["location"]]]],["flush-element"],["append",["helper",["t"],["inventory.labels.adjust"],null],false],["close-element"],["text","\\n "],["open-element","button",[]],["static-attr","class","btn btn-primary btn-extra"],["modifier",["action"],[["get",[null]],"showTransfer",["get",["location"]]]],["flush-element"],["append",["helper",["t"],["inventory.labels.transfer"],null],false],["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",["location","location"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["location","aisleLocation"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["location","quantity"]],false],["close-element"],["text","\\n"],["block",["if"],[["get",["canAdjustLocation"]]],null,14],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["location","quantity"]]],null,15]],"locals":["location"]},{"statements":[["text"," "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.action"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","h3",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.locations"],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"],["inventory.labels.location"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.aisleLocation"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["labels.quantity"],null],false],["close-element"],["text","\\n"],["block",["if"],[["get",["canAdjustLocation"]]],null,17],["text"," "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","locations"]]],null,16],["text"," "],["close-element"],["text","\\n"],["block",["if"],[["get",["showTransactions"]]],null,13]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["inventory.labels.giftInKindNo"],null],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["t"],["inventory.labels.giftInKindYes"],null],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["dynamic-attr","class",["helper",["if"],[["get",["purchase","expired"]],"warning"],null],null],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["purchase","dateReceived"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["purchase","purchaseCost"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["purchase","costPerUnit"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["purchase","originalQuantity"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["purchase","currentQuantity"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["purchase","giftInKind"]]],null,20,19],["text"," "],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["purchase","lotNumber"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["purchase","expirationDate"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["purchase","vendor"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["purchase","invoiceNo"]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["purchase"]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-primary align-right"],["modifier",["action"],[["get",[null]],"showAddPurchase",["get",["model"]]]],["flush-element"],["open-element","span",[]],["static-attr","class","octicon octicon-plus"],["flush-element"],["close-element"],["text"," "],["append",["helper",["t"],["inventory.titles.addPurchase"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","alert alert-danger alert-dismissible"],["static-attr","role","alert"],["flush-element"],["text","\\n "],["open-element","button",[]],["static-attr","type","button"],["static-attr","class","close"],["static-attr","data-dismiss","alert"],["flush-element"],["open-element","span",[]],["static-attr","aria-hidden","true"],["static-attr","class","octicon octicon-x"],["flush-element"],["close-element"],["open-element","span",[]],["static-attr","class","sr-only"],["flush-element"],["append",["helper",["t"],["buttons.close"],null],false],["close-element"],["close-element"],["text","\\n "],["open-element","p",[]],["flush-element"],["text","\\n "],["open-element","span",[]],["static-attr","class","glyphicon glyphicon-warning-sign"],["flush-element"],["close-element"],["text","\\n "],["append",["helper",["t"],["inventory.messages.quantity"],[["quantity","locationQuantity"],[["get",["model","quantity"]],["get",["locationQuantityTotal"]]]]],false],["text","\\n "],["close-element"],["text","\\n "],["open-element","p",[]],["flush-element"],["append",["helper",["t"],["inventory.messages.adjust"],[["difference"],[["get",["quantityDifferential"]]]]],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["quantityDiscrepency"]]],null,23],["text"," "],["open-element","h3",[]],["flush-element"],["text","\\n "],["append",["helper",["t"],["inventory.labels.purchases"],null],false],["text","\\n"],["block",["if"],[["get",["canAddPurchase"]]],null,22],["text"," "],["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"],["inventory.labels.dateReceived"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.purchaseCost"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.costPerUnit"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.originalQuantity"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.currentQuantity"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.gift"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.serialNumber"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.expirationDate"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.vendor"],null],false],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.invoiceNumber"],null],false],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["each"],[["get",["model","purchases"]]],null,21],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","h3",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.purchaseInfo"],null],false],["close-element"],["text","\\n "],["partial","inv-purchase"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["partial","inventory-basic"],["text","\\n"],["block",["if"],[["get",["model","isNew"]]],null,25,24],["block",["unless"],[["get",["model","isNew"]]],null,18]],"locals":[]},{"statements":[["block",["em-form"],null,[["model","submitButton"],[["get",["model"]],false]],26]],"locals":[]}],"hasPartials":true}',meta:{moduleName:"hospitalrun/inventory/edit/template.hbs"}})}),define("hospitalrun/inventory/index/controller",["exports","ember","hospitalrun/controllers/abstract-paged-controller","hospitalrun/mixins/user-session"],function(e,t,n,a){var l=t.default.computed;e.default=n.default.extend(a.default,{startKey:[],canAdd:function(){return this.currentUserCan("add_inventory_request")}.property(),canFulfill:function(){return this.currentUserCan("fulfill_inventory")}.property(),currentUserName:l("",function(){return this.getUserName()})})}),define("hospitalrun/inventory/index/route",["exports","hospitalrun/routes/abstract-index-route","hospitalrun/mixins/user-session","ember-i18n"],function(e,t,n,a){e.default=t.default.extend(n.default,{modelName:"inv-request",newButtonAction:function(){return this.currentUserCan("add_inventory_request")?"newRequest":null}.property(),newButtonText:(0,a.translationMacro)("buttons.newRequestPlus"),pageTitle:(0,a.translationMacro)("navigation.subnav.requests"),_getStartKeyFromItem:function(e){return["Requested",null,this._getPouchIdFromItem(e)]},_modelQueryParams:function(){var e=this.get("maxValue");return{options:{startkey:["Requested",null,null],endkey:["Requested",e,e]},mapReduce:"inventory_request_by_status"}},actions:{fulfill:function(e){e.set("dateCompleted",new Date),this.transitionTo("inventory.request",e)}}})}),define("hospitalrun/inventory/index/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"Dt0Atl/D",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]],"newRequest"]],["flush-element"],["text"," "],["append",["helper",["t"],["inventory.messages.createRequest"],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"],["inventory.messages.noRequests"],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",["request"]]],[["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"],["modifier",["action"],[["get",[null]],"fulfill",["get",["request"]]]],["flush-element"],["append",["helper",["t"],["labels.fulfill"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["request","inventoryItem","name"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["request","quantity"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["helper",["date-format"],[["get",["request","dateRequested"]]],null],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["request","requestedBy"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["canFulfill"]]],null,3],["block",["if"],[["helper",["or"],[["get",["canFulfill"]],["helper",["and"],[["get",["canAdd"]],["helper",["eq"],[["get",["request","requestedBy"]],["get",["currentUserName"]]],null]],null]],null]],null,2],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":["request"]},{"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.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.requestedOn"],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",["model"]]],null,4],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["hasRecords"]]],null,5,1]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inventory/index/template.hbs"}})}),define("hospitalrun/inventory/listing/controller",["exports","hospitalrun/controllers/abstract-paged-controller","hospitalrun/mixins/user-session"],function(e,t,n){e.default=t.default.extend(n.default,{canAddItem:function(){return this.currentUserCan("add_inventory_item")}.property(),canAddPurchase:function(){return this.currentUserCan("add_inventory_purchase")}.property(),canDeleteItem:function(){return this.currentUserCan("delete_inventory_item")}.property(),startKey:[]})}),define("hospitalrun/inventory/listing/route",["exports","hospitalrun/routes/abstract-index-route","hospitalrun/mixins/user-session","ember-i18n"],function(e,t,n,a){e.default=t.default.extend(n.default,{modelName:"inventory",newButtonAction:function(){return this.currentUserCan("add_inventory_item")?"newItem":null}.property(),newButtonText:(0,a.translationMacro)("buttons.newItem"),pageTitle:(0,a.translationMacro)("inventory.labels.items"),_modelQueryParams:function(){return{mapReduce:"inventory_by_name"}},_getStartKeyFromItem:function(e){var t=this._getPouchIdFromItem(e);return[e.get("name"),t]}})}),define("hospitalrun/inventory/listing/template",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"mSwPqfiH",block:'{"statements":[["block",["item-listing"],null,[["paginationProps"],[["get",["paginationProps"]]]],14]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","a",[]],["static-attr","href","#"],["modifier",["action"],[["get",[null]],"newItem"]],["flush-element"],["append",["helper",["t"],["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"],["messages.noItemsFound"],null],false],["text"," "],["block",["if"],[["get",["canAddItem"]]],null,0],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["append",["helper",["t"],["buttons.barcode"],null],false]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-default warning"],["modifier",["action"],[["get",[null]],"deleteItem",["get",["inventory"]]],[["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",["inventory"]]],[["bubbles"],[false]]],["flush-element"],["append",["helper",["t"],["labels.edit"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn btn-primary"],["modifier",["action"],[["get",[null]],"showAddPurchase",["get",["inventory"]]],[["bubbles"],[false]]],["flush-element"],["append",["helper",["t"],["buttons.add"],null],false],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","tr",[]],["static-attr","class","clickable"],["modifier",["action"],[["get",[null]],"editItem",["get",["inventory"]]]],["flush-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["inventory","friendlyId"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["inventory","name"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["inventory","inventoryType"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["inventory","quantity"]],false],["text"," "],["append",["unknown",["inventory","distributionUnit"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["inventory","displayLocations"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["append",["unknown",["inventory","crossReference"]],false],["close-element"],["text","\\n "],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["canAddPurchase"]]],null,5],["block",["if"],[["get",["canAddItem"]]],null,4],["block",["if"],[["get",["canDeleteItem"]]],null,3],["text"," "],["block",["link-to"],["inventory.barcode",["get",["inventory"]]],[["class","bubbles"],["btn btn-default neutral",false]],2],["text","\\n "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["unless"],[["get",["inventory","isNew"]]],null,6]],"locals":["inventory"]},{"statements":[["append",["helper",["t"],["inventory.labels.xref"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["labels.quantity"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["labels.type"],null],false]],"locals":[]},{"statements":[["append",["helper",["t"],["labels.name"],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","tr",[]],["static-attr","class","table-header"],["flush-element"],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["friendlyId",["get",["sortDesc"]],["get",["sortKey"]]]],12],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["name",["get",["sortDesc"]],["get",["sortKey"]]]],11],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["inventoryType",["get",["sortDesc"]],["get",["sortKey"]]]],10],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["quantity",["get",["sortDesc"]],["get",["sortKey"]]]],9],["text","\\n "],["open-element","th",[]],["flush-element"],["append",["helper",["t"],["inventory.labels.location"],null],false],["close-element"],["text","\\n "],["block",["sortable-column"],null,[["sortBy","sortDesc","sortKey"],["crossReference",["get",["sortDesc"]],["get",["sortKey"]]]],8],["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"]]],null,7],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["hasRecords"]]],null,13,1]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"hospitalrun/inventory/listing/template.hbs"}})}),define("hospitalrun/inventory/purchase/edit/controller",["exports","hospitalrun/controllers/abstract-edit-controller","ember","hospitalrun/mixins/unit-types"],function(e,t,n,a){e.default=t.default.extend(a.default,{inventoryController:n.default.inject.controller("inventory"),cancelAction:"closeModal",canEditQuantity:function(){var e=this.get("model.originalQuantity");return!(this.get("model.currentQuantity")-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(" - - + +