{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-facility-claim-schema.json",
  "title": "FacilityClaim",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-facility-compliance-apis-api-openapi.yml#/components/schemas/FacilityClaim",
  "type": "object",
  "properties": {
    "claimId": {
      "type": "integer",
      "format": "int64"
    },
    "userId": {
      "type": "integer",
      "format": "int64"
    },
    "currentTimeStamp": {
      "type": "string",
      "format": "date-time"
    },
    "tabNumber": {
      "type": "integer",
      "format": "int32"
    },
    "payerType": {
      "type": "integer",
      "format": "int32"
    },
    "contractorNum": {
      "type": "string"
    },
    "contractorSort": {
      "type": "string"
    },
    "medicaidState": {
      "type": "string"
    },
    "claimIdentifier": {
      "type": "string"
    },
    "typeOfBill": {
      "type": "string"
    },
    "statStartDate": {
      "type": "string",
      "format": "date-time"
    },
    "statEndDate": {
      "type": "string",
      "format": "date-time"
    },
    "patientDOB": {
      "type": "string",
      "format": "date-time"
    },
    "patientGender": {
      "type": "string"
    },
    "patientStatus": {
      "type": "string"
    },
    "pointOfOrigin": {
      "type": "string"
    },
    "admissionDate": {
      "type": "string",
      "format": "date-time"
    },
    "admissionType": {
      "type": "string"
    },
    "conditionCodes": {
      "type": "string"
    },
    "valueCodes": {
      "type": "string"
    },
    "occurrenceCodes": {
      "type": "string"
    },
    "occurrenceSpanCodes": {
      "type": "string"
    },
    "complianceType": {
      "type": "integer",
      "format": "int32"
    },
    "moduleId": {
      "type": "string"
    },
    "facilityClaimLineList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FacilityClaimLine"
      }
    },
    "claimDiag": {
      "$ref": "#/$defs/FacilityClaimDiag"
    },
    "claimLineEditsList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FacilityClaimLineEdits"
      }
    },
    "payer": {
      "type": "string"
    }
  },
  "$defs": {
    "FacilityClaimDiag": {
      "type": "object",
      "properties": {
        "claimId": {
          "type": "integer",
          "format": "int64"
        },
        "principalDx": {
          "type": "string"
        },
        "admitting": {
          "type": "string"
        },
        "others": {
          "type": "string"
        },
        "primary1Px": {
          "type": "string"
        },
        "primary1PxDate": {
          "type": "string",
          "format": "date-time"
        },
        "primary2Px": {
          "type": "string"
        },
        "primary2PxDate": {
          "type": "string",
          "format": "date-time"
        },
        "other1Px": {
          "type": "string"
        },
        "other1PxDate": {
          "type": "string",
          "format": "date-time"
        },
        "other2Px": {
          "type": "string"
        },
        "other2PxDate": {
          "type": "string",
          "format": "date-time"
        },
        "other3Px": {
          "type": "string"
        },
        "other3PxDate": {
          "type": "string",
          "format": "date-time"
        },
        "other4Px": {
          "type": "string"
        },
        "other4PxDate": {
          "type": "string",
          "format": "date-time"
        },
        "reasonForVisit": {
          "type": "string"
        },
        "ipAdmitting": {
          "type": "string"
        }
      }
    },
    "FacilityClaimLine": {
      "type": "object",
      "properties": {
        "claimLineId": {
          "type": "integer",
          "format": "int32"
        },
        "claimId": {
          "type": "integer",
          "format": "int64"
        },
        "revenueCode": {
          "type": "string"
        },
        "procedureCode": {
          "type": "string"
        },
        "modifier": {
          "type": "string"
        },
        "lineNumber": {
          "type": "integer",
          "format": "int32"
        },
        "units": {
          "type": "integer",
          "format": "int32"
        },
        "dateOfService": {
          "type": "string",
          "format": "date-time"
        },
        "ndc": {
          "type": "string"
        }
      }
    },
    "FacilityClaimLineEdits": {
      "type": "object",
      "properties": {
        "claimLineId": {
          "type": "integer",
          "format": "int32"
        },
        "editType": {
          "type": "string"
        },
        "mnemonic": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "claimLineNum": {
          "type": "integer",
          "format": "int32"
        }
      }
    }
  }
}