This commit is contained in:
dpurbosakti
2025-09-04 19:43:33 +07:00
parent 8e6d2679e5
commit 56d9513dd7
74 changed files with 4041 additions and 753 deletions

No files matched your search

@@ -1,22 +1,23 @@
package organization
type (
EmployeePosisitionCode string
ItemGroupCode string
InfraGroupCode string
UnitTypeCode string
DoctorFeeTypeCode string
UserPosisitionCode string
ItemGroupCode string
InfraGroupCode string
UnitTypeCode string
DoctorFeeTypeCode string
)
const (
EPCDoc EmployeePosisitionCode = "doctor" // Dokter
EPCNur EmployeePosisitionCode = "nurse" // Perawat
EPCNut EmployeePosisitionCode = "nutritionist" // Ahli gizi
EPCLab EmployeePosisitionCode = "laborant" // Laboran
EPCPha EmployeePosisitionCode = "pharmacy" // Farmasi
EPCPay EmployeePosisitionCode = "payment" // Pembayaran
EPCPav EmployeePosisitionCode = "payment-verificator" // Konfirmasi pembayaran
EPCMan EmployeePosisitionCode = "management" // Manajemen
UPCDoc UserPosisitionCode = "doctor" // Dokter
UPCNur UserPosisitionCode = "nurse" // Perawat
UPCNut UserPosisitionCode = "nutritionist" // Ahli gizi
UPCLab UserPosisitionCode = "laborant" // Laboran
UPCPha UserPosisitionCode = "pharmacy" // Farmasi
UPCPay UserPosisitionCode = "payment" // Pembayaran
UPCPav UserPosisitionCode = "payment-verificator" // Konfirmasi pembayaran
UPCMan UserPosisitionCode = "management" // Manajemen
UPCInt UserPosisitionCode = "specialist-intern" // PPDS
ITGCInfra ItemGroupCode = "infra"
ITGCMedicine ItemGroupCode = "medicine"
+158 -158
View File
@@ -111,180 +111,180 @@ const (
RCOther RelationshipCode = "other" // Lainnya
)
func GetGenderCodes() map[GenderCode]string {
return map[GenderCode]string{
GCMale: "Laki-laki",
GCFemale: "Perempuan",
GCNotStated: "Tidak disebutkan",
GCUnknown: "Tidak diketahui",
}
}
// func GetGenderCodes() map[GenderCode]string {
// return map[GenderCode]string{
// GCMale: "Laki-laki",
// GCFemale: "Perempuan",
// GCNotStated: "Tidak disebutkan",
// GCUnknown: "Tidak diketahui",
// }
// }
func GetBloodTypeCodes() map[BloodTypeCode]string {
return map[BloodTypeCode]string{
BTCAPositive: "A Positive",
BTCANegative: "A Negative",
BTCABPositive: "AB Positive",
BTCABNegative: "AB Negative",
BTCBPositive: "B Positive",
BTCBNegative: "B Negative",
BTCOPositive: "O Positive",
BTCONegative: "O Negative",
}
}
// func GetBloodTypeCodes() map[BloodTypeCode]string {
// return map[BloodTypeCode]string{
// BTCAPositive: "A Positive",
// BTCANegative: "A Negative",
// BTCABPositive: "AB Positive",
// BTCABNegative: "AB Negative",
// BTCBPositive: "B Positive",
// BTCBNegative: "B Negative",
// BTCOPositive: "O Positive",
// BTCONegative: "O Negative",
// }
// }
func GetMaritalStatusCodes() map[MaritalStatusCode]string {
return map[MaritalStatusCode]string{
MSCBelumKawin: "Belum Kawin",
MSCKawin: "Kawin",
MSCCeraiHidup: "Cerai Hidup",
MSCCeraiMati: "Cerai Mati",
}
}
// func GetMaritalStatusCodes() map[MaritalStatusCode]string {
// return map[MaritalStatusCode]string{
// MSCBelumKawin: "Belum Kawin",
// MSCKawin: "Kawin",
// MSCCeraiHidup: "Cerai Hidup",
// MSCCeraiMati: "Cerai Mati",
// }
// }
func GetReligionCodes() map[ReligionCode]string {
return map[ReligionCode]string{
RCIslam: "Islam",
RCProtestan: "Kristen (Protestan)",
RCKatolik: "Katolik",
RCHindu: "Hindu",
RCBudha: "Budha",
RCKonghucu: "Konghucu",
}
}
// func GetReligionCodes() map[ReligionCode]string {
// return map[ReligionCode]string{
// RCIslam: "Islam",
// RCProtestan: "Kristen (Protestan)",
// RCKatolik: "Katolik",
// RCHindu: "Hindu",
// RCBudha: "Budha",
// RCKonghucu: "Konghucu",
// }
// }
func GetEducationCodes() map[EducationCode]string {
return map[EducationCode]string{
ECTS: "Tidak Sekolah",
ECTK: "TK",
ECSD: "SD",
ECSLTP: "SMP sederajat",
ECSLTA: "SMP sederajat",
ECD1: "D1 sederajat",
ECD2: "D2 sederajat",
ECD3: "D3 sederajat",
ECD4: "D4 sederajat",
ECS1: "S1",
ECS2: "S3",
ECS3: "S3",
}
}
// func GetEducationCodes() map[EducationCode]string {
// return map[EducationCode]string{
// ECTS: "Tidak Sekolah",
// ECTK: "TK",
// ECSD: "SD",
// ECSLTP: "SMP sederajat",
// ECSLTA: "SMP sederajat",
// ECD1: "D1 sederajat",
// ECD2: "D2 sederajat",
// ECD3: "D3 sederajat",
// ECD4: "D4 sederajat",
// ECS1: "S1",
// ECS2: "S3",
// ECS3: "S3",
// }
// }
func GetOcupationCodes() map[OcupationCode]string {
return map[OcupationCode]string{
OCTidakBekerja: "Tidak Bekerja",
OCPns: "PNS",
OCTniPolisi: "Polisi",
OCTni: "TNI",
OCGuru: "Guru",
OCWiraswasta: "Wiraswasta",
OCKarySwasta: "Kary Swasta",
OCLainlain: "Lain-lain",
}
}
// func GetOcupationCodes() map[OcupationCode]string {
// return map[OcupationCode]string{
// OCTidakBekerja: "Tidak Bekerja",
// OCPns: "PNS",
// OCTniPolisi: "Polisi",
// OCTni: "TNI",
// OCGuru: "Guru",
// OCWiraswasta: "Wiraswasta",
// OCKarySwasta: "Kary Swasta",
// OCLainlain: "Lain-lain",
// }
// }
func GetAgeGroupCodes() map[AgeGroupCode]string {
return map[AgeGroupCode]string{
AGCEUnknown: "unknown",
AGCLTE5: "<=5",
AGCEU19: "6-19",
AGCEU29: "20-29",
AGCEU39: "30-39",
AGCEU49: "40-49",
AGCEU59: "50-59",
AGCGE60: ">=60",
}
}
// func GetAgeGroupCodes() map[AgeGroupCode]string {
// return map[AgeGroupCode]string{
// AGCEUnknown: "unknown",
// AGCLTE5: "<=5",
// AGCEU19: "6-19",
// AGCEU29: "20-29",
// AGCEU39: "30-39",
// AGCEU49: "40-49",
// AGCEU59: "50-59",
// AGCGE60: ">=60",
// }
// }
func GetAgeGroupForMedicineCodes() map[AgeGroupForMedicineCode]string {
return map[AgeGroupForMedicineCode]string{
AGMCNew: "new-born",
AGMCInfant: "infant",
AGMCToddler: "toddler",
AGMCKid: "kid",
AGMCAdult: "adult",
}
}
// func GetAgeGroupForMedicineCodes() map[AgeGroupForMedicineCode]string {
// return map[AgeGroupForMedicineCode]string{
// AGMCNew: "new-born",
// AGMCInfant: "infant",
// AGMCToddler: "toddler",
// AGMCKid: "kid",
// AGMCAdult: "adult",
// }
// }
func GetRelativeCodes() map[RelativeCode]string {
return map[RelativeCode]string{
RCMSuami: "Suami",
RCMIstri: "Istri",
RCMAnak: "Anak",
RCMMenantu: "Menantu",
RCMCucu: "Cucu",
RCMOrangTua: "Orang Tua",
RCMMertua: "Mertua",
RCMAdik: "Adik",
RCMKeponakan: "Keponakan",
RCMKakak: "Kakak",
RCMPaman: "Paman",
RCMBibi: "Bibi",
RCMPamanKakek: "Kakek",
RCMPamanNenek: "Nenek",
}
}
// func GetRelativeCodes() map[RelativeCode]string {
// return map[RelativeCode]string{
// RCMSuami: "Suami",
// RCMIstri: "Istri",
// RCMAnak: "Anak",
// RCMMenantu: "Menantu",
// RCMCucu: "Cucu",
// RCMOrangTua: "Orang Tua",
// RCMMertua: "Mertua",
// RCMAdik: "Adik",
// RCMKeponakan: "Keponakan",
// RCMKakak: "Kakak",
// RCMPaman: "Paman",
// RCMBibi: "Bibi",
// RCMPamanKakek: "Kakek",
// RCMPamanNenek: "Nenek",
// }
// }
func GetContactTypeCodes() map[ContactTypeCode]string {
return map[ContactTypeCode]string{
CTPhone: "Telepon",
CTMPhone: "Telepon Seluler",
CTEmail: "Email",
CTFax: "Fax",
}
}
// func GetContactTypeCodes() map[ContactTypeCode]string {
// return map[ContactTypeCode]string{
// CTPhone: "Telepon",
// CTMPhone: "Telepon Seluler",
// CTEmail: "Email",
// CTFax: "Fax",
// }
// }
func GetRelationshipCodes() map[RelationshipCode]string {
return map[RelationshipCode]string{
RCMother: "Ibu",
RCFather: "Ayah",
RCUncle: "Paman",
RCAunt: "Bibi",
RCSibling: "Saudara",
RCGdMother: "Nenek",
RCGdFather: "Kakek",
RCChild: "Anak",
RCNephew: "Keponakan",
RCGdChild: "Cucu",
RCOther: "Lainnya",
}
}
// func GetRelationshipCodes() map[RelationshipCode]string {
// return map[RelationshipCode]string{
// RCMother: "Ibu",
// RCFather: "Ayah",
// RCUncle: "Paman",
// RCAunt: "Bibi",
// RCSibling: "Saudara",
// RCGdMother: "Nenek",
// RCGdFather: "Kakek",
// RCChild: "Anak",
// RCNephew: "Keponakan",
// RCGdChild: "Cucu",
// RCOther: "Lainnya",
// }
// }
func (obj GenderCode) String() string {
return GetGenderCodes()[obj]
}
// func (obj GenderCode) String() string {
// return GetGenderCodes()[obj]
// }
func (obj BloodTypeCode) String() string {
return GetBloodTypeCodes()[obj]
}
// func (obj BloodTypeCode) String() string {
// return GetBloodTypeCodes()[obj]
// }
func (obj MaritalStatusCode) String() string {
return GetMaritalStatusCodes()[obj]
}
// func (obj MaritalStatusCode) String() string {
// return GetMaritalStatusCodes()[obj]
// }
func (obj ReligionCode) String() string {
return GetReligionCodes()[obj]
}
func (obj EducationCode) String() string {
return GetEducationCodes()[obj]
}
// func (obj ReligionCode) String() string {
// return GetReligionCodes()[obj]
// }
// func (obj EducationCode) String() string {
// return GetEducationCodes()[obj]
// }
func (obj OcupationCode) String() string {
return GetOcupationCodes()[obj]
}
// func (obj OcupationCode) String() string {
// return GetOcupationCodes()[obj]
// }
func (obj AgeGroupCode) String() string {
return GetAgeGroupCodes()[obj]
}
// func (obj AgeGroupCode) String() string {
// return GetAgeGroupCodes()[obj]
// }
func (obj RelativeCode) String() string {
return GetRelativeCodes()[obj]
}
// func (obj RelativeCode) String() string {
// return GetRelativeCodes()[obj]
// }
func (obj ContactTypeCode) String() string {
return GetContactTypeCodes()[obj]
}
// func (obj ContactTypeCode) String() string {
// return GetContactTypeCodes()[obj]
// }
func (obj RelationshipCode) String() string {
return GetRelationshipCodes()[obj]
}
// func (obj RelationshipCode) String() string {
// return GetRelationshipCodes()[obj]
// }