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

## Fields

| Field | Required | Type / allowed values |
| --- | --- | --- |
| `codPrestador` | Yes | string |
| `tipoDocumentoIdentificacion` | Yes | `CN`, `RC`, `MS` |
| `numDocumentoIdentificacion` | Yes | string |
| `fechaNacimiento` | Yes | string |
| `edadGestacional` | No | integer |
| `numConsultasCPrenatal` | No | integer |
| `codSexoBiologico` | Yes | string |
| `peso` | No | number |
| `codDiagnosticoPrincipal` | Yes | string |
| `condicionDestinoUsuarioEgreso` | Yes | string |
| `codDiagnosticoCausaMuerte` | No | union |
| `fechaEgreso` | Yes | string |
| `codDiagnosticoPrincipalCIE11` | No | union |
| `nomCodDiagnosticoPrincipalCIE11` | No | union |
| `codDiagnosticoPrincipalECIE11` | No | union |
| `nomCodDiagnosticoPrincipalECIE11` | 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."
    },
    "tipoDocumentoIdentificacion": {
      "type": "string",
      "enum": [
        "CN",
        "RC",
        "MS"
      ]
    },
    "numDocumentoIdentificacion": {
      "type": "string",
      "minLength": 2,
      "maxLength": 20,
      "pattern": "^[a-zA-Z0-9]+$"
    },
    "fechaNacimiento": {
      "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]"
    },
    "edadGestacional": {
      "type": "integer"
    },
    "numConsultasCPrenatal": {
      "type": "integer",
      "minimum": 0,
      "maximum": 99
    },
    "codSexoBiologico": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2
    },
    "peso": {
      "type": "number"
    },
    "codDiagnosticoPrincipal": {
      "type": "string",
      "minLength": 4,
      "maxLength": 4
    },
    "condicionDestinoUsuarioEgreso": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2
    },
    "codDiagnosticoCausaMuerte": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 4,
          "maxLength": 4
        },
        {
          "type": "null"
        }
      ]
    },
    "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"
        }
      ],
      "description": "Alias de entrada nativo; el envío usa el campo canónico. No envíe ambos con valores diferentes."
    },
    "nomCodDiagnosticoPrincipalECIE11": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ],
      "description": "Alias de entrada nativo; el envío usa el campo canónico. No envíe ambos con valores diferentes."
    },
    "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",
    "tipoDocumentoIdentificacion",
    "numDocumentoIdentificacion",
    "fechaNacimiento",
    "codSexoBiologico",
    "codDiagnosticoPrincipal",
    "condicionDestinoUsuarioEgreso",
    "fechaEgreso",
    "consecutivo"
  ],
  "description": "Estructura del perfil native-d558206. Las reglas clínicas, referencias y catálogos se verifican por separado."
}
```
