Foundation
Publish-box
(todo)
This
is
the
Continuous
Integration
Build
of
FHIR
(will
be
incorrect/inconsistent
at
times).
See
the
Directory
of
published
versions
| Responsible Owner: Financial Management Work Group | Standards Status : Informative | Compartments : Device , Group , Patient , Practitioner , RelatedPerson |
ShEx statement for invoice
PREFIX fhir: <http://hl7.org/fhir/> PREFIX fhirvs: <http://hl7.org/fhir/ValueSet/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>IMPORT <code.shex> IMPORT <date.shex># ShEx Version 2.2 IMPORT <Code.shex> IMPORT <Date.shex> IMPORT <Group.shex> IMPORT <Money.shex>IMPORT <string.shex>IMPORT <String.shex> IMPORT <Period.shex> IMPORT <Device.shex> IMPORT <Patient.shex> IMPORT <Account.shex>IMPORT <dateTime.shex> IMPORT <markdown.shex>IMPORT <DateTime.shex> IMPORT <Markdown.shex> IMPORT <Reference.shex> IMPORT <Identifier.shex> IMPORT <Annotation.shex>IMPORT <ChargeItem.shex> IMPORT <positiveInt.shex>IMPORT <PositiveInt.shex> IMPORT <Organization.shex> IMPORT <Practitioner.shex> IMPORT <RelatedPerson.shex> IMPORT <DomainResource.shex> IMPORT <CodeableConcept.shex> IMPORT <BackboneElement.shex> IMPORT <PractitionerRole.shex> IMPORT <MonetaryComponent.shex> start=@<Invoice> AND {fhir:nodeRole [fhir:treeRoot]} # Invoice containing ChargeItems from an Account <Invoice> EXTENDS @<DomainResource> CLOSED { a [fhir:Invoice]?;fhir:nodeRole [fhir:treeRoot]?; fhir:identifier @<OneOrMore_Identifier>?; # Business Identifier for itemfhir:status @<code> ANDfhir:status @<Code> AND {fhir:v @fhirvs:invoice-status}; # draft | issued | balanced | # cancelled | entered-in-errorfhir:cancelledReason @<string>?; # Reason for cancellation of thisfhir:cancelledReason @<String>?; # Reason for cancellation of this # Invoice fhir:type @<CodeableConcept>?; # Type of Invoicefhir:subject @<Reference> AND {fhir:linkfhir:subject @<Reference> AND {fhir:l @<Group> OR @<Patient> ? }?; # Recipient(s) of goods and servicesfhir:recipient @<Reference> AND {fhir:linkfhir:recipient @<Reference> AND {fhir:l @<Organization> OR @<Patient> OR @<RelatedPerson> ? }?; # Recipient of this invoicefhir:date @<dateTime>?; # DEPRICATED fhir:creation @<dateTime>?; # When posted fhir:period @<date> ORfhir:creation @<DateTime>?; # When posted fhir:period @<Date> OR @<Period> ?; # Billing date or period fhir:participant @<OneOrMore_Invoice.participant>?; # Participant in creation of this # Invoicefhir:issuer @<Reference> AND {fhir:link @<Organization> ? }?; # Issuing Organization of Invoice fhir:account @<Reference> AND {fhir:linkfhir:issuer @<Reference> AND {fhir:l @<Organization> OR @<Practitioner> OR @<PractitionerRole> ? }?; # Issuing entity fhir:account @<Reference> AND {fhir:l @<Account> ? }?; # Account that is being balanced fhir:lineItem @<OneOrMore_Invoice.lineItem>?; # Line items of this Invoice fhir:totalPriceComponent @<OneOrMore_MonetaryComponent>?; # Components of Invoice total fhir:totalNet @<Money>?; # Net total of this Invoice fhir:totalGross @<Money>?; # Gross total of this Invoicefhir:paymentTerms @<markdown>?; # Payment detailsfhir:paymentTerms @<Markdown>?; # Payment details fhir:note @<OneOrMore_Annotation>?; # Comments made about the invoice } # Line items of this Invoice <Invoice.lineItem> EXTENDS @<BackboneElement> CLOSED { fhir:sequence @<PositiveInt>?; # Sequence number of line item fhir:serviced @<Date> OR @<Period> ?; # Service data or period fhir:chargeItem @<Reference> OR @<CodeableConcept> ; # Reference to ChargeItem containing # details of this line item or an # inline billing code fhir:priceComponent @<OneOrMore_MonetaryComponent>?; # Components of total line item price } # Participant in creation of this Invoice <Invoice.participant> EXTENDS @<BackboneElement> CLOSED { fhir:role @<CodeableConcept>?; # Type of involvement in creation of # this Invoicefhir:actor @<Reference> AND {fhir:linkfhir:actor @<Reference> AND {fhir:l @<Device> OR @<Organization> OR @<Patient> OR @<Practitioner> OR @<PractitionerRole> OR @<RelatedPerson> ? }; # Individual who was involved }# Line items of this Invoice <Invoice.lineItem> EXTENDS @<BackboneElement> CLOSED { fhir:sequence @<positiveInt>?; # Sequence number of line item fhir:serviced @<date> OR @<Period> ?; # Service data or period fhir:chargeItem (@<Reference> AND {fhir:link @<ChargeItem> }) OR @<CodeableConcept> ; # Reference to ChargeItem containing # details of this line item or an # inline billing code fhir:priceComponent @<OneOrMore_MonetaryComponent>?; # Components of total line item price }#---------------------- Cardinality Types (OneOrMore) ------------------- <OneOrMore_Identifier> CLOSED { rdf:first @<Identifier> ; rdf:rest [rdf:nil] OR @<OneOrMore_Identifier> } <OneOrMore_Invoice.participant> CLOSED { rdf:first @<Invoice.participant> ; rdf:rest [rdf:nil] OR @<OneOrMore_Invoice.participant> } <OneOrMore_Invoice.lineItem> CLOSED { rdf:first @<Invoice.lineItem> ; rdf:rest [rdf:nil] OR @<OneOrMore_Invoice.lineItem> } <OneOrMore_MonetaryComponent> CLOSED { rdf:first @<MonetaryComponent> ; rdf:rest [rdf:nil] OR @<OneOrMore_MonetaryComponent> } <OneOrMore_Annotation> CLOSED { rdf:first @<Annotation> ; rdf:rest [rdf:nil] OR @<OneOrMore_Annotation> } #---------------------- Value Sets ------------------------ # Codes identifying the lifecycle stage of an Invoice. fhirvs:invoice-status ["draft" "issued" "balanced" "cancelled" "entered-in-error"]
Usage note: every effort has been made to ensure that the ShEx files are correct and useful, but they are not a normative part of the specification.
FHIR
®©
HL7.org
2011+.
FHIR
R6
hl7.fhir.core#6.0.0-ballot3
generated
on
Tue,
Apr
1,
Fri,
Nov
14,
2025
12:25+1100.
20:59+0000.
Links:
Search
|
Version
History
|
Contents
|
Glossary
|
QA
|
Compare
to
R4
|
Compare
to
R5
|
Compare
to
Last
Ballot
|
|
Propose
a
change