PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
PREFIX rdf:
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
IMPORT
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# Invoice containing ChargeItems from an Account
EXTENDS @ CLOSED {
a [fhir:Invoice]?;
fhir:nodeRole [fhir:treeRoot]?;
fhir:identifier @?; # Business Identifier for item
fhir:status @ AND
{fhir:v @fhirvs:invoice-status}; # draft | issued | balanced |
# cancelled | entered-in-error
fhir:cancelledReason @?; # Reason for cancellation of this
# Invoice
fhir:type @?; # Type of Invoice
fhir:subject @ AND {fhir:link
@ OR
@ ? }?; # Recipient(s) of goods and services
fhir:recipient @ AND {fhir:link
@ OR
@ OR
@ ? }?; # Recipient of this invoice
fhir:date @?; # DEPRICATED
fhir:creation @?; # When posted
fhir:period @ OR
@ ?; # Billing date or period
fhir:participant @?; # Participant in creation of this
# Invoice
fhir:issuer @ AND {fhir:link
@ ? }?; # Issuing Organization of Invoice
fhir:account @ AND {fhir:link
@ ? }?; # Account that is being balanced
fhir:lineItem @?; # Line items of this Invoice
fhir:totalPriceComponent @?; # Components of Invoice total
fhir:totalNet @?; # Net total of this Invoice
fhir:totalGross @?; # Gross total of this Invoice
fhir:paymentTerms @?; # Payment details
fhir:note @?; # Comments made about the invoice
}
# Line items of this Invoice
EXTENDS @ CLOSED {
fhir:sequence @?; # Sequence number of line item
fhir:serviced @ OR
@ ?; # Service data or period
fhir:chargeItem (@ AND {fhir:link @ }) OR
@ ; # Reference to ChargeItem containing
# details of this line item or an
# inline billing code
fhir:priceComponent @?; # Components of total line item price
}
# Participant in creation of this Invoice
EXTENDS @ CLOSED {
fhir:role @?; # Type of involvement in creation of
# this Invoice
fhir:actor @ AND {fhir:link
@ OR
@ OR
@ OR
@ OR
@ OR
@ ? }; # Individual who was involved
}
#---------------------- Cardinality Types (OneOrMore) -------------------
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
CLOSED {
rdf:first @ ;
rdf:rest [rdf:nil] OR @
}
#---------------------- Value Sets ------------------------
# Codes identifying the lifecycle stage of an Invoice.
fhirvs:invoice-status ["draft" "issued" "balanced" "cancelled" "entered-in-error"]