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