class PrescriptionEntityModel {
  dynamic appointmentNo;
  dynamic clinicName;
  dynamic createdBy;
  dynamic createdOn;
  dynamic doctorName;
  dynamic doseDailyQuantity;
  dynamic doseDailyUnitID;
  dynamic doseDetail;
  dynamic doseDurationDays;
  dynamic doseTimingID;
  dynamic episodeID;
  dynamic frequencyID;
  dynamic icdCode10ID;
  dynamic indication;
  dynamic isDispensed;
  dynamic isMedicineCovered;
  dynamic isSIG;
  dynamic medicationName;
  dynamic medicationPrice;
  dynamic medicineCode;
  dynamic orderTypeDescription;
  dynamic qty;
  dynamic quantity;
  dynamic remarks;
  dynamic routeID;
  dynamic startDate;
  dynamic status;
  dynamic stopDate;
  dynamic uom;
  dynamic pharmacistRemarks;
  dynamic pharmacyInervention;
  dynamic refill;
  dynamic mediSpanGPICode;

  PrescriptionEntityModel(
      {this.appointmentNo,
        this.clinicName,
        this.createdBy,
        this.createdOn,
        this.doctorName,
        this.doseDailyQuantity,
        this.doseDailyUnitID,
        this.doseDetail,
        this.doseDurationDays,
        this.doseTimingID,
        this.episodeID,
        this.frequencyID,
        this.icdCode10ID,
        this.indication,
        this.isDispensed,
        this.isMedicineCovered,
        this.isSIG,
        this.medicationName,
        this.medicationPrice,
        this.medicineCode,
        this.orderTypeDescription,
        this.qty,
        this.quantity,
        this.remarks,
        this.routeID,
        this.startDate,
        this.status,
        this.stopDate,
        this.uom,
        this.pharmacistRemarks,
        this.mediSpanGPICode,
        this.pharmacyInervention,
        this.refill});

  PrescriptionEntityModel.fromJson(Map<String, dynamic> json) {
    appointmentNo = json['appointmentNo'];
    clinicName = json['clinicName'];
    createdBy = json['createdBy'];
    createdOn = json['createdOn'];
    doctorName = json['doctorName'];
    doseDailyQuantity = json['doseDailyQuantity'];
    doseDailyUnitID = json['doseDailyUnitID'];
    doseDetail = json['doseDetail'];
    doseDurationDays = json['doseDurationDays'];
    doseTimingID = json['doseTimingID'];
    episodeID = json['episodeID'];
    frequencyID = json['frequencyID'];
    icdCode10ID = json['icdCode10ID'];
    indication = json['indication'];
    isDispensed = json['isDispensed'];
    isMedicineCovered = json['isMedicineCovered'];
    isSIG = json['isSIG'];
    medicationName = json['medicationName'];
    medicationPrice = json['medicationPrice'];
    medicineCode = json['medicineCode'];
    orderTypeDescription = json['orderTypeDescription'];
    qty = json['qty'];
    quantity = json['quantity'];
    remarks = json['remarks'];
    routeID = json['routeID'];
    startDate = json['startDate'];
    status = json['status'];
    stopDate = json['stopDate'];
    uom = json['uom'];
    pharmacistRemarks = json['pharmacistRemarks'];
    mediSpanGPICode = json['mediSpanGPICode'];
    refill = json['refill'];
    pharmacyInervention = json['interventionID'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['appointmentNo'] = this.appointmentNo;
    data['clinicName'] = this.clinicName;
    data['createdBy'] = this.createdBy;
    data['createdOn'] = this.createdOn;
    data['doctorName'] = this.doctorName;
    data['doseDailyQuantity'] = this.doseDailyQuantity;
    data['doseDailyUnitID'] = this.doseDailyUnitID;
    data['doseDetail'] = this.doseDetail;
    data['doseDurationDays'] = this.doseDurationDays;
    data['doseTimingID'] = this.doseTimingID;
    data['episodeID'] = this.episodeID;
    data['frequencyID'] = this.frequencyID;
    data['icdCode10ID'] = this.icdCode10ID;
    data['indication'] = this.indication;
    data['isDispensed'] = this.isDispensed;
    data['isMedicineCovered'] = this.isMedicineCovered;
    data['isSIG'] = this.isSIG;
    data['medicationName'] = this.medicationName;
    data['medicationPrice'] = this.medicationPrice;
    data['medicineCode'] = this.medicineCode;
    data['orderTypeDescription'] = this.orderTypeDescription;
    data['qty'] = this.qty;
    data['quantity'] = this.quantity;
    data['remarks'] = this.remarks;
    data['routeID'] = this.routeID;
    data['startDate'] = this.startDate;
    data['status'] = this.status;
    data['stopDate'] = this.stopDate;
    data['uom'] = this.uom;
    data['pharmacistRemarks'] = this.pharmacistRemarks;
    data['mediSpanGPICode'] = this.mediSpanGPICode;
    data['refill'] = this.refill;
    data['interventionID'] = this.pharmacyInervention;

    return data;
  }
}