merge-requests/289/head
hussam al-habibeh 5 years ago
parent 9b5899d4e6
commit 29de472c66

@ -169,6 +169,7 @@ class Consulations {
List<LstPhysicalExam> lstPhysicalExam;
List<LstProcedure> lstProcedure;
List<LstMedicalHistory> lstMedicalHistory;
List<LstCheifComplaint> lstCheifComplaint;
Consulations(
{this.admissionNo,
@ -194,7 +195,8 @@ class Consulations {
this.lstAssessments,
this.lstPhysicalExam,
this.lstProcedure,
this.lstMedicalHistory});
this.lstMedicalHistory,
this.lstCheifComplaint});
Consulations.fromJson(Map<String, dynamic> json) {
admissionNo = json['AdmissionNo'];
@ -223,6 +225,12 @@ class Consulations {
lstAssessments.add(new LstAssessments.fromJson(v));
});
}
if (json['lstCheifComplaint'] != null) {
lstCheifComplaint = new List<LstCheifComplaint>();
json['lstCheifComplaint'].forEach((v) {
lstCheifComplaint.add(new LstCheifComplaint.fromJson(v));
});
}
if (json['lstPhysicalExam'] != null) {
lstPhysicalExam = new List<LstPhysicalExam>();
json['lstPhysicalExam'].forEach((v) {
@ -269,6 +277,10 @@ class Consulations {
data['lstAssessments'] =
this.lstAssessments.map((v) => v.toJson()).toList();
}
if (this.lstCheifComplaint != null) {
data['lstCheifComplaint'] =
this.lstCheifComplaint.map((v) => v.toJson()).toList();
}
if (this.lstPhysicalExam != null) {
data['lstPhysicalExam'] =
this.lstPhysicalExam.map((v) => v.toJson()).toList();
@ -284,6 +296,67 @@ class Consulations {
}
}
class LstCheifComplaint {
int appointmentNo;
String cCDate;
String chiefComplaint;
String currentMedication;
int episodeID;
String hOPI;
int patientID;
String patientType;
int projectID;
String projectName;
String setupID;
String dispalyName;
LstCheifComplaint(
{this.appointmentNo,
this.cCDate,
this.chiefComplaint,
this.currentMedication,
this.episodeID,
this.hOPI,
this.patientID,
this.patientType,
this.projectID,
this.projectName,
this.setupID,
this.dispalyName});
LstCheifComplaint.fromJson(Map<String, dynamic> json) {
appointmentNo = json['AppointmentNo'];
cCDate = json['CCDate'];
chiefComplaint = json['ChiefComplaint'];
currentMedication = json['CurrentMedication'];
episodeID = json['EpisodeID'];
hOPI = json['HOPI'];
patientID = json['PatientID'];
patientType = json['PatientType'];
projectID = json['ProjectID'];
projectName = json['ProjectName'];
setupID = json['SetupID'];
dispalyName = json['dispalyName'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['AppointmentNo'] = this.appointmentNo;
data['CCDate'] = this.cCDate;
data['ChiefComplaint'] = this.chiefComplaint;
data['CurrentMedication'] = this.currentMedication;
data['EpisodeID'] = this.episodeID;
data['HOPI'] = this.hOPI;
data['PatientID'] = this.patientID;
data['PatientType'] = this.patientType;
data['ProjectID'] = this.projectID;
data['ProjectName'] = this.projectName;
data['SetupID'] = this.setupID;
data['dispalyName'] = this.dispalyName;
return data;
}
}
class LstAssessments {
int appointmentNo;
String condition;

@ -188,16 +188,18 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
.consulations
.length !=
0)
AppText(
model
.medicalFileList[0]
.entityList[0]
.timelines[encounterNumber]
.timeLineEvents[0]
.consulations[0]
.doctorName
.toUpperCase(),
fontWeight: FontWeight.w700,
Expanded(
child: AppText(
model
.medicalFileList[0]
.entityList[0]
.timelines[encounterNumber]
.timeLineEvents[0]
.consulations[0]
.doctorName
.toUpperCase(),
fontWeight: FontWeight.w700,
),
),
],
),
@ -315,7 +317,7 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
.timelines[encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstMedicalHistory
.lstCheifComplaint
.length,
itemBuilder:
(BuildContext ctxt, int index) {
@ -338,9 +340,9 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstMedicalHistory[
.lstCheifComplaint[
index]
.history
.hOPI
.trim(),
),
),
@ -795,7 +797,7 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
.consulations[0]
.lstPhysicalExam[
index]
.examType),
.examDesc),
],
),
Row(

@ -946,7 +946,7 @@ class _NewPrescriptionScreenState extends State<NewPrescriptionScreen> {
: null,
child: TextField(
decoration: textFieldSelectorDecoration(
TranslationBase.of(context).route,
'Route',
route != null
? route['name']
: null,
@ -1181,6 +1181,13 @@ class _NewPrescriptionScreenState extends State<NewPrescriptionScreen> {
});
}
// String getName(String num) {
// dynamic x = routeList.where((i) {
// return i['id'] == int.parse(num);
// }).first();
// return x.toString();
// }
updatePrescription(
{PrescriptionViewModel model,
int drugId,

Loading…
Cancel
Save