Guia de Implementação do AnHealth
0.2.0 - CI Build

Guia de Implementação do AnHealth - Local Development build (v0.2.0). See the Directory of published versions

Resource Profile: Invoice

Official URL: https://ancode.app/fhir/StructureDefinition/Invoice Version: 0.2.0
Draft as of 2021-12-02 Computable Name: Invoice

Usage:

  • This Resource Profile is not used by any profiles in this Implementation Guide

Formal Views of Profile Content

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

This structure is derived from Invoice

NameFlagsCard.TypeDescription & Constraintsdoco
.. Invoice 0..*InvoiceInvoice containing ChargeItems from an Account
... subject 1..1Reference(Patient | Group)Recipient(s) of goods and services
... recipient 1..1Reference(Organization | Patient | RelatedPerson)Recipient of this invoice
... issuer 1..1Reference(Organization)Issuing Organization of Invoice
... lineItem 1..*BackboneElementLine items of this Invoice
... totalNet 1..1MoneyNet total of this Invoice
... totalGross 1..1MoneyGross total of this Invoice

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Invoice 0..*InvoiceInvoice containing ChargeItems from an Account
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... status ?!Σ1..1codedraft | issued | balanced | cancelled | entered-in-error
Binding: InvoiceStatus (required): Codes identifying the lifecycle stage of an Invoice.

... recipient Σ1..1Reference(Organization | Patient | RelatedPerson)Recipient of this invoice
... issuer 1..1Reference(Organization)Issuing Organization of Invoice
... account 1..1Reference(Account)Account that is being balanced
... lineItem 1..*BackboneElementLine items of this Invoice
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... chargeItem[x] 1..1Reference to ChargeItem containing details of this line item or an inline billing code
..... chargeItemReferenceReference(ChargeItem)
..... chargeItemCodeableConceptCodeableConcept
... totalNet Σ1..1MoneyNet total of this Invoice
... totalGross Σ1..1MoneyGross total of this Invoice

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Invoice.statusrequiredInvoiceStatus

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorInvoiceIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorInvoiceIf 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.exists() and ('#'+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(uri) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorInvoiceIf 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-5errorInvoiceIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceInvoiceA 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
.. Invoice 0..*InvoiceInvoice containing ChargeItems from an Account
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier Σ0..*IdentifierBusiness Identifier for item
... status ?!Σ1..1codedraft | issued | balanced | cancelled | entered-in-error
Binding: InvoiceStatus (required): Codes identifying the lifecycle stage of an Invoice.

... cancelledReason 0..1stringReason for cancellation of this Invoice
... type Σ0..1CodeableConceptType of Invoice
... subject Σ1..1Reference(Patient | Group)Recipient(s) of goods and services
... recipient Σ1..1Reference(Organization | Patient | RelatedPerson)Recipient of this invoice
... date Σ0..1dateTimeInvoice date / posting date
... participant 0..*BackboneElementParticipant in creation of this Invoice
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... role 0..1CodeableConceptType of involvement in creation of this Invoice
.... actor 1..1Reference(Practitioner | Organization | Patient | PractitionerRole | Device | RelatedPerson)Individual who was involved
... issuer 1..1Reference(Organization)Issuing Organization of Invoice
... account 1..1Reference(Account)Account that is being balanced
... lineItem 1..*BackboneElementLine items of this Invoice
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... sequence 0..1positiveIntSequence number of line item
.... chargeItem[x] 1..1Reference to ChargeItem containing details of this line item or an inline billing code
..... chargeItemReferenceReference(ChargeItem)
..... chargeItemCodeableConceptCodeableConcept
.... priceComponent 0..*BackboneElementComponents of total line item price
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... type 1..1codebase | surcharge | deduction | discount | tax | informational
Binding: InvoicePriceComponentType (required): Codes indicating the kind of the price component.

..... code 0..1CodeableConceptCode identifying the specific component
..... factor 0..1decimalFactor used for calculating this component
..... amount 0..1MoneyMonetary amount associated with this component
... totalPriceComponent 0..*See priceComponent (Invoice)Components of Invoice total
... totalNet Σ1..1MoneyNet total of this Invoice
... totalGross Σ1..1MoneyGross total of this Invoice
... paymentTerms 0..1markdownPayment details
... note 0..*AnnotationComments made about the invoice

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Invoice.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
Invoice.statusrequiredInvoiceStatus
Invoice.lineItem.priceComponent.typerequiredInvoicePriceComponentType

Constraints

IdGradePath(s)DetailsRequirements
dom-r4bwarningInvoice.containedContaining new R4B resources within R4 resources may cause interoperability issues if instances are shared with R4 systems
: ($this is Citation or $this is Evidence or $this is EvidenceReport or $this is EvidenceVariable or $this is MedicinalProductDefinition or $this is PackagedProductDefinition or $this is AdministrableProductDefinition or $this is Ingredient or $this is ClinicalUseDefinition or $this is RegulatedAuthorization or $this is SubstanceDefinition or $this is SubscriptionStatus or $this is SubscriptionTopic) implies (%resource is Citation or %resource is Evidence or %resource is EvidenceReport or %resource is EvidenceVariable or %resource is MedicinalProductDefinition or %resource is PackagedProductDefinition or %resource is AdministrableProductDefinition or %resource is Ingredient or %resource is ClinicalUseDefinition or %resource is RegulatedAuthorization or %resource is SubstanceDefinition or %resource is SubscriptionStatus or %resource is SubscriptionTopic)
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()

This structure is derived from Invoice

Summary

Mandatory: 7 elements

Differential View

This structure is derived from Invoice

NameFlagsCard.TypeDescription & Constraintsdoco
.. Invoice 0..*InvoiceInvoice containing ChargeItems from an Account
... subject 1..1Reference(Patient | Group)Recipient(s) of goods and services
... recipient 1..1Reference(Organization | Patient | RelatedPerson)Recipient of this invoice
... issuer 1..1Reference(Organization)Issuing Organization of Invoice
... lineItem 1..*BackboneElementLine items of this Invoice
... totalNet 1..1MoneyNet total of this Invoice
... totalGross 1..1MoneyGross total of this Invoice

doco Documentation for this format

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Invoice 0..*InvoiceInvoice containing ChargeItems from an Account
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... status ?!Σ1..1codedraft | issued | balanced | cancelled | entered-in-error
Binding: InvoiceStatus (required): Codes identifying the lifecycle stage of an Invoice.

... recipient Σ1..1Reference(Organization | Patient | RelatedPerson)Recipient of this invoice
... issuer 1..1Reference(Organization)Issuing Organization of Invoice
... account 1..1Reference(Account)Account that is being balanced
... lineItem 1..*BackboneElementLine items of this Invoice
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... chargeItem[x] 1..1Reference to ChargeItem containing details of this line item or an inline billing code
..... chargeItemReferenceReference(ChargeItem)
..... chargeItemCodeableConceptCodeableConcept
... totalNet Σ1..1MoneyNet total of this Invoice
... totalGross Σ1..1MoneyGross total of this Invoice

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Invoice.statusrequiredInvoiceStatus

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorInvoiceIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorInvoiceIf 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.exists() and ('#'+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(uri) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorInvoiceIf 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-5errorInvoiceIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceInvoiceA 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
.. Invoice 0..*InvoiceInvoice containing ChargeItems from an Account
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier Σ0..*IdentifierBusiness Identifier for item
... status ?!Σ1..1codedraft | issued | balanced | cancelled | entered-in-error
Binding: InvoiceStatus (required): Codes identifying the lifecycle stage of an Invoice.

... cancelledReason 0..1stringReason for cancellation of this Invoice
... type Σ0..1CodeableConceptType of Invoice
... subject Σ1..1Reference(Patient | Group)Recipient(s) of goods and services
... recipient Σ1..1Reference(Organization | Patient | RelatedPerson)Recipient of this invoice
... date Σ0..1dateTimeInvoice date / posting date
... participant 0..*BackboneElementParticipant in creation of this Invoice
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... role 0..1CodeableConceptType of involvement in creation of this Invoice
.... actor 1..1Reference(Practitioner | Organization | Patient | PractitionerRole | Device | RelatedPerson)Individual who was involved
... issuer 1..1Reference(Organization)Issuing Organization of Invoice
... account 1..1Reference(Account)Account that is being balanced
... lineItem 1..*BackboneElementLine items of this Invoice
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... sequence 0..1positiveIntSequence number of line item
.... chargeItem[x] 1..1Reference to ChargeItem containing details of this line item or an inline billing code
..... chargeItemReferenceReference(ChargeItem)
..... chargeItemCodeableConceptCodeableConcept
.... priceComponent 0..*BackboneElementComponents of total line item price
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... type 1..1codebase | surcharge | deduction | discount | tax | informational
Binding: InvoicePriceComponentType (required): Codes indicating the kind of the price component.

..... code 0..1CodeableConceptCode identifying the specific component
..... factor 0..1decimalFactor used for calculating this component
..... amount 0..1MoneyMonetary amount associated with this component
... totalPriceComponent 0..*See priceComponent (Invoice)Components of Invoice total
... totalNet Σ1..1MoneyNet total of this Invoice
... totalGross Σ1..1MoneyGross total of this Invoice
... paymentTerms 0..1markdownPayment details
... note 0..*AnnotationComments made about the invoice

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
Invoice.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
Invoice.statusrequiredInvoiceStatus
Invoice.lineItem.priceComponent.typerequiredInvoicePriceComponentType

Constraints

IdGradePath(s)DetailsRequirements
dom-r4bwarningInvoice.containedContaining new R4B resources within R4 resources may cause interoperability issues if instances are shared with R4 systems
: ($this is Citation or $this is Evidence or $this is EvidenceReport or $this is EvidenceVariable or $this is MedicinalProductDefinition or $this is PackagedProductDefinition or $this is AdministrableProductDefinition or $this is Ingredient or $this is ClinicalUseDefinition or $this is RegulatedAuthorization or $this is SubstanceDefinition or $this is SubscriptionStatus or $this is SubscriptionTopic) implies (%resource is Citation or %resource is Evidence or %resource is EvidenceReport or %resource is EvidenceVariable or %resource is MedicinalProductDefinition or %resource is PackagedProductDefinition or %resource is AdministrableProductDefinition or %resource is Ingredient or %resource is ClinicalUseDefinition or %resource is RegulatedAuthorization or %resource is SubstanceDefinition or %resource is SubscriptionStatus or %resource is SubscriptionTopic)
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()

This structure is derived from Invoice

Summary

Mandatory: 7 elements

 

Other representations of profile: CSV, Excel, Schematron