fhir_to_pad_converter.py working

This commit is contained in:
Alexander Domene
2025-10-26 13:51:38 +01:00
parent f9d4bc6f11
commit a71284ee64
34 changed files with 279941 additions and 0 deletions

82
placeholder_config.json Normal file
View File

@@ -0,0 +1,82 @@
{
"_comment": "Placeholder values for required PADneXt fields when FHIR data is incomplete",
"_usage": "Use different config files for different FHIR sources with: --placeholder-cfg placeholder_config.json",
"rechnungsersteller": {
"name": "UNKNOWN",
"plz": "00000",
"ort": "UNKNOWN",
"strasse": "UNKNOWN"
},
"leistungserbringer": {
"vorname": "UNKNOWN",
"name": "UNKNOWN",
"titel": null,
"_comment_titel": "null means skip optional field if missing"
},
"empfaenger": {
"anrede": "Ohne Anrede",
"vorname": "UNKNOWN",
"name": "UNKNOWN",
"plz": "00000",
"ort": "UNKNOWN",
"strasse": "UNKNOWN",
"gebdatum": "1900-01-01",
"geschlecht": "u",
"_comment_geschlecht": "Valid values: m (male), w (female), u (unknown)"
},
"behandelter": {
"anrede": null,
"vorname": "UNKNOWN",
"name": "UNKNOWN",
"gebdatum": "1900-01-01",
"geschlecht": "u",
"_comment_behandelter": "Behandelter does NOT have anschrift field"
},
"versicherter": {
"anrede": "Ohne Anrede",
"vorname": "UNKNOWN",
"name": "UNKNOWN",
"gebdatum": "1900-01-01",
"geschlecht": "u",
"_comment_versicherter": "Versicherter has all person fields including geschlecht"
},
"rechnung": {
"eabgabe": null,
"aisaktenzeichen": null,
"aisendbetrag": null,
"_comment_attributes": "null means skip optional attribute if missing"
},
"abrechnungsfall": {
"behandlungsart": "0",
"vertragsart": "1",
"_comment_behandlungsart": "Valid values: 0 (ambulant), 1 (stationär), 2 (stationär Mitbehandlung), 3 (vorstationär), 4 (nachstationär), 5 (konsiliar)",
"_comment_vertragsart": "1-3 digit positive integer representing contract type"
},
"zeitraum": {
"startdatum": "1900-01-01",
"endedatum": "1900-01-01",
"_comment": "Placeholder dates when no dates found in FHIR data"
},
"goziffer": {
"go": "EBM",
"ziffer": "99999",
"datum": "1900-01-01",
"_comment_go": "Valid values: GOAE (physician fee schedule), UVGOAE (accident insurance), EBM (uniform assessment standard). Using EBM as default for general medical services.",
"_comment_ziffer": "Placeholder billing code (max 8 chars) when FHIR code is missing or too long",
"_comment_datum": "Placeholder date when service date is missing"
},
"diagnose": {
"datum": "1900-01-01",
"_comment": "Placeholder date when diagnosis date is missing"
}
}