PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# Definition of properties and rules about how the price and the applicability of a ChargeItem can be determined
CLOSED {
a [fhir:ChargeItemDefinition];
fhir:nodeRole [fhir:treeRoot]?;
fhir:Resource.id id?; # Logical id of this artifact
fhir:Resource.meta @?; # Metadata about the resource
fhir:Resource.implicitRules @?; # A set of rules under which this
# content was created
fhir:Resource.language @?; # Language of the resource content
fhir:DomainResource.text @?; # Text summary of the resource, for
# human interpretation
fhir:DomainResource.contained @*; # Contained, inline Resources
fhir:DomainResource.extension @*; # Additional content defined by
# implementations
fhir:DomainResource.modifierExtension @*; # Extensions that cannot be ignored
fhir:ChargeItemDefinition.url @; # Canonical identifier for this
# charge item definition,
# represented as a URI (globally
# unique)
fhir:ChargeItemDefinition.identifier @*; # Additional identifier for the
# charge item definition
fhir:ChargeItemDefinition.version @?; # Business version of the charge
# item definition
fhir:ChargeItemDefinition.title @?; # Name for this charge item
# definition (human friendly)
fhir:ChargeItemDefinition.derivedFromUri @*; # Underlying externally-defined
# charge item definition
fhir:ChargeItemDefinition.partOf @*; # A larger definition of which this
# particular definition is a
# component or step
fhir:ChargeItemDefinition.replaces @*; # Completed or terminated request(s)
# whose function is taken by this
# new request
fhir:ChargeItemDefinition.status @ AND
{fhir:value @fhirvs:publication-status}; # draft | active | retired | unknown
fhir:ChargeItemDefinition.experimental @?; # For testing purposes, not real
# usage
fhir:ChargeItemDefinition.date @?; # Date last changed
fhir:ChargeItemDefinition.publisher @?; # Name of the publisher
# (organization or individual)
fhir:ChargeItemDefinition.contact @*; # Contact details for the publisher
fhir:ChargeItemDefinition.description @?; # Natural language description of
# the charge item definition
fhir:ChargeItemDefinition.useContext @*; # The context that the content is
# intended to support
fhir:ChargeItemDefinition.jurisdiction @*; # Intended jurisdiction for charge
# item definition (if applicable)
fhir:ChargeItemDefinition.copyright @?; # Use and/or publishing restrictions
fhir:ChargeItemDefinition.approvalDate @?; # When the charge item definition
# was approved by publisher
fhir:ChargeItemDefinition.lastReviewDate @?; # When the charge item definition
# was last reviewed
fhir:ChargeItemDefinition.effectivePeriod @?; # When the charge item definition is
# expected to be used
fhir:ChargeItemDefinition.code @?; # Billing codes or product types
# this definition applies to
fhir:ChargeItemDefinition.instance @*; # Instances this definition applies
# to
fhir:ChargeItemDefinition.applicability @*; # Whether or not the billing code is
# applicable
fhir:ChargeItemDefinition.propertyGroup @*; # Group of properties which are
# applicable under the same
# conditions
fhir:index xsd:integer? # Relative position in a list
}
# Group of properties which are applicable under the same conditions
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:ChargeItemDefinition.propertyGroup.applicability @*; # Conditions under which the
# priceComponent is applicable
fhir:ChargeItemDefinition.propertyGroup.priceComponent @*; # Components of total line item price
fhir:index xsd:integer? # Relative position in a list
}
# Whether or not the billing code is applicable
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:ChargeItemDefinition.applicability.description @?; # Natural language description of
# the condition
fhir:ChargeItemDefinition.applicability.language @?; # Language of the expression
fhir:ChargeItemDefinition.applicability.expression @?; # Boolean-valued expression
fhir:index xsd:integer? # Relative position in a list
}
# Components of total line item price
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:ChargeItemDefinition.propertyGroup.priceComponent.type @ AND
{fhir:value @fhirvs:invoice-priceComponentType}; # base | surcharge | deduction |
# discount | tax | informational
fhir:ChargeItemDefinition.propertyGroup.priceComponent.code @?; # Code identifying the specific
# component
fhir:ChargeItemDefinition.propertyGroup.priceComponent.factor @?; # Factor used for calculating this
# component
fhir:ChargeItemDefinition.propertyGroup.priceComponent.amount @?; # Monetary amount associated with
# this component
fhir:index xsd:integer? # Relative position in a list
}
# Conditions under which the priceComponent is applicable
CLOSED {
fhir:index xsd:integer? # Relative position in a list
}
#---------------------- Data Types -------------------
# Primitive Type dateTime
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value dateTime?; # Primitive value for dateTime
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type date
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value date?; # Primitive value for date
fhir:index xsd:integer? # Relative position in a list
}
# Metadata about a resource
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Meta.versionId @?; # Version specific identifier
fhir:Meta.lastUpdated @?; # When the resource version last
# changed
fhir:Meta.source @?; # Identifies where the resource
# comes from
fhir:Meta.profile @*; # Profiles this resource claims to
# conform to
fhir:Meta.security @*; # Security Labels applied to this
# resource
fhir:Meta.tag @*; # Tags applied to this resource
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type code
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value code?; # Primitive value for code
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type string
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value string MAXLENGTH 1048576?; # Primitive value for string
fhir:index xsd:integer? # Relative position in a list
}
# A reference from one resource to another
CLOSED {
fhir:link IRI?;
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Reference.reference @?; # Literal reference, Relative,
# internal or absolute URL
fhir:Reference.type @?; # Type the reference refers to (e.g.
# "Patient")
fhir:Reference.identifier @?; # Logical reference, when literal
# reference is not known
fhir:Reference.display @?; # Text alternative for the resource
fhir:index xsd:integer? # Relative position in a list
}
# Base Resource
{a .+;
fhir:Resource.id id?; # Logical id of this artifact
fhir:Resource.meta @?; # Metadata about the resource
fhir:Resource.implicitRules @?; # A set of rules under which this
# content was created
fhir:Resource.language @?; # Language of the resource content
fhir:index xsd:integer?
}
# Time range defined by start and end date/time
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Period.start @?; # Starting time with inclusive
# boundary
fhir:Period.end @?; # End time with inclusive boundary,
# if not ongoing
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type canonical
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value canonical?; # Primitive value for canonical
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type uri
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value uri?; # Primitive value for uri
fhir:index xsd:integer? # Relative position in a list
}
# Optional Extensions Element
CLOSED {
fhir:Element.id id?;
fhir:Element.extension @*;
fhir:Extension.url uri;
(
fhir:Extension.valueBase64Binary @ |
fhir:Extension.valueBoolean @ |
fhir:Extension.valueCanonical @ |
fhir:Extension.valueCode @ |
fhir:Extension.valueDate @ |
fhir:Extension.valueDateTime @ |
fhir:Extension.valueDecimal @ |
fhir:Extension.valueId @ |
fhir:Extension.valueInstant @ |
fhir:Extension.valueInteger @ |
fhir:Extension.valueMarkdown @ |
fhir:Extension.valueOid @ |
fhir:Extension.valuePositiveInt @ |
fhir:Extension.valueString @ |
fhir:Extension.valueTime @