{
  "_comment": "Unified configuration for FHIR to PADneXt converter - includes resource mapping and header defaults",

  "header": {
    "_comment": "Default header configuration - fills static practice/billing information",

    "nachrichtentyp_version": "2.12",

    "rechnungsersteller_name": "Musterpraxis Dr. Schmidt",
    "rechnungsersteller_kundennr": "PRX123456",
    "rechnungsersteller_strasse": "Hauptstraße 123",
    "rechnungsersteller_plz": "10115",
    "rechnungsersteller_ort": "Berlin",
    "rechnungsersteller_iknr": "260326822",

    "leistungserbringer_id": "LE001",
    "leistungserbringer_titel": "Dr. med.",
    "leistungserbringer_vorname": "Maria",
    "leistungserbringer_name": "Schmidt",

    "empfaenger_anrede": "Herr",
    "empfaenger_vorname": "Max",
    "empfaenger_name": "AOK Berlin",
    "empfaenger_strasse": "Musterstraße 456",
    "empfaenger_plz": "10178",
    "empfaenger_ort": "Berlin",
    "empfaenger_gebdatum": "1980-01-01",

    "behandlungsart": "1",
    "vertragsart": "1",
    "aktenzeichen": "AZ-2025-001",

    "diagnose_text": "Routineuntersuchung",
    "diagnose_datum": "2025-01-15",

    "eabgabe": "1",
    "aisaktenzeichen": "AIS-2025-001",
    "aisendbetrag": "150.00"
  },

  "resources": {
    "Observation": {
      "target": "goziffer",
      "fields": {
        "go": {
          "default": "EBM"
        },
        "ziffer": {
          "source": "code.coding[0]",
          "translate": {
            "source_system_field": "system",
            "source_code_field": "code"
          },
          "required": true,
          "placeholder": "99999"
        },
        "datum": {
          "source": "effectiveDateTime"
        },
        "text": {
          "source": "code.coding[0].display",
          "placeholder": "Observation"
        },
        "anzahl": {
          "default": "1"
        }
      }
    },
    "Procedure": {
      "target": "goziffer",
      "fields": {
        "go": {
          "default": "EBM"
        },
        "ziffer": {
          "source": "code.coding[0].code",
          "required": true,
          "placeholder": "99999"
        },
        "datum": {
          "source": "performedDateTime"
        },
        "text": {
          "source": "code.coding[0].display",
          "placeholder": "Procedure"
        },
        "anzahl": {
          "default": "1"
        }
      }
    },
    "ServiceRequest": {
      "target": "goziffer",
      "fields": {
        "go": {
          "default": "EBM"
        },
        "ziffer": {
          "source": "code.coding[0].code",
          "required": true,
          "placeholder": "99999"
        },
        "datum": {
          "source": "authoredOn"
        },
        "text": {
          "source": "code.coding[0].display",
          "placeholder": "ServiceRequest"
        },
        "anzahl": {
          "default": "1"
        }
      }
    },
    "DiagnosticReport": {
      "target": "goziffer",
      "fields": {
        "go": {
          "default": "EBM"
        },
        "ziffer": {
          "source": "code.coding[0].code",
          "required": true,
          "placeholder": "99999"
        },
        "datum": {
          "source": "issued"
        },
        "text": {
          "source": "code.coding[0].display",
          "placeholder": "DiagnosticReport"
        },
        "anzahl": {
          "default": "1"
        }
      }
    },
    "MedicationAdministration": {
      "target": "goziffer",
      "fields": {
        "go": {
          "default": "EBM"
        },
        "ziffer": {
          "placeholder": "99998"
        },
        "datum": {
          "source": "effectiveDateTime"
        },
        "text": {
          "placeholder": "MedicationAdministration"
        },
        "anzahl": {
          "default": "1"
        }
      }
    }
  }
}
