Update policy.json
Browse files- policy.json +104 -73
policy.json
CHANGED
|
@@ -3,90 +3,121 @@
|
|
| 3 |
"policy_version": "2026-02-14.1",
|
| 4 |
"min_agent_version": "0.1.0",
|
| 5 |
"updated_at": "2026-02-14T00:00:00Z",
|
| 6 |
-
|
| 7 |
"targets": {
|
| 8 |
"inference_upload_url": "https://05prey-cloud-end.hf.space/upload"
|
| 9 |
},
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
"
|
| 13 |
-
|
|
|
|
|
|
|
| 14 |
"mg": {
|
| 15 |
-
"
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
],
|
| 22 |
-
"
|
| 23 |
},
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
],
|
| 31 |
-
"
|
| 32 |
-
"limits": {
|
| 33 |
-
"max_total_instances": 5000,
|
| 34 |
-
"max_instances_per_series": 1500,
|
| 35 |
-
"max_zip_mb": 6000
|
| 36 |
-
}
|
| 37 |
},
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
}
|
| 42 |
},
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
"
|
| 52 |
-
|
| 53 |
-
},
|
| 54 |
-
"mr_zip": {
|
| 55 |
-
"filename_template": "{patient_id} {series_label} MR.zip"
|
| 56 |
-
}
|
| 57 |
-
},
|
| 58 |
-
|
| 59 |
-
"mr_zip_contents": {
|
| 60 |
-
"folder_template": "{patient_id} {series_label} MR",
|
| 61 |
-
"instance_filename_template": "MR{index:06d}.dcm",
|
| 62 |
-
"index_order": "InstanceNumber_then_SliceLocation_then_AcquisitionTime"
|
| 63 |
-
},
|
| 64 |
-
|
| 65 |
-
"allowed_separators": {
|
| 66 |
-
"token_separator": " ",
|
| 67 |
-
"sanitize": true,
|
| 68 |
-
"sanitize_rules": {
|
| 69 |
-
"remove_chars": ["\\", "/", ":", "*", "?", "\"", "<", ">", "|"],
|
| 70 |
-
"collapse_spaces": true,
|
| 71 |
-
"max_len": 80
|
| 72 |
-
}
|
| 73 |
-
},
|
| 74 |
-
|
| 75 |
-
"manifest": {
|
| 76 |
-
"include": true,
|
| 77 |
-
"filename": "manifest.json",
|
| 78 |
-
"fields": [
|
| 79 |
-
"patient_id",
|
| 80 |
-
"study_uid",
|
| 81 |
-
"selected_series",
|
| 82 |
-
"policy_version"
|
| 83 |
-
]
|
| 84 |
}
|
| 85 |
},
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
"
|
| 89 |
-
|
| 90 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
}
|
| 92 |
}
|
|
|
|
| 3 |
"policy_version": "2026-02-14.1",
|
| 4 |
"min_agent_version": "0.1.0",
|
| 5 |
"updated_at": "2026-02-14T00:00:00Z",
|
|
|
|
| 6 |
"targets": {
|
| 7 |
"inference_upload_url": "https://05prey-cloud-end.hf.space/upload"
|
| 8 |
},
|
| 9 |
+
"limits": {
|
| 10 |
+
"max_total_instances": 5000,
|
| 11 |
+
"max_instances_per_series": 1500,
|
| 12 |
+
"max_zip_mb": 6000
|
| 13 |
+
},
|
| 14 |
+
"modalities": {
|
| 15 |
"mg": {
|
| 16 |
+
"series_labels": [
|
| 17 |
+
{
|
| 18 |
+
"series_label": "RCC",
|
| 19 |
+
"match_any": [
|
| 20 |
+
"R CC",
|
| 21 |
+
"RCC",
|
| 22 |
+
"RIGHT CC"
|
| 23 |
+
],
|
| 24 |
+
"save_rule": "{patient_id} {series_label} {modality}",
|
| 25 |
+
"save_format": "dcm"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"series_label": "LCC",
|
| 29 |
+
"match_any": [
|
| 30 |
+
"L CC",
|
| 31 |
+
"LCC",
|
| 32 |
+
"LEFT CC"
|
| 33 |
+
],
|
| 34 |
+
"save_rule": "{patient_id} {series_label} {modality}",
|
| 35 |
+
"save_format": "dcm"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"series_label": "RMLO",
|
| 39 |
+
"match_any": [
|
| 40 |
+
"R MLO",
|
| 41 |
+
"RMLO",
|
| 42 |
+
"RIGHT MLO"
|
| 43 |
+
],
|
| 44 |
+
"save_rule": "{patient_id} {series_label} {modality}",
|
| 45 |
+
"save_format": "dcm"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"series_label": "LMLO",
|
| 49 |
+
"match_any": [
|
| 50 |
+
"L MLO",
|
| 51 |
+
"LMLO",
|
| 52 |
+
"LEFT MLO"
|
| 53 |
+
],
|
| 54 |
+
"save_rule": "{patient_id} {series_label} {modality}",
|
| 55 |
+
"save_format": "dcm"
|
| 56 |
+
}
|
| 57 |
],
|
| 58 |
+
"fallback_label": "MG"
|
| 59 |
},
|
| 60 |
+
"us": {
|
| 61 |
+
"series_labels": [
|
| 62 |
+
{
|
| 63 |
+
"series_label": "meme",
|
| 64 |
+
"match_any": [
|
| 65 |
+
"MEME",
|
| 66 |
+
"BREAST",
|
| 67 |
+
"MAMMARY"
|
| 68 |
+
],
|
| 69 |
+
"save_rule": "{patient_id} {series_label} {modality}",
|
| 70 |
+
"save_format": "dcm"
|
| 71 |
+
}
|
| 72 |
],
|
| 73 |
+
"fallback_label": "US"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
},
|
| 75 |
+
"mr": {
|
| 76 |
+
"series_labels": [
|
| 77 |
+
{
|
| 78 |
+
"series_label": "T1W_TSE",
|
| 79 |
+
"match_any": [
|
| 80 |
+
"T1W_TSE",
|
| 81 |
+
"T1W TSE",
|
| 82 |
+
"T1W-TSE"
|
| 83 |
+
],
|
| 84 |
+
"save_rule": "{patient_id} {series_label} {modality}",
|
| 85 |
+
"save_format": "zip"
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"series_label": "SUB",
|
| 89 |
+
"match_any": [
|
| 90 |
+
"SUB",
|
| 91 |
+
"SUBTR",
|
| 92 |
+
"SUBTRACT"
|
| 93 |
+
],
|
| 94 |
+
"save_rule": "{patient_id} {series_label} {modality}",
|
| 95 |
+
"save_format": "zip"
|
| 96 |
+
}
|
| 97 |
+
],
|
| 98 |
+
"fallback_label": "MR"
|
| 99 |
}
|
| 100 |
},
|
| 101 |
+
"naming": {
|
| 102 |
+
"placeholders": [
|
| 103 |
+
"patient_id",
|
| 104 |
+
"series_label",
|
| 105 |
+
"modality"
|
| 106 |
+
],
|
| 107 |
+
"separator": " ",
|
| 108 |
+
"extensions": {
|
| 109 |
+
"dcm": ".dcm",
|
| 110 |
+
"zip": ".zip"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
}
|
| 112 |
},
|
| 113 |
+
"zip_rules": {
|
| 114 |
+
"mr_instance_name": "MR{index:06d}.dcm",
|
| 115 |
+
"sort_order": [
|
| 116 |
+
"InstanceNumber",
|
| 117 |
+
"SliceLocation",
|
| 118 |
+
"AcquisitionTime"
|
| 119 |
+
],
|
| 120 |
+
"include_folder_inside_zip": true,
|
| 121 |
+
"zip_folder_rule": "{patient_id} {series_label} {modality}"
|
| 122 |
}
|
| 123 |
}
|