feat (ambulatory): add checking class for chemo
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user