Merge branch 'dev' into feat/encounter
This commit is contained in:
@@ -1,38 +1,232 @@
|
||||
// Package clinical mostly about SOAPI
|
||||
package clinical
|
||||
|
||||
type (
|
||||
SubjectCode string
|
||||
ObjectCode string
|
||||
AssessmentCode string
|
||||
InstructionCode string
|
||||
SubjectCode string
|
||||
ObjectCode string
|
||||
AssessmentCode string
|
||||
PlanCode string
|
||||
InstructionCode string
|
||||
HeadToToeCode string
|
||||
McuUrgencyLevelCode string
|
||||
SoapiTypeCode string
|
||||
MedicalAction string
|
||||
VehicleTypeCode string
|
||||
)
|
||||
|
||||
const (
|
||||
SCPrimaryComplaint SubjectCode = "pri-compl" // Keluhan Utama
|
||||
SCSecComplaint SubjectCode = "sec-compl" // Secondary Complaint
|
||||
SCPrimaryComplain SubjectCode = "pri-complain" // Keluhan Utama
|
||||
SCSecComplain SubjectCode = "sec-complain" // Secondary Complaint
|
||||
SCCurrentDiseaseHistory SubjectCode = "cur-disea-hist" // Current Disease History
|
||||
SCPastDiseaseHistory SubjectCode = "pas-disea-hist" // Past Disease History
|
||||
SCFamilyDiseaseHistory SubjectCode = "fam-disea-hist" // Family Disease History
|
||||
SCAllergyHistory SubjectCode = "alg-hist" // Allergic History
|
||||
SCAllergyReaction SubjectCode = "alg-react" // Allergic Reaction
|
||||
SCMedicationHistory SubjectCode = "med-hist" // Medication History
|
||||
SCBloodType SubjectCode = "blood-type" // Blood Type
|
||||
|
||||
OCConsciousnessLevel ObjectCode = "consc-level" // Tingkat Kesadaran
|
||||
OCConsciousnessLevelDet ObjectCode = "consc-level-det" // Detail Tingkat Kesadaran
|
||||
OCSystolicBloodPressure ObjectCode = "syst-bp" // Tekanan Darah Systolic
|
||||
OCDiastolicBloodPressure ObjectCode = "diast-bp" // Tekanan Darah Diastolic
|
||||
OCHeartRate ObjectCode = "hear-rt" // Detak Jantung
|
||||
OCTemperature ObjectCode = "temp" // Suhu
|
||||
OCSpO2 ObjectCode = "spo2" // SpO2
|
||||
OCWeight ObjectCode = "weight" // Berat Badan
|
||||
OCHeight ObjectCode = "height" // Tinggi Badan
|
||||
OCConsciousnessLevel ObjectCode = "consc-level" // Tingkat Kesadaran
|
||||
OCConsciousnessLevelDet ObjectCode = "consc-level-det" // Detail Tingkat Kesadaran
|
||||
OCSystolicBloodPressure ObjectCode = "syst-bp" // Tekanan Darah Systolic
|
||||
OCDiastolicBloodPressure ObjectCode = "diast-bp" // Tekanan Darah Diastolic
|
||||
OCPulse ObjectCode = "pulse" // Nadi
|
||||
OCRespiratoryRate ObjectCode = "resp-rate" // Pernafasan
|
||||
OCHeartRate ObjectCode = "hear-rt" // Detak Jantung
|
||||
OCNeuroCranialis ObjectCode = "neuro-cranialis" // Neurologist Cranialist
|
||||
OCSensoris ObjectCode = "sensoris" // Sensoris
|
||||
OCReflectFisio ObjectCode = "reflect-fisio" // Refleks Fisiologi
|
||||
OCReflectPato ObjectCode = "reflect-pato" // Refleks Patologi
|
||||
OCAutonomNeuron ObjectCode = "autonom-neuron" // Saraf Otonom
|
||||
OCNeckRom ObjectCode = "neck-rom" // ROM Leher
|
||||
OCBodyRom ObjectCode = "body-rom" // ROM Batang Tubuh
|
||||
OCAgaRom ObjectCode = "aga-rom" // ROM AGA
|
||||
OCAgbRom ObjectCode = "agb-rom" // ROM AGB
|
||||
OCNeckMmt ObjectCode = "neck-mmt" // MMT Leher
|
||||
OCBodyMmt ObjectCode = "body-mmt" // MMT Batang Tubuh
|
||||
OCAgaMmt ObjectCode = "aga-mmt" // MMT AGA
|
||||
OCAgbMmt ObjectCode = "agb-mmt" // MMT AGB
|
||||
OCLocalis ObjectCode = "localis" // Status Lokalis
|
||||
OCMedicalTrouble ObjectCode = "medical-trouble" // Masalah Medis
|
||||
OCRehabMedicTrouble ObjectCode = "rehab-medic-trouble" // Masalah Rehab Medik
|
||||
OCTemperature ObjectCode = "temp" // Suhu
|
||||
OCSpO2 ObjectCode = "spo2" // SpO2
|
||||
OCWeight ObjectCode = "weight" // Berat Badan
|
||||
OCHeight ObjectCode = "height" // Tinggi Badan
|
||||
OCHeadToToe ObjectCode = "head-to-toe" // Kepala Sampai Kaki
|
||||
|
||||
ACEarlyDiag AssessmentCode = "early-diag" // Diagnosis Awal
|
||||
ACLateDiag AssessmentCode = "late-diag" // Diagnosis Akhir
|
||||
ACSecDiag AssessmentCode = "sec-diag" // Diagnosis Sekunder
|
||||
|
||||
ICDetail InstructionCode = "detail" // Detail instruksi
|
||||
ICMedAct InstructionCode = "med-act" // Tindakan medis
|
||||
ICMedication InstructionCode = "medication" // Obat
|
||||
ICMaterial InstructionCode = "material" // BMHP
|
||||
PCPlan PlanCode = "plan" // Rencana
|
||||
|
||||
ICDetail InstructionCode = "detail" // Detail Instruksi
|
||||
ICMedAct InstructionCode = "medical-act" // Tindakan Medis
|
||||
ICSupExam InstructionCode = "supporting-exam" // Pemeriksaan Penunjang
|
||||
ICTherapy InstructionCode = "therapy" // Terapi
|
||||
ICMedication InstructionCode = "medication" // Obat
|
||||
ICMaterial InstructionCode = "material" // BMHP
|
||||
ICREhabProg InstructionCode = "rehab-program" // Program Rehab
|
||||
ICPhyMod InstructionCode = "physic-modal" // Modalitas Fisik
|
||||
ICExcercise InstructionCode = "exercise" // Latihan
|
||||
ICOrtPro InstructionCode = "ortes-protesa" // Ortesa Protesa
|
||||
ICEducation InstructionCode = "education" // Edukasi
|
||||
ICOther InstructionCode = "other" // Lain-lain
|
||||
|
||||
HTTHead HeadToToeCode = "head"
|
||||
HTTEye HeadToToeCode = "eye"
|
||||
HTTEar HeadToToeCode = "ear"
|
||||
HTTNose HeadToToeCode = "nose"
|
||||
HTTMouthThroat HeadToToeCode = "mouth-throat"
|
||||
HTTHeadOthers HeadToToeCode = "head-others"
|
||||
HTTThorax HeadToToeCode = "thorax"
|
||||
HTTHeart HeadToToeCode = "heart"
|
||||
HTTLung HeadToToeCode = "lung"
|
||||
HTTAbdomen HeadToToeCode = "abdomen"
|
||||
HTTLiver HeadToToeCode = "liver"
|
||||
HTTBack HeadToToeCode = "back"
|
||||
HTTEkstremitas HeadToToeCode = "ekstremitas"
|
||||
HTTGender HeadToToeCode = "gender"
|
||||
HTTRectum HeadToToeCode = "rectum"
|
||||
HTTNeuron HeadToToeCode = "neuron"
|
||||
HTTBodyOthers HeadToToeCode = "body-others"
|
||||
|
||||
MULCCITO McuUrgencyLevelCode = "cito" // CITO
|
||||
MULCCITOIGD McuUrgencyLevelCode = "cito-igd" // CITO IGD
|
||||
MULCPonek McuUrgencyLevelCode = "ponek" // PONEK
|
||||
MULCBG McuUrgencyLevelCode = "blood-gas" // Analisa Gas Darah
|
||||
MULCPF McuUrgencyLevelCode = "priority-form" // Form Prioritas
|
||||
MULCRT McuUrgencyLevelCode = "routine" // 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
|
||||
STCFunc SoapiTypeCode = "function" // Assessment Fungsi
|
||||
STCProgress SoapiTypeCode = "progress" // CPPT
|
||||
|
||||
MAChemo MedicalAction = "chemo"
|
||||
MAHemo MedicalAction = "hemo"
|
||||
MAThalasemia MedicalAction = "thalasemia"
|
||||
MAEchocardio MedicalAction = "echocardio"
|
||||
MASpirometry MedicalAction = "spirometry"
|
||||
|
||||
VTCAmbulance VehicleTypeCode = "ambulance" // Ambulans
|
||||
VTCTransport VehicleTypeCode = "transport" // Transport
|
||||
VTCHearse VehicleTypeCode = "hearse" // Jenazah
|
||||
)
|
||||
|
||||
type Soapi struct {
|
||||
Subject SubjectSection `json:"subject"`
|
||||
Object ObjectSection `json:"object"`
|
||||
Assessment AssessmentSection `json:"assessment"`
|
||||
Plan string `json:"plan"`
|
||||
Instruction InstructionSection `json:"instruction"`
|
||||
}
|
||||
|
||||
// ---------------- SUBJECT ----------------
|
||||
type SubjectSection struct {
|
||||
Note string `json:"note,omitempty"`
|
||||
PrimComplain string `json:"prim-compl,omitempty"`
|
||||
SecComplainQ string `json:"sec-compl,omitempty"`
|
||||
PrimaryComplain string `json:"pri-complain,omitempty"`
|
||||
SecondaryComplain string `json:"sec-complain,omitempty"`
|
||||
CurrentDiseaseHistory string `json:"cur-disea-hist,omitempty"`
|
||||
PastDiseaseHistory string `json:"pas-disea-hist,omitempty"`
|
||||
FamilyDiseaseHistory string `json:"fam-disea-hist,omitempty"`
|
||||
AllergyHistory string `json:"alg-hist,omitempty"`
|
||||
AllergyReaction string `json:"alg-react,omitempty"`
|
||||
MedicationHistory string `json:"med-hist,omitempty"`
|
||||
BloodType string `json:"blood-type,omitempty"`
|
||||
}
|
||||
|
||||
// ---------------- OBJECT ----------------
|
||||
type ObjectSection struct {
|
||||
Note string `json:"note,omitempty"`
|
||||
ConsciousnessLevel string `json:"consc-level,omitempty"`
|
||||
ConsciousnessLevelDet string `json:"consc-level-det,omitempty"`
|
||||
SystolicBloodPressure string `json:"syst-bp,omitempty"`
|
||||
DiastolicBloodPressure string `json:"diast-bp,omitempty"`
|
||||
Pulse string `json:"pulse,omitempty"`
|
||||
RespiratoryRate string `json:"resp-rate,omitempty"`
|
||||
HeartRate string `json:"hear-rt,omitempty"`
|
||||
NeuroCranialis string `json:"neuro-cranialis,omitempty"`
|
||||
Sensoris string `json:"sensoris,omitempty"`
|
||||
ReflectFisio string `json:"reflect-fisio,omitempty"`
|
||||
ReflectPato string `json:"reflect-pato,omitempty"`
|
||||
AutonomNeuron string `json:"autonom-neuron,omitempty"`
|
||||
NeckRom string `json:"neck-rom,omitempty"`
|
||||
BodyRom string `json:"body-rom,omitempty"`
|
||||
AgaRom string `json:"aga-rom,omitempty"`
|
||||
AgbRom string `json:"agb-rom,omitempty"`
|
||||
NeckMmt string `json:"neck-mmt,omitempty"`
|
||||
BodyMmt string `json:"body-mmt,omitempty"`
|
||||
AgaMmt string `json:"aga-mmt,omitempty"`
|
||||
AgbMmt string `json:"agb-mmt,omitempty"`
|
||||
Localis string `json:"localis,omitempty"`
|
||||
MedicalTrouble string `json:"medical-trouble,omitempty"`
|
||||
RehabMedicTrouble string `json:"rehab-medic-trouble,omitempty"`
|
||||
Temperature string `json:"temp,omitempty"`
|
||||
SpO2 string `json:"spo2,omitempty"`
|
||||
Weight string `json:"weight,omitempty"`
|
||||
Height string `json:"height,omitempty"`
|
||||
HeadToToe HeadToToe `json:"head-to-toe,omitempty"`
|
||||
}
|
||||
|
||||
// ---------------- ASSESSMENT ----------------
|
||||
type AssessmentSection struct {
|
||||
EarlyDiagnosis DiagnosisDetail `json:"early-diag,omitempty"`
|
||||
LateDiagnosis DiagnosisDetail `json:"late-diag,omitempty"`
|
||||
SecondaryDiag DiagnosisDetail `json:"sec-diag,omitempty"`
|
||||
}
|
||||
|
||||
// nested object {note, codes}
|
||||
type DiagnosisDetail struct {
|
||||
Note string `json:"note,omitempty"`
|
||||
Codes []CodeWithName `json:"codes,omitempty"`
|
||||
}
|
||||
|
||||
// ---------------- INSTRUCTION ----------------
|
||||
type InstructionSection struct {
|
||||
Detail string `json:"detail,omitempty"`
|
||||
MedicalAction CodesWithNote `json:"medical-act,omitempty"`
|
||||
SupportingExam []CodeWithName `json:"supporting-exam,omitempty"`
|
||||
Therapy string `json:"therapy,omitempty"`
|
||||
Medication []CodeWithName `json:"medication,omitempty"`
|
||||
Material []CodeWithName `json:"material,omitempty"`
|
||||
RehabProgram string `json:"rehab-program,omitempty"`
|
||||
PhysicModal string `json:"physic-modal,omitempty"`
|
||||
Exercise string `json:"exercise,omitempty"`
|
||||
OrtesProsthesis string `json:"ortes-protesa,omitempty"`
|
||||
Education string `json:"education,omitempty"`
|
||||
Other string `json:"other,omitempty"`
|
||||
}
|
||||
|
||||
// ---------------- CODES ----------------
|
||||
type CodeWithName struct {
|
||||
Code string `json:"code,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
}
|
||||
type CodesWithNote struct {
|
||||
Note string `json:"note,omitempty"`
|
||||
Codes []CodeWithName `json:"codes,omitempty"`
|
||||
}
|
||||
|
||||
type HeadToToe struct {
|
||||
Head string `json:"head,omitempty"`
|
||||
Eye string `json:"eye,omitempty"`
|
||||
Ear string `json:"ear,omitempty"`
|
||||
Nose string `json:"nose,omitempty"`
|
||||
MouthThroat string `json:"mouth-throat,omitempty"`
|
||||
HeadOthers string `json:"head-others,omitempty"`
|
||||
Thorax string `json:"thorax,omitempty"`
|
||||
Heart string `json:"heart,omitempty"`
|
||||
Lung string `json:"lung,omitempty"`
|
||||
Abdomen string `json:"abdomen,omitempty"`
|
||||
Liver string `json:"liver,omitempty"`
|
||||
Back string `json:"back,omitempty"`
|
||||
Ekstremitas string `json:"ekstremitas,omitempty"`
|
||||
Gender string `json:"gender,omitempty"`
|
||||
Rectum string `json:"rectum,omitempty"`
|
||||
Neuron string `json:"neuron,omitempty"`
|
||||
BodyOthers string `json:"body-others,omitempty"`
|
||||
}
|
||||
|
||||
@@ -1,17 +1,20 @@
|
||||
package common
|
||||
|
||||
type (
|
||||
YaTidakCode byte
|
||||
SudahBelumCode byte
|
||||
AktifSimpelCode byte
|
||||
AktifAdvanceCode byte
|
||||
TersediaCode byte
|
||||
DayCode byte
|
||||
ActiveStatusCode string
|
||||
DataStatusCode string
|
||||
UserStatusCode string
|
||||
TimeUnitCode string
|
||||
PaymentMethodCode string
|
||||
YaTidakCode byte
|
||||
SudahBelumCode byte
|
||||
AktifSimpelCode byte
|
||||
AktifAdvanceCode byte
|
||||
TersediaCode byte
|
||||
DayCode byte
|
||||
ActiveStatusCode string
|
||||
DataStatusCode string
|
||||
UserStatusCode string
|
||||
TimeUnitCode string
|
||||
PaymentMethodCode string
|
||||
DataAvailabilityCode string
|
||||
DataVerifiedCode string
|
||||
CrudCode string
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -61,6 +64,14 @@ const (
|
||||
DSCRejected DataStatusCode = "rejected" // Ditolak
|
||||
DSCSkipped DataStatusCode = "skipped" // Dilewati
|
||||
|
||||
DACReview DataAvailabilityCode = "review" // Konfirmasi
|
||||
DACAvailable DataAvailabilityCode = "available" // Tersedia
|
||||
DACUnavailable DataAvailabilityCode = "unavailable" // Tidak Tersedia
|
||||
|
||||
DVCNew DataVerifiedCode = "new" // Baru
|
||||
DVCVerified DataVerifiedCode = "verified" // Terverifikasi
|
||||
DVCRejected DataVerifiedCode = "rejected" // Ditolak
|
||||
|
||||
USCNew UserStatusCode = "new" // Baru
|
||||
USCActive UserStatusCode = "active" // Aktif
|
||||
USCInactive UserStatusCode = "inactive" // Tidak aktif
|
||||
@@ -81,6 +92,10 @@ const (
|
||||
PMCInsurance PaymentMethodCode = "insurance" // Asuransi
|
||||
PMCMembership PaymentMethodCode = "membership" // Member
|
||||
|
||||
CCCreate CrudCode = "c" // Create
|
||||
CCRead CrudCode = "r" // Read
|
||||
CCUpdate CrudCode = "u" // Update
|
||||
CCDelete CrudCode = "d" // Delete
|
||||
)
|
||||
|
||||
func GetDayCodes() map[DayCode]string {
|
||||
|
||||
@@ -1,25 +1,26 @@
|
||||
package encounter
|
||||
|
||||
type (
|
||||
EncounterClassCode string
|
||||
QueueStatusCode string
|
||||
DischargeMethodCode string
|
||||
TransportationCode string
|
||||
PersonConditionCode string
|
||||
EmergencyClassCode string
|
||||
OutpatientClassCode string
|
||||
CheckupScopeCode string
|
||||
EncounterClassCode string
|
||||
QueueStatusCode string
|
||||
DischargeMethodCode string
|
||||
TransportationCode string
|
||||
PersonConditionCode string
|
||||
EmergencyClassCode string
|
||||
OutpatientClassCode string
|
||||
CheckupScopeCode string
|
||||
AmbulatoryClassCode string
|
||||
InpatientClassCode string
|
||||
UploadCode string
|
||||
ChemoClassCode string
|
||||
AmbulanceFacilityCode string
|
||||
AmbulanceNeedsCode string
|
||||
)
|
||||
|
||||
const (
|
||||
ECOutpatient EncounterClassCode = "outpatient"
|
||||
ECAmbulatory EncounterClassCode = "ambulatory"
|
||||
ECEmergency EncounterClassCode = "emergency"
|
||||
ECInpatient EncounterClassCode = "inpatient"
|
||||
ECDraft EncounterClassCode = "draft"
|
||||
ECDone EncounterClassCode = "done"
|
||||
ECCancel EncounterClassCode = "cancel"
|
||||
ECSkip EncounterClassCode = "skip"
|
||||
ECAmbulatory EncounterClassCode = "ambulatory" // Rawat Jalan
|
||||
ECEmergency EncounterClassCode = "emergency" // Gawat Darurat
|
||||
ECInpatient EncounterClassCode = "inpatient" // Rawat Inap
|
||||
|
||||
QSCWait QueueStatusCode = "wait" // Tunggu
|
||||
QSCProc QueueStatusCode = "proc" // Proses
|
||||
@@ -27,19 +28,29 @@ const (
|
||||
QSCCancel QueueStatusCode = "cancel" // Dibatalkan
|
||||
QSCSkip QueueStatusCode = "skip" // Dilewati
|
||||
|
||||
DMCHome DischargeMethodCode = "home" // Rumah
|
||||
DMCHomeReq DischargeMethodCode = "home-request" // Rumah (Dibutuhkan)
|
||||
DMCHome DischargeMethodCode = "home" // Pulang
|
||||
DMCHomeReq DischargeMethodCode = "home-request" // Pulang Atas Permintaan Sendiri
|
||||
DMCConsulBack DischargeMethodCode = "consul-back" // Konsultasi Balik / Lanjutan
|
||||
DMCConsulPoly DischargeMethodCode = "consul-poly" // Konsultasi Poliklinik Lain
|
||||
DMCConsulExecutive DischargeMethodCode = "consul-executive" // Konsultasi Antar Dokter Eksekutif
|
||||
DMCConsulChDay DischargeMethodCode = "consul-ch-day" // Konsultasi Hari Lain
|
||||
DMCEmergency DischargeMethodCode = "emergency" // Rujuk IGD
|
||||
DMCEmergencyCovid DischargeMethodCode = "emergency-covid" // Rujuk IGD Covid
|
||||
DMCInpatient DischargeMethodCode = "inpatient" // Rujuk Rawat Inap
|
||||
DMCExtRef DischargeMethodCode = "external" // Rujuk Faskes Lain
|
||||
DMCDeath DischargeMethodCode = "death" // Meninggal
|
||||
DMCDeathOnArrival DischargeMethodCode = "death-on-arrival" // Meninggal Saat Tiba
|
||||
|
||||
TCAmbulance TransportationCode = "ambulance"
|
||||
TCCar TransportationCode = "car"
|
||||
TCMotorCycle TransportationCode = "motor-cycle"
|
||||
TCOther TransportationCode = "other"
|
||||
TCAmbulance TransportationCode = "ambulance" // Ambulans
|
||||
TCCar TransportationCode = "car" // Mobil
|
||||
TCMotorCycle TransportationCode = "motor-cycle" // Motor
|
||||
TCOther TransportationCode = "other" // Lainnya
|
||||
|
||||
PCCRes PersonConditionCode = "res" // Resutiasi
|
||||
PCCEmg PersonConditionCode = "emg" // Darurat
|
||||
PCCUrg PersonConditionCode = "urg" // Mendesak
|
||||
PCCLurg PersonConditionCode = "lurg" // Kurang mendesak
|
||||
PCCNurg PersonConditionCode = "nurg" //
|
||||
PCCNurg PersonConditionCode = "nurg" // Mendesak
|
||||
PCCDoa PersonConditionCode = "doa" // Meninggal saat tiba
|
||||
|
||||
ECCEmg EmergencyClassCode = "emg" // Darurat/Emergency biasa
|
||||
@@ -55,11 +66,35 @@ const (
|
||||
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
|
||||
ACCCac AmbulatoryClassCode = "chemo-act" // Chemotherapy
|
||||
|
||||
ICCIp InpatientClassCode = "ip" // Regular Rawat Inap
|
||||
ICCICU InpatientClassCode = "icu" // ICU
|
||||
ICCHCU InpatientClassCode = "hcu" // HCU
|
||||
ICCVK InpatientClassCode = "vk" // Verlos kamer
|
||||
|
||||
UCPRN UploadCode = "person-resident-number" // Person Resident Number
|
||||
UCPDL UploadCode = "person-driver-license" // Person Driver License
|
||||
UCPP UploadCode = "person-passport" // Person Passport
|
||||
UCPFC UploadCode = "person-family-card" // Person Family Card
|
||||
UCMIR UploadCode = "mcu-item-result" // Mcu Item Result
|
||||
|
||||
CCCAdm ChemoClassCode = "adm" // Administrasi
|
||||
CCCAct ChemoClassCode = "act" // Tindakan
|
||||
|
||||
AFCStd AmbulanceFacilityCode = "std" // Standar
|
||||
AFCIcu AmbulanceFacilityCode = "icu" // ICU
|
||||
|
||||
ANCAssist AmbulanceNeedsCode = "assist" // Dengan Pendampingan
|
||||
ANCNonassist AmbulanceNeedsCode = "non-assist" // Tanpa Pendampingan
|
||||
)
|
||||
|
||||
func (ec EncounterClassCode) Code() string {
|
||||
switch ec {
|
||||
case ECAmbulatory, ECOutpatient:
|
||||
case ECAmbulatory:
|
||||
return "AMB"
|
||||
case ECInpatient:
|
||||
return "IMP"
|
||||
@@ -69,3 +104,12 @@ func (ec EncounterClassCode) Code() string {
|
||||
return "UNKNOWN"
|
||||
}
|
||||
}
|
||||
|
||||
func IsValidUploadCode(code UploadCode) bool {
|
||||
switch UploadCode(code) {
|
||||
case UCPRN, UCPDL, UCPP, UCPFC, UCMIR:
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package organization
|
||||
|
||||
type (
|
||||
ContractPositionCode string
|
||||
EmployeePosisitionCode string
|
||||
InternPosisitionCode string
|
||||
ItemGroupCode string
|
||||
InfraGroupCode string
|
||||
UnitTypeCode string
|
||||
@@ -9,14 +11,23 @@ type (
|
||||
)
|
||||
|
||||
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
|
||||
CSCEmp ContractPositionCode = "employee" // Pegawai
|
||||
CSCSpi ContractPositionCode = "intern" // PPDS
|
||||
|
||||
EPCReg EmployeePosisitionCode = "registration" // Admisi/Pendaftaran
|
||||
EPCNur EmployeePosisitionCode = "nurse" // Perawat
|
||||
EPCDoc EmployeePosisitionCode = "doctor" // Dokter
|
||||
EPCNut EmployeePosisitionCode = "nutritionist" // Ahli gizi
|
||||
EPCMwi EmployeePosisitionCode = "mid-wife" // Bidan
|
||||
EPCLab EmployeePosisitionCode = "laborant" // Laboran
|
||||
EPCPha EmployeePosisitionCode = "pharmacy" // Farmasi
|
||||
EPCPay EmployeePosisitionCode = "payment" // Pembayaran
|
||||
EPCHur EmployeePosisitionCode = "human-resource" // Sumber Daya Manusia
|
||||
EPCGea EmployeePosisitionCode = "general-affair" // Bagian Umum
|
||||
EPCMan EmployeePosisitionCode = "management" // Manajemen
|
||||
|
||||
IPCSpecialist = "specialist-intern"
|
||||
IPCNurse = "nurse-intern"
|
||||
|
||||
ITGCInfra ItemGroupCode = "infra"
|
||||
ITGCMedicine ItemGroupCode = "medicine"
|
||||
|
||||
@@ -12,6 +12,7 @@ type (
|
||||
RelativeCode string
|
||||
ContactTypeCode string
|
||||
RelationshipCode string
|
||||
AddressLocationTypeCode string
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -109,182 +110,185 @@ const (
|
||||
RCNephew RelationshipCode = "nephew" // Keponakan
|
||||
RCGdChild RelationshipCode = "gd-child" // Cucu
|
||||
RCOther RelationshipCode = "other" // Lainnya
|
||||
|
||||
ALTCIdn AddressLocationTypeCode = "identity" // Sesuai Identitas
|
||||
ALTCDom AddressLocationTypeCode = "domicile" // Sesuai Domisili
|
||||
)
|
||||
|
||||
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]
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user