Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into migration
This commit is contained in:
@@ -1,90 +0,0 @@
|
||||
package actionreport
|
||||
|
||||
import (
|
||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||
ee "simrs-vx/internal/domain/main-entities/encounter"
|
||||
"time"
|
||||
|
||||
pa "simrs-vx/internal/lib/auth"
|
||||
)
|
||||
|
||||
type CreateDto struct {
|
||||
Encounter_Id uint64 `json:"encounter_id" validate:"required"`
|
||||
Date *time.Time `json:"date" validate:"required"`
|
||||
Doctor_Code string `json:"doctor_code" validate:"required"`
|
||||
Operator_Employe_Id uint `json:"operator_employe_id" validate:"required"`
|
||||
Assistant_Employe_Id uint `json:"assistant_employe_id" validate:"required"`
|
||||
Instrumentor_Employe_Id uint `json:"instrumentor_employe_id" validate:"required"`
|
||||
Diagnose *string `json:"diagnose"`
|
||||
Nurse_Code string `json:"nurse_code" validate:"required"`
|
||||
Value string `json:"value" validate:"required"`
|
||||
|
||||
pa.AuthInfo
|
||||
}
|
||||
|
||||
type ReadListDto struct {
|
||||
FilterDto
|
||||
Includes string `json:"includes"`
|
||||
Pagination ecore.Pagination
|
||||
}
|
||||
|
||||
type FilterDto struct {
|
||||
Encounter_Id *uint `json:"encounter-id"`
|
||||
}
|
||||
|
||||
type ReadDetailDto struct {
|
||||
Id uint16 `json:"id"`
|
||||
}
|
||||
|
||||
type UpdateDto struct {
|
||||
Id uint16 `json:"id"`
|
||||
CreateDto
|
||||
}
|
||||
|
||||
type DeleteDto struct {
|
||||
Id uint16 `json:"id"`
|
||||
}
|
||||
|
||||
type MetaDto struct {
|
||||
PageNumber int `json:"page_number"`
|
||||
PageSize int `json:"page_size"`
|
||||
Count int `json:"count"`
|
||||
}
|
||||
|
||||
type ResponseDto struct {
|
||||
ecore.Main
|
||||
Encounter_Id uint64 `json:"encounter_id"`
|
||||
Encounter *ee.Encounter `json:"encounter,omitempty"`
|
||||
Date *time.Time `json:"date"`
|
||||
Doctor_Code string `json:"doctor_code"`
|
||||
Operator_Employe_Id uint `json:"operator_employe_id"`
|
||||
Assistant_Employe_Id uint `json:"assistant_employe_id"`
|
||||
Instrumentor_Employe_Id uint `json:"instrumentor_employe_id"`
|
||||
Diagnose *string `json:"diagnose"`
|
||||
Nurse_Code string `json:"nurse_code"`
|
||||
Value *string `json:"value"`
|
||||
}
|
||||
|
||||
func (d ActionReport) ToResponse() ResponseDto {
|
||||
resp := ResponseDto{
|
||||
Encounter_Id: d.Encounter_Id,
|
||||
Encounter: d.Encounter,
|
||||
Date: d.Date,
|
||||
Doctor_Code: d.Doctor_Code,
|
||||
Operator_Employe_Id: d.Operator_Employe_Id,
|
||||
Assistant_Employe_Id: d.Assistant_Employe_Id,
|
||||
Instrumentor_Employe_Id: d.Instrumentor_Employe_Id,
|
||||
Nurse_Code: d.Nurse_Code,
|
||||
Value: &d.Value,
|
||||
}
|
||||
resp.Main = d.Main
|
||||
return resp
|
||||
}
|
||||
|
||||
func ToResponseList(data []ActionReport) []ResponseDto {
|
||||
resp := make([]ResponseDto, len(data))
|
||||
for i, u := range data {
|
||||
resp[i] = u.ToResponse()
|
||||
}
|
||||
return resp
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
package actionreport
|
||||
|
||||
import (
|
||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||
ed "simrs-vx/internal/domain/main-entities/doctor"
|
||||
eem "simrs-vx/internal/domain/main-entities/employee"
|
||||
ee "simrs-vx/internal/domain/main-entities/encounter"
|
||||
en "simrs-vx/internal/domain/main-entities/nurse"
|
||||
"time"
|
||||
)
|
||||
|
||||
type ActionReport struct {
|
||||
ecore.Main // adjust this according to the needs
|
||||
Encounter_Id uint64 `json:"encounter_id" gorm:"foreignKey"`
|
||||
Encounter *ee.Encounter `json:"encounter,omitempty" gorm:"foreignKey:Encounter_Id;references:Id"`
|
||||
Date *time.Time `json:"date" gorm:"not null;size:20"`
|
||||
Doctor_Code string `json:"doctor_code" gorm:"size:10"`
|
||||
Doctor *ed.Doctor `json:"doctor,omitempty" gorm:"foreignKey:Doctor_Code;references:Code"`
|
||||
Operator_Employe_Id uint `json:"operator_employe_id"`
|
||||
Operator_Employe *eem.Employee `json:"operator_employe,omitempty" gorm:"foreignKey:Operator_Employe_Id;references:Id"`
|
||||
Assistant_Employe_Id uint `json:"assistant_employe_id"`
|
||||
Instrumentor_Employe_Id uint `json:"instrumentor_employe_id"`
|
||||
Instrumentor_Employe *eem.Employee `json:"instrumentor_employe,omitempty" gorm:"foreignKey:Instrumentor_Employe_Id;references:Id"`
|
||||
Diagnose *string `json:"diagnose" gorm:"size:1024"`
|
||||
Nurse_Code string `json:"nurse_code" gorm:"size:10"`
|
||||
Nurse *en.Nurse `json:"nurse,omitempty" gorm:"foreignKey:Nurse_Code;references:Code"`
|
||||
Value string `json:"value"`
|
||||
// SurgerySize_Code *string `json:"surgerySize_code" gorm:"size:10"`
|
||||
// Billing_Code *string `json:"billing_code" gorm:"size:10"`
|
||||
// SurgerySystem_Code *string `json:"surgerySystem_code" gorm:"size:10"`
|
||||
// StartAt *string `json:"startAt" gorm:"size:20"`
|
||||
// EndAt *string `json:"endAt" gorm:"size:20"`
|
||||
// AnesthesiaStartAt *string `json:"anesthesiaStartAt" gorm:"size:20"`
|
||||
// AnesthesiaEndAt *string `json:"anesthesiaEndAt" gorm:"size:20"`
|
||||
// SurgeryType_Code *string `json:"surgeryType_code" gorm:"size:10"`
|
||||
// SurgeryStage_Code *string `json:"surgeryStage_code" gorm:"size:10"`
|
||||
// BornMortality_Code *string `json:"bornMortality_code" gorm:"size:10"`
|
||||
// BornLocation_Code *string `json:"bornLocation_code" gorm:"size:10"`
|
||||
// Weight *string `json:"weight" gorm:"size:10"`
|
||||
// BornNotes *string `json:"bornNotes" gorm:"size:1024"`
|
||||
// Description *string `json:"notes" gorm:"size:1024"`
|
||||
// BleedingAmount *uint16 `json:"bleedingAmount" gorm:"size:10"`
|
||||
// BloodInType_Code *string `json:"bloodInType_code" gorm:"size:10"`
|
||||
// BloodInAmount *uint16 `json:"bloodInAmount" gorm:"size:10"`
|
||||
// Brand *string `json:"brand" gorm:"size:100"`
|
||||
// ImplantName *string `json:"implantName" gorm:"size:100"`
|
||||
// ImplantRegisterNumber *string `json:"implantRegisterNumber" gorm:"size:100"`
|
||||
// ImplantCompanionName *string `json:"implantCompanionName" gorm:"size:100"`
|
||||
// SpecimentDest_Code *string `json:"specimentDest" gorm:"size:100"`
|
||||
// TissueInfo *string `json:"tissueInfo" gorm:"size:100"`
|
||||
}
|
||||
@@ -89,11 +89,14 @@ type TRujukan struct {
|
||||
|
||||
type ReadListDto struct {
|
||||
FilterDto
|
||||
Includes string `json:"includes"`
|
||||
Pagination ecore.Pagination
|
||||
Person_Name *string `json:"person-name"`
|
||||
StartDate *string `json:"start-date"`
|
||||
EndDate *string `json:"end-date"`
|
||||
Includes string `json:"includes"`
|
||||
Pagination ecore.Pagination
|
||||
Patient_Identifier *string `json:"patient-identifier"`
|
||||
StartDate *string `json:"start-date"`
|
||||
EndDate *string `json:"end-date"`
|
||||
PaymentMethod_Code *string `json:"paymentMethod-code"`
|
||||
Status_Code *string `json:"status-code"`
|
||||
Unit_Code *string `json:"unit-code"`
|
||||
|
||||
pa.AuthInfo
|
||||
}
|
||||
@@ -103,7 +106,6 @@ type FilterDto struct {
|
||||
Patient *ep.Patient `json:"patient,omitempty"`
|
||||
RegisteredAt *time.Time `json:"registeredAt"`
|
||||
Class_Code ere.EncounterClassCode `json:"class-code" validate:"maxLength=10"`
|
||||
Unit_Code *string `json:"unit-code"`
|
||||
Specialist_Code *string `json:"specialist-code"`
|
||||
Subspecialist_Code *string `json:"subspecialist-code"`
|
||||
VisitDate time.Time `json:"visitDate"`
|
||||
|
||||
@@ -13,6 +13,8 @@ type CreateDto struct {
|
||||
Uom_Code *string `json:"uom_code" validate:"maxLength=10"`
|
||||
Infra_Code *string `json:"infra_code"`
|
||||
Stock *int `json:"stock"`
|
||||
BuyingPrice *float64 `json:"buyingPrice"`
|
||||
SellingPrice *float64 `json:"sellingPrice"`
|
||||
}
|
||||
|
||||
type ReadListDto struct {
|
||||
@@ -33,7 +35,7 @@ type FilterDto struct {
|
||||
}
|
||||
|
||||
type ReadDetailDto struct {
|
||||
Id *uint16 `json:"id"`
|
||||
Id *uint `json:"id"`
|
||||
Code *string `json:"code"`
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
package procedurereport
|
||||
|
||||
import (
|
||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||
ee "simrs-vx/internal/domain/main-entities/encounter"
|
||||
"time"
|
||||
|
||||
pa "simrs-vx/internal/lib/auth"
|
||||
)
|
||||
|
||||
type CreateDto struct {
|
||||
Encounter_Id uint64 `json:"encounter_id" validate:"required"`
|
||||
Date *time.Time `json:"date" validate:"required"`
|
||||
Doctor_Code string `json:"doctor_code" validate:"required"`
|
||||
Operator_Name string `json:"operator_name" validate:"required"`
|
||||
Assistant_Name string `json:"assistant_name" validate:"required"`
|
||||
Instrumentor_Name string `json:"instrumentor_name" validate:"required"`
|
||||
Anesthesia_Doctor_Code *string `json:"anesthesia_doctor_code"`
|
||||
Anesthesia_Nurse_Name *string `json:"anesthesia_nurse_name"`
|
||||
Diagnose *string `json:"diagnose"`
|
||||
Nurse_Name string `json:"nurse_name" validate:"required"`
|
||||
ProcedureValue string `json:"procedure_value" validate:"required"`
|
||||
ExecutionValue string `json:"execution_value" validate:"required"`
|
||||
Type_Code string `json:"type_code" validate:"required"`
|
||||
|
||||
pa.AuthInfo
|
||||
|
||||
// PROPER
|
||||
// Operator_Employe_Id uint `json:"operator_employe_id" validate:"required"`
|
||||
// Assistant_Employe_Id uint `json:"assistant_employe_id" validate:"required"`
|
||||
// Instrumentor_Employe_Id uint `json:"instrumentor_employe_id" validate:"required"`
|
||||
// Anesthesia_Doctor_Code string `json:"anesthesia_doctor_code" validate:"required"`
|
||||
// Anesthesia_Nurse_Employe_Id uint `json:"anesthesia_nurse_employe_id" validate:"required"`
|
||||
// Nurse_Code string `json:"nurse_code" validate:"required"`
|
||||
}
|
||||
|
||||
type ReadListDto struct {
|
||||
FilterDto
|
||||
Includes string `json:"includes"`
|
||||
Pagination ecore.Pagination
|
||||
}
|
||||
|
||||
type FilterDto struct {
|
||||
Encounter_Id *uint `json:"encounter-id"`
|
||||
Type_Code string `json:"type-code"`
|
||||
}
|
||||
|
||||
type ReadDetailDto struct {
|
||||
Id uint16 `json:"id"`
|
||||
}
|
||||
|
||||
type UpdateDto struct {
|
||||
Id uint16 `json:"id"`
|
||||
CreateDto
|
||||
}
|
||||
|
||||
type DeleteDto struct {
|
||||
Id uint16 `json:"id"`
|
||||
}
|
||||
|
||||
type MetaDto struct {
|
||||
PageNumber int `json:"page_number"`
|
||||
PageSize int `json:"page_size"`
|
||||
Count int `json:"count"`
|
||||
}
|
||||
|
||||
type ResponseDto struct {
|
||||
ecore.Main
|
||||
Encounter_Id uint64 `json:"encounter_id"`
|
||||
Encounter *ee.Encounter `json:"encounter,omitempty"`
|
||||
Date *time.Time `json:"date"`
|
||||
Doctor_Code string `json:"doctor_code"`
|
||||
Operator_Name string `json:"operator_name"`
|
||||
Assistant_Name string `json:"assistant_name"`
|
||||
Instrumentor_Name string `json:"instrumentor_name"`
|
||||
Anesthesia_Doctor_Code *string `json:"anesthesia_doctor_code"`
|
||||
Anesthesia_Nurse_Name *string `json:"anesthesia_nurse_name"`
|
||||
Diagnose *string `json:"diagnose"`
|
||||
Nurse_Name string `json:"nurse_name"`
|
||||
ProcedureValue *string `json:"procedure_value"`
|
||||
ExecutionValue *string `json:"execution_value"`
|
||||
Type_Code string `json:"type_code"`
|
||||
}
|
||||
|
||||
func (d ProcedureReport) ToResponse() ResponseDto {
|
||||
resp := ResponseDto{
|
||||
Encounter_Id: d.Encounter_Id,
|
||||
Encounter: d.Encounter,
|
||||
Date: d.Date,
|
||||
Doctor_Code: d.Doctor_Code,
|
||||
Operator_Name: d.Operator_Name,
|
||||
Assistant_Name: d.Assistant_Name,
|
||||
Instrumentor_Name: d.Instrumentor_Name,
|
||||
Anesthesia_Doctor_Code: d.Anesthesia_Doctor_Code,
|
||||
Anesthesia_Nurse_Name: d.Anesthesia_Nurse_Name,
|
||||
Nurse_Name: d.Nurse_Name,
|
||||
ProcedureValue: &d.ProcedureValue,
|
||||
ExecutionValue: &d.ExecutionValue,
|
||||
Type_Code: d.Type_Code,
|
||||
}
|
||||
resp.Main = d.Main
|
||||
return resp
|
||||
}
|
||||
|
||||
func ToResponseList(data []ProcedureReport) []ResponseDto {
|
||||
resp := make([]ResponseDto, len(data))
|
||||
for i, u := range data {
|
||||
resp[i] = u.ToResponse()
|
||||
}
|
||||
return resp
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package procedurereport
|
||||
|
||||
import (
|
||||
ecore "simrs-vx/internal/domain/base-entities/core"
|
||||
ed "simrs-vx/internal/domain/main-entities/doctor"
|
||||
ee "simrs-vx/internal/domain/main-entities/encounter"
|
||||
"time"
|
||||
)
|
||||
|
||||
type ProcedureReport struct {
|
||||
ecore.Main // adjust this according to the needs
|
||||
Encounter_Id uint64 `json:"encounter_id" gorm:"foreignKey"`
|
||||
Encounter *ee.Encounter `json:"encounter,omitempty" gorm:"foreignKey:Encounter_Id;references:Id"`
|
||||
Date *time.Time `json:"date" gorm:"not null;size:20"`
|
||||
Doctor_Code string `json:"doctor_code" gorm:"size:10"`
|
||||
Doctor *ed.Doctor `json:"doctor,omitempty" gorm:"foreignKey:Doctor_Code;references:Code"`
|
||||
Operator_Name string `json:"operator_name"`
|
||||
Assistant_Name string `json:"assistant_name"`
|
||||
Instrumentor_Name string `json:"instrumentor_name"`
|
||||
Diagnose *string `json:"diagnose" gorm:"size:1024"`
|
||||
Nurse_Name string `json:"nurse_name"`
|
||||
Anesthesia_Doctor_Code *string `json:"anesthesia_doctor_code" gorm:"size:10"`
|
||||
Anesthesia_Doctor *ed.Doctor `json:"anesthesia,omitempty" gorm:"foreignKey:Anesthesia_Doctor_Code;references:Code"`
|
||||
Anesthesia_Nurse_Name *string `json:"anesthesia_nurse_name"`
|
||||
ProcedureValue string `json:"procedure_value"`
|
||||
ExecutionValue string `json:"execution_value"`
|
||||
Type_Code string `json:"type_code"`
|
||||
|
||||
// SurgerySize_Code *string `json:"surgerySize_code" gorm:"size:10"`
|
||||
// Billing_Code *string `json:"billing_code" gorm:"size:10"`
|
||||
// SurgerySystem_Code *string `json:"surgerySystem_code" gorm:"size:10"`
|
||||
// StartAt *string `json:"startAt" gorm:"size:20"`
|
||||
// EndAt *string `json:"endAt" gorm:"size:20"`
|
||||
// AnesthesiaStartAt *string `json:"anesthesiaStartAt" gorm:"size:20"`
|
||||
// AnesthesiaEndAt *string `json:"anesthesiaEndAt" gorm:"size:20"`
|
||||
// SurgeryType_Code *string `json:"surgeryType_code" gorm:"size:10"`
|
||||
// SurgeryStage_Code *string `json:"surgeryStage_code" gorm:"size:10"`
|
||||
// BornMortality_Code *string `json:"bornMortality_code" gorm:"size:10"`
|
||||
// BornLocation_Code *string `json:"bornLocation_code" gorm:"size:10"`
|
||||
// Weight *string `json:"weight" gorm:"size:10"`
|
||||
// BornNotes *string `json:"bornNotes" gorm:"size:1024"`
|
||||
// Description *string `json:"notes" gorm:"size:1024"`
|
||||
// BleedingAmount *uint16 `json:"bleedingAmount" gorm:"size:10"`
|
||||
// BloodInType_Code *string `json:"bloodInType_code" gorm:"size:10"`
|
||||
// BloodInAmount *uint16 `json:"bloodInAmount" gorm:"size:10"`
|
||||
// Brand *string `json:"brand" gorm:"size:100"`
|
||||
// ImplantName *string `json:"implantName" gorm:"size:100"`
|
||||
// ImplantRegisterNumber *string `json:"implantRegisterNumber" gorm:"size:100"`
|
||||
// ImplantCompanionName *string `json:"implantCompanionName" gorm:"size:100"`
|
||||
// SpecimentDest_Code *string `json:"specimentDest" gorm:"size:100"`
|
||||
// TissueInfo *string `json:"tissueInfo" gorm:"size:100"`
|
||||
|
||||
//PROPER
|
||||
// Doctor_Code string `json:"doctor_code" gorm:"size:10"`
|
||||
// Doctor *ed.Doctor `json:"doctor,omitempty" gorm:"foreignKey:Doctor_Code;references:Code"`
|
||||
// Operator_Employe_Id uint `json:"operator_employe_id"`
|
||||
// Operator_Employe *eem.Employee `json:"operator_employe,omitempty" gorm:"foreignKey:Operator_Employe_Id;references:Id"`
|
||||
// Assistant_Employe_Id uint `json:"assistant_employe_id"`
|
||||
// Instrumentor_Employe_Id uint `json:"instrumentor_employe_id"`
|
||||
// Instrumentor_Employe *eem.Employee `json:"instrumentor_employe,omitempty" gorm:"foreignKey:Instrumentor_Employe_Id;references:Id"`
|
||||
// Nurse_Code string `json:"nurse_code" gorm:"size:10"`
|
||||
// Nurse *en.Nurse `json:"nurse,omitempty" gorm:"foreignKey:Nurse_Code;references:Code"`
|
||||
// Anesthesia_Doctor_Code string `json:"anesthesia_doctor_code" gorm:"size:10"`
|
||||
// Anesthesia *eem.Employee `json:"anesthesia,omitempty" gorm:"foreignKey:Anesthesia_Doctor_Code;references:Code"`
|
||||
// Anesthesia_Nurse_Employe_Id uint `json:"anesthesia_nurse_employe_id"`
|
||||
// Anesthesia_Nurse *eem.Employee `json:"anesthesia_nurse,omitempty" gorm:"foreignKey:Anesthesia_Nurse_Employe_Id;references:Id"`
|
||||
}
|
||||
@@ -27,6 +27,7 @@ type CreateDto struct {
|
||||
type ReadListDto struct {
|
||||
FilterDto
|
||||
Includes string `json:"includes"`
|
||||
Sort string `json:"sort"`
|
||||
Pagination ecore.Pagination
|
||||
}
|
||||
|
||||
@@ -38,16 +39,17 @@ type FilterDto struct {
|
||||
}
|
||||
|
||||
type ReadDetailDto struct {
|
||||
Id uint16 `json:"id"`
|
||||
Id uint `json:"id"`
|
||||
Includes string `json:"includes"`
|
||||
}
|
||||
|
||||
type UpdateDto struct {
|
||||
Id uint16 `json:"id"`
|
||||
Id uint `json:"id"`
|
||||
CreateDto
|
||||
}
|
||||
|
||||
type DeleteDto struct {
|
||||
Id uint16 `json:"id"`
|
||||
Id uint `json:"id"`
|
||||
}
|
||||
|
||||
type MetaDto struct {
|
||||
@@ -84,3 +86,122 @@ func ToResponseList(data []Screening) []ResponseDto {
|
||||
}
|
||||
return resp
|
||||
}
|
||||
|
||||
type ScreeningEntry struct {
|
||||
AgeAtRisk bool `json:"ageAtRisk"` // Usia Dengan Risiko
|
||||
LowCognitiveFunction bool `json:"lowCognitiveFunction"` // Pasien Dengan Fungsi Kognitif Rendah
|
||||
HighRiskPatient bool `json:"highRiskPatient"` // Pasien Dengan Risiko Tinggi
|
||||
HighComplaintPotential bool `json:"highComplaintPotential"` // Potensi Komplain Tinggi (Medik dan Non Medik)
|
||||
ChronicOrCatastrophicOrTerminal bool `json:"chronicOrCatastrophicOrTerminal"` // Kasus Dengan Penyakit Kronis, Katastropik, Terminal
|
||||
LowFunctionalStatus bool `json:"lowFunctionalStatus"` // Status Fungsional Rendah, Kebutuhan Bantuan ADL Tinggi
|
||||
HistoryOfMedicalDeviceUse bool `json:"historyOfMedicalDeviceUse"` // Pasien Dengan Riwayat Penggunaan Peralatan Medis Masa Lalu
|
||||
MentalOrSocialIssues bool `json:"mentalOrSocialIssues"` // Riwayat Gangguan Mental, Bunuh Diri, Krisis Keluarga, Isu Sosial
|
||||
FrequentERVisitsOrReadmission bool `json:"frequentERVisitsOrReadmission"` // Sering Masuk IGD, Readmisi RS
|
||||
HighCareCostEstimate bool `json:"highCareCostEstimate"` // Perkiraan Asuhan Dengan Biaya Tinggi
|
||||
ComplexFinancingSystem bool `json:"complexFinancingSystem"` // Kemungkinan Sistem Pembiayaan Yang Kompleks
|
||||
AboveAverageLengthOfStay bool `json:"aboveAverageLengthOfStay"` // Kasus Yang Melebihi Rata-Rata Lama Dirawat
|
||||
ImportantOrHighRiskDischargePlanning bool `json:"importantOrHighRiskDischargePlanning"` // Rencana Pemulangan Penting / Kontinuitas Pelayanan
|
||||
Stagnation bool `json:"stagnation"` // Stagnasi
|
||||
}
|
||||
|
||||
type ProblemIdentification struct {
|
||||
CareNotFollowingGuidelines bool `json:"careNotFollowingGuidelines"` // Tingkat Asuhan Tidak Sesuai Panduan/ Norma
|
||||
OverUtilization bool `json:"overUtilization"` // Over Utilization Pelayanan
|
||||
UnderUtilization bool `json:"underUtilization"` // Under Utilization Pelayanan
|
||||
PatientNonCompliance bool `json:"patientNonCompliance"` // Ketidakpatuhan Pasien
|
||||
InadequateEducation bool `json:"inadequateEducation"` // Edukasi Kurang Memadai
|
||||
LackOfFamilySupport bool `json:"lackOfFamilySupport"` // Kurang Dukungan Keluarga
|
||||
DecreasedDetermination bool `json:"decreasedDetermination"` // Penurunan Determinasi Ketika Komplikasi Meningkat
|
||||
FinancialDifficultyDuringComplications bool `json:"financialDifficultyDuringComplications"` // Kendala Keuangan Ketika Komplikasi Meningkat
|
||||
DischargeCriteriaNotMetOrDelayed bool `json:"dischargeCriteriaNotMetOrDelayed"` // Pemulangan/ Rujukan Belum Memenuhi Kriteria/ Ditunda
|
||||
}
|
||||
|
||||
type FormA struct {
|
||||
Screening ScreeningEntry `json:"screening"`
|
||||
AssessmentDetail string `json:"assessmentDetail"` // Masukkan detail assesmen
|
||||
ProblemIdentification ProblemIdentification `json:"problemIdentification"`
|
||||
PlanningDetail string `json:"planningDetail"` // Masukkan detail perencanaan
|
||||
}
|
||||
|
||||
func (s ScreeningEntry) SelectedScreeningLabels() []string {
|
||||
result := []string{}
|
||||
|
||||
if s.AgeAtRisk {
|
||||
result = append(result, "Usia Dengan Risiko")
|
||||
}
|
||||
if s.LowCognitiveFunction {
|
||||
result = append(result, "Pasien Dengan Fungsi Kognitif Rendah")
|
||||
}
|
||||
if s.HighRiskPatient {
|
||||
result = append(result, "Pasien Dengan Risiko Tinggi")
|
||||
}
|
||||
if s.HighComplaintPotential {
|
||||
result = append(result, "Potensi Komplain Tinggi (Medik dan Non Medik)")
|
||||
}
|
||||
if s.ChronicOrCatastrophicOrTerminal {
|
||||
result = append(result, "Kasus Dengan Penyakit Kronis, Katastropik, Terminal")
|
||||
}
|
||||
if s.LowFunctionalStatus {
|
||||
result = append(result, "Status Fungsional Rendah, Kebutuhan Bantuan ADL Tinggi")
|
||||
}
|
||||
if s.HistoryOfMedicalDeviceUse {
|
||||
result = append(result, "Pasien Dengan Riwayat Penggunaan Peralatan Medis Masa Lalu")
|
||||
}
|
||||
if s.MentalOrSocialIssues {
|
||||
result = append(result, "Riwayat Gangguan Mental, Bunuh Diri, Krisis Keluarga, Isu Sosial")
|
||||
}
|
||||
if s.FrequentERVisitsOrReadmission {
|
||||
result = append(result, "Sering Masuk IGD, Readmisi RS")
|
||||
}
|
||||
if s.HighCareCostEstimate {
|
||||
result = append(result, "Perkiraan Asuhan Dengan Biaya Tinggi")
|
||||
}
|
||||
if s.ComplexFinancingSystem {
|
||||
result = append(result, "Kemungkinan Sistem Pembiayaan Yang Kompleks")
|
||||
}
|
||||
if s.AboveAverageLengthOfStay {
|
||||
result = append(result, "Kasus Yang Melebihi Rata-Rata Lama Dirawat")
|
||||
}
|
||||
if s.ImportantOrHighRiskDischargePlanning {
|
||||
result = append(result, "Rencana Pemulangan Penting / Kontinuitas Pelayanan")
|
||||
}
|
||||
if s.Stagnation {
|
||||
result = append(result, "Stagnasi")
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
func (p ProblemIdentification) SelectedProblemLabels() []string {
|
||||
result := []string{}
|
||||
|
||||
if p.CareNotFollowingGuidelines {
|
||||
result = append(result, "Tingkat Asuhan Tidak Sesuai Panduan/ Norma")
|
||||
}
|
||||
if p.OverUtilization {
|
||||
result = append(result, "Over Utilization Pelayanan")
|
||||
}
|
||||
if p.UnderUtilization {
|
||||
result = append(result, "Under Utilization Pelayanan")
|
||||
}
|
||||
if p.PatientNonCompliance {
|
||||
result = append(result, "Ketidakpatuhan Pasien")
|
||||
}
|
||||
if p.InadequateEducation {
|
||||
result = append(result, "Edukasi Kurang Memadai")
|
||||
}
|
||||
if p.LackOfFamilySupport {
|
||||
result = append(result, "Kurang Dukungan Keluarga")
|
||||
}
|
||||
if p.DecreasedDetermination {
|
||||
result = append(result, "Penurunan Determinasi Ketika Komplikasi Meningkat")
|
||||
}
|
||||
if p.FinancialDifficultyDuringComplications {
|
||||
result = append(result, "Kendala Keuangan Ketika Komplikasi Meningkat")
|
||||
}
|
||||
if p.DischargeCriteriaNotMetOrDelayed {
|
||||
result = append(result, "Pemulangan/ Rujukan Belum Memenuhi Kriteria/ Ditunda")
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
@@ -18,3 +18,7 @@ type Screening struct {
|
||||
Value *string `json:"value"`
|
||||
FileUrl *string `json:"fileUrl" gorm:"size:1024"`
|
||||
}
|
||||
|
||||
func (d Screening) IsFormA() bool {
|
||||
return d.Type == erc.SFTCA
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ type (
|
||||
BornMortalityCode string
|
||||
BornLocationCode string
|
||||
SpecimentDestCode string
|
||||
ProcedureReportType string
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -208,37 +209,40 @@ const (
|
||||
MSCMicroLab McuScopeCode = "micro-lab"
|
||||
MSCApLab McuScopeCode = "ap-lab"
|
||||
|
||||
SSCSmall SurgerySizeCode = ""
|
||||
SSCMedium SurgerySizeCode = ""
|
||||
SSCLarge SurgerySizeCode = ""
|
||||
SSCSpecial SurgerySizeCode = ""
|
||||
SSCSmall SurgerySizeCode = "small"
|
||||
SSCMedium SurgerySizeCode = "medium"
|
||||
SSCLarge SurgerySizeCode = "large"
|
||||
SSCSpecial SurgerySizeCode = "special"
|
||||
|
||||
SSyCCito SurgerySystemCode = ""
|
||||
SSyCUrgent SurgerySystemCode = ""
|
||||
SSyCEfective SurgerySystemCode = ""
|
||||
SSyCSpecial SurgerySystemCode = ""
|
||||
SSyCCito SurgerySystemCode = "cito"
|
||||
SSyCUrgent SurgerySystemCode = "urgent"
|
||||
SSyCEfective SurgerySystemCode = "efective"
|
||||
SSyCSpecial SurgerySystemCode = "special"
|
||||
|
||||
STCClean SurgeryTypeCode = ""
|
||||
STCCleanCtm SurgeryTypeCode = ""
|
||||
STCUncleanCtm SurgeryTypeCode = ""
|
||||
STCUnclean SurgeryTypeCode = ""
|
||||
STCClean SurgeryTypeCode = "clean"
|
||||
STCCleanCtm SurgeryTypeCode = "clean-ctm"
|
||||
STCUncleanCtm SurgeryTypeCode = "unclean-ctm"
|
||||
STCUnclean SurgeryTypeCode = "unclean"
|
||||
|
||||
SStCFirst SurgeryStageCode = ""
|
||||
SStCRepeat SurgeryStageCode = ""
|
||||
SStCFirst SurgeryStageCode = "first"
|
||||
SStCRepeat SurgeryStageCode = "repeat"
|
||||
|
||||
BMCAlive BornMortalityCode = ""
|
||||
BMCDead BornMortalityCode = ""
|
||||
BMCAlive BornMortalityCode = "alive"
|
||||
BMCDead BornMortalityCode = "dead"
|
||||
|
||||
BLCExtMiw BornLocationCode = ""
|
||||
BLCExtDoc BornLocationCode = ""
|
||||
BLCTradMiw BornLocationCode = ""
|
||||
BLCLocalMed BornLocationCode = ""
|
||||
BLCExtParamedic BornLocationCode = ""
|
||||
BLCExtMiw BornLocationCode = "ext-miw"
|
||||
BLCExtDoc BornLocationCode = "ext-doc"
|
||||
BLCTradMiw BornLocationCode = "trad-miw"
|
||||
BLCLocalMed BornLocationCode = "local-med"
|
||||
BLCExtParamedic BornLocationCode = "ext-paramedic"
|
||||
|
||||
SDCAp SpecimentDestCode = ""
|
||||
SDCMicro SpecimentDestCode = ""
|
||||
SDCLab SpecimentDestCode = ""
|
||||
SDCNone SpecimentDestCode = ""
|
||||
SDCAp SpecimentDestCode = "ap"
|
||||
SDCMicro SpecimentDestCode = "micro"
|
||||
SDCLab SpecimentDestCode = "lab"
|
||||
SDCNone SpecimentDestCode = "none"
|
||||
|
||||
PRTProcedure ProcedureReportType = "procedure"
|
||||
PRTSurgery ProcedureReportType = "surgery"
|
||||
)
|
||||
|
||||
type Soapi struct {
|
||||
@@ -364,8 +368,11 @@ type HeadToToe struct {
|
||||
BodyOthers string `json:"body-others,omitempty"`
|
||||
}
|
||||
|
||||
type RecordAction struct {
|
||||
Procedures []string `json:"procedures"`
|
||||
type ProcedureRecord struct {
|
||||
Procedures []CodeWithName `json:"procedures"`
|
||||
}
|
||||
|
||||
type ProcedureExecution struct {
|
||||
SurgerySize_Code *string `json:"surgerySize_code"`
|
||||
Billing_Code *string `json:"billing_code"`
|
||||
SurgerySystem_Code *string `json:"surgerySystem_code"`
|
||||
|
||||
Reference in New Issue
Block a user