Merge branch 'dev' into feat/procedure-room-order
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { type Base, genBase } from "./_base"
|
||||
import type { AntibioticSrc } from "./antibiotic-src"
|
||||
|
||||
export interface AntibioticInUse extends Base {
|
||||
mcuOrder_id: number
|
||||
antibioticSrc_code: string
|
||||
antibioticSrc: AntibioticSrc
|
||||
}
|
||||
|
||||
export function genDevice(): Pick<AntibioticInUse, 'mcuOrder_id' | 'antibioticSrc_code'> {
|
||||
return {
|
||||
...genBase(),
|
||||
mcuOrder_id: 0,
|
||||
antibioticSrc_code: ''
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import { type Base, genBase } from "./_base"
|
||||
|
||||
export interface AntibioticSrcCategory extends Base {
|
||||
code: string
|
||||
name: string
|
||||
}
|
||||
|
||||
export function genDevice(): AntibioticSrcCategory {
|
||||
return {
|
||||
...genBase(),
|
||||
code: '',
|
||||
name: '',
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import { type Base, genBase } from "./_base"
|
||||
|
||||
export interface AntibioticSrc extends Base {
|
||||
code: string
|
||||
name: string
|
||||
antibioticSrcCategory_code: string
|
||||
}
|
||||
|
||||
export function genDevice(): AntibioticSrc {
|
||||
return {
|
||||
...genBase(),
|
||||
code: '',
|
||||
name: '',
|
||||
antibioticSrcCategory_code: ''
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import { type Base, genBase } from "./_base"
|
||||
import type { AntibioticInUse } from "./antibiotic-in-use"
|
||||
import { type Doctor, genDoctor } from "./doctor"
|
||||
import type { McuOrderItem } from "./mcu-order-item"
|
||||
|
||||
@@ -13,6 +14,7 @@ export interface McuOrder extends Base {
|
||||
temperature?: number
|
||||
mcuUrgencyLevel_code?: string
|
||||
items: McuOrderItem[]
|
||||
antibioticInUseItems: AntibioticInUse[]
|
||||
}
|
||||
|
||||
export function genMcuOrder(): McuOrder {
|
||||
@@ -23,7 +25,8 @@ export function genMcuOrder(): McuOrder {
|
||||
doctor: genDoctor(),
|
||||
specimenPickTime: '',
|
||||
examinationDate: '',
|
||||
items: []
|
||||
items: [],
|
||||
antibioticInUseItems: [],
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user