|
|
|
|
@ -52,7 +52,7 @@ class LabResult {
|
|
|
|
|
int? testID;
|
|
|
|
|
String? testShortDescription;
|
|
|
|
|
String? uOM;
|
|
|
|
|
List<dynamic>? uploadedDocuments;
|
|
|
|
|
List<LabResultAttachment>? uploadedDocuments;
|
|
|
|
|
String? verifiedOn;
|
|
|
|
|
dynamic verifiedOnDateTime;
|
|
|
|
|
|
|
|
|
|
@ -168,7 +168,14 @@ class LabResult {
|
|
|
|
|
testID = json['TestID'];
|
|
|
|
|
testShortDescription = json['TestShortDescription'];
|
|
|
|
|
uOM = json['UOM'];
|
|
|
|
|
uploadedDocuments = json['UploadedDocuments'] ?? [];
|
|
|
|
|
|
|
|
|
|
if (json['UploadedDocuments'] != null) {
|
|
|
|
|
uploadedDocuments = <LabResultAttachment>[];
|
|
|
|
|
json['UploadedDocuments'].forEach((v) {
|
|
|
|
|
uploadedDocuments!.add(LabResultAttachment.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
verifiedOn = json['VerifiedOn'];
|
|
|
|
|
verifiedOnDateTime = json['VerifiedOnDateTime'];
|
|
|
|
|
}
|
|
|
|
|
@ -255,6 +262,28 @@ class LabResult {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class LabResultAttachment {
|
|
|
|
|
String? fileData;
|
|
|
|
|
String? fileName;
|
|
|
|
|
String? fileType;
|
|
|
|
|
|
|
|
|
|
LabResultAttachment({this.fileData, this.fileName, this.fileType});
|
|
|
|
|
|
|
|
|
|
LabResultAttachment.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
fileData = json['FileData'];
|
|
|
|
|
fileName = json['FileName'];
|
|
|
|
|
fileType = json['FileType'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
data['FileData'] = this.fileData;
|
|
|
|
|
data['FileName'] = this.fileName;
|
|
|
|
|
data['FileType'] = this.fileType;
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// class LabResult {
|
|
|
|
|
// String? description;
|
|
|
|
|
// dynamic femaleInterpretativeData;
|
|
|
|
|
|