{
    "task": [
        {
            "description": "$task.AutoUseSpMedication.description",
            "entry": "AutoUseSpMedicationEntry",
            "label": "$task.AutoUseSpMedication.label",
            "name": "AutoUseSpMedication",
            "group": [
                "utility"
            ],
            "option": [
                "UseRegularSpMedication",
                "UseAllExpireSoonSpMedication"
            ]
        }
    ],
    "option": {
        "UseRegularSpMedication": {
            "type": "switch",
            "description": "$option.UseRegularSpMedication.description",
            "label": "$option.UseRegularSpMedication.label",
            "default_case": "Yes",
            "cases": [
                {
                    "name": "Yes"
                },
                {
                    "name": "No",
                    "pipeline_override": {
                        "AutoUseSpMedicationChooseEmergencySanityBooster": {
                            "action": "DoNothing",
                            "next": [
                                "AutoUseSpMedicationSkipRegular"
                            ],
                            "focus": {
                                "Node.Action.Starting": "未选择使用应急药剂，跳过"
                            }
                        }
                    }
                }
            ]
        },
        "UseAllExpireSoonSpMedication": {
            "type": "switch",
            "description": "$option.UseAllExpireSoonMedication.description",
            "label": "$option.UseAllExpireSoonMedication.label",
            "default_case": "No",
            "cases": [
                {
                    "name": "No",
                    "pipeline_override": {
                        "AutoUseSpMedicationEntry": {
                            "anchor": {
                                "ValuableStashValuablesTabInNext": "AutoUseSpMedicationChooseEmergencySanityBooster",
                                "ValuableStashValuablesTabInNext2": "AutoUseSpMedicationUseNoEmergencySanityBooster",
                                "ValuableStashValuablesTabInNext3": "AutoUseSpMedicationUseNoEmergencySanityBooster"
                            }
                        }
                    }
                },
                {
                    "name": "Yes",
                    "pipeline_override": {
                        "AutoUseSpMedicationChooseEmergencySanityBoosterExpSoon": {
                            "next": [
                                "AutoUseSpMedicationIfExpireSoon",
                                "AutoUseSpMedicationCloseDetailNotExpSoon"
                            ]
                        }
                    }
                }
            ]
        }
    }
}
