|
|
|
@ -25,14 +25,15 @@ postProcedure(
|
|
|
|
|
PatiantInformtion patient,
|
|
|
|
|
List<EntityList> entityList}) async {
|
|
|
|
|
PostProcedureReqModel postProcedureReqModel = new PostProcedureReqModel();
|
|
|
|
|
List<Controls> controls = List();
|
|
|
|
|
List<Procedures> controlsProcedure = List();
|
|
|
|
|
|
|
|
|
|
postProcedureReqModel.appointmentNo = patient.appointmentNo;
|
|
|
|
|
|
|
|
|
|
postProcedureReqModel.episodeID = patient.episodeNo;
|
|
|
|
|
postProcedureReqModel.patientMRN = patient.patientMRN;
|
|
|
|
|
|
|
|
|
|
entityList.forEach((element) {
|
|
|
|
|
List<Controls> controls = List();
|
|
|
|
|
controls.add(
|
|
|
|
|
Controls(
|
|
|
|
|
code: "remarks",
|
|
|
|
@ -41,16 +42,13 @@ postProcedure(
|
|
|
|
|
controls.add(
|
|
|
|
|
Controls(code: "ordertype", controlValue: element.type),
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
entityList.forEach((element) {
|
|
|
|
|
controlsProcedure.add(Procedures(
|
|
|
|
|
category: element.categoryID,
|
|
|
|
|
procedure: element.procedureId,
|
|
|
|
|
controls: controls));
|
|
|
|
|
});
|
|
|
|
|
postProcedureReqModel.procedures = controlsProcedure;
|
|
|
|
|
|
|
|
|
|
postProcedureReqModel.procedures = controlsProcedure;
|
|
|
|
|
await model.postProcedure(postProcedureReqModel, patient.patientMRN);
|
|
|
|
|
|
|
|
|
|
if (model.state == ViewState.ErrorLocal) {
|
|
|
|
|