CDCgov / ReportVision

Intelligent Data Workflow Automation
Apache License 2.0
1 stars 1 forks source link

[V1] Extract: Build the Review page #197

Closed zdeveloper closed 4 days ago

zdeveloper commented 3 weeks ago

Build a page that will allow the user to review the output of the OCR

Acceptance Criteria

Additional context https://www.figma.com/design/1FW8ZSDV90q2wpRPOADE9r/MDE?node-id=562-4259&t=Ojs61BjqZVSBkZh8-4

arinkulshi-skylight commented 6 days ago

{
  "submission": {
    "template_name": "Invoice_Template_01",
    "template_image": "data:image/png;base64,....",  // Base64-encoded template image string
    "file_name": "invoice_123.png",
    "file_image": "data:image/png;base64,....",  // Base64-encoded file image string
    "results": {
      "nbs_patient_id": {
        "text": "SIENNA HAMPTON",
        "confidence": 98.75
      },
      "nbs_cas_id": {
        "text": "123555",
        "confidence": 95.42
      },
      "nbs_date_of_birth": {
        "text": "01/01/1990",
        "confidence": 97.10
      }
    }
  }
}
``` Here is the updated json structure that will be read from this ticket