MDS changes done.

update_flutter_3.24_vida_plus_episode_MDS
sultan khan 12 months ago
parent 90d4818604
commit aed098e30b

@ -155,6 +155,7 @@ class AdmissionRequest {
admissionRequestNo = json['admissionRequestNo']; admissionRequestNo = json['admissionRequestNo'];
morphologyCode = json['morphologyCode']; morphologyCode = json['morphologyCode'];
morphologyDescription = json['morphologyDescription']; morphologyDescription = json['morphologyDescription'];
expectedAdmissionDate =json['expectedAdmissionDate'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@ -209,6 +210,7 @@ class AdmissionRequest {
data['intendedLengthOfStayId'] = this.intendedLengthOfStayId; data['intendedLengthOfStayId'] = this.intendedLengthOfStayId;
data['morphologyDescription'] = this.morphologyDescription; data['morphologyDescription'] = this.morphologyDescription;
data['morphologyCode'] = this.morphologyCode; data['morphologyCode'] = this.morphologyCode;
data['expectedAdmissionDate'] =this.expectedAdmissionDate;
return data; return data;
} }
} }

@ -184,9 +184,7 @@ class SOAPService extends LookupService {
Future postAssessment( Future postAssessment(
PostAssessmentRequestModel postAssessmentRequestModel) async { PostAssessmentRequestModel postAssessmentRequestModel) async {
var request = {
'AssessmenttRequestViewModel':postAssessmentRequestModel.toJson()
};
hasError = false; hasError = false;
await baseAppClient.post(POST_ASSESSMENT, await baseAppClient.post(POST_ASSESSMENT,
onSuccess: (dynamic response, int statusCode) { onSuccess: (dynamic response, int statusCode) {
@ -194,7 +192,7 @@ class SOAPService extends LookupService {
}, onFailure: (String error, int statusCode) { }, onFailure: (String error, int statusCode) {
hasError = true; hasError = true;
super.error = error; super.error = error;
}, body: request ); }, body: postAssessmentRequestModel.toJson() );
} }
Future patchAllergy(PostAllergyRequestModel patchAllergyRequestModel) async { Future patchAllergy(PostAllergyRequestModel patchAllergyRequestModel) async {
@ -1573,7 +1571,7 @@ class SOAPService extends LookupService {
hasError = true; hasError = true;
super.error = error; super.error = error;
return false; return false;
}, body: {"selectedIcdCode": "C00.0"}); //icd10Code commented for testing }, body: {"selectedIcdCode":icd10Code}); // commented for testing
} }
Future getMorphologyDiagnosis() async { Future getMorphologyDiagnosis() async {

@ -339,7 +339,6 @@ class _AdmissionRequestThirdScreenState extends State<AdmissionRequestFirstScree
model.admissionRequestData = AdmissionRequest(); model.admissionRequestData = AdmissionRequest();
if (_selectedClinic != null && if (_selectedClinic != null &&
_selectedDoctor != null && _selectedDoctor != null &&
_sickLeaveCommentsController.text != "" &&
_postMedicalHistoryController.text != "" && _postMedicalHistoryController.text != "" &&
_postSurgicalHistoryController.text != "") { _postSurgicalHistoryController.text != "") {
model.admissionRequestData.patientMRN = patient.patientMRN; model.admissionRequestData.patientMRN = patient.patientMRN;

@ -252,7 +252,7 @@ class _AdmissionRequestSecondScreenState
dropDownText: dropDownText:
_selectedIntendedStayLength != null _selectedIntendedStayLength != null
? _selectedIntendedStayLength['nameEn'] ? _selectedIntendedStayLength['nameEn']
: model.intendedStayLength.first['nameEn'], : "",
enabled: false, enabled: false,
isTextFieldHasSuffix: true, isTextFieldHasSuffix: true,
validationError: stayLengthError, validationError: stayLengthError,

@ -166,10 +166,12 @@ class _AdmissionRequestThirdScreenState extends State<AdmissionRequestThirdScree
await model.getICDCodes(patient.patientMRN!).then((_) => GifLoaderDialogUtils.hideDialog(context)); await model.getICDCodes(patient.patientMRN!).then((_) => GifLoaderDialogUtils.hideDialog(context));
if (model.state == ViewState.Idle && model.icdCodes.length > 0) { if (model.state == ViewState.Idle && model.icdCodes.length > 0) {
openListDialogField('description', 'code', model.icdCodes, (selectedValue) { openListDialogField('description', 'code', model.icdCodes, (selectedValue) {
GifLoaderDialogUtils.showMyDialog(context);
soapModel.getMorphologyDiagnosis(selectedValue['code'] soapModel.getMorphologyDiagnosis(selectedValue['code']
.toString() .toString()
.trim()); .trim());
setState(() { setState(() {
GifLoaderDialogUtils.hideDialog(context);
_selectedIcd = selectedValue; _selectedIcd = selectedValue;
}); });
}); });
@ -408,7 +410,7 @@ class _AdmissionRequestThirdScreenState extends State<AdmissionRequestThirdScree
model.admissionRequestData.diagnosis = "${_selectedIcd['code']} : ${_selectedIcd['description']}; "; model.admissionRequestData.diagnosis = "${_selectedIcd['code']} : ${_selectedIcd['description']}; ";
model.admissionRequestData!.admissionRequestDiagnoses = admissionRequestDiagnoses; model.admissionRequestData!.admissionRequestDiagnoses = admissionRequestDiagnoses;
model.admissionRequestData!.morphologyCode = morphologyCode; model.admissionRequestData!.morphologyCode = morphologyCode.toString();
model.admissionRequestData!.morphologyDescription = morphologyController.text; model.admissionRequestData!.morphologyDescription = morphologyController.text;
await model.makeAdmissionRequest(); await model.makeAdmissionRequest();

Loading…
Cancel
Save