What I understood from DocumentAI docs is that the best match to extract information from a report like medical test result is to use the Form Parsing processor. This does a good job for reports where there is exactly one value for one label. Like patient name or patient age etc. But I was trying to get the table of various test results in a map of Key Value pair where key is the test name and value us the result.
With custom processor I tried to choose a label with property which can appear multiple times but that does not maintain the link between testName and testValue.
The Report looks like the follows
Desired Result would probably be
{
name : Jon Doe
age : 76
tests :[
{
testName : CRP ,
testValue : 51
},
{
testName : Creatinine ,
testValue : 0.8
}
]
}
I think it would be something similar to table. https://cloud.google.com/document-ai/docs/handle-response