PackagesCanonicalsLogsProblems
    Packages
    novari.digidot@0.3.0
    https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no
description: 'Readiness: [Experimental](https://simplifier.net/guide/Visual-overview/Home/Review-status-and-releases.page.md?version=current#readiness-chargeitem).\n\nProfile base: FHIR R4 ChargeItem.\n\nOne priced dental service linked to one performed Procedure: its description, quantity and calculated total fee before allocation to the patient or a benefit payer. A price code is optional. The total fee uses the published HL7 R5-to-R4 totalPriceComponent extension; it is not a payment or reimbursement result.'
package_name: novari.digidot
derivation: constraint
name: DigidotChargeItemNo
type: ChargeItem
elements:
  service:
    constraint:
      chargeitem-service-literal: {human: A resource reference must contain a literal reference; identifier-only and contained references are not permitted., source: 'https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no', severity: error, expression: ($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())}
    short: The Procedure to which this fee belongs
    index: 56
    refers: ['https://novari.no/fhir/digidot/StructureDefinition/digidot-Procedure-no']
    type: Reference
    mustSupport: true
    elements:
      reference: {index: 57}
      identifier: {index: 58}
    required: [reference]
  definitionUri: {index: 22}
  enterer:
    type: Reference
    constraint:
      chargeitem-enterer-literal: {human: A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted., source: 'https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no', severity: error, expression: ($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())}
    refers: ['http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner', 'http://hl7.no/fhir/StructureDefinition/no-basis-PractitionerRole']
    index: 53
    elements:
      reference: {index: 54}
      identifier: {index: 55}
    required: [reference]
  requestingOrganization: {index: 42}
  definitionCanonical: {index: 23}
  implicitRules: {index: 0}
  costCenter: {index: 43}
  note:
    elements:
      author:
        constraint:
          chargeitem-note-author-x-literal: {human: A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted., source: 'https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no', severity: error, expression: ($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())}
        choices: [authorString, authorReference]
        index: 63
      authorString:
        type: string
        constraint:
          chargeitem-note-author-x-literal: {human: A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted., source: 'https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no', severity: error, expression: ($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())}
        choiceOf: author
        index: 64
      authorReference:
        type: Reference
        constraint:
          chargeitem-note-author-x-literal: {human: A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted., source: 'https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no', severity: error, expression: ($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())}
        choiceOf: author
        refers: ['http://hl7.no/fhir/StructureDefinition/no-basis-Organization', 'http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner']
        index: 65
  account: {index: 61}
  extension:
    index: 2
    slicing:
      rules: closed
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 1
      max: 1
      slices:
        totalPrice:
          match: {url: null}
          schema:
            type: Extension
            short: Calculated total fee for the complete quantity
            url: http://hl7.org/fhir/5.0/StructureDefinition/extension-ChargeItem.totalPriceComponent
            index: 3
            extensions:
              _datatype: {url: null, min: 1, max: 1, _required: true, index: 5}
              type:
                url: null
                _required: true
                index: 6
                elements:
                  value:
                    pattern: {type: Code, value: base}
                    choices: [valueCode]
                    index: 8
                  valueCode:
                    type: code
                    pattern: {type: Code, value: base}
                    choiceOf: value
                    index: 9
              code: {url: null, max: 0, index: 10}
              factor: {url: null, max: 0, index: 11}
              amount:
                url: null
                _required: true
                index: 12
                elements:
                  value:
                    choices: [valueMoney]
                    index: 14
                  valueMoney: {type: Money, choiceOf: value, index: 15}
                  value[x]:
                    elements:
                      value: {index: 16}
                      currency: {index: 17}
                    required: [currency, value]
                required: [valueMoney, value]
            elements:
              extension:
                index: 4
                slicing:
                  rules: closed
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    _datatype:
                      match: {url: null}
                      schema: {_required: true, index: 5}
                      min: 1
                      max: 1
                    type:
                      match: {url: null}
                      schema:
                        _required: true
                        index: 6
                        elements:
                          value:
                            pattern: {type: Code, value: base}
                            choices: [valueCode]
                            index: 8
                          valueCode:
                            type: code
                            pattern: {type: Code, value: base}
                            choiceOf: value
                            index: 9
                    code:
                      match: {url: null}
                      schema: {index: 10}
                      max: 0
                    factor:
                      match: {url: null}
                      schema: {index: 11}
                      max: 0
                    amount:
                      match: {url: null}
                      schema:
                        _required: true
                        index: 12
                        elements:
                          value:
                            choices: [valueMoney]
                            index: 14
                          valueMoney: {type: Money, choiceOf: value, index: 15}
                          value[x]:
                            elements:
                              value: {index: 16}
                              currency: {index: 17}
                            required: [currency, value]
                        required: [valueMoney, value]
  contained: {index: 1}
  product:
    choices: []
    index: 60
  supportingInformation: {index: 66}
  status: {index: 24}
  code:
    short: Priced service description and optional price code
    mustSupport: true
    index: 26
    elements:
      coding:
        elements:
          system: {index: 27}
          code: {index: 28}
        required: [system, code]
      text: {index: 29}
    required: [text]
  identifier:
    short: Stable identifier of the financial record in the source system
    mustSupport: true
    index: 19
    elements:
      system: {index: 20}
      value: {index: 21}
    required: [value, system]
  context:
    constraint:
      chargeitem-context-literal: {human: A resource reference must contain a literal reference; identifier-only and contained references are not permitted., source: 'https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no', severity: error, expression: ($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())}
    refers: ['https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no']
    type: Reference
    index: 33
    elements:
      reference: {index: 34}
      identifier: {index: 35}
    required: [reference]
  quantity:
    short: Number of services, images or billable time units
    mustSupport: true
    index: 44
    elements:
      value: {index: 45}
      comparator: {index: 46}
      unit: {index: 47}
      system:
        pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
        index: 48
      code: {index: 49}
    required: [value, unit, system, code]
  partOf: {index: 25}
  priceOverride: {index: 51}
  overrideReason: {index: 52}
  performingOrganization:
    type: Reference
    constraint:
      chargeitem-performingorganization-literal: {human: A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted., source: 'https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no', severity: error, expression: ($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())}
    refers: ['http://hl7.no/fhir/StructureDefinition/no-basis-Organization']
    index: 39
    elements:
      reference: {index: 40}
      identifier: {index: 41}
    required: [reference]
  subject:
    type: Reference
    constraint:
      chargeitem-subject-literal: {human: A shared-resource reference must contain a literal reference value; identifiers and contained references are not permitted., source: 'https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no', severity: error, expression: ($this is Reference) implies (reference.hasValue() and identifier.empty() and reference.startsWith('#').not())}
    refers: ['http://hl7.no/fhir/StructureDefinition/no-basis-Patient']
    index: 30
    elements:
      reference: {index: 31}
      identifier: {index: 32}
    required: [reference]
  modifierExtension: {index: 18}
  factorOverride: {index: 50}
  occurrence:
    short: When the charged service or product was provided
    mustSupport: true
    choices: []
    index: 37
  performer: {index: 38}
package_version: 0.3.0
extensions:
  totalPrice:
    url: http://hl7.org/fhir/5.0/StructureDefinition/extension-ChargeItem.totalPriceComponent
    type: Extension
    short: Calculated total fee for the complete quantity
    index: 3
    extensions:
      _datatype: {url: null, min: 1, max: 1, _required: true, index: 5}
      type:
        url: null
        _required: true
        index: 6
        elements:
          value:
            pattern: {type: Code, value: base}
            choices: [valueCode]
            index: 8
          valueCode:
            type: code
            pattern: {type: Code, value: base}
            choiceOf: value
            index: 9
      code: {url: null, max: 0, index: 10}
      factor: {url: null, max: 0, index: 11}
      amount:
        url: null
        _required: true
        index: 12
        elements:
          value:
            choices: [valueMoney]
            index: 14
          valueMoney: {type: Money, choiceOf: value, index: 15}
          value[x]:
            elements:
              value: {index: 16}
              currency: {index: 17}
            required: [currency, value]
        required: [valueMoney, value]
    elements:
      extension:
        index: 4
        slicing:
          rules: closed
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            _datatype:
              match: {url: null}
              schema: {_required: true, index: 5}
              min: 1
              max: 1
            type:
              match: {url: null}
              schema:
                _required: true
                index: 6
                elements:
                  value:
                    pattern: {type: Code, value: base}
                    choices: [valueCode]
                    index: 8
                  valueCode:
                    type: code
                    pattern: {type: Code, value: base}
                    choiceOf: value
                    index: 9
            code:
              match: {url: null}
              schema: {index: 10}
              max: 0
            factor:
              match: {url: null}
              schema: {index: 11}
              max: 0
            amount:
              match: {url: null}
              schema:
                _required: true
                index: 12
                elements:
                  value:
                    choices: [valueMoney]
                    index: 14
                  valueMoney: {type: Money, choiceOf: value, index: 15}
                  value[x]:
                    elements:
                      value: {index: 16}
                      currency: {index: 17}
                    required: [currency, value]
                required: [valueMoney, value]
class: profile
kind: resource
url: https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no
base: http://hl7.org/fhir/StructureDefinition/ChargeItem
version: 0.2.0
required: [extension, quantity, context, status, identifier, subject, service, code]