# Version and commit

**URL:** https://discourse.openehr.org/t/version-and-commit/12068
**Category:** Technical (archive)
**Created:** [8 March 2006 05:24 UTC](https://discourse.openehr.org/t/version-and-commit/12068 "2006-03-08T05:24:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sam](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@Sam](https://discourse.openehr.org/u/Sam)
#### Post date: [8 March 2006 05:24 UTC](https://discourse.openehr.org/t/version-and-commit/12068/1 "2006-03-08T05:24:37Z")

</div>

Dear All

Heath and I have been discussing issues about commiting and attesting data. We want to be able to attest something that is immutable - the data of the composition and the commit details. There are two types of versioned data (page 41 of the Common IM) - the Version and the imported version.

The parts that need to be immutable are:

- UID

- preceding\_version\_id

- lifecycle\_state

- create\_audit - (presently a function which calls the commit\_audit if not imported and the original\_create\_audit if it is imported)

- data  
In the Ocean implementation we store the composition as a blob and would like to store everything that is immutable - nothing that changes (e.g. attestations, contribution ID etc). I have proposed that this set of attributes makes up the X\_Version - that information to send as part of an extract - as it is unchanging. Heath is keen to have the Version be able to deal with this and store it consistently - he would like to make the reference model deal with this more elegantly. He has suggested that we change what is now called commit\_audit to create\_audit and change the IMPORTED\_VERSION original\_create\_audit to local\_commit\_audit.

This would mean that commit\_audit became a function on each class (now called create\_audit) returning the create\_audit on the VERSION and the local\_commit\_audit on the IMPORTED\_VERSION.

Any ideas - it is a very minor change but I think meets both our needs.

Cheers, Sam

---

<div class="post-metadata">

### Author: ![Heath\_Frankel](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/h/c4cdca/32.png) [@Heath\_Frankel](https://discourse.openehr.org/u/Heath_Frankel)
#### Post date: [8 March 2006 07:31 UTC](https://discourse.openehr.org/t/version-and-commit/12068/2 "2006-03-08T07:31:55Z")

</div>

Actually I suggested Import\_Commit\_Audit not Local\_Commit\_Audit.

Heath
