Finish subjective
parent
8eb912af9e
commit
bb651478a0
@ -0,0 +1,48 @@
|
|||||||
|
class PostChiefComplaintRequestModel {
|
||||||
|
int appointmentNo;
|
||||||
|
int episodeID;
|
||||||
|
int patientMRN;
|
||||||
|
String chiefComplaint;
|
||||||
|
String hopi;
|
||||||
|
String currentMedication;
|
||||||
|
bool ispregnant;
|
||||||
|
bool isLactation;
|
||||||
|
int numberOfWeeks;
|
||||||
|
|
||||||
|
PostChiefComplaintRequestModel(
|
||||||
|
{this.appointmentNo,
|
||||||
|
this.episodeID,
|
||||||
|
this.patientMRN,
|
||||||
|
this.chiefComplaint,
|
||||||
|
this.hopi,
|
||||||
|
this.currentMedication,
|
||||||
|
this.ispregnant,
|
||||||
|
this.isLactation,
|
||||||
|
this.numberOfWeeks});
|
||||||
|
|
||||||
|
PostChiefComplaintRequestModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
appointmentNo = json['AppointmentNo'];
|
||||||
|
episodeID = json['EpisodeID'];
|
||||||
|
patientMRN = json['PatientMRN'];
|
||||||
|
chiefComplaint = json['chiefComplaint'];
|
||||||
|
hopi = json['Hopi'];
|
||||||
|
currentMedication = json['CurrentMedication'];
|
||||||
|
ispregnant = json['ispregnant'];
|
||||||
|
isLactation = json['isLactation'];
|
||||||
|
numberOfWeeks = json['numberOfWeeks'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['AppointmentNo'] = this.appointmentNo;
|
||||||
|
data['EpisodeID'] = this.episodeID;
|
||||||
|
data['PatientMRN'] = this.patientMRN;
|
||||||
|
data['chiefComplaint'] = this.chiefComplaint;
|
||||||
|
data['Hopi'] = this.hopi;
|
||||||
|
data['CurrentMedication'] = this.currentMedication;
|
||||||
|
data['ispregnant'] = this.ispregnant;
|
||||||
|
data['isLactation'] = this.isLactation;
|
||||||
|
data['numberOfWeeks'] = this.numberOfWeeks;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,64 @@
|
|||||||
|
class PostHistoriesRequestModel {
|
||||||
|
List<ListMedicalHistoryVM> listMedicalHistoryVM;
|
||||||
|
|
||||||
|
PostHistoriesRequestModel({this.listMedicalHistoryVM});
|
||||||
|
|
||||||
|
PostHistoriesRequestModel.fromJson(Map<String, dynamic> json) {
|
||||||
|
if (json['listMedicalHistoryVM'] != null) {
|
||||||
|
listMedicalHistoryVM = new List<ListMedicalHistoryVM>();
|
||||||
|
json['listMedicalHistoryVM'].forEach((v) {
|
||||||
|
listMedicalHistoryVM.add(new ListMedicalHistoryVM.fromJson(v));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
if (this.listMedicalHistoryVM != null) {
|
||||||
|
data['listMedicalHistoryVM'] =
|
||||||
|
this.listMedicalHistoryVM.map((v) => v.toJson()).toList();
|
||||||
|
}
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class ListMedicalHistoryVM {
|
||||||
|
int patientMRN;
|
||||||
|
int historyType;
|
||||||
|
int historyId;
|
||||||
|
int episodeId;
|
||||||
|
int appointmentNo;
|
||||||
|
bool isChecked;
|
||||||
|
String remarks;
|
||||||
|
|
||||||
|
ListMedicalHistoryVM(
|
||||||
|
{this.patientMRN,
|
||||||
|
this.historyType,
|
||||||
|
this.historyId,
|
||||||
|
this.episodeId,
|
||||||
|
this.appointmentNo,
|
||||||
|
this.isChecked,
|
||||||
|
this.remarks});
|
||||||
|
|
||||||
|
ListMedicalHistoryVM.fromJson(Map<String, dynamic> json) {
|
||||||
|
patientMRN = json['patientMRN'];
|
||||||
|
historyType = json['historyType'];
|
||||||
|
historyId = json['historyId'];
|
||||||
|
episodeId = json['episodeId'];
|
||||||
|
appointmentNo = json['appointmentNo'];
|
||||||
|
isChecked = json['isChecked'];
|
||||||
|
remarks = json['remarks'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
|
data['patientMRN'] = this.patientMRN;
|
||||||
|
data['historyType'] = this.historyType;
|
||||||
|
data['historyId'] = this.historyId;
|
||||||
|
data['episodeId'] = this.episodeId;
|
||||||
|
data['appointmentNo'] = this.appointmentNo;
|
||||||
|
data['isChecked'] = this.isChecked;
|
||||||
|
data['remarks'] = this.remarks;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue