payment-reconciliation
type: StructureDefinition
node role: treeRoot
id:
  v: payment-reconciliation
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition payment-reconciliation Name Flags Card. Type Description & Constraints PaymentReconciliation PaymentReconciliation id 1..1 id Logical id of this artifact Max Length:64 meta 1..1 Meta Metadata about the resource profile 1..* DP_canonical(StructureDefinition) Profiles this resource claims to conform to identifier 1..* DP_Identifier_A Business Identifier for a payment reconciliation status 1..1 code active | cancelled | draft | entered-in-error Required Pattern: active period 1..1 DP_Period_2 Period covered created 1..1 DP_dateTime Creation date paymentIssuer 1..1 DP_Reference_1or2a(Nphies Insurer Organization) Party generating payment requestor 1..1 DP_Reference_1or2a(Nphies Provider Organization) Responsible practitioner outcome 1..1 code queued | complete | error | partial Required Pattern: complete disposition 0..1 DP_string Disposition message paymentDate 1..1 DP_date When payment issued paymentAmount 1..1 DP_Money_SAR Total amount of Payment paymentIdentifier 0..1 DP_Identifier_C Business identifier for the payment type 1..1 DP_CodeableConcept Description of identifier Binding: Payment Method (required) detail 1..* BackboneElement Settlement particulars Slices for extension 1..* Extension Extension Slice: Unordered, Open by value:url extension:component-payment S 1..1 DP_Money_SAR Component - Payment URL: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/extension-component-payment extension:component-early-fee S 0..1 DP_Money_SAR Component - Early Fee URL: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/extension-component-early-fee extension:component-nphies-fee S 0..1 DP_Money_SAR Component - Payment URL: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/extension-component-nphies-fee identifier S 0..1 DP_Identifier_A Business identifier of the payment detail predecessor S 0..1 DP_Identifier_A Business identifier of the prior payment detail type 1..1 DP_CodeableConcept Category of payment Binding: Pa…
url:
  v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/payment-reconciliation
version:
  v: 0.3.0
name:
  v: NphiesPaymentReconciliation
title:
  v: Nphies Payment Reconciliation
status:
  v: draft
date:
  v: 2025-06-23T22:09:21+03:00
publisher:
  v: HL7 Saudi Arabia
contact:
  name:
    v: HL7 Saudi Arabia
  telecom:
    system:
      v: url
    value:
      v: http://test-project.org/test-publisher
description:
  v: Nphies Payment Reconciliation Profile
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
    code:
      v: SA
    display:
      v: Saudi Arabia
copyright:
  v: Used by permission of HL7 International, all rights reserved Creative Commons License
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: workflow
  uri:
    v: http://hl7.org/fhir/workflow
  name:
    v: Workflow Pattern
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
  name:
    v: FiveWs Pattern Mapping
mapping:
  identity:
    v: cdanetv4
  uri:
    v: http://www.cda-adc.ca/en/services/cdanet/
  name:
    v: Canadian Dental Association eclaims standard
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: PaymentReconciliation
base definition:
  v: http://hl7.org/fhir/StructureDefinition/PaymentReconciliation
  link: http://hl7.org/fhir/StructureDefinition/PaymentReconciliation
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    value: string
      v: 4.0.1
  element:
    id:
      v: PaymentReconciliation
    path:
      v: PaymentReconciliation
    short:
      v: PaymentReconciliation resource
    definition:
      v: This resource provides the details including amount of a payment and allocates the payment items being paid.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: PaymentReconciliation
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      xpath:
        v: not(parent::f:contained and f:contained)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
      expression:
        v: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
      xpath:
        v: not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-5
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a security label
      expression:
        v: contained.meta.security.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:security))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      extension:
        value: boolean
      extension:
        value: markdown
      key:
        v: dom-6
      severity:
        v: warning
      human:
        v: A resource should have narrative for robust management
      expression:
        v: text.`div`.exists()
      xpath:
        v: exists(f:text/h:div)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: Entity. Role, or Act
    mapping:
      identity:
        v: workflow
      map:
        v: Event
  element:
    id:
      v: PaymentReconciliation.id
    path:
      v: PaymentReconciliation.id

boolean
v: true

markdown
v: When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time.

v: Logical id of this artifact

v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.

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.

v: 1

v: 1

path:
  v: Resource.id
min:
  v: 0
max:
  v: 1

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
  value: url
    v: id
code:
  v: http://hl7.org/fhirpath/System.String

v: 64

v: false

v: true

id:
  v: PaymentReconciliation.meta
path:
  v: PaymentReconciliation.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.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
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

id:
  v: PaymentReconciliation.meta.id
path:
  v: PaymentReconciliation.meta.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: PaymentReconciliation.meta.extension
path:
  v: PaymentReconciliation.meta.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: PaymentReconciliation.meta.versionId
path:
  v: PaymentReconciliation.meta.versionId
short:
  v: Version specific identifier
definition:
  v: The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.
comment:
  v: The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Meta.versionId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
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

id:
  v: PaymentReconciliation.meta.lastUpdated
path:
  v: PaymentReconciliation.meta.lastUpdated
short:
  v: When the resource version last changed
definition:
  v: When the resource last changed - e.g. when the version changed.
comment:
  v: This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Meta.lastUpdated
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: instant
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

id:
  v: PaymentReconciliation.meta.source
path:
  v: PaymentReconciliation.meta.source
short:
  v: Identifies where the resource comes from
definition:
  v: A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.
comment:
  v: In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Meta.source
  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

id:
  v: PaymentReconciliation.meta.profile
path:
  v: PaymentReconciliation.meta.profile
short:
  v: Profiles this resource claims to conform to
definition:
  v: A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url).
comment:
  v: It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.
min:
  v: 1
max:
  v: *
base:
  path:
    v: Meta.profile
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: canonical
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-canonical
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/StructureDefinition
    link: http://hl7.org/fhir/StructureDefinition/StructureDefinition
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

id:
  v: PaymentReconciliation.meta.security
path:
  v: PaymentReconciliation.meta.security
short:
  v: Security Labels applied to this resource
definition:
  v: Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.
comment:
  v: The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Meta.security
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
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: SecurityLabels
  strength:
    v: extensible
  description:
    v: Security Labels from the Healthcare Privacy and Security Classification System.
  value set:
    v: http://hl7.org/fhir/ValueSet/security-labels
    link: http://hl7.org/fhir/ValueSet/security-labels

id:
  v: PaymentReconciliation.meta.tag
path:
  v: PaymentReconciliation.meta.tag
short:
  v: Tags applied to this resource
definition:
  v: Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.
comment:
  v: The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Meta.tag
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
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: Tags
  strength:
    v: example
  description:
    v: Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
  value set:
    v: http://hl7.org/fhir/ValueSet/common-tags
    link: http://hl7.org/fhir/ValueSet/common-tags

id:
  v: PaymentReconciliation.implicitRules
path:
  v: PaymentReconciliation.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
comment:
  v: Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  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: true
is modifier reason:
  v: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation
is summary:
  v: true

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

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

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

id:
  v: PaymentReconciliation.extension
path:
  v: PaymentReconciliation.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource. 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: DomainResource.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: PaymentReconciliation.modifierExtension
path:
  v: PaymentReconciliation.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
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: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: PaymentReconciliation.identifier
path:
  v: PaymentReconciliation.identifier
short:
  v: Business Identifier for a payment reconciliation
definition:
  v: A unique identifier assigned to this payment reconciliation.
requirements:
  v: Allows payment reconciliations to be distinguished and referenced.
min:
  v: 1
max:
  v: *
base:
  path:
    v: PaymentReconciliation.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Identifier-A
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Identifier-A
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: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.identifier
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier

id:
  v: PaymentReconciliation.status
path:
  v: PaymentReconciliation.status
short:
  v: active | cancelled | draft | entered-in-error
definition:
  v: The status of the resource instance.
comment:
  v: This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.
requirements:
  v: Need to track the status of the resource as 'draft' resources may undergo further edits while 'active' resources are immutable and may only have their status changed to 'cancelled'.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
pattern: code
  v: active
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: true
is modifier reason:
  v: This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: PaymentReconciliationStatus
  strength:
    v: required
  description:
    v: A code specifying the state of the resource instance.
  value set:
    v: http://hl7.org/fhir/ValueSet/fm-status|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: workflow
  map:
    v: Event.status
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status

id:
  v: PaymentReconciliation.period
path:
  v: PaymentReconciliation.period
short:
  v: Period covered
definition:
  v: The period of time for which payments have been gathered into this bulk payment for settlement.
requirements:
  v: Needed to allow receivers to monitor and reconcile payment issuer schedules.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Period-2
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Period-2
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: w5
  map:
    v: FiveWs.done[x]

id:
  v: PaymentReconciliation.created
path:
  v: PaymentReconciliation.created
short:
  v: Creation date
definition:
  v: The date when the resource was created.
requirements:
  v: Need to record a timestamp for use by both the recipient and the issuer.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.created
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-dateTime
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-dateTime
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: workflow
  map:
    v: Event.occurrence[x]
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.recorded

id:
  v: PaymentReconciliation.paymentIssuer
path:
  v: PaymentReconciliation.paymentIssuer
short:
  v: Party generating payment
definition:
  v: The party who generated the payment.
comment:
  v: This party is also responsible for the reconciliation.
requirements:
  v: Need to identify the party resonsible for the payment and this resource.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.paymentIssuer
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-1or2a
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-1or2a
  target profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/insurer-organization
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/insurer-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
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer.actor
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.source

id:
  v: PaymentReconciliation.request
path:
  v: PaymentReconciliation.request
short:
  v: Reference to requesting resource
definition:
  v: Original request resource reference.
requirements:
  v: Needed to allow the response to be linked to the request.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.request
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Task
    link: http://hl7.org/fhir/StructureDefinition/Task
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: false
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: cdanetv4
  map:
    v: A02|G01

id:
  v: PaymentReconciliation.requestor
path:
  v: PaymentReconciliation.requestor
short:
  v: Responsible practitioner
definition:
  v: The practitioner who is responsible for the services rendered to the patient.
requirements:
  v: Need to identify the party responsible for the request.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.requestor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-1or2a
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-1or2a
  target profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/provider-organization
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/provider-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
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: cdanetv4
  map:
    v: B01

id:
  v: PaymentReconciliation.outcome
path:
  v: PaymentReconciliation.outcome
short:
  v: queued | complete | error | partial
definition:
  v: The outcome of a request for a reconciliation.
comment:
  v: The resource may be used to indicate that: the request has been held (queued) for processing; that it has been processed and errors found (error); that no errors were found and that some of the adjudication has been undertaken (partial) or that all of the adjudication has been undertaken (complete).
requirements:
  v: To advise the requestor of an overall processing outcome.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.outcome
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
pattern: code
  v: complete
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: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: RemittanceOutcome
  strength:
    v: required
  description:
    v: The outcome of the processing.
  value set:
    v: http://hl7.org/fhir/ValueSet/remittance-outcome|4.0.1
    link: 4.0
    link: .1

id:
  v: PaymentReconciliation.disposition
path:
  v: PaymentReconciliation.disposition
short:
  v: Disposition message
definition:
  v: A human readable description of the status of the request for the reconciliation.
requirements:
  v: Provided for user display.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.disposition
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-string
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-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: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.note

id:
  v: PaymentReconciliation.paymentDate
path:
  v: PaymentReconciliation.paymentDate
short:
  v: When payment issued
definition:
  v: The date of payment as indicated on the financial instrument.
requirements:
  v: To advise the payee when payment can be expected.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.paymentDate
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: date
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-date
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-date
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

id:
  v: PaymentReconciliation.paymentAmount
path:
  v: PaymentReconciliation.paymentAmount
short:
  v: Total amount of Payment
definition:
  v: Total payment amount as indicated on the financial instrument.
requirements:
  v: Needed to provide the actual payment amount.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.paymentAmount
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Money
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Money-SAR
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Money-SAR
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

id:
  v: PaymentReconciliation.paymentIdentifier
path:
  v: PaymentReconciliation.paymentIdentifier
short:
  v: Business identifier for the payment
definition:
  v: Issuer's unique identifier for the payment instrument.
comment:
  v: For example: EFT number or check number.
requirements:
  v: Enable the receiver to reconcile when payment is received.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.paymentIdentifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Identifier-C
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Identifier-C
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: false

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

id:
  v: PaymentReconciliation.paymentIdentifier.type
path:
  v: PaymentReconciliation.paymentIdentifier.type
short:
  v: Description of identifier
definition:
  v: A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.
comment:
  v: This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.
requirements:
  v: Allows users to make use of identifiers when the identifier system is not known.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Identifier.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-CodeableConcept
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-CodeableConcept
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:
  strength:
    v: required
  value set:
    v: http://nphies.sa/terminology/ValueSet/payment-method
    link: http://nphies.sa/terminology/ValueSet/payment-method
mapping:
  identity:
    v: v2
  map:
    v: CX.5
mapping:
  identity:
    v: rim
  map:
    v: Role.code or implied by context

id:
  v: PaymentReconciliation.paymentIdentifier.system
path:
  v: PaymentReconciliation.paymentIdentifier.system
short:
  v: The namespace for the identifier value
definition:
  v: Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
comment:
  v: Identifier.system is always case sensitive.
requirements:
  v: There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.system
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
example:
  label:
    v: General
  value: uri
    v: http://www.acme.com/identifiers/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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.4 / EI-2-4
mapping:
  identity:
    v: rim
  map:
    v: II.root or Role.id.root
mapping:
  identity:
    v: servd
  map:
    v: ./IdentifierType

id:
  v: PaymentReconciliation.paymentIdentifier.value
path:
  v: PaymentReconciliation.paymentIdentifier.value
short:
  v: The value that is unique
definition:
  v: The portion of the identifier typically relevant to the user and which is unique within the context of the system.
comment:
  v: If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/R4/extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Identifier.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
example:
  label:
    v: General
  value: string
    v: 123456
max length:
  v: 50
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: CX.1 / EI.1
mapping:
  identity:
    v: rim
  map:
    v: II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
mapping:
  identity:
    v: servd
  map:
    v: ./Value

id:
  v: PaymentReconciliation.paymentIdentifier.period
path:
  v: PaymentReconciliation.paymentIdentifier.period
short:
  v: Time period when id is/was valid for use
definition:
  v: Time period during which identifier is/was valid for use.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
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: CX.7 + CX.8
mapping:
  identity:
    v: rim
  map:
    v: Role.effectiveTime or implied by context
mapping:
  identity:
    v: servd
  map:
    v: ./StartDate and ./EndDate

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

id:
  v: PaymentReconciliation.detail
path:
  v: PaymentReconciliation.detail
short:
  v: Settlement particulars
definition:
  v: Distribution of the payment amount for a previously acknowledged payable.
requirements:
  v: Needed to show how the payment amount is distributed across the payables.
min:
  v: 1
max:
  v: *
base:
  path:
    v: PaymentReconciliation.detail
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
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: false

id:
  v: PaymentReconciliation.detail.id
path:
  v: PaymentReconciliation.detail.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: PaymentReconciliation.detail.extension
path:
  v: PaymentReconciliation.detail.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 1
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
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

id:
  v: PaymentReconciliation.detail.extension:component-payment
path:
  v: PaymentReconciliation.detail.extension
slice name:
  v: component-payment
short:
  v: Component - Payment
definition:
  v: The amount of the payment.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/extension-component-payment
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/extension-component-payment
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() 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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: PaymentReconciliation.detail.extension:component-early-fee
path:
  v: PaymentReconciliation.detail.extension
slice name:
  v: component-early-fee
short:
  v: Component - Early Fee
definition:
  v: The charge for early settlemnt of the payment.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/extension-component-early-fee
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/extension-component-early-fee
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() 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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: PaymentReconciliation.detail.extension:component-nphies-fee
path:
  v: PaymentReconciliation.detail.extension
slice name:
  v: component-nphies-fee
short:
  v: Component - Payment
definition:
  v: The charge for nphies services.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/extension-component-nphies-fee
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/extension-component-nphies-fee
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() 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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: PaymentReconciliation.detail.modifierExtension
path:
  v: PaymentReconciliation.detail.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
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: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: PaymentReconciliation.detail.identifier
path:
  v: PaymentReconciliation.detail.identifier
short:
  v: Business identifier of the payment detail
definition:
  v: Unique identifier for the current payment item for the referenced payable.
requirements:
  v: Needed for reconciliation of payments.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.detail.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Identifier-A
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Identifier-A
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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: PaymentReconciliation.detail.predecessor
path:
  v: PaymentReconciliation.detail.predecessor
short:
  v: Business identifier of the prior payment detail
definition:
  v: Unique identifier for the prior payment item for the referenced payable.
requirements:
  v: Needed for reconciliation of payments.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.detail.predecessor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Identifier-A
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Identifier-A
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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: PaymentReconciliation.detail.type
path:
  v: PaymentReconciliation.detail.type
short:
  v: Category of payment
definition:
  v: Code to indicate the nature of the payment.
comment:
  v: For example: payment, adjustment, funds advance, etc.
requirements:
  v: Needed to provide context for the amount.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.detail.type
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-CodeableConcept
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-CodeableConcept
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: false
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/payment-type
    link: http://hl7.org/fhir/ValueSet/payment-type

id:
  v: PaymentReconciliation.detail.request
path:
  v: PaymentReconciliation.detail.request
short:
  v: Request giving rise to the payment
definition:
  v: A resource, such as a Claim, the evaluation of which could lead to payment.
requirements:
  v: Needed to provide a linkage to the original request.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.detail.request
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-3a
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-3a
  target profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/institutional-claim
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/institutional-claim
  target profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/oral-claim
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/oral-claim
  target profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/pharmacy-claim
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/pharmacy-claim
  target profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/professional-claim
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/professional-claim
  target profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/vision-claim
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/vision-claim
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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: PaymentReconciliation.detail.submitter
path:
  v: PaymentReconciliation.detail.submitter
short:
  v: Submitter of the request
definition:
  v: The party which submitted the claim or financial transaction.
requirements:
  v: Needed for audit and validation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.detail.submitter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-1or2a
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-1or2a
  target profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/provider-organization
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/provider-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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: PaymentReconciliation.detail.response
path:
  v: PaymentReconciliation.detail.response
short:
  v: Response committing to a payment
definition:
  v: A resource, such as a ClaimResponse, which contains a commitment to payment.
requirements:
  v: Needed to provide a linkage to the payment commitment.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.detail.response
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-3a
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-3a
  target profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/claim-response
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/claim-response
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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: PaymentReconciliation.detail.date
path:
  v: PaymentReconciliation.detail.date
short:
  v: Date of commitment to pay
definition:
  v: The date from the response resource containing a commitment to pay.
requirements:
  v: Needed for audit and validation.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.detail.date
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-date
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-date
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: false

id:
  v: PaymentReconciliation.detail.responsible
path:
  v: PaymentReconciliation.detail.responsible
short:
  v: Contact for the response
definition:
  v: A reference to the individual who is responsible for inquiries regarding the response and its payment.
requirements:
  v: To provide contact information.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.detail.responsible
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
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: false

id:
  v: PaymentReconciliation.detail.payee
path:
  v: PaymentReconciliation.detail.payee
short:
  v: Recipient of the payment
definition:
  v: The party which is receiving the payment.
requirements:
  v: Needed for audit and validation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.detail.payee
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-1or2a
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-1or2a
  target profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/provider-organization
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/provider-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
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: PaymentReconciliation.detail.amount
path:
  v: PaymentReconciliation.detail.amount
short:
  v: Amount allocated to this payable
definition:
  v: The monetary amount allocated from the total payment to the payable.
requirements:
  v: Needed to explain the distribution of the payment to the payables.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.detail.amount
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Money
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Money-SAR
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Money-SAR
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: false

id:
  v: PaymentReconciliation.formCode
path:
  v: PaymentReconciliation.formCode
short:
  v: Printed form identifier
definition:
  v: A code for the form to be used for printing the content.
comment:
  v: May be needed to identify specific jurisdictional forms.
requirements:
  v: Needed to specify the specific form used for producing output for this response.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.formCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
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: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: Forms
  strength:
    v: example
  description:
    v: The forms codes.
  value set:
    v: http://hl7.org/fhir/ValueSet/forms
    link: http://hl7.org/fhir/ValueSet/forms

id:
  v: PaymentReconciliation.processNote
path:
  v: PaymentReconciliation.processNote
short:
  v: Note concerning processing
definition:
  v: A note that describes or explains the processing in a human readable form.
requirements:
  v: Provides the specific textual explanations associated with the processing.
min:
  v: 0
max:
  v: *
base:
  path:
    v: PaymentReconciliation.processNote
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
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: false

id:
  v: PaymentReconciliation.processNote.id
path:
  v: PaymentReconciliation.processNote.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: PaymentReconciliation.processNote.extension
path:
  v: PaymentReconciliation.processNote.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. 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: PaymentReconciliation.processNote.modifierExtension
path:
  v: PaymentReconciliation.processNote.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
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: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: PaymentReconciliation.processNote.type
path:
  v: PaymentReconciliation.processNote.type
short:
  v: display | print | printoper
definition:
  v: The business purpose of the note text.
requirements:
  v: To convey the expectation for when the text is used.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.processNote.type
  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: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: NoteType
  strength:
    v: required
  description:
    v: The presentation types of notes.
  value set:
    v: http://hl7.org/fhir/ValueSet/note-type|4.0.1
    link: 4.0
    link: .1

id:
  v: PaymentReconciliation.processNote.text
path:
  v: PaymentReconciliation.processNote.text
short:
  v: Note explanatory text
definition:
  v: The explanation or description associated with the processing.
requirements:
  v: Required to provide human readable explanation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PaymentReconciliation.processNote.text
  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: false
mapping:
  identity:
    v: cdanetv4
  map:
    v: G32

element:
  id:
    v: PaymentReconciliation.id
  path:
    v: PaymentReconciliation.id
  min:
    v: 1
  max length:
    v: 64
element:
  id:
    v: PaymentReconciliation.meta
  path:
    v: PaymentReconciliation.meta
  min:
    v: 1
element:
  id:
    v: PaymentReconciliation.meta.profile
  path:
    v: PaymentReconciliation.meta.profile
  min:
    v: 1
  type:
    code:
      v: canonical
    profile:
      v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-canonical
      link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-canonical
    target profile:
      v: http://hl7.org/fhir/StructureDefinition/StructureDefinition
      link: http://hl7.org/fhir/StructureDefinition/StructureDefinition
element:
  id:
    v: PaymentReconciliation.identifier
  path:
    v: PaymentReconciliation.identifier
  min:
    v: 1
  type:
    code:
      v: Identifier
    profile:
      v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Identifier-A
      link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Identifier-A
element:
  id:
    v: PaymentReconciliation.status
  path:
    v: PaymentReconciliation.status
  pattern: code
    v: active
element:
  id:
    v: PaymentReconciliation.period
  path:
    v: PaymentReconciliation.period
  min:
    v: 1
  type:
    code:
      v: Period
    profile:
      v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Period-2
      link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Period-2
element:
  id:
    v: PaymentReconciliation.created
  path:
    v: PaymentReconciliation.created
  type:
    code:
      v: dateTime
    profile:
      v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-dateTime
      link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-dateTime
element:
  id:
    v: PaymentReconciliation.paymentIssuer
  path:
    v: PaymentReconciliation.paymentIssuer
  min:
    v: 1
  type:
    code:
      v: Reference
    profile:
      v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-1or2a
      link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-1or2a
    target profile:
      v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/insurer-organization
      link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/insurer-organization
element:
  id:
    v: PaymentReconciliation.requestor
  path:
    v: PaymentReconciliation.requestor
  min:
    v: 1
  type:
    code:
      v: Reference
    profile:
      v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-1or2a
      link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-1or2a
    target profile:
      v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/provider-organization
      link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/provider-organization
element:
  id:
    v: PaymentReconciliation.outcome
  path:
    v: PaymentReconciliation.outcome
  min:
    v: 1
  pattern: code
    v: complete
element:
  id:
    v: PaymentReconciliation.disposition
  path:
    v: PaymentReconciliation.disposition
  type:
    code:
      v: string
    profile:
      v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-string
      link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-string
element:
  id:
    v: PaymentReconciliation.paymentDate
  path:
    v: PaymentReconciliation.paymentDate
  type:
    code:
      v: date
    profile:
      v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-date
      link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-date
element:
  id:
    v: PaymentReconciliation.paymentAmount
  path:
    v: PaymentReconciliation.paymentAmount
  type:
    code:
      v: Money
    profile:
      v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Money-SAR
      link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Money-SAR
element:
  id:
    v: PaymentReconciliation.paymentIdentifier
  path:
    v: PaymentReconciliation.paymentIdentifier
  type:
    code:
      v: Identifier
    profile:
      v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Identifier-C
      link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Identifier-C
element:
  id:
    v: PaymentReconciliation.paymentIdentifier.type
  path:
    v: PaymentReconciliation.paymentIdentifier.type
  binding:
    strength:
      v: required
    value set:
      v: http://nphies.sa/terminology/ValueSet/payment-method
      link: http://nphies.sa/terminology/ValueSet/payment-method
element:
  id:
    v: PaymentReconciliation.detail
  path:
    v: PaymentReconciliation.detail
  min:
    v: 1
element:
  id:
    v: PaymentReconciliation.detail.extension
  path:
    v: PaymentReconciliation.detail.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 1
element:
  id:
    v: PaymentReconciliation.detail.extension:component-payment
  path:
    v: PaymentReconciliation.detail.extension

v: component-payment

v: 1

v: 1

code:
  v: Extension
profile:
  v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/extension-component-payment
  link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/extension-component-payment

v: true

id:
  v: PaymentReconciliation.detail.extension:component-early-fee
path:
  v: PaymentReconciliation.detail.extension
slice name:
  v: component-early-fee
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Extension
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/extension-component-early-fee
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/extension-component-early-fee
must support:
  v: true

id:
  v: PaymentReconciliation.detail.extension:component-nphies-fee
path:
  v: PaymentReconciliation.detail.extension
slice name:
  v: component-nphies-fee
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Extension
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/extension-component-nphies-fee
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/extension-component-nphies-fee
must support:
  v: true

id:
  v: PaymentReconciliation.detail.identifier
path:
  v: PaymentReconciliation.detail.identifier
type:
  code:
    v: Identifier
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Identifier-A
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Identifier-A
must support:
  v: true

id:
  v: PaymentReconciliation.detail.predecessor
path:
  v: PaymentReconciliation.detail.predecessor
type:
  code:
    v: Identifier
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Identifier-A
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Identifier-A
must support:
  v: true

id:
  v: PaymentReconciliation.detail.type
path:
  v: PaymentReconciliation.detail.type
type:
  code:
    v: CodeableConcept
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-CodeableConcept
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-CodeableConcept
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/payment-type
    link: http://hl7.org/fhir/ValueSet/payment-type

id:
  v: PaymentReconciliation.detail.request
path:
  v: PaymentReconciliation.detail.request
type:
  code:
    v: Reference
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-3a
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-3a
  target profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/institutional-claim
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/institutional-claim
  target profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/oral-claim
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/oral-claim
  target profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/pharmacy-claim
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/pharmacy-claim
  target profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/professional-claim
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/professional-claim
  target profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/vision-claim
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/vision-claim
must support:
  v: true

id:
  v: PaymentReconciliation.detail.submitter
path:
  v: PaymentReconciliation.detail.submitter
type:
  code:
    v: Reference
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-1or2a
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-1or2a
  target profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/provider-organization
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/provider-organization
must support:
  v: true

id:
  v: PaymentReconciliation.detail.response
path:
  v: PaymentReconciliation.detail.response
type:
  code:
    v: Reference
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-3a
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-3a
  target profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/claim-response
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/claim-response
must support:
  v: true

id:
  v: PaymentReconciliation.detail.date
path:
  v: PaymentReconciliation.detail.date
min:
  v: 1
type:
  code:
    v: date
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-date
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-date

id:
  v: PaymentReconciliation.detail.payee
path:
  v: PaymentReconciliation.detail.payee
type:
  code:
    v: Reference
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-1or2a
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Reference-1or2a
  target profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/provider-organization
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/provider-organization
must support:
  v: true

id:
  v: PaymentReconciliation.detail.amount
path:
  v: PaymentReconciliation.detail.amount
min:
  v: 1
type:
  code:
    v: Money
  profile:
    v: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Money-SAR
    link: http://nphies.sa/fhir/ksa/nphies-fs/StructureDefinition/DP-Money-SAR