Skip to content

Commit

Permalink
Merge pull request #108 from nginformatica/fix/change-consultation-type
Browse files Browse the repository at this point in the history
fix: add doctor infos
  • Loading branch information
jacksjm authored May 9, 2024
2 parents bb739ea + 007e6d2 commit 13935e6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quirons-broker",
"version": "0.0.1-alpha.124",
"version": "0.0.1-alpha.125",
"description": "A small library to expose the broker types",
"main": "index.ts",
"typings": "index.d.ts",
Expand Down
26 changes: 22 additions & 4 deletions src/ttalk/schemas/MedicalConsultation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ const ExamInfo = t.intersection([
/** Descrição do Exame */
examDescription: t.string,
/** Indicativo de Referência */
referentialExam: t.string
referentialExam: t.string,
/** Nome do Médico */
doctor: t.string,
/** CRM do Médico */
crm: t.string,
/** Estado do CRM */
state: t.string,
}),
t.partial({
/** Indicativo de Anormalidade */
Expand All @@ -24,7 +30,9 @@ const ExamInfo = t.intersection([
/** Tivo de Alteração */
alterationType: t.string,
/** Alteração Ocupacioanl */
occupationalActivity: t.string
occupationalActivity: t.string,
/** Credenciado */
accredited: t.string,
})
])
export const MedicalConsultationInfo = t.intersection([
Expand All @@ -38,7 +46,15 @@ export const MedicalConsultationInfo = t.intersection([
/** Natureza do ASO */
type: t.string,
/** Data Prevista da Consulta */
expectedDate: datetime
expectedDate: datetime,
/** Nome do Médico */
doctor: t.string,
/** CRM do Médico */
crm: t.string,
/** Estado do CRM */
state: t.string,
/** Motivo da Consulta */
reason: t.string,
}),
t.partial({
/** Data de Cancelamento */
Expand All @@ -52,7 +68,9 @@ export const MedicalConsultationInfo = t.intersection([
/** Lista de Exames */
examList: t.array(ExamInfo),
/** Chave única do registro */
erpId: t.string
erpId: t.string,
/** Credenciado */
accredited: t.string,
})
])
export type MedicalConsultationInfo = t.TypeOf<typeof MedicalConsultationInfo>
Expand Down

0 comments on commit 13935e6

Please sign in to comment.