|
@@ -36,6 +36,9 @@ class PatientEntity extends SyncableEntity<PatientEntity> {
|
|
|
/// 姓名
|
|
|
String name = "";
|
|
|
|
|
|
+ ///组织编码
|
|
|
+ String orgCode = '';
|
|
|
+
|
|
|
/// 随访待上传数量
|
|
|
int followUpCount = 0;
|
|
|
|
|
@@ -54,6 +57,7 @@ class PatientEntity extends SyncableEntity<PatientEntity> {
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final map = super.toJson();
|
|
|
map['name'] = name;
|
|
|
+ map['orgCode'] = name;
|
|
|
map['extJson'] = extJson;
|
|
|
map['followUpCount'] = followUpCount;
|
|
|
map['diagnosisCount'] = diagnosisCount;
|
|
@@ -65,6 +69,7 @@ class PatientEntity extends SyncableEntity<PatientEntity> {
|
|
|
PatientEntity fromJson(Map<String, dynamic> map) {
|
|
|
super.fromJson(map);
|
|
|
name = map['name'];
|
|
|
+ name = map['orgCode'];
|
|
|
extJson = map['extJson'];
|
|
|
followUpCount = map['followUpCount'];
|
|
|
diagnosisCount = map['diagnosisCount'];
|
|
@@ -77,6 +82,7 @@ class PatientEntity extends SyncableEntity<PatientEntity> {
|
|
|
class PatientColumnsDefine extends SyncableColumnsDefine<PatientEntity>
|
|
|
implements IDbColumnsDefine<PatientEntity> {
|
|
|
final name = DbColumn<String>("name");
|
|
|
+ final orgCode = DbColumn<String>("orgCode");
|
|
|
final extJson = DbColumn<String>("extJson");
|
|
|
final overallSyncState = DbColumn<OfflineDataSyncState>("overallSyncState");
|
|
|
}
|