feat/trx-order: ref changes for MCU
This commit is contained in:
@@ -28,6 +28,7 @@ type CreateDto struct {
|
||||
Number uint8 `json:"number"`
|
||||
Temperature float64 `json:"temperature"`
|
||||
UrgencyLevel_Code ercl.McuUrgencyLevelCode `json:"urgencyLevel_code"`
|
||||
Scope_Code ercl.McuScopeCode `json:"scope_code"`
|
||||
|
||||
pa.AuthInfo
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@ import (
|
||||
|
||||
ercl "simrs-vx/internal/domain/references/clinical"
|
||||
erc "simrs-vx/internal/domain/references/common"
|
||||
ere "simrs-vx/internal/domain/references/encounter"
|
||||
)
|
||||
|
||||
type McuOrder struct {
|
||||
@@ -23,7 +22,7 @@ type McuOrder struct {
|
||||
Number uint8 `json:"number"`
|
||||
Temperature float64 `json:"temperature"`
|
||||
UrgencyLevel_Code ercl.McuUrgencyLevelCode `json:"urgencyLevel_code" gorm:"not null;size:15"`
|
||||
Scope_Code *ere.CheckupScopeCode `json:"scope_code" gorm:"index;size:10"`
|
||||
Scope_Code ercl.McuScopeCode `json:"scope_code" gorm:"index;size:10"`
|
||||
}
|
||||
|
||||
func (d McuOrder) IsCompleted() bool {
|
||||
|
||||
@@ -3,13 +3,13 @@ package division
|
||||
import (
|
||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||
|
||||
ere "simrs-vx/internal/domain/references/encounter"
|
||||
erc "simrs-vx/internal/domain/references/clinical"
|
||||
)
|
||||
|
||||
type CreateDto struct {
|
||||
Code string `json:"code" validate:"maxLength=20"`
|
||||
Name string `json:"name" validate:"maxLength=50"`
|
||||
Scope_Code *ere.CheckupScopeCode `json:"scope_code" validate:"maxLength=10"`
|
||||
Code string `json:"code" validate:"maxLength=20"`
|
||||
Name string `json:"name" validate:"maxLength=50"`
|
||||
Scope_Code erc.McuScopeCode `json:"scope_code" validate:"maxLength=10"`
|
||||
}
|
||||
|
||||
type ReadListDto struct {
|
||||
@@ -20,10 +20,10 @@ type ReadListDto struct {
|
||||
}
|
||||
|
||||
type FilterDto struct {
|
||||
Code string `json:"code"`
|
||||
Name string `json:"name"`
|
||||
Scope_Code *ere.CheckupScopeCode `json:"scope-code"`
|
||||
Search string `json:"search" gormhelper:"searchColumns=Code,Name"`
|
||||
Code string `json:"code"`
|
||||
Name string `json:"name"`
|
||||
Scope_Code *erc.McuScopeCode `json:"scope-code"`
|
||||
Search string `json:"search" gormhelper:"searchColumns=Code,Name"`
|
||||
}
|
||||
|
||||
type ReadDetailDto struct {
|
||||
@@ -48,9 +48,9 @@ type MetaDto struct {
|
||||
|
||||
type ResponseDto struct {
|
||||
ecore.SmallMain
|
||||
Code string `json:"code"`
|
||||
Name string `json:"name"`
|
||||
Scope_Code *ere.CheckupScopeCode `json:"scope_code"`
|
||||
Code string `json:"code"`
|
||||
Name string `json:"name"`
|
||||
Scope_Code erc.McuScopeCode `json:"scope_code"`
|
||||
}
|
||||
|
||||
func (d McuSrcCategory) ToResponse() ResponseDto {
|
||||
|
||||
@@ -2,12 +2,12 @@ package division
|
||||
|
||||
import (
|
||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||
ere "simrs-vx/internal/domain/references/encounter"
|
||||
erc "simrs-vx/internal/domain/references/clinical"
|
||||
)
|
||||
|
||||
type McuSrcCategory struct {
|
||||
ecore.SmallMain // adjust this according to the needs
|
||||
Code string `json:"code" gorm:"unique;size:20"`
|
||||
Name string `json:"name" gorm:"size:50"`
|
||||
Scope_Code *ere.CheckupScopeCode `json:"scope_code" gorm:"index;size:10"`
|
||||
ecore.SmallMain // adjust this according to the needs
|
||||
Code string `json:"code" gorm:"unique;size:20"`
|
||||
Name string `json:"name" gorm:"size:50"`
|
||||
Scope_Code erc.McuScopeCode `json:"scope_code" gorm:"index;size:10"`
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ type (
|
||||
InstructionCode string
|
||||
HeadToToeCode string
|
||||
McuUrgencyLevelCode string
|
||||
McuScopeCode string
|
||||
SoapiTypeCode string
|
||||
MedicalAction string
|
||||
VehicleTypeCode string
|
||||
@@ -113,6 +114,11 @@ const (
|
||||
MULCPF McuUrgencyLevelCode = "priority-form" // Form Prioritas
|
||||
MULCRT McuUrgencyLevelCode = "routine" // Pemeriksaan Rutin
|
||||
|
||||
MSCRad McuScopeCode = "rad" // Pemeriksaan Rutin
|
||||
MSCCpLab McuScopeCode = "cp-lab" // Pemeriksaan Rutin
|
||||
MSCApLab McuScopeCode = "ap-lab" // Pemeriksaan Rutin
|
||||
MSCMicLab McuScopeCode = "mic-lab" // Pemeriksaan Rutin
|
||||
|
||||
STCEarlyNurse SoapiTypeCode = "early-nurse" // Kajian Awal Medis
|
||||
STCEEarlyMedic SoapiTypeCode = "early-medic" // Kajian Awal Rehab Medis
|
||||
STCEarlyRehab SoapiTypeCode = "early-rehab" // Kajian Awal Rehab Medik
|
||||
|
||||
@@ -8,7 +8,6 @@ type (
|
||||
PersonConditionCode string
|
||||
EmergencyClassCode string
|
||||
OutpatientClassCode string
|
||||
CheckupScopeCode string
|
||||
AmbulatoryClassCode string
|
||||
InpatientClassCode string
|
||||
UploadCode string
|
||||
@@ -64,11 +63,6 @@ const (
|
||||
OCCHcu OutpatientClassCode = "hcu" // HCU
|
||||
OCCVk OutpatientClassCode = "vk" // Verlos kamer
|
||||
|
||||
CSCLab CheckupScopeCode = "lab" // Laboratorium
|
||||
CSCMLab CheckupScopeCode = "mic-lab" // Microbacterial Laboratorium
|
||||
CSCPLab CheckupScopeCode = "pa-lab" // Patology Anatomy Laboratorium
|
||||
CSCRad CheckupScopeCode = "radiology" // Radiology
|
||||
|
||||
ACCReg AmbulatoryClassCode = "reg" // Regular
|
||||
ACCRme AmbulatoryClassCode = "rme" // Rehab Medik
|
||||
ACCCad AmbulatoryClassCode = "chemo-adm" // Chemotherapy
|
||||
|
||||
@@ -28,4 +28,5 @@ func setData[T *e.CreateDto | *e.UpdateDto](input T, data *e.McuOrder) {
|
||||
data.Temperature = inputSrc.Temperature
|
||||
data.UrgencyLevel_Code = inputSrc.UrgencyLevel_Code
|
||||
data.Doctor_Id = inputSrc.Doctor_Id
|
||||
data.Scope_Code = inputSrc.Scope_Code
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user