Magentus Practice Management FHIR® Implementation Guide
1.3.4 - Release Australia

This page is part of the Magentus Practice Management FHIR Implementation Guide (v1.3.4: Releases Draft) based on FHIR (HL7® FHIR® Standard) R4. No current official version has been published yet. For a full list of available versions, see the Directory of published versions

Resource Profile: EBooking Difference Between Appointment Versions

Official URL: http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference Version: 1.3.4
Active as of 2026-11-06 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.
  2. 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, because the resource no longer exists.
  3. 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:
    • ChargeItems 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.

Current behaviour: the platform keeps one change record per booking. Each change makes a new version of it, with the same id. The current version holds the latest difference, and the previous versions hold the earlier ones (Basic/[id]/_history). When a booking is created, every resource in the booking is listed as added, not only ChargeItems. After a hospital response or a cancellation, the record holds only the changes to the Appointment. A change that a hospital makes produces no change record. See Theatre Booking Content Changes.

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

Description Differentials, Snapshots, and other representations.

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Basic 0..* Basic Resource for non-supported content
Basic.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
Basic.Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Basic.Slices for extension.extension:addition This element must be supported. 0..* Reference() EBooking Difference Addition
URL: http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-addition
Basic.Slices for extension.extension:deletion This element must be supported. 0..* string EBooking Difference Deletion
URL: http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-deletion
Basic.Slices for extension.extension:modification This element must be supported. 0..* (Complex) EBooking Difference Modification
URL: http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-modification
Basic.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
Basic.code This element is a modifier element. This element must be supported. This element is included in summaries. 1..1 CodeableConcept Kind of Resource
Binding: BasicResourceTypes (example): Codes for identifying types of resources not yet defined by FHIR.
Required Pattern:
{
  "coding" : [
    {
      "system" : "http://fhir.geniesolutions.io/CodeSystem/basic-type",
      "code" : "Difference"
    }
  ]
}
Basic.subject This element is included in summaries. 0..1 Reference(EBookings Appointment) Appointment related to the difference information

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Basic.code Base example Basic Resource Types 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Basic If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Basic If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error Basic If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error Basic If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Basic A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

This structure is derived from Basic

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Basic 0..* Basic Resource for non-supported content
Basic.Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Basic.Slices for extension.extension:addition This element must be supported. 0..* Reference() EBooking Difference Addition
URL: http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-addition
Basic.Slices for extension.extension:deletion This element must be supported. 0..* string EBooking Difference Deletion
URL: http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-deletion
Basic.Slices for extension.extension:modification This element must be supported. 0..* (Complex) EBooking Difference Modification
URL: http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-modification
Basic.code This element must be supported. 1..1 CodeableConcept Kind of Resource
Required Pattern:
{
  "coding" : [
    {
      "system" : "http://fhir.geniesolutions.io/CodeSystem/basic-type",
      "code" : "Difference"
    }
  ]
}
Basic.subject 0..1 Reference(EBookings Appointment) Appointment related to the difference information

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraints    Filter: doco
Basic 0..* Basic Resource for non-supported content
Basic.id This element is included in summaries. 0..1 id Logical id of this artifact
Basic.meta This element is included in summaries. 0..1 Meta Metadata about the resource
Basic.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
Basic.language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
Basic.text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
Basic.contained 0..* Resource Contained, inline Resources
Basic.Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Basic.Slices for extension.extension:addition This element must be supported. 0..* Reference() EBooking Difference Addition
URL: http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-addition
Basic.Slices for extension.extension:deletion This element must be supported. 0..* string EBooking Difference Deletion
URL: http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-deletion
Basic.Slices for extension.extension:modification This element must be supported. 0..* (Complex) EBooking Difference Modification
URL: http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-modification
Basic.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
Basic.identifier This element is included in summaries. 0..* Identifier Business identifier
Basic.code This element is a modifier element. This element must be supported. This element is included in summaries. 1..1 CodeableConcept Kind of Resource
Binding: BasicResourceTypes (example): Codes for identifying types of resources not yet defined by FHIR.
Required Pattern:
{
  "coding" : [
    {
      "system" : "http://fhir.geniesolutions.io/CodeSystem/basic-type",
      "code" : "Difference"
    }
  ]
}
Basic.subject This element is included in summaries. 0..1 Reference(EBookings Appointment) Appointment related to the difference information
Basic.created This element is included in summaries. 0..1 date When created
Basic.author This element is included in summaries. 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson | Organization) Who created

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Basic.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Basic.code Base example Basic Resource Types 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Basic If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Basic If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error Basic If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error Basic If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Basic A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Basic 0..* Basic Resource for non-supported content
Basic.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
Basic.Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Basic.Slices for extension.extension:addition This element must be supported. 0..* Reference() EBooking Difference Addition
URL: http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-addition
Basic.Slices for extension.extension:deletion This element must be supported. 0..* string EBooking Difference Deletion
URL: http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-deletion
Basic.Slices for extension.extension:modification This element must be supported. 0..* (Complex) EBooking Difference Modification
URL: http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-modification
Basic.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
Basic.code This element is a modifier element. This element must be supported. This element is included in summaries. 1..1 CodeableConcept Kind of Resource
Binding: BasicResourceTypes (example): Codes for identifying types of resources not yet defined by FHIR.
Required Pattern:
{
  "coding" : [
    {
      "system" : "http://fhir.geniesolutions.io/CodeSystem/basic-type",
      "code" : "Difference"
    }
  ]
}
Basic.subject This element is included in summaries. 0..1 Reference(EBookings Appointment) Appointment related to the difference information

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Basic.code Base example Basic Resource Types 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Basic If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Basic If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error Basic If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error Basic If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Basic A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

Differential View

This structure is derived from Basic

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Basic 0..* Basic Resource for non-supported content
Basic.Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Basic.Slices for extension.extension:addition This element must be supported. 0..* Reference() EBooking Difference Addition
URL: http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-addition
Basic.Slices for extension.extension:deletion This element must be supported. 0..* string EBooking Difference Deletion
URL: http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-deletion
Basic.Slices for extension.extension:modification This element must be supported. 0..* (Complex) EBooking Difference Modification
URL: http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-modification
Basic.code This element must be supported. 1..1 CodeableConcept Kind of Resource
Required Pattern:
{
  "coding" : [
    {
      "system" : "http://fhir.geniesolutions.io/CodeSystem/basic-type",
      "code" : "Difference"
    }
  ]
}
Basic.subject 0..1 Reference(EBookings Appointment) Appointment related to the difference information

doco Documentation for this format

Snapshot ViewView

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Basic 0..* Basic Resource for non-supported content
Basic.id This element is included in summaries. 0..1 id Logical id of this artifact
Basic.meta This element is included in summaries. 0..1 Meta Metadata about the resource
Basic.implicitRules This element is a modifier element. This element is included in summaries. 0..1 uri A set of rules under which this content was created
Basic.language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.
Additional BindingsPurpose
AllLanguages Max Binding
Basic.text 0..1 Narrative Text summary of the resource, for human interpretation
This profile does not constrain the narrative in regard to content, language, or traceability to data elements
Basic.contained 0..* Resource Contained, inline Resources
Basic.Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
Basic.Slices for extension.extension:addition This element must be supported. 0..* Reference() EBooking Difference Addition
URL: http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-addition
Basic.Slices for extension.extension:deletion This element must be supported. 0..* string EBooking Difference Deletion
URL: http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-deletion
Basic.Slices for extension.extension:modification This element must be supported. 0..* (Complex) EBooking Difference Modification
URL: http://fhir.geniesolutions.io/StructureDefinition/ebookings-difference-modification
Basic.modifierExtension This element is a modifier element. 0..* Extension Extensions that cannot be ignored
Basic.identifier This element is included in summaries. 0..* Identifier Business identifier
Basic.code This element is a modifier element. This element must be supported. This element is included in summaries. 1..1 CodeableConcept Kind of Resource
Binding: BasicResourceTypes (example): Codes for identifying types of resources not yet defined by FHIR.
Required Pattern:
{
  "coding" : [
    {
      "system" : "http://fhir.geniesolutions.io/CodeSystem/basic-type",
      "code" : "Difference"
    }
  ]
}
Basic.subject This element is included in summaries. 0..1 Reference(EBookings Appointment) Appointment related to the difference information
Basic.created This element is included in summaries. 0..1 date When created
Basic.author This element is included in summaries. 0..1 Reference(Practitioner | PractitionerRole | Patient | RelatedPerson | Organization) Who created

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Basic.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Basic.code Base example Basic Resource Types 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Basic If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Basic If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error Basic If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error Basic If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Basic A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()

 

Other representations of profile: CSV, Excel, Schematron