feat/role-check: updat flow for input encounter
This commit is contained in:
@@ -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: [],
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user