while using azure form recognizer for medical prescription some key value pair(like no of quantity and refills ) are not getting extracted - azure-cognitive-services

while using azure form recognizer for medical prescription some key-value pair(like no of quantity and refills ) are not getting extracted.
How can we extract that thing? or we have to use any other machine learning library to do that.
The problem is we have one form and we have created 5 samples out of it for azure form recognizer.
the form is in .tiff format.
no. of refills is usually written as -
n refills, refills n, refills 1,2,3,4,5.
Example: “Odefsey 200-25-25 mg tabs TAKE ONE TABLET BY MOUTH ONCE DAILY. #90 tabs, 3 Refills needs to be broken into
Drug Name: Odefsey
Strength: 200-25-25 mg
Dosage Form: tabs
Directions: ONE TABLET BY MOUTH ONCE DAILY
Quantity: 90
Refills: 3
Quantity and Refills are not recognized by Azure text analytics for Health
We have to extract refills from below pic

Can you please try the latest Form Recognizer release and see if it resolves the issue - https://learn.microsoft.com/en-us/azure/cognitive-services/form-recognizer/whats-new
You can try it out in the Form Recognizer sample tool - https://fott-preview.azurewebsites.net/

Related

Price Comparison Google sheet with Web sracping and conditions

I just seem to be stuck with the IF’s and Importhtml/Xms etc.

My goal: I want a spreadsheet, where I put info like, EAN (GTIN-13), ASIN (Amazon Unique Article code). Now I want sheets to go to ebay.de & Amazon.de, take the price cheapest price from both sides - decides which price is cheaper. And subtracts 5% - this than is my finals price.
When the Article is neu or new others (Neu, Neu: Sonstige (siehe Artikelbeschreibung))
Eg. Cheapest prices: eBay 40€ - Amazon 39€ // 39€<40€= 39€-5% = 37,05€ -> if the Article does not exist on one or the other, than it will only take the number, from the existing one -5%
The system however preferably, also should see, if shipping is included and add it to the price.
Eg. Cheapest prices: eBay 40€ +5€ shipping = 45€ - Amazon 50€ // 45€<50€= 45€-5% = 42,75€
Price level:
0-100€ = -5% ///
100-1000€ = -10% ////
1000€ and more -15€
When the article is used, broken etc. (Gebraucht, Als Ersatzteil / defekt, Vom Verkäufer generalüberholt)
It only takes from ebay with the Used URL + Filter.
URLS:
eBay new: (this URL is with filter activation, for cheapest price wit shipping - Buy Now, EU Sellers, Accepting Returns & neu All these attributes are reflected in the URL.
https://www.ebay.de/sch/i.html?_from=R40&_nkw=4548736101548&LH_PrefLoc=3&LH_BIN=1&LH_RPA=1&LH_ItemCondition=3&_sop=15
eBay Used
https://www.ebay.de/sch/i.html?_from=R40&_nkw=4548736101548&LH_PrefLoc=3&LH_BIN=1&LH_RPA=1&_sop=15&rt=nc&LH_ItemCondition=4
EAN can be automatically added from list:
New:

="https://www.ebay.de/sch/i.html?_from=R40&_nkw="&""&C2&""&"&LH_PrefLoc=3&LH_BIN=1&LH_RPA=1&LH_ItemCondition=3&_sop=15"
Used:
="https://www.ebay.de/sch/i.html?_from=R40&_nkw="&""&C2&""&"&LH_PrefLoc=3&LH_BIN=1&LH_RPA=1&_sop=15&rt=nc&LH_ItemCondition=4"
Amazon
https://www.amazon.de/s?k=B07WD5978Q
="https://www.amazon.de/s?k="&""&B2
With

=IMPORTXML(I2;"//*[#id='search']/div[1]/div[1]/div/span[3]/div[2]/div[2]/div/span/div/div/div[2]/div[3]/div/a/span[1]/span[2]/span[1]")
I have tried to get the price from Amazon, but it doesn’t work.
From ebay I can get the price with:
=IMPORTXML(G2;"//*[#id='srp-river-results']/ul/li[1]/div/div[2]/div[3]/div[1]/span")
But not including the shipping cost in this example. Also I don't want the EUR to show but only plane number.
All other steps I need, like IF’s - Conditions (Used & New) etc. I have tried multiply option but completely failed.
You can find here an example spreadsheet I prepared but I just can't get further than this
https://docs.google.com/spreadsheets/d/1DqnW4G_FQlnc8vVbz_q2wPako0VuExGcDkWCSACxXEk/edit#gid=705413209
I don't know if what I want is impossible to achieve. Maybe there is also another way than from what I was thinking.
About any directions hints I would be glad since I only have a little more than basic knowledge.
Thank you
Lisa
for amazon, you will need to use API: https://aws.amazon.com/api-gateway/
after that your formula will be:
=IF(REGEXEXTRACT(IMPORTXML(G2; "//*[#id='srp-river-results']/ul/li[1]/div/div[2]/div[3]/div[1]/span"); "\d+(?:.\d+)?")+
IFERROR(REGEXEXTRACT(INDEX(IMPORTXML(G2; "//span[#class='s-item__shipping s-item__logisticsCost']"); 1); "\d+(?:.\d+)?"); 0)>
formula(from_amazon)+formula(for_shipping_from_amazon);
(formula(from_amazon)+formula(for_shipping_from_amazon))-(formula(from_amazon)+formula(for_shipping_from_amazon))*5%;
(REGEXEXTRACT(IMPORTXML(G2; "//*[#id='srp-river-results']/ul/li[1]/div/div[2]/div[3]/div[1]/span"); "\d+(?:.\d+)?")+
IFERROR(REGEXEXTRACT(INDEX(IMPORTXML(G2; "//span[#class='s-item__shipping s-item__logisticsCost']"); 1); "\d+(?:.\d+)?"); 0))-(
IMPORTXML(G2; "//*[#id='srp-river-results']/ul/li[1]/div/div[2]/div[3]/div[1]/span")+
IFERROR(REGEXEXTRACT(INDEX(IMPORTXML(G2; "//span[#class='s-item__shipping s-item__logisticsCost']"); 1); "\d+(?:.\d+)?"); 0))*5%)

Google Analytics API and UI Report Users data not matching

I've extensively searched in forum and after that putting this question so that someone might be able to help me.
Scenario:
In Google analytics dashboard, we have created logical categories based on keywords within PagePath. For instance, if my PagePath contains keyword \sports\ we call it Sports Section category.
We capture the User count weekly from UI as shown below :
I am now trying to move this data in MySQL db using Talend Open Studio Data Integration.
I am using a componenttgoogleanalyticsinput where I can feed Dimensions and Metrics.
Problem:
I analyzed 2 days of data and found the following observation:
Date All User Sports Auto
01-Jun 2220088 325174 51825 (visible in image chart)
02-Jun 2950015 256390 80472 (not visible in above chart)
Total 5170103 581564 132297 (sum of above)
API : 5170103 581564 132297 (received from API)
UI : 4910532 553400 129652 (shown in UI)
So, the data on chart matches with what I'm getting from API BUT they both do not match with what is shown in UI number.
I visited this link to understand what those numbers mean on Google UI.
Problem is, what dimension and metrics should I take so that my API values matches with UI number?
I tried to take ga:PagePath, ga:Date as dimension and ga:Users, ga:pageViews as metrics but they're not working for me.

Exporting Specific Order Details in WooCommerce TXT format

i've been struggling what im going to start to make this function
im looking some plugins that can customize the Export Orders Data, and im using WooCommerce Customer/Order XML Export Suite Extension, And my Company they want to generate it in TXT file not XML file because they need to import the orders data from online woocommerce to local on FoxPro System to update the Stocks in their warehouse inventory.
the format of export should be like this
Example 1
Date Quantity Customer Name Cost Assigned Employee
07/12/17 5 John Doe 5000 MIRIAM
No. Location Product Name
000001 USA iPhone S9 Plus
Example 2
Varation Price Quantity
PC 110 10
PC 200 5
BX 500 3
Thank you.
I know nothing about WooCommerce, but a little web searching tells me that it can Export its data in either XML or CSV (one version of TXT) format.
See: DRAG & DROP WOOCOMMERCE XML & CSV EXPORTS
Perhaps the CSV exported data will be enough to meet your needs.
But if not, I don't know if you have the ability to modify your Foxpro/Visual Foxpro application. If so, you can easily create a utility within your FP/VFP application to either read & import the XML data or to import CSV data.
Once you better understand what options you have, let us know and we can most likely advise you better.
Good Luck

Asp.net how to suggest multiple words inside textbox

Summary: I'm doing a web app to manage products in a warehouse. So I have a db with list of products and quantities. I have one page for unload products when they are used. On that page I have a textbox in which users write the note on how the product has been used.
Request: when users type inside the textbox I'd like a popup to appear showing products that contains the entered characters. More than 1 products is possible. Also users enters quantity of the used products, so I'd like that my app can update the db with new value.
For example:
I have a product named "AAA batteries" and I have 10 in stock.
I also have "9V batteries" 5 in stock.
User write "Used 3 AAA batteries and 4 9V batteries"
While typing I'd like popup appear suggesting "AAA batteries" etc.
Then I'd like to update the db subtracting 3 AAA and 4 9V.
It's ok to use delimiter characters
User press a button to save the note (db should be updated at this point)
Is this possible? I'm already using the ajax autocomplete extender but it can't do exactly what I want. I did a lot o searches but I can't find the right direction, can you help me? Thanks

sum over date range in report (not query)

In Access 2010, I have a little form prior to a report which asks the user for a date range (e.g. 7.7.2015 - 9.9.2015). I pass this date range to the report as filter. The query contains the fields ActDate, Activity and Hours. I now want the report to look like:
Activities from <startDate> to <endDate>:
Activity Total Hours
Reading 5
Writing 8
Talking 3
What I'm getting is
Activities from <startDate> to <endDate>:
Activity Total Hours
Reading 2
Reading 3
Writing 1
Writing 3
Writing 4
Talking 1
Talking 2
The report should sum up equal activities over the selected date range and not display a separate line for each activity which just occured on a different date. Adding a group in the report for activities is no solution (it just adds extra blank lines).
I guess it's possible to build a custom query after the user dialog (in the query I could filter by date range and GROUP BY Activity), but it would be much simpler if the grouping could be done in the report without changing the query. Do I really have to change the query?

Resources