Refresh stale CCS exam attempts
This commit is contained in:
@@ -112,7 +112,7 @@ public sealed class CcsCaseTests
|
|||||||
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,
|
Assert.Contains("cholesterol was high", topics.Single(value => value.Id == "past_medical_history").PatientText,
|
||||||
StringComparison.OrdinalIgnoreCase);
|
StringComparison.OrdinalIgnoreCase);
|
||||||
Assert.Equal(2, request.Cases.Single().GraphicalPresentation.InterviewRevision);
|
Assert.Equal(3, request.Cases.Single().GraphicalPresentation.InterviewRevision);
|
||||||
Assert.Equal("Hyperlipidemia", CcsStore.MedicalHistory(request.Cases.Single()));
|
Assert.Equal("Hyperlipidemia", CcsStore.MedicalHistory(request.Cases.Single()));
|
||||||
var exams = request.Cases.Single().Exams;
|
var exams = request.Cases.Single().Exams;
|
||||||
Assert.Equal([
|
Assert.Equal([
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
"graphicalPresentation": {
|
"graphicalPresentation": {
|
||||||
"sceneKey": "doctor_office",
|
"sceneKey": "doctor_office",
|
||||||
"patientAssetKey": "patient_44_white_male",
|
"patientAssetKey": "patient_44_white_male",
|
||||||
"interviewRevision": 2
|
"interviewRevision": 3
|
||||||
},
|
},
|
||||||
"initialChart": {
|
"initialChart": {
|
||||||
"patientSummary": "44-year-old man attending an office visit",
|
"patientSummary": "44-year-old man attending an office visit",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ const Style := preload("res://scripts/ui/ui_style.gd")
|
|||||||
const DOCTOR_SCENE := preload("res://scenes/ccs_cases_2/doctor_office.tscn")
|
const DOCTOR_SCENE := preload("res://scenes/ccs_cases_2/doctor_office.tscn")
|
||||||
const DESIGN_SIZE := Vector2(1600.0, 900.0)
|
const DESIGN_SIZE := Vector2(1600.0, 900.0)
|
||||||
const FOCUSED_INTERVIEW_CASE_ID := "ccs-gastro-duodenal-ulcer-office-001"
|
const FOCUSED_INTERVIEW_CASE_ID := "ccs-gastro-duodenal-ulcer-office-001"
|
||||||
const FOCUSED_INTERVIEW_REVISION := 2
|
const FOCUSED_INTERVIEW_REVISION := 3
|
||||||
|
|
||||||
var main
|
var main
|
||||||
var stage_root: Control
|
var stage_root: Control
|
||||||
@@ -340,7 +340,7 @@ func _restart_with_current_interview(attempt: Dictionary) -> void:
|
|||||||
return
|
return
|
||||||
restart_case_external_id = str(attempt.get("caseExternalId", ""))
|
restart_case_external_id = str(attempt.get("caseExternalId", ""))
|
||||||
pending_action = "refreshing_interview"
|
pending_action = "refreshing_interview"
|
||||||
_show_selection("Updating this interview to its latest patient history dialogue...")
|
_show_selection("Updating this case to the latest interactive examination...")
|
||||||
CCSService.abandon()
|
CCSService.abandon()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ func _run() -> void:
|
|||||||
_assert(screen._is_retired_interview_revision(retired_attempt, {
|
_assert(screen._is_retired_interview_revision(retired_attempt, {
|
||||||
"id": "fatigue_course", "patientText": "I feel tired.", "choices": []
|
"id": "fatigue_course", "patientText": "I feel tired.", "choices": []
|
||||||
}), "an older authored interview revision should trigger a restart")
|
}), "an older authored interview revision should trigger a restart")
|
||||||
retired_attempt.graphicalPresentation.interviewRevision = 2
|
retired_attempt.graphicalPresentation.interviewRevision = 3
|
||||||
_assert(not screen._is_retired_interview_revision(retired_attempt, {}),
|
_assert(not screen._is_retired_interview_revision(retired_attempt, {}),
|
||||||
"the current authored interview revision should remain active")
|
"the current authored interview revision should remain active")
|
||||||
|
|
||||||
@@ -288,7 +288,7 @@ func _sample_attempt(completed: bool) -> Dictionary:
|
|||||||
return {
|
return {
|
||||||
"id": "attempt-1", "state": "active", "revision": 1,
|
"id": "attempt-1", "state": "active", "revision": 1,
|
||||||
"simulatedStartUtc": "2026-08-05T09:00:00Z", "simulatedMinute": 0,
|
"simulatedStartUtc": "2026-08-05T09:00:00Z", "simulatedMinute": 0,
|
||||||
"graphicalPresentation": {"sceneKey": "doctor_office", "patientAssetKey": "patient_44_white_male", "interviewRevision": 2},
|
"graphicalPresentation": {"sceneKey": "doctor_office", "patientAssetKey": "patient_44_white_male", "interviewRevision": 3},
|
||||||
"medicalHistory": "Hyperlipidemia",
|
"medicalHistory": "Hyperlipidemia",
|
||||||
"vitals": {
|
"vitals": {
|
||||||
"temperature": "36.8 C (98.2 F)", "bloodPressure": "122/76 mm Hg",
|
"temperature": "36.8 C (98.2 F)", "bloodPressure": "122/76 mm Hg",
|
||||||
|
|||||||
Reference in New Issue
Block a user