====Patent====
<onlyinclude>
*patent number
*kind: http://www.uspto.gov/patents-application-process/patent-search/authority-files/uspto-kind-codes
*grantdate
</onlyinclude>
For version 4.5:
<publication-reference>
</document-id>
</publication-reference>
<onlyinclude>
*type
*applicationnumber
*filingdate
</onlyinclude>
<application-reference appl-type="utility">
<document-id>
</application-reference>
<onlyinclude>
For priority, if there is more than 1, we want sequence 01
*prioritydate
*prioritycountry (should use ISO country codes - may need a lookup table)
*prioritypatentnumber
</onlyinclude>
*'''find 4.3 file with priority claim'''
</priority-claim>
</priority-claims>
<onlyinclude>Classification IPC </onlyinclude>- we only need the first one: http://www.wipo.int/export/sites/www/classifications/ipc/en/guide/guide_ipc.pdf
*Section, Class, SubClass - Together these concord to US subclass: http://www.uspto.gov/web/patents/classification/international/ipc/ipc8/ipc_concordance/ipcsel.htm#a
*MainGroup, SubGroup
...
</classifications-ipcr>
<onlyinclude>
Classification CPC - we only need the main one
*Main Group, Subgroup
*'''v 4.2, 4.3, 4.4 does not have this'''
</onlyinclude>
<classifications-cpc>
<main-cpc>
</main-cpc>
</classifications-cpc>
<onlyinclude>
Classification National: Note that the one below comes out to 2/2.11 (http://www.google.com/patents/US8925112#classifications)
*Country
*Class
</onlyinclude>
'''THIS IS NOT UNIQUE. What classifications are we searching for?'''
<classification-national>
<main-classification>2 211</main-classification>
</classification-national>
<onlyinclude>Title of the patent</onlyinclude>:
<invention-title id="d2e61">Aircrew ensembles</invention-title>
<onlyinclude>Number of Claims</onlyinclude>:
<number-of-claims>12</number-of-claims>
<onlyinclude>
Primary examiner:
*FirstName, LastName, Department
</onlyinclude>
<examiners>
<primary-examiner>
...
</examiners>
<onlyinclude>
PCT/Regional Patent Number:
*PCTNumber (just the doc number - if it starts with PCT set a flag)
*'''not in v 4.2, 4.3, 4.4'''
*'''maybe not all patents are filed under PCT, need to use code to search all files for key word'''
</onlyinclude>
<pct-or-regional-filing-data>
<document-id>
====Citations====
<onlyinclude>
Patent Citations (we need all of them):
*CitingPatentNumber (from the patent)
*CitingPatentCountry (from the patent)
</onlyinclude>
<publication-reference>
<document-id>
</document-id>
</publication-reference>
<onlyinclude>
*CitedPatentNumber
*CitedPatentCountry
*'''V 4.2 does not have <us-references-cited>
</onlyinclude>
<us-references-cited>
<us-citation>
...
</us-references-cited>
<onlyinclude>
For non-patent references, we are just going to count them:
*NoNonPatRefs
</onlyinclude>
<us-references-cited>
...
====Inventors====
<onlyinclude>
*'''For v 4.3, 4.4, 4.5'''
*PatentNumber (and country) to build a key
*We need a "standard" name and address object for each inventor
</onlyinclude>
<us-parties>
<us-applicants>
...
</parties>
<onlyinclude>
====Assignees====
*PatentNumber (and country) to build a key
*We need a "standard" name and address object for each assignee
</onlyinclude>
<assignees>
<assignee>
</assignees>
<onlyinclude>
====Other things we might want====
*SymbolPosition, ClassificationValue - we likely don't need them
*Classification status and data source - no idea what these do
</onlyinclude>
====About the scripts====