|
|
|
|
@ -2,18 +2,24 @@ class PostAssessmentRequestModel {
|
|
|
|
|
int patientMRN;
|
|
|
|
|
int appointmentNo;
|
|
|
|
|
int episodeId;
|
|
|
|
|
String createdByName;
|
|
|
|
|
int createdBy;
|
|
|
|
|
List<IcdCodeDetails> icdCodeDetails;
|
|
|
|
|
|
|
|
|
|
PostAssessmentRequestModel(
|
|
|
|
|
{this.patientMRN,
|
|
|
|
|
this.appointmentNo,
|
|
|
|
|
this.episodeId,
|
|
|
|
|
this.createdByName,
|
|
|
|
|
this.createdBy,
|
|
|
|
|
this.icdCodeDetails});
|
|
|
|
|
|
|
|
|
|
PostAssessmentRequestModel.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
patientMRN = json['PatientMRN'];
|
|
|
|
|
appointmentNo = json['AppointmentNo'];
|
|
|
|
|
episodeId = json['EpisodeID'];
|
|
|
|
|
createdByName = json['CreatedByName'];
|
|
|
|
|
createdBy= json['CreatedBy'];
|
|
|
|
|
if (json['icdCodeDetails'] != null) {
|
|
|
|
|
icdCodeDetails = new List<IcdCodeDetails>();
|
|
|
|
|
json['icdCodeDetails'].forEach((v) {
|
|
|
|
|
@ -27,6 +33,8 @@ class PostAssessmentRequestModel {
|
|
|
|
|
data['PatientMRN'] = this.patientMRN;
|
|
|
|
|
data['AppointmentNo'] = this.appointmentNo;
|
|
|
|
|
data['EpisodeID'] = this.episodeId;
|
|
|
|
|
data['CreatedByName'] = this.createdByName;
|
|
|
|
|
data['CreatedBy'] = this.createdBy;
|
|
|
|
|
if (this.icdCodeDetails != null) {
|
|
|
|
|
data['icdCodeDetails'] =
|
|
|
|
|
this.icdCodeDetails.map((v) => v.toJson()).toList();
|
|
|
|
|
|