athena-charge-profile
type: StructureDefinition
node role: treeRoot
id:
  v: athena-charge-profile
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition athena-charge-profile Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> athena-charge-profile 0..* Base #xD; id SΣ 1..1 id Logical id of this artifact #xD; meta Σ 0..1 Meta Metadata about the resource #xD; pid SΣ 1..1 integer PID is internal numeric value used in the Chart module and clinical data. This will be the same as the resource id in the Patient resource. #xD; patient 0..1 Reference(Patient) Who/what is the patient of the charge #xD; reference 0..1 string Reference to the Patient #xD; display 0..1 string Patient name #xD; patientProfileId SΣ 1..1 unsignedInt Patient specific id for practice management data including financial information #xD; searchName 0..1 string Patient Name for Search #xD; ticketNumber 0..1 string The ticket number for this visit. #xD; batchName 0..1 string The batch associated to the charge file. #xD; dateOfServiceFrom 0..1 dateTime The start date of service for this procedure. #xD; dateOfServiceTo 0..1 dateTime The stop date of service for this procedure. #xD; code 0..1 string Procedure code #xD; cptCode 0..1 string CPT Code #xD; units 0..1 decimal Unit information #xD; codeQualifier 0..1 string Procedure Code Qualifier for CPT Code. This column should be linked to the MedLists table MedListsId column with a TableName of ProcedureCodeQualifier. #xD; modifier1 0..1 string MedListsId for Modifier #1 #xD; modifier2 0..1 string MedListsId for Modifier #2 #xD; modifier3 0..1 string MedListsId for Modifier #3 #xD; modifier4 0..1 string MedListsId for Modifier #4 #xD; fee 0..1 Money The charge amount for the procedure #xD; value 0..1 decimal Charge amount #xD; currency 0..1 code Currency #xD; totalFee 0..1 Money Total amount distribution #xD; value 0..1 decimal Fee multiplied by Calculated Units. #xD; currency 0..1 code Currency #xD; allowed 0..1 Money The allowed amount for this procedure. #xD; value 0..1 decimal Allowed amount for the pr…
url:
  v: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-charge-profile
version:
  v: 25.0.0
name:
  v: Charge
title:
  v: Profile - Athena Custom Charge
status:
  v: active
date:
  v: 2023-03-01
publisher:
  v: athenahealth
contact:
  telecom:
    system:
      v: url
    value:
      v: http://athenahealth.com
description:
  v: The Charge describes a health insurance offering comprised of a list of covered benefits (i.e. the product), costs associated with those benefits (i.e. the plan), and additional information about the offering, such as who it is owned and administered by, a coverage area, contact information, etc..
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
fhir version:
  v: 4.0.1
kind:
  v: logical
abstract:
  v: false
type:
  v: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-charge-profile
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Base
  link: http://hl7.org/fhir/StructureDefinition/Base
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    value: string
      v: 4.0.1
  element:
    id:
      v: athena-charge-profile
    path:
      v: athena-charge-profile
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
  element:
    id:
      v: athena-charge-profile.id
    path:
      v: athena-charge-profile.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: 1
    max:
      v: 1
    base:
      path:
        v: athena-charge-profile.id
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: id
    must support:
      v: true
    is modifier:
      v: false
    is summary:
      v: true
  element:
    id:
      v: athena-charge-profile.meta
    path:
      v: athena-charge-profile.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 might not always be associated with version changes to the resource.
    comment:
      v: Unique Id for this particular athena-charge-profile.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: athena-charge-profile.meta
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: Meta
    must support:
      v: false
    is modifier:
      v: false
    is summary:
      v: true
  element:
    id:
      v: athena-charge-profile.pid
    path:
      v: athena-charge-profile.pid
    short:
      v: PID is internal numeric value used in the Chart module and clinical data. This will be the same as the resource id in the Patient resource.
    definition:
      v: Who was Charged
    comment:
      v: PID is internal numeric value used in the Chart module and clinical data. This will be the same as the resource id in the Patient resource.
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: athena-charge-profile.pid
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: integer
    must support:
      v: true
    is modifier:
      v: false
    is summary:
      v: true
  element:
    id:
      v: athena-charge-profile.patient
    path:
      v: athena-charge-profile.patient
    short:
      v: Who/what is the patient of the charge
    definition:
      v: Who or what the charge is about. The charge can be about a person.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: athena-charge-profile.patient
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: Reference
      target profile:
        v: http://hl7.org/fhir/StructureDefinition/Patient
        link: http://hl7.org/fhir/StructureDefinition/Patient
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children
      expression:
        v: hasValue() or (children().count() > id.count())
      xpath:
        v: @value|f:*|h:div
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        link: http://hl7.org/fhir/StructureDefinition/Element

key:
  v: ref-1
severity:
  v: error
human:
  v: SHALL have a contained resource if a local reference is provided
expression:
  v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
xpath:
  v: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])

id:
  v: athena-charge-profile.patient.id
path:
  v: athena-charge-profile.patient.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.patient.extension
path:
  v: athena-charge-profile.patient.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.patient.reference
path:
  v: athena-charge-profile.patient.reference
short:
  v: Reference to the Patient
definition:
  v: Who or what the charge is about. The charge can be about a person.
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
condition:
  v: ref-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.patient.type
path:
  v: athena-charge-profile.patient.type
short:
  v: Type the reference refers to (e.g. "Patient")
definition:
  v: The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent. The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).
comment:
  v: This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: FHIRResourceTypeExt
  strength:
    v: extensible
  description:
    v: Aa resource (or, for logical models, the URI of the logical model).
  value set:
    v: http://hl7.org/fhir/ValueSet/resource-types
    link: http://hl7.org/fhir/ValueSet/resource-types
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.patient.identifier
path:
  v: athena-charge-profile.patient.identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents 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. Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: athena-charge-profile.patient.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value: boolean
    v: true
path:
  v: athena-charge-profile.patient.display
short:
  v: Patient name
definition:
  v: Patient name for the charge is about.
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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.patientProfileId
path:
  v: athena-charge-profile.patientProfileId
short:
  v: Patient specific id for practice management data including financial information
definition:
  v: Internal ID of patient used in non-clinical practice management data.
comment:
  v: Patient profile ID
min:
  v: 1
max:
  v: 1
base:
  path:
    v: athena-charge-profile.patientProfileId
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: unsignedInt
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: athena-charge-profile.searchName
path:
  v: athena-charge-profile.searchName
short:
  v: Patient Name for Search
definition:
  v: Patient Name for Search
comment:
  v: Patient Name for Search.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.searchName
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.ticketNumber
path:
  v: athena-charge-profile.ticketNumber
short:
  v: The ticket number for this visit.
definition:
  v: The ticket number for this visit.
comment:
  v: The ticket number for this visit.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.ticketNumber
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.batchName
path:
  v: athena-charge-profile.batchName
short:
  v: The batch associated to the charge file.
definition:
  v: Charged file name
comment:
  v: The batch associated to the charge file
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.batchName
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.dateOfServiceFrom
path:
  v: athena-charge-profile.dateOfServiceFrom
short:
  v: The start date of service for this procedure.
definition:
  v: The start date of service for this procedure.
comment:
  v: Service start for the patient visit
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.dateOfServiceFrom
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime

id:
  v: athena-charge-profile.dateOfServiceTo
path:
  v: athena-charge-profile.dateOfServiceTo
short:
  v: The stop date of service for this procedure.
definition:
  v: The stop date of service for this procedure.
comment:
  v: Procedure service stop date
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.dateOfServiceTo
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime

id:
  v: athena-charge-profile.code
path:
  v: athena-charge-profile.code
short:
  v: Procedure code
definition:
  v: Procedure code
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.cptCode
path:
  v: athena-charge-profile.cptCode
short:
  v: CPT Code
definition:
  v: CPT Code
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.cptCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.units
path:
  v: athena-charge-profile.units
short:
  v: Unit information
definition:
  v: Unit information for the procedure
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.units
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal

id:
  v: athena-charge-profile.codeQualifier
path:
  v: athena-charge-profile.codeQualifier
short:
  v: Procedure Code Qualifier for CPT Code. This column should be linked to the MedLists table MedListsId column with a TableName of ProcedureCodeQualifier.
definition:
  v: Procedure Code Qualifier for CPT Code. This column should be linked to the MedLists table MedListsId column with a TableName of ProcedureCodeQualifier.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.codeQualifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.modifier1
path:
  v: athena-charge-profile.modifier1
short:
  v: MedListsId for Modifier #1
definition:
  v: MedListsId for Modifier #1
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.modifier1
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.modifier2
path:
  v: athena-charge-profile.modifier2
short:
  v: MedListsId for Modifier #2
definition:
  v: MedListsId for Modifier #2
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.modifier2
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.modifier3
path:
  v: athena-charge-profile.modifier3
short:
  v: MedListsId for Modifier #3
definition:
  v: MedListsId for Modifier #3
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.modifier3
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.modifier4
path:
  v: athena-charge-profile.modifier4
short:
  v: MedListsId for Modifier #4
definition:
  v: MedListsId for Modifier #4
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.modifier4
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.fee
path:
  v: athena-charge-profile.fee
short:
  v: The charge amount for the procedure
definition:
  v: The charge amount of the procedure
comment:
  v: The amount distribution from changes
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.fee
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Money
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: athena-charge-profile.fee.id
path:
  v: athena-charge-profile.fee.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.fee.extension
path:
  v: athena-charge-profile.fee.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.fee.value
path:
  v: athena-charge-profile.fee.value
short:
  v: Charge amount
definition:
  v: charge amount
comment:
  v: The sum of the charges for this electronic charge.
requirements:
  v: The amount of the currency. The value includes an implicit precision in the presentation of the value.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Money.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: MO.Value

id:
  v: athena-charge-profile.fee.currency
path:
  v: athena-charge-profile.fee.currency
short:
  v: Currency
definition:
  v: Name of the Currency
comment:
  v: Currency in which the charge payment has to been done.
requirements:
  v: A code indicating the currency, taken from ISO 4217.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Money.currency
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: CurrencyCode
  strength:
    v: required
  description:
    v: A code indicating the currency, taken from ISO 4217.
  value set:
    v: http://hl7.org/fhir/ValueSet/currencies|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: v2
  map:
    v: MO.Currency

id:
  v: athena-charge-profile.totalFee
path:
  v: athena-charge-profile.totalFee
short:
  v: Total amount distribution
definition:
  v: Fee multiplied by Calculated Units.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.totalFee
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Money
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: athena-charge-profile.totalFee.id
path:
  v: athena-charge-profile.totalFee.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.totalFee.extension
path:
  v: athena-charge-profile.totalFee.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.totalFee.value
path:
  v: athena-charge-profile.totalFee.value
short:
  v: Fee multiplied by Calculated Units.
definition:
  v: Fee multiplied by Calculated Units.
comment:
  v: The sum of the charges for this electronic charge.
requirements:
  v: The amount of the currency. The value includes an implicit precision in the presentation of the value.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Money.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: MO.Value

id:
  v: athena-charge-profile.totalFee.currency
path:
  v: athena-charge-profile.totalFee.currency
short:
  v: Currency
definition:
  v: Name of the Currency
comment:
  v: Currency in which the charge payment has to been done.
requirements:
  v: A code indicating the currency, taken from ISO 4217.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Money.currency
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: CurrencyCode
  strength:
    v: required
  description:
    v: A code indicating the currency, taken from ISO 4217.
  value set:
    v: http://hl7.org/fhir/ValueSet/currencies|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: v2
  map:
    v: MO.Currency

id:
  v: athena-charge-profile.allowed
path:
  v: athena-charge-profile.allowed
short:
  v: The allowed amount for this procedure.
definition:
  v: The allowed amount for the procedure.
comment:
  v: The amount distribution from insurance
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.allowed
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Money
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: athena-charge-profile.allowed.id
path:
  v: athena-charge-profile.allowed.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.allowed.extension
path:
  v: athena-charge-profile.allowed.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.allowed.value
path:
  v: athena-charge-profile.allowed.value
short:
  v: Allowed amount for the procedure
definition:
  v: The allowed amount for this procedure.
comment:
  v: The sum of the charges for this electronic charge.
requirements:
  v: The amount of the currency. The value includes an implicit precision in the presentation of the value.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Money.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: MO.Value

id:
  v: athena-charge-profile.allowed.currency
path:
  v: athena-charge-profile.allowed.currency
short:
  v: Currency
definition:
  v: Name of the Currency
comment:
  v: Currency in which the charge payment has to been done.
requirements:
  v: A code indicating the currency, taken from ISO 4217.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Money.currency
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: CurrencyCode
  strength:
    v: required
  description:
    v: A code indicating the currency, taken from ISO 4217.
  value set:
    v: http://hl7.org/fhir/ValueSet/currencies|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: v2
  map:
    v: MO.Currency

id:
  v: athena-charge-profile.totalAllowed
path:
  v: athena-charge-profile.totalAllowed
short:
  v: Allowed multiplied by Calculated Units.
definition:
  v: Allowed multiplied by Calculated Units.
comment:
  v: Allowed multiplied by Calculated Units.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.totalAllowed
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Money
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: athena-charge-profile.totalAllowed.id
path:
  v: athena-charge-profile.totalAllowed.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.totalAllowed.extension
path:
  v: athena-charge-profile.totalAllowed.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.totalAllowed.value
path:
  v: athena-charge-profile.totalAllowed.value
short:
  v: Total allowed amount value
definition:
  v: Allowed multiplied by Calculated Units.
comment:
  v: Total allowed amount value
requirements:
  v: The amount of the currency. The value includes an implicit precision in the presentation of the value.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Money.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: MO.Value

id:
  v: athena-charge-profile.totalAllowed.currency
path:
  v: athena-charge-profile.totalAllowed.currency
short:
  v: Currency
definition:
  v: Name of the the Currency
comment:
  v: Currency in which the charge payment has to been done.
requirements:
  v: A code indicating the currency, taken from ISO 4217.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Money.currency
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: CurrencyCode
  strength:
    v: required
  description:
    v: A code indicating the currency, taken from ISO 4217.
  value set:
    v: http://hl7.org/fhir/ValueSet/currencies|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: v2
  map:
    v: MO.Currency

id:
  v: athena-charge-profile.rvu
path:
  v: athena-charge-profile.rvu
short:
  v: RVU amount for this procedure's fee
definition:
  v: RVU amount for this procedure's fee
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.rvu
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.rvuAllowed
path:
  v: athena-charge-profile.rvuAllowed
short:
  v: The RVU allowed for the procedure's fee
definition:
  v: The RVU allowed for this procedure's fee
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.rvuAllowed
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.productCode
path:
  v: athena-charge-profile.productCode
short:
  v: Product code
definition:
  v: Product code
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.productCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.productCodeProcedureCodeQualifier
path:
  v: athena-charge-profile.productCodeProcedureCodeQualifier
short:
  v: Product Code Procedure Code Qualifier
definition:
  v: Product Code Procedure Code Qualifier
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.productCodeProcedureCodeQualifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.revenueCode
path:
  v: athena-charge-profile.revenueCode
short:
  v: Revenue Code
definition:
  v: Revenue Code
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.revenueCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.procedureCodeDescription
path:
  v: athena-charge-profile.procedureCodeDescription
short:
  v: The description of this procedure.
definition:
  v: The description of this procedure.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.procedureCodeDescription
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.coPayAmount
path:
  v: athena-charge-profile.coPayAmount
short:
  v: The coPayAmount amount for this procedure.
definition:
  v: The coPayAmount amount for the procedure.
comment:
  v: The amount distribution from insurance
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.coPayAmount
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Money
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: athena-charge-profile.coPayAmount.id
path:
  v: athena-charge-profile.coPayAmount.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.coPayAmount.extension
path:
  v: athena-charge-profile.coPayAmount.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.coPayAmount.value
path:
  v: athena-charge-profile.coPayAmount.value
short:
  v: The coPayAmount amount for this procedure.
definition:
  v: The coPayAmount amount for this procedure.
comment:
  v: The sum of the charges for this electronic charge.
requirements:
  v: The amount of the currency. The value includes an implicit precision in the presentation of the value.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Money.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: MO.Value

id:
  v: athena-charge-profile.coPayAmount.currency
path:
  v: athena-charge-profile.coPayAmount.currency
short:
  v: Currency
definition:
  v: Name of the Currency
comment:
  v: Currency in which the charge payment has to been done.
requirements:
  v: A code indicating the currency, taken from ISO 4217.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Money.currency
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: CurrencyCode
  strength:
    v: required
  description:
    v: A code indicating the currency, taken from ISO 4217.
  value set:
    v: http://hl7.org/fhir/ValueSet/currencies|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: v2
  map:
    v: MO.Currency

id:
  v: athena-charge-profile.placeOfService
path:
  v: athena-charge-profile.placeOfService
short:
  v: The ID of the place of service for this item. This column should be linked to the MedLists table MedListsId column with a TableName of PlaceOfServiceCodes.
definition:
  v: The ID of the place of service for this item. This column should be linked to the MedLists table MedListsId column with a TableName of PlaceOfServiceCodes.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.placeOfService
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.typeOfService
path:
  v: athena-charge-profile.typeOfService
short:
  v: The ID of the type of service for this item. This column should be linked to the MedLists table MedListsId column with a TableName of TypeOfServiceCodes.
definition:
  v: The ID of the type of service for this item. This column should be linked to the MedLists table MedListsId column with a TableName of TypeOfServiceCodes.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.typeOfService
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer

id:
  v: athena-charge-profile.authDetailNum
path:
  v: athena-charge-profile.authDetailNum
short:
  v: The authorization number for this procedure.
definition:
  v: The authorization number for this procedure.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.authDetailNum
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.authDate
path:
  v: athena-charge-profile.authDate
short:
  v: Authrization Date in Procedure Level
definition:
  v: Authrization Date in Procedure Level
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.authDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime

id:
  v: athena-charge-profile.referralNumber
path:
  v: athena-charge-profile.referralNumber
short:
  v: Referral Number in Procedure Level
definition:
  v: Referral Number in Procedure Level
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.referralNumber
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.referralDate
path:
  v: athena-charge-profile.referralDate
short:
  v: The optional issue date of the authorization or referral number for the case. Only the date portion of datetime is used.
definition:
  v: The optional issue date of the authorization or referral number for the case. Only the date portion of datetime is used.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.referralDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime

id:
  v: athena-charge-profile.doctor
path:
  v: athena-charge-profile.doctor
short:
  v: Practitioner reference for insurance.
definition:
  v: Reference to Practitioner
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.doctor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])

id:
  v: athena-charge-profile.doctor.id
path:
  v: athena-charge-profile.doctor.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.doctor.extension
path:
  v: athena-charge-profile.doctor.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.doctor.reference
path:
  v: athena-charge-profile.doctor.reference
short:
  v: DoctorId refering to Practitioner
definition:
  v: Reference to Practitioner
comment:
  v: DoctorId refering to Practitioner
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
condition:
  v: ref-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.doctor.type
path:
  v: athena-charge-profile.doctor.type
short:
  v: Type the reference refers to (e.g. "Patient")
definition:
  v: The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent. The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).
comment:
  v: This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: FHIRResourceTypeExt
  strength:
    v: extensible
  description:
    v: Aa resource (or, for logical models, the URI of the logical model).
  value set:
    v: http://hl7.org/fhir/ValueSet/resource-types
    link: http://hl7.org/fhir/ValueSet/resource-types
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.doctor.identifier
path:
  v: athena-charge-profile.doctor.identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents 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. Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: athena-charge-profile.doctor.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value: boolean
    v: true
path:
  v: athena-charge-profile.doctor.display
short:
  v: Practitioner Name
definition:
  v: Name of the the Practitioner
comment:
  v: Practitioner Name
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.visitFacility
path:
  v: athena-charge-profile.visitFacility
short:
  v: Facility Information
definition:
  v: Name with which Doctor or facility is associated
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.visitFacility
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.visitCompany
path:
  v: athena-charge-profile.visitCompany
short:
  v: Facility group for this visit
definition:
  v: Facility group for this visit.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.visitCompany
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.visitReferringDoctor
path:
  v: athena-charge-profile.visitReferringDoctor
short:
  v: Referring doctor for the visit.
definition:
  v: Referring doctor for the visit.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.visitReferringDoctor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])

id:
  v: athena-charge-profile.visitReferringDoctor.id
path:
  v: athena-charge-profile.visitReferringDoctor.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.visitReferringDoctor.extension
path:
  v: athena-charge-profile.visitReferringDoctor.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.visitReferringDoctor.reference
path:
  v: athena-charge-profile.visitReferringDoctor.reference
short:
  v: DoctorId refering to Practitioner
definition:
  v: Reference to Practitioner
comment:
  v: DoctorId refering to Practitioner
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
condition:
  v: ref-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.visitReferringDoctor.type
path:
  v: athena-charge-profile.visitReferringDoctor.type
short:
  v: Type the reference refers to (e.g. "Patient")
definition:
  v: The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent. The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).
comment:
  v: This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: FHIRResourceTypeExt
  strength:
    v: extensible
  description:
    v: Aa resource (or, for logical models, the URI of the logical model).
  value set:
    v: http://hl7.org/fhir/ValueSet/resource-types
    link: http://hl7.org/fhir/ValueSet/resource-types
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.visitReferringDoctor.identifier
path:
  v: athena-charge-profile.visitReferringDoctor.identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents 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. Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: athena-charge-profile.visitReferringDoctor.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value: boolean
    v: true
path:
  v: athena-charge-profile.visitReferringDoctor.display
short:
  v: Practitioner Name
definition:
  v: Name of the the Practitioner
comment:
  v: Practitioner Name
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.chargeServiceFacility
path:
  v: athena-charge-profile.chargeServiceFacility
short:
  v: Service facility group for the visit
definition:
  v: Service facility group for the visit.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.chargeServiceFacility
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.chargeRenderingProvider
path:
  v: athena-charge-profile.chargeRenderingProvider
short:
  v: Rendering doctor for this visit.
definition:
  v: Rendering doctor for this visit.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.chargeRenderingProvider
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])

id:
  v: athena-charge-profile.chargeRenderingProvider.id
path:
  v: athena-charge-profile.chargeRenderingProvider.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.chargeRenderingProvider.extension
path:
  v: athena-charge-profile.chargeRenderingProvider.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.chargeRenderingProvider.reference
path:
  v: athena-charge-profile.chargeRenderingProvider.reference
short:
  v: DoctorId refering to Practitioner
definition:
  v: Reference to Practitioner
comment:
  v: DoctorId refering to Practitioner
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
condition:
  v: ref-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.chargeRenderingProvider.type
path:
  v: athena-charge-profile.chargeRenderingProvider.type
short:
  v: Type the reference refers to (e.g. "Patient")
definition:
  v: The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent. The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).
comment:
  v: This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: FHIRResourceTypeExt
  strength:
    v: extensible
  description:
    v: Aa resource (or, for logical models, the URI of the logical model).
  value set:
    v: http://hl7.org/fhir/ValueSet/resource-types
    link: http://hl7.org/fhir/ValueSet/resource-types
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.chargeRenderingProvider.identifier
path:
  v: athena-charge-profile.chargeRenderingProvider.identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents 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. Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: athena-charge-profile.chargeRenderingProvider.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value: boolean
    v: true
path:
  v: athena-charge-profile.chargeRenderingProvider.display
short:
  v: Practitioner Name
definition:
  v: Name of the the Practitioner
comment:
  v: Practitioner Name
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.chargeSupervisingProvider
path:
  v: athena-charge-profile.chargeSupervisingProvider
short:
  v: Supervising doctor for this visit.
definition:
  v: Supervising doctor for this visit.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.chargeSupervisingProvider
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])

id:
  v: athena-charge-profile.chargeSupervisingProvider.id
path:
  v: athena-charge-profile.chargeSupervisingProvider.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.chargeSupervisingProvider.extension
path:
  v: athena-charge-profile.chargeSupervisingProvider.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.chargeSupervisingProvider.reference
path:
  v: athena-charge-profile.chargeSupervisingProvider.reference
short:
  v: DoctorId refering to Practitioner
definition:
  v: Reference to Practitioner
comment:
  v: DoctorId refering to Practitioner
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
condition:
  v: ref-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.chargeSupervisingProvider.type
path:
  v: athena-charge-profile.chargeSupervisingProvider.type
short:
  v: Type the reference refers to (e.g. "Patient")
definition:
  v: The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent. The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).
comment:
  v: This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: FHIRResourceTypeExt
  strength:
    v: extensible
  description:
    v: Aa resource (or, for logical models, the URI of the logical model).
  value set:
    v: http://hl7.org/fhir/ValueSet/resource-types
    link: http://hl7.org/fhir/ValueSet/resource-types
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.chargeSupervisingProvider.identifier
path:
  v: athena-charge-profile.chargeSupervisingProvider.identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents 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. Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: athena-charge-profile.chargeSupervisingProvider.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value: boolean
    v: true
path:
  v: athena-charge-profile.chargeSupervisingProvider.display
short:
  v: Practitioner Name
definition:
  v: Name of the the Practitioner
comment:
  v: Practitioner Name
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.chargeReferringProvider
path:
  v: athena-charge-profile.chargeReferringProvider
short:
  v: Referring doctor for this visit.
definition:
  v: Referring doctor for this visit.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.chargeReferringProvider
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])

id:
  v: athena-charge-profile.chargeReferringProvider.id
path:
  v: athena-charge-profile.chargeReferringProvider.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.chargeReferringProvider.extension
path:
  v: athena-charge-profile.chargeReferringProvider.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.chargeReferringProvider.reference
path:
  v: athena-charge-profile.chargeReferringProvider.reference
short:
  v: DoctorId refering to Practitioner
definition:
  v: Reference to Practitioner
comment:
  v: DoctorId refering to Practitioner
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
condition:
  v: ref-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.chargeReferringProvider.type
path:
  v: athena-charge-profile.chargeReferringProvider.type
short:
  v: Type the reference refers to (e.g. "Patient")
definition:
  v: The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent. The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).
comment:
  v: This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: FHIRResourceTypeExt
  strength:
    v: extensible
  description:
    v: Aa resource (or, for logical models, the URI of the logical model).
  value set:
    v: http://hl7.org/fhir/ValueSet/resource-types
    link: http://hl7.org/fhir/ValueSet/resource-types
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.chargeReferringProvider.identifier
path:
  v: athena-charge-profile.chargeReferringProvider.identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents 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. Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: athena-charge-profile.chargeReferringProvider.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value: boolean
    v: true
path:
  v: athena-charge-profile.chargeReferringProvider.display
short:
  v: Practitioner Name
definition:
  v: Name of the the Practitioner
comment:
  v: Practitioner Name
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.chargeOrderingProvider
path:
  v: athena-charge-profile.chargeOrderingProvider
short:
  v: Ordering doctor for this visit.
definition:
  v: Ordering doctor for this visit.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-charge-profile.chargeOrderingProvider
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])

id:
  v: athena-charge-profile.chargeOrderingProvider.id
path:
  v: athena-charge-profile.chargeOrderingProvider.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
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:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.chargeOrderingProvider.extension
path:
  v: athena-charge-profile.chargeOrderingProvider.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
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. 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 can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: athena-charge-profile.chargeOrderingProvider.reference
path:
  v: athena-charge-profile.chargeOrderingProvider.reference
short:
  v: DoctorId refering to Practitioner
definition:
  v: Reference to Practitioner
comment:
  v: DoctorId refering to Practitioner
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
condition:
  v: ref-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.chargeOrderingProvider.type
path:
  v: athena-charge-profile.chargeOrderingProvider.type
short:
  v: Type the reference refers to (e.g. "Patient")
definition:
  v: The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent. The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).
comment:
  v: This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: FHIRResourceTypeExt
  strength:
    v: extensible
  description:
    v: Aa resource (or, for logical models, the URI of the logical model).
  value set:
    v: http://hl7.org/fhir/ValueSet/resource-types
    link: http://hl7.org/fhir/ValueSet/resource-types
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: athena-charge-profile.chargeOrderingProvider.identifier
path:
  v: athena-charge-profile.chargeOrderingProvider.identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents 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. Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: athena-charge-profile.chargeOrderingProvider.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value: boolean
    v: true
path:
  v: athena-charge-profile.chargeOrderingProvider.display
short:
  v: Practitioner Name
definition:
  v: Name of the the Practitioner
comment:
  v: Practitioner Name
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

element:
  id:
    v: athena-charge-profile
  path:
    v: athena-charge-profile
element:
  id:
    v: athena-charge-profile.id
  path:
    v: athena-charge-profile.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: 1
  max:
    v: 1
  type:
    code:
      v: id
  must support:
    v: true
  is modifier:
    v: false
  is summary:
    v: true
element:
  id:
    v: athena-charge-profile.meta
  path:
    v: athena-charge-profile.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 might not always be associated with version changes to the resource.
  comment:
    v: Unique Id for this particular athena-charge-profile.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Meta
  must support:
    v: false
  is modifier:
    v: false
  is summary:
    v: true
element:
  id:
    v: athena-charge-profile.pid
  path:
    v: athena-charge-profile.pid
  short:
    v: PID is internal numeric value used in the Chart module and clinical data. This will be the same as the resource id in the Patient resource.
  definition:
    v: Who was Charged
  comment:
    v: PID is internal numeric value used in the Chart module and clinical data. This will be the same as the resource id in the Patient resource.
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: integer
  must support:
    v: true
  is modifier:
    v: false
  is summary:
    v: true
element:
  id:
    v: athena-charge-profile.patient
  path:
    v: athena-charge-profile.patient
  short:
    v: Who/what is the patient of the charge
  definition:
    v: Who or what the charge is about. The charge can be about a person.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Reference
    target profile:
      v: http://hl7.org/fhir/StructureDefinition/Patient
      link: http://hl7.org/fhir/StructureDefinition/Patient
element:
  id:
    v: athena-charge-profile.patient.reference
  path:
    v: athena-charge-profile.patient.reference
  short:
    v: Reference to the Patient
  definition:
    v: Who or what the charge is about. The charge can be about a person.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: string
element:
  id:
    v: athena-charge-profile.patient.display
  path:
    v: athena-charge-profile.patient.display
  short:
    v: Patient name
  definition:
    v: Patient name for the charge is about.
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: athena-charge-profile.patient.display
    min:
      v: 0
    max:
      v: 1
  type:
    code:
      v: string
element:
  id:
    v: athena-charge-profile.patientProfileId
  path:
    v: athena-charge-profile.patientProfileId
  short:
    v: Patient specific id for practice management data including financial information
  definition:
    v: Internal ID of patient used in non-clinical practice management data.
  comment:
    v: Patient profile ID
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: unsignedInt
  must support:
    v: true
  is modifier:
    v: false
  is summary:
    v: true
element:
  id:
    v: athena-charge-profile.searchName
  path:
    v: athena-charge-profile.searchName
  short:
    v: Patient Name for Search
  definition:
    v: Patient Name for Search
  comment:
    v: Patient Name for Search.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: string
element:
  id:
    v: athena-charge-profile.ticketNumber
  path:
    v: athena-charge-profile.ticketNumber
  short:
    v: The ticket number for this visit.
  definition:
    v: The ticket number for this visit.
  comment:
    v: The ticket number for this visit.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: string
element:
  id:
    v: athena-charge-profile.batchName
  path:
    v: athena-charge-profile.batchName
  short:
    v: The batch associated to the charge file.

v: Charged file name

v: The batch associated to the charge file

v: 0

v: 1

code:
  v: string

id:
  v: athena-charge-profile.dateOfServiceFrom
path:
  v: athena-charge-profile.dateOfServiceFrom
short:
  v: The start date of service for this procedure.
definition:
  v: The start date of service for this procedure.
comment:
  v: Service start for the patient visit
min:
  v: 0
max:
  v: 1
type:
  code:
    v: dateTime

id:
  v: athena-charge-profile.dateOfServiceTo
path:
  v: athena-charge-profile.dateOfServiceTo
short:
  v: The stop date of service for this procedure.
definition:
  v: The stop date of service for this procedure.
comment:
  v: Procedure service stop date
min:
  v: 0
max:
  v: 1
type:
  code:
    v: dateTime

id:
  v: athena-charge-profile.code
path:
  v: athena-charge-profile.code
short:
  v: Procedure code
definition:
  v: Procedure code
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.cptCode
path:
  v: athena-charge-profile.cptCode
short:
  v: CPT Code
definition:
  v: CPT Code
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.units
path:
  v: athena-charge-profile.units
short:
  v: Unit information
definition:
  v: Unit information for the procedure
min:
  v: 0
max:
  v: 1
type:
  code:
    v: decimal

id:
  v: athena-charge-profile.codeQualifier
path:
  v: athena-charge-profile.codeQualifier
short:
  v: Procedure Code Qualifier for CPT Code. This column should be linked to the MedLists table MedListsId column with a TableName of ProcedureCodeQualifier.
definition:
  v: Procedure Code Qualifier for CPT Code. This column should be linked to the MedLists table MedListsId column with a TableName of ProcedureCodeQualifier.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.modifier1
path:
  v: athena-charge-profile.modifier1
short:
  v: MedListsId for Modifier #1
definition:
  v: MedListsId for Modifier #1
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.modifier2
path:
  v: athena-charge-profile.modifier2
short:
  v: MedListsId for Modifier #2
definition:
  v: MedListsId for Modifier #2
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.modifier3
path:
  v: athena-charge-profile.modifier3
short:
  v: MedListsId for Modifier #3
definition:
  v: MedListsId for Modifier #3
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.modifier4
path:
  v: athena-charge-profile.modifier4
short:
  v: MedListsId for Modifier #4
definition:
  v: MedListsId for Modifier #4
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.fee
path:
  v: athena-charge-profile.fee
short:
  v: The charge amount for the procedure
definition:
  v: The charge amount of the procedure
comment:
  v: The amount distribution from changes
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Money

id:
  v: athena-charge-profile.fee.value
path:
  v: athena-charge-profile.fee.value
short:
  v: Charge amount
definition:
  v: charge amount
comment:
  v: The sum of the charges for this electronic charge.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: decimal

id:
  v: athena-charge-profile.fee.currency
path:
  v: athena-charge-profile.fee.currency
short:
  v: Currency
definition:
  v: Name of the Currency
comment:
  v: Currency in which the charge payment has to been done.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code

id:
  v: athena-charge-profile.totalFee
path:
  v: athena-charge-profile.totalFee
short:
  v: Total amount distribution
definition:
  v: Fee multiplied by Calculated Units.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Money

id:
  v: athena-charge-profile.totalFee.value
path:
  v: athena-charge-profile.totalFee.value
short:
  v: Fee multiplied by Calculated Units.
definition:
  v: Fee multiplied by Calculated Units.
comment:
  v: The sum of the charges for this electronic charge.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: decimal

id:
  v: athena-charge-profile.totalFee.currency
path:
  v: athena-charge-profile.totalFee.currency
short:
  v: Currency
definition:
  v: Name of the Currency
comment:
  v: Currency in which the charge payment has to been done.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code

id:
  v: athena-charge-profile.allowed
path:
  v: athena-charge-profile.allowed
short:
  v: The allowed amount for this procedure.
definition:
  v: The allowed amount for the procedure.
comment:
  v: The amount distribution from insurance
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Money

id:
  v: athena-charge-profile.allowed.value
path:
  v: athena-charge-profile.allowed.value
short:
  v: Allowed amount for the procedure
definition:
  v: The allowed amount for this procedure.
comment:
  v: The sum of the charges for this electronic charge.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: decimal

id:
  v: athena-charge-profile.allowed.currency
path:
  v: athena-charge-profile.allowed.currency
short:
  v: Currency
definition:
  v: Name of the Currency
comment:
  v: Currency in which the charge payment has to been done.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code

id:
  v: athena-charge-profile.totalAllowed
path:
  v: athena-charge-profile.totalAllowed
short:
  v: Allowed multiplied by Calculated Units.
definition:
  v: Allowed multiplied by Calculated Units.
comment:
  v: Allowed multiplied by Calculated Units.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Money

id:
  v: athena-charge-profile.totalAllowed.value
path:
  v: athena-charge-profile.totalAllowed.value
short:
  v: Total allowed amount value
definition:
  v: Allowed multiplied by Calculated Units.
comment:
  v: Total allowed amount value
min:
  v: 0
max:
  v: 1
type:
  code:
    v: decimal

id:
  v: athena-charge-profile.totalAllowed.currency
path:
  v: athena-charge-profile.totalAllowed.currency
short:
  v: Currency
definition:
  v: Name of the the Currency
comment:
  v: Currency in which the charge payment has to been done.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code

id:
  v: athena-charge-profile.rvu
path:
  v: athena-charge-profile.rvu
short:
  v: RVU amount for this procedure's fee
definition:
  v: RVU amount for this procedure's fee
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.rvuAllowed
path:
  v: athena-charge-profile.rvuAllowed
short:
  v: The RVU allowed for the procedure's fee
definition:
  v: The RVU allowed for this procedure's fee
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.productCode
path:
  v: athena-charge-profile.productCode
short:
  v: Product code
definition:
  v: Product code
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.productCodeProcedureCodeQualifier
path:
  v: athena-charge-profile.productCodeProcedureCodeQualifier
short:
  v: Product Code Procedure Code Qualifier
definition:
  v: Product Code Procedure Code Qualifier
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.revenueCode
path:
  v: athena-charge-profile.revenueCode
short:
  v: Revenue Code
definition:
  v: Revenue Code
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.procedureCodeDescription
path:
  v: athena-charge-profile.procedureCodeDescription
short:
  v: The description of this procedure.
definition:
  v: The description of this procedure.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.coPayAmount
path:
  v: athena-charge-profile.coPayAmount
short:
  v: The coPayAmount amount for this procedure.
definition:
  v: The coPayAmount amount for the procedure.
comment:
  v: The amount distribution from insurance
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Money

id:
  v: athena-charge-profile.coPayAmount.value
path:
  v: athena-charge-profile.coPayAmount.value
short:
  v: The coPayAmount amount for this procedure.
definition:
  v: The coPayAmount amount for this procedure.
comment:
  v: The sum of the charges for this electronic charge.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: decimal

id:
  v: athena-charge-profile.coPayAmount.currency
path:
  v: athena-charge-profile.coPayAmount.currency
short:
  v: Currency
definition:
  v: Name of the Currency
comment:
  v: Currency in which the charge payment has to been done.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code

id:
  v: athena-charge-profile.placeOfService
path:
  v: athena-charge-profile.placeOfService
short:
  v: The ID of the place of service for this item. This column should be linked to the MedLists table MedListsId column with a TableName of PlaceOfServiceCodes.
definition:
  v: The ID of the place of service for this item. This column should be linked to the MedLists table MedListsId column with a TableName of PlaceOfServiceCodes.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.typeOfService
path:
  v: athena-charge-profile.typeOfService
short:
  v: The ID of the type of service for this item. This column should be linked to the MedLists table MedListsId column with a TableName of TypeOfServiceCodes.
definition:
  v: The ID of the type of service for this item. This column should be linked to the MedLists table MedListsId column with a TableName of TypeOfServiceCodes.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: integer

id:
  v: athena-charge-profile.authDetailNum
path:
  v: athena-charge-profile.authDetailNum
short:
  v: The authorization number for this procedure.
definition:
  v: The authorization number for this procedure.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.authDate
path:
  v: athena-charge-profile.authDate
short:
  v: Authrization Date in Procedure Level
definition:
  v: Authrization Date in Procedure Level
min:
  v: 0
max:
  v: 1
type:
  code:
    v: dateTime

id:
  v: athena-charge-profile.referralNumber
path:
  v: athena-charge-profile.referralNumber
short:
  v: Referral Number in Procedure Level
definition:
  v: Referral Number in Procedure Level
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.referralDate
path:
  v: athena-charge-profile.referralDate
short:
  v: The optional issue date of the authorization or referral number for the case. Only the date portion of datetime is used.
definition:
  v: The optional issue date of the authorization or referral number for the case. Only the date portion of datetime is used.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: dateTime

id:
  v: athena-charge-profile.doctor
path:
  v: athena-charge-profile.doctor
short:
  v: Practitioner reference for insurance.
definition:
  v: Reference to Practitioner
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner

id:
  v: athena-charge-profile.doctor.reference
path:
  v: athena-charge-profile.doctor.reference
short:
  v: DoctorId refering to Practitioner
definition:
  v: Reference to Practitioner
comment:
  v: DoctorId refering to Practitioner
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.doctor.display
path:
  v: athena-charge-profile.doctor.display
short:
  v: Practitioner Name
definition:
  v: Name of the the Practitioner
comment:
  v: Practitioner Name
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.visitFacility
path:
  v: athena-charge-profile.visitFacility
short:
  v: Facility Information
definition:
  v: Name with which Doctor or facility is associated
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.visitCompany
path:
  v: athena-charge-profile.visitCompany
short:
  v: Facility group for this visit
definition:
  v: Facility group for this visit.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.visitReferringDoctor
path:
  v: athena-charge-profile.visitReferringDoctor
short:
  v: Referring doctor for the visit.
definition:
  v: Referring doctor for the visit.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner

id:
  v: athena-charge-profile.visitReferringDoctor.reference
path:
  v: athena-charge-profile.visitReferringDoctor.reference
short:
  v: DoctorId refering to Practitioner
definition:
  v: Reference to Practitioner
comment:
  v: DoctorId refering to Practitioner
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.visitReferringDoctor.display
path:
  v: athena-charge-profile.visitReferringDoctor.display
short:
  v: Practitioner Name
definition:
  v: Name of the the Practitioner
comment:
  v: Practitioner Name
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.chargeServiceFacility
path:
  v: athena-charge-profile.chargeServiceFacility
short:
  v: Service facility group for the visit
definition:
  v: Service facility group for the visit.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.chargeRenderingProvider
path:
  v: athena-charge-profile.chargeRenderingProvider
short:
  v: Rendering doctor for this visit.
definition:
  v: Rendering doctor for this visit.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner

id:
  v: athena-charge-profile.chargeRenderingProvider.reference
path:
  v: athena-charge-profile.chargeRenderingProvider.reference
short:
  v: DoctorId refering to Practitioner
definition:
  v: Reference to Practitioner
comment:
  v: DoctorId refering to Practitioner
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.chargeRenderingProvider.display
path:
  v: athena-charge-profile.chargeRenderingProvider.display
short:
  v: Practitioner Name
definition:
  v: Name of the the Practitioner
comment:
  v: Practitioner Name
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.chargeSupervisingProvider
path:
  v: athena-charge-profile.chargeSupervisingProvider
short:
  v: Supervising doctor for this visit.
definition:
  v: Supervising doctor for this visit.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner

id:
  v: athena-charge-profile.chargeSupervisingProvider.reference
path:
  v: athena-charge-profile.chargeSupervisingProvider.reference
short:
  v: DoctorId refering to Practitioner
definition:
  v: Reference to Practitioner
comment:
  v: DoctorId refering to Practitioner
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.chargeSupervisingProvider.display
path:
  v: athena-charge-profile.chargeSupervisingProvider.display
short:
  v: Practitioner Name
definition:
  v: Name of the the Practitioner
comment:
  v: Practitioner Name
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.chargeReferringProvider
path:
  v: athena-charge-profile.chargeReferringProvider
short:
  v: Referring doctor for this visit.
definition:
  v: Referring doctor for this visit.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner

id:
  v: athena-charge-profile.chargeReferringProvider.reference
path:
  v: athena-charge-profile.chargeReferringProvider.reference
short:
  v: DoctorId refering to Practitioner
definition:
  v: Reference to Practitioner
comment:
  v: DoctorId refering to Practitioner
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.chargeReferringProvider.display
path:
  v: athena-charge-profile.chargeReferringProvider.display
short:
  v: Practitioner Name
definition:
  v: Name of the the Practitioner
comment:
  v: Practitioner Name
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.chargeOrderingProvider
path:
  v: athena-charge-profile.chargeOrderingProvider
short:
  v: Ordering doctor for this visit.
definition:
  v: Ordering doctor for this visit.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner

id:
  v: athena-charge-profile.chargeOrderingProvider.reference
path:
  v: athena-charge-profile.chargeOrderingProvider.reference
short:
  v: DoctorId refering to Practitioner
definition:
  v: Reference to Practitioner
comment:
  v: DoctorId refering to Practitioner
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-charge-profile.chargeOrderingProvider.display
path:
  v: athena-charge-profile.chargeOrderingProvider.display
short:
  v: Practitioner Name
definition:
  v: Name of the the Practitioner
comment:
  v: Practitioner Name
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string