File size: 3,109 Bytes
4a5269c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
  "template_id": "T5_CLINICAL_PROGRESS_NOTE_POSTOP",
  "name": "Clinical Progress Note Postop",
  "status": "active",
  "version": 2,
  "match": {
    "keywords_all": [],
    "keywords_any": [
      "clinical progress note",
      "progress note",
      "post-op",
      "assessment",
      "plan"
    ]
  },
  "schema": {
    "form_id": "trainer_e75eb5b93bb54c28934f43cacc406cc8",
    "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": null,
        "value_bbox_norm": null,
        "value_offset_norm": null
      },
      {
        "field_id": "case_location",
        "label": "Case Location / Address",
        "type": "text",
        "anchor_bbox_norm": null,
        "value_bbox_norm": null,
        "value_offset_norm": null
      },
      {
        "field_id": "vendor",
        "label": "Vendor",
        "type": "entity",
        "anchor_bbox_norm": null,
        "value_bbox_norm": null,
        "value_offset_norm": null
      },
      {
        "field_id": "physician_name",
        "label": "Physician Name",
        "type": "person",
        "anchor_bbox_norm": null,
        "value_bbox_norm": null,
        "value_offset_norm": null
      },
      {
        "field_id": "date_of_surgery",
        "label": "Date of Surgery",
        "type": "date",
        "anchor_bbox_norm": null,
        "value_bbox_norm": null,
        "value_offset_norm": null
      },
      {
        "field_id": "items",
        "label": "Items / Line Items",
        "type": "table",
        "table_bbox_norm": null,
        "header_bbox_norm": null,
        "row_height_hint_norm": null,
        "columns": [
          {
            "key": "item_number",
            "label": "Item Number",
            "bbox_rel_norm": null
          },
          {
            "key": "lot_number",
            "label": "Lot Number",
            "bbox_rel_norm": null
          },
          {
            "key": "description",
            "label": "Description",
            "bbox_rel_norm": null
          },
          {
            "key": "qty",
            "label": "Qty",
            "bbox_rel_norm": null
          },
          {
            "key": "price",
            "label": "Price",
            "bbox_rel_norm": null
          }
        ],
        "table_anchors": [
          {
            "key": "item_number",
            "expected_text": "Item Number",
            "bbox_norm": null
          },
          {
            "key": "description",
            "expected_text": "Description",
            "bbox_norm": null
          },
          {
            "key": "qty",
            "expected_text": "Qty",
            "bbox_norm": null
          }
        ],
        "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."
  }
}