-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(FEAT) ABM de restricción por paciente #68
Open
JuanIRamirez
wants to merge
2
commits into
master
Choose a base branch
from
MONIT-60
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remover comentario! |
||
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; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cambiar any por Date |
||
}; | ||
notificacionVencimiento: Boolean; | ||
fin: Date; | ||
revalidacionNumero: Number; | ||
}]; | ||
matriculado: boolean; | ||
fechaDeInscripcion?: Date; | ||
}]; | ||
profesionalMatriculado: Boolean; | ||
profesionExterna: any; | ||
matriculaExterna: String; | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Como tipo hace referencia a "celular, fijo o email" se puede cambiar su declaración por string en vez de any