athena-payment-profile
type: StructureDefinition
node role: treeRoot
id:
  v: athena-payment-profile
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition athena-payment-profile Name Flags Card. Type Description & Constraints athena-payment-profile 0..* Base id SΣ 0..1 id Logical id of this artifact meta Σ 0..1 Meta Metadata about the resource pid Σ 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. patient 0..1 Reference(Patient) Who/what is the patient of the Payment reference 0..1 string Patient Reference display 0..1 string display to the Patient name patientProfileId SΣ 0..1 integer Patient specific id for practice management data including financial information patientVisitId 0..1 string Patient visitId for facility ticketNumber 0..1 string The ticket number for this visit. procedureCode 0..1 string Procedure-code payer 0..1 string Payer information paymentSource 0..1 string Transaction type indentification batchName 0..1 string Transaction batch name dateOfEntry 0..1 dateTime The date of entry for the batch. dateOfServiceFrom 0..1 dateTime The start date of service for this procedure. dateOfServiceTo 0..1 dateTime The stop date of service for this procedure. checkNumber 0..1 string Check Card Number for payment checkDate 0..1 dateTime Check date on card for payment notes 0..1 string The note associated with the transaction. insuranceCarrier 0..1 Reference(Organization) Insurance carrier Reference reference 0..1 string Insurance Carrier Id refering to Organization display 0..1 string Insurance carrier Name insurancePayment 0..1 Money The Payment amount distribution value 0..1 decimal Insurance Payment amount currency 0..1 code Currency patientPayment 0..1 Money The total amount of the distribution when the source is patient value 0..1 decimal Patient payment amount. currency 0..1 code Currency financialClass 0..1 string Financial class description lastModified 0..1 string Last modified date of transaction binary 0..1 Reference(Binary) Binary reference for payment method a…
url:
  v: https://docs.mydata.athenahealth.com/fhir-r4/StructureDefinition/athena-payment-profile
version:
  v: 25.0.0
name:
  v: Payment
title:
  v: Profile - Athena Custom Payment
status:
  v: active
date:
  v: 2023-03-01
publisher:
  v: athenahealth
contact:
  telecom:
    system:
      v: url
    value:
      v: http://athenahealth.com
description:
  v: The Payment is used by providers and payors, insurers, to exchange the financial information, and supporting clinical information, regarding the provision of health care services. This is not a FHIR Conformant Resource.
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-payment-profile
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Base
  link: http://hl7.org/fhir/StructureDefinition/Base
derivation:
  v: specialization
snapshot:
  element:
    id:
      v: athena-payment-profile
    path:
      v: athena-payment-profile
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
  element:
    id:
      v: athena-payment-profile.id
    path:
      v: athena-payment-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: 0
    max:
      v: 1
    base:
      path:
        v: athena-payment-profile.id
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: id
    must support:
      v: true
    is modifier:
      v: false
    is summary:
      v: true
  element:
    id:
      v: athena-payment-profile.meta
    path:
      v: athena-payment-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-payment-profile.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: athena-payment-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-payment-profile.pid
    path:
      v: athena-payment-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: Patient identifier for payment data.
    comment:
      v: Patient-identifier.
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: athena-payment-profile.pid
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: integer
    must support:
      v: false
    is modifier:
      v: false
    is summary:
      v: true
  element:
    id:
      v: athena-payment-profile.patient
    path:
      v: athena-payment-profile.patient
    short:
      v: Who/what is the patient of the Payment
    definition:
      v: Who or what the Payment is about. The Payment can be about a person.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: athena-payment-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
    constraint:
      key:
        v: ref-1
      severity:
        v: error

v: SHALL have a contained resource if a local reference is provided

v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))

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-payment-profile.patient.id
path:
  v: athena-payment-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:
      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-payment-profile.patient.extension
path:
  v: athena-payment-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-payment-profile.patient.reference
path:
  v: athena-payment-profile.patient.reference
short:
  v: Patient Reference
definition:
  v: Who or what the Payment is about. The Payment 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-payment-profile.patient.type
path:
  v: athena-payment-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:
      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-payment-profile.patient.identifier
path:
  v: athena-payment-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-payment-profile.patient.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
path:
  v: athena-payment-profile.patient.display
short:
  v: display to the Patient name
definition:
  v: Patient name for the Payment 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-payment-profile.patientProfileId
path:
  v: athena-payment-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: 0
max:
  v: 1
base:
  path:
    v: athena-payment-profile.patientProfileId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: athena-payment-profile.patientVisitId
path:
  v: athena-payment-profile.patientVisitId
short:
  v: Patient visitId for facility
definition:
  v: Patient visitId for facility
comment:
  v: Patient visitId for facility
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-payment-profile.patientVisitId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-payment-profile.ticketNumber
path:
  v: athena-payment-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-payment-profile.ticketNumber
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-payment-profile.procedureCode
path:
  v: athena-payment-profile.procedureCode
short:
  v: Procedure-code
definition:
  v: The code of the procedure
comment:
  v: Code to indentification of the procedure.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-payment-profile.procedureCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-payment-profile.payer
path:
  v: athena-payment-profile.payer
short:
  v: Payer information
definition:
  v: Payer information
comment:
  v: Payment information
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-payment-profile.payer
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-payment-profile.paymentSource
path:
  v: athena-payment-profile.paymentSource
short:
  v: Transaction type indentification
definition:
  v: Transaction type description
comment:
  v: Supported payor infrmation for Payment-profile
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-payment-profile.paymentSource
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-payment-profile.batchName
path:
  v: athena-payment-profile.batchName
short:
  v: Transaction batch name
definition:
  v: Transaction batch name
comment:
  v: Transaction batch name
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-payment-profile.batchName
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-payment-profile.dateOfEntry
path:
  v: athena-payment-profile.dateOfEntry
short:
  v: The date of entry for the batch.
definition:
  v: The date of entry for the batch.
comment:
  v: The date of entry for for the batch on the patient visit.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-payment-profile.dateOfEntry
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime

id:
  v: athena-payment-profile.dateOfServiceFrom
path:
  v: athena-payment-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-payment-profile.dateOfServiceFrom
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime

id:
  v: athena-payment-profile.dateOfServiceTo
path:
  v: athena-payment-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-payment-profile.dateOfServiceTo
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime

id:
  v: athena-payment-profile.checkNumber
path:
  v: athena-payment-profile.checkNumber
short:
  v: Check Card Number for payment
definition:
  v: Check Card Number for payment
comment:
  v: Check Card Number for payment
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-payment-profile.checkNumber
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-payment-profile.checkDate
path:
  v: athena-payment-profile.checkDate
short:
  v: Check date on card for payment
definition:
  v: Check date on card for payment
comment:
  v: Check date on card for payment
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-payment-profile.checkDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime

id:
  v: athena-payment-profile.notes
path:
  v: athena-payment-profile.notes
short:
  v: The note associated with the transaction.
definition:
  v: The note associated with the transaction
comment:
  v: The note associated with the transaction.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-payment-profile.notes
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-payment-profile.insuranceCarrier
path:
  v: athena-payment-profile.insuranceCarrier
short:
  v: Insurance carrier Reference
definition:
  v: Reference to Organization
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-payment-profile.insuranceCarrier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
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-payment-profile.insuranceCarrier.id
path:
  v: athena-payment-profile.insuranceCarrier.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:
      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-payment-profile.insuranceCarrier.extension
path:
  v: athena-payment-profile.insuranceCarrier.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-payment-profile.insuranceCarrier.reference
path:
  v: athena-payment-profile.insuranceCarrier.reference
short:
  v: Insurance Carrier Id refering to Organization
definition:
  v: Reference to Organization
comment:
  v: Insurance Carrier Id refering to Organization
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-payment-profile.insuranceCarrier.type
path:
  v: athena-payment-profile.insuranceCarrier.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:
      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-payment-profile.insuranceCarrier.identifier
path:
  v: athena-payment-profile.insuranceCarrier.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-payment-profile.insuranceCarrier.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
path:
  v: athena-payment-profile.insuranceCarrier.display
short:
  v: Insurance carrier Name
definition:
  v: Name of the the insurance Carrier
comment:
  v: Insurance carrier 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-payment-profile.insurancePayment
path:
  v: athena-payment-profile.insurancePayment
short:
  v: The Payment amount distribution
definition:
  v: The total amount of the distribution when the source is insurance
comment:
  v: The amount distribution from insurance
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-payment-profile.insurancePayment
  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-payment-profile.insurancePayment.id
path:
  v: athena-payment-profile.insurancePayment.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:
      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-payment-profile.insurancePayment.extension
path:
  v: athena-payment-profile.insurancePayment.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-payment-profile.insurancePayment.value
path:
  v: athena-payment-profile.insurancePayment.value
short:
  v: Insurance Payment amount
definition:
  v: Insurance Payment
comment:
  v: The sum of the Payment
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-payment-profile.insurancePayment.currency
path:
  v: athena-payment-profile.insurancePayment.currency
short:
  v: Currency
definition:
  v: Name of the Currency
comment:
  v: Currency in which the Payment 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:
      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-payment-profile.patientPayment
path:
  v: athena-payment-profile.patientPayment
short:
  v: The total amount of the distribution when the source is patient
definition:
  v: The total amount of the distribution when the source is patient
comment:
  v: Patient payment from patient.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-payment-profile.patientPayment
  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-payment-profile.patientPayment.id
path:
  v: athena-payment-profile.patientPayment.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:
      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-payment-profile.patientPayment.extension
path:
  v: athena-payment-profile.patientPayment.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-payment-profile.patientPayment.value
path:
  v: athena-payment-profile.patientPayment.value
short:
  v: Patient payment amount.
definition:
  v: Patient payment amount.
comment:
  v: Payment amount.
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-payment-profile.patientPayment.currency
path:
  v: athena-payment-profile.patientPayment.currency
short:
  v: Currency
definition:
  v: Name of the the Currency
comment:
  v: Currency in which the Payment 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:
      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-payment-profile.financialClass
path:
  v: athena-payment-profile.financialClass
short:
  v: Financial class description
definition:
  v: Financial class description
comment:
  v: Financial class
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-payment-profile.financialClass
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-payment-profile.lastModified
path:
  v: athena-payment-profile.lastModified
short:
  v: Last modified date of transaction
definition:
  v: Last modified date of transaction
comment:
  v: Last modified date of transaction
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-payment-profile.lastModified
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: athena-payment-profile.binary
path:
  v: athena-payment-profile.binary
short:
  v: Binary reference for payment method attachement.
definition:
  v: Reference to Binary
min:
  v: 0
max:
  v: 1
base:
  path:
    v: athena-payment-profile.binary
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Binary
    link: http://hl7.org/fhir/StructureDefinition/Binary
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-payment-profile.binary.id
path:
  v: athena-payment-profile.binary.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:
      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-payment-profile.binary.extension
path:
  v: athena-payment-profile.binary.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-payment-profile.binary.reference
path:
  v: athena-payment-profile.binary.reference
short:
  v: PaymentMethodAttachmentId refering to Binary
definition:
  v: Reference to Binary
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: *
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-payment-profile.binary.type
path:
  v: athena-payment-profile.binary.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:
      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-payment-profile.binary.identifier
path:
  v: athena-payment-profile.binary.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-payment-profile.binary.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value:
    v: true
path:
  v: athena-payment-profile.binary.display
short:
  v: Text alternative for the resource
definition:
  v: Plain text narrative that identifies the resource in addition to the resource reference.
comment:
  v: This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
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-payment-profile
  path:
    v: athena-payment-profile
element:
  id:
    v: athena-payment-profile.id
  path:
    v: athena-payment-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: 0
  max:
    v: 1
  type:
    code:
      v: id
  must support:
    v: true
  is modifier:
    v: false
  is summary:
    v: true
element:
  id:
    v: athena-payment-profile.meta
  path:
    v: athena-payment-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-payment-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-payment-profile.pid
  path:
    v: athena-payment-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: Patient identifier for payment data.
  comment:
    v: Patient-identifier.
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: integer
  must support:
    v: false
  is modifier:
    v: false
  is summary:
    v: true
element:
  id:
    v: athena-payment-profile.patient
  path:
    v: athena-payment-profile.patient
  short:
    v: Who/what is the patient of the Payment
  definition:
    v: Who or what the Payment is about. The Payment 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-payment-profile.patient.reference
  path:
    v: athena-payment-profile.patient.reference
  short:
    v: Patient Reference
  definition:
    v: Who or what the Payment is about. The Payment can be about a person.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: string
element:
  id:
    v: athena-payment-profile.patient.display
  path:
    v: athena-payment-profile.patient.display
  short:
    v: display to the Patient name
  definition:
    v: Patient name for the Payment is about.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: string
element:
  id:
    v: athena-payment-profile.patientProfileId
  path:
    v: athena-payment-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: 0
  max:
    v: 1
  type:
    code:
      v: integer
  must support:
    v: true
  is modifier:
    v: false
  is summary:
    v: true
element:
  id:
    v: athena-payment-profile.patientVisitId
  path:
    v: athena-payment-profile.patientVisitId
  short:
    v: Patient visitId for facility
  definition:
    v: Patient visitId for facility
  comment:
    v: Patient visitId for facility
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: string
element:
  id:
    v: athena-payment-profile.ticketNumber
  path:
    v: athena-payment-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-payment-profile.procedureCode
  path:
    v: athena-payment-profile.procedureCode
  short:
    v: Procedure-code
  definition:
    v: The code of the procedure
  comment:
    v: Code to indentification of the procedure.
  min:
    v: 0

v: 1

code:
  v: string

id:
  v: athena-payment-profile.payer
path:
  v: athena-payment-profile.payer
short:
  v: Payer information
definition:
  v: Payer information
comment:
  v: Payment information
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-payment-profile.paymentSource
path:
  v: athena-payment-profile.paymentSource
short:
  v: Transaction type indentification
definition:
  v: Transaction type description
comment:
  v: Supported payor infrmation for Payment-profile
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-payment-profile.batchName
path:
  v: athena-payment-profile.batchName
short:
  v: Transaction batch name
definition:
  v: Transaction batch name
comment:
  v: Transaction batch name
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-payment-profile.dateOfEntry
path:
  v: athena-payment-profile.dateOfEntry
short:
  v: The date of entry for the batch.
definition:
  v: The date of entry for the batch.
comment:
  v: The date of entry for for the batch on the patient visit.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: dateTime

id:
  v: athena-payment-profile.dateOfServiceFrom
path:
  v: athena-payment-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-payment-profile.dateOfServiceTo
path:
  v: athena-payment-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-payment-profile.checkNumber
path:
  v: athena-payment-profile.checkNumber
short:
  v: Check Card Number for payment
definition:
  v: Check Card Number for payment
comment:
  v: Check Card Number for payment
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-payment-profile.checkDate
path:
  v: athena-payment-profile.checkDate
short:
  v: Check date on card for payment
definition:
  v: Check date on card for payment
comment:
  v: Check date on card for payment
min:
  v: 0
max:
  v: 1
type:
  code:
    v: dateTime

id:
  v: athena-payment-profile.notes
path:
  v: athena-payment-profile.notes
short:
  v: The note associated with the transaction.
definition:
  v: The note associated with the transaction
comment:
  v: The note associated with the transaction.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-payment-profile.insuranceCarrier
path:
  v: athena-payment-profile.insuranceCarrier
short:
  v: Insurance carrier Reference
definition:
  v: Reference to Organization
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization

id:
  v: athena-payment-profile.insuranceCarrier.reference
path:
  v: athena-payment-profile.insuranceCarrier.reference
short:
  v: Insurance Carrier Id refering to Organization
definition:
  v: Reference to Organization
comment:
  v: Insurance Carrier Id refering to Organization
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-payment-profile.insuranceCarrier.display
path:
  v: athena-payment-profile.insuranceCarrier.display
short:
  v: Insurance carrier Name
definition:
  v: Name of the the insurance Carrier
comment:
  v: Insurance carrier Name
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-payment-profile.insurancePayment
path:
  v: athena-payment-profile.insurancePayment
short:
  v: The Payment amount distribution
definition:
  v: The total amount of the distribution when the source is insurance
comment:
  v: The amount distribution from insurance
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Money

id:
  v: athena-payment-profile.insurancePayment.value
path:
  v: athena-payment-profile.insurancePayment.value
short:
  v: Insurance Payment amount
definition:
  v: Insurance Payment
comment:
  v: The sum of the Payment
min:
  v: 0
max:
  v: 1
type:
  code:
    v: decimal

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

id:
  v: athena-payment-profile.patientPayment
path:
  v: athena-payment-profile.patientPayment
short:
  v: The total amount of the distribution when the source is patient
definition:
  v: The total amount of the distribution when the source is patient
comment:
  v: Patient payment from patient.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Money

id:
  v: athena-payment-profile.patientPayment.value
path:
  v: athena-payment-profile.patientPayment.value
short:
  v: Patient payment amount.
definition:
  v: Patient payment amount.
comment:
  v: Payment amount.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: decimal

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

id:
  v: athena-payment-profile.financialClass
path:
  v: athena-payment-profile.financialClass
short:
  v: Financial class description
definition:
  v: Financial class description
comment:
  v: Financial class
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-payment-profile.lastModified
path:
  v: athena-payment-profile.lastModified
short:
  v: Last modified date of transaction
definition:
  v: Last modified date of transaction
comment:
  v: Last modified date of transaction
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: athena-payment-profile.binary
path:
  v: athena-payment-profile.binary
short:
  v: Binary reference for payment method attachement.
definition:
  v: Reference to Binary
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Binary
    link: http://hl7.org/fhir/StructureDefinition/Binary

id:
  v: athena-payment-profile.binary.reference
path:
  v: athena-payment-profile.binary.reference
short:
  v: PaymentMethodAttachmentId refering to Binary
definition:
  v: Reference to Binary
min:
  v: 0
max:
  v: *
type:
  code:
    v: string