CH ALIS (R4)
0.3.0 - CI build Switzerland flag

CH ALIS (R4), published by ALIS-Connect. This guide is not an authorized publication; it is the continuous build for version 0.3.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/ahdis/ch-alis/ and changes regularly. See the Directory of published versions

Resource Profile: CH ALIS ChargeItem Profile

Official URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-chargeitem Version: 0.3.0
Draft as of 2020-11-26 Computable Name: ChAlisChargeItem

Copyright/Legal: not-open-source

Base definition for the ChargeItem resource in the context of ALIS-Connect.

Usage:

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

This structure is derived from ChargeItem

NameFlagsCard.TypeDescription & Constraintsdoco
.. ChargeItem 0..* ChargeItem CH ALIS ChargeItem
... id 0..1 id ItemNumber
... contained 2..* Resource Contained Resources (Patient, Encounter, Condition, Procedure)
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
... OrderID 0..1 string OrderID
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-orderid
... OrderDate 0..1 dateTime OrderDate
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-orderdate
... Form 0..1 string Form
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-form
... ParameterV40 0..* (Complex) ParameterV40
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-parameterv40
... identifier 0..* Identifier PatientContactID
... status 1..1 code billable | not-billable
... partOf 0..1 Reference(CH ALIS ChargeItem Profile) RefItemNumber
.... reference 1..1 string Literal reference, Relative, internal or absolute URL
... code
.... coding 1..* Coding Code defined by a terminology system
Binding: http://fhir.ch/ig/ch-alis/ValueSet/tbd (required)
..... system 1..1 uri ServiceType
..... code 1..1 code ServiceItem
... subject 1..1 Reference(CH ALIS Patient Profile) {c} Patient
.... reference 1..1 string Literal reference, Relative, internal or absolute URL
... context 1..1 Reference(CH ALIS Encounter Profile) {c} Encounter
.... reference 1..1 string Literal reference, Relative, internal or absolute URL
... Slices for occurrence[x] 1..1 dateTime When the charged service was applied
Slice: Unordered, Open by type:$this
.... occurrence[x]:occurrenceDateTime 1..1 dateTime ServiceDate
... performer 0..* BackboneElement PersonV40
.... function 1..1 CodeableConcept What type of performance was done
..... coding 1..* Coding Code defined by a terminology system
Binding: CH ALIS PersonTyp (required)
...... system 1..1 uri Identity of the terminology system
...... code 1..1 code PersonTyp
.... actor
..... display 1..1 string PersonID
... performingOrganization
.... display 1..1 string ProviderID
... costCenter
.... display 1..1 string ReferrerID
... quantity 1..1 Quantity Quantity of which the charge item has been serviced
.... value 1..1 decimal Quantity
... factorOverride
.... value 1..1 decimal Costweight
... priceOverride
.... value 1..1 decimal ParameterV40: Amount
... enterer
.... display 1..1 string EnteredBy
... enteredDate 0..1 dateTime EnteredDateTime
... service 0..* Reference(CH ALIS Procedure Profile) {c} Which rendered service is being charged?
... supportingInformation 0..* Reference(Observation Body Mass Index Profile) {c} ParameterV40: BMI
.... reference 1..1 string Literal reference, Relative, internal or absolute URL

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
ChargeItem.code.codingrequiredhttp://fhir.ch/ig/ch-alis/ValueSet/tbd
http://fhir.ch/ig/ch-alis/ValueSet/tbd
ChargeItem.performer.function.codingrequiredChAlisPersonTyp
http://fhir.ch/ig/ch-alis/ValueSet/ch-alis-persontyp
from this IG
NameFlagsCard.TypeDescription & Constraintsdoco
.. ChargeItem 0..* ChargeItem CH ALIS ChargeItem
... id Σ 0..1 id ItemNumber
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... contained 2..* Resource Contained Resources (Patient, Encounter, Condition, Procedure)
... SessionID 0..1 string SessionID
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-sessionid
... OrderID 0..1 string OrderID
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-orderid
... OrderDate 0..1 dateTime OrderDate
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-orderdate
... Form 0..1 string Form
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-form
... ParameterV40 0..* (Complex) ParameterV40
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-parameterv40
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..* Identifier PatientContactID
... status ?!Σ 1..1 code billable | not-billable
Binding: ChargeItemStatus (required): Codes identifying the lifecycle stage of a ChargeItem.

... partOf 0..1 Reference(CH ALIS ChargeItem Profile) RefItemNumber
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
... code Σ 1..1 CodeableConcept A code that identifies the charge, like a billing code
Binding: ChargeItemCode (example): Example set of codes that can be used for billing purposes.

.... coding Σ 1..* Coding Code defined by a terminology system
Binding: http://fhir.ch/ig/ch-alis/ValueSet/tbd (required)
..... system Σ 1..1 uri ServiceType
..... code Σ 1..1 code ServiceItem
... subject Σ 1..1 Reference(CH ALIS Patient Profile) {c} Patient
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
... context Σ 1..1 Reference(CH ALIS Encounter Profile) {c} Encounter
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
... Slices for occurrence[x] Σ 1..1 dateTime When the charged service was applied
Slice: Unordered, Closed by type:$this
.... occurrence[x]:occurrenceDateTime Σ 1..1 dateTime ServiceDate
... performer 0..* BackboneElement PersonV40
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... function 1..1 CodeableConcept What type of performance was done
Binding: ProcedurePerformerRoleCodes (example): Codes describing the types of functional roles performers can take on when performing events.

..... coding Σ 1..* Coding Code defined by a terminology system
Binding: CH ALIS PersonTyp (required)
...... system Σ 1..1 uri Identity of the terminology system
...... code Σ 1..1 code PersonTyp
.... actor 1..1 Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient | Device | RelatedPerson) Individual who was performing
..... display Σ 1..1 string PersonID
... quantity Σ 1..1 Quantity Quantity of which the charge item has been serviced
.... value Σ 1..1 decimal Quantity
.... comparator ?!Σ 0..1 code < | <= | >= | > - how to understand the value
Binding: QuantityComparator (required): How the Quantity should be understood and represented.

... enteredDate Σ 0..1 dateTime EnteredDateTime
... service 0..* Reference(CH ALIS Procedure Profile) {c} Which rendered service is being charged?
... supportingInformation 0..* Reference(Observation Body Mass Index Profile) {c} ParameterV40: BMI
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
ChargeItem.statusrequiredChargeItemStatus
http://hl7.org/fhir/ValueSet/chargeitem-status|4.0.1
from the FHIR Standard
ChargeItem.codeexampleChargeItemCode
http://hl7.org/fhir/ValueSet/chargeitem-billingcodes
from the FHIR Standard
ChargeItem.code.codingrequiredhttp://fhir.ch/ig/ch-alis/ValueSet/tbd
http://fhir.ch/ig/ch-alis/ValueSet/tbd
ChargeItem.performer.functionexampleProcedurePerformerRoleCodes
http://hl7.org/fhir/ValueSet/performer-role
from the FHIR Standard
ChargeItem.performer.function.codingrequiredChAlisPersonTyp
http://fhir.ch/ig/ch-alis/ValueSet/ch-alis-persontyp
from this IG
ChargeItem.quantity.comparatorrequiredQuantityComparator
http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorChargeItemIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorChargeItemIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: 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()
dom-4errorChargeItemIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorChargeItemIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceChargeItemA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
NameFlagsCard.TypeDescription & Constraintsdoco
.. ChargeItem 0..* ChargeItem CH ALIS ChargeItem
... id Σ 0..1 id ItemNumber
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.

Additional BindingsPurpose
AllLanguages Max Binding
... text 0..1 Narrative Text summary of the resource, for human interpretation
... contained 2..* Resource Contained Resources (Patient, Encounter, Condition, Procedure)
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
... SessionID 0..1 string SessionID
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-sessionid
... OrderID 0..1 string OrderID
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-orderid
... OrderDate 0..1 dateTime OrderDate
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-orderdate
... Form 0..1 string Form
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-form
... ParameterV40 0..* (Complex) ParameterV40
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-parameterv40
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..* Identifier PatientContactID
... definitionUri 0..* uri Defining information about the code of this charge item
... definitionCanonical 0..* canonical(ChargeItemDefinition) Resource defining the code of this ChargeItem
... status ?!Σ 1..1 code billable | not-billable
Binding: ChargeItemStatus (required): Codes identifying the lifecycle stage of a ChargeItem.

... partOf 0..1 Reference(CH ALIS ChargeItem Profile) RefItemNumber
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
.... display Σ 0..1 string Text alternative for the resource
... code Σ 1..1 CodeableConcept A code that identifies the charge, like a billing code
Binding: ChargeItemCode (example): Example set of codes that can be used for billing purposes.

.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ 1..* Coding Code defined by a terminology system
Binding: http://fhir.ch/ig/ch-alis/ValueSet/tbd (required)
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ 1..1 uri ServiceType
..... version Σ 0..1 string Version of the system - if relevant
..... code Σ 1..1 code ServiceItem
..... display Σ 0..1 string Representation defined by the system
..... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
.... text Σ 0..1 string Plain text representation of the concept
... subject Σ 1..1 Reference(CH ALIS Patient Profile) {c} Patient
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
.... display Σ 0..1 string Text alternative for the resource
... context Σ 1..1 Reference(CH ALIS Encounter Profile) {c} Encounter
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
.... display Σ 0..1 string Text alternative for the resource
... Slices for occurrence[x] Σ 1..1 dateTime When the charged service was applied
Slice: Unordered, Closed by type:$this
.... occurrence[x]:occurrenceDateTime Σ 1..1 dateTime ServiceDate
... performer 0..* BackboneElement PersonV40
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... function 1..1 CodeableConcept What type of performance was done
Binding: ProcedurePerformerRoleCodes (example): Codes describing the types of functional roles performers can take on when performing events.

..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... coding Σ 1..* Coding Code defined by a terminology system
Binding: CH ALIS PersonTyp (required)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... system Σ 1..1 uri Identity of the terminology system
...... version Σ 0..1 string Version of the system - if relevant
...... code Σ 1..1 code PersonTyp
...... display Σ 0..1 string Representation defined by the system
...... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
..... text Σ 0..1 string Plain text representation of the concept
.... actor 1..1 Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient | Device | RelatedPerson) Individual who was performing
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
..... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

..... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
..... display Σ 1..1 string PersonID
... performingOrganization 0..1 Reference(Organization) Organization providing the charged service
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
.... display Σ 1..1 string ProviderID
... requestingOrganization 0..1 Reference(Organization) Organization requesting the charged service
... costCenter 0..1 Reference(Organization) Organization that has ownership of the (potential, future) revenue
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
.... display Σ 1..1 string ReferrerID
... quantity Σ 1..1 Quantity Quantity of which the charge item has been serviced
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... value Σ 1..1 decimal Quantity
.... comparator ?!Σ 0..1 code < | <= | >= | > - how to understand the value
Binding: QuantityComparator (required): How the Quantity should be understood and represented.

.... unit Σ 0..1 string Unit representation
.... system ΣC 0..1 uri System that defines coded unit form
.... code Σ 0..1 code Coded form of the unit
... bodysite Σ 0..* CodeableConcept Anatomical location, if relevant
Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.


... factorOverride 0..1 decimal Factor overriding the associated rules
.... id 0..1 string xml:id (or equivalent in JSON)
.... extension 0..* Extension Additional content defined by implementations
.... value 1..1 decimal Costweight
... priceOverride 0..1 Money Price overriding the associated rules
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... value Σ 1..1 decimal ParameterV40: Amount
.... currency Σ 0..1 code ISO 4217 Currency Code
Binding: Currencies (required): A code indicating the currency, taken from ISO 4217.

... overrideReason 0..1 string Reason for overriding the list price/factor
... enterer Σ 0..1 Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson) Individual who was entering
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
.... display Σ 1..1 string EnteredBy
... enteredDate Σ 0..1 dateTime EnteredDateTime
... reason 0..* CodeableConcept Why was the charged service rendered?
Binding: ICD-10Codes (example): Example binding for reason.


... service 0..* Reference(CH ALIS Procedure Profile) {c} Which rendered service is being charged?
... product[x] 0..1 Product charged
Binding: FHIRDeviceTypes (example): Example binding for product type.

.... productReference Reference(Device | Medication | Substance)
.... productCodeableConcept CodeableConcept
... account Σ 0..* Reference(Account) Account to place this charge
... note 0..* Annotation Comments made about the ChargeItem
... supportingInformation 0..* Reference(Observation Body Mass Index Profile) {c} ParameterV40: BMI
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
.... display Σ 0..1 string Text alternative for the resource

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
ChargeItem.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
ChargeItem.statusrequiredChargeItemStatus
http://hl7.org/fhir/ValueSet/chargeitem-status|4.0.1
from the FHIR Standard
ChargeItem.partOf.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
ChargeItem.codeexampleChargeItemCode
http://hl7.org/fhir/ValueSet/chargeitem-billingcodes
from the FHIR Standard
ChargeItem.code.codingrequiredhttp://fhir.ch/ig/ch-alis/ValueSet/tbd
http://fhir.ch/ig/ch-alis/ValueSet/tbd
ChargeItem.subject.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
ChargeItem.context.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
ChargeItem.performer.functionexampleProcedurePerformerRoleCodes
http://hl7.org/fhir/ValueSet/performer-role
from the FHIR Standard
ChargeItem.performer.function.codingrequiredChAlisPersonTyp
http://fhir.ch/ig/ch-alis/ValueSet/ch-alis-persontyp
from this IG
ChargeItem.performer.actor.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
ChargeItem.performingOrganization.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
ChargeItem.costCenter.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
ChargeItem.quantity.comparatorrequiredQuantityComparator
http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1
from the FHIR Standard
ChargeItem.bodysiteexampleSNOMEDCTBodyStructures
http://hl7.org/fhir/ValueSet/body-site
from the FHIR Standard
ChargeItem.priceOverride.currencyrequiredCurrencies (a valid code from urn:iso:std:iso:4217)
http://hl7.org/fhir/ValueSet/currencies|4.0.1
from the FHIR Standard
ChargeItem.enterer.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
ChargeItem.reasonexampleICD-10Codes
http://hl7.org/fhir/ValueSet/icd-10
from the FHIR Standard
ChargeItem.product[x]exampleFHIRDeviceTypes
http://hl7.org/fhir/ValueSet/device-kind
from the FHIR Standard
ChargeItem.supportingInformation.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorChargeItemIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorChargeItemIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: 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()
dom-4errorChargeItemIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorChargeItemIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceChargeItemA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

Differential View

This structure is derived from ChargeItem

NameFlagsCard.TypeDescription & Constraintsdoco
.. ChargeItem 0..* ChargeItem CH ALIS ChargeItem
... id 0..1 id ItemNumber
... contained 2..* Resource Contained Resources (Patient, Encounter, Condition, Procedure)
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
... OrderID 0..1 string OrderID
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-orderid
... OrderDate 0..1 dateTime OrderDate
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-orderdate
... Form 0..1 string Form
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-form
... ParameterV40 0..* (Complex) ParameterV40
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-parameterv40
... identifier 0..* Identifier PatientContactID
... status 1..1 code billable | not-billable
... partOf 0..1 Reference(CH ALIS ChargeItem Profile) RefItemNumber
.... reference 1..1 string Literal reference, Relative, internal or absolute URL
... code
.... coding 1..* Coding Code defined by a terminology system
Binding: http://fhir.ch/ig/ch-alis/ValueSet/tbd (required)
..... system 1..1 uri ServiceType
..... code 1..1 code ServiceItem
... subject 1..1 Reference(CH ALIS Patient Profile) {c} Patient
.... reference 1..1 string Literal reference, Relative, internal or absolute URL
... context 1..1 Reference(CH ALIS Encounter Profile) {c} Encounter
.... reference 1..1 string Literal reference, Relative, internal or absolute URL
... Slices for occurrence[x] 1..1 dateTime When the charged service was applied
Slice: Unordered, Open by type:$this
.... occurrence[x]:occurrenceDateTime 1..1 dateTime ServiceDate
... performer 0..* BackboneElement PersonV40
.... function 1..1 CodeableConcept What type of performance was done
..... coding 1..* Coding Code defined by a terminology system
Binding: CH ALIS PersonTyp (required)
...... system 1..1 uri Identity of the terminology system
...... code 1..1 code PersonTyp
.... actor
..... display 1..1 string PersonID
... performingOrganization
.... display 1..1 string ProviderID
... costCenter
.... display 1..1 string ReferrerID
... quantity 1..1 Quantity Quantity of which the charge item has been serviced
.... value 1..1 decimal Quantity
... factorOverride
.... value 1..1 decimal Costweight
... priceOverride
.... value 1..1 decimal ParameterV40: Amount
... enterer
.... display 1..1 string EnteredBy
... enteredDate 0..1 dateTime EnteredDateTime
... service 0..* Reference(CH ALIS Procedure Profile) {c} Which rendered service is being charged?
... supportingInformation 0..* Reference(Observation Body Mass Index Profile) {c} ParameterV40: BMI
.... reference 1..1 string Literal reference, Relative, internal or absolute URL

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
ChargeItem.code.codingrequiredhttp://fhir.ch/ig/ch-alis/ValueSet/tbd
http://fhir.ch/ig/ch-alis/ValueSet/tbd
ChargeItem.performer.function.codingrequiredChAlisPersonTyp
http://fhir.ch/ig/ch-alis/ValueSet/ch-alis-persontyp
from this IG

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. ChargeItem 0..* ChargeItem CH ALIS ChargeItem
... id Σ 0..1 id ItemNumber
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... contained 2..* Resource Contained Resources (Patient, Encounter, Condition, Procedure)
... SessionID 0..1 string SessionID
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-sessionid
... OrderID 0..1 string OrderID
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-orderid
... OrderDate 0..1 dateTime OrderDate
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-orderdate
... Form 0..1 string Form
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-form
... ParameterV40 0..* (Complex) ParameterV40
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-parameterv40
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..* Identifier PatientContactID
... status ?!Σ 1..1 code billable | not-billable
Binding: ChargeItemStatus (required): Codes identifying the lifecycle stage of a ChargeItem.

... partOf 0..1 Reference(CH ALIS ChargeItem Profile) RefItemNumber
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
... code Σ 1..1 CodeableConcept A code that identifies the charge, like a billing code
Binding: ChargeItemCode (example): Example set of codes that can be used for billing purposes.

.... coding Σ 1..* Coding Code defined by a terminology system
Binding: http://fhir.ch/ig/ch-alis/ValueSet/tbd (required)
..... system Σ 1..1 uri ServiceType
..... code Σ 1..1 code ServiceItem
... subject Σ 1..1 Reference(CH ALIS Patient Profile) {c} Patient
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
... context Σ 1..1 Reference(CH ALIS Encounter Profile) {c} Encounter
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
... Slices for occurrence[x] Σ 1..1 dateTime When the charged service was applied
Slice: Unordered, Closed by type:$this
.... occurrence[x]:occurrenceDateTime Σ 1..1 dateTime ServiceDate
... performer 0..* BackboneElement PersonV40
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... function 1..1 CodeableConcept What type of performance was done
Binding: ProcedurePerformerRoleCodes (example): Codes describing the types of functional roles performers can take on when performing events.

..... coding Σ 1..* Coding Code defined by a terminology system
Binding: CH ALIS PersonTyp (required)
...... system Σ 1..1 uri Identity of the terminology system
...... code Σ 1..1 code PersonTyp
.... actor 1..1 Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient | Device | RelatedPerson) Individual who was performing
..... display Σ 1..1 string PersonID
... quantity Σ 1..1 Quantity Quantity of which the charge item has been serviced
.... value Σ 1..1 decimal Quantity
.... comparator ?!Σ 0..1 code < | <= | >= | > - how to understand the value
Binding: QuantityComparator (required): How the Quantity should be understood and represented.

... enteredDate Σ 0..1 dateTime EnteredDateTime
... service 0..* Reference(CH ALIS Procedure Profile) {c} Which rendered service is being charged?
... supportingInformation 0..* Reference(Observation Body Mass Index Profile) {c} ParameterV40: BMI
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
ChargeItem.statusrequiredChargeItemStatus
http://hl7.org/fhir/ValueSet/chargeitem-status|4.0.1
from the FHIR Standard
ChargeItem.codeexampleChargeItemCode
http://hl7.org/fhir/ValueSet/chargeitem-billingcodes
from the FHIR Standard
ChargeItem.code.codingrequiredhttp://fhir.ch/ig/ch-alis/ValueSet/tbd
http://fhir.ch/ig/ch-alis/ValueSet/tbd
ChargeItem.performer.functionexampleProcedurePerformerRoleCodes
http://hl7.org/fhir/ValueSet/performer-role
from the FHIR Standard
ChargeItem.performer.function.codingrequiredChAlisPersonTyp
http://fhir.ch/ig/ch-alis/ValueSet/ch-alis-persontyp
from this IG
ChargeItem.quantity.comparatorrequiredQuantityComparator
http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorChargeItemIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorChargeItemIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: 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()
dom-4errorChargeItemIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorChargeItemIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceChargeItemA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. ChargeItem 0..* ChargeItem CH ALIS ChargeItem
... id Σ 0..1 id ItemNumber
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... language 0..1 code Language of the resource content
Binding: CommonLanguages (preferred): A human language.

Additional BindingsPurpose
AllLanguages Max Binding
... text 0..1 Narrative Text summary of the resource, for human interpretation
... contained 2..* Resource Contained Resources (Patient, Encounter, Condition, Procedure)
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by value:url
... SessionID 0..1 string SessionID
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-sessionid
... OrderID 0..1 string OrderID
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-orderid
... OrderDate 0..1 dateTime OrderDate
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-orderdate
... Form 0..1 string Form
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-form
... ParameterV40 0..* (Complex) ParameterV40
URL: http://fhir.ch/ig/ch-alis/StructureDefinition/ch-alis-ext-parameterv40
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..* Identifier PatientContactID
... definitionUri 0..* uri Defining information about the code of this charge item
... definitionCanonical 0..* canonical(ChargeItemDefinition) Resource defining the code of this ChargeItem
... status ?!Σ 1..1 code billable | not-billable
Binding: ChargeItemStatus (required): Codes identifying the lifecycle stage of a ChargeItem.

... partOf 0..1 Reference(CH ALIS ChargeItem Profile) RefItemNumber
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
.... display Σ 0..1 string Text alternative for the resource
... code Σ 1..1 CodeableConcept A code that identifies the charge, like a billing code
Binding: ChargeItemCode (example): Example set of codes that can be used for billing purposes.

.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ 1..* Coding Code defined by a terminology system
Binding: http://fhir.ch/ig/ch-alis/ValueSet/tbd (required)
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... system Σ 1..1 uri ServiceType
..... version Σ 0..1 string Version of the system - if relevant
..... code Σ 1..1 code ServiceItem
..... display Σ 0..1 string Representation defined by the system
..... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
.... text Σ 0..1 string Plain text representation of the concept
... subject Σ 1..1 Reference(CH ALIS Patient Profile) {c} Patient
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
.... display Σ 0..1 string Text alternative for the resource
... context Σ 1..1 Reference(CH ALIS Encounter Profile) {c} Encounter
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
.... display Σ 0..1 string Text alternative for the resource
... Slices for occurrence[x] Σ 1..1 dateTime When the charged service was applied
Slice: Unordered, Closed by type:$this
.... occurrence[x]:occurrenceDateTime Σ 1..1 dateTime ServiceDate
... performer 0..* BackboneElement PersonV40
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... function 1..1 CodeableConcept What type of performance was done
Binding: ProcedurePerformerRoleCodes (example): Codes describing the types of functional roles performers can take on when performing events.

..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... coding Σ 1..* Coding Code defined by a terminology system
Binding: CH ALIS PersonTyp (required)
...... id 0..1 string Unique id for inter-element referencing
...... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
...... system Σ 1..1 uri Identity of the terminology system
...... version Σ 0..1 string Version of the system - if relevant
...... code Σ 1..1 code PersonTyp
...... display Σ 0..1 string Representation defined by the system
...... userSelected Σ 0..1 boolean If this coding was chosen directly by the user
..... text Σ 0..1 string Plain text representation of the concept
.... actor 1..1 Reference(Practitioner | PractitionerRole | Organization | CareTeam | Patient | Device | RelatedPerson) Individual who was performing
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
..... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

..... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
..... display Σ 1..1 string PersonID
... performingOrganization 0..1 Reference(Organization) Organization providing the charged service
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
.... display Σ 1..1 string ProviderID
... requestingOrganization 0..1 Reference(Organization) Organization requesting the charged service
... costCenter 0..1 Reference(Organization) Organization that has ownership of the (potential, future) revenue
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
.... display Σ 1..1 string ReferrerID
... quantity Σ 1..1 Quantity Quantity of which the charge item has been serviced
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... value Σ 1..1 decimal Quantity
.... comparator ?!Σ 0..1 code < | <= | >= | > - how to understand the value
Binding: QuantityComparator (required): How the Quantity should be understood and represented.

.... unit Σ 0..1 string Unit representation
.... system ΣC 0..1 uri System that defines coded unit form
.... code Σ 0..1 code Coded form of the unit
... bodysite Σ 0..* CodeableConcept Anatomical location, if relevant
Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.


... factorOverride 0..1 decimal Factor overriding the associated rules
.... id 0..1 string xml:id (or equivalent in JSON)
.... extension 0..* Extension Additional content defined by implementations
.... value 1..1 decimal Costweight
... priceOverride 0..1 Money Price overriding the associated rules
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... value Σ 1..1 decimal ParameterV40: Amount
.... currency Σ 0..1 code ISO 4217 Currency Code
Binding: Currencies (required): A code indicating the currency, taken from ISO 4217.

... overrideReason 0..1 string Reason for overriding the list price/factor
... enterer Σ 0..1 Reference(Practitioner | PractitionerRole | Organization | Patient | Device | RelatedPerson) Individual who was entering
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC 0..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
.... display Σ 1..1 string EnteredBy
... enteredDate Σ 0..1 dateTime EnteredDateTime
... reason 0..* CodeableConcept Why was the charged service rendered?
Binding: ICD-10Codes (example): Example binding for reason.


... service 0..* Reference(CH ALIS Procedure Profile) {c} Which rendered service is being charged?
... product[x] 0..1 Product charged
Binding: FHIRDeviceTypes (example): Example binding for product type.

.... productReference Reference(Device | Medication | Substance)
.... productCodeableConcept CodeableConcept
... account Σ 0..* Reference(Account) Account to place this charge
... note 0..* Annotation Comments made about the ChargeItem
... supportingInformation 0..* Reference(Observation Body Mass Index Profile) {c} ParameterV40: BMI
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... reference ΣC 1..1 string Literal reference, Relative, internal or absolute URL
.... type Σ 0..1 uri Type the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier Σ 0..1 Identifier Logical reference, when literal reference is not known
.... display Σ 0..1 string Text alternative for the resource

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
ChargeItem.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
http://hl7.org/fhir/ValueSet/languages
from the FHIR Standard
ChargeItem.statusrequiredChargeItemStatus
http://hl7.org/fhir/ValueSet/chargeitem-status|4.0.1
from the FHIR Standard
ChargeItem.partOf.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
ChargeItem.codeexampleChargeItemCode
http://hl7.org/fhir/ValueSet/chargeitem-billingcodes
from the FHIR Standard
ChargeItem.code.codingrequiredhttp://fhir.ch/ig/ch-alis/ValueSet/tbd
http://fhir.ch/ig/ch-alis/ValueSet/tbd
ChargeItem.subject.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
ChargeItem.context.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
ChargeItem.performer.functionexampleProcedurePerformerRoleCodes
http://hl7.org/fhir/ValueSet/performer-role
from the FHIR Standard
ChargeItem.performer.function.codingrequiredChAlisPersonTyp
http://fhir.ch/ig/ch-alis/ValueSet/ch-alis-persontyp
from this IG
ChargeItem.performer.actor.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
ChargeItem.performingOrganization.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
ChargeItem.costCenter.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
ChargeItem.quantity.comparatorrequiredQuantityComparator
http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1
from the FHIR Standard
ChargeItem.bodysiteexampleSNOMEDCTBodyStructures
http://hl7.org/fhir/ValueSet/body-site
from the FHIR Standard
ChargeItem.priceOverride.currencyrequiredCurrencies (a valid code from urn:iso:std:iso:4217)
http://hl7.org/fhir/ValueSet/currencies|4.0.1
from the FHIR Standard
ChargeItem.enterer.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard
ChargeItem.reasonexampleICD-10Codes
http://hl7.org/fhir/ValueSet/icd-10
from the FHIR Standard
ChargeItem.product[x]exampleFHIRDeviceTypes
http://hl7.org/fhir/ValueSet/device-kind
from the FHIR Standard
ChargeItem.supportingInformation.typeextensibleResourceType
http://hl7.org/fhir/ValueSet/resource-types
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorChargeItemIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorChargeItemIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: 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()
dom-4errorChargeItemIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorChargeItemIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceChargeItemA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

 

Other representations of profile: CSV, Excel, Schematron