PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# Invoice containing ChargeItems from an Account
CLOSED {
a [fhir:Invoice];
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:Invoice.identifier @*; # Business Identifier for item
fhir:Invoice.status @ AND
{fhir:value @fhirvs:invoice-status}; # draft | issued | balanced |
# cancelled | entered-in-error
fhir:Invoice.cancelledReason @?; # Reason for cancellation of this
# Invoice
fhir:Invoice.type @?; # Type of Invoice
fhir:Invoice.subject @?; # Recipient(s) of goods and services
fhir:Invoice.recipient @?; # Recipient of this invoice
fhir:Invoice.date @?; # Invoice date / posting date
fhir:Invoice.participant @*; # Participant in creation of this
# Invoice
fhir:Invoice.issuer @?; # Issuing Organization of Invoice
fhir:Invoice.account @?; # Account that is being balanced
fhir:Invoice.lineItem @*; # Line items of this Invoice
fhir:Invoice.totalPriceComponent @*; # Components of Invoice total
fhir:Invoice.totalNet @?; # Net total of this Invoice
fhir:Invoice.totalGross @?; # Gross total of this Invoice
fhir:Invoice.paymentTerms @?; # Payment details
fhir:Invoice.note @*; # Comments made about the invoice
fhir:index xsd:integer? # Relative position in a list
}
# Components of Invoice total
CLOSED {
fhir:index xsd:integer? # Relative position in a list
}
# Participant in creation of this Invoice
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:Invoice.participant.role @?; # Type of involvement in creation of
# this Invoice
fhir:Invoice.participant.actor @; # Individual who was involved
fhir:index xsd:integer? # Relative position in a list
}
# Line items of this Invoice
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:Invoice.lineItem.sequence @?; # Sequence number of line item
( # Reference to ChargeItem containing
# details of this line item or an
# inline billing code
fhir:Invoice.lineItem.chargeItemReference @ |
fhir:Invoice.lineItem.chargeItemCodeableConcept @
);
fhir:Invoice.lineItem.priceComponent @*; # Components of total line item price
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:Invoice.lineItem.priceComponent.type @ AND
{fhir:value @fhirvs:invoice-priceComponentType}; # base | surcharge | deduction |
# discount | tax | informational
fhir:Invoice.lineItem.priceComponent.code @?; # Code identifying the specific
# component
fhir:Invoice.lineItem.priceComponent.factor @?; # Factor used for calculating this
# component
fhir:Invoice.lineItem.priceComponent.amount @?; # Monetary amount associated with
# this component
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
}
# 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?
}
# 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
}
# Text node with attribution
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
( # Individual responsible for the
# annotation
fhir:Annotation.authorReference @ |
fhir:Annotation.authorString @
)?;
fhir:Annotation.time @?; # When the annotation was made
fhir:Annotation.text @; # The annotation - text content (as
# markdown)
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 @