profile-Invoice
type: StructureDefinition
node role: treeRoot
id:
  v: profile-Invoice
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition profile-Invoice Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> Basic 0..* Basic Resource for non-supported content #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:cancelledReason 0..1 string R4B: Reason for cancellation of this Invoice (new) URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.cancelledReason #xD; extension:type 0..1 CodeableConcept R4B: Type of Invoice (new) URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.type #xD; extension:recipient 0..1 Reference(Cross-version Profile for R4B.Organization for use in FHIR STU3(0.1.0) | Organization | Cross-version Profile for R4B.Patient for use in FHIR STU3(0.1.0) | Patient | Cross-version Profile for R4B.RelatedPerson for use in FHIR STU3(0.1.0) | RelatedPerson) R4B: Recipient of this invoice (new) URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.recipient #xD; extension:date 0..1 dateTime R4B: Invoice date / posting date (new) URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.date #xD; extension:participant 0..* (Complex) R4B: Participant in creation of this Invoice (new) URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.participant #xD; extension:issuer 0..1 Reference(Cross-version Profile for R4B.Organization for use in FHIR STU3(0.1.0) | Organization) R4B: Issuing Organization of Invoice (new) URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.issuer #xD; extension:account 0..1 Reference(Cross-version Profile for R4B.Account for use in FHIR STU3(0.1.0) | Account) R4B: Account that is being balanced (new) URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.account #xD; extension:lineItem 0..* (Complex) R4B: Line items of this Invoice (new) URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.lineItem #xD; extension:priceC…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
    l: structuredefinition-wg
  value: Code
    v: fhir
extension:
  extension:
    url:
      v: packageId
      l: packageId
    value: Id
      v: hl7.fhir.uv.xver-r4b.r3
  extension:
    url:
      v: version
      l: version
    value: String
      v: 0.1.0
  url:
    v: http://hl7.org/fhir/StructureDefinition/package-source
    l: package-source
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
    l: structuredefinition-fmm
  value: Integer
    v: 0
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
        l: structuredefinition-conformance-derivedFrom
      value: Uri
        v: http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r4b.r3
        l: hl7.fhir.uv.xver-r4b.r3
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
    l: structuredefinition-standards-status
  value: Code
    v: trial-use
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
        l: structuredefinition-conformance-derivedFrom
      value: Uri
        v: http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r4b.r3
        l: hl7.fhir.uv.xver-r4b.r3
url:
  v: http://hl7.org/fhir/4.3/StructureDefinition/profile-Invoice
  l: profile-Invoice
version:
  v: 0.1.0
name:
  v: Profile_R4B_Invoice_R3
title:
  v: Cross-version Profile for R4B.Invoice for use in FHIR STU3
status:
  v: active
experimental:
  v: false
date:
  v: 2026-03-17T16:04:25.1335116-05:00
publisher:
  v: FHIR Infrastructure
contact:
  name:
    v: FHIR Infrastructure
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/fiwg
description:
  v: This cross-version profile allows R4B Invoice content to be represented via FHIR STU3 Basic resources.
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
      l: m49.htm
    code:
      v: 001
    display:
      v: World
fhir version:
  v: 3.0.2
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/w5
    l: w5
  name:
    v: W5 Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: Basic
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Basic
  l: Basic
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: Basic
    path:
      v: Basic
    short:
      v: Resource for non-supported content
    definition:
      v: Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification.
    alias:
      v: Z-resource
    alias:
      v: Extension-resource
    alias:
      v: Custom-resource
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Basic
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      xpath:
        v: not(parent::f:contained and f:contained)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-1
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain any narrative
      expression:
        v: contained.text.empty()
      xpath:
        v: not(parent::f:contained and f:text)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
      expression:
        v: contained.where(('#'+id in %resource.descendants().reference).not()).empty()
      xpath:
        v: not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource

identity:
  v: rim
map:
  v: Entity. Role, or Act

identity:
  v: rim
map:
  v: Act, Entity or Role

identity:
  v: w5
map:
  v: infrastructure.structure

id:
  v: Basic.id
path:
  v: Basic.id
short:
  v: Logical id of this artifact
definition:
  v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
comment:
  v: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: Basic.meta
path:
  v: Basic.meta
short:
  v: Metadata about the resource
definition:
  v: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
    l: Meta
is summary:
  v: true

id:
  v: Basic.implicitRules
path:
  v: Basic.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.
comment:
  v: Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
is modifier:
  v: true
is summary:
  v: true

id:
  v: Basic.language
path:
  v: Basic.language
short:
  v: Language of the resource content
definition:
  v: The base language in which the resource is written.
comment:
  v: Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
      l: elementdefinition-maxValueSet
    value: Reference
      l: 3.0
      l: .2
      reference:
        v: http://hl7.org/fhir/ValueSet/all-languages|3.0.2
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Language
  strength:
    v: extensible
  description:
    v: A human language.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/languages|3.0.2

id:
  v: Basic.text
path:
  v: Basic.text
short:
  v: Text summary of the resource, for human interpretation
definition:
  v: A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
comment:
  v: Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded in formation is added later.
alias:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
    l: Narrative
condition:
  v: dom-1
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: Basic.contained
path:
  v: Basic.contained
short:
  v: Contained, inline Resources
definition:
  v: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
comment:
  v: This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.
alias:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
    l: Resource
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Basic.extension
path:
  v: Basic.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: Basic.extension:cancelledReason
path:
  v: Basic.extension
slice name:
  v: cancelledReason
short:
  v: R4B: Reason for cancellation of this Invoice (new)
definition:
  v: R4B: `Invoice.cancelledReason` (new:string)
comment:
  v: Element `Invoice.cancelledReason` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.cancelledReason` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). Derived Profiles may choose to add invariants requiring this field to be populated if either priceOverride or factorOverride have been filled.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.cancelledReason|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.cancelledReason
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:type
path:
  v: Basic.extension
slice name:
  v: type
short:
  v: R4B: Type of Invoice (new)
definition:
  v: R4B: `Invoice.type` (new:CodeableConcept)
comment:
  v: Element `Invoice.type` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.type` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.type|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.type
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:recipient
path:
  v: Basic.extension
slice name:
  v: recipient
short:
  v: R4B: Recipient of this invoice (new)
definition:
  v: R4B: `Invoice.recipient` (new:Reference(Organization,Patient,RelatedPerson))
comment:
  v: Element `Invoice.recipient` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.recipient` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.recipient|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.recipient
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:date
path:
  v: Basic.extension
slice name:
  v: date
short:
  v: R4B: Invoice date / posting date (new)
definition:
  v: R4B: `Invoice.date` (new:dateTime)
comment:
  v: Element `Invoice.date` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.date` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). The list of types may be constrained as appropriate for the type of charge item.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.date|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.date
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:participant
path:
  v: Basic.extension
slice name:
  v: participant
short:
  v: R4B: Participant in creation of this Invoice (new)
definition:
  v: R4B: `Invoice.participant` (new:BackboneElement)
comment:
  v: Element `Invoice.participant` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.participant` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.participant|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.participant
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:issuer
path:
  v: Basic.extension
slice name:
  v: issuer
short:
  v: R4B: Issuing Organization of Invoice (new)
definition:
  v: R4B: `Invoice.issuer` (new:Reference(Organization))
comment:
  v: Element `Invoice.issuer` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.issuer` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). Practitioners and Devices can be associated with multiple organizations. It has to be made clear, on behalf of which Organization the services have been rendered.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.issuer|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.issuer
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:account
path:
  v: Basic.extension
slice name:
  v: account
short:
  v: R4B: Account that is being balanced (new)
definition:
  v: R4B: `Invoice.account` (new:Reference(Account))
comment:
  v: Element `Invoice.account` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.account` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). Systems posting the ChargeItems might not always be able to determine, which accounts the Items need to be places into. It is up to the potprocessing Financial System to apply internal rules to decide based on the Encounter/EpisodeOfCare/Patient/Coverage context and the type of ChargeItem, which Account is appropriate.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.account|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.account
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:lineItem
path:
  v: Basic.extension
slice name:
  v: lineItem
short:
  v: R4B: Line items of this Invoice (new)
definition:
  v: R4B: `Invoice.lineItem` (new:BackboneElement)
comment:
  v: Element `Invoice.lineItem` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.lineItem` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.lineItem|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.lineItem
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:priceComponent
path:
  v: Basic.extension
slice name:
  v: priceComponent
short:
  v: R4B: Components of total line item price (new)
definition:
  v: R4B: `Invoice.lineItem.priceComponent` (new:BackboneElement)
comment:
  v: Element `Invoice.lineItem.priceComponent` is part of an existing definition because parent element `Invoice.lineItem` requires a cross-version extension. Element `Invoice.lineItem.priceComponent` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.lineItem.priceComponent` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.lineItem.priceComponent|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.lineItem.priceComponent
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:totalPriceComponent
path:
  v: Basic.extension
slice name:
  v: totalPriceComponent
short:
  v: R4B: Components of Invoice total (new)
definition:
  v: R4B: `Invoice.totalPriceComponent` (new:Invoice.lineItem.priceComponent)
comment:
  v: Element `Invoice.totalPriceComponent` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.totalPriceComponent` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.lineItem.priceComponent|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.lineItem.priceComponent
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:totalNet
path:
  v: Basic.extension
slice name:
  v: totalNet
short:
  v: R4B: Net total of this Invoice (new)
definition:
  v: R4B: `Invoice.totalNet` (new:Money)
comment:
  v: Element `Invoice.totalNet` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.totalNet` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). There is no reason to carry the price in the instance of a ChargeItem unless circumstances require a manual override. The list prices or are usually defined in a back catalogue of the billing codes (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.totalNet|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.totalNet
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:totalGross
path:
  v: Basic.extension
slice name:
  v: totalGross
short:
  v: R4B: Gross total of this Invoice (new)
definition:
  v: R4B: `Invoice.totalGross` (new:Money)
comment:
  v: Element `Invoice.totalGross` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.totalGross` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). There is no reason to carry the price in the instance of a ChargeItem unless circumstances require a manual override. The list prices or are usually defined in a back catalogue of the billing codes (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.totalGross|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.totalGross
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:paymentTerms
path:
  v: Basic.extension
slice name:
  v: paymentTerms
short:
  v: R4B: Payment details (new)
definition:
  v: R4B: `Invoice.paymentTerms` (new:markdown)
comment:
  v: Element `Invoice.paymentTerms` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.paymentTerms` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). Derived Profiles may chose to add invariants requiring this field to be populated if either priceOverride or factorOverride have been filled.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.paymentTerms|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.paymentTerms
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:note
path:
  v: Basic.extension
slice name:
  v: note
short:
  v: R4B: Comments made about the invoice (new)
definition:
  v: R4B: `Invoice.note` (new:Annotation)
comment:
  v: Element `Invoice.note` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.note` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.note|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.note
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: Basic.modifierExtension
path:
  v: Basic.modifierExtension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true

id:
  v: Basic.modifierExtension:status
path:
  v: Basic.modifierExtension
slice name:
  v: status
short:
  v: R4B: draft | issued | balanced | cancelled | entered-in-error (new)
definition:
  v: R4B: `Invoice.status` (new:code)
comment:
  v: Element `Invoice.status` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.status` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.status|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.status
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true

id:
  v: Basic.identifier
path:
  v: Basic.identifier
short:
  v: Business identifier
definition:
  v: Identifier assigned to the resource for business purposes, outside the context of FHIR.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Basic.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: ./identifier
mapping:
  identity:
    v: w5
  map:
    v: id

id:
  v: Basic.code
path:
  v: Basic.code
short:
  v: Kind of Resource
definition:
  v: Identifies the 'type' of resource - equivalent to the resource name for other resources.
comment:
  v: Because resource references will only be able to indicate 'Basic', the type of reference will need to be specified in a Profile identified as part of the resource. Refer to the resource notes section for information on appropriate terminologies for this code. This element is labeled as a modifier because the it defines the meaning of the resource and cannot be ignored.
requirements:
  v: Must be able to distinguish different types of Basic resources.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Basic.code
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
is modifier:
  v: true
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: BasicResourceType
  strength:
    v: example
  description:
    v: Codes for identifying types of resources not yet defined by FHIR
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/basic-resource-type|3.0.2
mapping:
  identity:
    v: rim
  map:
    v: ./code
mapping:
  identity:
    v: w5
  map:
    v: what

id:
  v: Basic.subject
path:
  v: Basic.subject
short:
  v: Identifies the focus of this resource
definition:
  v: Identifies the patient, practitioner, device or any other resource that is the "focus" of this resource.
comment:
  v: Optional as not all potential resources will have subjects. Resources associated with multiple subjects can handle this via extension.
requirements:
  v: Needed for partitioning the resource by Patient.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Basic.subject
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    l: Resource
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: ./participation[typeCode='SBJ'] (possibly through a ControlAct and Role)
mapping:
  identity:
    v: w5
  map:
    v: who.focus

id:
  v: Basic.created
path:
  v: Basic.created
short:
  v: When created
definition:
  v: Identifies when the resource was first created.
requirements:
  v: Allows ordering resource instances by time.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Basic.created
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
    l: date
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: ./participation[typeCode='AUT']/time (possibly through a ControlAct and Role)
mapping:
  identity:
    v: w5
  map:
    v: when.recorded

id:
  v: Basic.author
path:
  v: Basic.author
short:
  v: Who created
definition:
  v: Indicates who was responsible for creating the resource instance.
requirements:
  v: Needed for partitioning the resource.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Basic.author
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    l: Practitioner
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    l: RelatedPerson
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: ./participation[typeCode='SUB'] (possibly through a ControlAct and Role)
mapping:
  identity:
    v: w5
  map:
    v: who.author

element:
  id:
    v: Basic
  path:
    v: Basic
element:
  id:
    v: Basic.extension
  path:
    v: Basic.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: Basic.extension:cancelledReason
  path:
    v: Basic.extension
  slice name:
    v: cancelledReason
  short:
    v: R4B: Reason for cancellation of this Invoice (new)
  definition:
    v: R4B: `Invoice.cancelledReason` (new:string)
  comment:
    v: Element `Invoice.cancelledReason` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.cancelledReason` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). Derived Profiles may choose to add invariants requiring this field to be populated if either priceOverride or factorOverride have been filled.
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.cancelledReason|0.1.0
      l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.cancelledReason
element:
  id:
    v: Basic.extension:type
  path:
    v: Basic.extension
  slice name:
    v: type
  short:
    v: R4B: Type of Invoice (new)
  definition:
    v: R4B: `Invoice.type` (new:CodeableConcept)
  comment:
    v: Element `Invoice.type` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.type` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.type|0.1.0
      l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.type
element:
  id:
    v: Basic.extension:recipient
  path:
    v: Basic.extension
  slice name:
    v: recipient
  short:
    v: R4B: Recipient of this invoice (new)
  definition:
    v: R4B: `Invoice.recipient` (new:Reference(Organization,Patient,RelatedPerson))
  comment:
    v: Element `Invoice.recipient` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.recipient` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.recipient|0.1.0
      l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.recipient
element:
  id:
    v: Basic.extension:date
  path:
    v: Basic.extension
  slice name:
    v: date
  short:
    v: R4B: Invoice date / posting date (new)
  definition:
    v: R4B: `Invoice.date` (new:dateTime)
  comment:
    v: Element `Invoice.date` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.date` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). The list of types may be constrained as appropriate for the type of charge item.
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.date|0.1.0
      l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.date
element:
  id:
    v: Basic.extension:participant
  path:
    v: Basic.extension
  slice name:
    v: participant
  short:
    v: R4B: Participant in creation of this Invoice (new)
  definition:
    v: R4B: `Invoice.participant` (new:BackboneElement)
  comment:
    v: Element `Invoice.participant` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.participant` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
  min:
    v: 0
  max:
    v: *
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.participant|0.1.0
      l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.participant
element:
  id:
    v: Basic.extension:issuer
  path:
    v: Basic.extension
  slice name:
    v: issuer
  short:
    v: R4B: Issuing Organization of Invoice (new)
  definition:
    v: R4B: `Invoice.issuer` (new:Reference(Organization))
  comment:
    v: Element `Invoice.issuer` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.issuer` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). Practitioners and Devices can be associated with multiple organizations. It has to be made clear, on behalf of which Organization the services have been rendered.
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *

code:
  v: Extension
  l: Extension
profile:
  v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.issuer|0.1.0
  l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.issuer

id:
  v: Basic.extension:account
path:
  v: Basic.extension
slice name:
  v: account
short:
  v: R4B: Account that is being balanced (new)
definition:
  v: R4B: `Invoice.account` (new:Reference(Account))
comment:
  v: Element `Invoice.account` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.account` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). Systems posting the ChargeItems might not always be able to determine, which accounts the Items need to be places into. It is up to the potprocessing Financial System to apply internal rules to decide based on the Encounter/EpisodeOfCare/Patient/Coverage context and the type of ChargeItem, which Account is appropriate.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.account|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.account

id:
  v: Basic.extension:lineItem
path:
  v: Basic.extension
slice name:
  v: lineItem
short:
  v: R4B: Line items of this Invoice (new)
definition:
  v: R4B: `Invoice.lineItem` (new:BackboneElement)
comment:
  v: Element `Invoice.lineItem` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.lineItem` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.lineItem|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.lineItem

id:
  v: Basic.extension:priceComponent
path:
  v: Basic.extension
slice name:
  v: priceComponent
short:
  v: R4B: Components of total line item price (new)
definition:
  v: R4B: `Invoice.lineItem.priceComponent` (new:BackboneElement)
comment:
  v: Element `Invoice.lineItem.priceComponent` is part of an existing definition because parent element `Invoice.lineItem` requires a cross-version extension. Element `Invoice.lineItem.priceComponent` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.lineItem.priceComponent` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.lineItem.priceComponent|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.lineItem.priceComponent

id:
  v: Basic.extension:totalPriceComponent
path:
  v: Basic.extension
slice name:
  v: totalPriceComponent
short:
  v: R4B: Components of Invoice total (new)
definition:
  v: R4B: `Invoice.totalPriceComponent` (new:Invoice.lineItem.priceComponent)
comment:
  v: Element `Invoice.totalPriceComponent` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.totalPriceComponent` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.lineItem.priceComponent|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.lineItem.priceComponent

id:
  v: Basic.extension:totalNet
path:
  v: Basic.extension
slice name:
  v: totalNet
short:
  v: R4B: Net total of this Invoice (new)
definition:
  v: R4B: `Invoice.totalNet` (new:Money)
comment:
  v: Element `Invoice.totalNet` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.totalNet` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). There is no reason to carry the price in the instance of a ChargeItem unless circumstances require a manual override. The list prices or are usually defined in a back catalogue of the billing codes (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.totalNet|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.totalNet

id:
  v: Basic.extension:totalGross
path:
  v: Basic.extension
slice name:
  v: totalGross
short:
  v: R4B: Gross total of this Invoice (new)
definition:
  v: R4B: `Invoice.totalGross` (new:Money)
comment:
  v: Element `Invoice.totalGross` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.totalGross` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). There is no reason to carry the price in the instance of a ChargeItem unless circumstances require a manual override. The list prices or are usually defined in a back catalogue of the billing codes (see ChargeItem.definition). Derived profiles may require a ChargeItem.overrideReason to be provided if either factor or price are manually overridden.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.totalGross|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.totalGross

id:
  v: Basic.extension:paymentTerms
path:
  v: Basic.extension
slice name:
  v: paymentTerms
short:
  v: R4B: Payment details (new)
definition:
  v: R4B: `Invoice.paymentTerms` (new:markdown)
comment:
  v: Element `Invoice.paymentTerms` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.paymentTerms` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). Derived Profiles may chose to add invariants requiring this field to be populated if either priceOverride or factorOverride have been filled.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.paymentTerms|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.paymentTerms

id:
  v: Basic.extension:note
path:
  v: Basic.extension
slice name:
  v: note
short:
  v: R4B: Comments made about the invoice (new)
definition:
  v: R4B: `Invoice.note` (new:Annotation)
comment:
  v: Element `Invoice.note` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.note` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.note|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.note

id:
  v: Basic.modifierExtension
path:
  v: Basic.modifierExtension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: Basic.modifierExtension:status
path:
  v: Basic.modifierExtension
slice name:
  v: status
short:
  v: R4B: draft | issued | balanced | cancelled | entered-in-error (new)
definition:
  v: R4B: `Invoice.status` (new:code)
comment:
  v: Element `Invoice.status` is not mapped to FHIR STU3, since FHIR R4B `Invoice` is not mapped. Element `Invoice.status` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.status|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Invoice.status