parkerhancock / patent_client

A collection of ORM-style clients to public patent data
Other
92 stars 35 forks source link

PtabDecision not returning all data #172

Open haoopeng opened 4 months ago

haoopeng commented 4 months ago

Hello Team,

Thanks for creating such a convenient API. I'm using the PtabDecision function to get the appeal data using code: PtabDecision.objects.filter(proceeding_type_category = "appeal"). However, it returns limited data fields compared to what I can get using the official PTAB API (see the screenshot). The PtabDecision function does return more records than the official API though (which retrieves less than 500 records). Any idea on how to access more detailed data fields when using the PtabDecision function? Thanks for any help!

Screenshot 2024-06-18 at 09 49 34
parkerhancock commented 4 months ago

Hey! Thanks for the note!

You are correct that the PtabDecision model doesn't model all those parameters. In my personal use of the PTAB API, I usually use the proceeding, rather than the decision endpoint.

If you want, I'm happy to approve a PR to add those fields to the PTAB model. You just need to modify this file, specifically adding those fields to the PtabDecision object.

Or, you can traverse the decision back to the proceeding, and get the application number, just do this:

>>> res = PtabDecision.objects.filter(proceeding_type_category="appeal")
>>> decision = res.first()
>>> decision.proceeding.respondent_application_number_text
"15579556"
haoopeng commented 4 months ago

Hi Parker,

Thanks for your prompt reply! That's awesome to work around the data. I've send a PR. Let me know if it's working. Thanks!