diff --git a/apigee/salud-afiliados.json b/apigee/salud-afiliados.json index 6f9cd45..4c3631f 100644 --- a/apigee/salud-afiliados.json +++ b/apigee/salud-afiliados.json @@ -1,680 +1,706 @@ { - "openapi": "3.0.0", - "servers": [ - { - "description": "Calidad", - "url": "https://colsubsidio-test.apigee.net/api" - }, - { - "description": "Producción", - "url": "https://colsubsidio-prod.apigee.net/api" - } - ], - "info": { - "description": "Informacion de los servicios salud afiliados.", - "version": "1.0.0", - "title": "Salud Afiliados", - "termsOfService": "http://172.16.95.36/wiki/index.php/T%C3%A9rminos_de_servicio_Swagger", - "contact": { - "email": "operacionesti@colsubsidio.com" - }, - "license": { - "name": "Colsubsidio", - "url": "http://172.16.95.36/wiki/index.php/T%C3%A9rminos_de_servicio_Swagger" - } - }, - "tags": [ - { - "name": "cols-salud-ordenes", - "description": "Ordenes de salud." - } - ], - "paths": { - "/v1/salud/ordenes": { - "get": { - "tags": [ - "cols-salud-ordenes" - ], - "summary": "Servicio para obtener ordenes de Roche", - "description": "Servicio para listar las ordenes de Roche por usuario.", - "operationId": "obtenerOrdenRoche.v1", - "parameters": [ - { - "name": "limite", - "in": "query", - "description": "Limite de ordenes que se obtendran.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "tipoId", - "in": "query", - "description": "Tipo de identificacion.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "numId", - "in": "query", - "description": "Numero de identificacion.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Operación exitosa", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/obtenerOrdenResponse" - } - } - } - }, - "400": { - "description": "Estado inválido" - } - }, - "security": [ - { - "apigee_auth": [ - "write:apigee", - "read:apigee" - ] - } - ] - } - }, - "/v1/salud/ordenes/detalles": { - "get": { - "tags": [ - "cols-salud-ordenes" - ], - "summary": "Servicio para obtener detalle de orden de Roche", - "description": "Servicio para obtener los detalles de una orden de Roche.", - "operationId": "obtenerOrdenDetalleRoche.v1", - "parameters": [ - { - "name": "numOrden", - "in": "query", - "description": "Numero de orden de Roche.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "tipoId", - "in": "query", - "description": "Tipo de identificacion.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "numId", - "in": "query", - "description": "Numero de identificacion.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Operación exitosa", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/obtenerOrdenDetalleResponse" - } - } - } - }, - "400": { - "description": "Estado inválido" - } - }, - "security": [ - { - "apigee_auth": [ - "write:apigee", - "read:apigee" - ] - } - ] - } - }, - "/v1/salud/ordenes/idime": { - "get": { - "tags": [ - "idime-salud-orden" - ], - "summary": "Servicio para obtener los detalles de una orden de de laboratorio idime.", - "description": "Servicio para obtener los detalles de una orden de de laboratorio idime.", - "operationId": "obtenerOrdenLaboratorioidime.v1", - "parameters": [ - { + "openapi": "3.0.0", + "servers": [ + { + "description": "Calidad", + "url": "https://colsubsidio-test.apigee.net/api" + }, + { + "description": "Producción", + "url": "https://colsubsidio-prod.apigee.net/api" + } + ], + "info": { + "description": "Informacion de los servicios salud afiliados.", + "version": "1.0.0", + "title": "Salud Afiliados", + "termsOfService": "http://172.16.95.36/wiki/index.php/T%C3%A9rminos_de_servicio_Swagger", + "contact": { + "email": "operacionesti@colsubsidio.com" + }, + "license": { + "name": "Colsubsidio", + "url": "http://172.16.95.36/wiki/index.php/T%C3%A9rminos_de_servicio_Swagger" + } + }, + "tags": [ + { + "name": "cols-salud-ordenes", + "description": "Ordenes de salud." + } + ], + "paths": { + "/v1/salud/ordenes": { + "get": { + "tags": [ + "cols-salud-ordenes" + ], + "summary": "Servicio para obtener ordenes de Roche", + "description": "Servicio para listar las ordenes de Roche por usuario.", + "operationId": "obtenerOrdenRoche.v1", + "parameters": [ + { + "name": "limite", + "in": "query", + "description": "Limite de ordenes que se obtendran.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "tipoId", + "in": "query", + "description": "Tipo de identificacion.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "numId", + "in": "query", + "description": "Numero de identificacion.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Operación exitosa", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/obtenerOrdenResponse" + } + } + } + }, + "400": { + "description": "Estado inválido" + } + }, + "security": [ + { + "apigee_auth": [ + "write:apigee", + "read:apigee" + ] + } + ] + } + }, + "/v1/salud/ordenes/detalles": { + "get": { + "tags": [ + "cols-salud-ordenes" + ], + "summary": "Servicio para obtener detalle de orden de Roche", + "description": "Servicio para obtener los detalles de una orden de Roche.", + "operationId": "obtenerOrdenDetalleRoche.v1", + "parameters": [ + { + "name": "numOrden", + "in": "query", + "description": "Numero de orden de Roche.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "tipoId", + "in": "query", + "description": "Tipo de identificacion.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "numId", + "in": "query", + "description": "Numero de identificacion.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Operación exitosa", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/obtenerOrdenDetalleResponse" + } + } + } + }, + "400": { + "description": "Estado inválido" + } + }, + "security": [ + { + "apigee_auth": [ + "write:apigee", + "read:apigee" + ] + } + ] + } + }, + "/v1/salud/ordenes/idime": { + "get": { + "tags": [ + "idime-salud-orden" + ], + "summary": "Servicio para obtener los detalles de una orden de de laboratorio idime.", + "description": "Servicio para obtener los detalles de una orden de de laboratorio idime.", + "operationId": "obtenerOrdenLaboratorioidime.v1", + "parameters": [ + { "name": "fechaInicio", "in": "query", "description": "fecha formato yyyy-mm-dd", "required": true, "schema": { - "type": "string", - "format":"" + "type": "string", + "format": "" } - }, - { + }, + { "name": "fechaFin", "in": "query", "description": "fecha formato yyyy-mm-dd", "required": true, "schema": { - "type": "string" + "type": "string" } - }, - { + }, + { "name": "tipoId", "in": "query", "description": "tipo de documento.", "required": true, "schema": { - "type": "string" + "type": "string" } - }, - { + }, + { "name": "numId", "in": "query", "description": "numero de documento.", "required": true, "schema": { - "type": "string" + "type": "string" } - }, - { + }, + { "name": "numAutoriza", "in": "query", "description": "numero de autorizacion.", "required": false, "schema": { - "type": "string" + "type": "string" } - } + } ], - "responses": { - "200": { - "description": "Operación exitosa", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/obtenerOrdenlaboratorioResponse" - } - } - } - }, - "400": { - "description": "Estado inválido" - } - }, - "security": [ - { - "apigee_auth": [ - "write:apigee", - "read:apigee" - ] - } - ] - } - } - }, - "externalDocs": { - "description": "Encontrar más información en EnterpriseArchitect", - "url": "http://172.16.95.36/wiki/index.php/Enterprise_Architect" - }, - "components": { - "schemas": { - "resultado": { - "type": "object", - "properties": { - "codigo": { - "type": "string", - "description": "Código del resultado" - }, - "descripcion": { - "type": "string", - "description": "Descripción del resultado" - } - }, - "xml": { - "name": "resultado" - } - }, - "obtenerOrdenDetalleResponse": { - "type": "object", - "required": [ - "resultado" - ], - "properties": { - "resultado": { - "type": "array", - "xml": { - "name": "resultado" - }, - "items": { - "$ref": "#/components/schemas/resultado" - } - }, - "obtenerOrden": { - "type": "array", - "items": { - "$ref": "#/components/schemas/obtenerOrdenDetalle" - } - } - } - }, - "obtenerOrdenlaboratorioResponse": { - "type": "object", - "required": [ - "resultado" - ], - "properties": { - "resultado": { - "type": "array", - "xml": { - "name": "resultado" - }, - "items": { - "$ref": "#/components/schemas/resultado" - } - }, - "consultaResultado": { - "type": "array", - "items": { - "$ref": "#/components/schemas/consultaResultado" - } - } - } - }, - "consultaResultado": { - "type": "object", - "properties": { - "laboratorios": { - "type": "array", - "items": { - "$ref": "#/components/schemas/laboratorios" - } - }, - "imagenes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/imagenes" - } - } - } - }, - "laboratorios": { - "type": "object", - "properties": { - "orden": { - "type": "string", - "description": "numero de orden" - }, - "documento": { - "$ref": "#/components/schemas/documento" - }, - "nombre": { - "$ref": "#/components/schemas/nombre" - }, - "autorizacion": { - "type": "string", - "description": "numero de autorizacion" - }, - "seccion": { - "$ref": "#/components/schemas/seccion" - }, - "fecha": { - "type": "string", - "format": "date-time", - "description": "fecha de muestra" - }, - "codigo": { - "type": "string", - "description": "codigo cup" - }, - "examen": { - "type": "string", - "description": "nombre del examen" - }, - "perfil": { - "type": "string", - "description": "codigo del perfil" - }, - "sede": { - "$ref": "#/components/schemas/sede" - }, - "responsable": { - "$ref": "#/components/schemas/responsable" - }, - "codigoDatalap": { - "type": "string", - "description": "codigo datalap" - }, - "resultado": { - "type": "string", - "description": "resultado" - }, - "unidad": { - "type": "string", - "description": "unidad de medida" - }, - "refMinima": { - "type": "string", - "description": "referencia minima" - }, - "refMaxima": { - "type": "string", - "description": "referencia maxima" - }, - "tecnica": { - "type": "string", - "description": "tecnica" - }, - "comentario": { - "type": "string", - "description": "comentario" - }, - "comentarioImprimir": { - "type": "string", - "description": "comentario a imprimir" - }, - "patologico": { - "type": "string", - "description": "patologico" - }, - "abreviatura": { - "type": "string", - "description": "abreviatura" - }, - "nombrePerfil": { - "type": "string", - "description": "nombre perfil" - }, - "fechaValidacion": { - "type": "string", - "format": "date-time", - "description": "fecha de validacion" - }, - "fechaResultado": { - "type": "string", - "format": "date-time", - "description": "fecha de resultado" - }, - "usuarioVerificador": { - "type": "string", - "description": "usuario valida fin" - }, - "validaLaboratorio": { - "type": "string", - "description": "valida laboratorio" - }, - "autoValidacion": { - "type": "string", - "description": "autoValidacion" - }, - "prueba": { - "$ref": "#/components/schemas/prueba" - }, - "fechaFactura": { - "type": "string", - "format": "date-time", - "description": "dd/mm/yy" - } - } - }, - "imagenes": { - "type": "object", - "properties": { - "documento": { - "$ref": "#/components/schemas/documento" - }, - "nombre": { - "$ref": "#/components/schemas/nombre" - }, - "orden": { - "type": "string", - "description": "numero de orden" - }, - "autorizacion": { - "type": "string", - "description": "numero de autorizacion" - }, - "codigo": { - "type": "string", - "description": "codigo cup" - }, - "examen": { - "type": "string", - "description": "nombre del examen" - }, - "resultado": { - "type": "string", - "description": "resultado" - }, - "prestador": { - "$ref": "#/components/schemas/prestador" - }, - "fechaLectura": { - "type": "string", - "format": "date-time", - "description": "fecha lectura" - }, - "fechaFactura": { - "type": "string", - "format": "date-time", - "description": "dd/mm/yy" - }, - "fechaTranscripcion": { - "type": "string", - "format": "date-time", - "description": "fecha transcripcion" - }, - "nombreLaboratorio": { - "type": "string", - "description": "nombre laboratorio" - } - } - }, - "documento": { - "type": "object", - "properties": { - "tipo": { - "type": "string", - "description": "" - }, - "numero": { - "type": "string", - "description": "" - } - } - }, - "nombre": { - "type": "object", - "properties": { - "primero": { - "type": "string", - "description": "nombre" - }, - "primerApellido": { - "type": "string", - "description": "" - }, - "segundoApellido": { - "type": "string", - "description": "" - } - } - }, - "seccion": { - "type": "object", - "properties": { - "codigo": { - "type": "string", - "description": "" - }, - "nombre": { - "type": "string", - "description": "" - } - } - }, - "sede": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "" - }, - "nombre": { - "type": "string", - "description": "" - } - } - }, - "responsable": { - "type": "object", - "properties": { - "nombre": { - "type": "string", - "description": "" - }, - "firma": { - "type": "string", - "description": "" - } - } - }, - "prueba": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "" - }, - "nombre": { - "type": "string", - "description": "" - } - } - }, - "prestador": { - "type": "object", - "properties": { - "codigo": { - "type": "string", - "description": "" - }, - "nombre": { - "type": "string", - "description": "" - } - } - }, - "obtenerOrdenDetalle": { - "type": "object", - "properties": { - "orden": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ordenDetalle" - } - }, - } - }, - "ordenDetalle": { - "type": "object", - "properties": { - "documento": { - "type": "string", - "description": "Documento de la orden codificado en base 64 y tipo PDF." - } - } - }, - "obtenerOrden": { - "type": "object", - "properties": { - "orden": { - "type": "array", - "items": { - "$ref": "#/components/schemas/orden" - } - }, - } - }, - "orden": { - "type": "object", - "properties": { - "tipo": { - "type": "string", - "description": "Tipo de orden" - }, - "numero": { - "type": "number", - "description": "Numero de la orden." - }, - "fecha": { - "type": "string", - "format": "date-time", - "description": "Fecha de la orden" - } - } - }, - "obtenerOrdenResponse": { - "type": "object", - "required": [ - "resultado" - ], - "properties": { - "resultado": { - "type": "array", - "xml": { - "name": "resultado" - }, - "items": { - "$ref": "#/components/schemas/resultado" - } - }, - "obtenerOrden": { - "type": "array", - "items": { - "$ref": "#/components/schemas/obtenerOrden" - } - } - } - } - }, - "requestBodies": {}, - "securitySchemes": { - "apigee_auth": { - "type": "oauth2", - "flows": { - "clientCredentials": { - "tokenUrl": "https://colsubsidio-test.apigee.net/oauth/client_credential/accesstoken?grant_type=client_credentials", - "scopes": { - "write:apigee": "Permisos de escritura", - "read:apigee": "Permisos de lectura" - } - } - } - } - } - } + "responses": { + "200": { + "description": "Operación exitosa", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/obtenerOrdenlaboratorioResponse" + } + } + } + }, + "400": { + "description": "Estado inválido" + } + }, + "security": [ + { + "apigee_auth": [ + "write:apigee", + "read:apigee" + ] + } + ] + } + } + }, + "externalDocs": { + "description": "Encontrar más información en EnterpriseArchitect", + "url": "http://172.16.95.36/wiki/index.php/Enterprise_Architect" + }, + "components": { + "schemas": { + "resultado": { + "type": "object", + "properties": { + "codigo": { + "type": "string", + "description": "Código del resultado" + }, + "descripcion": { + "type": "string", + "description": "Descripción del resultado" + } + }, + "xml": { + "name": "resultado" + } + }, + "obtenerOrdenDetalleResponse": { + "type": "object", + "required": [ + "resultado" + ], + "properties": { + "resultado": { + "type": "array", + "xml": { + "name": "resultado" + }, + "items": { + "$ref": "#/components/schemas/resultado" + } + }, + "obtenerOrden": { + "type": "array", + "items": { + "$ref": "#/components/schemas/obtenerOrdenDetalle" + } + } + } + }, + "obtenerOrdenlaboratorioResponse": { + "type": "object", + "required": [ + "resultado" + ], + "properties": { + "resultado": { + "type": "array", + "xml": { + "name": "resultado" + }, + "items": { + "$ref": "#/components/schemas/resultado" + } + }, + "consultaResultado": { + "type": "array", + "items": { + "$ref": "#/components/schemas/consultaResultado" + } + } + } + }, + "consultaResultado": { + "type": "object", + "properties": { + "laboratorios": { + "type": "array", + "items": { + "$ref": "#/components/schemas/laboratorios" + } + }, + "imagenes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/imagenes" + } + } + } + }, + "laboratorios": { + "type": "object", + "properties": { + "orden": { + "type": "string", + "description": "numero de orden" + }, + "documento": { + "$ref": "#/components/schemas/documento" + }, + "nombre": { + "$ref": "#/components/schemas/nombre" + }, + "autorizacion": { + "type": "string", + "description": "numero de autorizacion" + }, + "seccion": { + "$ref": "#/components/schemas/seccion" + }, + "fecha": { + "type": "string", + "format": "date-time", + "description": "fecha de muestra" + }, + "codigo": { + "type": "string", + "description": "codigo cup" + }, + "examen": { + "type": "string", + "description": "nombre del examen" + }, + "perfil": { + "type": "string", + "description": "codigo del perfil" + }, + "sede": { + "$ref": "#/components/schemas/sede" + }, + "responsable": { + "$ref": "#/components/schemas/responsable" + }, + "codigoDatalap": { + "type": "string", + "description": "codigo datalap" + }, + "resultado": { + "type": "string", + "description": "resultado" + }, + "unidad": { + "type": "string", + "description": "unidad de medida" + }, + "refMinima": { + "type": "string", + "description": "referencia minima" + }, + "refMaxima": { + "type": "string", + "description": "referencia maxima" + }, + "tecnica": { + "type": "string", + "description": "tecnica" + }, + "comentario": { + "type": "string", + "description": "comentario" + }, + "comentarioImprimir": { + "type": "string", + "description": "comentario a imprimir" + }, + "patologico": { + "type": "string", + "description": "patologico" + }, + "abreviatura": { + "type": "string", + "description": "abreviatura" + }, + "nombrePerfil": { + "type": "string", + "description": "nombre perfil" + }, + "fechaValidacion": { + "type": "string", + "format": "date-time", + "description": "fecha de validacion" + }, + "fechaResultado": { + "type": "string", + "format": "date-time", + "description": "fecha de resultado" + }, + "usuarioVerificador": { + "type": "string", + "description": "usuario valida fin" + }, + "validaLaboratorio": { + "type": "string", + "description": "valida laboratorio" + }, + "autoValidacion": { + "type": "string", + "description": "autoValidacion" + }, + "prueba": { + "$ref": "#/components/schemas/prueba" + }, + "fechaFactura": { + "type": "string", + "format": "date-time", + "description": "dd/mm/yy" + } + } + }, + "imagenes": { + "type": "object", + "properties": { + "documento": { + "$ref": "#/components/schemas/documento" + }, + "nombre": { + "$ref": "#/components/schemas/nombre" + }, + "orden": { + "type": "string", + "description": "numero de orden" + }, + "autorizacion": { + "type": "string", + "description": "numero de autorizacion" + }, + "codigo": { + "type": "string", + "description": "codigo cup" + }, + "examen": { + "type": "string", + "description": "nombre del examen" + }, + "resultado": { + "type": "string", + "description": "resultado" + }, + "prestador": { + "$ref": "#/components/schemas/prestador" + }, + "fechaLectura": { + "type": "string", + "format": "date-time", + "description": "fecha lectura" + }, + "fechaFactura": { + "type": "string", + "format": "date-time", + "description": "dd/mm/yy" + }, + "fechaTranscripcion": { + "type": "string", + "format": "date-time", + "description": "fecha transcripcion" + }, + "nombreLaboratorio": { + "type": "string", + "description": "nombre laboratorio" + } + } + }, + "documento": { + "type": "object", + "properties": { + "tipo": { + "type": "string", + "description": "" + }, + "numero": { + "type": "string", + "description": "" + } + } + }, + "nombre": { + "type": "object", + "properties": { + "primero": { + "type": "string", + "description": "nombre" + }, + "primerApellido": { + "type": "string", + "description": "" + }, + "segundoApellido": { + "type": "string", + "description": "" + } + } + }, + "seccion": { + "type": "object", + "properties": { + "codigo": { + "type": "string", + "description": "" + }, + "nombre": { + "type": "string", + "description": "" + } + } + }, + "sede": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "" + }, + "nombre": { + "type": "string", + "description": "" + } + } + }, + "responsable": { + "type": "object", + "properties": { + "nombre": { + "type": "string", + "description": "" + }, + "firma": { + "type": "string", + "description": "" + } + } + }, + "prueba": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "" + }, + "nombre": { + "type": "string", + "description": "" + } + } + }, + "especialidad": { + "type": "object", + "properties": { + "codigo": { + "type": "string", + "description": "Codigo que identifica a la especialidad Ejm: 15215 -> RADIOLOGIA" + }, + "descripcion": { + "type": "string", + "description": "Nombre y/o descripcion de la especialidad Ejm: RADIOLOGIA." + } + } + }, + "prestador": { + "type": "object", + "properties": { + "codigo": { + "type": "string", + "description": "Codigo de identificacion del prestador del servicio Ejm: el Id de empleado o cedula de un Doctor." + }, + "nombre": { + "type": "string", + "description": "Nombre de la persona o empresa que presta el servicio." + }, + "documento": { + "$ref": "#/components/schemas/documento" + }, + "especialidad": { + "$ref": "#/components/schemas/especialidad" + }, + "registroMedico": { + "type": "string", + "description": "Id de un registro medico" + }, + "sede": { + "$ref": "#/components/schemas/sede" + } + } + }, + "obtenerOrdenDetalle": { + "type": "object", + "properties": { + "orden": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ordenDetalle" + } + } + } + }, + "ordenDetalle": { + "type": "object", + "properties": { + "documento": { + "type": "string", + "description": "Documento de la orden codificado en base 64 y tipo PDF." + } + } + }, + "obtenerOrden": { + "type": "object", + "properties": { + "orden": { + "type": "array", + "items": { + "$ref": "#/components/schemas/orden" + } + } + } + }, + "orden": { + "type": "object", + "properties": { + "tipo": { + "type": "string", + "description": "Tipo de orden" + }, + "numero": { + "type": "number", + "description": "Numero de la orden." + }, + "fecha": { + "type": "string", + "format": "date-time", + "description": "Fecha de la orden" + } + } + }, + "obtenerOrdenResponse": { + "type": "object", + "required": [ + "resultado" + ], + "properties": { + "resultado": { + "type": "array", + "xml": { + "name": "resultado" + }, + "items": { + "$ref": "#/components/schemas/resultado" + } + }, + "obtenerOrden": { + "type": "array", + "items": { + "$ref": "#/components/schemas/obtenerOrden" + } + } + } + } + }, + "requestBodies": {}, + "securitySchemes": { + "apigee_auth": { + "type": "oauth2", + "flows": { + "clientCredentials": { + "tokenUrl": "https://colsubsidio-test.apigee.net/oauth/client_credential/accesstoken?grant_type=client_credentials", + "scopes": { + "write:apigee": "Permisos de escritura", + "read:apigee": "Permisos de lectura" + } + } + } + } + } + } } \ No newline at end of file