Skip to content

Modifying the insurance company mapping file (Krankenkassenverzeichnis_DiGA.xml)

Max Körlinge edited this page Mar 5, 2021 · 1 revision

The XML schemas (.xsd) which are available from GKV here are version 2.0.0. However, the insurance company mapping file at https://kkv.gkv-diga.de/ is using version 1.0 of the schemas, and those versions are nowhere to be found.

I found, however, that you get around this problem by... you guessed it.. simply modifying the "Krankenkassenverzeichnis_DiGA.xml" file from https://kkv.gkv-diga.de/ to use the new schemas instead.

So, in summary, this is what the top of the file looks when you download it:

<?xml version="1.0" encoding="UTF-8"?>
<n1:Kostentraeger_Mappingverzeichnis xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                     xmlns:n1="http://www.gkv-datenaustausch.de/XML-Schema/EDRE0_MVZ/1.0"
                                     xmlns:bas="http://www.gkv-datenaustausch.de/XMLSchema/EDFC0-basis/1.0"
                                     version="001.000.000" gueltigab="2020-07-01" 
                                     xsi:schemaLocation="http://www.gkv-datenaustausch.de/XML-Schema/EDRE0_MVZ/1.0 EDRE0-MVZ_1.0.0.xsd">

Change this to

<?xml version="1.0" encoding="UTF-8"?>
<n1:Kostentraeger_Mappingverzeichnis xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                     xmlns:n1="http://www.gkv-datenaustausch.de/XML-Schema/EDRE0_MVZ/2.0.0"
                                     xmlns:bas="http://www.gkv-datenaustausch.de/XMLSchema/EDFC0-basis/2.0.0"
                                     version="002.000.000" gueltigab="2020-07-01" xsi:schemaLocation="">

Note that we changed to the new version numbers and removed the schemalocation.

After making this change to your mapping file, you can use it in this library (which in turn uses it to convert the XML to Java objects)

Clone this wiki locally