Refine CCS desktop shortcuts
This commit is contained in:
@@ -110,6 +110,8 @@ public sealed class CcsCaseTests
|
|||||||
Assert.All(topics.Where(value => value.Id is "relieving_factors" or "associated_gi" or "exposure_history"),
|
Assert.All(topics.Where(value => value.Id is "relieving_factors" or "associated_gi" or "exposure_history"),
|
||||||
value => Assert.Equal(["abdominal_character"], value.PrerequisiteTopicIds));
|
value => Assert.Equal(["abdominal_character"], value.PrerequisiteTopicIds));
|
||||||
Assert.False(topics.Single(value => value.Id == "past_medical_history").Required);
|
Assert.False(topics.Single(value => value.Id == "past_medical_history").Required);
|
||||||
|
Assert.Contains("cholesterol was high", topics.Single(value => value.Id == "past_medical_history").PatientText,
|
||||||
|
StringComparison.OrdinalIgnoreCase);
|
||||||
Assert.Equal(2, request.Cases.Single().GraphicalPresentation.InterviewRevision);
|
Assert.Equal(2, request.Cases.Single().GraphicalPresentation.InterviewRevision);
|
||||||
Assert.Equal("Hyperlipidemia", CcsStore.MedicalHistory(request.Cases.Single()));
|
Assert.Equal("Hyperlipidemia", CcsStore.MedicalHistory(request.Cases.Single()));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="#ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
|
||||||
|
<rect width="8" height="4" x="8" y="2" rx="1" ry="1"/>
|
||||||
|
<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/>
|
||||||
|
<path d="M12 11h4M12 16h4M8 11h.01M8 16h.01"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 379 B |
@@ -0,0 +1,43 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://cj8q5fugoyfhq"
|
||||||
|
path="res://.godot/imported/medical-history.svg-8cd75462cd9d8822133509e0f23e2799.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/ccs_cases_2/icons/medical-history.svg"
|
||||||
|
dest_files=["res://.godot/imported/medical-history.svg-8cd75462cd9d8822133509e0f23e2799.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=false
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="#ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
|
||||||
|
<path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.29 1.51 4.04 3 5.5l7 7Z"/>
|
||||||
|
<path d="M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 394 B |
@@ -0,0 +1,43 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://b8juqb8k774q4"
|
||||||
|
path="res://.godot/imported/vitals.svg-aeab46849d322f67e09ecb738933ea93.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/ccs_cases_2/icons/vitals.svg"
|
||||||
|
dest_files=["res://.godot/imported/vitals.svg-aeab46849d322f67e09ecb738933ea93.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/uastc_level=0
|
||||||
|
compress/rdo_quality_loss=0.0
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/channel_remap/red=0
|
||||||
|
process/channel_remap/green=1
|
||||||
|
process/channel_remap/blue=2
|
||||||
|
process/channel_remap/alpha=3
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
||||||
|
svg/scale=1.0
|
||||||
|
editor/scale_with_editor_scale=false
|
||||||
|
editor/convert_colors_with_editor_theme=false
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
{
|
{
|
||||||
"id": "past_medical_history",
|
"id": "past_medical_history",
|
||||||
"clinicianText": "Do you have any past medical conditions?",
|
"clinicianText": "Do you have any past medical conditions?",
|
||||||
"patientText": "I have hyperlipidemia.",
|
"patientText": "A few years ago, my doctor told me my cholesterol was high. Other than that, I have not been diagnosed with any major medical problems.",
|
||||||
"required": false,
|
"required": false,
|
||||||
"prerequisiteTopicIds": ["chief_concern"]
|
"prerequisiteTopicIds": ["chief_concern"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
[ext_resource type="Texture2D" path="res://assets/ccs_cases_2/images/computer/computer-base.png" id="7_computer"]
|
[ext_resource type="Texture2D" path="res://assets/ccs_cases_2/images/computer/computer-base.png" id="7_computer"]
|
||||||
[ext_resource type="Texture2D" path="res://assets/icons/lucide/monitor.svg" id="8_monitor"]
|
[ext_resource type="Texture2D" path="res://assets/icons/lucide/monitor.svg" id="8_monitor"]
|
||||||
[ext_resource type="Texture2D" path="res://assets/icons/lucide/x.svg" id="9_close"]
|
[ext_resource type="Texture2D" path="res://assets/icons/lucide/x.svg" id="9_close"]
|
||||||
[ext_resource type="Texture2D" path="res://assets/icons/lucide/heart-pulse.svg" id="10_vitals"]
|
[ext_resource type="Texture2D" path="res://assets/ccs_cases_2/icons/vitals.svg" id="10_vitals"]
|
||||||
[ext_resource type="Texture2D" path="res://assets/icons/lucide/clipboard-list.svg" id="11_history"]
|
[ext_resource type="Texture2D" path="res://assets/ccs_cases_2/icons/medical-history.svg" id="11_history"]
|
||||||
|
|
||||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_patient_fit"]
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_patient_fit"]
|
||||||
shader = ExtResource("5_patient_fit")
|
shader = ExtResource("5_patient_fit")
|
||||||
@@ -281,9 +281,8 @@ offset_top = 32.0
|
|||||||
offset_right = 142.0
|
offset_right = 142.0
|
||||||
offset_bottom = 138.0
|
offset_bottom = 138.0
|
||||||
mouse_default_cursor_shape = 2
|
mouse_default_cursor_shape = 2
|
||||||
tooltip_text = "View nurse vital signs"
|
|
||||||
icon = ExtResource("10_vitals")
|
icon = ExtResource("10_vitals")
|
||||||
icon_max_width = 48
|
icon_max_width = 58
|
||||||
expand_icon = true
|
expand_icon = true
|
||||||
icon_alignment = 1
|
icon_alignment = 1
|
||||||
vertical_icon_alignment = 0
|
vertical_icon_alignment = 0
|
||||||
@@ -299,9 +298,8 @@ grow_horizontal = 2
|
|||||||
grow_vertical = 0
|
grow_vertical = 0
|
||||||
mouse_filter = 2
|
mouse_filter = 2
|
||||||
theme_override_colors/font_color = Color(0.96, 0.98, 1, 1)
|
theme_override_colors/font_color = Color(0.96, 0.98, 1, 1)
|
||||||
theme_override_colors/font_shadow_color = Color(0.01, 0.04, 0.07, 0.9)
|
theme_override_colors/font_outline_color = Color(0.01, 0.04, 0.07, 0.95)
|
||||||
theme_override_constants/shadow_offset_x = 1
|
theme_override_constants/outline_size = 4
|
||||||
theme_override_constants/shadow_offset_y = 2
|
|
||||||
theme_override_font_sizes/font_size = 17
|
theme_override_font_sizes/font_size = 17
|
||||||
text = "Vitals"
|
text = "Vitals"
|
||||||
horizontal_alignment = 1
|
horizontal_alignment = 1
|
||||||
@@ -309,14 +307,13 @@ vertical_alignment = 1
|
|||||||
|
|
||||||
[node name="MedicalHistoryLauncher" type="Button" parent="ComputerOverlay"]
|
[node name="MedicalHistoryLauncher" type="Button" parent="ComputerOverlay"]
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = 158.0
|
offset_left = 30.0
|
||||||
offset_top = 32.0
|
offset_top = 154.0
|
||||||
offset_right = 294.0
|
offset_right = 166.0
|
||||||
offset_bottom = 138.0
|
offset_bottom = 260.0
|
||||||
mouse_default_cursor_shape = 2
|
mouse_default_cursor_shape = 2
|
||||||
tooltip_text = "View medical history"
|
|
||||||
icon = ExtResource("11_history")
|
icon = ExtResource("11_history")
|
||||||
icon_max_width = 48
|
icon_max_width = 58
|
||||||
expand_icon = true
|
expand_icon = true
|
||||||
icon_alignment = 1
|
icon_alignment = 1
|
||||||
vertical_icon_alignment = 0
|
vertical_icon_alignment = 0
|
||||||
@@ -332,9 +329,8 @@ grow_horizontal = 2
|
|||||||
grow_vertical = 0
|
grow_vertical = 0
|
||||||
mouse_filter = 2
|
mouse_filter = 2
|
||||||
theme_override_colors/font_color = Color(0.96, 0.98, 1, 1)
|
theme_override_colors/font_color = Color(0.96, 0.98, 1, 1)
|
||||||
theme_override_colors/font_shadow_color = Color(0.01, 0.04, 0.07, 0.9)
|
theme_override_colors/font_outline_color = Color(0.01, 0.04, 0.07, 0.95)
|
||||||
theme_override_constants/shadow_offset_x = 1
|
theme_override_constants/outline_size = 4
|
||||||
theme_override_constants/shadow_offset_y = 2
|
|
||||||
theme_override_font_sizes/font_size = 16
|
theme_override_font_sizes/font_size = 16
|
||||||
text = "Medical History"
|
text = "Medical History"
|
||||||
horizontal_alignment = 1
|
horizontal_alignment = 1
|
||||||
|
|||||||
@@ -93,6 +93,8 @@ func _run() -> void:
|
|||||||
_assert(screen.active_scene.vitals_launcher.text.is_empty() and screen.active_scene.medical_history_launcher.text.is_empty(), "desktop shortcuts should place labels below centered icons")
|
_assert(screen.active_scene.vitals_launcher.text.is_empty() and screen.active_scene.medical_history_launcher.text.is_empty(), "desktop shortcuts should place labels below centered icons")
|
||||||
_assert(screen.active_scene.vitals_launcher.get_node("Label").text == "Vitals" and screen.active_scene.medical_history_launcher.get_node("Label").text == "Medical History", "desktop shortcut labels should remain readable")
|
_assert(screen.active_scene.vitals_launcher.get_node("Label").text == "Vitals" and screen.active_scene.medical_history_launcher.get_node("Label").text == "Medical History", "desktop shortcut labels should remain readable")
|
||||||
_assert(screen.active_scene.vitals_launcher.get_theme_stylebox("normal") is StyleBoxEmpty and screen.active_scene.medical_history_launcher.get_theme_stylebox("normal") is StyleBoxEmpty, "desktop shortcuts should not render permanent button tiles")
|
_assert(screen.active_scene.vitals_launcher.get_theme_stylebox("normal") is StyleBoxEmpty and screen.active_scene.medical_history_launcher.get_theme_stylebox("normal") is StyleBoxEmpty, "desktop shortcuts should not render permanent button tiles")
|
||||||
|
_assert(screen.active_scene.medical_history_launcher.position.y > screen.active_scene.vitals_launcher.get_rect().end.y, "desktop shortcuts should form a vertical icon column")
|
||||||
|
_assert(screen.active_scene.vitals_launcher.icon.get_width() >= 58 and screen.active_scene.medical_history_launcher.icon.get_width() >= 58, "desktop shortcuts should use high-resolution vector imports")
|
||||||
screen.active_scene.vitals_launcher.pressed.emit()
|
screen.active_scene.vitals_launcher.pressed.emit()
|
||||||
_assert(screen.active_scene.is_vitals_open(), "the Vitals app should open a nurse vital-sign window")
|
_assert(screen.active_scene.is_vitals_open(), "the Vitals app should open a nurse vital-sign window")
|
||||||
_assert(screen.active_scene.vitals_header.get_node("Title").text == "Vitals", "the vital window should use the concise Vitals heading")
|
_assert(screen.active_scene.vitals_header.get_node("Title").text == "Vitals", "the vital window should use the concise Vitals heading")
|
||||||
|
|||||||
Reference in New Issue
Block a user