[All schemas](/reference/schemas/) · [API reference](/reference/) · [Data mapping guide](/guides/data-model/)

## Fields

| Field | Required | Type / allowed values |
| --- | --- | --- |
| `codPrestador` | Yes | string |
| `fechaInicioAtencion` | Yes | string |
| `causaMotivoAtencion` | Yes | string |
| `codDiagnosticoPrincipal` | Yes | string |
| `codDiagnosticoPrincipalE` | Yes | string |
| `codDiagnosticoRelacionadoE1` | No | string or null |
| `codDiagnosticoRelacionadoE2` | No | string or null |
| `codDiagnosticoRelacionadoE3` | No | string or null |
| `condicionDestinoUsuarioEgreso` | Yes | string |
| `codDiagnosticoCausaMuerte` | No | string or null |
| `fechaEgreso` | Yes | string |
| `codDiagnosticoPrincipalCIE11` | No | union |
| `nomCodDiagnosticoPrincipalCIE11` | No | union |
| `codDiagnosticoPrincipalECIE11` | No | union |
| `nomCodDiagnosticoPrincipalECIE11` | No | union |
| `codDiagnosticoRelacionadoE1CIE11` | No | union |
| `nomCodDiagnosticoRelacionadoE1CIE11` | No | union |
| `codDiagnosticoRelacionadoE2CIE11` | No | union |
| `nomCodDiagnosticoRelacionadoE2CIE11` | No | union |
| `codDiagnosticoRelacionadoE3CIE11` | No | union |
| `nomCodDiagnosticoRelacionadoE3CIE11` | No | union |
| `codDiagnosticoCausaMuerteCIE11` | No | union |
| `nomCodDiagnosticoCausaMuerteCIE11` | No | union |
| `codigoVIDA` | No | union |
| `consecutivo` | Yes | integer |

## JSON definition

The JSON retains the source contract descriptions. Do not translate property names or enum values.

```json
{
  "type": "object",
  "properties": {
    "codPrestador": {
      "type": "string",
      "minLength": 3,
      "maxLength": 12,
      "description": "Código verificado del prestador o sede: use providerCodes de GET /rips-packages/context. No es el documento del profesional."
    },
    "fechaInicioAtencion": {
      "type": "string",
      "pattern": "[1-2]{1}[9|0]{1}[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1]) (2[0-3]|[01][0-9]):[0-5][0-9]",
      "description": "Hora local clínica en formato AAAA-MM-DD HH:mm. No convertir este campo a una marca UTC."
    },
    "causaMotivoAtencion": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2
    },
    "codDiagnosticoPrincipal": {
      "type": "string",
      "minLength": 4,
      "maxLength": 6
    },
    "codDiagnosticoPrincipalE": {
      "type": "string",
      "minLength": 4,
      "maxLength": 6
    },
    "codDiagnosticoRelacionadoE1": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 4,
      "maxLength": 6
    },
    "codDiagnosticoRelacionadoE2": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 4,
      "maxLength": 6
    },
    "codDiagnosticoRelacionadoE3": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 4,
      "maxLength": 6
    },
    "condicionDestinoUsuarioEgreso": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2
    },
    "codDiagnosticoCausaMuerte": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 4,
      "maxLength": 6
    },
    "fechaEgreso": {
      "type": "string",
      "pattern": "[1-2]{1}[9|0]{1}[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1]) (2[0-3]|[01][0-9]):[0-5][0-9]",
      "description": "Hora local clínica en formato AAAA-MM-DD HH:mm. No convertir este campo a una marca UTC."
    },
    "codDiagnosticoPrincipalCIE11": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 256
        },
        {
          "type": "null"
        }
      ]
    },
    "nomCodDiagnosticoPrincipalCIE11": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ]
    },
    "codDiagnosticoPrincipalECIE11": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 256
        },
        {
          "type": "null"
        }
      ]
    },
    "nomCodDiagnosticoPrincipalECIE11": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ]
    },
    "codDiagnosticoRelacionadoE1CIE11": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 256
        },
        {
          "type": "null"
        }
      ]
    },
    "nomCodDiagnosticoRelacionadoE1CIE11": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ]
    },
    "codDiagnosticoRelacionadoE2CIE11": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 256
        },
        {
          "type": "null"
        }
      ]
    },
    "nomCodDiagnosticoRelacionadoE2CIE11": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ]
    },
    "codDiagnosticoRelacionadoE3CIE11": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 256
        },
        {
          "type": "null"
        }
      ]
    },
    "nomCodDiagnosticoRelacionadoE3CIE11": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ]
    },
    "codDiagnosticoCausaMuerteCIE11": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 256
        },
        {
          "type": "null"
        }
      ]
    },
    "nomCodDiagnosticoCausaMuerteCIE11": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ]
    },
    "codigoVIDA": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 256
        },
        {
          "type": "null"
        }
      ]
    },
    "consecutivo": {
      "type": "integer",
      "minimum": 1,
      "maximum": 999999
    }
  },
  "required": [
    "codPrestador",
    "fechaInicioAtencion",
    "causaMotivoAtencion",
    "codDiagnosticoPrincipal",
    "codDiagnosticoPrincipalE",
    "condicionDestinoUsuarioEgreso",
    "fechaEgreso",
    "consecutivo"
  ],
  "description": "Estructura del perfil native-d558206. Las reglas clínicas, referencias y catálogos se verifican por separado."
}
```
