feat/role-check: updat flow for input encounter

This commit is contained in:
2025-12-15 12:10:04 +07:00
parent 49ffad1dde
commit bd48cc5907
13 changed files with 1163 additions and 499 deletions
+15
View File
@@ -5,6 +5,10 @@ import type { EncounterDocument } from "./encounter-document"
import type { InternalReference } from "./internal-reference"
import type { Nurse } from "./nurse"
import { type Patient, genPatient } from "./patient"
import type { Person } from "./person"
import type { PersonAddress } from "./person-address"
import type { PersonContact } from "./person-contact"
import type { PersonRelative } from "./person-relative"
import type { Specialist } from "./specialist"
import type { Subspecialist } from "./subspecialist"
import { genUnit, type Unit } from "./unit"
@@ -45,6 +49,16 @@ export interface Encounter {
encounterDocuments: EncounterDocument[]
}
export interface CreateDtoWithPatient {
encounter: Encounter
patient: {
person: Person
personAddresses: PersonAddress[]
personContacts: PersonContact[]
personRelatives: PersonRelative[]
}
}
export function genEncounter(): Encounter {
return {
id: 0,
@@ -62,6 +76,7 @@ export function genEncounter(): Encounter {
medicalDischargeEducation: '',
status_code: '',
encounterDocuments: [],
}
}