Spaces:
Building
Building
| { | |
| "form_id": "trainer_2f7cdbc443f040c79723c74490f6282f", | |
| "version": 3, | |
| "page": 1, | |
| "scalar_value_region_mode": "offset_from_anchor_v1", | |
| "fields": [ | |
| { | |
| "field_id": "facility_organization", | |
| "label": "Facility / Organization", | |
| "type": "entity", | |
| "anchor_bbox_norm": { "x": 0.138889, "y": 0.328283, "w": 0.047386, "h": 0.027778 }, | |
| "value_bbox_norm": null, | |
| "value_offset_norm": { "dx": 0.052288, "dy": -0.001263, "w": 0.294118, "h": 0.045455 } | |
| }, | |
| { | |
| "field_id": "case_location", | |
| "label": "Case Location / Address", | |
| "type": "text", | |
| "anchor_bbox_norm": { "x": 0.140523, "y": 0.353535, "w": 0.055556, "h": 0.02399 }, | |
| "value_bbox_norm": null, | |
| "value_offset_norm": { "dx": 0.062092, "dy": 0.005051, "w": 0.292484, "h": 0.056818 } | |
| }, | |
| { | |
| "field_id": "vendor", | |
| "label": "Vendor", | |
| "type": "entity", | |
| "anchor_bbox_norm": { "x": 0.215686, "y": 0.170455, "w": 0.205882, "h": 0.059343 }, | |
| "value_bbox_norm": null, | |
| "value_offset_norm": null | |
| }, | |
| { | |
| "field_id": "physician_name", | |
| "label": "Physician Name", | |
| "type": "person", | |
| "anchor_bbox_norm": { "x": 0.522876, "y": 0.497475, "w": 0.062092, "h": 0.020202 }, | |
| "value_bbox_norm": null, | |
| "value_offset_norm": { "dx": 0.060458, "dy": -0.005051, "w": 0.214052, "h": 0.025253 } | |
| }, | |
| { | |
| "field_id": "date_of_surgery", | |
| "label": "Date of Surgery", | |
| "type": "date", | |
| "anchor_bbox_norm": { "x": 0.138889, "y": 0.57197, "w": 0.160131, "h": 0.026515 }, | |
| "value_bbox_norm": null, | |
| "value_offset_norm": { "dx": 0.165033, "dy": -0.002525, "w": 0.205882, "h": 0.02399 } | |
| }, | |
| { | |
| "field_id": "items", | |
| "label": "Items / Line Items", | |
| "type": "table", | |
| "table_bbox_norm": { "x": 0.138889, "y": 0.632576, "w": 0.732026, "h": 0.122475 }, | |
| "header_bbox_norm": { "x": 0.142157, "y": 0.632576, "w": 0.727124, "h": 0.034091 }, | |
| "row_height_hint_norm": null, | |
| "columns": [ | |
| { "key": "item_number", "label": "Item Number", "bbox_rel_norm": { "x": 0.004464, "y": 0.28866, "w": 0.196429, "h": 0.701031 } }, | |
| { "key": "lot_number", "label": "Lot Number", "bbox_rel_norm": null }, | |
| { "key": "description", "label": "Description", "bbox_rel_norm": { "x": 0.209821, "y": 0.278351, "w": 0.241071, "h": 0.639175 } }, | |
| { "key": "qty", "label": "Qty", "bbox_rel_norm": { "x": 0.647321, "y": 0.247423, "w": 0.058036, "h": 0.71134 } }, | |
| { "key": "price", "label": "Price", "bbox_rel_norm": null } | |
| ], | |
| "table_anchors": [ | |
| { "key": "item_number", "expected_text": "Item Number", "bbox_norm": { "x": 0.140523, "y": 0.652778, "w": 0.145425, "h": 0.016414 } }, | |
| { "key": "description", "expected_text": "Description", "bbox_norm": { "x": 0.287582, "y": 0.650253, "w": 0.181373, "h": 0.018939 } }, | |
| { "key": "qty", "expected_text": "Qty", "bbox_norm": { "x": 0.614379, "y": 0.647727, "w": 0.047386, "h": 0.016414 } } | |
| ], | |
| "notes": "Anchors are used at runtime to localize table/header/columns under drift." | |
| } | |
| ], | |
| "notes": "Trainer exports config only. Runtime should localize anchors then apply offsets/table mappings to extract values + line items." | |
| } |