profile-Account
type: StructureDefinition
node role: treeRoot
id:
  v: profile-Account
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition profile-Account Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> Account 0..* Account Tracks balance, charges, for patient or cost center #xD; meta #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:meta 0..1 Meta R4B: meta additional types URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-Account.meta #xD; text #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:text 0..1 (Complex) R4B: text additional types URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-Account.text #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:partOf 0..1 Reference(Cross-version Profile for R4B.Account for use in FHIR STU3(0.1.0) | Account) R4B: Reference to a parent Account (new) URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-Account.partOf #xD; identifier #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:identifier 0..* Identifier R4B: identifier additional types URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-Account.identifier #xD; status #xD; Slices for extension 1..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:status 1..1 code R4B: active | inactive | entered-in-error | on-hold | unknown URL: http://hl7.org/fhir/4.3/StructureDefinition/extension-Account.status Binding: AccountStatus (required): Indicates whether the account is available to be used. #xD; subject #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:subject 0..* ?gen-e1? [CanonicalType[http://hl7.org/fhir/StructureDefinition/alternate-reference]] R4B: The entity that caused the expenses URL: http://hl7.org/fhir/StructureDefinition/alternate-reference #xD; period #xD; Slices for extension 0..* Extensi…
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-Account
  l: profile-Account
version:
  v: 0.1.0
name:
  v: Profile_R4B_Account_R3
title:
  v: Cross-version Profile for R4B.Account for use in FHIR STU3
status:
  v: active
experimental:
  v: false
date:
  v: 2026-03-17T16:04:24.927999-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 Account content to be represented via FHIR STU3 Account 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: Account
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Account
  l: Account
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: Account
    path:
      v: Account
    short:
      v: Tracks balance, charges, for patient or cost center
    definition:
      v: A financial tool for tracking value accrued for a particular purpose. In the healthcare field, used to track charges for a patient, cost centers, etc.
    alias:
      v: Cost center
    alias:
      v: Record
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Account
      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: Account

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

id:
  v: Account.id
path:
  v: Account.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: Account.meta
path:
  v: Account.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: Account.meta.id
path:
  v: Account.meta.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: Account.meta.extension
path:
  v: Account.meta.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: Account.meta.extension:meta
path:
  v: Account.meta.extension
slice name:
  v: meta
short:
  v: R4B: meta additional types
definition:
  v: R4B: `Account.meta` additional types (Meta) additional types from child elements (lastUpdated, profile, security, source, tag, versionId)
comment:
  v: Element `Account.meta` is mapped to FHIR STU3 element `Account.meta` as `SourceIsBroaderThanTarget`. The mappings for `Account.meta` do not cover the following types: Meta. The mappings for `Account.meta` do not cover the following types based on type expansion: lastUpdated, profile, security, source, tag, versionId.
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/4.3/StructureDefinition/extension-Account.meta|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Account.meta

id:
  v: Account.meta.versionId
path:
  v: Account.meta.versionId
short:
  v: Version specific identifier
definition:
  v: The version specific identifier, as it appears in the version portion of the URL. This values changes when the resource is created, updated, or deleted.
comment:
  v: The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Meta.versionId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: Account.meta.lastUpdated
path:
  v: Account.meta.lastUpdated
short:
  v: When the resource version last changed
definition:
  v: When the resource last changed - e.g. when the version changed.
comment:
  v: This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Meta.lastUpdated
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: instant
    l: instant
is summary:
  v: true

id:
  v: Account.meta.profile
path:
  v: Account.meta.profile
short:
  v: Profiles this resource claims to conform to
definition:
  v: A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/STU3/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/STU3/).
comment:
  v: It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Meta.profile
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: uri
    l: uri
is summary:
  v: true

id:
  v: Account.meta.security
path:
  v: Account.meta.security
short:
  v: Security Labels applied to this resource
definition:
  v: Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.
comment:
  v: The security labels can be updated without changing the stated version of the resource The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Meta.security
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SecurityLabels
  strength:
    v: extensible
  description:
    v: Security Labels from the Healthcare Privacy and Security Classification System.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/security-labels|3.0.2

id:
  v: Account.meta.tag
path:
  v: Account.meta.tag
short:
  v: Tags applied to this resource
definition:
  v: Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.
comment:
  v: The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Meta.tag
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Tags
  strength:
    v: example
  description:
    v: Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones"
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/common-tags|3.0.2

id:
  v: Account.implicitRules
path:
  v: Account.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: Account.language
path:
  v: Account.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: Account.text
path:
  v: Account.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: Account.text.id
path:
  v: Account.text.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: Account.text.extension
path:
  v: Account.text.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: Account.text.extension:text
path:
  v: Account.text.extension
slice name:
  v: text
short:
  v: R4B: text additional types
definition:
  v: R4B: `Account.text` additional types (Narrative) additional types from child elements (div, status)
comment:
  v: Element `Account.text` is mapped to FHIR STU3 element `Account.text` as `SourceIsBroaderThanTarget`. The mappings for `Account.text` do not cover the following types: Narrative. The mappings for `Account.text` do not cover the following types based on type expansion: div, status. 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 information is added later.
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/4.3/StructureDefinition/extension-Account.text|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Account.text

id:
  v: Account.text.status
path:
  v: Account.text.status
short:
  v: generated | extensions | additional | empty
definition:
  v: The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Narrative.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: NarrativeStatus
  strength:
    v: required
  description:
    v: The status of a resource narrative
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/narrative-status|3.0.2
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Account.text.div
path:
  v: Account.text.div
short:
  v: Limited xhtml content
definition:
  v: The actual narrative content, a stripped down version of XHTML.
comment:
  v: The contents of the html element are an XHTML fragment containing only the basic html formatting elements described in chapters 7-11 and 15 of the HTML 4.0 standard, elements (either name or href), images and internally contained stylesheets. The XHTML content may not contain a head, a body, external stylesheet references, scripts, forms, base/link/xlink, frames, iframes and objects.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Narrative.div
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: xhtml
    l: http://hl7.org/fhir/xhtml
constraint:
  key:
    v: txt-1
  severity:
    v: error
  human:
    v: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, elements (either name or href), images and internally contained style attributes
  expression:
    v: htmlchecks()
  xpath:
    v: not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Account
    l: Account
constraint:
  key:
    v: txt-2
  severity:
    v: error
  human:
    v: The narrative SHALL have some non-whitespace content
  expression:
    v: htmlchecks()
  xpath:
    v: descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]
  source:
    v: http://hl7.org/fhir/StructureDefinition/Account
    l: Account
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Account.contained
path:
  v: Account.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: Account.extension
path:
  v: Account.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: Account.extension:partOf
path:
  v: Account.extension
slice name:
  v: partOf
short:
  v: R4B: Reference to a parent Account (new)
definition:
  v: R4B: `Account.partOf` (new:Reference(Account))
comment:
  v: Element `Account.partOf` has a context of Account based on following the parent source element upwards and mapping to `Account`. Element `Account.partOf` 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-Account.partOf|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Account.partOf
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: Account.modifierExtension
path:
  v: Account.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: Account.identifier
path:
  v: Account.identifier
short:
  v: Account number
definition:
  v: Unique identifier used to reference the account. May or may not be intended for human use (e.g. credit card number).
min:
  v: 0
max:
  v: *
base:
  path:
    v: Account.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .id
mapping:
  identity:
    v: w5
  map:
    v: id

id:
  v: Account.identifier.id
path:
  v: Account.identifier.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: Account.identifier.extension
path:
  v: Account.identifier.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: Account.identifier.extension:identifier
path:
  v: Account.identifier.extension
slice name:
  v: identifier
short:
  v: R4B: identifier additional types
definition:
  v: R4B: `Account.identifier` additional types (Identifier) additional types from child elements (assigner, period, system, type, use, value)
comment:
  v: Element `Account.identifier` is mapped to FHIR STU3 element `Account.identifier` as `SourceIsBroaderThanTarget`. The mappings for `Account.identifier` do not cover the following types: Identifier. The mappings for `Account.identifier` do not cover the following types based on type expansion: assigner, period, system, type, use, value.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.3/StructureDefinition/extension-Account.identifier|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Account.identifier

id:
  v: Account.identifier.use
path:
  v: Account.identifier.use
short:
  v: usual | official | temp | secondary (If known)
definition:
  v: The purpose of this identifier.
comment:
  v: This is labeled as "Is Modifier" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.
requirements:
  v: Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.use
  min:
    v: 0
  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: IdentifierUse
  strength:
    v: required
  description:
    v: Identifies the purpose for this identifier, if known .
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/identifier-use|3.0.2
mapping:
  identity:
    v: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: Role.code or implied by context

id:
  v: Account.identifier.type
path:
  v: Account.identifier.type
short:
  v: Description of identifier
definition:
  v: A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.
comment:
  v: This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.
requirements:
  v: Allows users to make use of identifiers when the identifier system is not known.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.type
  min:
    v: 0
  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: IdentifierType
  strength:
    v: extensible
  description:
    v: A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/identifier-type|3.0.2
mapping:
  identity:
    v: v2
  map:
    v: CX.5
mapping:
  identity:
    v: rim
  map:
    v: Role.code or implied by context

id:
  v: Account.identifier.system
path:
  v: Account.identifier.system
short:
  v: The namespace for the identifier value
definition:
  v: Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
requirements:
  v: There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.system
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
example:
  label:
    v: General
  value: Uri
    v: http://www.acme.com/identifiers/patient
    l: patient
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.4 / EI-2-4
mapping:
  identity:
    v: rim
  map:
    v: II.root or Role.id.root
mapping:
  identity:
    v: servd
  map:
    v: ./IdentifierType

id:
  v: Account.identifier.value
path:
  v: Account.identifier.value
short:
  v: The value that is unique
definition:
  v: The portion of the identifier typically relevant to the user and which is unique within the context of the system.
comment:
  v: If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/STU3/extension-rendered-value.html).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
example:
  label:
    v: General
  value: String
    v: 123456
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.1 / EI.1
mapping:
  identity:
    v: rim
  map:
    v: II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
mapping:
  identity:
    v: servd
  map:
    v: ./Value

id:
  v: Account.identifier.period
path:
  v: Account.identifier.period
short:
  v: Time period when id is/was valid for use
definition:
  v: Time period during which identifier is/was valid for use.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
    l: Period
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.7 + CX.8
mapping:
  identity:
    v: rim
  map:
    v: Role.effectiveTime or implied by context
mapping:
  identity:
    v: servd
  map:
    v: ./StartDate and ./EndDate

id:
  v: Account.identifier.assigner
path:
  v: Account.identifier.assigner
short:
  v: Organization that issued id (may be just text)
definition:
  v: Organization that issued/manages the identifier.
comment:
  v: The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.assigner
  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: true
mapping:
  identity:
    v: v2
  map:
    v: CX.4 / (CX.4,CX.9,CX.10)
mapping:
  identity:
    v: rim
  map:
    v: II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
mapping:
  identity:
    v: servd
  map:
    v: ./IdentifierIssuingAuthority

id:
  v: Account.status
path:
  v: Account.status
short:
  v: active | inactive | entered-in-error
definition:
  v: Indicates whether the account is presently used/usable or not.
comment:
  v: This element is labeled as a modifier because the status contains the codes inactive and entered-in-error that mark the Account as not currently valid.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Account.status
  min:
    v: 0
  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: AccountStatus
  strength:
    v: required
  description:
    v: Indicates whether the account is available to be used.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/account-status|3.0.2
mapping:
  identity:
    v: rim
  map:
    v: .statusCode
mapping:
  identity:
    v: w5
  map:
    v: status

id:
  v: Account.status.id
path:
  v: Account.status.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)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

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

id:
  v: Account.status.extension:status
path:
  v: Account.status.extension
slice name:
  v: status
short:
  v: R4B: active | inactive | entered-in-error | on-hold | unknown
definition:
  v: R4B: `Account.status`
comment:
  v: Element `Account.status` is mapped to FHIR STU3 element `Account.status` as `SourceIsBroaderThanTarget`. The target context `Account.status` is a modifier element, so this extension does not need to be defined as a modifier. This element is labeled as a modifier because the status contains the codes inactive and entered-in-error that mark the Account as not currently valid.
min:
  v: 1
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/4.3/StructureDefinition/extension-Account.status|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Account.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: false

id:
  v: Account.status.value
path:
  v: Account.status.value
representation:
  v: xmlAttr
short:
  v: Primitive value for code
definition:
  v: Primitive value for code
min:
  v: 0
max:
  v: 1
base:
  path:
    v: string.value
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-regex
      l: structuredefinition-regex
    value: String
      v: [^\s]+([\s]?[^\s]+)*
  code:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type
        l: structuredefinition-json-type
      value: String
        v: string
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type
        l: structuredefinition-xml-type
      value: String
        v: xsd:token
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type
        l: structuredefinition-rdf-type
      value: String
        v: xsd:token

id:
  v: Account.type
path:
  v: Account.type
short:
  v: E.g. patient, expense, depreciation
definition:
  v: Categorizes the account for reporting and searching purposes.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Account.type
  min:
    v: 0
  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: AccountType
  strength:
    v: example
  description:
    v: The usage type of this account, permits categorization of accounts.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/account-type|3.0.2
mapping:
  identity:
    v: rim
  map:
    v: .code
mapping:
  identity:
    v: w5
  map:
    v: class

id:
  v: Account.name
path:
  v: Account.name
short:
  v: Human-readable label
definition:
  v: Name used for the account when displaying it to humans in reports, etc.
alias:
  v: Title
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Account.name
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .title
mapping:
  identity:
    v: w5
  map:
    v: what

id:
  v: Account.subject
path:
  v: Account.subject
short:
  v: What is account tied to?
definition:
  v: Identifies the patient, device, practitioner, location or other object the account is associated with.
comment:
  v: Accounts can be applied to non patients for tracking other non patient related activities, such as group services (patients not tracked, and costs charged to another body), or may not be allocated.
alias:
  v: target
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Account.subject
  min:
    v: 0
  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/Device
    l: Device
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/Location
    l: Location
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/HealthcareService
    l: HealthcareService
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    l: Organization
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .subject
mapping:
  identity:
    v: w5
  map:
    v: who.focus

id:
  v: Account.subject.id
path:
  v: Account.subject.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: Account.subject.extension
path:
  v: Account.subject.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: Account.subject.extension:subject
path:
  v: Account.subject.extension
slice name:
  v: subject
short:
  v: R4B: The entity that caused the expenses
definition:
  v: R4B: `Account.subject`
comment:
  v: Element `Account.subject` is mapped to FHIR STU3 element `Account.subject` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `Account.subject` with unmapped reference targets: Device, HealthcareService, Location, Organization, Patient, Practitioner, PractitionerRole. Accounts can be applied to non-patients for tracking other non-patient related activities, such as group services (patients not tracked, and costs charged to another body), or might not be allocated.
min:
  v: 0
max:
  v: *
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: Account.subject.reference
path:
  v: Account.subject.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: Account.subject.identifier
path:
  v: Account.subject.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: Account.subject.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: Account.subject.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: Account.period
path:
  v: Account.period
short:
  v: Transaction window
definition:
  v: Identifies the period of time the account applies to; e.g. accounts created per fiscal year, quarter, etc.
comment:
  v: It is possible for transactions relevant to a coverage period to be posted to the account before or after the coverage period, however the services that are being charged for must be within this period.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Account.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
    l: Period
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .coverage.insurancePolicy.effectiveTime
mapping:
  identity:
    v: w5
  map:
    v: when.done

id:
  v: Account.period.id
path:
  v: Account.period.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: Account.period.extension
path:
  v: Account.period.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: Account.period.extension:servicePeriod
path:
  v: Account.period.extension
slice name:
  v: servicePeriod
short:
  v: R4B: servicePeriod additional types
definition:
  v: R4B: `Account.servicePeriod` additional types (Period) additional types from child elements (end, start)
comment:
  v: Element `Account.servicePeriod` is mapped to FHIR STU3 element `Account.period` as `SourceIsBroaderThanTarget`. The mappings for `Account.servicePeriod` do not cover the following types: Period. The mappings for `Account.servicePeriod` do not cover the following types based on type expansion: end, start. It is possible for transactions to be posted outside the service period, as long as the service was provided within the defined service period.
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/4.3/StructureDefinition/extension-Account.servicePeriod|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Account.servicePeriod

id:
  v: Account.period.start
path:
  v: Account.period.start
short:
  v: Starting time with inclusive boundary
definition:
  v: The start of the period. The boundary is inclusive.
comment:
  v: If the low element is missing, the meaning is that the low boundary is not known.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Period.start
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
condition:
  v: per-1
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: DR.1
mapping:
  identity:
    v: rim
  map:
    v: ./low

id:
  v: Account.period.end
path:
  v: Account.period.end
short:
  v: End time with inclusive boundary, if not ongoing
definition:
  v: The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.
comment:
  v: The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Period.end
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
meaning when missing:
  v: If the end of the period is missing, it means that the period is ongoing
condition:
  v: per-1
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: DR.2
mapping:
  identity:
    v: rim
  map:
    v: ./high

id:
  v: Account.active
path:
  v: Account.active
short:
  v: Time window that transactions may be posted to this account
definition:
  v: Indicates the period of time over which the account is allowed to have transactions posted to it. This period may be different to the coveragePeriod which is the duration of time that services may occur.
requirements:
  v: Accounts are able to be active only during a specific period, and the dates to which charges should be able to be applied.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Account.active
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
    l: Period
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime
mapping:
  identity:
    v: w5
  map:
    v: when.recorded

id:
  v: Account.balance
path:
  v: Account.balance
short:
  v: How much is in account?
definition:
  v: Represents the sum of all credits less all debits associated with the account. Might be positive, zero or negative.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Account.balance
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Money
    l: Money
mapping:
  identity:
    v: rim
  map:
    v: .balanceAmt

id:
  v: Account.coverage
path:
  v: Account.coverage
short:
  v: The party(s) that are responsible for covering the payment of this account, and what order should they be applied to the account
definition:
  v: The party(s) that are responsible for covering the payment of this account, and what order should they be applied to the account.
comment:
  v: Typically this may be some form of insurance, internal charges, or self-pay. Local or jurisdicational business rules may determine which coverage covers which types of billable items charged to the account, and in which order. Where the order is important, a local/jurisdicational extension may be defined to specify the order for the type of charge.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Account.coverage
  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: true
mapping:
  identity:
    v: rim
  map:
    v: .coverage

id:
  v: Account.coverage.id
path:
  v: Account.coverage.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: Account.coverage.extension
path:
  v: Account.coverage.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: Account.coverage.modifierExtension
path:
  v: Account.coverage.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: Account.coverage.coverage
path:
  v: Account.coverage.coverage
short:
  v: The party(s) that are responsible for covering the payment of this account
definition:
  v: The party(s) that are responsible for payment (or part of) of charges applied to this account (including self-pay). A coverage may only be resposible for specific types of charges, and the sequence of the coverages in the account could be important when processing billing.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Account.coverage.coverage
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Coverage
    l: Coverage
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .coverage.insurancePolicy.author

id:
  v: Account.coverage.coverage.id
path:
  v: Account.coverage.coverage.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: Account.coverage.coverage.extension
path:
  v: Account.coverage.coverage.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: Account.coverage.coverage.extension:coverage
path:
  v: Account.coverage.coverage.extension
slice name:
  v: coverage
short:
  v: R4B: The party(s), such as insurances, that may contribute to the payment of this account additional types
definition:
  v: R4B: `Account.coverage.coverage` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `Account.coverage.coverage` is mapped to FHIR STU3 element `Account.coverage.coverage` as `SourceIsBroaderThanTarget`. The mappings for `Account.coverage.coverage` do not cover the following types based on type expansion: display, identifier, reference, type. The standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `Account.coverage.coverage` with unmapped reference targets: Coverage.
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: Account.coverage.coverage.reference
path:
  v: Account.coverage.coverage.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: Account.coverage.coverage.identifier
path:
  v: Account.coverage.coverage.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: Account.coverage.coverage.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: Account.coverage.coverage.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: Account.coverage.priority
path:
  v: Account.coverage.priority
short:
  v: The priority of the coverage in the context of this account
definition:
  v: The priority of the coverage in the context of this account.
comment:
  v: It is common in some jurisdictions for there to be multiple coverages allocated to an account, and a sequence is required to order the settling of the account (often with insurance claiming).
alias:
  v: coordination of benefit priority
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Account.coverage.priority
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: positiveInt
    l: positiveInt
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .coverage.sequenceNumber

id:
  v: Account.owner
path:
  v: Account.owner
short:
  v: Who is responsible?
definition:
  v: Indicates the organization, department, etc. with responsibility for the account.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Account.owner
  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: true
mapping:
  identity:
    v: rim
  map:
    v: .holder

id:
  v: Account.owner.id
path:
  v: Account.owner.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: Account.owner.extension
path:
  v: Account.owner.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: Account.owner.extension:owner
path:
  v: Account.owner.extension
slice name:
  v: owner
short:
  v: R4B: Entity managing the Account additional types
definition:
  v: R4B: `Account.owner` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `Account.owner` is mapped to FHIR STU3 element `Account.owner` as `SourceIsBroaderThanTarget`. The mappings for `Account.owner` do not cover the following types based on type expansion: display, identifier, reference, type. The standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `Account.owner` with unmapped reference targets: Organization.
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: Account.owner.reference
path:
  v: Account.owner.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: Account.owner.identifier
path:
  v: Account.owner.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: Account.owner.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: Account.owner.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: Account.description
path:
  v: Account.description
short:
  v: Explanation of purpose/use
definition:
  v: Provides additional information about what the account tracks and how it is used.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Account.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .subjectOf.observationEvent[code="annotation"].value

id:
  v: Account.guarantor
path:
  v: Account.guarantor
short:
  v: Responsible for the account
definition:
  v: Parties financially responsible for the account.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Account.guarantor
  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
mapping:
  identity:
    v: rim
  map:
    v: .holder.guarantorRole

id:
  v: Account.guarantor.id
path:
  v: Account.guarantor.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: Account.guarantor.extension
path:
  v: Account.guarantor.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: Account.guarantor.modifierExtension
path:
  v: Account.guarantor.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: Account.guarantor.party
path:
  v: Account.guarantor.party
short:
  v: Responsible entity
definition:
  v: The entity who is responsible.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Account.guarantor.party
  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/RelatedPerson
    l: RelatedPerson
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    l: Organization
mapping:
  identity:
    v: rim
  map:
    v: .holder.guarantorRole[guarantorPerson|guarantorOrganization]

id:
  v: Account.guarantor.party.id
path:
  v: Account.guarantor.party.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: Account.guarantor.party.extension
path:
  v: Account.guarantor.party.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: Account.guarantor.party.extension:party
path:
  v: Account.guarantor.party.extension
slice name:
  v: party
short:
  v: R4B: party
definition:
  v: R4B: `Account.guarantor.party`
comment:
  v: Element `Account.guarantor.party` is mapped to FHIR STU3 element `Account.guarantor.party` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `Account.guarantor.party` with unmapped reference targets: Organization, Patient, RelatedPerson.
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: Account.guarantor.party.reference
path:
  v: Account.guarantor.party.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: Account.guarantor.party.identifier
path:
  v: Account.guarantor.party.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: Account.guarantor.party.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: Account.guarantor.party.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: Account.guarantor.onHold
path:
  v: Account.guarantor.onHold
short:
  v: Credit or other hold applied
definition:
  v: A guarantor may be placed on credit hold or otherwise have their role temporarily suspended.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Account.guarantor.onHold
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
mapping:
  identity:
    v: rim
  map:
    v: .holder.guarantorRole.statusCode

id:
  v: Account.guarantor.period
path:
  v: Account.guarantor.period
short:
  v: Guarrantee account during
definition:
  v: The timeframe during which the guarantor accepts responsibility for the account.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Account.guarantor.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
    l: Period
mapping:
  identity:
    v: rim
  map:
    v: .holder.guarantorRole.effectiveTime

id:
  v: Account.guarantor.period.id
path:
  v: Account.guarantor.period.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: Account.guarantor.period.extension
path:
  v: Account.guarantor.period.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: Account.guarantor.period.extension:period
path:
  v: Account.guarantor.period.extension
slice name:
  v: period
short:
  v: R4B: Guarantee account during additional types
definition:
  v: R4B: `Account.guarantor.period` additional types (Period) additional types from child elements (end, start)
comment:
  v: Element `Account.guarantor.period` is mapped to FHIR STU3 element `Account.guarantor.period` as `SourceIsBroaderThanTarget`. The mappings for `Account.guarantor.period` do not cover the following types: Period. The mappings for `Account.guarantor.period` do not cover the following types based on type expansion: end, start.
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/4.3/StructureDefinition/extension-Account.guarantor.period|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Account.guarantor.period

id:
  v: Account.guarantor.period.start
path:
  v: Account.guarantor.period.start
short:
  v: Starting time with inclusive boundary
definition:
  v: The start of the period. The boundary is inclusive.
comment:
  v: If the low element is missing, the meaning is that the low boundary is not known.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Period.start
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
condition:
  v: per-1
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: DR.1
mapping:
  identity:
    v: rim
  map:
    v: ./low

id:
  v: Account.guarantor.period.end
path:
  v: Account.guarantor.period.end
short:
  v: End time with inclusive boundary, if not ongoing
definition:
  v: The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.
comment:
  v: The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Period.end
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
meaning when missing:
  v: If the end of the period is missing, it means that the period is ongoing
condition:
  v: per-1
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: DR.2
mapping:
  identity:
    v: rim
  map:
    v: ./high

element:
  id:
    v: Account
  path:
    v: Account
element:
  id:
    v: Account.meta.extension
  path:
    v: Account.meta.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: Account.meta.extension:meta
  path:
    v: Account.meta.extension
  slice name:
    v: meta
  short:
    v: R4B: meta additional types
  definition:
    v: R4B: `Account.meta` additional types (Meta) additional types from child elements (lastUpdated, profile, security, source, tag, versionId)
  comment:
    v: Element `Account.meta` is mapped to FHIR STU3 element `Account.meta` as `SourceIsBroaderThanTarget`. The mappings for `Account.meta` do not cover the following types: Meta. The mappings for `Account.meta` do not cover the following types based on type expansion: lastUpdated, profile, security, source, tag, versionId.
  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-Account.meta|0.1.0
      l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Account.meta
element:
  id:
    v: Account.text.extension
  path:
    v: Account.text.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: Account.text.extension:text
  path:
    v: Account.text.extension
  slice name:
    v: text
  short:
    v: R4B: text additional types
  definition:
    v: R4B: `Account.text` additional types (Narrative) additional types from child elements (div, status)
  comment:
    v: Element `Account.text` is mapped to FHIR STU3 element `Account.text` as `SourceIsBroaderThanTarget`. The mappings for `Account.text` do not cover the following types: Narrative. The mappings for `Account.text` do not cover the following types based on type expansion: div, status. 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 information is added later.
  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-Account.text|0.1.0
      l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Account.text
element:
  id:
    v: Account.extension
  path:
    v: Account.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: Account.extension:partOf
  path:
    v: Account.extension
  slice name:
    v: partOf
  short:
    v: R4B: Reference to a parent Account (new)
  definition:
    v: R4B: `Account.partOf` (new:Reference(Account))
  comment:
    v: Element `Account.partOf` has a context of Account based on following the parent source element upwards and mapping to `Account`. Element `Account.partOf` 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-Account.partOf|0.1.0
      l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Account.partOf
element:
  id:
    v: Account.identifier.extension
  path:
    v: Account.identifier.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: Account.identifier.extension:identifier
  path:
    v: Account.identifier.extension
  slice name:
    v: identifier
  short:
    v: R4B: identifier additional types
  definition:
    v: R4B: `Account.identifier` additional types (Identifier) additional types from child elements (assigner, period, system, type, use, value)
  comment:
    v: Element `Account.identifier` is mapped to FHIR STU3 element `Account.identifier` as `SourceIsBroaderThanTarget`. The mappings for `Account.identifier` do not cover the following types: Identifier. The mappings for `Account.identifier` do not cover the following types based on type expansion: assigner, period, system, type, use, value.
  min:
    v: 0
  max:
    v: *
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension

id:
  v: Account.status.extension
path:
  v: Account.status.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 1
max:
  v: *

id:
  v: Account.status.extension:status
path:
  v: Account.status.extension
slice name:
  v: status
short:
  v: R4B: active | inactive | entered-in-error | on-hold | unknown
definition:
  v: R4B: `Account.status`
comment:
  v: Element `Account.status` is mapped to FHIR STU3 element `Account.status` as `SourceIsBroaderThanTarget`. The target context `Account.status` is a modifier element, so this extension does not need to be defined as a modifier. This element is labeled as a modifier because the status contains the codes inactive and entered-in-error that mark the Account as not currently valid.
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-Account.status|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Account.status

id:
  v: Account.subject.extension
path:
  v: Account.subject.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: Account.subject.extension:subject
path:
  v: Account.subject.extension
slice name:
  v: subject
short:
  v: R4B: The entity that caused the expenses
definition:
  v: R4B: `Account.subject`
comment:
  v: Element `Account.subject` is mapped to FHIR STU3 element `Account.subject` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `Account.subject` with unmapped reference targets: Device, HealthcareService, Location, Organization, Patient, Practitioner, PractitionerRole. Accounts can be applied to non-patients for tracking other non-patient related activities, such as group services (patients not tracked, and costs charged to another body), or might not be allocated.
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/StructureDefinition/alternate-reference
    l: alternate-reference

id:
  v: Account.period.extension
path:
  v: Account.period.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: Account.period.extension:servicePeriod
path:
  v: Account.period.extension
slice name:
  v: servicePeriod
short:
  v: R4B: servicePeriod additional types
definition:
  v: R4B: `Account.servicePeriod` additional types (Period) additional types from child elements (end, start)
comment:
  v: Element `Account.servicePeriod` is mapped to FHIR STU3 element `Account.period` as `SourceIsBroaderThanTarget`. The mappings for `Account.servicePeriod` do not cover the following types: Period. The mappings for `Account.servicePeriod` do not cover the following types based on type expansion: end, start. It is possible for transactions to be posted outside the service period, as long as the service was provided within the defined service period.
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-Account.servicePeriod|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Account.servicePeriod

id:
  v: Account.coverage.coverage.extension
path:
  v: Account.coverage.coverage.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: Account.coverage.coverage.extension:coverage
path:
  v: Account.coverage.coverage.extension
slice name:
  v: coverage
short:
  v: R4B: The party(s), such as insurances, that may contribute to the payment of this account additional types
definition:
  v: R4B: `Account.coverage.coverage` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `Account.coverage.coverage` is mapped to FHIR STU3 element `Account.coverage.coverage` as `SourceIsBroaderThanTarget`. The mappings for `Account.coverage.coverage` do not cover the following types based on type expansion: display, identifier, reference, type. The standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `Account.coverage.coverage` with unmapped reference targets: Coverage.
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

id:
  v: Account.owner.extension
path:
  v: Account.owner.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: Account.owner.extension:owner
path:
  v: Account.owner.extension
slice name:
  v: owner
short:
  v: R4B: Entity managing the Account additional types
definition:
  v: R4B: `Account.owner` additional types from child elements (display, identifier, reference, type)
comment:
  v: Element `Account.owner` is mapped to FHIR STU3 element `Account.owner` as `SourceIsBroaderThanTarget`. The mappings for `Account.owner` do not cover the following types based on type expansion: display, identifier, reference, type. The standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `Account.owner` with unmapped reference targets: Organization.
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

id:
  v: Account.guarantor.party.extension
path:
  v: Account.guarantor.party.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: Account.guarantor.party.extension:party
path:
  v: Account.guarantor.party.extension
slice name:
  v: party
short:
  v: R4B: party
definition:
  v: R4B: `Account.guarantor.party`
comment:
  v: Element `Account.guarantor.party` is mapped to FHIR STU3 element `Account.guarantor.party` as `SourceIsBroaderThanTarget`. The standard extension `alternate-reference` has been mapped as the representation of FHIR R4B element `Account.guarantor.party` with unmapped reference targets: Organization, Patient, RelatedPerson.
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

id:
  v: Account.guarantor.period.extension
path:
  v: Account.guarantor.period.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: Account.guarantor.period.extension:period
path:
  v: Account.guarantor.period.extension
slice name:
  v: period
short:
  v: R4B: Guarantee account during additional types
definition:
  v: R4B: `Account.guarantor.period` additional types (Period) additional types from child elements (end, start)
comment:
  v: Element `Account.guarantor.period` is mapped to FHIR STU3 element `Account.guarantor.period` as `SourceIsBroaderThanTarget`. The mappings for `Account.guarantor.period` do not cover the following types: Period. The mappings for `Account.guarantor.period` do not cover the following types based on type expansion: end, start.
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-Account.guarantor.period|0.1.0
    l: http://hl7.org/fhir/4.3/StructureDefinition/extension-Account.guarantor.period