一、增加“设备使用登记表”
- 设备使用登记视图View_MachineTestBeforeUse_SterilizationAfterUse,由以下两个表组成。
- MachineTestBeforeUse(设备使用前检测表)。
- MachineSterilizationAfterUse(设备使用后消毒表)。
CREATE TABLE MachineTestBeforeUse
(
[RV] timestamp NOT NULL,
[Id] int IDENTITY(1,1) NOT NULL,
MachineId int NOT NULL,
ShiftCode int NOT NULL,
OperationDateTime datetime NOT NULL,
RemnantTest bit NOT NULL,
SelfTest bit NOT NULL,
[Signature] int NOT NULL,
Comments [nvarchar](255) NULL,
)
CREATE TABLE MachineSterilizationAfterUse
(
[RV] timestamp NOT NULL,
[Id] int IDENTITY(1,1) NOT NULL,
MachineId int NOT NULL,
ShiftCode int NOT NULL,
OperationDateTime datetime NOT NULL,
PatientId int NOT NULL,
Usage bit NOT NULL,
PipeSterilization bit NOT NULL,
SurfaceSterilization bit NOT NULL,
[Signature] int NOT NULL,
Comments [nvarchar](255) NULL,
)