ion_orders_engine_mockingjay 1.0.1.SNAPSHOT
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +0 -0
- data/Rakefile +4 -0
- data/app/assets/images/rails.png +0 -0
- data/app/assets/javascripts/application.js +16 -0
- data/app/assets/javascripts/bootstrap_additions.js.coffee +4 -0
- data/app/assets/javascripts/interchange/patients.js.coffee +3 -0
- data/app/assets/javascripts/interchange/physicians.js.coffee +3 -0
- data/app/assets/javascripts/mock/allergies.js.coffee +3 -0
- data/app/assets/javascripts/mock/appointments.js.coffee +3 -0
- data/app/assets/javascripts/mock/assignments.js.coffee +17 -0
- data/app/assets/javascripts/mock/chart_reviews.js.coffee +3 -0
- data/app/assets/javascripts/mock/comments.js.coffee +3 -0
- data/app/assets/javascripts/mock/conditions.js.coffee +3 -0
- data/app/assets/javascripts/mock/diagnoses.js.coffee +3 -0
- data/app/assets/javascripts/mock/documents.js.coffee +3 -0
- data/app/assets/javascripts/mock/employments.js.coffee +3 -0
- data/app/assets/javascripts/mock/encounters.js.coffee +3 -0
- data/app/assets/javascripts/mock/family_contacts.js.coffee +3 -0
- data/app/assets/javascripts/mock/family_histories.js.coffee +3 -0
- data/app/assets/javascripts/mock/guarantors.js.coffee +3 -0
- data/app/assets/javascripts/mock/insurance_plans.js.coffee +3 -0
- data/app/assets/javascripts/mock/lab_concepts.js.coffee +4 -0
- data/app/assets/javascripts/mock/lab_results.js.coffee +3 -0
- data/app/assets/javascripts/mock/locations.js.coffee +3 -0
- data/app/assets/javascripts/mock/medical_record_numbers.js.coffee +3 -0
- data/app/assets/javascripts/mock/metadata_keywords.js.coffee +3 -0
- data/app/assets/javascripts/mock/pharmacies.js.coffee +3 -0
- data/app/assets/javascripts/mock/phone_numbers.js.coffee +3 -0
- data/app/assets/javascripts/mock/physicians.js.coffee +3 -0
- data/app/assets/javascripts/mock/procedure_histories.js.coffee +3 -0
- data/app/assets/javascripts/mock/providers.js.coffee +14 -0
- data/app/assets/javascripts/mock/questions.js.coffee +3 -0
- data/app/assets/javascripts/mock/reference_range.js.coffee +3 -0
- data/app/assets/javascripts/mock/sections.js.coffee +3 -0
- data/app/assets/javascripts/mock/social_histories.js.coffee +3 -0
- data/app/assets/javascripts/mock/state_health_identifiers.js.coffee +3 -0
- data/app/assets/javascripts/mock/statistics.js.coffee +3 -0
- data/app/assets/javascripts/mock/test_assertions.js.coffee +3 -0
- data/app/assets/javascripts/mock/visit.js.coffee +3 -0
- data/app/assets/javascripts/mock/vitals_measurement.js.coffee +3 -0
- data/app/assets/javascripts/reference/data_elements.js.coffee +3 -0
- data/app/assets/javascripts/reference/data_lists.js.coffee +3 -0
- data/app/assets/javascripts/reference/data_sets.js.coffee +3 -0
- data/app/assets/stylesheets/application.css.scss +13 -0
- data/app/assets/stylesheets/bootstrap_and_overrides.css.scss +79 -0
- data/app/assets/stylesheets/forms.css.scss +67 -0
- data/app/assets/stylesheets/interchange/patients.css.scss +3 -0
- data/app/assets/stylesheets/interchange/physicians.css.scss +3 -0
- data/app/assets/stylesheets/mock/allergies.css.scss +3 -0
- data/app/assets/stylesheets/mock/appointments.css.scss +3 -0
- data/app/assets/stylesheets/mock/chart_reviews.css.scss +3 -0
- data/app/assets/stylesheets/mock/comments.css.scss +3 -0
- data/app/assets/stylesheets/mock/conditions.css.scss +3 -0
- data/app/assets/stylesheets/mock/diagnoses.css.scss +3 -0
- data/app/assets/stylesheets/mock/documents.css.scss +3 -0
- data/app/assets/stylesheets/mock/employments.css.scss +3 -0
- data/app/assets/stylesheets/mock/encounters.css.scss +3 -0
- data/app/assets/stylesheets/mock/family_contacts.css.scss +3 -0
- data/app/assets/stylesheets/mock/family_histories.css.scss +3 -0
- data/app/assets/stylesheets/mock/guarantors.css.scss +3 -0
- data/app/assets/stylesheets/mock/insurance_plans.css.scss +3 -0
- data/app/assets/stylesheets/mock/lab_concepts.css.scss +3 -0
- data/app/assets/stylesheets/mock/lab_results.css.scss +3 -0
- data/app/assets/stylesheets/mock/locations.css.scss +3 -0
- data/app/assets/stylesheets/mock/medical_record_numbers.css.scss +3 -0
- data/app/assets/stylesheets/mock/metadata_keywords.css.scss +3 -0
- data/app/assets/stylesheets/mock/pharmacies.css.scss +3 -0
- data/app/assets/stylesheets/mock/phone_numbers.css.scss +3 -0
- data/app/assets/stylesheets/mock/physicians.css.scss +3 -0
- data/app/assets/stylesheets/mock/procedure_histories.css.scss +3 -0
- data/app/assets/stylesheets/mock/providers.css.scss +3 -0
- data/app/assets/stylesheets/mock/questions.css.scss +3 -0
- data/app/assets/stylesheets/mock/reference_range.css.scss +3 -0
- data/app/assets/stylesheets/mock/sections.css.scss +3 -0
- data/app/assets/stylesheets/mock/social_histories.css.scss +3 -0
- data/app/assets/stylesheets/mock/state_health_identifiers.css.scss +3 -0
- data/app/assets/stylesheets/mock/statistics.css.scss +3 -0
- data/app/assets/stylesheets/mock/test_assertions.css.scss +3 -0
- data/app/assets/stylesheets/mock/visit.css.scss +3 -0
- data/app/assets/stylesheets/mock/vitals_measurement.css.scss +3 -0
- data/app/assets/stylesheets/reference/data_elements.css.scss +3 -0
- data/app/assets/stylesheets/reference/data_lists.css.scss +3 -0
- data/app/assets/stylesheets/reference/data_sets.css.scss +3 -0
- data/app/assets/stylesheets/scaffolds.css.scss +66 -0
- data/app/controllers/api/base_controller.rb +78 -0
- data/app/controllers/api/ion_orders_engine/order_by_id/order_by_id_controller.rb +3220 -0
- data/app/controllers/api/ion_orders_engine/order_profile/inpatient_order_profile_controller.rb +3156 -0
- data/app/controllers/application_controller.rb +25 -0
- data/app/controllers/crud/base_controller.rb +90 -0
- data/app/controllers/interchange/base_controller.rb +63 -0
- data/app/controllers/interchange/data_sets_controller.rb +40 -0
- data/app/controllers/interchange/exports_controller.rb +120 -0
- data/app/controllers/interchange/imports_controller.rb +141 -0
- data/app/controllers/reference/base_controller.rb +7 -0
- data/app/controllers/reference/data_lists_controller.rb +177 -0
- data/app/controllers/reference/data_options_controller.rb +147 -0
- data/app/controllers/reference/data_sets_controller.rb +160 -0
- data/app/helpers/application_helper.rb +389 -0
- data/app/helpers/error_messages_helper.rb +23 -0
- data/app/helpers/interchange/exports_helper.rb +9 -0
- data/app/helpers/interchange/imports_helper.rb +31 -0
- data/app/helpers/layout_helper.rb +40 -0
- data/app/helpers/reference/data_elements_helper.rb +2 -0
- data/app/helpers/reference/data_lists_helper.rb +2 -0
- data/app/helpers/reference/data_sets_helper.rb +2 -0
- data/app/views/interchange/common/_database_info.json.jbuilder +6 -0
- data/app/views/interchange/common/_metadata_keywords.json.jbuilder +13 -0
- data/app/views/interchange/common/_test_assertions.json.jbuilder +17 -0
- data/app/views/interchange/data_sets/_data_list.json.jbuilder +14 -0
- data/app/views/interchange/data_sets/_data_option.json.jbuilder +12 -0
- data/app/views/interchange/data_sets/_data_set.json.jbuilder +17 -0
- data/app/views/interchange/data_sets/_nested_data_list.json.jbuilder +12 -0
- data/app/views/interchange/data_sets/show.json.jbuilder +10 -0
- data/app/views/interchange/document_templates/_document_template.json.jbuilder +23 -0
- data/app/views/interchange/document_templates/_section.json.jbuilder +11 -0
- data/app/views/interchange/document_templates/show.json.jbuilder +10 -0
- data/app/views/interchange/exports/_export_summary.html.erb +49 -0
- data/app/views/interchange/exports/show.html.erb +35 -0
- data/app/views/interchange/imports/_import_summary.html.erb +72 -0
- data/app/views/interchange/imports/show.html.erb +37 -0
- data/app/views/layouts/_flashbar.html.erb +6 -0
- data/app/views/layouts/_navbar.html.erb +38 -0
- data/app/views/layouts/_protected_warning.html.erb +7 -0
- data/app/views/layouts/_root_model_layout.erb +33 -0
- data/app/views/layouts/application.html.erb +39 -0
- data/app/views/layouts/reference/data_sets.html.erb +5 -0
- data/app/views/reference/data_lists/_data_options.html.erb +31 -0
- data/app/views/reference/data_lists/_form.html.erb +23 -0
- data/app/views/reference/data_lists/edit.html.erb +6 -0
- data/app/views/reference/data_lists/index.html.erb +31 -0
- data/app/views/reference/data_lists/new.html.erb +6 -0
- data/app/views/reference/data_lists/show.html.erb +55 -0
- data/app/views/reference/data_options/_form.html.erb +23 -0
- data/app/views/reference/data_options/edit.html.erb +5 -0
- data/app/views/reference/data_options/index.html.erb +38 -0
- data/app/views/reference/data_options/new.html.erb +5 -0
- data/app/views/reference/data_options/show.html.erb +33 -0
- data/app/views/reference/data_sets/_form.html.erb +25 -0
- data/app/views/reference/data_sets/edit.html.erb +5 -0
- data/app/views/reference/data_sets/index.html.erb +40 -0
- data/app/views/reference/data_sets/new.html.erb +5 -0
- data/app/views/reference/data_sets/show.html.erb +38 -0
- data/config/application.rb +100 -0
- data/config/boot.rb +6 -0
- data/config/database.yml +25 -0
- data/config/environment.rb +5 -0
- data/config/environments/development.rb +42 -0
- data/config/environments/production.rb +64 -0
- data/config/environments/test.rb +35 -0
- data/config/initializers/backtrace_silencers.rb +7 -0
- data/config/initializers/extensions/active_record.rb +13 -0
- data/config/initializers/extensions/hash.rb +11 -0
- data/config/initializers/extensions/string.rb +15 -0
- data/config/initializers/inflections.rb +15 -0
- data/config/initializers/mime_types.rb +5 -0
- data/config/initializers/reference.rb +77 -0
- data/config/initializers/secret_token.rb +7 -0
- data/config/initializers/session_store.rb +8 -0
- data/config/initializers/simple_form.rb +142 -0
- data/config/initializers/simple_form_bootstrap.rb +45 -0
- data/config/initializers/wrap_parameters.rb +10 -0
- data/config/locales/en.yml +207 -0
- data/config/locales/simple_form.en.yml +26 -0
- data/config/mongo.yml +18 -0
- data/config/routes.rb +4 -0
- data/db/schema.rb +16 -0
- data/db/seeds.rb +66 -0
- data/lib/ion_orders_engine_mockingjay/engine.rb +13 -0
- data/lib/ion_orders_engine_mockingjay/version.rb +3 -0
- data/lib/ion_orders_engine_mockingjay.rb +4 -0
- data/lib/tasks/ion_orders_engine_mockingjay_tasks.rake +4 -0
- metadata +215 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2383f21b8f36036b4fa090ac0e169bc477ebbde5
|
4
|
+
data.tar.gz: 69615d474475d3da7ae02f0c002d06219e1f8305
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 43622fb16862f27ba16489d80f4d62afdd102d2275a77d5cd3642c392dda96e8ab48bae5e9f256dc00f7c9b37eee5110d1df5adbc69fa218231afbff61e3845d
|
7
|
+
data.tar.gz: 0cfe073c305f02403ae085babef6350788e3838b052fc3c3ce0c13151c2140074e63602a92b34524955d75622424249ad51b4c1fe1b800653b8bb1106db39b6d
|
data/README.md
ADDED
File without changes
|
data/Rakefile
ADDED
Binary file
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// the compiled file.
|
9
|
+
//
|
10
|
+
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
11
|
+
// GO AFTER THE REQUIRES BELOW.
|
12
|
+
//
|
13
|
+
//= require jquery
|
14
|
+
//= require jquery_ujs
|
15
|
+
//= require bootstrap
|
16
|
+
//= require_tree .
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Place all the behaviors and hooks related to the matching controller here.
|
2
|
+
# All this logic will automatically be available in application.js.
|
3
|
+
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
4
|
+
|
5
|
+
jQuery ->
|
6
|
+
|
7
|
+
$('#assignment_person_id').change ->
|
8
|
+
|
9
|
+
$("#assignment_encounter_id").empty()
|
10
|
+
url = '/mock/assignments/update_encounters?pid='+ $(this).val()
|
11
|
+
$.getJSON url, (result) ->
|
12
|
+
options = $("#assignment_encounter_id")
|
13
|
+
$.each result, ->
|
14
|
+
options.append $("<option />").val(@id).text(@value)
|
15
|
+
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
jQuery ->
|
2
|
+
# Phone Number: Remove form fields:
|
3
|
+
$(".remove_phone_number").click ->
|
4
|
+
$(this).closest('.phone_number').remove()
|
5
|
+
|
6
|
+
# Phone Number: Add new form fields:
|
7
|
+
$(".add_phone_number").click ->
|
8
|
+
phone_number_form_content = $('#spare_phone_number').html()
|
9
|
+
$('#phone_numbers').append phone_number_form_content
|
10
|
+
|
11
|
+
# Hide the spare phone number partial; we'll grab
|
12
|
+
# its contents whenever needed to add a new phone number:
|
13
|
+
#$('#spare_phone_number').hide() # actually, we'll have this hidden at page definition
|
14
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
+
*
|
11
|
+
*= require_self
|
12
|
+
*= require_tree .
|
13
|
+
*/
|
@@ -0,0 +1,79 @@
|
|
1
|
+
// Set the correct sprite paths
|
2
|
+
$iconSpritePath: image-path('glyphicons-halflings.png');
|
3
|
+
$iconWhiteSpritePath: image-path('glyphicons-halflings-white.png');
|
4
|
+
|
5
|
+
$navbarBackground: #555;
|
6
|
+
$navbarBackgroundHighlight: #888;
|
7
|
+
$navbarText: #eee;
|
8
|
+
$navbarLinkColor: #eee;
|
9
|
+
|
10
|
+
@import "bootstrap";
|
11
|
+
|
12
|
+
body { padding-top: 60px; }
|
13
|
+
|
14
|
+
@import "bootstrap-responsive";
|
15
|
+
|
16
|
+
|
17
|
+
label {
|
18
|
+
text-align: right;
|
19
|
+
font-weight: 600;
|
20
|
+
};
|
21
|
+
|
22
|
+
|
23
|
+
/*
|
24
|
+
Although anchors are blue by default, the contents inside the breadcrumbs_on_rails provided
|
25
|
+
gem end up black by default. This reset gives us back blue, which is more appropriate for
|
26
|
+
this site.
|
27
|
+
*/
|
28
|
+
ul.breadcrumb li a {
|
29
|
+
color: $blue;
|
30
|
+
};
|
31
|
+
|
32
|
+
ul.breadcrumb li a:hover {
|
33
|
+
color: darken($blue, 15%);
|
34
|
+
font-weight: 500;
|
35
|
+
background-color: #fbfbfb;;
|
36
|
+
};
|
37
|
+
|
38
|
+
.btn-group .related {
|
39
|
+
width: 142px; // fixed so buttons in group stack nicely
|
40
|
+
}
|
41
|
+
|
42
|
+
.tooltip-inner {
|
43
|
+
max-width: 500px;
|
44
|
+
}
|
45
|
+
|
46
|
+
.fixed-mini {
|
47
|
+
width: 100px;
|
48
|
+
}
|
49
|
+
|
50
|
+
.success .accordion-heading {
|
51
|
+
background-color: lighten($green, 45%);
|
52
|
+
}
|
53
|
+
|
54
|
+
.failure .accordion-heading {
|
55
|
+
background-color: lighten($red, 45%);
|
56
|
+
}
|
57
|
+
|
58
|
+
.skipped .accordion-heading {
|
59
|
+
background-color: lighten($yellow, 45%);
|
60
|
+
}
|
61
|
+
|
62
|
+
.success .accordion-inner {
|
63
|
+
background-color: lighten($green, 50%);
|
64
|
+
}
|
65
|
+
|
66
|
+
.failure .accordion-inner {
|
67
|
+
background-color: lighten($red, 50%);
|
68
|
+
}
|
69
|
+
|
70
|
+
.skipped .accordion-inner {
|
71
|
+
background-color: lighten($yellow, 50%);
|
72
|
+
}
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
@@ -0,0 +1,67 @@
|
|
1
|
+
.simple_form {
|
2
|
+
$indent: 120px;
|
3
|
+
label {
|
4
|
+
float: left;
|
5
|
+
width: $indent - 20px;
|
6
|
+
text-align: right;
|
7
|
+
margin: 2px 10px;
|
8
|
+
&.radio, &.checkbox {
|
9
|
+
float: none;
|
10
|
+
margin: 0;
|
11
|
+
width: auto;
|
12
|
+
text-align: left;
|
13
|
+
}
|
14
|
+
&.checkbox {
|
15
|
+
margin-top: 8px;
|
16
|
+
}
|
17
|
+
&.radio {
|
18
|
+
margin-right: 10px;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
div.input {
|
22
|
+
margin-bottom: 10px;
|
23
|
+
}
|
24
|
+
input.radio_buttons, input.check_boxes {
|
25
|
+
margin-right: 5px;
|
26
|
+
}
|
27
|
+
.btn {
|
28
|
+
}
|
29
|
+
.alert-error {
|
30
|
+
color: #D00;
|
31
|
+
margin-bottom: 10px;
|
32
|
+
font-weight: bold;
|
33
|
+
}
|
34
|
+
.hint {
|
35
|
+
clear: left;
|
36
|
+
margin-left: $indent;
|
37
|
+
font-size: 12px;
|
38
|
+
color: #D00;
|
39
|
+
display: block;
|
40
|
+
}
|
41
|
+
.hint {
|
42
|
+
color: #555;
|
43
|
+
font-style: italic;
|
44
|
+
}
|
45
|
+
select.datetime {
|
46
|
+
float: left;
|
47
|
+
width: 100px;
|
48
|
+
margin-right: 3px;
|
49
|
+
}
|
50
|
+
select.date {
|
51
|
+
float: left;
|
52
|
+
width: 100px;
|
53
|
+
margin-right: 3px;
|
54
|
+
}
|
55
|
+
.help-block {
|
56
|
+
clear: left;
|
57
|
+
font-style: italic;
|
58
|
+
font-size: 10px;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
/* inline-label is for when we have non-CRUD forms that need non-breaking whitespace label text. */
|
63
|
+
.inline-label {
|
64
|
+
//font-weight: bold;
|
65
|
+
vertical-align: -20%;
|
66
|
+
display: inline-block;
|
67
|
+
}
|