Skip to content

Commit

Permalink
MPI - Actualización select género (#1934)
Browse files Browse the repository at this point in the history
* feat(MPI-434): Actualización select género

* ref(MPI): nuevo combo de genero en esquema paciente

---------

Co-authored-by: aldoEMatamala <[email protected]>
Co-authored-by: laucharin <[email protected]>
  • Loading branch information
3 people authored Sep 25, 2024
1 parent fbf8682 commit d67741b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core-v2/mpi/paciente/paciente.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as mongoose from 'mongoose';
import * as moment from 'moment';
import { Matching } from '@andes/match';
import { AuditPlugin } from '@andes/mongoose-plugin-audit';
import { ESTADO, ESTADOCIVIL, SEXO, IDENTIFICACION } from '../../../shared/constantes';
import { ESTADO, ESTADOCIVIL, SEXO, IDENTIFICACION, GENERO } from '../../../shared/constantes';
import { NombreSchema, DireccionSchema, ContactoSchema, NombreSchemaV2 } from '../../../shared/schemas';
import { FinanciadorSchema } from '../financiador/financiador.schema';
import { ParentescoSchema } from '../parentesco/parentesco.schema';
Expand Down Expand Up @@ -63,7 +63,7 @@ export const PacienteSchema: mongoose.Schema = new mongoose.Schema({
lugar: { type: String }
},
sexo: SEXO,
genero: SEXO,
genero: GENERO,
fechaFallecimiento: Date,
estadoCivil: ESTADOCIVIL,
fotoId: mongoose.Schema.Types.ObjectId,
Expand Down
6 changes: 6 additions & 0 deletions shared/constantes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ export const SEXO = {
enum: ['femenino', 'masculino', 'otro']
};

export const GENERO = {
type: String,
required: true,
enum: ['mujer', 'mujer trans', 'varon', 'varon trans', 'no binario', 'travesti', 'masculinidad trans', 'femenino', 'masculino', 'otro']
};

export const ESTADOCIVIL = {
type: String,
enum: ['casado', 'separado', 'divorciado', 'viudo', 'soltero', 'concubino', 'otro', null]
Expand Down

0 comments on commit d67741b

Please sign in to comment.