Merge branch 'dev' into fe-prescription-56
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import { type Base, genBase } from './_base'
|
||||
|
||||
import type { Employee } from './employee'
|
||||
export interface DivisionPosition extends Base {
|
||||
code: string
|
||||
name: string
|
||||
headStatus?: boolean
|
||||
division_id: number
|
||||
employee_id?: number
|
||||
|
||||
employee?: Employee | null
|
||||
}
|
||||
|
||||
export function genDivisionPosition(): DivisionPosition {
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
import { type Base, genBase } from "./_base"
|
||||
|
||||
import { type Base, genBase } from './_base'
|
||||
import type { DivisionPosition } from './division-position'
|
||||
export interface Division extends Base {
|
||||
code: string
|
||||
name: string
|
||||
parent_id?: number | null
|
||||
childrens?: Division[] | null
|
||||
|
||||
// preload
|
||||
divisionPosition?: DivisionPosition[] | null
|
||||
}
|
||||
|
||||
export function genDivision(): Division {
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
import { type Base, genBase } from './_base'
|
||||
import type { Employee } from './employee'
|
||||
|
||||
export interface InstallationPosition extends Base {
|
||||
installation_id: number
|
||||
code: string
|
||||
name: string
|
||||
headStatus?: boolean
|
||||
employee_id?: number
|
||||
|
||||
employee?: Employee | null
|
||||
}
|
||||
|
||||
export function genInstallationPosition(): InstallationPosition {
|
||||
return {
|
||||
...genBase(),
|
||||
installation_id: 0,
|
||||
code: '',
|
||||
name: '',
|
||||
headStatus: false,
|
||||
employee_id: 0,
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,18 @@
|
||||
import { type Base, genBase } from "./_base"
|
||||
import { type Doctor, genDoctor } from "./doctor"
|
||||
import type { McuOrderItem } from "./mcu-order-item"
|
||||
|
||||
export interface McuOrder extends Base {
|
||||
encounter_id: number
|
||||
doctor_id: number
|
||||
doctor: Doctor
|
||||
status_code?: string
|
||||
specimenPickTime: string
|
||||
examinationDate: string
|
||||
number?: number
|
||||
temperature?: number
|
||||
mcuUrgencyLevel_code?: string
|
||||
items: McuOrderItem[]
|
||||
}
|
||||
|
||||
export function genMcuOrder(): McuOrder {
|
||||
@@ -16,8 +20,10 @@ export function genMcuOrder(): McuOrder {
|
||||
...genBase(),
|
||||
encounter_id: 0,
|
||||
doctor_id: 0,
|
||||
doctor: genDoctor(),
|
||||
specimenPickTime: '',
|
||||
examinationDate: ''
|
||||
examinationDate: '',
|
||||
items: []
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
import { type Base, genBase } from './_base'
|
||||
import type { Employee } from './employee'
|
||||
|
||||
export interface SpecialistPosition extends Base {
|
||||
specialist_id: number
|
||||
code: string
|
||||
name: string
|
||||
headStatus?: boolean
|
||||
employee_id?: number
|
||||
employee?: Employee | null
|
||||
}
|
||||
|
||||
export function genSpecialistPosition(): SpecialistPosition {
|
||||
return {
|
||||
...genBase(),
|
||||
specialist_id: 0,
|
||||
code: '',
|
||||
name: '',
|
||||
headStatus: false,
|
||||
employee_id: 0,
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,12 @@
|
||||
import { type Base, genBase } from "./_base"
|
||||
import { type Base, genBase } from './_base'
|
||||
import type { Unit } from './unit'
|
||||
import type { Subspecialist } from "./subspecialist"
|
||||
|
||||
export interface Specialist extends Base {
|
||||
code: string
|
||||
name: string
|
||||
unit_id?: number | string | null
|
||||
unit?: Unit | null
|
||||
subspecialists?: Subspecialist[]
|
||||
}
|
||||
|
||||
export function genSpecialist(): Specialist {
|
||||
@@ -11,6 +14,6 @@ export function genSpecialist(): Specialist {
|
||||
...genBase(),
|
||||
code: '',
|
||||
name: '',
|
||||
unit_id: 0
|
||||
unit_id: 0,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
import { type Base, genBase } from './_base'
|
||||
import type { Employee } from './employee'
|
||||
import type { Subspecialist } from './subspecialist'
|
||||
|
||||
export interface SubSpecialistPosition extends Base {
|
||||
subspecialist_id: number
|
||||
code: string
|
||||
name: string
|
||||
headStatus?: boolean
|
||||
employee_id?: number
|
||||
|
||||
subspecialist?: Subspecialist | null
|
||||
employee?: Employee | null
|
||||
}
|
||||
|
||||
export function genSubSpecialistPosition(): SubSpecialistPosition {
|
||||
return {
|
||||
...genBase(),
|
||||
subspecialist_id: 0,
|
||||
code: '',
|
||||
name: '',
|
||||
headStatus: false,
|
||||
employee_id: 0,
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,11 @@
|
||||
import { type Base, genBase } from "./_base"
|
||||
|
||||
import { type Base, genBase } from './_base'
|
||||
import { type Specialist } from './specialist'
|
||||
export interface Subspecialist extends Base {
|
||||
code: string
|
||||
name: string
|
||||
specialist_id?: number | string | null
|
||||
|
||||
specialist?: Specialist | null
|
||||
}
|
||||
|
||||
export function genSubspecialist(): Subspecialist {
|
||||
@@ -11,6 +13,6 @@ export function genSubspecialist(): Subspecialist {
|
||||
...genBase(),
|
||||
code: '',
|
||||
name: '',
|
||||
specialist_id: 0
|
||||
specialist_id: 0,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
import { type Base, genBase } from './_base'
|
||||
import type { Employee } from './employee'
|
||||
|
||||
export interface UnitPosition extends Base {
|
||||
unit_id: number
|
||||
code: string
|
||||
name: string
|
||||
headStatus?: boolean
|
||||
employee_id?: number
|
||||
|
||||
employee?: Employee | null
|
||||
}
|
||||
|
||||
export function genUnitPosition(): UnitPosition {
|
||||
return {
|
||||
...genBase(),
|
||||
unit_id: 0,
|
||||
code: '',
|
||||
name: '',
|
||||
headStatus: false,
|
||||
employee_id: 0,
|
||||
}
|
||||
}
|
||||
+4
-2
@@ -1,9 +1,11 @@
|
||||
import { type Base, genBase } from "./_base"
|
||||
|
||||
import { type Base, genBase } from './_base'
|
||||
import { type Installation } from '~/models/installation'
|
||||
export interface Unit extends Base {
|
||||
code: string
|
||||
name: string
|
||||
installation_id?: number | string | null
|
||||
|
||||
installation?: Installation | null
|
||||
}
|
||||
|
||||
export function genUnit(): Unit {
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
export interface VclaimSepData {
|
||||
letterDate: string
|
||||
letterNumber: string
|
||||
serviceType: string
|
||||
flow: string
|
||||
medicalRecordNumber: string
|
||||
patientName: string
|
||||
cardNumber: string
|
||||
controlLetterNumber: string
|
||||
controlLetterDate: string
|
||||
clinicDestination: string
|
||||
attendingDoctor: string
|
||||
diagnosis: string
|
||||
careClass: string
|
||||
}
|
||||
Reference in New Issue
Block a user