-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(FEAT) ABM de restricción por paciente
Assignee: Juan Ramirez2 ready
- Loading branch information
1 parent
3ea2e38
commit 1f12806
Showing
37 changed files
with
2,662 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export interface IContacto { | ||
tipo: any; | ||
valor: string; | ||
ranking: number; | ||
activo: boolean; | ||
ultimaActualizacion: Date; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export interface ICreatedBy { | ||
documento: number; | ||
username: number; | ||
apellido: string; | ||
nombre: string; | ||
nombreCompleto: string; | ||
organizacion: { | ||
id: string; | ||
nombre: string; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { IUbicacion } from './IUbicacion'; | ||
|
||
export interface IDireccion { | ||
valor: String; | ||
codigoPostal: String; | ||
ubicacion: IUbicacion; | ||
ranking: Number; | ||
geoReferencia: [Number, Number]; | ||
ultimaActualizacion: Date; | ||
activo: Boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export interface IMatricula { | ||
numero: Number; | ||
descripcion: String; | ||
activo: Boolean; | ||
fechaInicio: Date; | ||
fechaVencimiento: Date; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export interface IObraSocial { | ||
id: string; | ||
tipoDocumento: String; | ||
dni: Number; | ||
transmite: String; | ||
nombre: String; | ||
codigoFinanciador: Number; | ||
financiador: String; | ||
version: Date; | ||
numeroAfiliado: String; | ||
prepaga?: Boolean; | ||
codigoPuco?: Number; | ||
idObraSocial?: Number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
import { IPacienteRelacion } from './IPacienteRelacion.inteface'; | ||
import { IContacto } from './IContacto'; | ||
import { IDireccion } from './IDireccion'; | ||
import { EstadoCivil } from '../shared/enumerados'; | ||
import { IUbicacion } from './IUbicacion'; | ||
import { IObraSocial } from './IObraSocial'; | ||
import { ICreatedBy } from './ICreatedBy'; | ||
|
||
export interface IPaciente { | ||
id: string; | ||
documento: string; | ||
cuil: string; | ||
activo: boolean; | ||
estado: string; | ||
nombre: string; | ||
apellido: string; | ||
nombreCompleto: string; | ||
alias: string; | ||
contacto: IContacto[]; | ||
sexo: string; | ||
genero: string; | ||
tipoIdentificacion: string; | ||
numeroIdentificacion: string; | ||
fechaNacimiento: Date; // Fecha Nacimiento | ||
edad: number; | ||
edadReal: { valor: number; unidad: string }; | ||
fechaFallecimiento: Date; | ||
direccion: IDireccion[]; | ||
lugarNacimiento?: IUbicacion; | ||
estadoCivil: EstadoCivil; | ||
fotoId: string; | ||
foto: string; | ||
createdBy: ICreatedBy; | ||
relaciones: [IPacienteRelacion]; | ||
financiador: [{ | ||
codigoPuco: Number; | ||
nombre: string; | ||
financiador: string; | ||
id: string; | ||
numeroAfiliado: string; | ||
}]; | ||
identificadores: [{ | ||
entidad: string; | ||
valor: string; | ||
}]; | ||
claveBlocking: [string]; | ||
entidadesValidadoras?: [string]; | ||
scan: string; | ||
reportarError: Boolean; | ||
notaError: string; | ||
carpetaEfectores?: [{ | ||
organizacion: { | ||
id: string; | ||
nombre: string; | ||
}; | ||
nroCarpeta: string; | ||
}]; | ||
notas?: [{ | ||
fecha: Date; | ||
nota: string; | ||
destacada: Boolean; | ||
}]; | ||
_score?: number; | ||
vinculos: [string]; | ||
documentos: { | ||
fecha: Date; | ||
tipo: { | ||
id: string; | ||
label: string; | ||
}; | ||
archivos: { | ||
id: string; | ||
ext: string; | ||
}[]; | ||
}[]; | ||
idPacientePrincipal?: string; | ||
} | ||
|
||
export interface IPacienteBasico { | ||
id: string; | ||
nombre: string; | ||
apellido: string; | ||
alias: string; | ||
documento: string; | ||
numeroIdentificacion: string; | ||
sexo: string; | ||
genero: string; | ||
fechaNacimiento: Date; | ||
obraSocial?: IObraSocial; | ||
telefono?: string; | ||
carpetaEfectores?: [{ | ||
organizacion: { | ||
id: string; | ||
nombre: string; | ||
}; | ||
nroCarpeta: string; | ||
}]; | ||
} | ||
|
||
export interface IPacienteRestringido { | ||
idPaciente: string; | ||
observaciones: string; | ||
createdBy: any; | ||
createdAt: Date; | ||
archivos?: any[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
import { IPaciente } from './IPaciente'; | ||
|
||
export interface IPacienteMatch { | ||
id: String; | ||
paciente: IPaciente; | ||
_score: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
export interface IPacienteRelacion { | ||
id?: string; | ||
relacion: { | ||
id: string; | ||
nombre: string; | ||
opuesto: string; | ||
}; | ||
referencia: string; | ||
nombre: string; | ||
apellido: string; | ||
documento: string; | ||
numeroIdentificacion?: string; | ||
fechaNacimiento?: Date; | ||
fechaFallecimiento?: Date; | ||
sexo?: string; | ||
foto: any; | ||
fotoId: any; | ||
activo?: boolean; | ||
alias?: string; | ||
genero?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
import { IUbicacion } from './IUbicacion'; | ||
// import { IMatricula } from './IMatricula'; | ||
import { Sexo, Genero, EstadoCivil, tipoComunicacion } from '../shared/enumerados'; | ||
|
||
export interface IProfesional { | ||
id: String; | ||
documento: String; | ||
activo: Boolean; | ||
habilitado: boolean; | ||
nombre: String; | ||
apellido: String; | ||
contacto: [{ | ||
tipo: tipoComunicacion; | ||
valor: String; | ||
ranking: Number; // Specify preferred order of use (1 = highest) // Podemos usar el rank para guardar un historico de puntos de contacto (le restamos valor si no es actual???) | ||
ultimaActualizacion: Date; | ||
activo: Boolean; | ||
}]; | ||
sexo: Sexo; | ||
genero: Genero; // identidad autopercibida | ||
fechaNacimiento: Date; // Fecha Nacimiento | ||
fechaFallecimiento: Date; | ||
direccion: [{ | ||
valor: String; | ||
codigoPostal: String; | ||
ubicacion: IUbicacion; | ||
ranking: Number; | ||
geoReferencia: { | ||
type: [Number]; // [<longitude>, <latitude>] | ||
index: '2d'; // create the geospatial index | ||
}; | ||
ultimaActualizacion: Date; | ||
activo: Boolean; | ||
}]; | ||
estadoCivil: EstadoCivil; | ||
foto: String; | ||
rol: String; // Ejemplo Jefe de Terapia intensiva | ||
especialidad: [{ // El listado de sus especialidades | ||
id: string; | ||
nombre: String; | ||
}]; | ||
matriculas: [{ | ||
numero: Number; | ||
descripcion: String; | ||
fechaInicio: Date; | ||
fechaVencimiento: Date; | ||
activo: Boolean; | ||
}]; | ||
formacionGrado: [{ | ||
exportadoSisa?: Boolean; | ||
profesion: { | ||
nombre: string; | ||
codigo: number; | ||
tipoDeFormacion: String; | ||
}; | ||
entidadFormadora: { | ||
nombre: string; | ||
codigo: number; | ||
}; | ||
titulo: string; | ||
fechaEgreso: Date; | ||
fechaTitulo: Date; | ||
renovacion: boolean; | ||
papelesVerificados: boolean; | ||
matriculacion?: [{ | ||
matriculaNumero: Number; | ||
libro: String; | ||
folio: String; | ||
inicio: Date; | ||
baja: { | ||
motivo: String; | ||
fecha: any; | ||
}; | ||
notificacionVencimiento: Boolean; | ||
fin: Date; | ||
revalidacionNumero: Number; | ||
}]; | ||
matriculado: boolean; | ||
fechaDeInscripcion?: Date; | ||
}]; | ||
profesionalMatriculado: Boolean; | ||
profesionExterna: any; | ||
matriculaExterna: String; | ||
} |
Oops, something went wrong.