usgpo / api

services to access govinfo content and metadata
https://api.govinfo.gov
Other
184 stars 58 forks source link

Amendment flag #58

Open shanebeaulieu opened 4 years ago

shanebeaulieu commented 4 years ago

Can a flag that indicates if a bill has been amended be added to the BILLS API package response data?

jonquandt commented 4 years ago

@shanebeaulieu -- to clarify, is this to show that a particular bill version was reprinted, or are you looking for a new version of the bill that was amended from a previous version?

There are several different bill versions that indicate that a bill was amended.

https://www.govinfo.gov/help/bills#versions

Engrossed Amendment (House) Engrossed Amendment (Senate) Engrossed (House) Engrossed (Senate) Referred with Amendments (House) Referred with Amendments (Senate) Re-engrossed Amendment (House) Re-engrossed Amendment (Senate)

Alternatively, you may wish to check the BILLSTATUS associated with the bill to determine if there have been any amendments: https://github.com/usgpo/bill-status/blob/master/BILLSTATUS-XML_User_User-Guide.md#amendments

This may require some analysis to determine whether the given bill version was before or after an amendment.