# EBooking Difference Between Appointment Versions - Magentus Practice Management FHIR Implementation Guide v1.2.60

* [**Table of Contents**](toc.md)
* [**Artifacts Summary**](artifacts.md)
* **EBooking Difference Between Appointment Versions**

## Resource Profile: EBooking Difference Between Appointment Versions 

| | |
| :--- | :--- |
| *Official URL*:http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference | *Version*:1.2.60 |
| Active as of 2026-04-05 | *Computable Name*:EBookingsDifference |

 
Documents the difference between two versions of a theatre booking. Uses a structured form rather than a string to allow for easier processing. 

There are three kinds of changes documented in this resources. Zero or more of each kind is included in the change resource.

1. Resources that have been**added**to the booking. This should only ever be`ChargeItem`resources that carry invoiced codes such as MBS item numbers. The reference to the added resource is provided as a FHIR reference.
1. Resources that have been**removed**from the booking. Again, this should only be`ChargeItem`resources. The identity of the`ChargeItem`is provided as a string as the resource no longer exists so cannot be held in a FHIR reference as the server enforces referential integrity.
1. Resources that have been modified will have a reference to the resource as well as a list of attributes (as strings) that have been changed. There are a few things to note:
* `ChargeItem`'s are never changed but rather added or removed.
* Attributes are described as strings that include the path to the change, i.e. if the change is in a subcomponent of a resource attribute, you will see the flattened path to that attribute. For example, `name[0].family` for a change to the last name of the first Patient name.
* Some attribute change descriptions have been modified to replace indexes in lists with more descriptive names. For example, `contained[Device].deviceName[0].name` identifying a change to a device name within the contained resources of another resource.

**Usages:**

* Examples for this Profile: [Basic/EBookingDifferenceExample](Basic-EBookingDifferenceExample.md)

You can also check for [usages in the FHIR IG Statistics](https://packages2.fhir.org/xig/geniesolutions.fhir|current/StructureDefinition/ebookings-difference)

### Formal Views of Profile Content

 [Description of Profiles, Differentials, Snapshots and how the different presentations work](http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#structure-definitions). 

 

Other representations of profile: [CSV](StructureDefinition-ebookings-difference.csv), [Excel](StructureDefinition-ebookings-difference.xlsx), [Schematron](StructureDefinition-ebookings-difference.sch) 



## Resource Content

```json
{
  "resourceType" : "StructureDefinition",
  "id" : "ebookings-difference",
  "url" : "http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference",
  "version" : "1.2.60",
  "name" : "EBookingsDifference",
  "title" : "EBooking Difference Between Appointment Versions",
  "status" : "active",
  "date" : "2026-04-05T21:47:41+00:00",
  "publisher" : "Magentus Practice Management",
  "contact" : [{
    "name" : "Magentus Practice Management",
    "telecom" : [{
      "system" : "url",
      "value" : "https://www.magentus.com/practice-management"
    },
    {
      "system" : "email",
      "value" : "andy.bond@magentus.com"
    }]
  },
  {
    "name" : "Magentus Practice Management",
    "telecom" : [{
      "system" : "url",
      "value" : "https://www.magentus.com/practice-management",
      "use" : "work"
    }]
  }],
  "description" : "Documents the difference between two versions of a theatre booking. Uses a structured form rather than a string to allow for easier processing.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "urn:iso:std:iso:3166",
      "code" : "AU"
    }]
  }],
  "fhirVersion" : "4.0.1",
  "mapping" : [{
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  },
  {
    "identity" : "w5",
    "uri" : "http://hl7.org/fhir/fivews",
    "name" : "FiveWs Pattern Mapping"
  }],
  "kind" : "resource",
  "abstract" : false,
  "type" : "Basic",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Basic",
  "derivation" : "constraint",
  "differential" : {
    "element" : [{
      "id" : "Basic",
      "path" : "Basic"
    },
    {
      "id" : "Basic.extension",
      "path" : "Basic.extension",
      "slicing" : {
        "discriminator" : [{
          "type" : "value",
          "path" : "url"
        }],
        "ordered" : false,
        "rules" : "open"
      }
    },
    {
      "id" : "Basic.extension:addition",
      "path" : "Basic.extension",
      "sliceName" : "addition",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Extension",
        "profile" : ["http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-addition"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Basic.extension:deletion",
      "path" : "Basic.extension",
      "sliceName" : "deletion",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Extension",
        "profile" : ["http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-deletion"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Basic.extension:modification",
      "path" : "Basic.extension",
      "sliceName" : "modification",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Extension",
        "profile" : ["http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-modification"]
      }],
      "mustSupport" : true
    },
    {
      "id" : "Basic.code",
      "path" : "Basic.code",
      "patternCodeableConcept" : {
        "coding" : [{
          "system" : "http://fhir.geniesolutions.io/CodeSystem/basic-type",
          "code" : "Difference"
        }]
      },
      "mustSupport" : true
    },
    {
      "id" : "Basic.subject",
      "path" : "Basic.subject",
      "short" : "Appointment related to the difference information",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://fhir.geniesolutions.io/StructureDefinition/ebookings-appointment"]
      }]
    }]
  }
}

```
