Merge branch 'dev' of github.com:dikstub-rssa/simrs-fe into feat/laporan-tindakan-185
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: ''
|
||||
}
|
||||
}
|
||||
+20
-3
@@ -1,10 +1,27 @@
|
||||
export interface Infra {
|
||||
id?: number
|
||||
import { type Base, genBase } from "./_base";
|
||||
import { genProcedureRoom, type ProcedureRoom } from "./procedure-room";
|
||||
|
||||
export interface Infra extends Base {
|
||||
code: string
|
||||
name: string
|
||||
infraGroup_code: string
|
||||
parent_id?: number | string | null
|
||||
unit_id?: number | string | null
|
||||
specialist_id?: number | string | null
|
||||
subspecialist_id?: number | string | null
|
||||
unit_id?: number | string | null
|
||||
procedureRoom?: ProcedureRoom
|
||||
}
|
||||
|
||||
export function genInfra(): Infra {
|
||||
return {
|
||||
...genBase(),
|
||||
code: '',
|
||||
name: '',
|
||||
infraGroup_code: '',
|
||||
parent_id: null,
|
||||
unit_id: null,
|
||||
specialist_id: null,
|
||||
subspecialist_id: null,
|
||||
procedureRoom: genProcedureRoom(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
import { type Base, genBase } from "./_base"
|
||||
|
||||
export interface MaterialPackageItem extends Base {
|
||||
materialPackage_code: string
|
||||
material_code: string
|
||||
}
|
||||
|
||||
export function genMaterialPackage(): MaterialPackageItem {
|
||||
return {
|
||||
...genBase(),
|
||||
materialPackage_code: '',
|
||||
material_code: '',
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import { type Base, genBase } from "./_base"
|
||||
|
||||
export interface MaterialPackage extends Base {
|
||||
code: string
|
||||
name: string
|
||||
}
|
||||
|
||||
export function genMaterialPackage(): MaterialPackage {
|
||||
return {
|
||||
...genBase(),
|
||||
code: '',
|
||||
name: '',
|
||||
}
|
||||
}
|
||||
@@ -2,16 +2,33 @@ import { type Base, genBase } from "./_base"
|
||||
|
||||
export interface McuOrderItem extends Base {
|
||||
mcuOrder_id: number
|
||||
mcuSrc_id: number
|
||||
mcuSrc_code: string
|
||||
note?: string
|
||||
examinationDate?: string
|
||||
result?: string
|
||||
status_code?: string
|
||||
}
|
||||
|
||||
export interface CreateDto {
|
||||
mcuOrder_id: number
|
||||
mcuSrc_code: string
|
||||
note?: string
|
||||
}
|
||||
|
||||
export interface ReadList {
|
||||
'mcu-order-id'?: number
|
||||
'mcu-src-code'?: string
|
||||
includes?: string
|
||||
}
|
||||
|
||||
export interface UpdateDto extends CreateDto {
|
||||
id: number
|
||||
}
|
||||
|
||||
export function genMcuOrderItem(): McuOrderItem {
|
||||
return {
|
||||
...genBase(),
|
||||
mcuOrder_id: 0,
|
||||
mcuSrc_id: 0,
|
||||
mcuSrc_code: '',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { type Base, genBase } from "./_base"
|
||||
|
||||
export interface McuOrderSubItem extends Base {
|
||||
mcuSubSrc_id: number
|
||||
mcuOrderItem_id: number
|
||||
mcuSubSrc_code: string
|
||||
result?: string
|
||||
status_code?: string
|
||||
}
|
||||
@@ -10,7 +10,7 @@ export interface McuOrderSubItem extends Base {
|
||||
export function genMcuOrderSubItem(): McuOrderSubItem {
|
||||
return {
|
||||
...genBase(),
|
||||
mcuSubSrc_id: 0,
|
||||
mcuOrderItem_id: 0,
|
||||
mcuSubSrc_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: [],
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
import { type Base, genBase } from "./_base"
|
||||
import { genDoctor, type Doctor } from "./doctor"
|
||||
import { genEncounter, type Encounter } from "./encounter"
|
||||
import { genSpecialist, type Specialist } from "./specialist"
|
||||
import { genSubspecialist, type Subspecialist } from "./subspecialist"
|
||||
import { genUnit, type Unit } from "./unit"
|
||||
|
||||
export interface Prb extends Base {
|
||||
encounter_id: number
|
||||
encounter: Encounter
|
||||
unit_id: number
|
||||
unit: Unit
|
||||
specialist_id: number
|
||||
specialist: Specialist
|
||||
subspecialist_id: number
|
||||
subspecialist: Subspecialist
|
||||
doctor_id: number
|
||||
doctor: Doctor
|
||||
date: ''
|
||||
}
|
||||
|
||||
export function genPrb(): Prb {
|
||||
return {
|
||||
...genBase(),
|
||||
encounter_id: 0,
|
||||
encounter: genEncounter(),
|
||||
unit_id: 0,
|
||||
unit: genUnit(),
|
||||
specialist_id: 0,
|
||||
specialist: genSpecialist(),
|
||||
subspecialist_id: 0,
|
||||
subspecialist: genSubspecialist(),
|
||||
doctor_id: 0,
|
||||
doctor: genDoctor(),
|
||||
date: ''
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
import { type Base, genBase } from "./_base";
|
||||
import { genMaterialPackage, type MaterialPackage } from "./material-package";
|
||||
import { genProcedureRoom, type ProcedureRoom } from "./procedure-room";
|
||||
|
||||
export interface ProcedureRoomOrderItem extends Base {
|
||||
procedureRoomOrder_id: number
|
||||
procedureRoom_code: string
|
||||
procedureRoom: ProcedureRoom
|
||||
}
|
||||
|
||||
export interface CreateDto {
|
||||
procedureRoomOrder_id: number
|
||||
procedureRoom_code: string
|
||||
}
|
||||
|
||||
export interface UpdateDto extends CreateDto {
|
||||
note?: string
|
||||
}
|
||||
|
||||
export function genProcedureRoomOrderItem(): ProcedureRoomOrderItem {
|
||||
return {
|
||||
...genBase(),
|
||||
procedureRoomOrder_id: 0,
|
||||
procedureRoom_code: '',
|
||||
procedureRoom: genProcedureRoom(),
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
import { type Base, genBase } from "./_base";
|
||||
import { genMaterialPackage, type MaterialPackage } from "./material-package";
|
||||
import { genProcedureRoom, type ProcedureRoom } from "./procedure-room";
|
||||
|
||||
export interface ProcedureRoomOrder extends Base {
|
||||
encounter_id: number
|
||||
materialPackage_code?: string
|
||||
materialPackage: MaterialPackage
|
||||
items?: ProcedureRoom[]
|
||||
}
|
||||
|
||||
export interface CreateDto {
|
||||
encounter_id: number
|
||||
}
|
||||
|
||||
export function genProcedureRoomOrder(): ProcedureRoomOrder {
|
||||
return {
|
||||
...genBase(),
|
||||
encounter_id: 0,
|
||||
materialPackage_code: '',
|
||||
materialPackage: genMaterialPackage(),
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
import { type Base, genBase } from "./_base";
|
||||
import type { Infra } from "./infra";
|
||||
|
||||
export interface ProcedureRoom extends Base {
|
||||
code: string
|
||||
infra_code: string
|
||||
infra?: Infra
|
||||
type_code: string
|
||||
unit_code: string
|
||||
specialist_code?: string | null
|
||||
subspecialist_code?: string | null
|
||||
}
|
||||
|
||||
export function genProcedureRoom(): ProcedureRoom {
|
||||
return {
|
||||
...genBase(),
|
||||
code: '',
|
||||
infra_code: '',
|
||||
type_code: '',
|
||||
unit_code: '',
|
||||
specialist_code: null,
|
||||
subspecialist_code: null,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
import { type Base, genBase } from "./_base"
|
||||
import { genDoctor, type Doctor } from "./doctor"
|
||||
import { genEncounter, type Encounter } from "./encounter"
|
||||
import { genSpecialist, type Specialist } from "./specialist"
|
||||
import { genSubspecialist, type Subspecialist } from "./subspecialist"
|
||||
import { genUnit, type Unit } from "./unit"
|
||||
|
||||
export interface VaccineData extends Base {
|
||||
encounter_id: number
|
||||
encounter: Encounter
|
||||
unit_id: number
|
||||
unit: Unit
|
||||
specialist_id: number
|
||||
specialist: Specialist
|
||||
subspecialist_id: number
|
||||
subspecialist: Subspecialist
|
||||
doctor_id: number
|
||||
doctor: Doctor
|
||||
date: ''
|
||||
}
|
||||
|
||||
export function genVaccineData(): VaccineData {
|
||||
return {
|
||||
...genBase(),
|
||||
encounter_id: 0,
|
||||
encounter: genEncounter(),
|
||||
unit_id: 0,
|
||||
unit: genUnit(),
|
||||
specialist_id: 0,
|
||||
specialist: genSpecialist(),
|
||||
subspecialist_id: 0,
|
||||
subspecialist: genSubspecialist(),
|
||||
doctor_id: 0,
|
||||
doctor: genDoctor(),
|
||||
date: ''
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user