|
@@ -581,38 +581,8 @@ class _MobileMeasureSelector extends FState<MobileMeasureSelector> {
|
|
|
|
|
|
|
|
|
List<ItemMetaDTO> _currSupportedItemFilter(MeasureModeDTO mode) {
|
|
|
- final supportedMeasureTypeName = [
|
|
|
- 'TimeSpan',
|
|
|
- 'Distance',
|
|
|
- "VerticalDistance",
|
|
|
- 'AreaPerimeterTrace',
|
|
|
- "Depth",
|
|
|
- "Velocity",
|
|
|
- "MDepth",
|
|
|
- "HipOneRay",
|
|
|
- "HipTwoRay",
|
|
|
- "DepthToBaseLine",
|
|
|
- "AbRatioTwoVelocity",
|
|
|
- "ResistivityIndexTwoLocationByEd",
|
|
|
- "MaxPgTwoLocation",
|
|
|
- "VolumeThreeDistance",
|
|
|
- "ThreeDistanceMean",
|
|
|
- "ThreeDistanceMax",
|
|
|
- "AbRatioTwoArea",
|
|
|
- "StenosisTwoArea",
|
|
|
- "AreaStraightLine",
|
|
|
- "AreaPerimeterSpline",
|
|
|
- "CurveLengthSpline",
|
|
|
- "AreaPerimeterPolyline",
|
|
|
- "CurveLengthPolyline",
|
|
|
- "PolyLineAngle",
|
|
|
- "CardiacAxis",
|
|
|
- "Afi",
|
|
|
- "VolumeEllipse",
|
|
|
- "AreaPerimeterEllipse",
|
|
|
- "DopplerTrace",
|
|
|
- ];
|
|
|
List<ItemMetaDTO> _supportedItems = [];
|
|
|
+ List<ItemMetaDTO> _unSupportedItems = [];
|
|
|
if (mode.availableGroups == null || mode.availableGroups!.isEmpty) {
|
|
|
return _supportedItems;
|
|
|
}
|
|
@@ -626,46 +596,22 @@ class _MobileMeasureSelector extends FState<MobileMeasureSelector> {
|
|
|
}
|
|
|
for (ItemMetaDTO items in folder.availableItems!) {
|
|
|
bool isSupported = false;
|
|
|
- if (supportedMeasureTypeName.contains(items.measureTypeName)) {
|
|
|
- _supportedItems.add(items);
|
|
|
+ if (!MeasureUnsupportedTerms.items.contains(items.name)) {
|
|
|
isSupported = true;
|
|
|
- }
|
|
|
- if (items.multiMethodItems != null &&
|
|
|
- items.multiMethodItems!.isNotEmpty) {
|
|
|
- for (var item in items.multiMethodItems!) {
|
|
|
- if (supportedMeasureTypeName.contains(item.measureTypeName)) {
|
|
|
- if (item.isWorking) {
|
|
|
- _supportedItems.add(items);
|
|
|
- isSupported = true;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- if (items.methodChildItems != null &&
|
|
|
- items.methodChildItems!.isNotEmpty) {
|
|
|
- bool isAdd = true;
|
|
|
- for (var item in items.methodChildItems!) {
|
|
|
- if (!supportedMeasureTypeName.contains(item.measureTypeName)) {
|
|
|
- isAdd = false;
|
|
|
- }
|
|
|
- }
|
|
|
- if (isAdd) {
|
|
|
- _supportedItems.add(items);
|
|
|
- isSupported = true;
|
|
|
- }
|
|
|
+ _supportedItems.add(items);
|
|
|
}
|
|
|
|
|
|
if (isSupported) {
|
|
|
- print("✅ 支持的测量项:${items.name} | ${items.measureTypeName}}");
|
|
|
+
|
|
|
} else {
|
|
|
- print("❌ 不支持的测量项:${items.name} | ${items.measureTypeName}}");
|
|
|
+
|
|
|
+ _unSupportedItems.add(items);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- print("${mode.modeName} 模式下过滤出 ${_supportedItems.length} 项");
|
|
|
+
|
|
|
+
|
|
|
return _supportedItems;
|
|
|
}
|
|
|
}
|