[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 |
| `idMIPRES` | No | union |
| `numAutorizacion` | No | union |
| `codProcedimiento` | No | string or null |
| `viaIngresoServicioSalud` | Yes | string |
| `modalidadGrupoServicioTecSal` | Yes | string |
| `grupoServicios` | Yes | string |
| `codServicio` | Yes | integer |
| `finalidadTecnologiaSalud` | Yes | string |
| `tipoDocumentoIdentificacion` | Yes | `CC`, `CE`, `CD`, `PA`, `SC`, `PE`, `DE`, `PT` |
| `numDocumentoIdentificacion` | Yes | string |
| `codDiagnosticoPrincipal` | Yes | string |
| `codDiagnosticoRelacionado` | No | union |
| `codComplicacion` | No | union |
| `vrServicio` | Yes | number |
| `conceptoRecaudo` | Yes | string |
| `valorPagoModerador` | Yes | number |
| `numFEVPagoModerador` | No | union |
| `codDiagnosticoPrincipalCIE11` | No | union |
| `nomCodDiagnosticoPrincipalCIE11` | No | union |
| `codDiagnosticoRelacionadoCIE11` | No | union |
| `nomCodDiagnosticoRelacionadoCIE11` | No | union |
| `codComplicacionCIE11` | No | union |
| `nomCodComplicacionCIE11` | 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": 12,
      "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."
    },
    "idMIPRES": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "pattern": "^[0-9]{1,19}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "numAutorizacion": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 30
        },
        {
          "type": "null"
        }
      ]
    },
    "codProcedimiento": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 6,
      "maxLength": 6
    },
    "viaIngresoServicioSalud": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2
    },
    "modalidadGrupoServicioTecSal": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2
    },
    "grupoServicios": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2
    },
    "codServicio": {
      "type": "integer",
      "minimum": 100,
      "maximum": 9999
    },
    "finalidadTecnologiaSalud": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2
    },
    "tipoDocumentoIdentificacion": {
      "type": "string",
      "enum": [
        "CC",
        "CE",
        "CD",
        "PA",
        "SC",
        "PE",
        "DE",
        "PT"
      ],
      "description": "Identificación del profesional que prestó el servicio; no es la identificación del paciente."
    },
    "numDocumentoIdentificacion": {
      "type": "string",
      "minLength": 2,
      "maxLength": 20,
      "pattern": "^[a-zA-Z0-9]+$",
      "description": "Identificación del profesional que prestó el servicio; no es la identificación del paciente."
    },
    "codDiagnosticoPrincipal": {
      "type": "string",
      "minLength": 4,
      "maxLength": 6
    },
    "codDiagnosticoRelacionado": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 4,
          "maxLength": 4
        },
        {
          "type": "null"
        }
      ]
    },
    "codComplicacion": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 4,
          "maxLength": 4
        },
        {
          "type": "null"
        }
      ]
    },
    "vrServicio": {
      "type": "number",
      "minimum": 0,
      "maximum": 999999999999
    },
    "conceptoRecaudo": {
      "type": "string"
    },
    "valorPagoModerador": {
      "type": "number",
      "minimum": 0,
      "maximum": 999999999999
    },
    "numFEVPagoModerador": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 30
        },
        {
          "type": "null"
        }
      ]
    },
    "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"
        }
      ]
    },
    "codDiagnosticoRelacionadoCIE11": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 256
        },
        {
          "type": "null"
        }
      ]
    },
    "nomCodDiagnosticoRelacionadoCIE11": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ]
    },
    "codComplicacionCIE11": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            ""
          ]
        },
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 256
        },
        {
          "type": "null"
        }
      ]
    },
    "nomCodComplicacionCIE11": {
      "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",
    "viaIngresoServicioSalud",
    "modalidadGrupoServicioTecSal",
    "grupoServicios",
    "codServicio",
    "finalidadTecnologiaSalud",
    "tipoDocumentoIdentificacion",
    "numDocumentoIdentificacion",
    "codDiagnosticoPrincipal",
    "vrServicio",
    "conceptoRecaudo",
    "valorPagoModerador",
    "consecutivo"
  ],
  "description": "Estructura del perfil native-d558206. Las reglas clínicas, referencias y catálogos se verifican por separado."
}
```
