update constlist

This commit is contained in:
dpurbosakti
2025-10-02 08:00:11 +07:00
parent af090ed7c1
commit 0870832b15
4 changed files with 189 additions and 77 deletions

No files matched your search

+139 -39
View File
@@ -7,29 +7,50 @@ type (
AssessmentCode string AssessmentCode string
PlanCode string PlanCode string
InstructionCode string InstructionCode string
HeadToToeCode string
McuUrgencyLevelCode string McuUrgencyLevelCode string
SoapiTypeCode string SoapiTypeCode string
) )
const ( const (
SCPrimaryComplaint SubjectCode = "pri-complain" // Keluhan Utama SCPrimaryComplain SubjectCode = "pri-complain" // Keluhan Utama
SCSecComplaint SubjectCode = "sec-complain" // Secondary Complaint SCSecComplain SubjectCode = "sec-complain" // Secondary Complaint
SCCurrentDiseaseHistory SubjectCode = "cur-disea-hist" // Current Disease History SCCurrentDiseaseHistory SubjectCode = "cur-disea-hist" // Current Disease History
SCPastDiseaseHistory SubjectCode = "pas-disea-hist" // Past Disease History SCPastDiseaseHistory SubjectCode = "pas-disea-hist" // Past Disease History
SCFamilyDiseaseHistory SubjectCode = "fam-disea-hist" // Family Disease History SCFamilyDiseaseHistory SubjectCode = "fam-disea-hist" // Family Disease History
SCAllergyHistory SubjectCode = "alg-hist" // Allergic History SCAllergyHistory SubjectCode = "alg-hist" // Allergic History
SCAllergyReaction SubjectCode = "alg-react" // Allergic Reaction SCAllergyReaction SubjectCode = "alg-react" // Allergic Reaction
SCMedicationHistory SubjectCode = "med-hist" // Medication History SCMedicationHistory SubjectCode = "med-hist" // Medication History
SCBloodType SubjectCode = "blood-type" // Blood Type
OCConsciousnessLevel ObjectCode = "consc-level" // Tingkat Kesadaran OCConsciousnessLevel ObjectCode = "consc-level" // Tingkat Kesadaran
OCConsciousnessLevelDet ObjectCode = "consc-level-det" // Detail Tingkat Kesadaran OCConsciousnessLevelDet ObjectCode = "consc-level-det" // Detail Tingkat Kesadaran
OCSystolicBloodPressure ObjectCode = "syst-bp" // Tekanan Darah Systolic OCSystolicBloodPressure ObjectCode = "syst-bp" // Tekanan Darah Systolic
OCDiastolicBloodPressure ObjectCode = "diast-bp" // Tekanan Darah Diastolic OCDiastolicBloodPressure ObjectCode = "diast-bp" // Tekanan Darah Diastolic
OCHeartRate ObjectCode = "hear-rt" // Detak Jantung OCPulse ObjectCode = "pulse" // Nadi
OCTemperature ObjectCode = "temp" // Suhu OCRespiratoryRate ObjectCode = "resp-rate" // Pernafasan
OCSpO2 ObjectCode = "spo2" // SpO2 OCHeartRate ObjectCode = "hear-rt" // Detak Jantung
OCWeight ObjectCode = "weight" // Berat Badan OCNeuroCranialis ObjectCode = "neuro-cranialis" // Neurologist Cranialist
OCHeight ObjectCode = "height" // Tinggi Badan 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 ACEarlyDiag AssessmentCode = "early-diag" // Diagnosis Awal
ACLateDiag AssessmentCode = "late-diag" // Diagnosis Akhir ACLateDiag AssessmentCode = "late-diag" // Diagnosis Akhir
@@ -37,56 +58,135 @@ const (
PCPlan PlanCode = "plan" // Rencana PCPlan PlanCode = "plan" // Rencana
ICDetail InstructionCode = "detail" // Detail instruksi ICDetail InstructionCode = "detail" // Detail Instruksi
ICMedAct InstructionCode = "med-act" // Tindakan medis ICMedAct InstructionCode = "medical-act" // Tindakan Medis
ICMedication InstructionCode = "medication" // Obat ICSupExam InstructionCode = "supporting-exam" // Pemeriksaan Penunjang
ICMaterial InstructionCode = "material" // BMHP 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
MULCCITO McuUrgencyLevelCode = "cito" HTTHead HeadToToeCode = "head"
MULCCITOIGD McuUrgencyLevelCode = "cito-igd" HTTEye HeadToToeCode = "eye"
MULCPonek McuUrgencyLevelCode = "ponek" HTTEar HeadToToeCode = "ear"
MULCBG McuUrgencyLevelCode = "blood-gas" HTTNose HeadToToeCode = "nose"
MULCPF McuUrgencyLevelCode = "priority-form" HTTMouthThroat HeadToToeCode = "mouth-throat"
MULCRT McuUrgencyLevelCode = "routine" 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"
STCEarly SoapiTypeCode = "early" // Kajian Awal Medis MULCCITO McuUrgencyLevelCode = "cito" // CITO
STCERehab SoapiTypeCode = "early-rehab" // Kajian Awal Rehab Medik MULCCITOIGD McuUrgencyLevelCode = "cito-igd" // CITO IGD
STCFunc SoapiTypeCode = "function" // Assessment Fungsi 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
) )
type Soapi struct { type Soapi struct {
// Subject Subject SubjectSection `json:"subject"`
PrimaryComplaint string `json:"pri-compl"` Object ObjectSection `json:"object"`
SecondaryComplaint string `json:"sec-compl"` Assessment AssessmentSection `json:"assessment"`
Plan string `json:"plan"`
Instruction InstructionSection `json:"instruction"`
}
// ---------------- SUBJECT ----------------
type SubjectSection struct {
PrimaryComplain string `json:"pri-complain"`
SecondaryComplain string `json:"sec-complain"`
CurrentDiseaseHistory string `json:"cur-disea-hist"` CurrentDiseaseHistory string `json:"cur-disea-hist"`
PastDiseaseHistory string `json:"pas-disea-hist"` PastDiseaseHistory string `json:"pas-disea-hist"`
FamilyDiseaseHistory string `json:"fam-disea-hist"` FamilyDiseaseHistory string `json:"fam-disea-hist"`
AllergyHistory string `json:"alg-hist"` AllergyHistory string `json:"alg-hist"`
AllergyReaction string `json:"alg-react"` AllergyReaction string `json:"alg-react"`
MedicationHistory string `json:"med-hist"` MedicationHistory string `json:"med-hist"`
BloodType string `json:"blood-type"`
}
// Object // ---------------- OBJECT ----------------
type ObjectSection struct {
ConsciousnessLevel string `json:"consc-level"` ConsciousnessLevel string `json:"consc-level"`
ConsciousnessLevelDet string `json:"consc-level-det"` ConsciousnessLevelDet string `json:"consc-level-det"`
SystolicBloodPressure string `json:"syst-bp"` SystolicBloodPressure string `json:"syst-bp"`
DiastolicBloodPressure string `json:"diast-bp"` DiastolicBloodPressure string `json:"diast-bp"`
Pulse string `json:"pulse"`
RespiratoryRate string `json:"resp-rate"`
HeartRate string `json:"hear-rt"` HeartRate string `json:"hear-rt"`
NeuroCranialis string `json:"neuro-cranialis"`
Sensoris string `json:"sensoris"`
ReflectFisio string `json:"reflect-fisio"`
ReflectPato string `json:"reflect-pato"`
AutonomNeuron string `json:"autonom-neuron"`
NeckRom string `json:"neck-rom"`
BodyRom string `json:"body-rom"`
AgaRom string `json:"aga-rom"`
AgbRom string `json:"agb-rom"`
NeckMmt string `json:"neck-mmt"`
BodyMmt string `json:"body-mmt"`
AgaMmt string `json:"aga-mmt"`
AgbMmt string `json:"agb-mmt"`
Localis string `json:"localis"`
MedicalTrouble string `json:"medical-trouble"`
RehabMedicTrouble string `json:"rehab-medic-trouble"`
Temperature string `json:"temp"` Temperature string `json:"temp"`
SpO2 string `json:"spo2"` SpO2 string `json:"spo2"`
Weight string `json:"weight"` Weight string `json:"weight"`
Height string `json:"height"` Height string `json:"height"`
HeadToToe string `json:"head-to-toe"`
}
// Assessment // ---------------- ASSESSMENT ----------------
EarlyDiagnosis string `json:"early-diag"` type AssessmentSection struct {
LateDiagnosis string `json:"late-diag"` Note string `json:"note,omitempty"`
SecondaryDiag string `json:"sec-diag"` Codes []CodeWithName `json:"codes,omitempty"`
// Plan EarlyDiagnosis string `json:"early-diag,omitempty"`
Plan string `json:"plan"` LateDiagnosis string `json:"late-diag,omitempty"`
SecondaryDiag string `json:"sec-diag,omitempty"`
}
// Instruction // ---------------- INSTRUCTION ----------------
InstructionDetail string `json:"detail"` type InstructionSection struct {
MedicalAction string `json:"med-act"` Note string `json:"note,omitempty"`
Medication string `json:"medication"` Codes []CodeWithName `json:"codes,omitempty"`
Material string `json:"material"`
InstructionDetail string `json:"detail,omitempty"`
MedicalAction string `json:"medical-act,omitempty"`
SupportingExam string `json:"supporting-exam,omitempty"`
Therapy string `json:"therapy,omitempty"`
Medication string `json:"medication,omitempty"`
Material string `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"`
InstructionOther string `json:"other,omitempty"`
}
// ---------------- CODES ----------------
type CodeWithName struct {
Code string `json:"code"`
Name string `json:"name"`
} }
+21 -11
View File
@@ -1,17 +1,19 @@
package common package common
type ( type (
YaTidakCode byte YaTidakCode byte
SudahBelumCode byte SudahBelumCode byte
AktifSimpelCode byte AktifSimpelCode byte
AktifAdvanceCode byte AktifAdvanceCode byte
TersediaCode byte TersediaCode byte
DayCode byte DayCode byte
ActiveStatusCode string ActiveStatusCode string
DataStatusCode string DataStatusCode string
UserStatusCode string UserStatusCode string
TimeUnitCode string TimeUnitCode string
PaymentMethodCode string PaymentMethodCode string
DataAvailabilityCode string
DataVerifiedCode string
) )
const ( const (
@@ -61,6 +63,14 @@ const (
DSCRejected DataStatusCode = "rejected" // Ditolak DSCRejected DataStatusCode = "rejected" // Ditolak
DSCSkipped DataStatusCode = "skipped" // Dilewati 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 USCNew UserStatusCode = "new" // Baru
USCActive UserStatusCode = "active" // Aktif USCActive UserStatusCode = "active" // Aktif
USCInactive UserStatusCode = "inactive" // Tidak aktif USCInactive UserStatusCode = "inactive" // Tidak aktif
@@ -15,9 +15,9 @@ type (
) )
const ( const (
ECAmbulatory EncounterClassCode = "ambulatory" ECAmbulatory EncounterClassCode = "ambulatory" // Rawat Jalan
ECEmergency EncounterClassCode = "emergency" ECEmergency EncounterClassCode = "emergency" // Gawat Darurat
ECInpatient EncounterClassCode = "inpatient" ECInpatient EncounterClassCode = "inpatient" // Rawat Inap
QSCWait QueueStatusCode = "wait" // Tunggu QSCWait QueueStatusCode = "wait" // Tunggu
QSCProc QueueStatusCode = "proc" // Proses QSCProc QueueStatusCode = "proc" // Proses
@@ -33,16 +33,16 @@ const (
DMCIntRef DischargeMethodCode = "internal-ref" // Rujuk Internal DMCIntRef DischargeMethodCode = "internal-ref" // Rujuk Internal
DMCDeath DischargeMethodCode = "death" // Meninggal DMCDeath DischargeMethodCode = "death" // Meninggal
TCAmbulance TransportationCode = "ambulance" TCAmbulance TransportationCode = "ambulance" // Ambulans
TCCar TransportationCode = "car" TCCar TransportationCode = "car" // Mobil
TCMotorCycle TransportationCode = "motor-cycle" TCMotorCycle TransportationCode = "motor-cycle" // Motor
TCOther TransportationCode = "other" TCOther TransportationCode = "other" // Lainnya
PCCRes PersonConditionCode = "res" // Resutiasi PCCRes PersonConditionCode = "res" // Resutiasi
PCCEmg PersonConditionCode = "emg" // Darurat PCCEmg PersonConditionCode = "emg" // Darurat
PCCUrg PersonConditionCode = "urg" // Mendesak PCCUrg PersonConditionCode = "urg" // Mendesak
PCCLurg PersonConditionCode = "lurg" // Kurang mendesak PCCLurg PersonConditionCode = "lurg" // Kurang mendesak
PCCNurg PersonConditionCode = "nurg" // PCCNurg PersonConditionCode = "nurg" // Mendesak
PCCDoa PersonConditionCode = "doa" // Meninggal saat tiba PCCDoa PersonConditionCode = "doa" // Meninggal saat tiba
ECCEmg EmergencyClassCode = "emg" // Darurat/Emergency biasa ECCEmg EmergencyClassCode = "emg" // Darurat/Emergency biasa
@@ -58,8 +58,9 @@ const (
CSCPLab CheckupScopeCode = "pa-lab" // Patology Anatomy Laboratorium CSCPLab CheckupScopeCode = "pa-lab" // Patology Anatomy Laboratorium
CSCRad CheckupScopeCode = "radiology" // Radiology CSCRad CheckupScopeCode = "radiology" // Radiology
ACCReg AmbulatoryClassCode = "reg" // Regular ACCReg AmbulatoryClassCode = "reg" // Regular
ACCRme AmbulatoryClassCode = "rme" // Rehab Medik ACCRme AmbulatoryClassCode = "rme" // Rehab Medik
ACCChe AmbulatoryClassCode = "chemo" // Chemotherapy
ICCIp InpatientClassCode = "ip" // Regular Rawat Inap ICCIp InpatientClassCode = "ip" // Regular Rawat Inap
ICCICU InpatientClassCode = "icu" // ICU ICCICU InpatientClassCode = "icu" // ICU
@@ -9,17 +9,18 @@ type (
) )
const ( const (
UPCDoc UserPosisitionCode = "doctor" // Dokter UPCReg UserPosisitionCode = "registration" // Admisi/Pendaftaran
UPCNur UserPosisitionCode = "nurse" // Perawat UPCNur UserPosisitionCode = "nurse" // Perawat
UPCNut UserPosisitionCode = "nutritionist" // Ahli gizi UPCDoc UserPosisitionCode = "doctor" // Dokter
UPCLab UserPosisitionCode = "laborant" // Laboran UPCNut UserPosisitionCode = "nutritionist" // Ahli gizi
UPCPha UserPosisitionCode = "pharmacy" // Farmasi UPCMwi UserPosisitionCode = "mid-wife" // Bidan
UPCPay UserPosisitionCode = "payment" // Pembayaran UPCLab UserPosisitionCode = "laborant" // Laboran
UPCHur UserPosisitionCode = "human-resource" // Sumber Daya Manusia UPCPha UserPosisitionCode = "pharmacy" // Farmasi
UPCGea UserPosisitionCode = "general-affair" // Bagian Umu UPCPay UserPosisitionCode = "payment" // Pembayaran
UPCPav UserPosisitionCode = "payment-verificator" // Konfirmasi pembayaran UPCHur UserPosisitionCode = "human-resource" // Sumber Daya Manusia
UPCMan UserPosisitionCode = "management" // Manajemen UPCGea UserPosisitionCode = "general-affair" // Bagian Umum
UPCInt UserPosisitionCode = "specialist-intern" // PPDS UPCInt UserPosisitionCode = "specialist-intern" // PPDS
UPCMan UserPosisitionCode = "management" // Manajemen
ITGCInfra ItemGroupCode = "infra" ITGCInfra ItemGroupCode = "infra"
ITGCMedicine ItemGroupCode = "medicine" ITGCMedicine ItemGroupCode = "medicine"
@@ -30,12 +31,12 @@ const (
ITGCEmpFee ItemGroupCode = "employee-fee" ITGCEmpFee ItemGroupCode = "employee-fee"
ITGCDocFee ItemGroupCode = "doctor-fee" ITGCDocFee ItemGroupCode = "doctor-fee"
IFGCBuilding InfraGroupCode = "building" IFGCBuilding InfraGroupCode = "building" // Bangunan
IFGCFloor InfraGroupCode = "floor" IFGCFloor InfraGroupCode = "floor" // Lantai
IFGCRoom InfraGroupCode = "room" IFGCRoom InfraGroupCode = "room" // Ruang
IFGCChamber InfraGroupCode = "chamber" IFGCChamber InfraGroupCode = "chamber" // Kamar
IFGCBed InfraGroupCode = "bed" IFGCBed InfraGroupCode = "bed" // Ranjang
IFGCWarehouse InfraGroupCode = "warehouse" IFGCWarehouse InfraGroupCode = "warehouse" // Gudang/Depo
UTCReg UnitTypeCode = "reg" // Registrasi UTCReg UnitTypeCode = "reg" // Registrasi
UTCExa UnitTypeCode = "exa" // Pemeriksaan UTCExa UnitTypeCode = "exa" // Pemeriksaan