|
|
|
@ -258,7 +258,7 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>
|
|
|
|
onPressed: () async {
|
|
|
|
onPressed: () async {
|
|
|
|
if ((isFromLiveCare &&
|
|
|
|
if ((isFromLiveCare &&
|
|
|
|
patient.appointmentNo != null) ||
|
|
|
|
patient.appointmentNo != null) ||
|
|
|
|
patient.patientStatusType == 43) {
|
|
|
|
patient.patientStatusType == 43 || isInpatient ) {
|
|
|
|
createEpisode(
|
|
|
|
createEpisode(
|
|
|
|
patient: patient, model: model);
|
|
|
|
patient: patient, model: model);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -425,7 +425,7 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>
|
|
|
|
eventAction: "Create Episode",
|
|
|
|
eventAction: "Create Episode",
|
|
|
|
);
|
|
|
|
);
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
if (patient.admissionNo == null || patient.admissionNo.isNotEmpty) {
|
|
|
|
if (patient.admissionNo != null && patient.admissionNo.isNotEmpty) {
|
|
|
|
PostEpisodeForInpatientRequestModel postEpisodeReqModel =
|
|
|
|
PostEpisodeForInpatientRequestModel postEpisodeReqModel =
|
|
|
|
PostEpisodeForInpatientRequestModel(
|
|
|
|
PostEpisodeForInpatientRequestModel(
|
|
|
|
admissionNo: int.parse(patient.admissionNo),
|
|
|
|
admissionNo: int.parse(patient.admissionNo),
|
|
|
|
|