---
title: p.book.approved.completed
description: "## Syntax **p.book.approved.completed**(year=year;month=month;day=day) year year the document was approved month (optional) month of the year the document was approved day (optional) day of the month the document was approved   ## Purpose The p.book.approved.completed() annotation is used to place information…"
url: "https://www.stilo.com/docs/migrate/book/p-book-approved-completed/"
updated: "2021-04-25"
category: Annotations / Book, Map and Bookmap
tags:
  - Annotations
---

# p.book.approved.completed

## Syntax

**p.book.approved.completed**(year=year;month=month;day=day)

year

year the document was approved

month (optional)

month of the year the document was approved

day (optional)

day of the month the document was approved

 

## Purpose

The p.book.approved.completed() annotation is used to place information in the document map about the document's life cycle. This must include the year, and can include the month and day also.

 

This is an example of what the document life cycle information may look like.

[![bookchangehistory-source-document](https://www.stilo.com/wp-content/uploads/2021/03/bookchangehistory-source-document.png)](https://www.stilo.com/wp-content/uploads/2021/03/bookchangehistory-source-document.png)
 The following is an example of what the annotation may look like when filled out. This example uses regular expressions; please see the [patterns](https://www.stilo.com/docs/migrate/types-of-tests-used-in-rules/patterns/) page for more information on how to use these. Please also see [delete](https://www.stilo.com/docs/migrate/editing-rules/deleting-an-annotation/) for how to use the p.delete annotation.Rule for p.book.approved.completed()
 The following is an example of the DITA output you would get from this annotation.

[![bookchangehistory-rule](https://www.stilo.com/wp-content/uploads/2021/03/bookchangehistory-rule.png)](https://www.stilo.com/wp-content/uploads/2021/03/bookchangehistory-rule.png)

```
<bookmeta>
  <bookchangehistory>
    <approved>
      <completed>
        <year>2003</year>
        <month>April</month>
        <day>26</day>
      </completed>
    </approved>
  </bookchangehistory>
</bookmeta>
```
