Magentus Practice Management FHIR Implementation Guide
1.2.16 - ci-build

Magentus Practice Management FHIR Implementation Guide - Local Development build (v1.2.16) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## Resource Profile: Genie Invoice Base

Official URL: http://fhir.geniesolutions.io/StructureDefinition/genie-invoice | Version: 1.2.16
Draft as of 2024-08-15 | Computable Name: GSInvoice

Genie Invoice Base profile

Usage:

- Examples for this Resource Profile: Invoice/19596b00-ee0a-54de-98e8-ccf6ed86a93e

### Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

- Differential Table
- Key Elements Table
- Snapshot Table
- Statistics/References
- All

This structure is derived from Invoice

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Invoice |  | 0..* | Invoice | Invoice containing ChargeItems from an Account
id | S | 1..1 | id | Generated from Genie context and invoice table Id
Slices for contained |  | 0..* | Resource | Contained, inline Resources Slice: Unordered, Open by type:$this
contained:charge-item | S | 0..* | GSChargeItem | Item containing charge code(s) associated with the provision of healthcare provider products
status | S | 1..1 | code | draft | balanced | cancelled | issued | entered-in-error
cancelledReason | S | 0..1 | string | Reason for cancellation of this Invoice
type | S | 0..1 | CodeableConcept | IDVA | ODVA | ...
subject | S | 0..1 | Reference(AU Base Patient) | patient reference
recipient | S | 0..1 | Reference(AU Base Patient | AU Base Related Person | AU Base Organisation) | Reference to account holder of patient for invoice, could be medicare, dva etc.
date | S | 0..1 | dateTime | Invoice date
participant |  |  |  |
role | S | 0..1 | CodeableConcept | creator | servicingProvider
actor | S | 1..1 | Reference(AU Base Practitioner | AU Base Practitioner Role) | Reference to the creator or servcingProvider
issuer | S | 0..1 | Reference(AU Base Organisation) | Practice related to the invoice
lineItem |  |  |  |
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
line-item-payment | S | 0..1 | Money | Invoice Item Payment URL: http://fhir.geniesolutions.io/StructureDefinition/invoice-item-payment
line-item-balance | S | 0..1 | Money | Invoice Item Balance URL: http://fhir.geniesolutions.io/StructureDefinition/invoice-item-balance
sequence | S | 0..1 | positiveInt | Incremental Id on invoice, e.g. 1
Slices for chargeItem[x] |  | 1..1 | Reference(ChargeItem), CodeableConcept | Reference to ChargeItem containing details of this line item or an inline billing code Slice: Unordered, Open by type:$this
chargeItem[x]:chargeItemCodeableConcept | S | 0..1 | CodeableConcept | Billed item number
chargeItem[x]:chargeItemReference | S | 0..1 | Reference(Genie ChargeItem Base) | Reference to contained ChargeItem, e.g. #23
priceComponent |  |  |  |
type | S | 1..1 | code | base | discount | tax | deduction
amount | S | 0..1 | Money | Monetary amount associated with this component
totalGross | S | 0..1 | Money | Total with tax
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Invoice |  | 0..* | Invoice | Invoice containing ChargeItems from an Account
id | S Σ | 1..1 | id | Generated from Genie context and invoice table Id
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
Slices for contained |  | 0..* | Resource | Contained, inline Resources Slice: Unordered, Open by type:$this
contained:charge-item | S | 0..* | GSChargeItem | Item containing charge code(s) associated with the provision of healthcare provider products
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
status | ?!S Σ | 1..1 | code | draft | balanced | cancelled | issued | entered-in-error Binding: InvoiceStatus (required): Codes identifying the lifecycle stage of an Invoice.
cancelledReason | S | 0..1 | string | Reason for cancellation of this Invoice
type | S Σ | 0..1 | CodeableConcept | IDVA | ODVA | ...
subject | S Σ | 0..1 | Reference(AU Base Patient) | patient reference
recipient | S Σ | 0..1 | Reference(AU Base Patient | AU Base Related Person | AU Base Organisation) | Reference to account holder of patient for invoice, could be medicare, dva etc.
date | S Σ | 0..1 | dateTime | Invoice date
participant |  | 0..* | BackboneElement | Participant in creation of this Invoice
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
role | S | 0..1 | CodeableConcept | creator | servicingProvider
actor | S | 1..1 | Reference(AU Base Practitioner | AU Base Practitioner Role) | Reference to the creator or servcingProvider
issuer | S | 0..1 | Reference(AU Base Organisation) | Practice related to the invoice
lineItem |  | 0..* | BackboneElement | Line items of this Invoice
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
line-item-payment | S | 0..1 | Money | Invoice Item Payment URL: http://fhir.geniesolutions.io/StructureDefinition/invoice-item-payment
line-item-balance | S | 0..1 | Money | Invoice Item Balance URL: http://fhir.geniesolutions.io/StructureDefinition/invoice-item-balance
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
sequence | S | 0..1 | positiveInt | Incremental Id on invoice, e.g. 1
Slices for chargeItem[x] |  | 1..1 |  | Reference to ChargeItem containing details of this line item or an inline billing code Slice: Unordered, Closed by type:$this
chargeItemReference |  |  | Reference(ChargeItem) |
chargeItemCodeableConcept |  |  | CodeableConcept |
chargeItem[x]:chargeItemCodeableConcept | S | 0..1 | CodeableConcept | Billed item number
chargeItem[x]:chargeItemReference | S | 0..1 | Reference(Genie ChargeItem Base) | Reference to contained ChargeItem, e.g. #23
priceComponent |  | 0..* | BackboneElement | Components of total line item price
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
type | S | 1..1 | code | base | discount | tax | deduction Binding: InvoicePriceComponentType (required): Codes indicating the kind of the price component.
amount | S | 0..1 | Money | Monetary amount associated with this component
totalGross | S Σ | 0..1 | Money | Total with tax
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Invoice.status | required | InvoiceStatus `http://hl7.org/fhir/ValueSet/invoice-status|4.0.1` from the FHIR Standard
Invoice.lineItem.priceComponent.type | required | InvoicePriceComponentType `http://hl7.org/fhir/ValueSet/invoice-priceComponentType|4.0.1` from the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | Invoice | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Invoice | 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 | Invoice | 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 | Invoice | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Invoice | 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() |

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Invoice |  | 0..* | Invoice | Invoice containing ChargeItems from an Account
id | S Σ | 1..1 | id | Generated from Genie context and invoice table Id
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation
Slices for contained |  | 0..* | Resource | Contained, inline Resources Slice: Unordered, Open by type:$this
contained:charge-item | S | 0..* | GSChargeItem | Item containing charge code(s) associated with the provision of healthcare provider products
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | Business Identifier for item
status | ?!S Σ | 1..1 | code | draft | balanced | cancelled | issued | entered-in-error Binding: InvoiceStatus (required): Codes identifying the lifecycle stage of an Invoice.
cancelledReason | S | 0..1 | string | Reason for cancellation of this Invoice
type | S Σ | 0..1 | CodeableConcept | IDVA | ODVA | ...
subject | S Σ | 0..1 | Reference(AU Base Patient) | patient reference
recipient | S Σ | 0..1 | Reference(AU Base Patient | AU Base Related Person | AU Base Organisation) | Reference to account holder of patient for invoice, could be medicare, dva etc.
date | S Σ | 0..1 | dateTime | Invoice date
participant |  | 0..* | BackboneElement | Participant in creation of this Invoice
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
role | S | 0..1 | CodeableConcept | creator | servicingProvider
actor | S | 1..1 | Reference(AU Base Practitioner | AU Base Practitioner Role) | Reference to the creator or servcingProvider
issuer | S | 0..1 | Reference(AU Base Organisation) | Practice related to the invoice
account |  | 0..1 | Reference(Account) | Account that is being balanced
lineItem |  | 0..* | BackboneElement | Line items of this Invoice
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
line-item-payment | S | 0..1 | Money | Invoice Item Payment URL: http://fhir.geniesolutions.io/StructureDefinition/invoice-item-payment
line-item-balance | S | 0..1 | Money | Invoice Item Balance URL: http://fhir.geniesolutions.io/StructureDefinition/invoice-item-balance
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
sequence | S | 0..1 | positiveInt | Incremental Id on invoice, e.g. 1
Slices for chargeItem[x] |  | 1..1 |  | Reference to ChargeItem containing details of this line item or an inline billing code Slice: Unordered, Closed by type:$this
chargeItemReference |  |  | Reference(ChargeItem) |
chargeItemCodeableConcept |  |  | CodeableConcept |
chargeItem[x]:chargeItemCodeableConcept | S | 0..1 | CodeableConcept | Billed item number
chargeItem[x]:chargeItemReference | S | 0..1 | Reference(Genie ChargeItem Base) | Reference to contained ChargeItem, e.g. #23
priceComponent |  | 0..* | BackboneElement | Components of total line item price
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
type | S | 1..1 | code | base | discount | tax | deduction Binding: InvoicePriceComponentType (required): Codes indicating the kind of the price component.
code |  | 0..1 | CodeableConcept | Code identifying the specific component
factor |  | 0..1 | decimal | Factor used for calculating this component
amount | S | 0..1 | Money | Monetary amount associated with this component
totalPriceComponent |  | 0..* | See priceComponent (Invoice) | Components of Invoice total
totalNet | Σ | 0..1 | Money | Net total of this Invoice
totalGross | S Σ | 0..1 | Money | Total with tax
paymentTerms |  | 0..1 | markdown | Payment details
note |  | 0..* | Annotation | Comments made about the invoice
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Invoice.language | preferred | CommonLanguages
Additional Bindings | Purpose
AllLanguages | Max Binding
`http://hl7.org/fhir/ValueSet/languages` from the FHIR Standard
Invoice.status | required | InvoiceStatus `http://hl7.org/fhir/ValueSet/invoice-status|4.0.1` from the FHIR Standard
Invoice.lineItem.priceComponent.type | required | InvoicePriceComponentType `http://hl7.org/fhir/ValueSet/invoice-priceComponentType|4.0.1` from the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | Invoice | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Invoice | 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 | Invoice | 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 | Invoice | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Invoice | 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 Invoice

Summary

Mandatory: 1 element
Must-Support: 19 elements

Structures

This structure refers to these other structures:

- Genie ChargeItem Base (http://fhir.geniesolutions.io/StructureDefinition/genie-chargeitem)
- AU Base Patient (http://hl7.org.au/fhir/StructureDefinition/au-patient)
- AU Base Related Person (http://hl7.org.au/fhir/StructureDefinition/au-relatedperson)
- AU Base Organisation (http://hl7.org.au/fhir/StructureDefinition/au-organization)
- AU Base Practitioner (http://hl7.org.au/fhir/StructureDefinition/au-practitioner)
- AU Base Practitioner Role (http://hl7.org.au/fhir/StructureDefinition/au-practitionerrole)

Extensions

This structure refers to these extensions:

- http://fhir.geniesolutions.io/StructureDefinition/invoice-item-payment
- http://fhir.geniesolutions.io/StructureDefinition/invoice-item-balance

Slices

This structure defines the following Slices:

- The element 1 is sliced based on the value of Invoice.contained
- The element 1 is sliced based on the value of Invoice.lineItem.chargeItem[x]

Differential View

This structure is derived from Invoice

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Invoice |  | 0..* | Invoice | Invoice containing ChargeItems from an Account
id | S | 1..1 | id | Generated from Genie context and invoice table Id
Slices for contained |  | 0..* | Resource | Contained, inline Resources Slice: Unordered, Open by type:$this
contained:charge-item | S | 0..* | GSChargeItem | Item containing charge code(s) associated with the provision of healthcare provider products
status | S | 1..1 | code | draft | balanced | cancelled | issued | entered-in-error
cancelledReason | S | 0..1 | string | Reason for cancellation of this Invoice
type | S | 0..1 | CodeableConcept | IDVA | ODVA | ...
subject | S | 0..1 | Reference(AU Base Patient) | patient reference
recipient | S | 0..1 | Reference(AU Base Patient | AU Base Related Person | AU Base Organisation) | Reference to account holder of patient for invoice, could be medicare, dva etc.
date | S | 0..1 | dateTime | Invoice date
participant |  |  |  |
role | S | 0..1 | CodeableConcept | creator | servicingProvider
actor | S | 1..1 | Reference(AU Base Practitioner | AU Base Practitioner Role) | Reference to the creator or servcingProvider
issuer | S | 0..1 | Reference(AU Base Organisation) | Practice related to the invoice
lineItem |  |  |  |
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
line-item-payment | S | 0..1 | Money | Invoice Item Payment URL: http://fhir.geniesolutions.io/StructureDefinition/invoice-item-payment
line-item-balance | S | 0..1 | Money | Invoice Item Balance URL: http://fhir.geniesolutions.io/StructureDefinition/invoice-item-balance
sequence | S | 0..1 | positiveInt | Incremental Id on invoice, e.g. 1
Slices for chargeItem[x] |  | 1..1 | Reference(ChargeItem), CodeableConcept | Reference to ChargeItem containing details of this line item or an inline billing code Slice: Unordered, Open by type:$this
chargeItem[x]:chargeItemCodeableConcept | S | 0..1 | CodeableConcept | Billed item number
chargeItem[x]:chargeItemReference | S | 0..1 | Reference(Genie ChargeItem Base) | Reference to contained ChargeItem, e.g. #23
priceComponent |  |  |  |
type | S | 1..1 | code | base | discount | tax | deduction
amount | S | 0..1 | Money | Monetary amount associated with this component
totalGross | S | 0..1 | Money | Total with tax
Documentation for this format

Key Elements View

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Invoice |  | 0..* | Invoice | Invoice containing ChargeItems from an Account
id | S Σ | 1..1 | id | Generated from Genie context and invoice table Id
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
Slices for contained |  | 0..* | Resource | Contained, inline Resources Slice: Unordered, Open by type:$this
contained:charge-item | S | 0..* | GSChargeItem | Item containing charge code(s) associated with the provision of healthcare provider products
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
status | ?!S Σ | 1..1 | code | draft | balanced | cancelled | issued | entered-in-error Binding: InvoiceStatus (required): Codes identifying the lifecycle stage of an Invoice.
cancelledReason | S | 0..1 | string | Reason for cancellation of this Invoice
type | S Σ | 0..1 | CodeableConcept | IDVA | ODVA | ...
subject | S Σ | 0..1 | Reference(AU Base Patient) | patient reference
recipient | S Σ | 0..1 | Reference(AU Base Patient | AU Base Related Person | AU Base Organisation) | Reference to account holder of patient for invoice, could be medicare, dva etc.
date | S Σ | 0..1 | dateTime | Invoice date
participant |  | 0..* | BackboneElement | Participant in creation of this Invoice
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
role | S | 0..1 | CodeableConcept | creator | servicingProvider
actor | S | 1..1 | Reference(AU Base Practitioner | AU Base Practitioner Role) | Reference to the creator or servcingProvider
issuer | S | 0..1 | Reference(AU Base Organisation) | Practice related to the invoice
lineItem |  | 0..* | BackboneElement | Line items of this Invoice
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
line-item-payment | S | 0..1 | Money | Invoice Item Payment URL: http://fhir.geniesolutions.io/StructureDefinition/invoice-item-payment
line-item-balance | S | 0..1 | Money | Invoice Item Balance URL: http://fhir.geniesolutions.io/StructureDefinition/invoice-item-balance
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
sequence | S | 0..1 | positiveInt | Incremental Id on invoice, e.g. 1
Slices for chargeItem[x] |  | 1..1 |  | Reference to ChargeItem containing details of this line item or an inline billing code Slice: Unordered, Closed by type:$this
chargeItemReference |  |  | Reference(ChargeItem) |
chargeItemCodeableConcept |  |  | CodeableConcept |
chargeItem[x]:chargeItemCodeableConcept | S | 0..1 | CodeableConcept | Billed item number
chargeItem[x]:chargeItemReference | S | 0..1 | Reference(Genie ChargeItem Base) | Reference to contained ChargeItem, e.g. #23
priceComponent |  | 0..* | BackboneElement | Components of total line item price
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
type | S | 1..1 | code | base | discount | tax | deduction Binding: InvoicePriceComponentType (required): Codes indicating the kind of the price component.
amount | S | 0..1 | Money | Monetary amount associated with this component
totalGross | S Σ | 0..1 | Money | Total with tax
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Invoice.status | required | InvoiceStatus `http://hl7.org/fhir/ValueSet/invoice-status|4.0.1` from the FHIR Standard
Invoice.lineItem.priceComponent.type | required | InvoicePriceComponentType `http://hl7.org/fhir/ValueSet/invoice-priceComponentType|4.0.1` from the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | Invoice | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Invoice | 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 | Invoice | 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 | Invoice | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Invoice | 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() |

Snapshot View

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Invoice |  | 0..* | Invoice | Invoice containing ChargeItems from an Account
id | S Σ | 1..1 | id | Generated from Genie context and invoice table Id
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation
Slices for contained |  | 0..* | Resource | Contained, inline Resources Slice: Unordered, Open by type:$this
contained:charge-item | S | 0..* | GSChargeItem | Item containing charge code(s) associated with the provision of healthcare provider products
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | Business Identifier for item
status | ?!S Σ | 1..1 | code | draft | balanced | cancelled | issued | entered-in-error Binding: InvoiceStatus (required): Codes identifying the lifecycle stage of an Invoice.
cancelledReason | S | 0..1 | string | Reason for cancellation of this Invoice
type | S Σ | 0..1 | CodeableConcept | IDVA | ODVA | ...
subject | S Σ | 0..1 | Reference(AU Base Patient) | patient reference
recipient | S Σ | 0..1 | Reference(AU Base Patient | AU Base Related Person | AU Base Organisation) | Reference to account holder of patient for invoice, could be medicare, dva etc.
date | S Σ | 0..1 | dateTime | Invoice date
participant |  | 0..* | BackboneElement | Participant in creation of this Invoice
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
role | S | 0..1 | CodeableConcept | creator | servicingProvider
actor | S | 1..1 | Reference(AU Base Practitioner | AU Base Practitioner Role) | Reference to the creator or servcingProvider
issuer | S | 0..1 | Reference(AU Base Organisation) | Practice related to the invoice
account |  | 0..1 | Reference(Account) | Account that is being balanced
lineItem |  | 0..* | BackboneElement | Line items of this Invoice
id |  | 0..1 | string | Unique id for inter-element referencing
Slices for extension |  | 0..* | Extension | Extension Slice: Unordered, Open by value:url
line-item-payment | S | 0..1 | Money | Invoice Item Payment URL: http://fhir.geniesolutions.io/StructureDefinition/invoice-item-payment
line-item-balance | S | 0..1 | Money | Invoice Item Balance URL: http://fhir.geniesolutions.io/StructureDefinition/invoice-item-balance
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
sequence | S | 0..1 | positiveInt | Incremental Id on invoice, e.g. 1
Slices for chargeItem[x] |  | 1..1 |  | Reference to ChargeItem containing details of this line item or an inline billing code Slice: Unordered, Closed by type:$this
chargeItemReference |  |  | Reference(ChargeItem) |
chargeItemCodeableConcept |  |  | CodeableConcept |
chargeItem[x]:chargeItemCodeableConcept | S | 0..1 | CodeableConcept | Billed item number
chargeItem[x]:chargeItemReference | S | 0..1 | Reference(Genie ChargeItem Base) | Reference to contained ChargeItem, e.g. #23
priceComponent |  | 0..* | BackboneElement | Components of total line item price
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
type | S | 1..1 | code | base | discount | tax | deduction Binding: InvoicePriceComponentType (required): Codes indicating the kind of the price component.
code |  | 0..1 | CodeableConcept | Code identifying the specific component
factor |  | 0..1 | decimal | Factor used for calculating this component
amount | S | 0..1 | Money | Monetary amount associated with this component
totalPriceComponent |  | 0..* | See priceComponent (Invoice) | Components of Invoice total
totalNet | Σ | 0..1 | Money | Net total of this Invoice
totalGross | S Σ | 0..1 | Money | Total with tax
paymentTerms |  | 0..1 | markdown | Payment details
note |  | 0..* | Annotation | Comments made about the invoice
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Invoice.language | preferred | CommonLanguages
Additional Bindings | Purpose
AllLanguages | Max Binding
`http://hl7.org/fhir/ValueSet/languages` from the FHIR Standard
Invoice.status | required | InvoiceStatus `http://hl7.org/fhir/ValueSet/invoice-status|4.0.1` from the FHIR Standard
Invoice.lineItem.priceComponent.type | required | InvoicePriceComponentType `http://hl7.org/fhir/ValueSet/invoice-priceComponentType|4.0.1` from the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dom-2 | error | Invoice | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | Invoice | 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 | Invoice | 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 | Invoice | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | Invoice | 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 Invoice

Summary

Mandatory: 1 element
Must-Support: 19 elements

Structures

This structure refers to these other structures:

- Genie ChargeItem Base (http://fhir.geniesolutions.io/StructureDefinition/genie-chargeitem)
- AU Base Patient (http://hl7.org.au/fhir/StructureDefinition/au-patient)
- AU Base Related Person (http://hl7.org.au/fhir/StructureDefinition/au-relatedperson)
- AU Base Organisation (http://hl7.org.au/fhir/StructureDefinition/au-organization)
- AU Base Practitioner (http://hl7.org.au/fhir/StructureDefinition/au-practitioner)
- AU Base Practitioner Role (http://hl7.org.au/fhir/StructureDefinition/au-practitionerrole)

Extensions

This structure refers to these extensions:

- http://fhir.geniesolutions.io/StructureDefinition/invoice-item-payment
- http://fhir.geniesolutions.io/StructureDefinition/invoice-item-balance

Slices

This structure defines the following Slices:

- The element 1 is sliced based on the value of Invoice.contained
- The element 1 is sliced based on the value of Invoice.lineItem.chargeItem[x]

Other representations of profile: CSV, Excel, Schematron