More about electronic billing
Explanation
below is an extract from the e-invoicing file (xml-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
| Info | Tags or attribute | sub-tag1 | sub-tag2 | Corresponding Field BC/Ecare |
|---|---|---|---|---|
| 1 | language= "de" | from customer Language Code | ||
| 2 | modus="test" | from request page | ||
| 3 | invoice:transport from="7601002139999" to="7601003989898" | from= Institution [GLN] to= customer [GLN Receiver] | ||
| 4 | invoice:via sequence_id="1" via="7601001304307" | via= institution transporter [GLN] or Care setup [Defautl Transporter] | ||
| 5 | invoice:payload copy="false" storno="true" type="invoice" | doc header-cancellation- storno | ||
| 6 | invoice:invoice request_date="2024-01-31T22:00:00Z" request_id="04345301" request_timestamp="1710937972" | date= doc.header [Posting Date] | ||
| .. | request_id = doc header [No.] | |||
| 7 | invoice:remark Visana AG /invoice:remark | remark= header[Sell-to customer name] | ||
| 8 | invoice:tiers_payant payment_period="P30D" | period= fix P30D | ||
| BILLER | invoice:biller ean_party="7601002139999" zsr="Q463902" | ean= institution [GLN] zsr= settlementEntry [VCR No] | ||
| 10 | invoice:company | |||
| 11 | invoice:companyname MyCompany /invoice:companyname | Contact from institution | ||
| 12 | invoice:postal | Contact from institution | ||
| 13 | invoice:street Hackerstreet 99 /invoice:street | Contact from institution | ||
| 14 | invoice:zip statecode="VD" 1070 /invoice:zip | Contact from institution | ||
| 15 | invoice:city Puidoux /invoice:city | Contact from institution | ||
| 16 | /invoice:postal | |||
| 17 | /invoice:company | |||
| 18 | /invoice:biller | |||
| DEBITOR | invoice:debitor ean_party="7601003989898" | ean= customer [GLN] | ||
| 20 | invoice:company | |||
| 21 | invoice:companyname Visana AG /invoice:companyname | Contact from Customer | ||
| 22 | invoice:postal | |||
| 23 | invoice:street Worldstreet 99 /invoice:street | Contact from Customer | ||
| 24 | invoice:zip statecode="BE" 3001 /invoice:zip | Contact from Customer | ||
| 25 | invoice:city Bern /invoice:city | Contact from Customer | ||
| 26 | /invoice:postal | |||
| 27 | /invoice:company | |||
| 28 | /invoice:debitor | |||
| PROVIDER | invoice:provider ean_party="7601002139999" zsr="Q123456" | ean= Institution [GLN] | ||
| 30 | invoice:company | zsr= settlementEntry [VCR No.] | ||
| 31 | invoice:companyname MyCompany /invoice:companyname | Contact from institution | ||
| 32 | invoice:postal | Contact from institution | ||
| 33 | invoice:street Hackerstreet 99 /invoice:street | Contact from institution | ||
| 34 | invoice:zip statecode="VD" 1070 /invoice:zip | Contact from institution | ||
| 35 | invoice:city Puidoux /invoice:city | Contact from institution | ||
| 36 | /invoice:postal | |||
| 37 | /invoice:company | |||
| 38 | /invoice:provider | |||
| INSURANCE | invoice:insurance ean_party="7601003989898" | ean= customer [GLN] | ||
| 40 | invoice:company | |||
| 41 | invoice:companyname Visana AG /invoice:companyname | contact from customer | ||
| 42 | invoice:postal | contact from customer | ||
| 43 | invoice:street Worldstreet 99 /invoice:street | contact from customer | ||
| 44 | invoice:zip statecode="BE" 3001 /invoice:zip | contact from customer | ||
| 45 | invoice:city Bern /invoice:city | contact from customer | ||
| 46 | /invoice:postal | |||
| 47 | /invoice:company | |||
| 48 | /invoice:insurance | |||
| 49 | invoice:patient gender="female" birthdate="1940-01-01T22:00:00Z" ssn="7560123456789" | gender= beneficiary [Gender] Birthdate= Beneficiary [Birthdate] ssn= beneficiary [Social Security No] | ||
| 50 | invoice:person salutation="Miss" | Contact from Beneficiary | ||
| 51 | invoice:familyname Doe /invoice:familyname | Contact from Beneficiary | ||
| 52 | invoice:givenname Jane /invoice:givenname | Contact from Beneficiary | ||
| 53 | invoice:postal | Contact from Beneficiary | ||
| 54 | invoice:street Hackerstreet 99 /invoice:street | Contact from Beneficiary | ||
| 55 | invoice:zip statecode="VD" 1070 /invoice:zip | Contact from Beneficiary [Territory Code], if empty: Institution [Territory Code] | ||
| 56 | invoice:city Puidoux /invoice:city | Contact from Beneficiary | ||
| 57 | /invoice:postal | |||
| 58 | /invoice:person | |||
| 59 | invoice:card card_id="12345678901234567890" expiry_date="2024-12-31T21:00:00Z" | Addressbook / insurance1 / actual [Insurance Card No] | ||
| 60 | /invoice:patient | |||
| GUARANTOR | invoice:guarantor | |||
| 62 | invoice:person salutation="Miss" | |||
| 63 | invoice:familyname Doe /invoice:familyname | contact from beneficiary | ||
| 64 | invoice:givenname Jane /invoice:givenname | contact from beneficiary | ||
| 65 | invoice:postal | |||
| 66 | invoice:street Hackerstreet 99 /invoice:street | contact from beneficiary | ||
| 67 | invoice:zip statecode="VD" 1070 /invoice:zip | contact from beneficiary | ||
| 68 | invoice:city Puidoux /invoice:city | contact from beneficiary | ||
| 69 | /invoice:postal | |||
| 70 | /invoice:person | |||
| 71 | /invoice:guarantor | |||
| LINE | invoice:balance amount="1785.60" amount_due="0.00" currency="CHF" amount_reminder="0" | |||
| 73 | invoice:vat vat="1785.60" vat_number="CHE-106.450.247" | |||
| 74 | invoice:vat_rate vat_rate="0" amount="1785.6" vat="0" | |||
| 75 | /invoice:vat | |||
| 76 | /invoice:balance | |||
| 77 | /invoice:tiers_payant | |||
| 78 | invoice: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] | ||
| 79 | invoice:bank | Ref= sales invoice head [Pament Reference] | ||
| 80 | invoice:company | |||
| 81 | invoice:companyname Valiant Bank /invoice:companyname | bank account info from the iban found | ||
| 82 | invoice:postal | |||
| 83 | invoice:street Bundesplatz 4 /invoice:street | bank account info from the iban found | ||
| 84 | invoice:zip statecode="BE" 3001 /invoice:zip | bank account info from the iban found | ||
| 85 | invoice:city Bern /invoice:city | bank account info from the iban found | ||
| 86 | /invoice:postal | |||
| 87 | /invoice:company | |||
| 88 | /invoice:bank | |||
| 89 | invoice:creditor | |||
| 90 | invoice:company | |||
| 91 | invoice:companyname MyCompany /invoice:companyname | Contact from Institution | ||
| 92 | invoice:postal | |||
| 93 | invoice:street Hackerstreet 99 /invoice:street | Contact from Institution | ||
| 94 | invoice:zip statecode="BE" 3018 /invoice:zip | Contact from Institution | ||
| 95 | invoice:city Bern /invoice:city | Contact from Institution | ||
| 96 | /invoice:postal | |||
| 97 | /invoice:company | |||
| 98 | /invoice:creditor | |||
| 99 | /invoice:esrQR | |||
| 100 | invoice:kvg insured_id="9.999.222.99" | addressbook/insurance1/actual [Insurance Police No.] | ||
| 101 | invoice: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 | ||
| 102 | Date begin/end=of the settlementEntry [Period Concerned from/to] | |||
| 103 | invoice:services | |||
| 104 | invoice: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) | |||
| 105 | /invoice:services |