CLINICAL: Step에 부가 설명 추가 (치골 위로 N cm)
ClinicalStep enum에 description 필드 추가하고 ClinicalHomeView에서 선택된 Step의 설명을 segmented control 아래에 표시. 설명: - ALIGN_0CM: 기기 아래 끝이 치골 바로 위 - ALIGN_1CM ~ 4CM: 치골 위로 N cm - BV: Cradle 부착 후 본측정 UI 표시 위치: Step 라디오 그룹 바로 아래 한 줄, MlPrimary 색상 + 화살표(→). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -26,16 +26,16 @@ enum class ClinicalPosture(val label: String) {
|
||||
|
||||
/**
|
||||
* 측정 단계.
|
||||
* - ALIGN_0CM ~ ALIGN_4CM: 정렬모드 알고리즘 개발용 (치골 위 0~4cm)
|
||||
* - ALIGN_0CM ~ ALIGN_4CM: 정렬모드 알고리즘 개발용 (기기 아래 끝 기준 치골 위 0~4cm)
|
||||
* - BV: cradle 부착 후 본측정 (방광 추정 알고리즘 개발용)
|
||||
*/
|
||||
enum class ClinicalStep(val label: String, val isAlignment: Boolean) {
|
||||
ALIGN_0CM("0 cm", true),
|
||||
ALIGN_1CM("1 cm", true),
|
||||
ALIGN_2CM("2 cm", true),
|
||||
ALIGN_3CM("3 cm", true),
|
||||
ALIGN_4CM("4 cm", true),
|
||||
BV("BV", false)
|
||||
enum class ClinicalStep(val label: String, val description: String, val isAlignment: Boolean) {
|
||||
ALIGN_0CM("0 cm", "기기 아래 끝이 치골 바로 위", true),
|
||||
ALIGN_1CM("1 cm", "치골 위로 1 cm", true),
|
||||
ALIGN_2CM("2 cm", "치골 위로 2 cm", true),
|
||||
ALIGN_3CM("3 cm", "치골 위로 3 cm", true),
|
||||
ALIGN_4CM("4 cm", "치골 위로 4 cm", true),
|
||||
BV("BV", "Cradle 부착 후 본측정", false)
|
||||
}
|
||||
|
||||
data class ClinicalSession(
|
||||
|
||||
@@ -147,6 +147,15 @@ fun ClinicalHomeView(appState: AppState) {
|
||||
Spacer(modifier = Modifier.height(12.dp))
|
||||
|
||||
LabeledSegmented("Step", ClinicalStep.values().toList(), step, { step = it }) { it.label }
|
||||
Spacer(modifier = Modifier.height(4.dp))
|
||||
// 선택된 Step의 부가 설명 (치골 위로 N cm 등)
|
||||
Text(
|
||||
"→ ${step.description}",
|
||||
fontSize = 12.sp,
|
||||
color = MlPrimary,
|
||||
fontWeight = FontWeight.SemiBold,
|
||||
modifier = Modifier.padding(start = 4.dp)
|
||||
)
|
||||
Spacer(modifier = Modifier.height(12.dp))
|
||||
|
||||
OutlinedTextField(
|
||||
|
||||
Reference in New Issue
Block a user