|
@@ -60,6 +60,12 @@ class CreatePatientController extends FControllerBase
|
|
|
var jsonString = Routes.parameters['patientInfo'];
|
|
|
// 解析 JSON 字符串并转换为 Map
|
|
|
final parsedJson = json.decode(jsonString);
|
|
|
+
|
|
|
+//获取“isVital”字段的值
|
|
|
+ final bool? isVital = parsedJson['isVital'];
|
|
|
+ if (isVital != null) {
|
|
|
+ state.isVital = isVital;
|
|
|
+ }
|
|
|
// 获取 'headImage' 字段的值
|
|
|
final String? headImageUrl = parsedJson['headImage'];
|
|
|
if (headImageUrl != null) {
|
|
@@ -578,7 +584,9 @@ class CreatePatientController extends FControllerBase
|
|
|
adress: patientInfomationState.address,
|
|
|
|
|
|
///TODO(Loki):这里projectType这个页面无法区分,且这个字段接口中不可为空,故而先用一个默认值
|
|
|
- projectType: VitalProjectTypeEnum.VinnoHealth,
|
|
|
+ projectType: state.isVital
|
|
|
+ ? VitalProjectTypeEnum.VinnoHealth
|
|
|
+ : VitalProjectTypeEnum.VitalStation,
|
|
|
nationality: patientInfomationState.nation,
|
|
|
permanentResidenceAddress:
|
|
|
patientInfomationState.permanentResidenceAddress,
|