the current data context
a function for updating a report
Updates an existing report to have the provided data.
the updated report data. The complete data for the report must be provided. Existing fields not included in the updated data will be removed from the report. If the provided parent/patient/place lineage is hydrated (e.g. for a ReportWithLineage), the lineage will be properly dehydrated before being stored.
the updated report with the new _rev value
ResourceNotFoundError if _id does not identify an existing report @throws InvalidArgumentError if _revis not provided or does not match the report's current_revvalue @throws InvalidArgumentError ifformis not provided or is not a supported form id @throws InvalidArgumentError ifcontactis not provided or is not a valid contact @throws InvalidArgumentError if any of the following read-only properties are changed:reported_date, type`
Returns a function for updating a report from the given data context.