Open API
Rules
Create custom validation rule
Create new tenant-specific validation rules for claim processing.
**Use Case:** Define custom business rules for your hospital's claim validation requirements.
**Authentication:** API Key (X-API-Key header)
**Required Scope:** `rules:write`
**Request Structure:**
List of rule objects to create.
**Rule Components:**
- requirement: What the rule checks (description)
- applicability: Logic defining when rule applies
- age_min/age_max: Patient age range
- sex: allowed gender (M/F/any)
- care_type: List of care types (e.g. ["Rawat Inap"])
- severity: ERROR | WARNING | INFO
- ERROR: Blocks claim submission
- WARNING: Shows warning but allows submission
- INFO: Informational message only
- category: Rule category (e.g., "Administratif")
**Example Request:**
```json
{
"rules": [
{
"requirement": "Patient age must be between 0 and 150 years",
"applicability": {
"age_min": 0,
"age_max": 150,
"sex": "any",
"care_type": ["Rawat Inap", "Rawat Jalan"]
},
"severity": "ERROR",
"category": "Administratif"
}
]
}
```
**Example Response:**
```json
{
"created_rules": [
{
"rule_id": "rule-uuid-123",
"requirement": "Patient age must be between 0 and 150 years",
"status": "ACTIVE"
}
]
}
```
**Common Errors:**
- 400: Invalid condition syntax
- 403: Insufficient permissions
- 500: Validator Service error
post/api/v1/rules/create
Request
- Base URLhttps://developer.claimmind.life (the document declares no server; this is the origin it was published from)
- Authnone declared. Required headers: X-API-Key
Headers
X-API-Keystring required
Request body
Response
Rule created successfully
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.