|
@@ -60,6 +60,12 @@ class CreatePatientController extends FControllerBase
|
|
|
var jsonString = Routes.parameters['patientInfo'];
|
|
|
|
|
|
final parsedJson = json.decode(jsonString);
|
|
|
+
|
|
|
+
|
|
|
+ final bool? isVital = parsedJson['isVital'];
|
|
|
+ if (isVital != null) {
|
|
|
+ state.isVital = isVital;
|
|
|
+ }
|
|
|
|
|
|
final String? headImageUrl = parsedJson['headImage'];
|
|
|
if (headImageUrl != null) {
|
|
@@ -578,7 +584,9 @@ class CreatePatientController extends FControllerBase
|
|
|
adress: patientInfomationState.address,
|
|
|
|
|
|
|
|
|
- projectType: VitalProjectTypeEnum.VinnoHealth,
|
|
|
+ projectType: state.isVital
|
|
|
+ ? VitalProjectTypeEnum.VinnoHealth
|
|
|
+ : VitalProjectTypeEnum.VitalStation,
|
|
|
nationality: patientInfomationState.nation,
|
|
|
permanentResidenceAddress:
|
|
|
patientInfomationState.permanentResidenceAddress,
|