Understanding invalid medical form processing with notifications
In this section, we will walk through the architecture specified in Figure 12.1 when the claim is identified as invalid by Textract postprocessing. We will send the message to the stakeholder via Amazon SNS. Let's go back to the notebook:
- In the notebook, we will start by loading the scanned medical intake form by running the following code:
InvalidDocument = "invalidmedicalform.png" display(Image(filename=InvalidDocument))
You will get the following sample medical form, which we will check for invalid use cases:
In this form, ZIP CODE and ID NUMBER have been entered incorrectly.
- Now, we will call the
calltextract(document)
function that we created in the previous section and pass this document to extract the text or data using the Amazon Textract Sync API. To do so, run the following code:response = calltextract(InvalidDocument)
- After this...