profile-ChargeItem
type: StructureDefinition
node role: treeRoot
id:
  v: profile-ChargeItem
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition profile-ChargeItem Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> ChargeItem 0..* ChargeItem Item containing charge code(s) associated with the provision of healthcare provider products #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:definitionCanonical 0..* uri R4: Resource defining the code of this ChargeItem (new) URL: http://hl7.org/fhir/4.0/StructureDefinition/extension-ChargeItem.definitionCanonical #xD; extension:costCenter 0..1 Reference(Cross-version Profile for R4.Organization for use in FHIR STU3(0.1.0) | Organization) R4: Organization that has ownership of the (potential, future) revenue (new) URL: http://hl7.org/fhir/4.0/StructureDefinition/extension-ChargeItem.costCenter #xD; extension:product 0..1 Reference(Cross-version Profile for R4.Device for use in FHIR STU3(0.1.0) | Device | Cross-version Profile for R4.Medication for use in FHIR STU3(0.1.0) | Medication | Cross-version Profile for R4.Substance for use in FHIR STU3(0.1.0) | Substance), CodeableConcept R4: Product charged (new) URL: http://hl7.org/fhir/4.0/StructureDefinition/extension-ChargeItem.product #xD; participant #xD; actor #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:actor 0..1 ?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]] R4: actor URL: http://hl7.org/fhir/StructureDefinition/alternate-reference #xD; enterer #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:enterer 0..1 ?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]] R4: enterer URL: http://hl7.org/fhir/StructureDefinition/alternate-reference #xD; <img src="[binary]" alt="doco" style="background-color: inherit"/> Documentation for this format
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-r4.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-r4.r3
        l: hl7.fhir.uv.xver-r4.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-r4.r3
        l: hl7.fhir.uv.xver-r4.r3
url:
  v: http://hl7.org/fhir/4.0/StructureDefinition/profile-ChargeItem
  l: profile-ChargeItem
version:
  v: 0.1.0
name:
  v: Profile_R4_ChargeItem_R3
title:
  v: Cross-version Profile for R4.ChargeItem for use in FHIR STU3
status:
  v: active
experimental:
  v: false
date:
  v: 2026-03-17T16:03:29.6104244-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 R4 ChargeItem content to be represented via FHIR STU3 ChargeItem 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: v2
  uri:
    v: http://hl7.org/v2
    l: v2
  name:
    v: HL7 v2 Mapping
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
mapping:
  identity:
    v: workflow
  uri:
    v: http://hl7.org/fhir/workflow
    l: workflow
  name:
    v: Workflow Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: ChargeItem
base definition:
  v: http://hl7.org/fhir/StructureDefinition/ChargeItem
  l: ChargeItem
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: ChargeItem
    path:
      v: ChargeItem
    short:
      v: Item containing charge code(s) associated with the provision of healthcare provider products
    definition:
      v: The resource ChargeItem describes the provision of healthcare provider products for a certain patient, therefore referring not only to the product, but containing in addition details of the provision, like date, time, amounts and participating organizations and persons. Main Usage of the ChargeItem is to enable the billing process and internal cost allocation.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: ChargeItem
      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

v: error

v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource

v: contained.where(('#'+id in %resource.descendants().reference).not()).empty()

v: not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))

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

identity:
  v: v2
map:
  v: FT1

identity:
  v: rim
map:
  v: Act[moodCode=EVN]

identity:
  v: w5
map:
  v: financial.support

id:
  v: ChargeItem.id
path:
  v: ChargeItem.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: ChargeItem.meta
path:
  v: ChargeItem.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: ChargeItem.implicitRules
path:
  v: ChargeItem.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: ChargeItem.language
path:
  v: ChargeItem.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: ChargeItem.text
path:
  v: ChargeItem.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: ChargeItem.contained
path:
  v: ChargeItem.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: ChargeItem.extension
path:
  v: ChargeItem.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: ChargeItem.extension:definitionCanonical
path:
  v: ChargeItem.extension
slice name:
  v: definitionCanonical
short:
  v: R4: Resource defining the code of this ChargeItem (new)
definition:
  v: R4: `ChargeItem.definitionCanonical` (new:canonical(ChargeItemDefinition))
comment:
  v: Element `ChargeItem.definitionCanonical` has a context of ChargeItem based on following the parent source element upwards and mapping to `ChargeItem`. Element `ChargeItem.definitionCanonical` 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.0/StructureDefinition/extension-ChargeItem.definitionCanonical|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/extension-ChargeItem.definitionCanonical
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: ChargeItem.extension:costCenter
path:
  v: ChargeItem.extension
slice name:
  v: costCenter
short:
  v: R4: Organization that has ownership of the (potential, future) revenue (new)
definition:
  v: R4: `ChargeItem.costCenter` (new:Reference(Organization))
comment:
  v: Element `ChargeItem.costCenter` has a context of ChargeItem based on following the parent source element upwards and mapping to `ChargeItem`. Element `ChargeItem.costCenter` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). The costCenter could either be given as a reference to an Organization(Role) resource or as the identifier of the cost center determined by Reference.identifier.value and Reference.identifier.system, depending on use case requirements.
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.0/StructureDefinition/extension-ChargeItem.costCenter|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/extension-ChargeItem.costCenter
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: ChargeItem.extension:product
path:
  v: ChargeItem.extension
slice name:
  v: product
short:
  v: R4: Product charged (new)
definition:
  v: R4: `ChargeItem.product[x]` (new:CodeableConcept, Reference(Device,Medication,Substance))
comment:
  v: Element `ChargeItem.product[x]` has a context of ChargeItem based on following the parent source element upwards and mapping to `ChargeItem`. Element `ChargeItem.product[x]` 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.0/StructureDefinition/extension-ChargeItem.product|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/extension-ChargeItem.product
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: ChargeItem.modifierExtension
path:
  v: ChargeItem.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
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
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ChargeItem.identifier
path:
  v: ChargeItem.identifier
short:
  v: Business Identifier for item
definition:
  v: Identifiers assigned to this event performer or other systems.
requirements:
  v: Allows identification of the charge Item as it is known by various participating systems and in a way that remains consistent across servers.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ChargeItem.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: FT1.2
mapping:
  identity:
    v: rim
  map:
    v: .identifier
mapping:
  identity:
    v: w5
  map:
    v: id

id:
  v: ChargeItem.definition
path:
  v: ChargeItem.definition
short:
  v: Defining information about the code of this charge item
definition:
  v: References the source of pricing information, rules of application for the code this ChargeItem uses.
comment:
  v: Target Resource is yet to be defined as a container that holds information about list prices and rules applicable to the charge item code. Once defined, change type back to Reference(Definition Type).
min:
  v: 0
max:
  v: *
base:
  path:
    v: ChargeItem.definition
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: uri
    l: uri
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: Varies by domain
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=DEFN].target

id:
  v: ChargeItem.status
path:
  v: ChargeItem.status
short:
  v: planned | billable | not-billable | aborted | billed | entered-in-error | unknown
definition:
  v: The current state of the ChargeItem.
comment:
  v: Unknown does not represent "other" - one of the defined statuses must apply. Unknown is used when the authoring system is not sure what the current status is. This element is labeled as a modifier because the status contains the code entered-in-error that marks the charge item as not currently valid.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ChargeItem.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
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: ChargeItemStatus
  strength:
    v: required
  description:
    v: Codes identifying the stage lifecycle stage of a ChargeItem
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/chargeitem-status|3.0.2
mapping:
  identity:
    v: v2
  map:
    v: Varies by domain
mapping:
  identity:
    v: rim
  map:
    v: .status
mapping:
  identity:
    v: w5
  map:
    v: status

id:
  v: ChargeItem.partOf
path:
  v: ChargeItem.partOf
short:
  v: Part of referenced ChargeItem
definition:
  v: ChargeItems can be grouped to larger ChargeItems covering the whole set.
requirements:
  v: E.g. Drug administration as part of a procedure, procedure as part of observation, etc.
alias:
  v: container
min:
  v: 0
max:
  v: *
base:
  path:
    v: ChargeItem.partOf
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ChargeItem
    l: ChargeItem
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: Varies by domain
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=COMP].source[moodCode=EVN]

id:
  v: ChargeItem.code
path:
  v: ChargeItem.code
short:
  v: A code that identifies the charge, like a billing code
definition:
  v: A code that identifies the charge, like a billing code.
alias:
  v: type
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ChargeItem.code
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ChargeItemCode
  strength:
    v: example
  description:
    v: Example set of codes that can be used for billing purposes
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/chargeitem-billingcodes|3.0.2
mapping:
  identity:
    v: workflow
  map:
    v: Event.code
mapping:
  identity:
    v: v2
  map:
    v: FT1.7
mapping:
  identity:
    v: rim
  map:
    v: .code
mapping:
  identity:
    v: w5
  map:
    v: what

id:
  v: ChargeItem.subject
path:
  v: ChargeItem.subject
short:
  v: Individual service was done for/to
definition:
  v: The individual or set of individuals the action is being or was performed on.
requirements:
  v: Links the event to the Patient context.
alias:
  v: patient
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ChargeItem.subject
  min:
    v: 1
  max:
    v: 1
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/Group
    l: Group
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.subject
mapping:
  identity:
    v: v2
  map:
    v: PAT in proximity to FT1 segment
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=SBJ].role
mapping:
  identity:
    v: w5
  map:
    v: who.focus

id:
  v: ChargeItem.context
path:
  v: ChargeItem.context
short:
  v: Encounter / Episode associated with event
definition:
  v: The encounter or episode of care that establishes the context for this event.
requirements:
  v: Links the request to the Encounter context.
alias:
  v: encounter
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ChargeItem.context
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Encounter
    l: Encounter
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/EpisodeOfCare
    l: EpisodeOfCare
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.context
mapping:
  identity:
    v: v2
  map:
    v: PV1 in proximity to FT1 segment
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]
mapping:
  identity:
    v: w5
  map:
    v: context

id:
  v: ChargeItem.occurrence[x]
path:
  v: ChargeItem.occurrence[x]
short:
  v: When the charged service was applied
definition:
  v: Date/time(s) or duration when the charged service was applied.
comment:
  v: The list of types may be constrained as appropriate for the type of charge item.
alias:
  v: timing
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ChargeItem.occurrence[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
type:
  code:
    v: Period
    l: Period
type:
  code:
    v: Timing
    l: Timing
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: Varies by domain
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime
mapping:
  identity:
    v: w5
  map:
    v: when.done

id:
  v: ChargeItem.participant
path:
  v: ChargeItem.participant
short:
  v: Who performed charged service
definition:
  v: Indicates who or what performed or participated in the charged service.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ChargeItem.participant
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
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
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: EVN.5 or by domain
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]

id:
  v: ChargeItem.participant.id
path:
  v: ChargeItem.participant.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ChargeItem.participant.extension
path:
  v: ChargeItem.participant.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ChargeItem.participant.modifierExtension
path:
  v: ChargeItem.participant.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ChargeItem.participant.role
path:
  v: ChargeItem.participant.role
short:
  v: What type of performance was done
definition:
  v: Describes the type of performance or participation(e.g. primary surgeon, anaesthesiologiest, etc.).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ChargeItem.participant.role
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ChargeItemPerformerRole
  strength:
    v: example
  description:
    v: Codes describing the types of functional roles performers can take on when performing events
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/performer-role|3.0.2
mapping:
  identity:
    v: v2
  map:
    v: Varies by domain
mapping:
  identity:
    v: rim
  map:
    v: .participation.functionCode

id:
  v: ChargeItem.participant.actor
path:
  v: ChargeItem.participant.actor
short:
  v: Individual who was performing
definition:
  v: The device, practitioner, etc. who performed or participated in the service.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ChargeItem.participant.actor
  min:
    v: 1
  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/Organization
    l: Organization
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/Device
    l: Device
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    l: RelatedPerson
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: EVN.5 or by domain
mapping:
  identity:
    v: rim
  map:
    v: .player
mapping:
  identity:
    v: w5
  map:
    v: who.actor

id:
  v: ChargeItem.participant.actor.id
path:
  v: ChargeItem.participant.actor.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ChargeItem.participant.actor.extension
path:
  v: ChargeItem.participant.actor.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: ChargeItem.participant.actor.extension:actor
path:
  v: ChargeItem.participant.actor.extension
slice name:
  v: actor
short:
  v: R4: actor
definition:
  v: R4: `ChargeItem.performer.actor`
comment:
  v: Element `ChargeItem.performer.actor` is mapped to FHIR STU3 element `ChargeItem.participant.actor` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R4 element `ChargeItem.performer.actor` with unmapped reference targets: CareTeam, PractitionerRole.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/alternate-reference
    l: alternate-reference

id:
  v: ChargeItem.participant.actor.reference
path:
  v: ChargeItem.participant.actor.reference
short:
  v: Literal reference, Relative, internal or absolute URL
definition:
  v: A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.
comment:
  v: Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ref-1
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ChargeItem.participant.actor.identifier
path:
  v: ChargeItem.participant.actor.identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.
comment:
  v: When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: ChargeItem.participant.actor.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: ChargeItem.participant.actor.display
short:
  v: Text alternative for the resource
definition:
  v: Plain text narrative that identifies the resource in addition to the resource reference.
comment:
  v: This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ChargeItem.performingOrganization
path:
  v: ChargeItem.performingOrganization
short:
  v: Organization providing the charged sevice
definition:
  v: The organization requesting the service.
comment:
  v: 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: ChargeItem.performingOrganization
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    l: Organization
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: .scoper

id:
  v: ChargeItem.requestingOrganization
path:
  v: ChargeItem.requestingOrganization
short:
  v: Organization requesting the charged service
definition:
  v: The organization performing the service.
comment:
  v: The rendered Service may not be associated with a Request. It has to be made clear, ob which Organization's Request, the services have been rendered. (In many cases, this may just be the Department associated with the Encounter.location).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ChargeItem.requestingOrganization
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    l: Organization
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: .scoper

id:
  v: ChargeItem.quantity
path:
  v: ChargeItem.quantity
short:
  v: Quantity of which the charge item has been serviced
definition:
  v: Quantity of which the charge item has been serviced.
comment:
  v: In many cases this may just be a value, if the underlying units are implicit in the definition of the charge item code.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ChargeItem.quantity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
    l: Quantity
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: FT1.10

id:
  v: ChargeItem.bodysite
path:
  v: ChargeItem.bodysite
short:
  v: Anatomical location, if relevant
definition:
  v: The anatomical location where the related service has been applied.
comment:
  v: Only used if not implicit in code found in Condition.code. If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [body-site-instance](http://hl7.org/fhir/STU3/extension-body-site-instance.html). May be a summary code, or a reference to a very precise definition of the location, or both.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ChargeItem.bodysite
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: BodySite
  strength:
    v: example
  description:
    v: Codes describing anatomical locations. May include laterality.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/body-site|3.0.2
mapping:
  identity:
    v: rim
  map:
    v: .targetBodySiteCode

id:
  v: ChargeItem.factorOverride
path:
  v: ChargeItem.factorOverride
short:
  v: Factor overriding the associated rules
definition:
  v: Factor overriding the factor determined by the rules associated with the code.
comment:
  v: There is no reason to carry the factor in the instance of a ChargeItem unless special circumstances require a manual override. The factors are usually defined by a set of rules 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 overriden.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ChargeItem.factorOverride
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
    l: decimal
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: FT1.26

id:
  v: ChargeItem.priceOverride
path:
  v: ChargeItem.priceOverride
short:
  v: Price overriding the associated rules
definition:
  v: Total price of the charge overriding the list price associated with the code.
comment:
  v: 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 overriden.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ChargeItem.priceOverride
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Money
    l: Money
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: FT1.22

id:
  v: ChargeItem.overrideReason
path:
  v: ChargeItem.overrideReason
short:
  v: Reason for overriding the list price/factor
definition:
  v: If the list price or the rule based factor associated with the code is overridden, this attribute can capture a text to indicate the reason for this action.
comment:
  v: 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: ChargeItem.overrideReason
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: false

id:
  v: ChargeItem.enterer
path:
  v: ChargeItem.enterer
short:
  v: Individual who was entering
definition:
  v: The device, practitioner, etc. who entered the charge item.
comment:
  v: The enterer is also te person considered responsible for factor/priceOverrides if applicable.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ChargeItem.enterer
  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/Organization
    l: Organization
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/Device
    l: Device
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    l: RelatedPerson
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: EVN.5 or by domain
mapping:
  identity:
    v: rim
  map:
    v: .player
mapping:
  identity:
    v: w5
  map:
    v: who.actor

id:
  v: ChargeItem.enterer.id
path:
  v: ChargeItem.enterer.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ChargeItem.enterer.extension
path:
  v: ChargeItem.enterer.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: ChargeItem.enterer.extension:enterer
path:
  v: ChargeItem.enterer.extension
slice name:
  v: enterer
short:
  v: R4: enterer
definition:
  v: R4: `ChargeItem.enterer`
comment:
  v: Element `ChargeItem.enterer` is mapped to FHIR STU3 element `ChargeItem.enterer` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R4 element `ChargeItem.enterer` with unmapped reference targets: PractitionerRole. The enterer is also the person considered responsible for factor/price overrides if applicable.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/alternate-reference
    l: alternate-reference

id:
  v: ChargeItem.enterer.reference
path:
  v: ChargeItem.enterer.reference
short:
  v: Literal reference, Relative, internal or absolute URL
definition:
  v: A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.
comment:
  v: Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ref-1
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ChargeItem.enterer.identifier
path:
  v: ChargeItem.enterer.identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.
comment:
  v: When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: ChargeItem.enterer.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: ChargeItem.enterer.display
short:
  v: Text alternative for the resource
definition:
  v: Plain text narrative that identifies the resource in addition to the resource reference.
comment:
  v: This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ChargeItem.enteredDate
path:
  v: ChargeItem.enteredDate
short:
  v: Date the charge item was entered
definition:
  v: Date the charge item was entered.
comment:
  v: The actual date when the service associated with the charge has been rendered is captured in occurrence[x].
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ChargeItem.enteredDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
is summary:
  v: true

id:
  v: ChargeItem.reason
path:
  v: ChargeItem.reason
short:
  v: Why was the charged service rendered?
definition:
  v: Describes why the event occurred in coded or textual form.
comment:
  v: If the application of the charge item requires a reason to be given, it can be captured here. Textual reasons can be captured using reasonCode.text.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ChargeItem.reason
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ChargeItemReason
  strength:
    v: example
  description:
    v: Example binding for reason
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/icd-10|3.0.2
mapping:
  identity:
    v: workflow
  map:
    v: Event.reasonCodeableConcept
mapping:
  identity:
    v: v2
  map:
    v: EVN.4 or by domain
mapping:
  identity:
    v: rim
  map:
    v: .reasonCode
mapping:
  identity:
    v: w5
  map:
    v: why

id:
  v: ChargeItem.service
path:
  v: ChargeItem.service
short:
  v: Which rendered service is being charged?
definition:
  v: Indicated the rendered service that caused this charge.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ChargeItem.service
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DiagnosticReport
    l: DiagnosticReport
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ImagingStudy
    l: ImagingStudy
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Immunization
    l: Immunization
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/MedicationAdministration
    l: MedicationAdministration
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/MedicationDispense
    l: MedicationDispense
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Observation
    l: Observation
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Procedure
    l: Procedure
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/SupplyDelivery
    l: SupplyDelivery
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.reasonReference
mapping:
  identity:
    v: v2
  map:
    v: EVN.4 or by domain
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=RSON].target
mapping:
  identity:
    v: w5
  map:
    v: why

id:
  v: ChargeItem.account
path:
  v: ChargeItem.account
short:
  v: Account to place this charge
definition:
  v: Account into which this ChargeItems belongs.
comment:
  v: Systems posting the ChargeItems may 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: *
base:
  path:
    v: ChargeItem.account
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Account
    l: Account
is summary:
  v: true

id:
  v: ChargeItem.note
path:
  v: ChargeItem.note
short:
  v: Comments made about the ChargeItem
definition:
  v: Comments made about the event by the performer, subject or other participants.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ChargeItem.note
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Annotation
    l: Annotation
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.note
mapping:
  identity:
    v: v2
  map:
    v: NTE
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]

id:
  v: ChargeItem.supportingInformation
path:
  v: ChargeItem.supportingInformation
short:
  v: Further information supporting the this charge
definition:
  v: Further information supporting the this charge.
min:
  v: 0
max:
  v: *
base:
  path:
    v: ChargeItem.supportingInformation
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    l: Resource
is summary:
  v: false

element:
  id:
    v: ChargeItem
  path:
    v: ChargeItem
element:
  id:
    v: ChargeItem.extension
  path:
    v: ChargeItem.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: ChargeItem.extension:definitionCanonical
  path:
    v: ChargeItem.extension
  slice name:
    v: definitionCanonical
  short:
    v: R4: Resource defining the code of this ChargeItem (new)
  definition:
    v: R4: `ChargeItem.definitionCanonical` (new:canonical(ChargeItemDefinition))
  comment:
    v: Element `ChargeItem.definitionCanonical` has a context of ChargeItem based on following the parent source element upwards and mapping to `ChargeItem`. Element `ChargeItem.definitionCanonical` 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.0/StructureDefinition/extension-ChargeItem.definitionCanonical|0.1.0
      l: http://hl7.org/fhir/4.0/StructureDefinition/extension-ChargeItem.definitionCanonical
element:
  id:
    v: ChargeItem.extension:costCenter
  path:
    v: ChargeItem.extension
  slice name:
    v: costCenter
  short:
    v: R4: Organization that has ownership of the (potential, future) revenue (new)
  definition:
    v: R4: `ChargeItem.costCenter` (new:Reference(Organization))
  comment:
    v: Element `ChargeItem.costCenter` has a context of ChargeItem based on following the parent source element upwards and mapping to `ChargeItem`. Element `ChargeItem.costCenter` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). The costCenter could either be given as a reference to an Organization(Role) resource or as the identifier of the cost center determined by Reference.identifier.value and Reference.identifier.system, depending on use case requirements.
  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.0/StructureDefinition/extension-ChargeItem.costCenter|0.1.0
      l: http://hl7.org/fhir/4.0/StructureDefinition/extension-ChargeItem.costCenter
element:
  id:
    v: ChargeItem.extension:product
  path:
    v: ChargeItem.extension
  slice name:
    v: product
  short:
    v: R4: Product charged (new)
  definition:
    v: R4: `ChargeItem.product[x]` (new:CodeableConcept, Reference(Device,Medication,Substance))
  comment:
    v: Element `ChargeItem.product[x]` has a context of ChargeItem based on following the parent source element upwards and mapping to `ChargeItem`. Element `ChargeItem.product[x]` 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.0/StructureDefinition/extension-ChargeItem.product|0.1.0
      l: http://hl7.org/fhir/4.0/StructureDefinition/extension-ChargeItem.product
element:
  id:
    v: ChargeItem.participant.actor.extension
  path:
    v: ChargeItem.participant.actor.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: ChargeItem.participant.actor.extension:actor
  path:
    v: ChargeItem.participant.actor.extension
  slice name:
    v: actor
  short:
    v: R4: actor
  definition:
    v: R4: `ChargeItem.performer.actor`
  comment:
    v: Element `ChargeItem.performer.actor` is mapped to FHIR STU3 element `ChargeItem.participant.actor` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R4 element `ChargeItem.performer.actor` with unmapped reference targets: CareTeam, PractitionerRole.
  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/StructureDefinition/alternate-reference
      l: alternate-reference
element:
  id:
    v: ChargeItem.enterer.extension
  path:
    v: ChargeItem.enterer.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: ChargeItem.enterer.extension:enterer
  path:
    v: ChargeItem.enterer.extension
  slice name:
    v: enterer
  short:
    v: R4: enterer
  definition:
    v: R4: `ChargeItem.enterer`
  comment:
    v: Element `ChargeItem.enterer` is mapped to FHIR STU3 element `ChargeItem.enterer` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R4 element `ChargeItem.enterer` with unmapped reference targets: PractitionerRole. The enterer is also the person considered responsible for factor/price overrides if applicable.
  min:
    v: 0

v: 1

path:
  v: DomainResource.extension
min:
  v: 0
max:
  v: *

code:
  v: Extension
  l: Extension
profile:
  v: http://hl7.org/fhir/StructureDefinition/alternate-reference
  l: alternate-reference