feat (ambulatory): add checking class for chemo

This commit is contained in:
dpurbosakti
2025-10-05 12:24:08 +07:00
parent 10ef340d63
commit 1370edcd39
2 changed files with 5 additions and 4 deletions
@@ -58,9 +58,10 @@ const (
CSCPLab CheckupScopeCode = "pa-lab" // Patology Anatomy Laboratorium
CSCRad CheckupScopeCode = "radiology" // Radiology
ACCReg AmbulatoryClassCode = "reg" // Regular
ACCRme AmbulatoryClassCode = "rme" // Rehab Medik
ACCChe AmbulatoryClassCode = "chemo" // Chemotherapy
ACCReg AmbulatoryClassCode = "reg" // Regular
ACCRme AmbulatoryClassCode = "rme" // Rehab Medik
ACCCad AmbulatoryClassCode = "chemo-adm" // Chemotherapy
ACCCac AmbulatoryClassCode = "chemo-act" // Chemotherapy
ICCIp InpatientClassCode = "ip" // Regular Rawat Inap
ICCICU InpatientClassCode = "icu" // ICU
@@ -28,7 +28,7 @@ func CheckClassCode(input *string) (ere.AmbulatoryClassCode, error) {
if input != nil {
subCode := ere.AmbulatoryClassCode(*input)
switch subCode {
case ere.ACCReg, ere.ACCRme:
case ere.ACCReg, ere.ACCRme, ere.ACCCad, ere.ACCCac:
return subCode, nil
default:
return "", errors.New("unknown sub class code")