Skip to main content

More about electronic billing

Explanation

below is an extract from the e-invoicing file (XML4.5-format) with values and their correspondences in Business Central/E-Care. This is a summary of the specification found under the standard of the Swiss Health Care System www.forum-datenaustausch.ch.

Record table for Version 4.5

InfoTags or attributesub-tag1sub-tag2Corresponding Field BC/Ecare
1language= "de"from customer Language Code
2modus="test"from request page
3invoice:transport from="7601002139999" to="7601003989898"from= Institution [GLN] to= customer [GLN Receiver]
4invoice:via sequence_id="1" via="7601001304307"via= institution transporter [GLN] or Care setup [Defautl Transporter]
5invoice:payload copy="false" storno="true" type="invoice"doc header-cancellation- storno
6invoice:invoice request_date="2024-01-31T22:00:00Z" request_id="04345301" request_timestamp="1710937972"date= doc.header [Posting Date]
..request_id = doc header [No.]
7invoice:remark Visana AG /invoice:remarkremark= header[Sell-to customer name]
8invoice:tiers_payant payment_period="P30D"period= fix P30D
BILLERinvoice:biller ean_party="7601002139999" zsr="Q463902"ean= institution [GLN] zsr= settlementEntry [VCR No]
10invoice:company
11invoice:companyname MyCompany /invoice:companynameContact from institution
12invoice:postalContact from institution
13invoice:street Hackerstreet 99 /invoice:streetContact from institution
14invoice:zip statecode="VD" 1070 /invoice:zipContact from institution
15invoice:city Puidoux /invoice:cityContact from institution
16/invoice:postal
17/invoice:company
18/invoice:biller
DEBITORinvoice:debitor ean_party="7601003989898"ean= customer [GLN]
20invoice:company
21invoice:companyname Visana AG /invoice:companynameContact from Customer
22invoice:postal
23invoice:street Worldstreet 99 /invoice:streetContact from Customer
24invoice:zip statecode="BE" 3001 /invoice:zipContact from Customer
25invoice:city Bern /invoice:cityContact from Customer
26/invoice:postal
27/invoice:company
28/invoice:debitor
PROVIDERinvoice:provider ean_party="7601002139999" zsr="Q123456"ean= Institution [GLN]
30invoice:companyzsr= settlementEntry [VCR No.]
31invoice:companyname MyCompany /invoice:companynameContact from institution
32invoice:postalContact from institution
33invoice:street Hackerstreet 99 /invoice:streetContact from institution
34invoice:zip statecode="VD" 1070 /invoice:zipContact from institution
35invoice:city Puidoux /invoice:cityContact from institution
36/invoice:postal
37/invoice:company
38/invoice:provider
INSURANCEinvoice:insurance ean_party="7601003989898"ean= customer [GLN]
40invoice:company
41invoice:companyname Visana AG /invoice:companynamecontact from customer
42invoice:postalcontact from customer
43invoice:street Worldstreet 99 /invoice:streetcontact from customer
44invoice:zip statecode="BE" 3001 /invoice:zipcontact from customer
45invoice:city Bern /invoice:citycontact from customer
46/invoice:postal
47/invoice:company
48/invoice:insurance
49invoice:patient gender="female" birthdate="1940-01-01T22:00:00Z" ssn="7560123456789"gender= beneficiary [Gender] Birthdate= Beneficiary [Birthdate] ssn= beneficiary [Social Security No]
50invoice:person salutation="Miss"Contact from Beneficiary
51invoice:familyname Doe /invoice:familynameContact from Beneficiary
52invoice:givenname Jane /invoice:givennameContact from Beneficiary
53invoice:postalContact from Beneficiary
54invoice:street Hackerstreet 99 /invoice:streetContact from Beneficiary
55invoice:zip statecode="VD" 1070 /invoice:zipContact from Beneficiary [Territory Code], if empty: Institution [Territory Code]
56invoice:city Puidoux /invoice:cityContact from Beneficiary
57/invoice:postal
58/invoice:person
59invoice:card card_id="12345678901234567890" expiry_date="2024-12-31T21:00:00Z"Addressbook / insurance1 / actual [Insurance Card No]
60/invoice:patient
GUARANTORinvoice:guarantor
62invoice:person salutation="Miss"
63invoice:familyname Doe /invoice:familynamecontact from beneficiary
64invoice:givenname Jane /invoice:givennamecontact from beneficiary
65invoice:postal
66invoice:street Hackerstreet 99 /invoice:streetcontact from beneficiary
67invoice:zip statecode="VD" 1070 /invoice:zipcontact from beneficiary
68invoice:city Puidoux /invoice:citycontact from beneficiary
69/invoice:postal
70/invoice:person
71/invoice:guarantor
REFERRERinvoice:referrer ean_party="7601003989898" ZSR="XX123"ean= [GLN] ZSR=VCR no.Info from Contact of Medical Doctor
80invoice:company
81invoice:companyname My Medic Office /invoice:companynamecontact from contact
82orinvoice:person
81invoice:familyname John Repair /invoice:familynamecontact from contactperson
82invoice:postalcontact from contact
83invoice:street Station Street 99 /invoice:streetcontact from contact
84invoice:zip statecode="ZH" 8001 /invoice:zipcontact from contact
85invoice:city Zurich /invoice:citycontact from contact
86/invoice:postal
87/invoice:person
88or/invoice:company
88/invoice:referrer
LINEinvoice:balance amount="1785.60" amount_due="0.00" currency="CHF" amount_reminder="0"
100invoice:vat vat="1785.60" vat_number="CHE-106.450.247"
101invoice:vat_rate vat_rate="0" amount="1785.6" vat="0"
102/invoice:vat
103/invoice:balance
104/invoice:tiers_payant
105invoice:esrQR type="esrQR" iban="CH4639999999999999999" reference_number="004345301000000005300000003"iban= iban from [Swiss QR-Bill Bank Account No]- account of sales header [Payment Method Code] of from company information [Swiss QR-Bill IBAN]
106invoice:bankRef= sales invoice head [Pament Reference]
107invoice:company
108invoice:companyname Valiant Bank /invoice:companynamebank account info from the iban found
109invoice:postal
110invoice:street Bundesplatz 4 /invoice:streetbank account info from the iban found
111invoice:zip statecode="BE" 3001 /invoice:zipbank account info from the iban found
112invoice:city Bern /invoice:citybank account info from the iban found
113/invoice:postal
114/invoice:company
115/invoice:bank
116invoice:creditor
117invoice:company
118invoice:companyname MyCompany /invoice:companynameContact from Institution
119invoice:postal
120invoice:street Hackerstreet 99 /invoice:streetContact from Institution
121invoice:zip statecode="BE" 3018 /invoice:zipContact from Institution
122invoice:city Bern /invoice:cityContact from Institution
123/invoice:postal
124/invoice:company
125/invoice:creditor
126/invoice:esrQR
127invoice:kvg insured_id="9.999.222.99"addressbook/insurance1/actual [Insurance Police No.]
128invoice:treatment canton="VD" date_begin="2024-01-01T23:00:00" date_end="2024-01-31T23:00:00" reason="disease"Canton= Contact [Territory Code] from Customer
129Date begin/end=of the settlementEntry [Period Concerned from/to]
130invoice:services
131invoice:service record_id="1" tariff_type="960" code="96006" name="Pflegebedarf von 101 bis 120 Minuten" date_begin="2024-01-01T23:00:00" date_end="2024-01-13T23:00:00" quantity="-13" unit="57.60" unit_factor="1" external_factor="1" amount="-748.8" provider_id="7601002139999" responsible_id="7601003989898" session="1" vat_rate="0" obligation="true" service_attributes="0"provider= institution [GLN] responsible= customer [GLN] tariff_type= Service [Tarif Code] Code= Service [Rate Cipher] or SettlementEntry [Limed No]
..name= ambulatory Import [Service Description] or Service [Name] or SettlementEntry [Description] (limed)
..vat_Rate= sales line [Vat %]
..obligation = true (fix)
200/invoice:services

General process synoptic

find here the overall process schema.

note

In Switzerland, a transporter can be MediData or Swisscom Health Net. It works using Webservices. The connection can be using certificate and authorization token or using user/password logon method. As of today, some public authorities (cantons and communes) are starting to add to the existing file schema (XML V4.5 of forum-datenaustausch.ch).

ERPSlogo