|
|
|
|
@ -1,14 +1,14 @@
|
|
|
|
|
class MedicalFileModel {
|
|
|
|
|
List<EntityList> entityList;
|
|
|
|
|
List<EntityList>? entityList;
|
|
|
|
|
dynamic statusMessage;
|
|
|
|
|
|
|
|
|
|
MedicalFileModel({this.entityList, this.statusMessage});
|
|
|
|
|
|
|
|
|
|
MedicalFileModel.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
if (json['entityList'] != null) {
|
|
|
|
|
entityList = new List<EntityList>();
|
|
|
|
|
entityList = [];
|
|
|
|
|
json['entityList'].forEach((v) {
|
|
|
|
|
entityList.add(new EntityList.fromJson(v));
|
|
|
|
|
entityList!.add(new EntityList.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
statusMessage = json['statusMessage'];
|
|
|
|
|
@ -17,7 +17,7 @@ class MedicalFileModel {
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
if (this.entityList != null) {
|
|
|
|
|
data['entityList'] = this.entityList.map((v) => v.toJson()).toList();
|
|
|
|
|
data['entityList'] = this.entityList!.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
data['statusMessage'] = this.statusMessage;
|
|
|
|
|
return data;
|
|
|
|
|
@ -25,15 +25,15 @@ class MedicalFileModel {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class EntityList {
|
|
|
|
|
List<Timelines> timelines;
|
|
|
|
|
List<Timelines>? timelines;
|
|
|
|
|
|
|
|
|
|
EntityList({this.timelines});
|
|
|
|
|
|
|
|
|
|
EntityList.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
if (json['Timelines'] != null) {
|
|
|
|
|
timelines = new List<Timelines>();
|
|
|
|
|
timelines = [];
|
|
|
|
|
json['Timelines'].forEach((v) {
|
|
|
|
|
timelines.add(new Timelines.fromJson(v));
|
|
|
|
|
timelines!.add(new Timelines.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -41,25 +41,25 @@ class EntityList {
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
if (this.timelines != null) {
|
|
|
|
|
data['Timelines'] = this.timelines.map((v) => v.toJson()).toList();
|
|
|
|
|
data['Timelines'] = this.timelines!.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class Timelines {
|
|
|
|
|
int clinicId;
|
|
|
|
|
String clinicName;
|
|
|
|
|
String date;
|
|
|
|
|
int doctorId;
|
|
|
|
|
String doctorImage;
|
|
|
|
|
String doctorName;
|
|
|
|
|
int encounterNumber;
|
|
|
|
|
String encounterType;
|
|
|
|
|
int projectID;
|
|
|
|
|
String projectName;
|
|
|
|
|
String setupID;
|
|
|
|
|
List<TimeLineEvents> timeLineEvents;
|
|
|
|
|
int? clinicId;
|
|
|
|
|
String? clinicName;
|
|
|
|
|
String? date;
|
|
|
|
|
int? doctorId;
|
|
|
|
|
String? doctorImage;
|
|
|
|
|
String? doctorName;
|
|
|
|
|
int? encounterNumber;
|
|
|
|
|
String? encounterType;
|
|
|
|
|
int? projectID;
|
|
|
|
|
String? projectName;
|
|
|
|
|
String? setupID;
|
|
|
|
|
List<TimeLineEvents>? timeLineEvents;
|
|
|
|
|
|
|
|
|
|
Timelines(
|
|
|
|
|
{this.clinicId,
|
|
|
|
|
@ -88,9 +88,9 @@ class Timelines {
|
|
|
|
|
projectName = json['ProjectName'];
|
|
|
|
|
setupID = json['SetupID'];
|
|
|
|
|
if (json['TimeLineEvents'] != null) {
|
|
|
|
|
timeLineEvents = new List<TimeLineEvents>();
|
|
|
|
|
timeLineEvents = [];
|
|
|
|
|
json['TimeLineEvents'].forEach((v) {
|
|
|
|
|
timeLineEvents.add(new TimeLineEvents.fromJson(v));
|
|
|
|
|
timeLineEvents!.add(new TimeLineEvents.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -110,25 +110,25 @@ class Timelines {
|
|
|
|
|
data['SetupID'] = this.setupID;
|
|
|
|
|
if (this.timeLineEvents != null) {
|
|
|
|
|
data['TimeLineEvents'] =
|
|
|
|
|
this.timeLineEvents.map((v) => v.toJson()).toList();
|
|
|
|
|
this.timeLineEvents!.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class TimeLineEvents {
|
|
|
|
|
List<Null> admissions;
|
|
|
|
|
String colorClass;
|
|
|
|
|
List<Consulations> consulations;
|
|
|
|
|
List<dynamic>? admissions;
|
|
|
|
|
String? colorClass;
|
|
|
|
|
List<Consulations>? consulations;
|
|
|
|
|
|
|
|
|
|
TimeLineEvents({this.admissions, this.colorClass, this.consulations});
|
|
|
|
|
|
|
|
|
|
TimeLineEvents.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
colorClass = json['ColorClass'];
|
|
|
|
|
if (json['Consulations'] != null) {
|
|
|
|
|
consulations = new List<Consulations>();
|
|
|
|
|
consulations = [];
|
|
|
|
|
json['Consulations'].forEach((v) {
|
|
|
|
|
consulations.add(new Consulations.fromJson(v));
|
|
|
|
|
consulations!.add(new Consulations.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -138,38 +138,38 @@ class TimeLineEvents {
|
|
|
|
|
|
|
|
|
|
data['ColorClass'] = this.colorClass;
|
|
|
|
|
if (this.consulations != null) {
|
|
|
|
|
data['Consulations'] = this.consulations.map((v) => v.toJson()).toList();
|
|
|
|
|
data['Consulations'] = this.consulations!.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class Consulations {
|
|
|
|
|
int admissionNo;
|
|
|
|
|
String appointmentDate;
|
|
|
|
|
int appointmentNo;
|
|
|
|
|
String appointmentType;
|
|
|
|
|
String clinicID;
|
|
|
|
|
String clinicName;
|
|
|
|
|
int doctorID;
|
|
|
|
|
String doctorName;
|
|
|
|
|
String endTime;
|
|
|
|
|
String episodeDate;
|
|
|
|
|
int episodeID;
|
|
|
|
|
int patientID;
|
|
|
|
|
int projectID;
|
|
|
|
|
String projectName;
|
|
|
|
|
String remarks;
|
|
|
|
|
String setupID;
|
|
|
|
|
String startTime;
|
|
|
|
|
String visitFor;
|
|
|
|
|
String visitType;
|
|
|
|
|
String dispalyName;
|
|
|
|
|
List<LstAssessments> lstAssessments;
|
|
|
|
|
List<LstPhysicalExam> lstPhysicalExam;
|
|
|
|
|
List<LstProcedure> lstProcedure;
|
|
|
|
|
List<LstMedicalHistory> lstMedicalHistory;
|
|
|
|
|
List<LstCheifComplaint> lstCheifComplaint;
|
|
|
|
|
int? admissionNo;
|
|
|
|
|
String? appointmentDate;
|
|
|
|
|
int? appointmentNo;
|
|
|
|
|
String? appointmentType;
|
|
|
|
|
String? clinicID;
|
|
|
|
|
String? clinicName;
|
|
|
|
|
int? doctorID;
|
|
|
|
|
String? doctorName;
|
|
|
|
|
String? endTime;
|
|
|
|
|
String? episodeDate;
|
|
|
|
|
int? episodeID;
|
|
|
|
|
int? patientID;
|
|
|
|
|
int? projectID;
|
|
|
|
|
String? projectName;
|
|
|
|
|
String? remarks;
|
|
|
|
|
String? setupID;
|
|
|
|
|
String? startTime;
|
|
|
|
|
String? visitFor;
|
|
|
|
|
String? visitType;
|
|
|
|
|
String? dispalyName;
|
|
|
|
|
List<LstAssessments>? lstAssessments;
|
|
|
|
|
List<LstPhysicalExam>? lstPhysicalExam;
|
|
|
|
|
List<LstProcedure>? lstProcedure;
|
|
|
|
|
List<LstMedicalHistory>? lstMedicalHistory;
|
|
|
|
|
List<LstCheifComplaint>? lstCheifComplaint;
|
|
|
|
|
|
|
|
|
|
Consulations(
|
|
|
|
|
{this.admissionNo,
|
|
|
|
|
@ -220,33 +220,33 @@ class Consulations {
|
|
|
|
|
visitType = json['VisitType'];
|
|
|
|
|
dispalyName = json['dispalyName'];
|
|
|
|
|
if (json['lstAssessments'] != null) {
|
|
|
|
|
lstAssessments = new List<LstAssessments>();
|
|
|
|
|
lstAssessments = [];
|
|
|
|
|
json['lstAssessments'].forEach((v) {
|
|
|
|
|
lstAssessments.add(new LstAssessments.fromJson(v));
|
|
|
|
|
lstAssessments!.add(new LstAssessments.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (json['lstCheifComplaint'] != null) {
|
|
|
|
|
lstCheifComplaint = new List<LstCheifComplaint>();
|
|
|
|
|
lstCheifComplaint = [];
|
|
|
|
|
json['lstCheifComplaint'].forEach((v) {
|
|
|
|
|
lstCheifComplaint.add(new LstCheifComplaint.fromJson(v));
|
|
|
|
|
lstCheifComplaint!.add(new LstCheifComplaint.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (json['lstPhysicalExam'] != null) {
|
|
|
|
|
lstPhysicalExam = new List<LstPhysicalExam>();
|
|
|
|
|
lstPhysicalExam = [];
|
|
|
|
|
json['lstPhysicalExam'].forEach((v) {
|
|
|
|
|
lstPhysicalExam.add(new LstPhysicalExam.fromJson(v));
|
|
|
|
|
lstPhysicalExam!.add(new LstPhysicalExam.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (json['lstProcedure'] != null) {
|
|
|
|
|
lstProcedure = new List<LstProcedure>();
|
|
|
|
|
lstProcedure = [];
|
|
|
|
|
json['lstProcedure'].forEach((v) {
|
|
|
|
|
lstProcedure.add(new LstProcedure.fromJson(v));
|
|
|
|
|
lstProcedure!.add(new LstProcedure.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (json['lstMedicalHistory'] != null) {
|
|
|
|
|
lstMedicalHistory = new List<LstMedicalHistory>();
|
|
|
|
|
lstMedicalHistory = [];
|
|
|
|
|
json['lstMedicalHistory'].forEach((v) {
|
|
|
|
|
lstMedicalHistory.add(new LstMedicalHistory.fromJson(v));
|
|
|
|
|
lstMedicalHistory!.add(new LstMedicalHistory.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -275,40 +275,40 @@ class Consulations {
|
|
|
|
|
data['dispalyName'] = this.dispalyName;
|
|
|
|
|
if (this.lstAssessments != null) {
|
|
|
|
|
data['lstAssessments'] =
|
|
|
|
|
this.lstAssessments.map((v) => v.toJson()).toList();
|
|
|
|
|
this.lstAssessments!.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
if (this.lstCheifComplaint != null) {
|
|
|
|
|
data['lstCheifComplaint'] =
|
|
|
|
|
this.lstCheifComplaint.map((v) => v.toJson()).toList();
|
|
|
|
|
this.lstCheifComplaint!.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
if (this.lstPhysicalExam != null) {
|
|
|
|
|
data['lstPhysicalExam'] =
|
|
|
|
|
this.lstPhysicalExam.map((v) => v.toJson()).toList();
|
|
|
|
|
this.lstPhysicalExam!.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
if (this.lstProcedure != null) {
|
|
|
|
|
data['lstProcedure'] = this.lstProcedure.map((v) => v.toJson()).toList();
|
|
|
|
|
data['lstProcedure'] = this.lstProcedure!.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
if (this.lstMedicalHistory != null) {
|
|
|
|
|
data['lstMedicalHistory'] =
|
|
|
|
|
this.lstMedicalHistory.map((v) => v.toJson()).toList();
|
|
|
|
|
this.lstMedicalHistory!.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
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,
|
|
|
|
|
@ -358,19 +358,19 @@ class LstCheifComplaint {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class LstAssessments {
|
|
|
|
|
int appointmentNo;
|
|
|
|
|
String condition;
|
|
|
|
|
String description;
|
|
|
|
|
int episodeID;
|
|
|
|
|
String iCD10;
|
|
|
|
|
int patientID;
|
|
|
|
|
String patientType;
|
|
|
|
|
int projectID;
|
|
|
|
|
String projectName;
|
|
|
|
|
String remarks;
|
|
|
|
|
String setupID;
|
|
|
|
|
String type;
|
|
|
|
|
String dispalyName;
|
|
|
|
|
int? appointmentNo;
|
|
|
|
|
String? condition;
|
|
|
|
|
String? description;
|
|
|
|
|
int? episodeID;
|
|
|
|
|
String? iCD10;
|
|
|
|
|
int? patientID;
|
|
|
|
|
String? patientType;
|
|
|
|
|
int? projectID;
|
|
|
|
|
String? projectName;
|
|
|
|
|
String? remarks;
|
|
|
|
|
String? setupID;
|
|
|
|
|
String? type;
|
|
|
|
|
String? dispalyName;
|
|
|
|
|
|
|
|
|
|
LstAssessments(
|
|
|
|
|
{this.appointmentNo,
|
|
|
|
|
@ -423,19 +423,19 @@ class LstAssessments {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class LstPhysicalExam {
|
|
|
|
|
String abnormal;
|
|
|
|
|
int appointmentNo;
|
|
|
|
|
int episodeID;
|
|
|
|
|
String examDesc;
|
|
|
|
|
String examID;
|
|
|
|
|
String examType;
|
|
|
|
|
int patientID;
|
|
|
|
|
String patientType;
|
|
|
|
|
int projectID;
|
|
|
|
|
String projectName;
|
|
|
|
|
String remarks;
|
|
|
|
|
String setupID;
|
|
|
|
|
String dispalyName;
|
|
|
|
|
String? abnormal;
|
|
|
|
|
int? appointmentNo;
|
|
|
|
|
int? episodeID;
|
|
|
|
|
String? examDesc;
|
|
|
|
|
String? examID;
|
|
|
|
|
String? examType;
|
|
|
|
|
int? patientID;
|
|
|
|
|
String? patientType;
|
|
|
|
|
int? projectID;
|
|
|
|
|
String? projectName;
|
|
|
|
|
String? remarks;
|
|
|
|
|
String? setupID;
|
|
|
|
|
String? dispalyName;
|
|
|
|
|
|
|
|
|
|
LstPhysicalExam(
|
|
|
|
|
{this.abnormal,
|
|
|
|
|
@ -488,17 +488,17 @@ class LstPhysicalExam {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class LstProcedure {
|
|
|
|
|
int appointmentNo;
|
|
|
|
|
int episodeID;
|
|
|
|
|
String orderDate;
|
|
|
|
|
int patientID;
|
|
|
|
|
String patientType;
|
|
|
|
|
String procName;
|
|
|
|
|
String procedureId;
|
|
|
|
|
int projectID;
|
|
|
|
|
String projectName;
|
|
|
|
|
String setupID;
|
|
|
|
|
String dispalyName;
|
|
|
|
|
int? appointmentNo;
|
|
|
|
|
int? episodeID;
|
|
|
|
|
String? orderDate;
|
|
|
|
|
int? patientID;
|
|
|
|
|
String? patientType;
|
|
|
|
|
String? procName;
|
|
|
|
|
String? procedureId;
|
|
|
|
|
int? projectID;
|
|
|
|
|
String? projectName;
|
|
|
|
|
String? setupID;
|
|
|
|
|
String? dispalyName;
|
|
|
|
|
|
|
|
|
|
LstProcedure(
|
|
|
|
|
{this.appointmentNo,
|
|
|
|
|
@ -545,17 +545,17 @@ class LstProcedure {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class LstMedicalHistory {
|
|
|
|
|
int appointmentNo;
|
|
|
|
|
String checked;
|
|
|
|
|
int episodeID;
|
|
|
|
|
String history;
|
|
|
|
|
int patientID;
|
|
|
|
|
String patientType;
|
|
|
|
|
int projectID;
|
|
|
|
|
String projectName;
|
|
|
|
|
String remarks;
|
|
|
|
|
String setupID;
|
|
|
|
|
String dispalyName;
|
|
|
|
|
int? appointmentNo;
|
|
|
|
|
String? checked;
|
|
|
|
|
int? episodeID;
|
|
|
|
|
String? history;
|
|
|
|
|
int? patientID;
|
|
|
|
|
String? patientType;
|
|
|
|
|
int? projectID;
|
|
|
|
|
String? projectName;
|
|
|
|
|
String? remarks;
|
|
|
|
|
String? setupID;
|
|
|
|
|
String? dispalyName;
|
|
|
|
|
|
|
|
|
|
LstMedicalHistory(
|
|
|
|
|
{this.appointmentNo,
|
|
|
|
|
|